@kp-ui/lowcode 2.14.0-alpha.4 → 2.14.0-beta
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/install.js +24 -45
- package/package.json +1 -1
- package/src/components/form-designer/form-widget/container-widget/container-wrapper.vue.js +17 -17
- package/src/components/form-designer/form-widget/container-widget/grid-col-widget.vue.js +10 -10
- package/src/components/form-designer/form-widget/container-widget/index.js +6 -7
- package/src/components/form-designer/form-widget/container-widget/table-cell-widget.vue.js +9 -9
- package/src/components/form-designer/form-widget/field-widget/button-widget.vue.js +2 -2
- package/src/components/form-designer/form-widget/field-widget/diy-compontent-widget.vue.js +1 -1
- package/src/components/form-designer/form-widget/field-widget/form-item-wrapper.vue.js +32 -32
- package/src/components/form-designer/form-widget/field-widget/input-widget.vue.js +3 -3
- package/src/components/form-designer/form-widget/field-widget/select-widget.vue.js +7 -7
- package/src/components/form-designer/form-widget/field-widget/static-content-wrapper.vue.js +18 -18
- package/src/components/form-designer/index.vue.js +21 -25
- package/src/components/form-designer/setting-panel/index.vue.js +55 -54
- package/src/components/form-designer/setting-panel/property-editor/button-list-editor.vue2.js +10 -10
- package/src/components/form-designer/setting-panel/property-editor/buttonIcon-editor.vue.js +14 -11
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue.js +2 -2
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue2.js +116 -118
- package/src/components/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue.js +11 -11
- package/src/components/form-designer/setting-panel/property-editor/field-button/danger-editor.vue.js +13 -11
- package/src/components/form-designer/setting-panel/property-editor/field-button/ghost-editor.vue.js +15 -13
- package/src/components/form-designer/setting-panel/property-editor/field-button/icon-editor.vue.js +17 -14
- package/src/components/form-designer/setting-panel/property-editor/field-button/shape-editor.vue.js +14 -12
- package/src/components/form-designer/setting-panel/property-editor/field-dropdown/dropdown-menuList-editor.vue.js +15 -11
- package/src/components/form-designer/setting-panel/property-editor/field-file-upload/file-upload-fileTypes-editor.vue.js +2 -2
- package/src/components/form-designer/setting-panel/property-editor/field-picture-upload/picture-upload-fileTypes-editor.vue.js +2 -2
- package/src/components/form-designer/setting-panel/property-editor/field-treeSelect/treeSelect-treeDefaultExpandAll-editor.vue.js +16 -14
- package/src/components/form-designer/setting-panel/property-editor/labelIconClass-editor.vue.js +16 -13
- package/src/components/form-designer/setting-panel/property-editor/name-editor.vue.js +7 -3
- package/src/components/form-designer/setting-panel/property-editor/placement-editor.vue.js +24 -22
- package/src/components/form-designer/setting-panel/property-editor/validation-editor.vue.js +15 -12
- package/src/components/form-designer/toolbar-panel/index.vue.js +2 -2
- package/src/components/form-designer/toolbar-panel/index.vue2.js +66 -67
- package/src/components/form-designer/widget-panel/advanced/data-table.js +6 -1
- package/src/components/form-designer/widget-panel/basicFields/color.js +2 -7
- package/src/components/form-designer/widget-panel/index.vue.js +16 -16
- package/src/components/form-render/index.vue.js +10 -10
- package/src/components/http-editor/index.vue.js +27 -23
- package/src/components/public/ActionButtonListRender.vue.js +24 -19
- package/src/components/public/ActionButtonListRender.vue2.js +1 -1
- package/src/lang/en-US.js +17 -0
- package/src/lang/zh-CN.js +17 -0
- package/stats.html +1 -1
- package/styles/style.css +1 -1
- package/types/install.d.ts +3 -14
- package/src/components/form-render/container-item/data-table-item.vue.js +0 -149
- package/src/components/form-render/container-item/grid-col-item.vue.js +0 -149
- package/src/components/form-render/container-item/grid-item.vue.js +0 -92
- package/src/components/form-render/container-item/grid-sub-form-item.vue.js +0 -319
- package/src/components/form-render/container-item/index.js +0 -24
- package/src/components/form-render/container-item/sub-form-item.vue.js +0 -429
- package/src/components/form-render/container-item/tab-item.vue.js +0 -160
- package/src/components/form-render/container-item/table-cell-item.vue.js +0 -95
- package/src/components/form-render/container-item/table-item.vue.js +0 -96
- package/src/components/form-render/container-item/vf-collapse-item.vue.js +0 -252
- package/src/components/form-render/container-item/vf-dialog-item.vue.js +0 -12
- package/src/components/form-render/container-item/vf-drawer-item.vue.js +0 -12
package/src/components/form-designer/setting-panel/property-editor/field-button/shape-editor.vue.js
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { resolveComponent as r, createBlock as
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import _ from "../../../../../utils/i18n.js";
|
|
2
|
+
import m from "../propertyMixin.js";
|
|
3
|
+
import { resolveComponent as r, createBlock as u, openBlock as f, withCtx as t, createVNode as o, createTextVNode as l } from "vue";
|
|
4
|
+
import c from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const v = {
|
|
6
6
|
name: "shape-editor",
|
|
7
|
-
mixins: [
|
|
7
|
+
mixins: [_, m],
|
|
8
8
|
props: {
|
|
9
9
|
designer: Object,
|
|
10
10
|
selectedWidget: Object,
|
|
11
11
|
optionModel: Object
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
|
-
function
|
|
15
|
-
const n = r("a-select-option"),
|
|
16
|
-
return
|
|
14
|
+
function x(i, e, a, b, g, M) {
|
|
15
|
+
const n = r("a-select-option"), p = r("a-select"), s = r("a-form-item");
|
|
16
|
+
return f(), u(s, {
|
|
17
|
+
label: i.i18nt("designer.setting.shape")
|
|
18
|
+
}, {
|
|
17
19
|
default: t(() => [
|
|
18
|
-
o(
|
|
20
|
+
o(p, {
|
|
19
21
|
value: a.optionModel.shape,
|
|
20
22
|
"onUpdate:value": e[0] || (e[0] = (d) => a.optionModel.shape = d)
|
|
21
23
|
}, {
|
|
@@ -46,9 +48,9 @@ function v(x, e, a, b, M, j) {
|
|
|
46
48
|
}, 8, ["value"])
|
|
47
49
|
]),
|
|
48
50
|
_: 1
|
|
49
|
-
});
|
|
51
|
+
}, 8, ["label"]);
|
|
50
52
|
}
|
|
51
|
-
const C = /* @__PURE__ */
|
|
53
|
+
const C = /* @__PURE__ */ c(v, [["render", x]]);
|
|
52
54
|
export {
|
|
53
55
|
C as default
|
|
54
56
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import m from "../../../../../utils/i18n.js";
|
|
2
2
|
import c from "../../../../code-editor/code-modal-editor.vue.js";
|
|
3
|
-
import { resolveComponent as e, createElementBlock as
|
|
4
|
-
import
|
|
3
|
+
import { resolveComponent as e, createElementBlock as u, openBlock as f, Fragment as b, createVNode as o, withCtx as s, createTextVNode as _, toDisplayString as g } from "vue";
|
|
4
|
+
import D from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
5
|
const h = {
|
|
6
6
|
name: "menuList-editor",
|
|
7
7
|
mixins: [m],
|
|
@@ -21,7 +21,9 @@ const h = {
|
|
|
21
21
|
try {
|
|
22
22
|
this.optionModel.menuList = JSON.parse(this.tableDataOptions);
|
|
23
23
|
} catch (t) {
|
|
24
|
-
this.$message.error(
|
|
24
|
+
this.$message.error(
|
|
25
|
+
this.i18nt("designer.hint.invalidOptionsData") + t.message
|
|
26
|
+
);
|
|
25
27
|
}
|
|
26
28
|
},
|
|
27
29
|
openTableDataEdit() {
|
|
@@ -29,10 +31,12 @@ const h = {
|
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
33
|
};
|
|
32
|
-
function O(t,
|
|
34
|
+
function O(t, n, E, C, a, i) {
|
|
33
35
|
const r = e("a-button"), l = e("a-form-item"), d = e("CodeModalEditor");
|
|
34
|
-
return
|
|
35
|
-
o(l, {
|
|
36
|
+
return f(), u(b, null, [
|
|
37
|
+
o(l, {
|
|
38
|
+
label: t.i18nt("designer.setting.menuList")
|
|
39
|
+
}, {
|
|
36
40
|
default: s(() => [
|
|
37
41
|
o(r, {
|
|
38
42
|
type: "primary",
|
|
@@ -40,25 +44,25 @@ function O(t, a, E, C, n, i) {
|
|
|
40
44
|
onClick: i.openTableDataEdit
|
|
41
45
|
}, {
|
|
42
46
|
default: s(() => [
|
|
43
|
-
_(
|
|
47
|
+
_(g(t.i18nt("designer.setting.editAction")), 1)
|
|
44
48
|
]),
|
|
45
49
|
_: 1
|
|
46
50
|
}, 8, ["onClick"])
|
|
47
51
|
]),
|
|
48
52
|
_: 1
|
|
49
|
-
}),
|
|
53
|
+
}, 8, ["label"]),
|
|
50
54
|
o(d, {
|
|
51
55
|
ref: "CodeModalEditorRef",
|
|
52
56
|
mode: "json",
|
|
53
57
|
readonly: !1,
|
|
54
|
-
modelValue:
|
|
55
|
-
"onUpdate:modelValue":
|
|
58
|
+
modelValue: a.tableDataOptions,
|
|
59
|
+
"onUpdate:modelValue": n[0] || (n[0] = (p) => a.tableDataOptions = p),
|
|
56
60
|
title: t.i18nt("designer.setting.tableDataEdit"),
|
|
57
61
|
onSave: i.saveTableData
|
|
58
62
|
}, null, 8, ["modelValue", "title", "onSave"])
|
|
59
63
|
], 64);
|
|
60
64
|
}
|
|
61
|
-
const S = /* @__PURE__ */
|
|
65
|
+
const S = /* @__PURE__ */ D(h, [["render", O]]);
|
|
62
66
|
export {
|
|
63
67
|
S as default
|
|
64
68
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import f from "
|
|
1
|
+
import { SvgIcon as f } from "tmgc2-share";
|
|
2
2
|
import m from "../../../../../utils/i18n.js";
|
|
3
3
|
import { resolveComponent as e, createBlock as u, openBlock as _, withCtx as o, createVNode as t, createElementVNode as x, createTextVNode as v, toDisplayString as g } from "vue";
|
|
4
4
|
import y from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
@@ -34,7 +34,7 @@ function T(l, n, i, j, s, w) {
|
|
|
34
34
|
title: l.i18nt("designer.setting.fileTypesHelp")
|
|
35
35
|
}, {
|
|
36
36
|
default: o(() => [
|
|
37
|
-
t(a, { "icon-class": "el-info" })
|
|
37
|
+
t(a, { "icon-class": "icon-el-info" })
|
|
38
38
|
]),
|
|
39
39
|
_: 1
|
|
40
40
|
}, 8, ["title"])
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import m from "
|
|
1
|
+
import { SvgIcon as m } from "tmgc2-share";
|
|
2
2
|
import u from "../../../../../utils/i18n.js";
|
|
3
3
|
import { resolveComponent as e, createBlock as f, openBlock as _, withCtx as t, createVNode as o, createElementVNode as g, createTextVNode as y, toDisplayString as b } from "vue";
|
|
4
4
|
import T from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
@@ -37,7 +37,7 @@ function j(l, n, i, V, p, x) {
|
|
|
37
37
|
title: l.i18nt("designer.setting.fileTypesHelp")
|
|
38
38
|
}, {
|
|
39
39
|
default: t(() => [
|
|
40
|
-
o(a, { "icon-class": "el-info" })
|
|
40
|
+
o(a, { "icon-class": "icon-el-info" })
|
|
41
41
|
]),
|
|
42
42
|
_: 1
|
|
43
43
|
}, 8, ["title"])
|
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { resolveComponent as o, createBlock as
|
|
1
|
+
import a from "../../../../../utils/i18n.js";
|
|
2
|
+
import c from "../propertyMixin.js";
|
|
3
|
+
import { resolveComponent as o, createBlock as d, openBlock as p, withCtx as m, createVNode as s } from "vue";
|
|
4
4
|
import f from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const _ = {
|
|
6
6
|
name: "treeDefaultExpandAll-editor",
|
|
7
|
-
mixins: [
|
|
7
|
+
mixins: [a, c],
|
|
8
8
|
props: {
|
|
9
9
|
designer: Object,
|
|
10
10
|
selectedWidget: Object,
|
|
11
11
|
optionModel: Object
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
|
-
function
|
|
15
|
-
const
|
|
16
|
-
return
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
function u(n, e, t, x, E, b) {
|
|
15
|
+
const r = o("a-switch"), l = o("a-form-item");
|
|
16
|
+
return p(), d(l, {
|
|
17
|
+
label: n.i18nt("designer.setting.treeDefaultExpandAll")
|
|
18
|
+
}, {
|
|
19
|
+
default: m(() => [
|
|
20
|
+
s(r, {
|
|
19
21
|
checked: t.optionModel.treeDefaultExpandAll,
|
|
20
|
-
"onUpdate:checked": e[0] || (e[0] = (
|
|
22
|
+
"onUpdate:checked": e[0] || (e[0] = (i) => t.optionModel.treeDefaultExpandAll = i)
|
|
21
23
|
}, null, 8, ["checked"])
|
|
22
24
|
]),
|
|
23
25
|
_: 1
|
|
24
|
-
});
|
|
26
|
+
}, 8, ["label"]);
|
|
25
27
|
}
|
|
26
|
-
const
|
|
28
|
+
const g = /* @__PURE__ */ f(_, [["render", u]]);
|
|
27
29
|
export {
|
|
28
|
-
|
|
30
|
+
g as default
|
|
29
31
|
};
|
package/src/components/form-designer/setting-panel/property-editor/labelIconClass-editor.vue.js
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
import d from "../../../../utils/i18n.js";
|
|
2
|
-
import {
|
|
3
|
-
import b from "
|
|
2
|
+
import { TpfSelectIcon as m } from "tmgc2-share";
|
|
3
|
+
import { resolveComponent as o, createElementBlock as p, openBlock as f, Fragment as _, createVNode as e, withCtx as t, createTextVNode as u, toDisplayString as b } from "vue";
|
|
4
|
+
import I from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
5
|
const g = {
|
|
5
6
|
name: "labelIconClass-editor",
|
|
6
7
|
mixins: [d],
|
|
8
|
+
components: {
|
|
9
|
+
TpfSelectIcon: m
|
|
10
|
+
},
|
|
7
11
|
props: {
|
|
8
12
|
designer: Object,
|
|
9
13
|
selectedWidget: Object,
|
|
10
14
|
optionModel: Object
|
|
11
15
|
}
|
|
12
16
|
};
|
|
13
|
-
function v(n, l, a, C,
|
|
14
|
-
const s =
|
|
15
|
-
return
|
|
17
|
+
function v(n, l, a, C, x, S) {
|
|
18
|
+
const s = o("a-divider"), i = o("a-form-item"), c = o("TpfSelectIcon");
|
|
19
|
+
return f(), p(_, null, [
|
|
16
20
|
e(i, { "label-width": "0" }, {
|
|
17
|
-
default:
|
|
21
|
+
default: t(() => [
|
|
18
22
|
e(s, { class: "custom-divider" }, {
|
|
19
|
-
default:
|
|
20
|
-
u(
|
|
23
|
+
default: t(() => [
|
|
24
|
+
u(b(n.i18nt("designer.setting.customLabelIcon")), 1)
|
|
21
25
|
]),
|
|
22
26
|
_: 1
|
|
23
27
|
})
|
|
@@ -27,18 +31,17 @@ function v(n, l, a, C, I, x) {
|
|
|
27
31
|
e(i, {
|
|
28
32
|
label: n.i18nt("designer.setting.labelIconClass")
|
|
29
33
|
}, {
|
|
30
|
-
default:
|
|
31
|
-
e(
|
|
32
|
-
type: "text",
|
|
34
|
+
default: t(() => [
|
|
35
|
+
e(c, {
|
|
33
36
|
value: a.optionModel.labelIconClass,
|
|
34
|
-
"onUpdate:value": l[0] || (l[0] = (
|
|
37
|
+
"onUpdate:value": l[0] || (l[0] = (r) => a.optionModel.labelIconClass = r)
|
|
35
38
|
}, null, 8, ["value"])
|
|
36
39
|
]),
|
|
37
40
|
_: 1
|
|
38
41
|
}, 8, ["label"])
|
|
39
42
|
], 64);
|
|
40
43
|
}
|
|
41
|
-
const k = /* @__PURE__ */
|
|
44
|
+
const k = /* @__PURE__ */ I(g, [["render", v]]);
|
|
42
45
|
export {
|
|
43
46
|
k as default
|
|
44
47
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import v from "
|
|
1
|
+
import { SvgIcon as v } from "tmgc2-share";
|
|
2
2
|
import L from "../../../../utils/i18n.js";
|
|
3
3
|
import { isEmptyStr as R, copyToClipboard as b } from "../../../../utils/util.js";
|
|
4
4
|
import { resolveComponent as o, createBlock as y, openBlock as W, withCtx as l, createVNode as r, createElementVNode as a, toDisplayString as m, createTextVNode as N } from "vue";
|
|
@@ -59,7 +59,11 @@ const F = {
|
|
|
59
59
|
if (s && s.registerToRefList) {
|
|
60
60
|
s.registerToRefList(i);
|
|
61
61
|
const n = this.getLabelByFieldName(e);
|
|
62
|
-
this.designer.updateSelectedWidgetNameAndLabel(
|
|
62
|
+
this.designer.updateSelectedWidgetNameAndLabel(
|
|
63
|
+
this.selectedWidget,
|
|
64
|
+
e,
|
|
65
|
+
n
|
|
66
|
+
);
|
|
63
67
|
}
|
|
64
68
|
}
|
|
65
69
|
},
|
|
@@ -84,7 +88,7 @@ function M(e, t, i, g, s, n) {
|
|
|
84
88
|
title: e.i18nt("designer.setting.editNameHelp")
|
|
85
89
|
}, {
|
|
86
90
|
default: l(() => [
|
|
87
|
-
r(f, { "icon-class": "el-info" })
|
|
91
|
+
r(f, { "icon-class": "icon-el-info" })
|
|
88
92
|
]),
|
|
89
93
|
_: 1
|
|
90
94
|
}, 8, ["title"])
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as o, createBlock as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import r from "../../../../utils/i18n.js";
|
|
2
|
+
import { resolveComponent as o, createBlock as p, openBlock as m, withCtx as c, createVNode as d } from "vue";
|
|
3
|
+
import g from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const b = {
|
|
5
5
|
name: "placement-editor",
|
|
6
6
|
componentName: "PropertyEditor",
|
|
7
|
-
mixins: [
|
|
7
|
+
mixins: [r],
|
|
8
8
|
props: {
|
|
9
9
|
designer: Object,
|
|
10
10
|
selectedWidget: Object,
|
|
@@ -13,33 +13,35 @@ const u = {
|
|
|
13
13
|
data() {
|
|
14
14
|
return {
|
|
15
15
|
placementList: [
|
|
16
|
-
{ value: "bottomLeft", label: "
|
|
17
|
-
{ value: "bottom", label: "
|
|
18
|
-
{ value: "bottomRight", label: "
|
|
19
|
-
{ value: "topLeft", label: "
|
|
20
|
-
{ value: "top", label: "
|
|
21
|
-
{ value: "topRight", label: "
|
|
16
|
+
{ value: "bottomLeft", label: this.i18nt("designer.setting.bottomLeft") },
|
|
17
|
+
{ value: "bottom", label: this.i18nt("designer.setting.bottom") },
|
|
18
|
+
{ value: "bottomRight", label: this.i18nt("designer.setting.bottomRight") },
|
|
19
|
+
{ value: "topLeft", label: this.i18nt("designer.setting.topLeft") },
|
|
20
|
+
{ value: "top", label: this.i18nt("designer.setting.top") },
|
|
21
|
+
{ value: "topRight", label: this.i18nt("designer.setting.topRight") }
|
|
22
22
|
]
|
|
23
23
|
};
|
|
24
24
|
},
|
|
25
25
|
created() {
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
function
|
|
29
|
-
const
|
|
30
|
-
return m(),
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
function u(n, t, e, f, i, _) {
|
|
29
|
+
const l = o("a-select"), a = o("a-form-item");
|
|
30
|
+
return m(), p(a, {
|
|
31
|
+
label: n.i18nt("designer.setting.placement")
|
|
32
|
+
}, {
|
|
33
|
+
default: c(() => [
|
|
34
|
+
d(l, {
|
|
35
|
+
value: e.optionModel.placement,
|
|
36
|
+
"onUpdate:value": t[0] || (t[0] = (s) => e.optionModel.placement = s),
|
|
35
37
|
allowClear: "",
|
|
36
|
-
options:
|
|
38
|
+
options: i.placementList
|
|
37
39
|
}, null, 8, ["value", "options"])
|
|
38
40
|
]),
|
|
39
41
|
_: 1
|
|
40
|
-
});
|
|
42
|
+
}, 8, ["label"]);
|
|
41
43
|
}
|
|
42
|
-
const
|
|
44
|
+
const x = /* @__PURE__ */ g(b, [["render", u]]);
|
|
43
45
|
export {
|
|
44
|
-
|
|
46
|
+
x as default
|
|
45
47
|
};
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as i, createBlock as
|
|
1
|
+
import s from "../../../../utils/i18n.js";
|
|
2
|
+
import { resolveComponent as i, createBlock as u, openBlock as m, withCtx as n, createVNode as h, createElementVNode as c, toDisplayString as p } from "vue";
|
|
3
3
|
import b from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const v = {
|
|
5
5
|
name: "validation-editor",
|
|
6
|
-
mixins: [
|
|
7
|
-
components: {
|
|
8
|
-
// SvgIcon
|
|
9
|
-
},
|
|
6
|
+
mixins: [s],
|
|
10
7
|
props: {
|
|
11
8
|
designer: Object,
|
|
12
9
|
selectedWidget: Object,
|
|
@@ -17,8 +14,14 @@ const v = {
|
|
|
17
14
|
fieldValidators: [
|
|
18
15
|
{ value: "number", label: this.i18nt("designer.hint.numberValidator") },
|
|
19
16
|
{ value: "letter", label: this.i18nt("designer.hint.letterValidator") },
|
|
20
|
-
{
|
|
21
|
-
|
|
17
|
+
{
|
|
18
|
+
value: "letterAndNumber",
|
|
19
|
+
label: this.i18nt("designer.hint.letterAndNumberValidator")
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
value: "mobilePhone",
|
|
23
|
+
label: this.i18nt("designer.hint.mobilePhoneValidator")
|
|
24
|
+
},
|
|
22
25
|
{ value: "email", label: this.i18nt("designer.hint.emailValidator") },
|
|
23
26
|
{ value: "url", label: this.i18nt("designer.hint.urlValidator") },
|
|
24
27
|
{ value: "noChinese", label: this.i18nt("designer.hint.noChineseValidator") },
|
|
@@ -29,14 +32,14 @@ const v = {
|
|
|
29
32
|
};
|
|
30
33
|
function f(l, e, t, g, a, _) {
|
|
31
34
|
const o = i("a-select"), r = i("a-form-item");
|
|
32
|
-
return
|
|
35
|
+
return m(), u(r, null, {
|
|
33
36
|
label: n(() => [
|
|
34
|
-
|
|
37
|
+
c("span", null, p(l.i18nt("designer.setting.validation")), 1)
|
|
35
38
|
]),
|
|
36
39
|
default: n(() => [
|
|
37
|
-
|
|
40
|
+
h(o, {
|
|
38
41
|
value: t.optionModel.validation,
|
|
39
|
-
"onUpdate:value": e[0] || (e[0] = (
|
|
42
|
+
"onUpdate:value": e[0] || (e[0] = (d) => t.optionModel.validation = d),
|
|
40
43
|
allowClear: "",
|
|
41
44
|
options: a.fieldValidators
|
|
42
45
|
}, null, 8, ["value", "options"])
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */
|
|
3
|
+
import a from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-8a2c11ac"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|