lw-cdp-ui 1.0.19 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/components/lwForm/index.vue +312 -312
- package/dist/components/lwIconSelect/iconSelect.js +288 -288
- package/dist/components/lwIconSelect/index.vue +142 -142
- package/dist/components/lwLayout/components/NavMenu.vue +36 -36
- package/dist/components/lwLayout/components/aside.vue +291 -295
- package/dist/components/lwLayout/components/bu.vue +72 -70
- package/dist/components/lwLayout/components/iframeView.vue +57 -57
- package/dist/components/lwLayout/components/lang.vue +76 -76
- package/dist/components/lwLayout/components/setting.vue +80 -80
- package/dist/components/lwLayout/components/sideM.vue +137 -136
- package/dist/components/lwLayout/components/tags.vue +329 -329
- package/dist/components/lwLayout/components/topbar.vue +70 -70
- package/dist/components/lwLayout/components/userbar.vue +210 -209
- package/dist/components/lwLayout/index.vue +399 -398
- package/dist/components/lwLogin/index.vue +446 -383
- package/dist/components/lwSearch/date/date.vue +110 -110
- package/dist/components/lwSearch/dateRange/dateRange.vue +110 -110
- package/dist/components/lwSearch/dates/dates.vue +366 -366
- package/dist/components/lwSearch/index.vue +636 -636
- package/dist/components/lwSearch/input/input.vue +54 -54
- package/dist/components/lwSearch/locale/en-us.js +10 -10
- package/dist/components/lwSearch/locale/zh-cn.js +10 -10
- package/dist/components/lwSearch/select/select.vue +57 -57
- package/dist/components/lwSvgIcon/index.vue +28 -28
- package/dist/components/lwTable/index.js +425 -425
- package/dist/components/lwTable/index.scss +229 -229
- package/dist/components/lwTable/index.vue +225 -226
- package/dist/components/lwTable/locale/en-US.js +26 -26
- package/dist/components/lwTable/locale/zh-CN.js +26 -26
- package/dist/components/lwTable/useFullscreen.js +73 -73
- package/dist/components/lwTableSelect/index.vue +254 -254
- package/dist/components/lwTableSelect/tableSelect.js +23 -23
- package/dist/components/lwUpload/index.vue +365 -365
- package/dist/en-US-YCjgxjEt.js.map +1 -1
- package/dist/en-us-CziFtIQi.js.map +1 -1
- package/dist/lw-cdp-ui.esm.js +1484 -1459
- package/dist/lw-cdp-ui.esm.js.map +1 -1
- package/dist/lw-cdp-ui.umd.js +9 -9
- package/dist/lw-cdp-ui.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/zh-CN-BdDNsX4e.js.map +1 -1
- package/dist/zh-cn-DJpQp_O7.js.map +1 -1
- package/package.json +45 -45
|
@@ -1,142 +1,142 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="lw-icon-select">
|
|
3
|
-
<el-input v-model="defaultValue"
|
|
4
|
-
:prefix-icon="defaultValue||'none'"
|
|
5
|
-
:placeholder="placeholder"
|
|
6
|
-
:clearable="clearable"
|
|
7
|
-
:disabled="disabled">
|
|
8
|
-
<template #append>
|
|
9
|
-
<el-button icon="el-icon-more-filled"
|
|
10
|
-
@click="open"></el-button>
|
|
11
|
-
</template>
|
|
12
|
-
</el-input>
|
|
13
|
-
<el-dialog title="图标选择器"
|
|
14
|
-
v-model="dialogVisible"
|
|
15
|
-
:width="780"
|
|
16
|
-
destroy-on-close>
|
|
17
|
-
<el-tabs style="margin-top: -30px;" v-model="activeName">
|
|
18
|
-
<el-tab-pane v-for="item in data"
|
|
19
|
-
:key="item.name"
|
|
20
|
-
:name="item.key"
|
|
21
|
-
lazy>
|
|
22
|
-
<template #label>
|
|
23
|
-
{{item.name}} <el-tag size="small"
|
|
24
|
-
type="info">{{item.icons.length}}</el-tag>
|
|
25
|
-
</template>
|
|
26
|
-
<div class="lw-icon-select__list">
|
|
27
|
-
<el-scrollbar>
|
|
28
|
-
<ul @click="selectIcon">
|
|
29
|
-
<li v-for="icon in item.icons"
|
|
30
|
-
:key="icon">
|
|
31
|
-
<span :data-icon="icon"></span>
|
|
32
|
-
<el-icon>
|
|
33
|
-
<component :is="icon" />
|
|
34
|
-
</el-icon>
|
|
35
|
-
</li>
|
|
36
|
-
</ul>
|
|
37
|
-
</el-scrollbar>
|
|
38
|
-
</div>
|
|
39
|
-
</el-tab-pane>
|
|
40
|
-
</el-tabs>
|
|
41
|
-
</el-dialog>
|
|
42
|
-
</div>
|
|
43
|
-
</template>
|
|
44
|
-
|
|
45
|
-
<script>
|
|
46
|
-
import config from "./iconSelect"
|
|
47
|
-
|
|
48
|
-
export default {
|
|
49
|
-
props: {
|
|
50
|
-
modelValue: { type: String, default: "" },
|
|
51
|
-
placeholder: { type: String, default: "请输入或者选择图标" },
|
|
52
|
-
clearable: { type: Boolean, default: false },
|
|
53
|
-
disabled: { type: Boolean, default: false },
|
|
54
|
-
},
|
|
55
|
-
data () {
|
|
56
|
-
return {
|
|
57
|
-
defaultValue: '',
|
|
58
|
-
activeName: 'element',
|
|
59
|
-
dialogVisible: false,
|
|
60
|
-
data: []
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
watch: {
|
|
64
|
-
modelValue (val) {
|
|
65
|
-
this.defaultValue = val
|
|
66
|
-
},
|
|
67
|
-
defaultValue (val) {
|
|
68
|
-
this.$emit('update:modelValue', val)
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
mounted () {
|
|
72
|
-
this.defaultValue = this.modelValue
|
|
73
|
-
this.data.push(...config.icons)
|
|
74
|
-
},
|
|
75
|
-
methods: {
|
|
76
|
-
open () {
|
|
77
|
-
if (this.disabled) {
|
|
78
|
-
return false
|
|
79
|
-
}
|
|
80
|
-
this.dialogVisible = true
|
|
81
|
-
},
|
|
82
|
-
selectIcon (e) {
|
|
83
|
-
if (e.target.tagName != 'SPAN') {
|
|
84
|
-
return false
|
|
85
|
-
}
|
|
86
|
-
this.defaultValue = e.target.dataset.icon
|
|
87
|
-
this.dialogVisible = false
|
|
88
|
-
this.$emit('update:modelValue', this.defaultValue);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
</script>
|
|
93
|
-
|
|
94
|
-
<style scoped>
|
|
95
|
-
.lw-icon-select {
|
|
96
|
-
display: inline-block;
|
|
97
|
-
}
|
|
98
|
-
.lw-icon-select__list {
|
|
99
|
-
height: 360px;
|
|
100
|
-
overflow: auto;
|
|
101
|
-
}
|
|
102
|
-
.lw-icon-select__list ul {
|
|
103
|
-
}
|
|
104
|
-
.lw-icon-select__list li {
|
|
105
|
-
display: inline-block;
|
|
106
|
-
width: 80px;
|
|
107
|
-
height: 80px;
|
|
108
|
-
margin: 5px;
|
|
109
|
-
vertical-align: top;
|
|
110
|
-
box-shadow: 0 0 0 1px #eee;
|
|
111
|
-
transition: all 0.1s;
|
|
112
|
-
border-radius: 4px;
|
|
113
|
-
position: relative;
|
|
114
|
-
}
|
|
115
|
-
.lw-icon-select__list li span {
|
|
116
|
-
position: absolute;
|
|
117
|
-
top: 0;
|
|
118
|
-
left: 0;
|
|
119
|
-
right: 0;
|
|
120
|
-
bottom: 0;
|
|
121
|
-
z-index: 1;
|
|
122
|
-
cursor: pointer;
|
|
123
|
-
}
|
|
124
|
-
.lw-icon-select__list li i {
|
|
125
|
-
display: inline-block;
|
|
126
|
-
width: 100%;
|
|
127
|
-
height: 100%;
|
|
128
|
-
font-size: 26px;
|
|
129
|
-
color: #6d7882;
|
|
130
|
-
background: #fff;
|
|
131
|
-
display: flex;
|
|
132
|
-
justify-content: center;
|
|
133
|
-
align-items: center;
|
|
134
|
-
border-radius: 4px;
|
|
135
|
-
}
|
|
136
|
-
.lw-icon-select__list li:hover {
|
|
137
|
-
box-shadow: 0 0 1px 4px rgba(64, 158, 255, 1);
|
|
138
|
-
}
|
|
139
|
-
.lw-icon-select__list li:hover i {
|
|
140
|
-
color: #409eff;
|
|
141
|
-
}
|
|
142
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="lw-icon-select">
|
|
3
|
+
<el-input v-model="defaultValue"
|
|
4
|
+
:prefix-icon="defaultValue||'none'"
|
|
5
|
+
:placeholder="placeholder"
|
|
6
|
+
:clearable="clearable"
|
|
7
|
+
:disabled="disabled">
|
|
8
|
+
<template #append>
|
|
9
|
+
<el-button icon="el-icon-more-filled"
|
|
10
|
+
@click="open"></el-button>
|
|
11
|
+
</template>
|
|
12
|
+
</el-input>
|
|
13
|
+
<el-dialog title="图标选择器"
|
|
14
|
+
v-model="dialogVisible"
|
|
15
|
+
:width="780"
|
|
16
|
+
destroy-on-close>
|
|
17
|
+
<el-tabs style="margin-top: -30px;" v-model="activeName">
|
|
18
|
+
<el-tab-pane v-for="item in data"
|
|
19
|
+
:key="item.name"
|
|
20
|
+
:name="item.key"
|
|
21
|
+
lazy>
|
|
22
|
+
<template #label>
|
|
23
|
+
{{item.name}} <el-tag size="small"
|
|
24
|
+
type="info">{{item.icons.length}}</el-tag>
|
|
25
|
+
</template>
|
|
26
|
+
<div class="lw-icon-select__list">
|
|
27
|
+
<el-scrollbar>
|
|
28
|
+
<ul @click="selectIcon">
|
|
29
|
+
<li v-for="icon in item.icons"
|
|
30
|
+
:key="icon">
|
|
31
|
+
<span :data-icon="icon"></span>
|
|
32
|
+
<el-icon>
|
|
33
|
+
<component :is="icon" />
|
|
34
|
+
</el-icon>
|
|
35
|
+
</li>
|
|
36
|
+
</ul>
|
|
37
|
+
</el-scrollbar>
|
|
38
|
+
</div>
|
|
39
|
+
</el-tab-pane>
|
|
40
|
+
</el-tabs>
|
|
41
|
+
</el-dialog>
|
|
42
|
+
</div>
|
|
43
|
+
</template>
|
|
44
|
+
|
|
45
|
+
<script>
|
|
46
|
+
import config from "./iconSelect"
|
|
47
|
+
|
|
48
|
+
export default {
|
|
49
|
+
props: {
|
|
50
|
+
modelValue: { type: String, default: "" },
|
|
51
|
+
placeholder: { type: String, default: "请输入或者选择图标" },
|
|
52
|
+
clearable: { type: Boolean, default: false },
|
|
53
|
+
disabled: { type: Boolean, default: false },
|
|
54
|
+
},
|
|
55
|
+
data () {
|
|
56
|
+
return {
|
|
57
|
+
defaultValue: '',
|
|
58
|
+
activeName: 'element',
|
|
59
|
+
dialogVisible: false,
|
|
60
|
+
data: []
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
watch: {
|
|
64
|
+
modelValue (val) {
|
|
65
|
+
this.defaultValue = val
|
|
66
|
+
},
|
|
67
|
+
defaultValue (val) {
|
|
68
|
+
this.$emit('update:modelValue', val)
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
mounted () {
|
|
72
|
+
this.defaultValue = this.modelValue
|
|
73
|
+
this.data.push(...config.icons)
|
|
74
|
+
},
|
|
75
|
+
methods: {
|
|
76
|
+
open () {
|
|
77
|
+
if (this.disabled) {
|
|
78
|
+
return false
|
|
79
|
+
}
|
|
80
|
+
this.dialogVisible = true
|
|
81
|
+
},
|
|
82
|
+
selectIcon (e) {
|
|
83
|
+
if (e.target.tagName != 'SPAN') {
|
|
84
|
+
return false
|
|
85
|
+
}
|
|
86
|
+
this.defaultValue = e.target.dataset.icon
|
|
87
|
+
this.dialogVisible = false
|
|
88
|
+
this.$emit('update:modelValue', this.defaultValue);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
</script>
|
|
93
|
+
|
|
94
|
+
<style scoped>
|
|
95
|
+
.lw-icon-select {
|
|
96
|
+
display: inline-block;
|
|
97
|
+
}
|
|
98
|
+
.lw-icon-select__list {
|
|
99
|
+
height: 360px;
|
|
100
|
+
overflow: auto;
|
|
101
|
+
}
|
|
102
|
+
.lw-icon-select__list ul {
|
|
103
|
+
}
|
|
104
|
+
.lw-icon-select__list li {
|
|
105
|
+
display: inline-block;
|
|
106
|
+
width: 80px;
|
|
107
|
+
height: 80px;
|
|
108
|
+
margin: 5px;
|
|
109
|
+
vertical-align: top;
|
|
110
|
+
box-shadow: 0 0 0 1px #eee;
|
|
111
|
+
transition: all 0.1s;
|
|
112
|
+
border-radius: 4px;
|
|
113
|
+
position: relative;
|
|
114
|
+
}
|
|
115
|
+
.lw-icon-select__list li span {
|
|
116
|
+
position: absolute;
|
|
117
|
+
top: 0;
|
|
118
|
+
left: 0;
|
|
119
|
+
right: 0;
|
|
120
|
+
bottom: 0;
|
|
121
|
+
z-index: 1;
|
|
122
|
+
cursor: pointer;
|
|
123
|
+
}
|
|
124
|
+
.lw-icon-select__list li i {
|
|
125
|
+
display: inline-block;
|
|
126
|
+
width: 100%;
|
|
127
|
+
height: 100%;
|
|
128
|
+
font-size: 26px;
|
|
129
|
+
color: #6d7882;
|
|
130
|
+
background: #fff;
|
|
131
|
+
display: flex;
|
|
132
|
+
justify-content: center;
|
|
133
|
+
align-items: center;
|
|
134
|
+
border-radius: 4px;
|
|
135
|
+
}
|
|
136
|
+
.lw-icon-select__list li:hover {
|
|
137
|
+
box-shadow: 0 0 1px 4px rgba(64, 158, 255, 1);
|
|
138
|
+
}
|
|
139
|
+
.lw-icon-select__list li:hover i {
|
|
140
|
+
color: #409eff;
|
|
141
|
+
}
|
|
142
|
+
</style>
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div v-if="navMenus.length<=0" style="padding:20px;">
|
|
3
|
-
<el-alert title="无子集菜单" center type="info" :closable="false"></el-alert>
|
|
4
|
-
</div>
|
|
5
|
-
<template v-for="navMenu in navMenus" v-bind:key="navMenu">
|
|
6
|
-
<el-menu-item v-if="!hasChildren(navMenu)" :index="navMenu.path">
|
|
7
|
-
<a v-if="navMenu.meta&&navMenu.meta.type=='link'" :href="navMenu.path" target="_blank" @click.stop='()=>{}'></a>
|
|
8
|
-
<el-icon v-if="navMenu.meta&&navMenu.meta.icon"><component :is="navMenu.meta.icon || 'el-icon-menu'"/></el-icon>
|
|
9
|
-
<template #title>
|
|
10
|
-
<span>{{navMenu.meta.title}}</span>
|
|
11
|
-
</template>
|
|
12
|
-
</el-menu-item>
|
|
13
|
-
<el-sub-menu v-else :index="navMenu.path">
|
|
14
|
-
<template #title>
|
|
15
|
-
<el-icon v-if="navMenu.meta&&navMenu.meta.icon"><component :is="navMenu.meta.icon || 'el-icon-menu'"/></el-icon>
|
|
16
|
-
<span>{{navMenu.meta.title}}</span>
|
|
17
|
-
</template>
|
|
18
|
-
<NavMenu :navMenus="navMenu.children"></NavMenu>
|
|
19
|
-
</el-sub-menu>
|
|
20
|
-
</template>
|
|
21
|
-
</template>
|
|
22
|
-
|
|
23
|
-
<script>
|
|
24
|
-
export default {
|
|
25
|
-
name: 'NavMenu',
|
|
26
|
-
props: ['navMenus'],
|
|
27
|
-
data() {
|
|
28
|
-
return {}
|
|
29
|
-
},
|
|
30
|
-
methods: {
|
|
31
|
-
hasChildren(item) {
|
|
32
|
-
return item.children && !item.children.every(item => item.meta.hidden)
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div v-if="navMenus.length<=0" style="padding:20px;">
|
|
3
|
+
<el-alert title="无子集菜单" center type="info" :closable="false"></el-alert>
|
|
4
|
+
</div>
|
|
5
|
+
<template v-for="navMenu in navMenus" v-bind:key="navMenu">
|
|
6
|
+
<el-menu-item v-if="!hasChildren(navMenu)" :index="navMenu.path">
|
|
7
|
+
<a v-if="navMenu.meta&&navMenu.meta.type=='link'" :href="navMenu.path" target="_blank" @click.stop='()=>{}'></a>
|
|
8
|
+
<el-icon v-if="navMenu.meta&&navMenu.meta.icon"><component :is="navMenu.meta.icon || 'el-icon-menu'"/></el-icon>
|
|
9
|
+
<template #title>
|
|
10
|
+
<span>{{navMenu.meta.title}}</span>
|
|
11
|
+
</template>
|
|
12
|
+
</el-menu-item>
|
|
13
|
+
<el-sub-menu v-else :index="navMenu.path">
|
|
14
|
+
<template #title>
|
|
15
|
+
<el-icon v-if="navMenu.meta&&navMenu.meta.icon"><component :is="navMenu.meta.icon || 'el-icon-menu'"/></el-icon>
|
|
16
|
+
<span>{{navMenu.meta.title}}</span>
|
|
17
|
+
</template>
|
|
18
|
+
<NavMenu :navMenus="navMenu.children"></NavMenu>
|
|
19
|
+
</el-sub-menu>
|
|
20
|
+
</template>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script>
|
|
24
|
+
export default {
|
|
25
|
+
name: 'NavMenu',
|
|
26
|
+
props: ['navMenus'],
|
|
27
|
+
data() {
|
|
28
|
+
return {}
|
|
29
|
+
},
|
|
30
|
+
methods: {
|
|
31
|
+
hasChildren(item) {
|
|
32
|
+
return item.children && !item.children.every(item => item.meta.hidden)
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
</script>
|