@web-utils/component 2.7.3 → 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.3cfcf62c.js → dataformat.d3fd2d1b.js} +25 -24
- 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.b76c568a.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 +7 -6
- 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 +1 -1
- 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 +23971 -16542
- package/package.json +5 -3
- package/web-types.json +1880 -1781
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
import { s as o, r as s, f as n } from "./AfdColumn.vue_vue_type_template_lang.768f2ed2.js";
|
|
2
|
+
import { d } from "./util.80e28481.js";
|
|
3
|
+
import { n as i } from "./vueComponentNormalizer.71e2aa87.js";
|
|
4
|
+
const c = {
|
|
5
|
+
name: "AfdColumn",
|
|
6
|
+
props: {
|
|
7
|
+
column: []
|
|
8
|
+
},
|
|
9
|
+
emits: ["submit"],
|
|
10
|
+
data() {
|
|
11
|
+
return {
|
|
12
|
+
fields: n,
|
|
13
|
+
visible: !1,
|
|
14
|
+
list: []
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
watch: {
|
|
18
|
+
column: {
|
|
19
|
+
handler(e) {
|
|
20
|
+
this.list = e;
|
|
21
|
+
},
|
|
22
|
+
deep: !0,
|
|
23
|
+
immediate: !0
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
methods: {
|
|
27
|
+
handleSubmit() {
|
|
28
|
+
this.$emit("submit", d(this.list)), this.visible = !1;
|
|
29
|
+
},
|
|
30
|
+
handleDic(e) {
|
|
31
|
+
console.log(e), this.$message.error("暂未实现");
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}, r = {};
|
|
35
|
+
var p = /* @__PURE__ */ i(
|
|
36
|
+
c,
|
|
37
|
+
s,
|
|
38
|
+
o,
|
|
39
|
+
!1,
|
|
40
|
+
m,
|
|
41
|
+
null,
|
|
42
|
+
null,
|
|
43
|
+
null
|
|
44
|
+
);
|
|
45
|
+
function m(e) {
|
|
46
|
+
for (let l in r)
|
|
47
|
+
this[l] = r[l];
|
|
48
|
+
}
|
|
49
|
+
const f = /* @__PURE__ */ function() {
|
|
50
|
+
return p.exports;
|
|
51
|
+
}();
|
|
52
|
+
var v = function() {
|
|
53
|
+
var e = this, l = e.$createElement, a = e._self._c || l;
|
|
54
|
+
return a("div", [a("ElFormItem", {
|
|
55
|
+
attrs: {
|
|
56
|
+
label: "字段配置"
|
|
57
|
+
}
|
|
58
|
+
}, [a("ElButton", {
|
|
59
|
+
attrs: {
|
|
60
|
+
type: "primary",
|
|
61
|
+
size: "small"
|
|
62
|
+
},
|
|
63
|
+
on: {
|
|
64
|
+
click: function(t) {
|
|
65
|
+
e.$refs.column.visible = !0;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}, [e._v(" 字段配置 ")])], 1), a("ElFormItem", {
|
|
69
|
+
attrs: {
|
|
70
|
+
label: "边框"
|
|
71
|
+
}
|
|
72
|
+
}, [a("ElSwitch", {
|
|
73
|
+
model: {
|
|
74
|
+
value: e.data.children.border,
|
|
75
|
+
callback: function(t) {
|
|
76
|
+
e.$set(e.data.children, "border", t);
|
|
77
|
+
},
|
|
78
|
+
expression: "data.children.border"
|
|
79
|
+
}
|
|
80
|
+
})], 1), a("ElFormItem", {
|
|
81
|
+
attrs: {
|
|
82
|
+
label: "label"
|
|
83
|
+
}
|
|
84
|
+
}, [a("ElInput", {
|
|
85
|
+
attrs: {
|
|
86
|
+
placeholder: "label",
|
|
87
|
+
clearable: ""
|
|
88
|
+
},
|
|
89
|
+
model: {
|
|
90
|
+
value: e.data.props.label,
|
|
91
|
+
callback: function(t) {
|
|
92
|
+
e.$set(e.data.props, "label", t);
|
|
93
|
+
},
|
|
94
|
+
expression: "data.props.label"
|
|
95
|
+
}
|
|
96
|
+
})], 1), a("ElFormItem", {
|
|
97
|
+
attrs: {
|
|
98
|
+
label: "value"
|
|
99
|
+
}
|
|
100
|
+
}, [a("ElInput", {
|
|
101
|
+
attrs: {
|
|
102
|
+
placeholder: "value",
|
|
103
|
+
clearable: ""
|
|
104
|
+
},
|
|
105
|
+
model: {
|
|
106
|
+
value: e.data.props.value,
|
|
107
|
+
callback: function(t) {
|
|
108
|
+
e.$set(e.data.props, "value", t);
|
|
109
|
+
},
|
|
110
|
+
expression: "data.props.value"
|
|
111
|
+
}
|
|
112
|
+
})], 1), a("ElFormItem", {
|
|
113
|
+
attrs: {
|
|
114
|
+
label: "请求地址"
|
|
115
|
+
}
|
|
116
|
+
}, [a("ElInput", {
|
|
117
|
+
attrs: {
|
|
118
|
+
type: "textarea",
|
|
119
|
+
placeholder: "请求地址",
|
|
120
|
+
autosize: ""
|
|
121
|
+
},
|
|
122
|
+
model: {
|
|
123
|
+
value: e.data.children.props.url,
|
|
124
|
+
callback: function(t) {
|
|
125
|
+
e.$set(e.data.children.props, "url", t);
|
|
126
|
+
},
|
|
127
|
+
expression: "data.children.props.url"
|
|
128
|
+
}
|
|
129
|
+
})], 1), a("ElFormItem", {
|
|
130
|
+
attrs: {
|
|
131
|
+
label: "请求方法"
|
|
132
|
+
}
|
|
133
|
+
}, [a("ElSelect", {
|
|
134
|
+
attrs: {
|
|
135
|
+
placeholder: "请求方法",
|
|
136
|
+
clearable: ""
|
|
137
|
+
},
|
|
138
|
+
model: {
|
|
139
|
+
value: e.data.children.props.method,
|
|
140
|
+
callback: function(t) {
|
|
141
|
+
e.$set(e.data.children.props, "method", t);
|
|
142
|
+
},
|
|
143
|
+
expression: "data.children.props.method"
|
|
144
|
+
}
|
|
145
|
+
}, [a("ElOption", {
|
|
146
|
+
attrs: {
|
|
147
|
+
label: "GET",
|
|
148
|
+
value: "get"
|
|
149
|
+
}
|
|
150
|
+
}), a("ElOption", {
|
|
151
|
+
attrs: {
|
|
152
|
+
label: "POST",
|
|
153
|
+
value: "post"
|
|
154
|
+
}
|
|
155
|
+
})], 1)], 1), a("ElFormItem", {
|
|
156
|
+
attrs: {
|
|
157
|
+
label: "分页"
|
|
158
|
+
}
|
|
159
|
+
}, [a("ElSwitch", {
|
|
160
|
+
model: {
|
|
161
|
+
value: e.data.children.props.needPage,
|
|
162
|
+
callback: function(t) {
|
|
163
|
+
e.$set(e.data.children.props, "needPage", t);
|
|
164
|
+
},
|
|
165
|
+
expression: "data.children.props.needPage"
|
|
166
|
+
}
|
|
167
|
+
})], 1), e.data.children.props.needPage ? a("ElFormItem", {
|
|
168
|
+
attrs: {
|
|
169
|
+
label: "当前页"
|
|
170
|
+
}
|
|
171
|
+
}, [a("ElInput", {
|
|
172
|
+
attrs: {
|
|
173
|
+
placeholder: "当前页",
|
|
174
|
+
clearable: ""
|
|
175
|
+
},
|
|
176
|
+
model: {
|
|
177
|
+
value: e.data.children.props.currentPageKey,
|
|
178
|
+
callback: function(t) {
|
|
179
|
+
e.$set(e.data.children.props, "currentPageKey", t);
|
|
180
|
+
},
|
|
181
|
+
expression: "data.children.props.currentPageKey"
|
|
182
|
+
}
|
|
183
|
+
})], 1) : e._e(), e.data.children.props.needPage ? a("ElFormItem", {
|
|
184
|
+
attrs: {
|
|
185
|
+
label: "每页条数"
|
|
186
|
+
}
|
|
187
|
+
}, [a("ElInput", {
|
|
188
|
+
attrs: {
|
|
189
|
+
placeholder: "每页条数",
|
|
190
|
+
clearable: ""
|
|
191
|
+
},
|
|
192
|
+
model: {
|
|
193
|
+
value: e.data.children.props.pageSizeKey,
|
|
194
|
+
callback: function(t) {
|
|
195
|
+
e.$set(e.data.children.props, "pageSizeKey", t);
|
|
196
|
+
},
|
|
197
|
+
expression: "data.children.props.pageSizeKey"
|
|
198
|
+
}
|
|
199
|
+
})], 1) : e._e(), e.data.children.props.needPage ? a("ElFormItem", {
|
|
200
|
+
attrs: {
|
|
201
|
+
label: "总条数"
|
|
202
|
+
}
|
|
203
|
+
}, [a("ElInput", {
|
|
204
|
+
attrs: {
|
|
205
|
+
placeholder: "总条数",
|
|
206
|
+
clearable: ""
|
|
207
|
+
},
|
|
208
|
+
model: {
|
|
209
|
+
value: e.data.children.props.totalKey,
|
|
210
|
+
callback: function(t) {
|
|
211
|
+
e.$set(e.data.children.props, "totalKey", t);
|
|
212
|
+
},
|
|
213
|
+
expression: "data.children.props.totalKey"
|
|
214
|
+
}
|
|
215
|
+
})], 1) : e._e(), e.data.children.props.needPage ? a("ElFormItem", {
|
|
216
|
+
attrs: {
|
|
217
|
+
label: "列表"
|
|
218
|
+
}
|
|
219
|
+
}, [a("ElInput", {
|
|
220
|
+
attrs: {
|
|
221
|
+
placeholder: "列表",
|
|
222
|
+
clearable: ""
|
|
223
|
+
},
|
|
224
|
+
model: {
|
|
225
|
+
value: e.data.children.props.recordsKey,
|
|
226
|
+
callback: function(t) {
|
|
227
|
+
e.$set(e.data.children.props, "recordsKey", t);
|
|
228
|
+
},
|
|
229
|
+
expression: "data.children.props.recordsKey"
|
|
230
|
+
}
|
|
231
|
+
})], 1) : e._e(), a("ElFormItem", {
|
|
232
|
+
attrs: {
|
|
233
|
+
label: "返回层级"
|
|
234
|
+
}
|
|
235
|
+
}, [a("ElInput", {
|
|
236
|
+
attrs: {
|
|
237
|
+
placeholder: "返回层级",
|
|
238
|
+
clearable: ""
|
|
239
|
+
},
|
|
240
|
+
model: {
|
|
241
|
+
value: e.data.children.props.resKey,
|
|
242
|
+
callback: function(t) {
|
|
243
|
+
e.$set(e.data.children.props, "resKey", t);
|
|
244
|
+
},
|
|
245
|
+
expression: "data.children.props.resKey"
|
|
246
|
+
}
|
|
247
|
+
})], 1), a("ElFormItem", {
|
|
248
|
+
attrs: {
|
|
249
|
+
label: "自动生成"
|
|
250
|
+
}
|
|
251
|
+
}, [a("ElSwitch", {
|
|
252
|
+
model: {
|
|
253
|
+
value: e.data.children.props.auto,
|
|
254
|
+
callback: function(t) {
|
|
255
|
+
e.$set(e.data.children.props, "auto", t);
|
|
256
|
+
},
|
|
257
|
+
expression: "data.children.props.auto"
|
|
258
|
+
}
|
|
259
|
+
})], 1), a("div", {
|
|
260
|
+
staticClass: "el-form--label-top"
|
|
261
|
+
}, [a("div", {
|
|
262
|
+
staticClass: "el-form-item"
|
|
263
|
+
}, [a("label", {
|
|
264
|
+
staticClass: "el-form-item__label",
|
|
265
|
+
staticStyle: {
|
|
266
|
+
padding: "0"
|
|
267
|
+
}
|
|
268
|
+
}, [a("ElPopover", {
|
|
269
|
+
attrs: {
|
|
270
|
+
placement: "top-start",
|
|
271
|
+
width: 200,
|
|
272
|
+
trigger: "hover",
|
|
273
|
+
content: "填写以上配置后会自动生成,若觉得生成的不对请自行修改或关闭自动生成"
|
|
274
|
+
},
|
|
275
|
+
scopedSlots: e._u([{
|
|
276
|
+
key: "reference",
|
|
277
|
+
fn: function() {
|
|
278
|
+
return [a("ElLink", {
|
|
279
|
+
attrs: {
|
|
280
|
+
href: "https://avuejs.com/form/form-input-table.html",
|
|
281
|
+
underline: !1,
|
|
282
|
+
target: "_blank"
|
|
283
|
+
}
|
|
284
|
+
}, [e._v(" onLoad: "), a("i", {
|
|
285
|
+
staticClass: "el-icon-question"
|
|
286
|
+
})])];
|
|
287
|
+
},
|
|
288
|
+
proxy: !0
|
|
289
|
+
}])
|
|
290
|
+
})], 1), a("div", {
|
|
291
|
+
staticClass: "el-form-item__content"
|
|
292
|
+
}, [a("MonacoEditor", {
|
|
293
|
+
attrs: {
|
|
294
|
+
height: "200",
|
|
295
|
+
"key-index": `table-onload-${e.data.prop}`,
|
|
296
|
+
options: e.options
|
|
297
|
+
},
|
|
298
|
+
model: {
|
|
299
|
+
value: e.onLoad,
|
|
300
|
+
callback: function(t) {
|
|
301
|
+
e.onLoad = t;
|
|
302
|
+
},
|
|
303
|
+
expression: "onLoad"
|
|
304
|
+
}
|
|
305
|
+
})], 1)]), a("div", {
|
|
306
|
+
staticClass: "el-form-item"
|
|
307
|
+
}, [a("label", {
|
|
308
|
+
staticClass: "el-form-item__label",
|
|
309
|
+
staticStyle: {
|
|
310
|
+
padding: "0"
|
|
311
|
+
}
|
|
312
|
+
}, [e._v("formatter:")]), a("div", {
|
|
313
|
+
staticClass: "el-form-item__content"
|
|
314
|
+
}, [a("MonacoEditor", {
|
|
315
|
+
attrs: {
|
|
316
|
+
height: "200",
|
|
317
|
+
"key-index": `table-formatter-${e.data.prop}`,
|
|
318
|
+
options: e.options
|
|
319
|
+
},
|
|
320
|
+
model: {
|
|
321
|
+
value: e.formatter,
|
|
322
|
+
callback: function(t) {
|
|
323
|
+
e.formatter = t;
|
|
324
|
+
},
|
|
325
|
+
expression: "formatter"
|
|
326
|
+
}
|
|
327
|
+
})], 1)])]), a("AfdColumn", {
|
|
328
|
+
ref: "column",
|
|
329
|
+
attrs: {
|
|
330
|
+
column: e.data.children.column
|
|
331
|
+
},
|
|
332
|
+
on: {
|
|
333
|
+
submit: e.handleColumn
|
|
334
|
+
}
|
|
335
|
+
})], 1);
|
|
336
|
+
}, E = [];
|
|
337
|
+
export {
|
|
338
|
+
f as A,
|
|
339
|
+
v as r,
|
|
340
|
+
E as s
|
|
341
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
var o = function() {
|
|
2
|
+
var a = this, l = a.$createElement, t = a._self._c || l;
|
|
3
|
+
return t("div", [t("ElFormItem", {
|
|
4
|
+
attrs: {
|
|
5
|
+
label: "占位内容"
|
|
6
|
+
}
|
|
7
|
+
}, [t("ElInput", {
|
|
8
|
+
attrs: {
|
|
9
|
+
type: "textarea",
|
|
10
|
+
autosize: "",
|
|
11
|
+
clearable: "",
|
|
12
|
+
placeholder: "占位内容"
|
|
13
|
+
},
|
|
14
|
+
model: {
|
|
15
|
+
value: a.data.placeholder,
|
|
16
|
+
callback: function(e) {
|
|
17
|
+
a.$set(a.data, "placeholder", e);
|
|
18
|
+
},
|
|
19
|
+
expression: "data.placeholder"
|
|
20
|
+
}
|
|
21
|
+
})], 1), t("ElFormItem", {
|
|
22
|
+
attrs: {
|
|
23
|
+
label: "最大长度"
|
|
24
|
+
}
|
|
25
|
+
}, [t("ElInputNumber", {
|
|
26
|
+
attrs: {
|
|
27
|
+
"controls-position": "right",
|
|
28
|
+
placeholder: "最大长度"
|
|
29
|
+
},
|
|
30
|
+
model: {
|
|
31
|
+
value: a.data.maxlength,
|
|
32
|
+
callback: function(e) {
|
|
33
|
+
a.$set(a.data, "maxlength", e);
|
|
34
|
+
},
|
|
35
|
+
expression: "data.maxlength"
|
|
36
|
+
}
|
|
37
|
+
})], 1), t("ElFormItem", {
|
|
38
|
+
attrs: {
|
|
39
|
+
label: "显示计数"
|
|
40
|
+
}
|
|
41
|
+
}, [t("ElSwitch", {
|
|
42
|
+
model: {
|
|
43
|
+
value: a.data.showWordLimit,
|
|
44
|
+
callback: function(e) {
|
|
45
|
+
a.$set(a.data, "showWordLimit", e);
|
|
46
|
+
},
|
|
47
|
+
expression: "data.showWordLimit"
|
|
48
|
+
}
|
|
49
|
+
})], 1), t("ElFormItem", {
|
|
50
|
+
attrs: {
|
|
51
|
+
label: "最小行"
|
|
52
|
+
}
|
|
53
|
+
}, [t("ElInputNumber", {
|
|
54
|
+
attrs: {
|
|
55
|
+
"controls-position": "right",
|
|
56
|
+
placeholder: "最小行",
|
|
57
|
+
min: 1
|
|
58
|
+
},
|
|
59
|
+
model: {
|
|
60
|
+
value: a.data.minRows,
|
|
61
|
+
callback: function(e) {
|
|
62
|
+
a.$set(a.data, "minRows", e);
|
|
63
|
+
},
|
|
64
|
+
expression: "data.minRows"
|
|
65
|
+
}
|
|
66
|
+
})], 1), t("ElFormItem", {
|
|
67
|
+
attrs: {
|
|
68
|
+
label: "最大行"
|
|
69
|
+
}
|
|
70
|
+
}, [t("ElInputNumber", {
|
|
71
|
+
attrs: {
|
|
72
|
+
"controls-position": "right",
|
|
73
|
+
placeholder: "最大行",
|
|
74
|
+
min: 2
|
|
75
|
+
},
|
|
76
|
+
model: {
|
|
77
|
+
value: a.data.maxRows,
|
|
78
|
+
callback: function(e) {
|
|
79
|
+
a.$set(a.data, "maxRows", e);
|
|
80
|
+
},
|
|
81
|
+
expression: "data.maxRows"
|
|
82
|
+
}
|
|
83
|
+
})], 1)], 1);
|
|
84
|
+
}, r = [];
|
|
85
|
+
export {
|
|
86
|
+
o as r,
|
|
87
|
+
r as s
|
|
88
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
var s = function() {
|
|
2
|
+
var t = this, a = t.$createElement, e = t._self._c || a;
|
|
3
|
+
return e("div", [e("ElFormItem", {
|
|
4
|
+
attrs: {
|
|
5
|
+
label: "文本对齐"
|
|
6
|
+
}
|
|
7
|
+
}, [e("ElRadioGroup", {
|
|
8
|
+
model: {
|
|
9
|
+
value: t.data.styles.textAlign,
|
|
10
|
+
callback: function(l) {
|
|
11
|
+
t.$set(t.data.styles, "textAlign", l);
|
|
12
|
+
},
|
|
13
|
+
expression: "data.styles.textAlign"
|
|
14
|
+
}
|
|
15
|
+
}, [e("ElRadio", {
|
|
16
|
+
attrs: {
|
|
17
|
+
label: "left"
|
|
18
|
+
}
|
|
19
|
+
}, [t._v(" 左 ")]), e("ElRadio", {
|
|
20
|
+
attrs: {
|
|
21
|
+
label: "center"
|
|
22
|
+
}
|
|
23
|
+
}, [t._v(" 中 ")]), e("ElRadio", {
|
|
24
|
+
attrs: {
|
|
25
|
+
label: "right"
|
|
26
|
+
}
|
|
27
|
+
}, [t._v(" 右 ")])], 1)], 1), e("ElFormItem", {
|
|
28
|
+
attrs: {
|
|
29
|
+
label: "颜色"
|
|
30
|
+
}
|
|
31
|
+
}, [e("ElColorPicker", {
|
|
32
|
+
attrs: {
|
|
33
|
+
size: "mini"
|
|
34
|
+
},
|
|
35
|
+
model: {
|
|
36
|
+
value: t.data.styles.color,
|
|
37
|
+
callback: function(l) {
|
|
38
|
+
t.$set(t.data.styles, "color", l);
|
|
39
|
+
},
|
|
40
|
+
expression: "data.styles.color"
|
|
41
|
+
}
|
|
42
|
+
})], 1), e("ElFormItem", {
|
|
43
|
+
attrs: {
|
|
44
|
+
label: "字体大小"
|
|
45
|
+
}
|
|
46
|
+
}, [e("ElInput", {
|
|
47
|
+
attrs: {
|
|
48
|
+
clearable: "",
|
|
49
|
+
placeholder: "字体大小"
|
|
50
|
+
},
|
|
51
|
+
model: {
|
|
52
|
+
value: t.data.styles.fontSize,
|
|
53
|
+
callback: function(l) {
|
|
54
|
+
t.$set(t.data.styles, "fontSize", l);
|
|
55
|
+
},
|
|
56
|
+
expression: "data.styles.fontSize"
|
|
57
|
+
}
|
|
58
|
+
})], 1), e("ElFormItem", {
|
|
59
|
+
attrs: {
|
|
60
|
+
label: "粗体"
|
|
61
|
+
}
|
|
62
|
+
}, [e("ElSelect", {
|
|
63
|
+
attrs: {
|
|
64
|
+
placeholder: "粗体",
|
|
65
|
+
clearable: ""
|
|
66
|
+
},
|
|
67
|
+
model: {
|
|
68
|
+
value: t.data.styles.fontWeight,
|
|
69
|
+
callback: function(l) {
|
|
70
|
+
t.$set(t.data.styles, "fontWeight", l);
|
|
71
|
+
},
|
|
72
|
+
expression: "data.styles.fontWeight"
|
|
73
|
+
}
|
|
74
|
+
}, t._l(t.options, function(l) {
|
|
75
|
+
return e("ElOption", {
|
|
76
|
+
key: l,
|
|
77
|
+
attrs: {
|
|
78
|
+
label: l,
|
|
79
|
+
value: l
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
}), 1)], 1)], 1);
|
|
83
|
+
}, r = [];
|
|
84
|
+
export {
|
|
85
|
+
s as r,
|
|
86
|
+
r as s
|
|
87
|
+
};
|