@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,96 @@
|
|
|
1
|
+
var i = function() {
|
|
2
|
+
var e = this, a = e.$createElement, t = e._self._c || a;
|
|
3
|
+
return t("div", [t("div", {
|
|
4
|
+
staticClass: "el-form-item el-form-item--small el-form--label-top"
|
|
5
|
+
}, [t("label", {
|
|
6
|
+
staticClass: "el-form-item__label",
|
|
7
|
+
staticStyle: {
|
|
8
|
+
padding: "0"
|
|
9
|
+
}
|
|
10
|
+
}, [e._v("change:")]), t("div", {
|
|
11
|
+
staticClass: "el-form-item__content"
|
|
12
|
+
}, [t("MonacoEditor", {
|
|
13
|
+
attrs: {
|
|
14
|
+
height: "300",
|
|
15
|
+
"key-index": `event-change-${e.data.prop}`,
|
|
16
|
+
options: e.options
|
|
17
|
+
},
|
|
18
|
+
model: {
|
|
19
|
+
value: e.change,
|
|
20
|
+
callback: function(l) {
|
|
21
|
+
e.change = l;
|
|
22
|
+
},
|
|
23
|
+
expression: "change"
|
|
24
|
+
}
|
|
25
|
+
})], 1)]), t("div", {
|
|
26
|
+
staticClass: "el-form-item el-form-item--small el-form--label-top"
|
|
27
|
+
}, [t("label", {
|
|
28
|
+
staticClass: "el-form-item__label",
|
|
29
|
+
staticStyle: {
|
|
30
|
+
padding: "0"
|
|
31
|
+
}
|
|
32
|
+
}, [e._v("click:")]), t("div", {
|
|
33
|
+
staticClass: "el-form-item__content"
|
|
34
|
+
}, [t("MonacoEditor", {
|
|
35
|
+
attrs: {
|
|
36
|
+
height: "200",
|
|
37
|
+
"key-index": `event-click-${e.data.prop}`,
|
|
38
|
+
options: e.options
|
|
39
|
+
},
|
|
40
|
+
model: {
|
|
41
|
+
value: e.click,
|
|
42
|
+
callback: function(l) {
|
|
43
|
+
e.click = l;
|
|
44
|
+
},
|
|
45
|
+
expression: "click"
|
|
46
|
+
}
|
|
47
|
+
})], 1)]), t("div", {
|
|
48
|
+
staticClass: "el-form-item el-form-item--small el-form--label-top"
|
|
49
|
+
}, [t("label", {
|
|
50
|
+
staticClass: "el-form-item__label",
|
|
51
|
+
staticStyle: {
|
|
52
|
+
padding: "0"
|
|
53
|
+
}
|
|
54
|
+
}, [e._v("focus:")]), t("div", {
|
|
55
|
+
staticClass: "el-form-item__content"
|
|
56
|
+
}, [t("MonacoEditor", {
|
|
57
|
+
attrs: {
|
|
58
|
+
height: "200",
|
|
59
|
+
"key-index": `event-focus-${e.data.prop}`,
|
|
60
|
+
options: e.options
|
|
61
|
+
},
|
|
62
|
+
model: {
|
|
63
|
+
value: e.focus,
|
|
64
|
+
callback: function(l) {
|
|
65
|
+
e.focus = l;
|
|
66
|
+
},
|
|
67
|
+
expression: "focus"
|
|
68
|
+
}
|
|
69
|
+
})], 1)]), t("div", {
|
|
70
|
+
staticClass: "el-form-item el-form-item--small el-form--label-top"
|
|
71
|
+
}, [t("label", {
|
|
72
|
+
staticClass: "el-form-item__label",
|
|
73
|
+
staticStyle: {
|
|
74
|
+
padding: "0"
|
|
75
|
+
}
|
|
76
|
+
}, [e._v("blur:")]), t("div", {
|
|
77
|
+
staticClass: "el-form-item__content"
|
|
78
|
+
}, [t("MonacoEditor", {
|
|
79
|
+
attrs: {
|
|
80
|
+
height: "200",
|
|
81
|
+
"key-index": `event-blur-${e.data.prop}`,
|
|
82
|
+
options: e.options
|
|
83
|
+
},
|
|
84
|
+
model: {
|
|
85
|
+
value: e.blur,
|
|
86
|
+
callback: function(l) {
|
|
87
|
+
e.blur = l;
|
|
88
|
+
},
|
|
89
|
+
expression: "blur"
|
|
90
|
+
}
|
|
91
|
+
})], 1)])]);
|
|
92
|
+
}, o = [];
|
|
93
|
+
export {
|
|
94
|
+
i as r,
|
|
95
|
+
o as s
|
|
96
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var r = 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("FyInputIcon", {
|
|
8
|
+
attrs: {
|
|
9
|
+
"icon-list": a.iconList,
|
|
10
|
+
placeholder: "图标"
|
|
11
|
+
},
|
|
12
|
+
model: {
|
|
13
|
+
value: a.data.icon,
|
|
14
|
+
callback: function(e) {
|
|
15
|
+
a.$set(a.data, "icon", e);
|
|
16
|
+
},
|
|
17
|
+
expression: "data.icon"
|
|
18
|
+
}
|
|
19
|
+
})], 1), t("ElFormItem", {
|
|
20
|
+
attrs: {
|
|
21
|
+
label: "开启折叠"
|
|
22
|
+
}
|
|
23
|
+
}, [t("ElSwitch", {
|
|
24
|
+
model: {
|
|
25
|
+
value: a.data.arrow,
|
|
26
|
+
callback: function(e) {
|
|
27
|
+
a.$set(a.data, "arrow", e);
|
|
28
|
+
},
|
|
29
|
+
expression: "data.arrow"
|
|
30
|
+
}
|
|
31
|
+
})], 1), a.data.arrow ? t("ElFormItem", {
|
|
32
|
+
attrs: {
|
|
33
|
+
label: "默认展开"
|
|
34
|
+
}
|
|
35
|
+
}, [t("ElSwitch", {
|
|
36
|
+
model: {
|
|
37
|
+
value: a.data.collapse,
|
|
38
|
+
callback: function(e) {
|
|
39
|
+
a.$set(a.data, "collapse", e);
|
|
40
|
+
},
|
|
41
|
+
expression: "data.collapse"
|
|
42
|
+
}
|
|
43
|
+
})], 1) : a._e()], 1);
|
|
44
|
+
}, o = [];
|
|
45
|
+
export {
|
|
46
|
+
r,
|
|
47
|
+
o as s
|
|
48
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
var r = function() {
|
|
2
|
+
var a = this, l = a.$createElement, e = a._self._c || l;
|
|
3
|
+
return e("div", [e("ElFormItem", {
|
|
4
|
+
attrs: {
|
|
5
|
+
label: "占位内容"
|
|
6
|
+
}
|
|
7
|
+
}, [e("ElInput", {
|
|
8
|
+
attrs: {
|
|
9
|
+
clearable: "",
|
|
10
|
+
placeholder: "占位内容"
|
|
11
|
+
},
|
|
12
|
+
model: {
|
|
13
|
+
value: a.data.placeholder,
|
|
14
|
+
callback: function(t) {
|
|
15
|
+
a.$set(a.data, "placeholder", t);
|
|
16
|
+
},
|
|
17
|
+
expression: "data.placeholder"
|
|
18
|
+
}
|
|
19
|
+
})], 1), e("ElFormItem", {
|
|
20
|
+
attrs: {
|
|
21
|
+
label: "前缀"
|
|
22
|
+
}
|
|
23
|
+
}, [e("ElInput", {
|
|
24
|
+
attrs: {
|
|
25
|
+
clearable: "",
|
|
26
|
+
placeholder: "前缀"
|
|
27
|
+
},
|
|
28
|
+
model: {
|
|
29
|
+
value: a.data.prepend,
|
|
30
|
+
callback: function(t) {
|
|
31
|
+
a.$set(a.data, "prepend", t);
|
|
32
|
+
},
|
|
33
|
+
expression: "data.prepend"
|
|
34
|
+
}
|
|
35
|
+
})], 1), e("ElFormItem", {
|
|
36
|
+
attrs: {
|
|
37
|
+
label: "后缀"
|
|
38
|
+
}
|
|
39
|
+
}, [e("ElInput", {
|
|
40
|
+
attrs: {
|
|
41
|
+
clearable: "",
|
|
42
|
+
placeholder: "后缀"
|
|
43
|
+
},
|
|
44
|
+
model: {
|
|
45
|
+
value: a.data.append,
|
|
46
|
+
callback: function(t) {
|
|
47
|
+
a.$set(a.data, "append", t);
|
|
48
|
+
},
|
|
49
|
+
expression: "data.append"
|
|
50
|
+
}
|
|
51
|
+
})], 1), e("ElFormItem", {
|
|
52
|
+
attrs: {
|
|
53
|
+
label: "最大长度"
|
|
54
|
+
}
|
|
55
|
+
}, [e("ElInputNumber", {
|
|
56
|
+
attrs: {
|
|
57
|
+
"controls-position": "right",
|
|
58
|
+
placeholder: "最大长度"
|
|
59
|
+
},
|
|
60
|
+
model: {
|
|
61
|
+
value: a.data.maxlength,
|
|
62
|
+
callback: function(t) {
|
|
63
|
+
a.$set(a.data, "maxlength", t);
|
|
64
|
+
},
|
|
65
|
+
expression: "data.maxlength"
|
|
66
|
+
}
|
|
67
|
+
})], 1), a.data.type !== "password" ? e("ElFormItem", {
|
|
68
|
+
attrs: {
|
|
69
|
+
label: "显示计数"
|
|
70
|
+
}
|
|
71
|
+
}, [e("ElSwitch", {
|
|
72
|
+
model: {
|
|
73
|
+
value: a.data.showWordLimit,
|
|
74
|
+
callback: function(t) {
|
|
75
|
+
a.$set(a.data, "showWordLimit", t);
|
|
76
|
+
},
|
|
77
|
+
expression: "data.showWordLimit"
|
|
78
|
+
}
|
|
79
|
+
})], 1) : a._e(), a.data.type === "password" ? e("ElFormItem", {
|
|
80
|
+
attrs: {
|
|
81
|
+
label: "显示密码"
|
|
82
|
+
}
|
|
83
|
+
}, [e("ElSwitch", {
|
|
84
|
+
model: {
|
|
85
|
+
value: a.data.showPassword,
|
|
86
|
+
callback: function(t) {
|
|
87
|
+
a.$set(a.data, "showPassword", t);
|
|
88
|
+
},
|
|
89
|
+
expression: "data.showPassword"
|
|
90
|
+
}
|
|
91
|
+
})], 1) : a._e()], 1);
|
|
92
|
+
}, s = [];
|
|
93
|
+
export {
|
|
94
|
+
r,
|
|
95
|
+
s
|
|
96
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var l = function() {
|
|
2
|
+
var a = this, e = a.$createElement, t = a._self._c || e;
|
|
3
|
+
return t("div", [t("ElFormItem", {
|
|
4
|
+
attrs: {
|
|
5
|
+
label: "默认值"
|
|
6
|
+
}
|
|
7
|
+
}, [t("a", {
|
|
8
|
+
staticStyle: {
|
|
9
|
+
color: "#409EFF"
|
|
10
|
+
},
|
|
11
|
+
attrs: {
|
|
12
|
+
href: "https://avuejs.com/form/form-input-map.html",
|
|
13
|
+
target: "_blank"
|
|
14
|
+
}
|
|
15
|
+
}, [a._v("详细文档")]), t("br"), t("ElInput", {
|
|
16
|
+
attrs: {
|
|
17
|
+
placeholder: "默认值"
|
|
18
|
+
},
|
|
19
|
+
model: {
|
|
20
|
+
value: a.data.value,
|
|
21
|
+
callback: function(r) {
|
|
22
|
+
a.$set(a.data, "value", r);
|
|
23
|
+
},
|
|
24
|
+
expression: "data.value"
|
|
25
|
+
}
|
|
26
|
+
})], 1)], 1);
|
|
27
|
+
}, s = [];
|
|
28
|
+
export {
|
|
29
|
+
l as r,
|
|
30
|
+
s
|
|
31
|
+
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
var e = 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(l) {
|
|
15
|
+
a.$set(a.data, "placeholder", l);
|
|
16
|
+
},
|
|
17
|
+
expression: "data.placeholder"
|
|
18
|
+
}
|
|
19
|
+
})], 1), t("ElFormItem", {
|
|
20
|
+
attrs: {
|
|
21
|
+
label: "最小值"
|
|
22
|
+
}
|
|
23
|
+
}, [t("ElInputNumber", {
|
|
24
|
+
attrs: {
|
|
25
|
+
"controls-position": "right",
|
|
26
|
+
placeholder: "最小值"
|
|
27
|
+
},
|
|
28
|
+
model: {
|
|
29
|
+
value: a.data.minRows,
|
|
30
|
+
callback: function(l) {
|
|
31
|
+
a.$set(a.data, "minRows", l);
|
|
32
|
+
},
|
|
33
|
+
expression: "data.minRows"
|
|
34
|
+
}
|
|
35
|
+
})], 1), t("ElFormItem", {
|
|
36
|
+
attrs: {
|
|
37
|
+
label: "最大值"
|
|
38
|
+
}
|
|
39
|
+
}, [t("ElInputNumber", {
|
|
40
|
+
attrs: {
|
|
41
|
+
"controls-position": "right",
|
|
42
|
+
placeholder: "最大值"
|
|
43
|
+
},
|
|
44
|
+
model: {
|
|
45
|
+
value: a.data.maxRows,
|
|
46
|
+
callback: function(l) {
|
|
47
|
+
a.$set(a.data, "maxRows", l);
|
|
48
|
+
},
|
|
49
|
+
expression: "data.maxRows"
|
|
50
|
+
}
|
|
51
|
+
})], 1), t("ElFormItem", {
|
|
52
|
+
attrs: {
|
|
53
|
+
label: "步长"
|
|
54
|
+
}
|
|
55
|
+
}, [t("ElInputNumber", {
|
|
56
|
+
attrs: {
|
|
57
|
+
"controls-position": "right",
|
|
58
|
+
placeholder: "步长"
|
|
59
|
+
},
|
|
60
|
+
model: {
|
|
61
|
+
value: a.data.step,
|
|
62
|
+
callback: function(l) {
|
|
63
|
+
a.$set(a.data, "step", l);
|
|
64
|
+
},
|
|
65
|
+
expression: "data.step"
|
|
66
|
+
}
|
|
67
|
+
})], 1), t("ElFormItem", {
|
|
68
|
+
attrs: {
|
|
69
|
+
label: "数值精度"
|
|
70
|
+
}
|
|
71
|
+
}, [t("ElInputNumber", {
|
|
72
|
+
attrs: {
|
|
73
|
+
"controls-position": "right",
|
|
74
|
+
placeholder: "数值精度",
|
|
75
|
+
min: 0,
|
|
76
|
+
max: 10
|
|
77
|
+
},
|
|
78
|
+
model: {
|
|
79
|
+
value: a.data.precision,
|
|
80
|
+
callback: function(l) {
|
|
81
|
+
a.$set(a.data, "precision", l);
|
|
82
|
+
},
|
|
83
|
+
expression: "data.precision"
|
|
84
|
+
}
|
|
85
|
+
})], 1), t("ElFormItem", {
|
|
86
|
+
attrs: {
|
|
87
|
+
label: "开启控制器",
|
|
88
|
+
"label-width": "100px"
|
|
89
|
+
}
|
|
90
|
+
}, [t("ElSwitch", {
|
|
91
|
+
model: {
|
|
92
|
+
value: a.data.controls,
|
|
93
|
+
callback: function(l) {
|
|
94
|
+
a.$set(a.data, "controls", l);
|
|
95
|
+
},
|
|
96
|
+
expression: "data.controls"
|
|
97
|
+
}
|
|
98
|
+
})], 1), a.data.controls ? t("ElFormItem", {
|
|
99
|
+
attrs: {
|
|
100
|
+
label: "控制器位置",
|
|
101
|
+
"label-width": "100px"
|
|
102
|
+
}
|
|
103
|
+
}, [t("ElRadio", {
|
|
104
|
+
attrs: {
|
|
105
|
+
label: ""
|
|
106
|
+
},
|
|
107
|
+
model: {
|
|
108
|
+
value: a.data.controlsPosition,
|
|
109
|
+
callback: function(l) {
|
|
110
|
+
a.$set(a.data, "controlsPosition", l);
|
|
111
|
+
},
|
|
112
|
+
expression: "data.controlsPosition"
|
|
113
|
+
}
|
|
114
|
+
}, [a._v(" 默认 ")]), t("ElRadio", {
|
|
115
|
+
attrs: {
|
|
116
|
+
label: "right"
|
|
117
|
+
},
|
|
118
|
+
model: {
|
|
119
|
+
value: a.data.controlsPosition,
|
|
120
|
+
callback: function(l) {
|
|
121
|
+
a.$set(a.data, "controlsPosition", l);
|
|
122
|
+
},
|
|
123
|
+
expression: "data.controlsPosition"
|
|
124
|
+
}
|
|
125
|
+
}, [a._v(" 右 ")])], 1) : a._e()], 1);
|
|
126
|
+
}, s = [];
|
|
127
|
+
export {
|
|
128
|
+
e as r,
|
|
129
|
+
s
|
|
130
|
+
};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
var r = function() {
|
|
2
|
+
var e = this, n = e.$createElement, l = e._self._c || n;
|
|
3
|
+
return l("div", [l("ElFormItem", {
|
|
4
|
+
attrs: {
|
|
5
|
+
label: "最大星数"
|
|
6
|
+
}
|
|
7
|
+
}, [l("ElInputNumber", {
|
|
8
|
+
attrs: {
|
|
9
|
+
"controls-position": "right",
|
|
10
|
+
placeholder: "最大星数"
|
|
11
|
+
},
|
|
12
|
+
model: {
|
|
13
|
+
value: e.data.max,
|
|
14
|
+
callback: function(t) {
|
|
15
|
+
e.$set(e.data, "max", t);
|
|
16
|
+
},
|
|
17
|
+
expression: "data.max"
|
|
18
|
+
}
|
|
19
|
+
})], 1), l("ElFormItem", {
|
|
20
|
+
attrs: {
|
|
21
|
+
label: "是否显示文本",
|
|
22
|
+
"label-width": "110px"
|
|
23
|
+
}
|
|
24
|
+
}, [l("ElSwitch", {
|
|
25
|
+
model: {
|
|
26
|
+
value: e.data.showText,
|
|
27
|
+
callback: function(t) {
|
|
28
|
+
e.$set(e.data, "showText", t);
|
|
29
|
+
},
|
|
30
|
+
expression: "data.showText"
|
|
31
|
+
}
|
|
32
|
+
})], 1), e.data.showText ? l("ElFormItem", {
|
|
33
|
+
attrs: {
|
|
34
|
+
label: "自定义文本",
|
|
35
|
+
"label-width": "110px"
|
|
36
|
+
}
|
|
37
|
+
}, [e._l(e.data.texts, function(t, a) {
|
|
38
|
+
return l("ElTag", {
|
|
39
|
+
key: a,
|
|
40
|
+
attrs: {
|
|
41
|
+
size: "small",
|
|
42
|
+
closable: ""
|
|
43
|
+
},
|
|
44
|
+
on: {
|
|
45
|
+
close: function(o) {
|
|
46
|
+
return e.handleTextClose(t);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}, [e._v(" " + e._s(t) + " ")]);
|
|
50
|
+
}), e.textVisible ? l("ElInput", {
|
|
51
|
+
ref: "textTag",
|
|
52
|
+
staticClass: "input-new-tag",
|
|
53
|
+
attrs: {
|
|
54
|
+
size: "mini",
|
|
55
|
+
clearable: ""
|
|
56
|
+
},
|
|
57
|
+
on: {
|
|
58
|
+
blur: e.handleTextConfirm
|
|
59
|
+
},
|
|
60
|
+
nativeOn: {
|
|
61
|
+
keyup: function(t) {
|
|
62
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "enter", 13, t.key, "Enter") ? null : e.handleTextConfirm.apply(null, arguments);
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
model: {
|
|
66
|
+
value: e.textValue,
|
|
67
|
+
callback: function(t) {
|
|
68
|
+
e.textValue = t;
|
|
69
|
+
},
|
|
70
|
+
expression: "textValue"
|
|
71
|
+
}
|
|
72
|
+
}) : e._e(), !e.textVisible && e.data.texts.length < e.data.max ? l("ElButton", {
|
|
73
|
+
staticStyle: {
|
|
74
|
+
"margin-left": "5px"
|
|
75
|
+
},
|
|
76
|
+
attrs: {
|
|
77
|
+
size: "mini",
|
|
78
|
+
icon: "el-icon-plus",
|
|
79
|
+
circle: ""
|
|
80
|
+
},
|
|
81
|
+
on: {
|
|
82
|
+
click: e.showTextInput
|
|
83
|
+
}
|
|
84
|
+
}) : e._e()], 2) : e._e(), l("ElFormItem", {
|
|
85
|
+
attrs: {
|
|
86
|
+
label: "自定义颜色",
|
|
87
|
+
"label-width": "110px"
|
|
88
|
+
}
|
|
89
|
+
}, [e._l(e.data.colors, function(t, a) {
|
|
90
|
+
return l("ElTag", {
|
|
91
|
+
key: a,
|
|
92
|
+
style: {
|
|
93
|
+
color: t
|
|
94
|
+
},
|
|
95
|
+
attrs: {
|
|
96
|
+
closable: "",
|
|
97
|
+
size: "small"
|
|
98
|
+
},
|
|
99
|
+
on: {
|
|
100
|
+
close: function(o) {
|
|
101
|
+
return e.handleColorClose(t);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}, [e._v(" " + e._s(t) + " ")]);
|
|
105
|
+
}), l("ElColorPicker", {
|
|
106
|
+
staticClass: "color-picker",
|
|
107
|
+
attrs: {
|
|
108
|
+
size: "mini"
|
|
109
|
+
},
|
|
110
|
+
on: {
|
|
111
|
+
change: e.handleColorConfirm
|
|
112
|
+
},
|
|
113
|
+
model: {
|
|
114
|
+
value: e.colorValue,
|
|
115
|
+
callback: function(t) {
|
|
116
|
+
e.colorValue = t;
|
|
117
|
+
},
|
|
118
|
+
expression: "colorValue"
|
|
119
|
+
}
|
|
120
|
+
})], 2)], 1);
|
|
121
|
+
}, s = [];
|
|
122
|
+
export {
|
|
123
|
+
r,
|
|
124
|
+
s
|
|
125
|
+
};
|