@web-utils/component 2.7.2 → 2.7.4
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/dist/chunks/AfdColumn.vue_vue_type_template_lang.768f2ed2.js +302 -0
- package/dist/chunks/ConfigArray.vue_vue_type_template_lang.66483daa.js +51 -0
- package/dist/chunks/ConfigColor.vue_vue_type_template_lang.cd880091.js +24 -0
- package/dist/chunks/ConfigCustom.vue_vue_type_template_lang.6e03d7fd.js +52 -0
- package/dist/chunks/ConfigDate.vue_vue_type_template_lang.420fa897.js +104 -0
- package/dist/chunks/ConfigDynamic.vue_vue_type_template_lang.82d24ab0.js +133 -0
- package/dist/chunks/ConfigEvent.vue_vue_type_template_lang.5e8ed6cc.js +96 -0
- package/dist/chunks/ConfigGroup.vue_vue_type_template_lang.44117322.js +48 -0
- package/dist/chunks/ConfigInput.vue_vue_type_template_lang.cc1eb052.js +96 -0
- package/dist/chunks/ConfigMap.vue_vue_type_template_lang.daee4d38.js +31 -0
- package/dist/chunks/ConfigNumber.vue_vue_type_template_lang.d60231d7.js +130 -0
- package/dist/chunks/ConfigRate.vue_vue_type_style_index_0_scoped_true_lang.cf5d437d.js +125 -0
- package/dist/chunks/ConfigSelect.vue_vue_type_template_lang.7db7e57f.js +483 -0
- package/dist/chunks/ConfigSlider.vue_vue_type_template_lang.27b8cc7b.js +99 -0
- package/dist/chunks/ConfigSwitch.vue_vue_type_style_index_0_scoped_true_lang.4caf1bd0.js +54 -0
- package/dist/chunks/ConfigTable.vue_vue_type_template_lang.3e8136d9.js +341 -0
- package/dist/chunks/ConfigTextarea.vue_vue_type_template_lang.5cddf41c.js +88 -0
- package/dist/chunks/ConfigTitle.vue_vue_type_template_lang.57d9deb5.js +87 -0
- package/dist/chunks/ConfigTree.vue_vue_type_style_index_0_scoped_true_lang.3770c37e.js +464 -0
- package/dist/chunks/ConfigUEditor.vue_vue_type_template_lang.9726b4f5.js +240 -0
- package/dist/chunks/ConfigUpload.vue_vue_type_template_lang.531a9b2a.js +471 -0
- package/dist/chunks/FormConfig.vue_vue_type_template_lang.85b4ee87.js +232 -0
- package/dist/chunks/WidgetConfig.vue_vue_type_template_lang.f903c9b2.js +1765 -0
- package/dist/chunks/WidgetForm.vue_vue_type_template_lang.82248338.js +242 -0
- package/dist/chunks/WidgetFormGroup.vue_vue_type_template_lang.c636aabd.js +266 -0
- package/dist/chunks/WidgetFormItem.vue_vue_type_template_lang.48d55a5c.js +24 -0
- package/dist/chunks/WidgetFormTable.vue_vue_type_template_lang.30625146.js +228 -0
- package/dist/chunks/dataformat.d3fd2d1b.js +157 -0
- package/dist/chunks/{detail.a3249549.js → detail.ac4d421a.js} +7 -7
- package/dist/chunks/{dic.5f7e3523.js → dic.79d9f595.js} +28 -27
- package/dist/chunks/{event.50c365eb.js → event.43b42228.js} +7 -6
- package/dist/chunks/{init.352281f5.js → init.3b47bb80.js} +8 -7
- package/dist/chunks/{packages.5d7a86c4.js → packages.6f252850.js} +5 -61
- package/dist/chunks/{util.5053d54e.js → util.80e28481.js} +37 -51
- package/dist/components/afd-column/index.js +54 -0
- package/dist/components/chat/index.js +1 -1
- package/dist/components/code/index.js +1 -1
- package/dist/components/column/index.js +8 -7
- package/dist/components/column-default/index.js +1 -1
- package/dist/components/column-dynamic/index.js +1 -1
- package/dist/components/column-menu/index.js +1 -1
- package/dist/components/column-slot/index.js +27 -26
- package/dist/components/config-array/index.js +26 -0
- package/dist/components/config-color/index.js +26 -0
- package/dist/components/config-custom/index.js +60 -0
- package/dist/components/config-date/index.js +26 -0
- package/dist/components/config-dynamic/index.js +26 -0
- package/dist/components/config-event/index.js +72 -0
- package/dist/components/config-group/index.js +34 -0
- package/dist/components/config-input/index.js +26 -0
- package/dist/components/config-map/index.js +26 -0
- package/dist/components/config-number/index.js +26 -0
- package/dist/components/config-rate/index.js +69 -0
- package/dist/components/config-rate/style.css +1 -0
- package/dist/components/config-select/index.js +88 -0
- package/dist/components/config-slider/index.js +26 -0
- package/dist/components/config-switch/index.js +31 -0
- package/dist/components/config-switch/style.css +1 -0
- package/dist/components/config-table/index.js +120 -0
- package/dist/components/config-textarea/index.js +26 -0
- package/dist/components/config-title/index.js +31 -0
- package/dist/components/config-tree/index.js +120 -0
- package/dist/components/config-tree/style.css +1 -0
- package/dist/components/config-u-editor/index.js +32 -0
- package/dist/components/config-upload/index.js +56 -0
- package/dist/components/custom-scrollbar/index.js +6 -1
- package/dist/components/dialog-excel/index.js +2 -2
- package/dist/components/dialog-filter/index.js +1 -1
- package/dist/components/dialog-form/index.js +8 -7
- package/dist/components/flex-item/index.js +4 -1
- package/dist/components/flow/index.js +1 -1
- package/dist/components/flow-node/index.js +1 -1
- package/dist/components/form-config/index.js +26 -0
- package/dist/components/form-group/index.js +1 -1
- package/dist/components/form-temp/index.js +2 -2
- package/dist/components/{array → fy-array}/index.js +5 -5
- package/dist/components/{array → fy-array}/style.css +0 -0
- package/dist/components/fy-cascader/index.js +1 -1
- package/dist/components/fy-checkbox/index.js +1 -1
- package/dist/components/fy-curd/index.js +37 -131
- package/dist/components/fy-date/index.js +1 -1
- package/dist/components/fy-dialog-form/index.js +9 -8
- package/dist/components/{draggable → fy-draggable}/index.js +2 -2
- package/dist/components/{draggable → fy-draggable}/style.css +0 -0
- package/dist/components/fy-dynamic/index.js +2 -2
- package/dist/components/{empty → fy-empty}/index.js +6 -6
- package/dist/components/{empty → fy-empty}/style.css +0 -0
- package/dist/components/fy-form/index.js +9 -8
- package/dist/components/fy-form-design/index.js +1371 -0
- package/dist/components/fy-form-design/style.css +1 -0
- package/dist/components/fy-input/index.js +1 -1
- package/dist/components/fy-input-color/index.js +1 -1
- package/dist/components/fy-input-icon/index.js +1 -1
- package/dist/components/fy-input-map/index.js +4 -4
- package/dist/components/fy-input-number/index.js +1 -1
- package/dist/components/fy-input-table/index.js +4 -4
- package/dist/components/fy-input-tree/index.js +2 -2
- package/dist/components/fy-radio/index.js +1 -1
- package/dist/components/fy-rate/index.js +1 -1
- package/dist/components/fy-select/index.js +18 -17
- package/dist/components/fy-slider/index.js +2 -2
- package/dist/components/fy-switch/index.js +1 -1
- package/dist/components/fy-time/index.js +2 -2
- package/dist/components/fy-title/index.js +1 -1
- package/dist/components/fy-tree/index.js +7 -6
- package/dist/components/fy-upload/index.js +11 -10
- package/dist/components/header-menu/index.js +1 -1
- package/dist/components/header-search/index.js +2 -2
- package/dist/components/license/index.js +5 -5
- package/dist/components/login/index.js +9 -8
- package/dist/components/record-video/index.js +1 -1
- package/dist/components/search/index.js +10 -9
- package/dist/components/sign/index.js +1 -1
- package/dist/components/table-column/index.js +4 -1
- package/dist/components/table-page/index.js +9 -6
- package/dist/components/text-ellipsis/index.js +1 -1
- package/dist/components/verify/index.js +1 -1
- package/dist/components/watermark/index.js +5 -1
- package/dist/components/widget-config/index.js +107 -0
- package/dist/components/widget-form/index.js +68 -0
- package/dist/components/widget-form-group/index.js +91 -0
- package/dist/components/widget-form-item/index.js +70 -0
- package/dist/components/widget-form-table/index.js +90 -0
- package/dist/index.css +761 -201
- package/dist/index.es.js +24037 -16605
- package/package.json +6 -4
- package/web-types.json +1880 -1781
- package/dist/chunks/dataformat.fb35ee10.js +0 -61
|
@@ -0,0 +1,464 @@
|
|
|
1
|
+
var d = function() {
|
|
2
|
+
var a = this, o = a.$createElement, t = a._self._c || o;
|
|
3
|
+
return t("div", [t("ElFormItem", {
|
|
4
|
+
attrs: {
|
|
5
|
+
label: "占位内容"
|
|
6
|
+
}
|
|
7
|
+
}, [t("ElInput", {
|
|
8
|
+
attrs: {
|
|
9
|
+
clearable: "",
|
|
10
|
+
placeholder: "占位内容"
|
|
11
|
+
},
|
|
12
|
+
model: {
|
|
13
|
+
value: a.data.placeholder,
|
|
14
|
+
callback: function(e) {
|
|
15
|
+
a.$set(a.data, "placeholder", e);
|
|
16
|
+
},
|
|
17
|
+
expression: "data.placeholder"
|
|
18
|
+
}
|
|
19
|
+
})], 1), t("div", {
|
|
20
|
+
staticClass: "el-form-item el-form-item--small el-form--label-top"
|
|
21
|
+
}, [t("label", {
|
|
22
|
+
staticClass: "el-form-item__label",
|
|
23
|
+
staticStyle: {
|
|
24
|
+
padding: "0"
|
|
25
|
+
}
|
|
26
|
+
}, [a._v("字典配置:")]), t("div", {
|
|
27
|
+
staticClass: "el-form-item__content"
|
|
28
|
+
}, [t("ElTabs", {
|
|
29
|
+
attrs: {
|
|
30
|
+
stretch: ""
|
|
31
|
+
},
|
|
32
|
+
on: {
|
|
33
|
+
"tab-click": a.handleTabClick
|
|
34
|
+
},
|
|
35
|
+
model: {
|
|
36
|
+
value: a.data.dicOption,
|
|
37
|
+
callback: function(e) {
|
|
38
|
+
a.$set(a.data, "dicOption", e);
|
|
39
|
+
},
|
|
40
|
+
expression: "data.dicOption"
|
|
41
|
+
}
|
|
42
|
+
}, [t("ElTabPane", {
|
|
43
|
+
attrs: {
|
|
44
|
+
label: "静态数据",
|
|
45
|
+
name: "static"
|
|
46
|
+
}
|
|
47
|
+
}, [t("ElTree", {
|
|
48
|
+
ref: "tree",
|
|
49
|
+
attrs: {
|
|
50
|
+
data: a.data.dicData,
|
|
51
|
+
"default-expand-all": "",
|
|
52
|
+
draggable: "",
|
|
53
|
+
"node-key": "value",
|
|
54
|
+
"expand-on-click-node": !1
|
|
55
|
+
},
|
|
56
|
+
scopedSlots: a._u([{
|
|
57
|
+
key: "default",
|
|
58
|
+
fn: function(e) {
|
|
59
|
+
var l = e.node, i = e.data;
|
|
60
|
+
return t("span", {
|
|
61
|
+
staticClass: "custom-tree-node"
|
|
62
|
+
}, [t("span", [a._v(a._s(l.label))]), t("span", [t("ElButton", {
|
|
63
|
+
attrs: {
|
|
64
|
+
type: "text",
|
|
65
|
+
size: "mini",
|
|
66
|
+
icon: "el-icon-plus"
|
|
67
|
+
},
|
|
68
|
+
on: {
|
|
69
|
+
click: function(s) {
|
|
70
|
+
return a.handleNodeAdd(i);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}), t("ElButton", {
|
|
74
|
+
staticClass: "danger",
|
|
75
|
+
attrs: {
|
|
76
|
+
type: "text",
|
|
77
|
+
size: "mini",
|
|
78
|
+
icon: "el-icon-delete"
|
|
79
|
+
},
|
|
80
|
+
on: {
|
|
81
|
+
click: function(s) {
|
|
82
|
+
return a.handleNodeRemove(l, i);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
})], 1)]);
|
|
86
|
+
}
|
|
87
|
+
}])
|
|
88
|
+
}), t("div", {
|
|
89
|
+
staticStyle: {
|
|
90
|
+
"margin-left": "22px"
|
|
91
|
+
}
|
|
92
|
+
}, [t("ElButton", {
|
|
93
|
+
attrs: {
|
|
94
|
+
type: "text"
|
|
95
|
+
},
|
|
96
|
+
on: {
|
|
97
|
+
click: a.handleParentNodeAdd
|
|
98
|
+
}
|
|
99
|
+
}, [a._v(" 添加父级 ")])], 1)], 1), t("ElTabPane", {
|
|
100
|
+
attrs: {
|
|
101
|
+
label: "远端数据",
|
|
102
|
+
name: "remote"
|
|
103
|
+
}
|
|
104
|
+
}, [a._v(" 网址 "), t("ElInput", {
|
|
105
|
+
attrs: {
|
|
106
|
+
size: "small",
|
|
107
|
+
placeholder: "远端数据字典网址"
|
|
108
|
+
},
|
|
109
|
+
model: {
|
|
110
|
+
value: a.data.dicUrl,
|
|
111
|
+
callback: function(e) {
|
|
112
|
+
a.$set(a.data, "dicUrl", e);
|
|
113
|
+
},
|
|
114
|
+
expression: "data.dicUrl"
|
|
115
|
+
}
|
|
116
|
+
}), a._v(" 远程搜索 "), t("ElSwitch", {
|
|
117
|
+
model: {
|
|
118
|
+
value: a.data.remote,
|
|
119
|
+
callback: function(e) {
|
|
120
|
+
a.$set(a.data, "remote", e);
|
|
121
|
+
},
|
|
122
|
+
expression: "data.remote"
|
|
123
|
+
}
|
|
124
|
+
}), t("br"), a._v(" 请求方法 "), t("ElSelect", {
|
|
125
|
+
staticStyle: {
|
|
126
|
+
width: "100%"
|
|
127
|
+
},
|
|
128
|
+
attrs: {
|
|
129
|
+
size: "small",
|
|
130
|
+
placeholder: "请求方法"
|
|
131
|
+
},
|
|
132
|
+
model: {
|
|
133
|
+
value: a.data.dicMethod,
|
|
134
|
+
callback: function(e) {
|
|
135
|
+
a.$set(a.data, "dicMethod", e);
|
|
136
|
+
},
|
|
137
|
+
expression: "data.dicMethod"
|
|
138
|
+
}
|
|
139
|
+
}, [t("ElOption", {
|
|
140
|
+
attrs: {
|
|
141
|
+
label: "POST",
|
|
142
|
+
value: "post"
|
|
143
|
+
}
|
|
144
|
+
}), t("ElOption", {
|
|
145
|
+
attrs: {
|
|
146
|
+
label: "GET",
|
|
147
|
+
value: "get"
|
|
148
|
+
}
|
|
149
|
+
})], 1), a.data.dicMethod === "post" ? t("p", [a._v(" 请求参数 "), t("FyDynamic", {
|
|
150
|
+
attrs: {
|
|
151
|
+
children: a.option
|
|
152
|
+
},
|
|
153
|
+
model: {
|
|
154
|
+
value: a.data.dicQueryConfig,
|
|
155
|
+
callback: function(e) {
|
|
156
|
+
a.$set(a.data, "dicQueryConfig", e);
|
|
157
|
+
},
|
|
158
|
+
expression: "data.dicQueryConfig"
|
|
159
|
+
}
|
|
160
|
+
})], 1) : a._e(), a.data.dicUrl ? t("p", [a._v(" 返回结构 "), t("MonacoEditor", {
|
|
161
|
+
attrs: {
|
|
162
|
+
height: "80",
|
|
163
|
+
"key-index": `dict-formatter-${a.data.prop}`,
|
|
164
|
+
options: a.options
|
|
165
|
+
},
|
|
166
|
+
model: {
|
|
167
|
+
value: a.dicFormatter,
|
|
168
|
+
callback: function(e) {
|
|
169
|
+
a.dicFormatter = e;
|
|
170
|
+
},
|
|
171
|
+
expression: "dicFormatter"
|
|
172
|
+
}
|
|
173
|
+
})], 1) : a._e()], 1)], 1)], 1)]), t("div", {
|
|
174
|
+
staticClass: "el-form-item el-form-item--small el-form--label-top"
|
|
175
|
+
}, [t("label", {
|
|
176
|
+
staticClass: "el-form-item__label",
|
|
177
|
+
staticStyle: {
|
|
178
|
+
padding: "0"
|
|
179
|
+
}
|
|
180
|
+
}, [a._v("字典key配置:")]), t("div", {
|
|
181
|
+
staticClass: "el-form-item__content"
|
|
182
|
+
}, [t("ul", a._l(a.data.props, function(e, l) {
|
|
183
|
+
return t("li", {
|
|
184
|
+
key: l
|
|
185
|
+
}, [t("span", {
|
|
186
|
+
staticStyle: {
|
|
187
|
+
width: "50px"
|
|
188
|
+
}
|
|
189
|
+
}, [a._v(a._s(l))]), t("ElInput", {
|
|
190
|
+
attrs: {
|
|
191
|
+
size: "mini",
|
|
192
|
+
placeholder: "key配置"
|
|
193
|
+
},
|
|
194
|
+
model: {
|
|
195
|
+
value: a.data.props[l],
|
|
196
|
+
callback: function(i) {
|
|
197
|
+
a.$set(a.data.props, l, i);
|
|
198
|
+
},
|
|
199
|
+
expression: "data.props[key]"
|
|
200
|
+
}
|
|
201
|
+
})], 1);
|
|
202
|
+
}), 0)])]), a.data.dicOption === "remote" ? t("ElFormItem", {
|
|
203
|
+
attrs: {
|
|
204
|
+
label: "重新请求字典(crud)"
|
|
205
|
+
}
|
|
206
|
+
}, [t("ElSwitch", {
|
|
207
|
+
model: {
|
|
208
|
+
value: a.data.dicFlag,
|
|
209
|
+
callback: function(e) {
|
|
210
|
+
a.$set(a.data, "dicFlag", e);
|
|
211
|
+
},
|
|
212
|
+
expression: "data.dicFlag"
|
|
213
|
+
}
|
|
214
|
+
})], 1) : a._e(), t("div", {
|
|
215
|
+
staticClass: "el-form-item el-form-item--small el-form--label-top"
|
|
216
|
+
}, [t("label", {
|
|
217
|
+
staticClass: "el-form-item__label",
|
|
218
|
+
staticStyle: {
|
|
219
|
+
padding: "0"
|
|
220
|
+
}
|
|
221
|
+
}, [a._v("级联配置:")]), t("div", {
|
|
222
|
+
staticClass: "el-form-item__content"
|
|
223
|
+
}, [t("Draggable", {
|
|
224
|
+
attrs: {
|
|
225
|
+
tag: "ul",
|
|
226
|
+
list: a.data.cascaderItem || a.data.cascader,
|
|
227
|
+
group: {
|
|
228
|
+
name: "cascaderItem"
|
|
229
|
+
},
|
|
230
|
+
"ghost-class": "ghost",
|
|
231
|
+
handle: ".drag-item"
|
|
232
|
+
}
|
|
233
|
+
}, a._l(a.data.cascaderItem || a.data.cascader, function(e, l) {
|
|
234
|
+
return t("li", {
|
|
235
|
+
key: l
|
|
236
|
+
}, [t("i", {
|
|
237
|
+
staticClass: "drag-item el-icon-s-operation",
|
|
238
|
+
staticStyle: {
|
|
239
|
+
"font-size": "16px",
|
|
240
|
+
margin: "0 5px",
|
|
241
|
+
cursor: "move"
|
|
242
|
+
}
|
|
243
|
+
}), t("ElInput", {
|
|
244
|
+
attrs: {
|
|
245
|
+
size: "mini",
|
|
246
|
+
clearable: "",
|
|
247
|
+
placeholder: "级联属性值"
|
|
248
|
+
},
|
|
249
|
+
model: {
|
|
250
|
+
value: a.data.cascader[l],
|
|
251
|
+
callback: function(i) {
|
|
252
|
+
a.$set(a.data.cascader, l, i);
|
|
253
|
+
},
|
|
254
|
+
expression: "data.cascader[index]"
|
|
255
|
+
}
|
|
256
|
+
}), t("ElButton", {
|
|
257
|
+
staticStyle: {
|
|
258
|
+
padding: "4px",
|
|
259
|
+
"margin-left": "5px"
|
|
260
|
+
},
|
|
261
|
+
attrs: {
|
|
262
|
+
circle: "",
|
|
263
|
+
plain: "",
|
|
264
|
+
type: "danger",
|
|
265
|
+
size: "mini",
|
|
266
|
+
icon: "el-icon-minus"
|
|
267
|
+
},
|
|
268
|
+
on: {
|
|
269
|
+
click: function(i) {
|
|
270
|
+
return a.handleRemoveCascaderItemFields(l);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
})], 1);
|
|
274
|
+
}), 0), t("div", {
|
|
275
|
+
staticStyle: {
|
|
276
|
+
"margin-left": "22px"
|
|
277
|
+
}
|
|
278
|
+
}, [t("ElButton", {
|
|
279
|
+
attrs: {
|
|
280
|
+
type: "text"
|
|
281
|
+
},
|
|
282
|
+
on: {
|
|
283
|
+
click: a.handleAddCascaderItemFields
|
|
284
|
+
}
|
|
285
|
+
}, [a._v(" 添加列 ")])], 1)], 1)]), a.data.type == "tree" ? [t("ElFormItem", {
|
|
286
|
+
attrs: {
|
|
287
|
+
label: "当有子级时,是否可选择父级",
|
|
288
|
+
"label-width": "200px"
|
|
289
|
+
}
|
|
290
|
+
}, [t("ElSwitch", {
|
|
291
|
+
model: {
|
|
292
|
+
value: a.data.parent,
|
|
293
|
+
callback: function(e) {
|
|
294
|
+
a.$set(a.data, "parent", e);
|
|
295
|
+
},
|
|
296
|
+
expression: "data.parent"
|
|
297
|
+
}
|
|
298
|
+
})], 1)] : a._e(), a.data.type == "cascader" ? [t("ElFormItem", {
|
|
299
|
+
attrs: {
|
|
300
|
+
label: "选项分隔符",
|
|
301
|
+
"label-width": "100px"
|
|
302
|
+
}
|
|
303
|
+
}, [t("ElInput", {
|
|
304
|
+
attrs: {
|
|
305
|
+
clearable: "",
|
|
306
|
+
placeholder: "选项分隔符"
|
|
307
|
+
},
|
|
308
|
+
model: {
|
|
309
|
+
value: a.data.separator,
|
|
310
|
+
callback: function(e) {
|
|
311
|
+
a.$set(a.data, "separator", e);
|
|
312
|
+
},
|
|
313
|
+
expression: "data.separator"
|
|
314
|
+
}
|
|
315
|
+
})], 1), t("ElFormItem", {
|
|
316
|
+
attrs: {
|
|
317
|
+
label: "是否显示选中值的完整路径",
|
|
318
|
+
"label-width": "200px"
|
|
319
|
+
}
|
|
320
|
+
}, [t("ElSwitch", {
|
|
321
|
+
model: {
|
|
322
|
+
value: a.data.showAllLevels,
|
|
323
|
+
callback: function(e) {
|
|
324
|
+
a.$set(a.data, "showAllLevels", e);
|
|
325
|
+
},
|
|
326
|
+
expression: "data.showAllLevels"
|
|
327
|
+
}
|
|
328
|
+
})], 1), t("ElFormItem", {
|
|
329
|
+
attrs: {
|
|
330
|
+
label: "是否可搜索",
|
|
331
|
+
"label-width": "100px"
|
|
332
|
+
}
|
|
333
|
+
}, [t("ElSwitch", {
|
|
334
|
+
model: {
|
|
335
|
+
value: a.data.filterable,
|
|
336
|
+
callback: function(e) {
|
|
337
|
+
a.$set(a.data, "filterable", e);
|
|
338
|
+
},
|
|
339
|
+
expression: "data.filterable"
|
|
340
|
+
}
|
|
341
|
+
})], 1)] : a._e(), t("ElFormItem", {
|
|
342
|
+
attrs: {
|
|
343
|
+
label: "是否多选"
|
|
344
|
+
}
|
|
345
|
+
}, [t("ElSwitch", {
|
|
346
|
+
model: {
|
|
347
|
+
value: a.data.multiple,
|
|
348
|
+
callback: function(e) {
|
|
349
|
+
a.$set(a.data, "multiple", e);
|
|
350
|
+
},
|
|
351
|
+
expression: "data.multiple"
|
|
352
|
+
}
|
|
353
|
+
})], 1), a.data.type == "tree" && a.data.multiple ? t("ElFormItem", {
|
|
354
|
+
attrs: {
|
|
355
|
+
label: "勾选时,父子不关联",
|
|
356
|
+
"label-width": "160px"
|
|
357
|
+
}
|
|
358
|
+
}, [t("ElSwitch", {
|
|
359
|
+
model: {
|
|
360
|
+
value: a.data.checkStrictly,
|
|
361
|
+
callback: function(e) {
|
|
362
|
+
a.$set(a.data, "checkStrictly", e);
|
|
363
|
+
},
|
|
364
|
+
expression: "data.checkStrictly"
|
|
365
|
+
}
|
|
366
|
+
})], 1) : a._e(), t("ElDialog", {
|
|
367
|
+
attrs: {
|
|
368
|
+
visible: a.dialogVisible,
|
|
369
|
+
rules: a.dialogRules,
|
|
370
|
+
"before-close": a.beforeClose
|
|
371
|
+
},
|
|
372
|
+
on: {
|
|
373
|
+
"update:visible": function(e) {
|
|
374
|
+
a.dialogVisible = e;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}, [t("ElForm", {
|
|
378
|
+
ref: "dialogForm",
|
|
379
|
+
attrs: {
|
|
380
|
+
model: a.dialogForm,
|
|
381
|
+
"label-width": "80px"
|
|
382
|
+
}
|
|
383
|
+
}, [t("ElFormItem", {
|
|
384
|
+
attrs: {
|
|
385
|
+
label: "label"
|
|
386
|
+
}
|
|
387
|
+
}, [t("ElInput", {
|
|
388
|
+
attrs: {
|
|
389
|
+
placeholder: "label"
|
|
390
|
+
},
|
|
391
|
+
model: {
|
|
392
|
+
value: a.dialogForm.label,
|
|
393
|
+
callback: function(e) {
|
|
394
|
+
a.$set(a.dialogForm, "label", e);
|
|
395
|
+
},
|
|
396
|
+
expression: "dialogForm.label"
|
|
397
|
+
}
|
|
398
|
+
})], 1), t("ElFormItem", {
|
|
399
|
+
attrs: {
|
|
400
|
+
label: "value"
|
|
401
|
+
}
|
|
402
|
+
}, [t("ElInput", {
|
|
403
|
+
attrs: {
|
|
404
|
+
placeholder: "value",
|
|
405
|
+
type: a.dialogInputType
|
|
406
|
+
},
|
|
407
|
+
model: {
|
|
408
|
+
value: a.dialogForm.value,
|
|
409
|
+
callback: function(e) {
|
|
410
|
+
a.$set(a.dialogForm, "value", e);
|
|
411
|
+
},
|
|
412
|
+
expression: "dialogForm.value"
|
|
413
|
+
}
|
|
414
|
+
}, [t("ElSelect", {
|
|
415
|
+
staticStyle: {
|
|
416
|
+
width: "100px"
|
|
417
|
+
},
|
|
418
|
+
attrs: {
|
|
419
|
+
slot: "append",
|
|
420
|
+
placeholder: "数据类型"
|
|
421
|
+
},
|
|
422
|
+
slot: "append",
|
|
423
|
+
model: {
|
|
424
|
+
value: a.dialogInputType,
|
|
425
|
+
callback: function(e) {
|
|
426
|
+
a.dialogInputType = e;
|
|
427
|
+
},
|
|
428
|
+
expression: "dialogInputType"
|
|
429
|
+
}
|
|
430
|
+
}, [t("ElOption", {
|
|
431
|
+
attrs: {
|
|
432
|
+
label: "String",
|
|
433
|
+
value: "text"
|
|
434
|
+
}
|
|
435
|
+
}), t("ElOption", {
|
|
436
|
+
attrs: {
|
|
437
|
+
label: "Number",
|
|
438
|
+
value: "number"
|
|
439
|
+
}
|
|
440
|
+
})], 1)], 1)], 1)], 1), t("span", {
|
|
441
|
+
staticClass: "dialog-footer",
|
|
442
|
+
attrs: {
|
|
443
|
+
slot: "footer"
|
|
444
|
+
},
|
|
445
|
+
slot: "footer"
|
|
446
|
+
}, [t("ElButton", {
|
|
447
|
+
on: {
|
|
448
|
+
click: function(e) {
|
|
449
|
+
a.dialogVisible = !1;
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
}, [a._v("取 消")]), a.dialogStatus == "add" ? t("ElButton", {
|
|
453
|
+
attrs: {
|
|
454
|
+
type: "primary"
|
|
455
|
+
},
|
|
456
|
+
on: {
|
|
457
|
+
click: a.handleDialogAdd
|
|
458
|
+
}
|
|
459
|
+
}, [a._v("确 定")]) : a._e()], 1)], 1)], 2);
|
|
460
|
+
}, r = [];
|
|
461
|
+
export {
|
|
462
|
+
d as r,
|
|
463
|
+
r as s
|
|
464
|
+
};
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
var s = function() {
|
|
2
|
+
var a = this, l = a.$createElement, e = a._self._c || l;
|
|
3
|
+
return e("div", [e("ElFormItem", {
|
|
4
|
+
attrs: {
|
|
5
|
+
label: "图片上传地址",
|
|
6
|
+
"label-width": "110px"
|
|
7
|
+
}
|
|
8
|
+
}, [e("ElInput", {
|
|
9
|
+
attrs: {
|
|
10
|
+
clearable: "",
|
|
11
|
+
placeholder: "图片上传地址"
|
|
12
|
+
},
|
|
13
|
+
model: {
|
|
14
|
+
value: a.data.options.action,
|
|
15
|
+
callback: function(t) {
|
|
16
|
+
a.$set(a.data.options, "action", t);
|
|
17
|
+
},
|
|
18
|
+
expression: "data.options.action"
|
|
19
|
+
}
|
|
20
|
+
})], 1), e("div", {
|
|
21
|
+
staticClass: "el-form-item el-form-item--small el-form--label-top"
|
|
22
|
+
}, [e("label", {
|
|
23
|
+
staticClass: "el-form-item__label",
|
|
24
|
+
staticStyle: {
|
|
25
|
+
padding: "0"
|
|
26
|
+
}
|
|
27
|
+
}, [e("ElLink", {
|
|
28
|
+
attrs: {
|
|
29
|
+
underline: !1,
|
|
30
|
+
href: "https://avuejs.com/plugins/ueditor-plugins.html",
|
|
31
|
+
target: "_blank"
|
|
32
|
+
}
|
|
33
|
+
}, [a._v("参数设置 "), e("i", {
|
|
34
|
+
staticClass: "el-icon-question"
|
|
35
|
+
})])], 1), e("div", {
|
|
36
|
+
staticClass: "el-form-item__content"
|
|
37
|
+
}, [a._v(" 返回的数据结构层次 "), e("ElInput", {
|
|
38
|
+
attrs: {
|
|
39
|
+
size: "small",
|
|
40
|
+
placeholder: "返回的数据结构层次"
|
|
41
|
+
},
|
|
42
|
+
model: {
|
|
43
|
+
value: a.data.options.props.res,
|
|
44
|
+
callback: function(t) {
|
|
45
|
+
a.$set(a.data.options.props, "res", t);
|
|
46
|
+
},
|
|
47
|
+
expression: "data.options.props.res"
|
|
48
|
+
}
|
|
49
|
+
}), a._v(" 返回结构体图片地址字段 "), e("ElInput", {
|
|
50
|
+
attrs: {
|
|
51
|
+
size: "small",
|
|
52
|
+
placeholder: "返回结构体图片地址字段"
|
|
53
|
+
},
|
|
54
|
+
model: {
|
|
55
|
+
value: a.data.options.props.url,
|
|
56
|
+
callback: function(t) {
|
|
57
|
+
a.$set(a.data.options.props, "url", t);
|
|
58
|
+
},
|
|
59
|
+
expression: "data.options.props.url"
|
|
60
|
+
}
|
|
61
|
+
})], 1)]), e("ElFormItem", {
|
|
62
|
+
attrs: {
|
|
63
|
+
label: "OSS"
|
|
64
|
+
}
|
|
65
|
+
}, [e("ElSelect", {
|
|
66
|
+
attrs: {
|
|
67
|
+
placeholder: "oss不写则为普通上传",
|
|
68
|
+
clearable: ""
|
|
69
|
+
},
|
|
70
|
+
model: {
|
|
71
|
+
value: a.data.options.oss,
|
|
72
|
+
callback: function(t) {
|
|
73
|
+
a.$set(a.data.options, "oss", t);
|
|
74
|
+
},
|
|
75
|
+
expression: "data.options.oss"
|
|
76
|
+
}
|
|
77
|
+
}, [e("ElOption", {
|
|
78
|
+
attrs: {
|
|
79
|
+
label: "阿里",
|
|
80
|
+
value: "ali"
|
|
81
|
+
}
|
|
82
|
+
}), e("ElOption", {
|
|
83
|
+
attrs: {
|
|
84
|
+
label: "七牛",
|
|
85
|
+
value: "qiniu"
|
|
86
|
+
}
|
|
87
|
+
})], 1)], 1), a.data.options.oss == "qiniu" ? [e("div", {
|
|
88
|
+
staticClass: "el-form-item el-form-item--small el-form--label-top"
|
|
89
|
+
}, [e("label", {
|
|
90
|
+
staticClass: "el-form-item__label",
|
|
91
|
+
staticStyle: {
|
|
92
|
+
padding: "0"
|
|
93
|
+
}
|
|
94
|
+
}, [a._v("七牛oss配置:")]), e("div", {
|
|
95
|
+
staticClass: "el-form-item__content"
|
|
96
|
+
}, [a._v(" AK: "), e("ElInput", {
|
|
97
|
+
attrs: {
|
|
98
|
+
size: "small",
|
|
99
|
+
clearable: "",
|
|
100
|
+
placeholder: "七牛云的密钥(AK)"
|
|
101
|
+
},
|
|
102
|
+
model: {
|
|
103
|
+
value: a.data.options.qiniu.AK,
|
|
104
|
+
callback: function(t) {
|
|
105
|
+
a.$set(a.data.options.qiniu, "AK", t);
|
|
106
|
+
},
|
|
107
|
+
expression: "data.options.qiniu.AK"
|
|
108
|
+
}
|
|
109
|
+
}), a._v(" SK: "), e("ElInput", {
|
|
110
|
+
attrs: {
|
|
111
|
+
size: "small",
|
|
112
|
+
clearable: "",
|
|
113
|
+
placeholder: "七牛云的密钥(SK)"
|
|
114
|
+
},
|
|
115
|
+
model: {
|
|
116
|
+
value: a.data.options.qiniu.SK,
|
|
117
|
+
callback: function(t) {
|
|
118
|
+
a.$set(a.data.options.qiniu, "SK", t);
|
|
119
|
+
},
|
|
120
|
+
expression: "data.options.qiniu.SK"
|
|
121
|
+
}
|
|
122
|
+
}), a._v(" scope: "), e("ElInput", {
|
|
123
|
+
attrs: {
|
|
124
|
+
size: "small",
|
|
125
|
+
clearable: "",
|
|
126
|
+
placeholder: "七牛云存储的空间名"
|
|
127
|
+
},
|
|
128
|
+
model: {
|
|
129
|
+
value: a.data.options.qiniu.scope,
|
|
130
|
+
callback: function(t) {
|
|
131
|
+
a.$set(a.data.options.qiniu, "scope", t);
|
|
132
|
+
},
|
|
133
|
+
expression: "data.options.qiniu.scope"
|
|
134
|
+
}
|
|
135
|
+
}), a._v(" url: "), e("ElInput", {
|
|
136
|
+
attrs: {
|
|
137
|
+
size: "small",
|
|
138
|
+
clearable: "",
|
|
139
|
+
placeholder: "空间的自定义域名"
|
|
140
|
+
},
|
|
141
|
+
model: {
|
|
142
|
+
value: a.data.options.qiniu.url,
|
|
143
|
+
callback: function(t) {
|
|
144
|
+
a.$set(a.data.options.qiniu, "url", t);
|
|
145
|
+
},
|
|
146
|
+
expression: "data.options.qiniu.url"
|
|
147
|
+
}
|
|
148
|
+
}), a._v(" deadline: "), e("ElInput", {
|
|
149
|
+
attrs: {
|
|
150
|
+
size: "small",
|
|
151
|
+
clearable: "",
|
|
152
|
+
placeholder: "token的过期时间"
|
|
153
|
+
},
|
|
154
|
+
model: {
|
|
155
|
+
value: a.data.options.qiniu.deadline,
|
|
156
|
+
callback: function(t) {
|
|
157
|
+
a.$set(a.data.options.qiniu, "deadline", t);
|
|
158
|
+
},
|
|
159
|
+
expression: "data.options.qiniu.deadline"
|
|
160
|
+
}
|
|
161
|
+
})], 1)])] : a._e(), a.data.options.oss === "ali" ? [e("div", {
|
|
162
|
+
staticClass: "el-form-item el-form-item--small el-form--label-top"
|
|
163
|
+
}, [e("label", {
|
|
164
|
+
staticClass: "el-form-item__label",
|
|
165
|
+
staticStyle: {
|
|
166
|
+
padding: "0"
|
|
167
|
+
}
|
|
168
|
+
}, [a._v("七牛oss配置:")]), e("div", {
|
|
169
|
+
staticClass: "el-form-item__content"
|
|
170
|
+
}, [a._v(" region: "), e("ElInput", {
|
|
171
|
+
attrs: {
|
|
172
|
+
size: "small",
|
|
173
|
+
clearable: "",
|
|
174
|
+
placeholder: "region"
|
|
175
|
+
},
|
|
176
|
+
model: {
|
|
177
|
+
value: a.data.options.ali.region,
|
|
178
|
+
callback: function(t) {
|
|
179
|
+
a.$set(a.data.options.ali, "region", t);
|
|
180
|
+
},
|
|
181
|
+
expression: "data.options.ali.region"
|
|
182
|
+
}
|
|
183
|
+
}), a._v(" endpoint: "), e("ElInput", {
|
|
184
|
+
attrs: {
|
|
185
|
+
size: "small",
|
|
186
|
+
clearable: "",
|
|
187
|
+
placeholder: "endpoint"
|
|
188
|
+
},
|
|
189
|
+
model: {
|
|
190
|
+
value: a.data.options.ali.endpoint,
|
|
191
|
+
callback: function(t) {
|
|
192
|
+
a.$set(a.data.options.ali, "endpoint", t);
|
|
193
|
+
},
|
|
194
|
+
expression: "data.options.ali.endpoint"
|
|
195
|
+
}
|
|
196
|
+
}), a._v(" accessKeyId: "), e("ElInput", {
|
|
197
|
+
attrs: {
|
|
198
|
+
size: "small",
|
|
199
|
+
clearable: "",
|
|
200
|
+
placeholder: "accessKeyId"
|
|
201
|
+
},
|
|
202
|
+
model: {
|
|
203
|
+
value: a.data.options.ali.accessKeyId,
|
|
204
|
+
callback: function(t) {
|
|
205
|
+
a.$set(a.data.options.ali, "accessKeyId", t);
|
|
206
|
+
},
|
|
207
|
+
expression: "data.options.ali.accessKeyId"
|
|
208
|
+
}
|
|
209
|
+
}), a._v(" accessKeySecret: "), e("ElInput", {
|
|
210
|
+
attrs: {
|
|
211
|
+
size: "small",
|
|
212
|
+
clearable: "",
|
|
213
|
+
placeholder: "accessKeySecret"
|
|
214
|
+
},
|
|
215
|
+
model: {
|
|
216
|
+
value: a.data.options.ali.accessKeySecret,
|
|
217
|
+
callback: function(t) {
|
|
218
|
+
a.$set(a.data.options.ali, "accessKeySecret", t);
|
|
219
|
+
},
|
|
220
|
+
expression: "data.options.ali.accessKeySecret"
|
|
221
|
+
}
|
|
222
|
+
}), a._v(" bucket: "), e("ElInput", {
|
|
223
|
+
attrs: {
|
|
224
|
+
size: "small",
|
|
225
|
+
clearable: "",
|
|
226
|
+
placeholder: "bucket "
|
|
227
|
+
},
|
|
228
|
+
model: {
|
|
229
|
+
value: a.data.options.ali.bucket,
|
|
230
|
+
callback: function(t) {
|
|
231
|
+
a.$set(a.data.options.ali, "bucket", t);
|
|
232
|
+
},
|
|
233
|
+
expression: "data.options.ali.bucket"
|
|
234
|
+
}
|
|
235
|
+
})], 1)])] : a._e()], 2);
|
|
236
|
+
}, o = [];
|
|
237
|
+
export {
|
|
238
|
+
s as r,
|
|
239
|
+
o as s
|
|
240
|
+
};
|