Commit 2eb4b02a by 杨明

欢迎语 底部

1 parent 01abf26f
Showing 47 changed files with 398 additions and 109 deletions
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
"core-js": "^3.6.5", "core-js": "^3.6.5",
"element-ui": "^2.15.6", "element-ui": "^2.15.6",
"glsx-common": "^1.3.2", "glsx-common": "^1.3.2",
"vuedraggable": "^2.24.3",
"vue": "^2.6.11" "vue": "^2.6.11"
}, },
"devDependencies": { "devDependencies": {
......
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
<GLExternal url="//localhost:8080/html/employee/index.html" :subscribe="subscribe"></GLExternal> --> <GLExternal url="//localhost:8080/html/employee/index.html" :subscribe="subscribe"></GLExternal> -->
<hr /> <hr />
<h3>el-button调整 大(默认按钮)40 中(small)32 小(mini)24</h3> <h3>el-button调整 大(默认按钮)40 中(small)32 小(mini)24</h3>
<!-- display="disabled" --> <!-- display="disabled" -->
<GLButton @click="click" fn="1-1-1-11" mode="el-button">232321321</GLButton> <GLButton @click="click" fn="1-1-1-11" mode="el-button">232321321</GLButton>
<div> <div>
<el-button type="primary">一级</el-button> <el-button type="primary">一级</el-button>
<el-button type="primary" disabled>一级</el-button> <el-button type="primary" disabled>一级</el-button>
<el-button type="primary" :loading="true" icon="el-icon-star-off"></el-button> <el-button type="primary" :loading="true" icon="el-icon-star-off"></el-button>
</div> </div>
<div> <div>
<el-button plain>二级</el-button> <el-button plain>二级</el-button>
...@@ -32,8 +32,7 @@ ...@@ -32,8 +32,7 @@
<el-button plain class="btn-three" size="mini">超小</el-button> <el-button plain class="btn-three" size="mini">超小</el-button>
<el-button plain class="btn-three" size="mini" disabled>超小</el-button> <el-button plain class="btn-three" size="mini" disabled>超小</el-button>
</div> </div>
<hr /> <hr />
<h3>el-dialog调整</h3> <h3>el-dialog调整</h3>
<!-- <GLDialog :visible.sync="visible" title="aaaaaaaaa"> <!-- <GLDialog :visible.sync="visible" title="aaaaaaaaa">
...@@ -127,21 +126,14 @@ ...@@ -127,21 +126,14 @@
<GLBcTest></GLBcTest> <GLBcTest></GLBcTest>
<hr /> <hr />
<!-- 测试弹框组件 --> <!-- 测试弹框组件 -->
<el-button plain @click="testDialog(1)">dialog(大)</el-button> <el-button plain @click="testDialog(1)">dialog(大)</el-button>
<el-button plain @click="testDialog2">dialog(中)</el-button> <el-button plain @click="testDialog2">dialog(中)</el-button>
<el-button plain @click="showDialog">dialog(小)</el-button> <el-button plain @click="showDialog">dialog(小)</el-button>
<el-button plain @click="testDialog3">dialog(中)无按钮</el-button> <el-button plain @click="testDialog3">dialog(中)无按钮</el-button>
<el-button plain @click="testBeforeDialog">之前小弹窗</el-button> <el-button plain @click="testBeforeDialog">之前小弹窗</el-button>
<GLFull>SDK发就算冷冻机房乐山大佛</GLFull>
<!-- :content="'hello HelloWorld'" --> <!-- :content="'hello HelloWorld'" -->
<GLDialog <GLDialog :mode="mode" bigTitle="大标题" :hasFooter="hasFooter" :type="'error'" @onOk="handleOk" @onCancel="handleCancel" :visible.sync="dialogShow">
:mode="mode"
bigTitle="大标题"
:hasFooter="hasFooter"
:type="'error'"
@onOk="handleOk"
@onCancel="handleCancel"
:visible.sync="dialogShow">
<div> <div>
<div>这是一段信息</div> <div>这是一段信息</div>
<div>这是一段信息</div> <div>这是一段信息</div>
...@@ -210,28 +202,9 @@ ...@@ -210,28 +202,9 @@
<el-button type="primary" size="small" @click="dialogShow = false">确定123</el-button> <el-button type="primary" size="small" @click="dialogShow = false">确定123</el-button>
</span> --> </span> -->
</GLDialog> </GLDialog>
<GLDialog <GLDialog :mode="mode" title="提示" :hasFooter="hasFooter" :type="'error'" :content="'hello HelloWorld'" @onOk="handleOk" @onCancel="handleCancel" :visible.sync="dialogShow2"></GLDialog>
:mode="mode" <GLDialog title="提示123" :mode="mode" :hasFooter="hasFooter" :type="'error'" :content="'hello HelloWorld'" @onOk="handleOk" @onCancel="handleCancel" :visible.sync="dialogShow1"></GLDialog>
title="提示"
:hasFooter="hasFooter"
:type="'error'"
:content="'hello HelloWorld'"
@onOk="handleOk"
@onCancel="handleCancel"
:visible.sync="dialogShow2">
</GLDialog>
<GLDialog
title="提示123"
:mode="mode"
:hasFooter="hasFooter"
:type="'error'"
:content="'hello HelloWorld'"
@onOk="handleOk"
@onCancel="handleCancel"
:visible.sync="dialogShow1">
</GLDialog>
<hr /> <hr />
</div> </div>
</template> </template>
<script> <script>
...@@ -703,7 +676,7 @@ export default { ...@@ -703,7 +676,7 @@ export default {
}, },
condition: row => { condition: row => {
const h = this.$createElement const h = this.$createElement
const vNode = h('span','','11323') const vNode = h('span', '', '11323')
return true return true
}, },
attrs: { attrs: {
...@@ -711,7 +684,7 @@ export default { ...@@ -711,7 +684,7 @@ export default {
//boolean或者函数 //boolean或者函数
disabled: (row, condition) => { disabled: (row, condition) => {
// console.log(123456) // console.log(123456)
return 1==1 return 1 == 1
} }
// disabled: false // disabled: false
}, },
...@@ -762,7 +735,7 @@ export default { ...@@ -762,7 +735,7 @@ export default {
// condition: row => { // condition: row => {
// return true // return true
// }, // },
condition: (row) => { condition: row => {
// return new Promise((resolve, reject) => { // return new Promise((resolve, reject) => {
// setTimeout(resolve(true),2000) // setTimeout(resolve(true),2000)
// }) // })
...@@ -771,7 +744,7 @@ export default { ...@@ -771,7 +744,7 @@ export default {
}, },
// 属性 // 属性
attrs: { attrs: {
type: 'text', type: 'text'
//boolean或者函数, 参数 row ,config //boolean或者函数, 参数 row ,config
// disabled: (row, condition) => { // disabled: (row, condition) => {
// // console.log('disabled') // // console.log('disabled')
...@@ -804,10 +777,10 @@ export default { ...@@ -804,10 +777,10 @@ export default {
// 测试省市组件 // 测试省市组件
subdistrict: 3, subdistrict: 3,
//测试弹框 //测试弹框
dialogShow:false, dialogShow: false,
dialogShow1:false, dialogShow1: false,
dialogShow2:false, dialogShow2: false,
mode:"mid", mode: 'mid',
hasFooter: true hasFooter: true
} }
}, },
...@@ -1059,60 +1032,59 @@ export default { ...@@ -1059,60 +1032,59 @@ export default {
console.log(val) console.log(val)
}, },
//测试弹框 //测试弹框
testDialog(number){ testDialog(number) {
this.dialogShow = !this.dialogShow this.dialogShow = !this.dialogShow
this.hasFooter = true this.hasFooter = true
switch (number) { switch (number) {
case 1: case 1:
this.mode = 'big' this.mode = 'big'
break; break
case 2: case 2:
this.mode = 'mid' this.mode = 'mid'
break; break
case 3: case 3:
this.mode = 'small' this.mode = 'small'
break; break
case 4: case 4:
this.mode = 'mid' this.mode = 'mid'
this.hasFooter = false this.hasFooter = false
break; break
} }
}, },
testDialog2(){ testDialog2() {
this. mode = 'mid' this.mode = 'mid'
this.dialogShow2 = !this.dialogShow2 this.dialogShow2 = !this.dialogShow2
this.hasFooter = true this.hasFooter = true
}, },
testDialog3(){ testDialog3() {
this. mode = 'mid' this.mode = 'mid'
this.dialogShow2 = !this.dialogShow2 this.dialogShow2 = !this.dialogShow2
this.hasFooter = false this.hasFooter = false
}, },
showDialog(){ showDialog() {
this.dialogShow1 = !this.dialogShow1 this.dialogShow1 = !this.dialogShow1
this.mode = 'small' this.mode = 'small'
this.hasFooter = true this.hasFooter = true
}, },
handleOk(){ handleOk() {
console.log('点击确定') console.log('点击确定')
this.dialogShow = false this.dialogShow = false
this.dialogShow1 = false this.dialogShow1 = false
}, },
handleCancel(){ handleCancel() {
console.log('点击取消') console.log('点击取消')
this.dialogShow = false this.dialogShow = false
this.dialogShow1 = false this.dialogShow1 = false
}, },
testBeforeDialog(){ testBeforeDialog() {
this.$confirm('检测到未保存的内容,是否在离开页面前保存修改?', '确认信息', { this.$confirm('检测到未保存的内容,是否在离开页面前保存修改?', '确认信息', {
// distinguishCancelAndClose: true, // distinguishCancelAndClose: true,
confirmButtonText: '是', confirmButtonText: '是',
cancelButtonText: '否', cancelButtonText: '否',
type: 'warning' type: 'warning'
}) })
} }
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
* 启动项目工程即可 * 启动项目工程即可
*/ */
//创建的组件 //创建的组件
import Vue from 'vue' import Vue from 'vue'
import { import {
// 基础 // 基础
GLExternal, GLExternal,
GLButton, GLButton,
...@@ -18,25 +18,29 @@ ...@@ -18,25 +18,29 @@
GLTableButton, GLTableButton,
// 业务 // 业务
GLProvince, GLProvince,
GLBcTest GLBcTest,
GLEditor,
GLFull
} from '../../dist/glsx-components.umd.min.js' } from '../../dist/glsx-components.umd.min.js'
import '../../dist/glsx-components.css' import '../../dist/glsx-components.css'
const permissions = { const permissions = {
routes: [ routes: [
{ path: '/', meta: { permissions: ['1-1-1-1', '2-1-1-1', '3-1-1-1'] } }, { path: '/', meta: { permissions: ['1-1-1-1', '2-1-1-1', '3-1-1-1'] } },
{ path: '/a', meta: {} } { path: '/a', meta: {} }
], ],
routerBase: '' routerBase: ''
} }
Vue.use(GLButton, permissions) Vue.use(GLButton, permissions)
Vue.use(GLExternal) Vue.use(GLExternal)
Vue.use(GLDialog) Vue.use(GLDialog)
Vue.use(GLTable) Vue.use(GLTable)
Vue.use(GLFooter) Vue.use(GLFooter)
Vue.use(GLSearch) Vue.use(GLSearch)
Vue.use(GLSearchItem) Vue.use(GLSearchItem)
Vue.use(GLCombiForm) Vue.use(GLCombiForm)
Vue.use(GLTableButton) Vue.use(GLTableButton)
Vue.use(GLProvince) Vue.use(GLProvince)
Vue.use(GLBcTest) Vue.use(GLBcTest)
Vue.use(GLEditor)
Vue.use(GLFull)
import GLEditor from './src/index.vue'
console.log(GLEditor)
// 为组件提供 install 安装方法,供按需引入
GLEditor.install = function (Vue) {
Vue.component(GLEditor.name, GLEditor)
}
// 默认导出组件
export default GLEditor
<template>
<div class="ly-emotion">
<slot></slot>
</div>
</template>
<script>
import emoji from '../../../utils/emo'
export default {
name: 'ly-emotion',
mounted() {
const name = this.$el.innerHTML
const list = emoji.flat(Infinity)
let index = parseInt(list.indexOf(name)) + 1
if (index < 10) {
index = '00' + index
} else if (index >= 10 && index < 100) {
index = '0' + index
}
let imgHTML = `<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/${index}.png">`
this.$nextTick(() => {
this.$el.innerHTML = imgHTML
})
}
}
</script>
<style scoped>
.ly-emotion {
display: inline-block;
}
.ly-static-emotion {
width: 24px;
height: 24px;
display: inline-block;
}
</style>
<template>
<div>
<div class="emotion-box" :style="{ height: height + 'px' }">
<div class="emotion-box-line" v-for="(line, i) in list" :key="i">
<emotion class="emotion-item" v-for="(item, i) in line" :key="i" @click.native="clickHandler(item)">{{ item }}</emotion>
</div>
</div>
</div>
</template>
<script>
import emoji from '../../../utils/emo'
import Emotion from './Emotion'
export default {
props: {
height: {
type: Number,
default: 200
}
},
name: 'emotionWords',
data() {
return {
list: emoji
}
},
methods: {
clickHandler(i) {
let emotion = `${i}`
this.$emit('emotion', emotion)
}
},
components: {
Emotion
}
}
</script>
<style scoped lang="scss">
.emotion-box {
z-index: 2004;
background-color: #fff;
border-radius: 2px;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.15);
width: 300px;
box-sizing: border-box;
padding: 5px;
overflow: hidden;
overflow-y: auto;
}
.emotion-box-line {
display: flex;
}
.emotion-item {
flex: 1;
text-align: center;
cursor: pointer;
line-height: 23px;
/deep/ {
img {
width: 24px;
-webkit-user-select: none;
cursor: default;
pointer-events: none;
}
}
}
</style>
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
</div> </div>
</template> </template>
<script> <script>
import { utils } from 'glsx-common'
export default { export default {
name: 'GLFooter', name: 'GLFooter',
props: { props: {
...@@ -21,20 +22,24 @@ export default { ...@@ -21,20 +22,24 @@ export default {
data() { data() {
return { return {
footerLeft: 0, footerLeft: 0,
footerWidth: 0 footerWidth: 0,
aside: ''
} }
}, },
methods: { methods: {
resize() { resize: utils.debounce(function () {
this.footerLeft = document.querySelector(this.className)?document.querySelector(this.className).offsetLeft : 0 this.footerLeft = document.querySelector(this.className) ? document.querySelector(this.className).offsetLeft : 0
this.footerWidth = document.documentElement.clientWidth - this.footerLeft this.footerWidth = document.documentElement.clientWidth - this.footerLeft
} }, 100)
}, },
destroyed() { destroyed() {
window.removeEventListener('resize', this.resize) window.removeEventListener('resize', this.resize)
this.aside && this.aside.removeEventListener('DOMSubtreeModified', this.resize)
}, },
mounted() { mounted() {
this.resize() this.resize()
this.aside = document.querySelector('.base-container-aside')
this.aside && this.aside.addEventListener('DOMSubtreeModified', this.resize)
window.addEventListener('resize', this.resize) window.addEventListener('resize', this.resize)
} }
} }
...@@ -45,10 +50,10 @@ export default { ...@@ -45,10 +50,10 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
position: fixed; position: static !important;
bottom: 0px; bottom: 0px;
height: 64px; height: 64px;
background: #ffffff; background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1); box-shadow: none !important;
} }
</style> </style>
import GLFull from './src/index.vue'
// 为组件提供 install 安装方法,供按需引入
GLFull.install = function (Vue) {
Vue.component(GLFull.name, GLFull)
}
// 默认导出组件
export default GLFull
<template>
<div class="full-container">
<el-tooltip placement="top" v-if="hoverStatus">
<div slot="content">
<template v-if="$slots.default"><slot></slot></template>
<template v-else>
{{ label }}
</template>
</div>
<div :class="['full-text', identification]" :style="{ width: labelWidth + 'px' }" @mouseenter="hoverFun" v-if="textType != 'text' && !haveClose">
<el-tag type="info" class="full-text" :disable-transitions="false">
<i class="el-icon-user-solid" v-if="textType == 'user'"></i>
{{ label }}
</el-tag>
</div>
<div v-if="textType != 'text' && haveClose" @mouseenter="hoverFun">
<el-tag class="tag-user-closable" :style="{ 'max-width': labelWidth + 'px' }" type="info" :disable-transitions="false" closable @close="handleRemove">
<i class="el-icon-user-solid" v-if="textType == 'user'"></i>
<span :class="['full-text-user', { 'user-icon-checked': textType == 'user' && haveClose }, identification]">{{ label }}</span>
</el-tag>
</div>
<div :class="[line ? 'full-text-line' : 'full-text', identification]" @mouseenter="hoverFun" :style="{ width: labelWidth + 'px', '-webkit-line-clamp': line }" v-if="textType == 'text'">
<template v-if="$slots.default"><slot></slot></template>
<template v-else>
{{ label }}
</template>
</div>
</el-tooltip>
<template v-else>
<div :class="['full-text', identification]" @mouseenter="hoverFun" :style="{ width: labelWidth + 'px' }" v-if="textType != 'text' && !haveClose">
<el-tag type="info" class="full-text" :disable-transitions="false">
<i class="el-icon-user-solid" v-if="textType == 'user'"></i>
{{ label }}
</el-tag>
</div>
<div @mouseenter="hoverFun" v-if="textType != 'text' && haveClose">
<el-tag class="tag-user-closable" type="info" :style="{ 'max-width': labelWidth + 'px' }" :disable-transitions="false" closable @close="handleRemove">
<i class="el-icon-user-solid" v-if="textType == 'user'"></i>
<span :class="['full-text-user', identification]">{{ label }}</span>
</el-tag>
</div>
<div :class="[line ? 'full-text-line' : 'full-text', identification]" @mouseenter="hoverFun" :style="{ width: labelWidth + 'px', '-webkit-line-clamp': line }" v-if="textType == 'text'">
<template v-if="$slots.default"><slot></slot></template>
<template v-else>
{{ label }}
</template>
</div>
</template>
</div>
</template>
<script>
export default {
name: 'GLFull',
data() {
return {
hoverStatus: false
}
},
props: {
//唯一标识
identi: {
type: String,
default: 'identi'
},
//文本
label: {
type: String,
default: ''
},
//文本宽度
labelWidth: {
type: Number,
default: 100
},
//行数
line: {
type: Number,
default: 0
},
textType: {
type: String,
default: 'text', // text 文本 user 跟进员工 tag 标签
validator: function (value) {
return ['text', 'user', 'tag'].indexOf(value) !== -1
}
},
//是否包含关闭按钮
haveClose: {
type: Boolean,
default: false
}
},
computed: {
identification() {
return 'text_' + this.identi
}
},
methods: {
hoverFun() {
if (this.haveClose) {
//this.hoverStatus = this.identi ? document.querySelector(`.${this.identification}`).scrollWidth > document.querySelector(`.${this.identification}`).offsetWidth : document.querySelector(`.full-text`).scrollWidth > this.labelWidth - 30
this.hoverStatus = document.querySelector(`.${this.identification}`).scrollWidth > document.querySelector(`.${this.identification}`).offsetWidth
} else {
let widthMuti = this.textType == 'user' ? 17 : this.textType == 'tag' ? 20 : 0
// this.hoverStatus = this.identi ? document.querySelector(`.${this.identification}`).scrollWidth - widthMuti > this.labelWidth : document.querySelector(`.full-text`).scrollWidth > this.labelWidth
this.hoverStatus = document.querySelector(`.${this.identification}`).scrollWidth - widthMuti > this.labelWidth
}
},
handleRemove() {
this.$emit('handleRemove')
}
}
}
</script>
<style scoped lang="scss">
.full-container {
display: inline-block;
/deep/ {
.el-tag {
height: 26px;
line-height: 26px;
}
}
}
.full-text {
max-width: 100%;
display: inline-block;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.full-text-user {
max-width: calc(100% - 14px);
display: inline-block;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
&.user-icon-checked {
max-width: calc(100% - 30px);
}
}
.tag-user-closable {
display: flex;
align-items: center;
/deep/ {
.el-icon-close {
margin-top: 2px;
}
}
}
.full-text-line {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
word-break: break-all;
}
.el-icon-user-solid {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
</style>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
*/ */
// 导入颜色选择器组件 // 导入颜色选择器组件
// import '@/plugins/element.js' // import '@/plugins/element.js'
import { Table, TableColumn, Popover, Button, ButtonGroup, Loading, Input, Form, FormItem, Pagination, Tooltip, Icon, Select, Option, DatePicker, Dropdown, DropdownItem, DropdownMenu ,Dialog,MessageBox} from '@/plugins/element.js' import { Table, TableColumn, Popover, Button, ButtonGroup, Loading, Input, Form, FormItem, Pagination, Tooltip, Icon, Select, Option, DatePicker, Dropdown, DropdownItem, DropdownMenu, Dialog, MessageBox } from '@/plugins/element.js'
import '@/theme/theme.scss' import '@/theme/theme.scss'
// 一次性注册所有的过滤器 本地测试 // 一次性注册所有的过滤器 本地测试
...@@ -24,16 +24,19 @@ import GLTableButton from './GlTableButton' ...@@ -24,16 +24,19 @@ import GLTableButton from './GlTableButton'
// 导入业务组件 // 导入业务组件
import GLProvince from './GLProvince' import GLProvince from './GLProvince'
import GLFull from './GLFull'
import GLEditor from './Editor'
import GLBcTest from '@/bcPackages/GLBcTest' import GLBcTest from '@/bcPackages/GLBcTest'
//el原始组件 //el原始组件
const ElComponent = [Table, TableColumn, Popover, Button, ButtonGroup, Loading, Input, Form, FormItem, Pagination, Tooltip, Icon, Select, Option, DatePicker, Dropdown, DropdownItem, DropdownMenu,Dialog,MessageBox] const ElComponent = [Table, TableColumn, Popover, Button, ButtonGroup, Loading, Input, Form, FormItem, Pagination, Tooltip, Icon, Select, Option, DatePicker, Dropdown, DropdownItem, DropdownMenu, Dialog, MessageBox]
// 业务组件导入列表 // 业务组件导入列表
const BcComponent = [GLBcTest] const BcComponent = [GLBcTest]
// 存储组件列表 // 存储组件列表
const components = [TestComp, GLExternal, GLButton, GLDialog, GLTable, GLFooter, GLSearch, GLSearchItem, GLCombiForm, GLTableButton, GLProvince].concat(ElComponent).concat(BcComponent) const components = [TestComp, GLExternal, GLButton, GLDialog, GLTable, GLFooter, GLSearch, GLSearchItem, GLCombiForm, GLTableButton, GLProvince, GLFull, GLEditor].concat(ElComponent).concat(BcComponent)
// console.log('components: ', components); // console.log('components: ', components);
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册 // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
...@@ -46,7 +49,7 @@ const install = function (Vue) { ...@@ -46,7 +49,7 @@ const install = function (Vue) {
if (install.installed) return if (install.installed) return
// 遍历注册全局组件 // 遍历注册全局组件
components.map(component => { components.map(component => {
if(!component.name) return if (!component.name) return
Vue.component(component.name, component) Vue.component(component.name, component)
}) })
} }
...@@ -56,14 +59,14 @@ if (typeof window !== 'undefined' && window.Vue) { ...@@ -56,14 +59,14 @@ if (typeof window !== 'undefined' && window.Vue) {
} }
/** /**
* *
* @param {*} compArr 组件数组,将他们转化为obj导出 * @param {*} compArr 组件数组,将他们转化为obj导出
* @returns compObj {} * @returns compObj {}
*/ */
const getNameComp = (compArr)=>{ const getNameComp = compArr => {
if (compArr.length === 0) return if (compArr.length === 0) return
let compObj = {} let compObj = {}
compArr.forEach((item)=>{ compArr.forEach(item => {
compObj[item.name] = item compObj[item.name] = item
}) })
return compObj return compObj
...@@ -87,6 +90,7 @@ export default { ...@@ -87,6 +90,7 @@ export default {
GLTableButton, GLTableButton,
//业务组件 //业务组件
GLProvince, GLProvince,
GLBcTest GLBcTest,
GLFull,
GLEditor
} }
const emoji = [
['微笑', '撇嘴', '色', '发呆', '得意', '流泪', '害羞', '闭嘴'],
['睡', '大哭', '尴尬', '发怒', '调皮', '呲牙', '惊讶', '难过'],
['酷', '囧', '抓狂', '吐', '微笑', '愉快', '白眼', '傲慢'],
['饥饿', '困', '惊恐', '流汗', '憨笑', '大兵', '奋斗', '咒骂'],
['疑问', '嘘', '晕', '折磨', '衰', '骷髅', '敲打', '再见'],
['擦汗', '抠鼻', '鼓掌', '糗大了', '坏笑', '左哼哼', '右哼哼', '哈欠'],
['鄙视', '委屈', '快哭了', '阴险', '亲亲', '吓', '可怜', '菜刀'],
['西瓜', '啤酒', '篮球', '乒乓', '咖啡', '饭', '猪头', '玫瑰'],
['凋谢', '示爱', '爱心', '心碎', '蛋糕', '闪电', '炸弹', '刀'],
['足球', '瓢虫', '便便', '月亮', '太阳', '礼物', '拥抱', '强'],
['弱', '握手', '胜利', '抱拳', '勾引', '拳头', '差劲', '爱你'],
['NO', 'OK', '爱情', '飞吻', '跳跳', '发抖', '怄火', '转圈'],
['磕头', '回头', '跳绳', '投降', '挥手', '激动', '街舞', '左太极'],
['右太极', '嘿哈', '捂脸', '奸笑', '机智', '皱眉', '耶', '社会社会'],
['让我看看', '666', '红包', '蜡烛', '烟花', '福', '庆祝', '爆竹']
]
export default emoji
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!