@farris/ui-vue 1.2.4 → 1.2.5
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/components/accordion/index.esm.js +58 -58
- package/components/accordion/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +1 -1
- package/components/capsule/index.umd.cjs +1 -1
- package/components/common/index.esm.js +2 -2
- package/components/common/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +137 -135
- package/components/condition/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +2316 -2299
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +1929 -1920
- package/components/data-view/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +1 -1
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-canvas/style.css +1 -1
- package/components/designer-outline/index.esm.js +44 -42
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/designer-toolbox/index.esm.js +28 -467
- package/components/designer-toolbox/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +836 -790
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +382 -378
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +1167 -1150
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +131 -127
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +1 -1
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/flow-canvas/style.css +1 -1
- package/components/list-view/index.esm.js +128 -124
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +2156 -2139
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +3137 -3120
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +511 -469
- package/components/nav/index.umd.cjs +2 -2
- package/components/order/index.esm.js +859 -815
- package/components/order/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +491 -449
- package/components/pagination/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +75 -73
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +63 -61
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +2002 -1956
- package/components/schema-selector/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +165 -192
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +2 -2
- package/components/tabs/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +95 -93
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +2316 -2299
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +296 -295
- package/components/tree-view/index.umd.cjs +1 -1
- package/farris.all.esm.js +2517 -2483
- package/farris.all.umd.cjs +7 -7
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/condition/index.d.ts +60 -1
- package/types/data-view/components/column-setting/column-setting.component.d.ts +2 -1
- package/types/data-view/composition/types.d.ts +2 -0
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +3 -3
- package/types/list-view/src/composition/types.d.ts +1 -1
- package/types/message-box/index.d.ts +84 -1
- package/types/notify/index.d.ts +84 -1
- package/types/tree-grid/src/schema/column-resolver.d.ts +3 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as m, ref as i, watch as C, createVNode as a } from "vue";
|
|
2
2
|
const v = {
|
|
3
3
|
id: { type: String, default: "" },
|
|
4
4
|
dragula: { type: Object }
|
|
5
|
-
},
|
|
5
|
+
}, T = [
|
|
6
6
|
{
|
|
7
7
|
type: "input",
|
|
8
8
|
name: "输入类控件",
|
|
@@ -11,23 +11,13 @@ const v = {
|
|
|
11
11
|
id: "TextBox",
|
|
12
12
|
type: "input-group",
|
|
13
13
|
name: "文本",
|
|
14
|
-
category: "input"
|
|
15
|
-
updating: !0
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
id: "Text",
|
|
19
|
-
type: "text",
|
|
20
|
-
name: "静态文本",
|
|
21
|
-
category: "input",
|
|
22
|
-
icon: "static-text"
|
|
14
|
+
category: "input"
|
|
23
15
|
},
|
|
24
16
|
{
|
|
25
17
|
id: "MultiTextBox",
|
|
26
|
-
type: "
|
|
18
|
+
type: "textarea",
|
|
27
19
|
name: "多行文本",
|
|
28
|
-
category: "input"
|
|
29
|
-
icon: "multi-text-box",
|
|
30
|
-
updating: !0
|
|
20
|
+
category: "input"
|
|
31
21
|
},
|
|
32
22
|
{
|
|
33
23
|
id: "DateBox",
|
|
@@ -35,32 +25,12 @@ const v = {
|
|
|
35
25
|
name: "日期",
|
|
36
26
|
category: "input"
|
|
37
27
|
},
|
|
38
|
-
{
|
|
39
|
-
id: "TimePicker",
|
|
40
|
-
type: "time-picker",
|
|
41
|
-
name: "时间选择",
|
|
42
|
-
category: "input"
|
|
43
|
-
},
|
|
44
28
|
{
|
|
45
29
|
id: "EnumField",
|
|
46
30
|
type: "combo-list",
|
|
47
31
|
name: "下拉列表",
|
|
48
32
|
category: "input"
|
|
49
33
|
},
|
|
50
|
-
{
|
|
51
|
-
id: "Dropdown",
|
|
52
|
-
type: "dropdown",
|
|
53
|
-
name: "下拉列表2",
|
|
54
|
-
category: "input",
|
|
55
|
-
icon: "combo-list"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
id: "NumberRange",
|
|
59
|
-
type: "number-range",
|
|
60
|
-
name: "数值区间",
|
|
61
|
-
category: "input",
|
|
62
|
-
icon: "number-spinner"
|
|
63
|
-
},
|
|
64
34
|
{
|
|
65
35
|
id: "NumericBox",
|
|
66
36
|
type: "number-spinner",
|
|
@@ -69,10 +39,15 @@ const v = {
|
|
|
69
39
|
},
|
|
70
40
|
{
|
|
71
41
|
id: "CheckBox",
|
|
72
|
-
type: "
|
|
42
|
+
type: "check-box",
|
|
43
|
+
name: "复选框",
|
|
44
|
+
category: "input"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: "CheckBoxGroup",
|
|
48
|
+
type: "check-group",
|
|
73
49
|
name: "复选框组",
|
|
74
|
-
category: "input"
|
|
75
|
-
icon: "check-group"
|
|
50
|
+
category: "input"
|
|
76
51
|
},
|
|
77
52
|
{
|
|
78
53
|
id: "RadioGroup",
|
|
@@ -86,454 +61,40 @@ const v = {
|
|
|
86
61
|
name: "开关",
|
|
87
62
|
category: "input"
|
|
88
63
|
},
|
|
89
|
-
{
|
|
90
|
-
id: "Capsule",
|
|
91
|
-
type: "capsule",
|
|
92
|
-
name: "选项卡",
|
|
93
|
-
category: "input",
|
|
94
|
-
icon: "switch"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
id: "Image",
|
|
98
|
-
type: "image",
|
|
99
|
-
name: "图像",
|
|
100
|
-
category: "input",
|
|
101
|
-
updating: !0
|
|
102
|
-
},
|
|
103
64
|
{
|
|
104
65
|
id: "LookupEdit",
|
|
105
66
|
type: "lookup",
|
|
106
67
|
name: "帮助",
|
|
107
|
-
category: "input"
|
|
108
|
-
updating: !0
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
id: "RichTextBox",
|
|
112
|
-
type: "rich-text-box",
|
|
113
|
-
name: "富文本",
|
|
114
|
-
category: "input",
|
|
115
|
-
updating: !0
|
|
68
|
+
category: "input"
|
|
116
69
|
},
|
|
117
70
|
{
|
|
118
71
|
id: "InputGroup",
|
|
119
72
|
type: "input-group",
|
|
120
73
|
name: "智能输入框",
|
|
121
|
-
category: "input",
|
|
122
|
-
updating: !0
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
id: "LanguageTextBox",
|
|
126
|
-
type: "language-text-box",
|
|
127
|
-
name: "多语言输入框",
|
|
128
|
-
category: "input",
|
|
129
|
-
updating: !0
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
id: "Tags",
|
|
133
|
-
type: "tags",
|
|
134
|
-
name: "标记组",
|
|
135
|
-
category: "input",
|
|
136
|
-
icon: "tag"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
id: "ColorPicker",
|
|
140
|
-
type: "color-picker",
|
|
141
|
-
name: "颜色选择器",
|
|
142
|
-
category: "input",
|
|
143
|
-
icon: "input-group"
|
|
144
|
-
}
|
|
145
|
-
]
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
type: "dataCollection",
|
|
149
|
-
name: "数据集合类控件",
|
|
150
|
-
items: [
|
|
151
|
-
{
|
|
152
|
-
id: "Form",
|
|
153
|
-
type: "response-form",
|
|
154
|
-
name: "卡片面板",
|
|
155
|
-
category: "dataCollection"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
id: "DataGrid",
|
|
159
|
-
type: "data-grid",
|
|
160
|
-
name: "表格",
|
|
161
|
-
category: "dataCollection"
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
id: "TreeGrid",
|
|
165
|
-
type: "tree-grid",
|
|
166
|
-
name: "树表格",
|
|
167
|
-
category: "dataCollection",
|
|
168
|
-
updating: !0
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
id: "TreeView",
|
|
172
|
-
type: "tree-view",
|
|
173
|
-
name: "树列表",
|
|
174
|
-
category: "dataCollection",
|
|
175
|
-
icon: "tree-grid"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
id: "ListView",
|
|
179
|
-
type: "list-view",
|
|
180
|
-
name: "列表",
|
|
181
|
-
category: "dataCollection"
|
|
182
|
-
}
|
|
183
|
-
]
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
type: "command",
|
|
187
|
-
name: "命令类控件",
|
|
188
|
-
items: [
|
|
189
|
-
{
|
|
190
|
-
id: "Button",
|
|
191
|
-
type: "button-group",
|
|
192
|
-
name: "按钮",
|
|
193
|
-
category: "command"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
id: "ResponseToolbar",
|
|
197
|
-
type: "response-toolbar",
|
|
198
|
-
name: "响应式工具条",
|
|
199
|
-
category: "command",
|
|
200
|
-
icon: "button-group"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
id: "NavTab",
|
|
204
|
-
type: "nav-tab",
|
|
205
|
-
name: "标签类导航",
|
|
206
|
-
category: "command",
|
|
207
|
-
updating: !0
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
id: "FilterBar",
|
|
211
|
-
type: "filter-bar",
|
|
212
|
-
name: "筛选条",
|
|
213
|
-
category: "commands",
|
|
214
|
-
icon: "list-filter"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
id: "QuerySolution",
|
|
218
|
-
type: "query-solution",
|
|
219
|
-
name: "筛选方案",
|
|
220
|
-
category: "commands",
|
|
221
|
-
icon: "query-solution"
|
|
222
|
-
}
|
|
223
|
-
]
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
type: "container",
|
|
227
|
-
name: "容器类控件",
|
|
228
|
-
items: [
|
|
229
|
-
{
|
|
230
|
-
id: "Tab",
|
|
231
|
-
type: "tabs",
|
|
232
|
-
name: "标签页区域",
|
|
233
|
-
category: "container"
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
id: "HtmlTemplate",
|
|
237
|
-
type: "html-template",
|
|
238
|
-
name: "模版容器",
|
|
239
|
-
category: "container",
|
|
240
|
-
updating: !0
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
id: "ContentContainer",
|
|
244
|
-
type: "content-container",
|
|
245
|
-
name: "容器",
|
|
246
|
-
category: "container"
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
id: "Section",
|
|
250
|
-
type: "section",
|
|
251
|
-
name: "分组面板",
|
|
252
|
-
category: "container"
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
id: "Accordion",
|
|
256
|
-
type: "accordion",
|
|
257
|
-
name: "收折面板",
|
|
258
|
-
category: "container",
|
|
259
|
-
icon: "zhediezhankai"
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
id: "FieldSet",
|
|
263
|
-
type: "field-set",
|
|
264
|
-
name: "分组",
|
|
265
|
-
category: "container",
|
|
266
|
-
updating: !0
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
id: "ExternalContainer",
|
|
270
|
-
type: "external-container",
|
|
271
|
-
name: "外部容器",
|
|
272
|
-
category: "container",
|
|
273
|
-
icon: "content-container"
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
id: "ModalContainer",
|
|
277
|
-
type: "modal-container",
|
|
278
|
-
name: "弹窗容器",
|
|
279
|
-
category: "container",
|
|
280
|
-
icon: "content-container",
|
|
281
|
-
updating: !0
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
id: "Nav",
|
|
285
|
-
type: "nav",
|
|
286
|
-
name: "导航",
|
|
287
|
-
category: "container",
|
|
288
|
-
icon: "list-nav"
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
id: "ListNav",
|
|
292
|
-
type: "list-nav",
|
|
293
|
-
name: "列表导航",
|
|
294
|
-
category: "container"
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
id: "Header",
|
|
298
|
-
type: "page-header",
|
|
299
|
-
name: "页头",
|
|
300
|
-
category: "container",
|
|
301
|
-
icon: "page-header"
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
id: "Footer",
|
|
305
|
-
type: "page-footer",
|
|
306
|
-
name: "页脚",
|
|
307
|
-
category: "container",
|
|
308
|
-
icon: "modal-footer"
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
id: "Pagination",
|
|
312
|
-
type: "pagination",
|
|
313
|
-
name: "分页条",
|
|
314
|
-
category: "container",
|
|
315
|
-
icon: "header"
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
id: "Splitter",
|
|
319
|
-
type: "splitter",
|
|
320
|
-
name: "分栏面板",
|
|
321
|
-
category: "container"
|
|
322
|
-
}
|
|
323
|
-
]
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
type: "business",
|
|
327
|
-
name: "业务类控件",
|
|
328
|
-
items: [
|
|
329
|
-
{
|
|
330
|
-
id: "Avatar",
|
|
331
|
-
type: "avatar",
|
|
332
|
-
name: "头像",
|
|
333
74
|
category: "input"
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
id: "Calendar",
|
|
337
|
-
type: "calendar",
|
|
338
|
-
name: "日程表",
|
|
339
|
-
category: "dataCollection",
|
|
340
|
-
icon: "date-picker"
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
id: "DateView",
|
|
344
|
-
type: "date-view",
|
|
345
|
-
name: "日期导航",
|
|
346
|
-
category: "commands",
|
|
347
|
-
icon: "date-picker"
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
id: "PersonnelSelector",
|
|
351
|
-
type: "personnel-selector",
|
|
352
|
-
name: "人员选择",
|
|
353
|
-
category: "input",
|
|
354
|
-
updating: !0
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
id: "OrganizationSelector",
|
|
358
|
-
type: "organization-selector",
|
|
359
|
-
name: "组织选择",
|
|
360
|
-
category: "input",
|
|
361
|
-
updating: !0
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
id: "Uploader",
|
|
365
|
-
type: "uploader",
|
|
366
|
-
name: "附件上传预览",
|
|
367
|
-
category: "uploader",
|
|
368
|
-
icon: "file-upload"
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
id: "DiscussionEditor",
|
|
372
|
-
type: "discussion-editor",
|
|
373
|
-
name: "评论编辑区",
|
|
374
|
-
category: "discussion",
|
|
375
|
-
icon: "discussion-editor",
|
|
376
|
-
updating: !0
|
|
377
|
-
},
|
|
378
|
-
{
|
|
379
|
-
id: "DiscussionList",
|
|
380
|
-
type: "discussion-list",
|
|
381
|
-
name: "评论列表",
|
|
382
|
-
category: "discussion",
|
|
383
|
-
icon: "discussion-list",
|
|
384
|
-
updating: !0
|
|
385
|
-
},
|
|
386
|
-
{
|
|
387
|
-
id: "Steps",
|
|
388
|
-
type: "step",
|
|
389
|
-
name: "步骤条",
|
|
390
|
-
category: "commands",
|
|
391
|
-
icon: "steps"
|
|
392
|
-
},
|
|
393
|
-
{
|
|
394
|
-
id: "SearchBox",
|
|
395
|
-
type: "search-box",
|
|
396
|
-
name: "搜索框",
|
|
397
|
-
category: "commands",
|
|
398
|
-
icon: "sousuo"
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
id: "Progress",
|
|
402
|
-
type: "progress",
|
|
403
|
-
name: "进度条",
|
|
404
|
-
category: "commands",
|
|
405
|
-
icon: "liushuihao"
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
id: "Rate",
|
|
409
|
-
type: "rate",
|
|
410
|
-
name: "评分",
|
|
411
|
-
category: "commands",
|
|
412
|
-
icon: "dingzhi"
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
id: "Order",
|
|
416
|
-
type: "order",
|
|
417
|
-
name: "排序列",
|
|
418
|
-
category: "commands",
|
|
419
|
-
icon: "multi-select"
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
id: "VerifyDetail",
|
|
423
|
-
type: "verify-detail",
|
|
424
|
-
name: "验证",
|
|
425
|
-
category: "commands",
|
|
426
|
-
icon: "approval-logs"
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
id: "Transfer",
|
|
430
|
-
type: "transfer",
|
|
431
|
-
name: "穿梭框",
|
|
432
|
-
category: "commands",
|
|
433
|
-
icon: "multi-select"
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
id: "Weather",
|
|
437
|
-
type: "weather",
|
|
438
|
-
name: "天气",
|
|
439
|
-
category: "dataCollection",
|
|
440
|
-
icon: "anheimoshi"
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
id: "Wizard",
|
|
444
|
-
type: "wizard",
|
|
445
|
-
name: "向导",
|
|
446
|
-
category: "container",
|
|
447
|
-
updating: !0
|
|
448
|
-
},
|
|
449
|
-
{
|
|
450
|
-
id: "ImageCropper",
|
|
451
|
-
type: "image-cropper",
|
|
452
|
-
name: "图片裁切",
|
|
453
|
-
category: "container",
|
|
454
|
-
icon: "image"
|
|
455
|
-
}
|
|
456
|
-
]
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
type: "response-layout",
|
|
460
|
-
name: "布局容器",
|
|
461
|
-
items: [
|
|
462
|
-
{
|
|
463
|
-
id: "ResponseLayout2",
|
|
464
|
-
type: "response-layout",
|
|
465
|
-
name: "1列",
|
|
466
|
-
category: "container",
|
|
467
|
-
feature: {
|
|
468
|
-
splitter: "12"
|
|
469
|
-
},
|
|
470
|
-
icon: "response-layout-1"
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
id: "ResponseLayout2",
|
|
474
|
-
type: "response-layout",
|
|
475
|
-
name: "2列",
|
|
476
|
-
category: "container",
|
|
477
|
-
feature: {
|
|
478
|
-
splitter: "6:6"
|
|
479
|
-
},
|
|
480
|
-
icon: "response-layout-2"
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
id: "ResponseLayout3",
|
|
484
|
-
type: "response-layout",
|
|
485
|
-
name: "3列",
|
|
486
|
-
category: "container",
|
|
487
|
-
feature: {
|
|
488
|
-
splitter: "4:4:4"
|
|
489
|
-
},
|
|
490
|
-
icon: "response-layout-3"
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
id: "ResponseLayout4",
|
|
494
|
-
type: "response-layout",
|
|
495
|
-
name: "4列",
|
|
496
|
-
category: "container",
|
|
497
|
-
feature: {
|
|
498
|
-
splitter: "3:3:3:3"
|
|
499
|
-
},
|
|
500
|
-
icon: "response-layout-4"
|
|
501
|
-
}
|
|
502
|
-
]
|
|
503
|
-
},
|
|
504
|
-
{
|
|
505
|
-
type: "user-business",
|
|
506
|
-
name: "用户业务组件",
|
|
507
|
-
items: [
|
|
508
|
-
{
|
|
509
|
-
id: "SmokeDetector",
|
|
510
|
-
type: "smoke-detector",
|
|
511
|
-
name: "烟雾报警器",
|
|
512
|
-
category: "command",
|
|
513
|
-
icon: "response-layout-1"
|
|
514
75
|
}
|
|
515
76
|
]
|
|
516
77
|
}
|
|
517
|
-
], x = /* @__PURE__ */
|
|
78
|
+
], x = /* @__PURE__ */ m({
|
|
518
79
|
name: "FDesignerToolbox",
|
|
519
80
|
props: v,
|
|
520
81
|
emits: [],
|
|
521
82
|
setup(n) {
|
|
522
|
-
const
|
|
523
|
-
function
|
|
83
|
+
const o = i(T), r = i(n.dragula);
|
|
84
|
+
function d(e, t) {
|
|
524
85
|
t.isHide = !t.isHide;
|
|
525
86
|
}
|
|
526
|
-
function
|
|
87
|
+
function c(e) {
|
|
527
88
|
return {
|
|
528
89
|
"f-icon": !0,
|
|
529
90
|
"f-icon-arrow-60-down": !e.isHide,
|
|
530
91
|
"f-icon-arrow-e": e.isHide
|
|
531
92
|
};
|
|
532
93
|
}
|
|
533
|
-
function
|
|
94
|
+
function l(e) {
|
|
534
95
|
return a("div", {
|
|
535
96
|
class: "card-header",
|
|
536
|
-
onClick: (t) =>
|
|
97
|
+
onClick: (t) => d(t, e)
|
|
537
98
|
}, [a("div", {
|
|
538
99
|
class: "panel-item-title"
|
|
539
100
|
}, [a("div", {
|
|
@@ -543,7 +104,7 @@ const v = {
|
|
|
543
104
|
}, [a("div", {
|
|
544
105
|
class: "f-toolbar mr-2"
|
|
545
106
|
}, [a("span", {
|
|
546
|
-
class:
|
|
107
|
+
class: c(e)
|
|
547
108
|
}, null)]), a("div", {
|
|
548
109
|
class: "f-title f-utils-fill d-flex justify-content-between"
|
|
549
110
|
}, [a("span", null, [e.name])])])])])]);
|
|
@@ -564,7 +125,7 @@ const v = {
|
|
|
564
125
|
}, g = `fd_pc-${e.icon || e.type}`;
|
|
565
126
|
return t[g] = !0, t;
|
|
566
127
|
}
|
|
567
|
-
function
|
|
128
|
+
function p(e, t) {
|
|
568
129
|
return a("div", {
|
|
569
130
|
class: s(e),
|
|
570
131
|
"data-sourceType": "control",
|
|
@@ -582,25 +143,25 @@ const v = {
|
|
|
582
143
|
class: "controlName"
|
|
583
144
|
}, [e.name])])]);
|
|
584
145
|
}
|
|
585
|
-
function
|
|
146
|
+
function y(e) {
|
|
586
147
|
return a("div", {
|
|
587
148
|
class: "card-body px-2 py-0 border-0 controlCategory no-drop"
|
|
588
|
-
}, [e.items.map((t) =>
|
|
149
|
+
}, [e.items.map((t) => p(t, e))]);
|
|
589
150
|
}
|
|
590
|
-
function
|
|
151
|
+
function f(e) {
|
|
591
152
|
return !e.hideInControlBox && a("div", {
|
|
592
153
|
class: "farris-panel-item card border-0"
|
|
593
|
-
}, [
|
|
154
|
+
}, [l(e), y(e)]);
|
|
594
155
|
}
|
|
595
156
|
return C(() => n.dragula, (e) => {
|
|
596
157
|
var t;
|
|
597
|
-
|
|
158
|
+
r.value = e, (t = r.value) == null || t.attachToolbox();
|
|
598
159
|
}), () => a("div", {
|
|
599
160
|
class: "controlBox f-utils-fill-flex-column"
|
|
600
161
|
}, [a("div", {
|
|
601
162
|
class: "farris-panel f-utils-fill-flex-column",
|
|
602
163
|
style: "overflow:auto;"
|
|
603
|
-
}, [
|
|
164
|
+
}, [o.value.map((e) => f(e))])]);
|
|
604
165
|
}
|
|
605
166
|
});
|
|
606
167
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(n,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(n=typeof globalThis<"u"?globalThis:n||self,t(n["designer-toolbox"]={},n.Vue))})(this,function(n,t){"use strict";const
|
|
1
|
+
(function(n,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(n=typeof globalThis<"u"?globalThis:n||self,t(n["designer-toolbox"]={},n.Vue))})(this,function(n,t){"use strict";const i={id:{type:String,default:""},dragula:{type:Object}},d=[{type:"input",name:"输入类控件",items:[{id:"TextBox",type:"input-group",name:"文本",category:"input"},{id:"MultiTextBox",type:"textarea",name:"多行文本",category:"input"},{id:"DateBox",type:"date-picker",name:"日期",category:"input"},{id:"EnumField",type:"combo-list",name:"下拉列表",category:"input"},{id:"NumericBox",type:"number-spinner",name:"数值",category:"input"},{id:"CheckBox",type:"check-box",name:"复选框",category:"input"},{id:"CheckBoxGroup",type:"check-group",name:"复选框组",category:"input"},{id:"RadioGroup",type:"radio-group",name:"单选组",category:"input"},{id:"SwitchField",type:"switch",name:"开关",category:"input"},{id:"LookupEdit",type:"lookup",name:"帮助",category:"input"},{id:"InputGroup",type:"input-group",name:"智能输入框",category:"input"}]}],c=t.defineComponent({name:"FDesignerToolbox",props:i,emits:[],setup(r){const s=t.ref(d),o=t.ref(r.dragula);function l(e,a){a.isHide=!a.isHide}function p(e){return{"f-icon":!0,"f-icon-arrow-60-down":!e.isHide,"f-icon-arrow-e":e.isHide}}function u(e){return t.createVNode("div",{class:"card-header",onClick:a=>l(a,e)},[t.createVNode("div",{class:"panel-item-title"},[t.createVNode("div",{class:"f-section-formgroup-legend"},[t.createVNode("div",{class:"f-header px-2 col-form-label"},[t.createVNode("div",{class:"f-toolbar mr-2"},[t.createVNode("span",{class:p(e)},null)]),t.createVNode("div",{class:"f-title f-utils-fill d-flex justify-content-between"},[t.createVNode("span",null,[e.name])])])])])])}function f(e){return{"d-none":e.dependentParent||e.hideInControlBox,controlPanel:!0,"drag-copy":!0,"no-drag":e.disable,updating:e.updating}}function y(e){const a={farrisControlIcon:!0,"fd-i-Family":!0},N=`fd_pc-${e.icon||e.type}`;return a[N]=!0,a}function g(e,a){return t.createVNode("div",{class:f(e),"data-sourceType":"control","data-controlType":e.type,"data-controlTypeName":e.name,"data-category":e.category,"data-feature":e.feature?JSON.stringify(e.feature):"","data-fieldType":e.fieldType,"data-templateId":e.id,"data-templateCategory":e.templateCategory,hidden:a.isHide},[t.createVNode("div",null,[t.createVNode("div",{class:y(e)},null),t.createVNode("div",{class:"controlName"},[e.name])])])}function m(e){return t.createVNode("div",{class:"card-body px-2 py-0 border-0 controlCategory no-drop"},[e.items.map(a=>g(a,e))])}function C(e){return!e.hideInControlBox&&t.createVNode("div",{class:"farris-panel-item card border-0"},[u(e),m(e)])}return t.watch(()=>r.dragula,e=>{var a;o.value=e,(a=o.value)==null||a.attachToolbox()}),()=>t.createVNode("div",{class:"controlBox f-utils-fill-flex-column"},[t.createVNode("div",{class:"farris-panel f-utils-fill-flex-column",style:"overflow:auto;"},[s.value.map(e=>C(e))])])}});n.FDesignerToolbox=c,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
|