cloud-web-corejs 1.0.54-dev.650 → 1.0.54-dev.652
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/package.json +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +135 -32
- package/src/components/xform/form-designer/setting-panel/property-editor/buttonIcon-editor.vue +14 -15
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/icon-editor.vue +14 -15
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +18 -17
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +26 -26
- package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +12 -14
- package/src/components/xform/form-designer/setting-panel/property-editor/prefixIcon-editor.vue +14 -15
- package/src/components/xform/form-designer/setting-panel/property-editor/suffixIcon-editor.vue +14 -15
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +207 -194
- package/src/components/xform/icon-picker/icons.json +284 -0
- package/src/components/xform/icon-picker/index.vue +145 -0
- package/src/layout/components/Sidebar/default.vue +76 -132
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
{
|
|
2
|
+
"elementIcons": [
|
|
3
|
+
"platform-eleme",
|
|
4
|
+
"eleme",
|
|
5
|
+
"delete-solid",
|
|
6
|
+
"delete",
|
|
7
|
+
"s-tools",
|
|
8
|
+
"setting",
|
|
9
|
+
"user-solid",
|
|
10
|
+
"user",
|
|
11
|
+
"phone",
|
|
12
|
+
"phone-outline",
|
|
13
|
+
"more",
|
|
14
|
+
"more-outline",
|
|
15
|
+
"star-on",
|
|
16
|
+
"star-off",
|
|
17
|
+
"s-goods",
|
|
18
|
+
"goods",
|
|
19
|
+
"warning",
|
|
20
|
+
"warning-outline",
|
|
21
|
+
"question",
|
|
22
|
+
"info",
|
|
23
|
+
"remove",
|
|
24
|
+
"circle-plus",
|
|
25
|
+
"success",
|
|
26
|
+
"error",
|
|
27
|
+
"zoom-in",
|
|
28
|
+
"zoom-out",
|
|
29
|
+
"remove-outline",
|
|
30
|
+
"circle-plus-outline",
|
|
31
|
+
"circle-check",
|
|
32
|
+
"circle-close",
|
|
33
|
+
"s-help",
|
|
34
|
+
"help",
|
|
35
|
+
"minus",
|
|
36
|
+
"plus",
|
|
37
|
+
"check",
|
|
38
|
+
"close",
|
|
39
|
+
"picture",
|
|
40
|
+
"picture-outline",
|
|
41
|
+
"picture-outline-round",
|
|
42
|
+
"upload",
|
|
43
|
+
"upload2",
|
|
44
|
+
"download",
|
|
45
|
+
"camera-solid",
|
|
46
|
+
"camera",
|
|
47
|
+
"video-camera-solid",
|
|
48
|
+
"video-camera",
|
|
49
|
+
"message-solid",
|
|
50
|
+
"bell",
|
|
51
|
+
"s-cooperation",
|
|
52
|
+
"s-order",
|
|
53
|
+
"s-platform",
|
|
54
|
+
"s-fold",
|
|
55
|
+
"s-unfold",
|
|
56
|
+
"s-operation",
|
|
57
|
+
"s-promotion",
|
|
58
|
+
"s-home",
|
|
59
|
+
"s-release",
|
|
60
|
+
"s-ticket",
|
|
61
|
+
"s-management",
|
|
62
|
+
"s-open",
|
|
63
|
+
"s-shop",
|
|
64
|
+
"s-marketing",
|
|
65
|
+
"s-flag",
|
|
66
|
+
"s-comment",
|
|
67
|
+
"s-finance",
|
|
68
|
+
"s-claim",
|
|
69
|
+
"s-custom",
|
|
70
|
+
"s-opportunity",
|
|
71
|
+
"s-data",
|
|
72
|
+
"s-check",
|
|
73
|
+
"s-grid",
|
|
74
|
+
"menu",
|
|
75
|
+
"share",
|
|
76
|
+
"d-caret",
|
|
77
|
+
"caret-left",
|
|
78
|
+
"caret-right",
|
|
79
|
+
"caret-bottom",
|
|
80
|
+
"caret-top",
|
|
81
|
+
"bottom-left",
|
|
82
|
+
"bottom-right",
|
|
83
|
+
"back",
|
|
84
|
+
"right",
|
|
85
|
+
"bottom",
|
|
86
|
+
"top",
|
|
87
|
+
"top-left",
|
|
88
|
+
"top-right",
|
|
89
|
+
"arrow-left",
|
|
90
|
+
"arrow-right",
|
|
91
|
+
"arrow-down",
|
|
92
|
+
"arrow-up",
|
|
93
|
+
"d-arrow-left",
|
|
94
|
+
"d-arrow-right",
|
|
95
|
+
"video-pause",
|
|
96
|
+
"video-play",
|
|
97
|
+
"refresh",
|
|
98
|
+
"refresh-right",
|
|
99
|
+
"refresh-left",
|
|
100
|
+
"finished",
|
|
101
|
+
"sort",
|
|
102
|
+
"sort-up",
|
|
103
|
+
"sort-down",
|
|
104
|
+
"rank",
|
|
105
|
+
"loading",
|
|
106
|
+
"view",
|
|
107
|
+
"c-scale-to-original",
|
|
108
|
+
"date",
|
|
109
|
+
"edit",
|
|
110
|
+
"edit-outline",
|
|
111
|
+
"folder",
|
|
112
|
+
"folder-opened",
|
|
113
|
+
"folder-add",
|
|
114
|
+
"folder-remove",
|
|
115
|
+
"folder-delete",
|
|
116
|
+
"folder-checked",
|
|
117
|
+
"tickets",
|
|
118
|
+
"document-remove",
|
|
119
|
+
"document-delete",
|
|
120
|
+
"document-copy",
|
|
121
|
+
"document-checked",
|
|
122
|
+
"document",
|
|
123
|
+
"document-add",
|
|
124
|
+
"printer",
|
|
125
|
+
"paperclip",
|
|
126
|
+
"takeaway-box",
|
|
127
|
+
"search",
|
|
128
|
+
"monitor",
|
|
129
|
+
"attract",
|
|
130
|
+
"mobile",
|
|
131
|
+
"scissors",
|
|
132
|
+
"umbrella",
|
|
133
|
+
"headset",
|
|
134
|
+
"brush",
|
|
135
|
+
"mouse",
|
|
136
|
+
"coordinate",
|
|
137
|
+
"magic-stick",
|
|
138
|
+
"reading",
|
|
139
|
+
"data-line",
|
|
140
|
+
"data-board",
|
|
141
|
+
"pie-chart",
|
|
142
|
+
"data-analysis",
|
|
143
|
+
"collection-tag",
|
|
144
|
+
"film",
|
|
145
|
+
"suitcase",
|
|
146
|
+
"suitcase-1",
|
|
147
|
+
"receiving",
|
|
148
|
+
"collection",
|
|
149
|
+
"files",
|
|
150
|
+
"notebook-1",
|
|
151
|
+
"notebook-2",
|
|
152
|
+
"toilet-paper",
|
|
153
|
+
"office-building",
|
|
154
|
+
"school",
|
|
155
|
+
"table-lamp",
|
|
156
|
+
"house",
|
|
157
|
+
"no-smoking",
|
|
158
|
+
"smoking",
|
|
159
|
+
"shopping-cart-full",
|
|
160
|
+
"shopping-cart-1",
|
|
161
|
+
"shopping-cart-2",
|
|
162
|
+
"shopping-bag-1",
|
|
163
|
+
"shopping-bag-2",
|
|
164
|
+
"sold-out",
|
|
165
|
+
"sell",
|
|
166
|
+
"present",
|
|
167
|
+
"box",
|
|
168
|
+
"bank-card",
|
|
169
|
+
"money",
|
|
170
|
+
"coin",
|
|
171
|
+
"wallet",
|
|
172
|
+
"discount",
|
|
173
|
+
"price-tag",
|
|
174
|
+
"news",
|
|
175
|
+
"guide",
|
|
176
|
+
"male",
|
|
177
|
+
"female",
|
|
178
|
+
"thumb",
|
|
179
|
+
"cpu",
|
|
180
|
+
"link",
|
|
181
|
+
"connection",
|
|
182
|
+
"open",
|
|
183
|
+
"turn-off",
|
|
184
|
+
"set-up",
|
|
185
|
+
"chat-round",
|
|
186
|
+
"chat-line-round",
|
|
187
|
+
"chat-square",
|
|
188
|
+
"chat-dot-round",
|
|
189
|
+
"chat-dot-square",
|
|
190
|
+
"chat-line-square",
|
|
191
|
+
"message",
|
|
192
|
+
"postcard",
|
|
193
|
+
"position",
|
|
194
|
+
"turn-off-microphone",
|
|
195
|
+
"microphone",
|
|
196
|
+
"close-notification",
|
|
197
|
+
"bangzhu",
|
|
198
|
+
"time",
|
|
199
|
+
"odometer",
|
|
200
|
+
"crop",
|
|
201
|
+
"aim",
|
|
202
|
+
"switch-button",
|
|
203
|
+
"full-screen",
|
|
204
|
+
"copy-document",
|
|
205
|
+
"mic",
|
|
206
|
+
"stopwatch",
|
|
207
|
+
"medal-1",
|
|
208
|
+
"medal",
|
|
209
|
+
"trophy",
|
|
210
|
+
"trophy-1",
|
|
211
|
+
"first-aid-kit",
|
|
212
|
+
"discover",
|
|
213
|
+
"place",
|
|
214
|
+
"location",
|
|
215
|
+
"location-outline",
|
|
216
|
+
"location-information",
|
|
217
|
+
"add-location",
|
|
218
|
+
"delete-location",
|
|
219
|
+
"map-location",
|
|
220
|
+
"alarm-clock",
|
|
221
|
+
"timer",
|
|
222
|
+
"watch-1",
|
|
223
|
+
"watch",
|
|
224
|
+
"lock",
|
|
225
|
+
"unlock",
|
|
226
|
+
"key",
|
|
227
|
+
"service",
|
|
228
|
+
"mobile-phone",
|
|
229
|
+
"bicycle",
|
|
230
|
+
"truck",
|
|
231
|
+
"ship",
|
|
232
|
+
"basketball",
|
|
233
|
+
"football",
|
|
234
|
+
"soccer",
|
|
235
|
+
"baseball",
|
|
236
|
+
"wind-power",
|
|
237
|
+
"light-rain",
|
|
238
|
+
"lightning",
|
|
239
|
+
"heavy-rain",
|
|
240
|
+
"sunrise",
|
|
241
|
+
"sunrise-1",
|
|
242
|
+
"sunset",
|
|
243
|
+
"sunny",
|
|
244
|
+
"cloudy",
|
|
245
|
+
"partly-cloudy",
|
|
246
|
+
"cloudy-and-sunny",
|
|
247
|
+
"moon",
|
|
248
|
+
"moon-night",
|
|
249
|
+
"dish",
|
|
250
|
+
"dish-1",
|
|
251
|
+
"food",
|
|
252
|
+
"chicken",
|
|
253
|
+
"fork-spoon",
|
|
254
|
+
"knife-fork",
|
|
255
|
+
"burger",
|
|
256
|
+
"tableware",
|
|
257
|
+
"sugar",
|
|
258
|
+
"dessert",
|
|
259
|
+
"ice-cream",
|
|
260
|
+
"hot-water",
|
|
261
|
+
"water-cup",
|
|
262
|
+
"coffee-cup",
|
|
263
|
+
"cold-drink",
|
|
264
|
+
"goblet",
|
|
265
|
+
"goblet-full",
|
|
266
|
+
"goblet-square",
|
|
267
|
+
"goblet-square-full",
|
|
268
|
+
"refrigerator",
|
|
269
|
+
"grape",
|
|
270
|
+
"watermelon",
|
|
271
|
+
"cherry",
|
|
272
|
+
"apple",
|
|
273
|
+
"pear",
|
|
274
|
+
"orange",
|
|
275
|
+
"coffee",
|
|
276
|
+
"ice-tea",
|
|
277
|
+
"ice-drink",
|
|
278
|
+
"milk-tea",
|
|
279
|
+
"potato-strips",
|
|
280
|
+
"lollipop",
|
|
281
|
+
"ice-cream-square",
|
|
282
|
+
"ice-cream-round"
|
|
283
|
+
]
|
|
284
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-select :value="value" :disabled="disabled" clearable @clear="clearHandle">
|
|
3
|
+
<template slot="prefix">
|
|
4
|
+
<span class="icon-picker-selected" v-if="value !== '' && value != null">
|
|
5
|
+
<i :class="value"></i>
|
|
6
|
+
</span>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<el-option class="icon-picker-option" :value="value">
|
|
10
|
+
<div>
|
|
11
|
+
<ul>
|
|
12
|
+
<li
|
|
13
|
+
v-for="icon in icons.elementIcons"
|
|
14
|
+
:key="icon"
|
|
15
|
+
@click="iconClick('el-icon-' + icon)"
|
|
16
|
+
>
|
|
17
|
+
<span><i :class="'el-icon-' + icon"></i></span>
|
|
18
|
+
</li>
|
|
19
|
+
<div class="clearfix"></div>
|
|
20
|
+
</ul>
|
|
21
|
+
</div>
|
|
22
|
+
</el-option>
|
|
23
|
+
</el-select>
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<script>
|
|
27
|
+
import icons from "./icons.json";
|
|
28
|
+
|
|
29
|
+
export default {
|
|
30
|
+
name: "icon-picker",
|
|
31
|
+
props: {
|
|
32
|
+
value: {
|
|
33
|
+
type: String | null,
|
|
34
|
+
required: true,
|
|
35
|
+
},
|
|
36
|
+
disabled: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: false,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
model: {
|
|
42
|
+
prop: "value",
|
|
43
|
+
event: "change",
|
|
44
|
+
},
|
|
45
|
+
data() {
|
|
46
|
+
return {
|
|
47
|
+
icons: icons,
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
methods: {
|
|
51
|
+
iconClick(className) {
|
|
52
|
+
this.$emit("change", className);
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
clearHandle() {
|
|
56
|
+
this.$emit("change", "");
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
</script>
|
|
61
|
+
|
|
62
|
+
<style scoped>
|
|
63
|
+
::v-deep .el-input--prefix .el-input__inner {
|
|
64
|
+
padding-left: 30px;
|
|
65
|
+
}
|
|
66
|
+
::v-deep .el-input--suffix .el-input__inner {
|
|
67
|
+
padding-right: 30px;
|
|
68
|
+
}
|
|
69
|
+
::v-deep .el-input__prefix {
|
|
70
|
+
left: 5px !important;
|
|
71
|
+
right: unset !important;
|
|
72
|
+
line-height: 38px;
|
|
73
|
+
}
|
|
74
|
+
.clearfix {
|
|
75
|
+
clear: both;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.icon-picker-option.el-select-dropdown__item {
|
|
79
|
+
width: 307px;
|
|
80
|
+
height: auto;
|
|
81
|
+
max-height: 200px;
|
|
82
|
+
overflow-y: auto;
|
|
83
|
+
padding: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.icon-picker-option.el-select-dropdown__item.hover,
|
|
87
|
+
.icon-picker-option.el-select-dropdown__item:hover {
|
|
88
|
+
background-color: #fff;
|
|
89
|
+
cursor: default;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.icon-picker-option.el-select-dropdown__item.selected {
|
|
93
|
+
color: #606266;
|
|
94
|
+
font-weight: normal;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.icon-picker-option::-webkit-scrollbar {
|
|
98
|
+
width: 7px;
|
|
99
|
+
background-color: #eee;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.icon-picker-option::-webkit-scrollbar-track {
|
|
103
|
+
background-color: #eee;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.icon-picker-option::-webkit-scrollbar-thumb {
|
|
107
|
+
background: #d7d7d7;
|
|
108
|
+
border-radius: 7px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.icon-picker-option > div {
|
|
112
|
+
cursor: default;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.icon-picker-option ul {
|
|
116
|
+
display: block;
|
|
117
|
+
margin: 0;
|
|
118
|
+
padding: 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.icon-picker-option ul > li {
|
|
122
|
+
display: block;
|
|
123
|
+
margin: 0;
|
|
124
|
+
padding: 0;
|
|
125
|
+
float: left;
|
|
126
|
+
text-align: center;
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
width: 30px;
|
|
129
|
+
height: 30px;
|
|
130
|
+
line-height: 30px;
|
|
131
|
+
font-size: 16px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.icon-picker-option ul > li:hover {
|
|
135
|
+
color: #327edb;
|
|
136
|
+
font-size: 18px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.icon-picker-selected > i {
|
|
140
|
+
color: #333333;
|
|
141
|
+
line-height: 30px;
|
|
142
|
+
margin-left: 6px;
|
|
143
|
+
font-size: 16px;
|
|
144
|
+
}
|
|
145
|
+
</style>
|