@kp-ui/lowcode 2.14.0-beta.5 → 2.14.0-beta.6
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/package.json +1 -1
- package/src/components/FormRender/useFormRender.js +17 -0
- package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue.js +12 -12
- package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue2.js +18 -20
- package/src/components/form-designer/form-widget/container-widget/vf-box-item.vue.js +9 -9
- package/src/components/form-designer/form-widget/field-widget/fieldMixin.js +4 -1
- package/src/components/form-designer/setting-panel/form-setting.vue.js +2 -2
- package/src/components/form-designer/setting-panel/form-setting.vue2.js +81 -94
- package/src/components/form-designer/setting-panel/index.vue.js +2 -2
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue.js +3 -3
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue2.js +7 -7
- package/src/components/form-render/RenderWigetList.vue.js +60 -0
- package/src/components/form-render/RenderWigetList.vue2.js +4 -0
- package/src/components/form-render/SubmitButtonRender.vue.js +33 -29
- package/src/components/form-render/container-item/container-item-wrapper.vue.js +2 -23
- package/src/components/form-render/container-item/container-item-wrapper.vue2.js +20 -0
- package/src/components/form-render/container-item/data-table-item.vue.js +22 -36
- package/src/components/form-render/container-item/grid-item.vue.js +7 -7
- package/src/components/form-render/container-item/grid-sub-form-item.vue.js +1 -1
- package/src/components/form-render/container-item/sub-form-item.vue.js +1 -1
- package/src/components/form-render/container-item/tab-item.vue.js +19 -19
- package/src/components/form-render/container-item/table-item.vue.js +7 -7
- package/src/components/form-render/container-item/vf-collapse-item.vue.js +27 -27
- package/src/components/form-render/dynamic-dialog.vue.js +70 -85
- package/src/components/form-render/index.vue.js +69 -98
- package/src/hooks/useLowcode.js +40 -39
- package/src/lang/en-US.js +3 -0
- package/src/lang/zh-CN.js +3 -0
- package/src/mixins/useDataTableMixin.js +18 -23
- package/stats.html +1 -1
- package/styles/style.css +1 -1
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ContainerWidgetMap as t } from "../form-render/container-item/index.js";
|
|
2
|
+
function a() {
|
|
3
|
+
function o(e) {
|
|
4
|
+
var r;
|
|
5
|
+
if (!e) return "";
|
|
6
|
+
const n = `./${e.type}-item.vue`;
|
|
7
|
+
return t[n] || console.warn(`未找到容器组件类型: ${e.type},请确保已注册该组件。`), (r = t[n]) == null ? void 0 : r.default;
|
|
8
|
+
}
|
|
9
|
+
return {
|
|
10
|
+
getFieldWidget: (e) => e ? (console.log({ widget: e.type }), `${e.type}-widget`) : "",
|
|
11
|
+
getContainerWidget: o,
|
|
12
|
+
ContainerWidgetMap: t
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
a as useFormRender
|
|
17
|
+
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import u from "./data-table-widget.vue2.js";
|
|
2
|
-
import { resolveComponent as a, createBlock as s, openBlock as
|
|
2
|
+
import { resolveComponent as a, createBlock as s, openBlock as n, withCtx as l, createElementBlock as C, withModifiers as p, normalizeClass as r, createElementVNode as y, createVNode as m, normalizeStyle as b, createCommentVNode as f } from "vue";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import R from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
5
|
const z = { class: "talbe-wrapper" };
|
|
6
|
-
function S(e,
|
|
6
|
+
function S(e, i, t, N, k, d) {
|
|
7
7
|
const c = a("a-empty"), w = a("RenderBodyCell"), g = a("s-table"), h = a("container-wrapper");
|
|
8
|
-
return
|
|
8
|
+
return n(), s(h, {
|
|
9
9
|
designer: t.designer,
|
|
10
10
|
widget: t.widget,
|
|
11
11
|
"parent-widget": t.parentWidget,
|
|
12
12
|
"parent-list": t.parentList,
|
|
13
13
|
"index-of-parent-list": t.indexOfParentList
|
|
14
14
|
}, {
|
|
15
|
-
default:
|
|
16
|
-
(
|
|
15
|
+
default: l(() => [
|
|
16
|
+
(n(), C("div", {
|
|
17
17
|
key: t.widget.id,
|
|
18
|
-
class: r(["collapse-container data-table-container", { selected:
|
|
19
|
-
onClick:
|
|
18
|
+
class: r(["collapse-container data-table-container", { selected: d.selected }]),
|
|
19
|
+
onClick: i[0] || (i[0] = p((o) => e.selectWidget(t.widget), ["stop"]))
|
|
20
20
|
}, [
|
|
21
21
|
y("div", z, [
|
|
22
22
|
m(g, {
|
|
@@ -24,7 +24,7 @@ function S(e, d, t, N, _, n) {
|
|
|
24
24
|
columns: e.columns.columns,
|
|
25
25
|
scroll: { y: e.tableHeight },
|
|
26
26
|
height: e.tableHeight,
|
|
27
|
-
dataSource:
|
|
27
|
+
dataSource: d.data,
|
|
28
28
|
class: r([e.customClass]),
|
|
29
29
|
size: e.widgetSize,
|
|
30
30
|
rowKey: (o) => o[t.widget.options.rowKey],
|
|
@@ -41,11 +41,11 @@ function S(e, d, t, N, _, n) {
|
|
|
41
41
|
loading: e.loading,
|
|
42
42
|
"row-height": e.lineHeight
|
|
43
43
|
}, {
|
|
44
|
-
emptyText:
|
|
44
|
+
emptyText: l(() => [
|
|
45
45
|
m(c)
|
|
46
46
|
]),
|
|
47
|
-
bodyCell:
|
|
48
|
-
e.isShowBodyCell(o.column.dataIndex) ? (
|
|
47
|
+
bodyCell: l((o) => [
|
|
48
|
+
e.isShowBodyCell(o.column.dataIndex) ? (n(), s(w, {
|
|
49
49
|
key: 0,
|
|
50
50
|
bodyCell: e.columns.bodyCell,
|
|
51
51
|
scope: o
|
|
@@ -59,7 +59,7 @@ function S(e, d, t, N, _, n) {
|
|
|
59
59
|
_: 1
|
|
60
60
|
}, 8, ["designer", "widget", "parent-widget", "parent-list", "index-of-parent-list"]);
|
|
61
61
|
}
|
|
62
|
-
const W = /* @__PURE__ */ R(u, [["render", S], ["__scopeId", "data-v-
|
|
62
|
+
const W = /* @__PURE__ */ R(u, [["render", S], ["__scopeId", "data-v-1355f36c"]]);
|
|
63
63
|
export {
|
|
64
64
|
W as default
|
|
65
65
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
1
|
+
import e from "./container-wrapper.vue.js";
|
|
2
|
+
import t from "../../../../utils/emitter.js";
|
|
3
|
+
import i from "../../../../utils/i18n.js";
|
|
4
|
+
import r from "../field-widget/index.js";
|
|
5
|
+
import o from "./containerMixin.js";
|
|
6
|
+
import a from "../../refMixinDesign.js";
|
|
7
|
+
import n from "../../../../mixins/useDataTableMixin.js";
|
|
8
|
+
const c = {
|
|
9
9
|
name: "DataTableWidget",
|
|
10
10
|
componentName: "DataTableWidget",
|
|
11
|
-
mixins: [
|
|
11
|
+
mixins: [i, o, a, t, n],
|
|
12
12
|
inject: ["refList"],
|
|
13
13
|
components: {
|
|
14
|
-
ContainerWrapper:
|
|
15
|
-
...
|
|
14
|
+
ContainerWrapper: e,
|
|
15
|
+
...r
|
|
16
16
|
},
|
|
17
17
|
data() {
|
|
18
18
|
return {
|
|
@@ -45,9 +45,11 @@ const l = {
|
|
|
45
45
|
this.initRefList();
|
|
46
46
|
},
|
|
47
47
|
mounted() {
|
|
48
|
-
this.
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
this.setPagination({
|
|
49
|
+
pageSize: this.widget.options.pagination.pageSize,
|
|
50
|
+
page: 1,
|
|
51
|
+
total: 1
|
|
52
|
+
});
|
|
51
53
|
},
|
|
52
54
|
computed: {
|
|
53
55
|
data() {
|
|
@@ -57,12 +59,8 @@ const l = {
|
|
|
57
59
|
return this.widget.id === this.designer.selectedId;
|
|
58
60
|
}
|
|
59
61
|
},
|
|
60
|
-
methods: {
|
|
61
|
-
selectWidget(e) {
|
|
62
|
-
this.designer.setSelected(e);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
62
|
+
methods: {}
|
|
65
63
|
};
|
|
66
64
|
export {
|
|
67
|
-
|
|
65
|
+
c as default
|
|
68
66
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import F from "../../../form-render/container-item/container-item-wrapper.
|
|
1
|
+
import F from "../../../form-render/container-item/container-item-wrapper.vue2.js";
|
|
2
2
|
import R from "../../../../utils/emitter.js";
|
|
3
|
-
import { defineAsyncComponent as O, resolveComponent as c, withDirectives as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import { defineAsyncComponent as O, resolveComponent as c, withDirectives as _, createBlock as a, openBlock as n, withCtx as m, createElementBlock as f, normalizeStyle as L, normalizeClass as S, createCommentVNode as g, Fragment as p, renderList as u, resolveDynamicComponent as w, createSlots as b, renderSlot as h, mergeProps as x, vShow as k } from "vue";
|
|
4
|
+
import $ from "../../../../utils/i18n.js";
|
|
5
|
+
import j from "../field-widget/index.js";
|
|
6
6
|
import B from "../../../form-render/refMixin.js";
|
|
7
7
|
import I from "../../../form-render/container-item/containerItemMixin.js";
|
|
8
8
|
import M from "../../../svg-icon/index.vue.js";
|
|
@@ -12,11 +12,11 @@ const D = {
|
|
|
12
12
|
name: "VfBoxItem",
|
|
13
13
|
componentName: "boxItem",
|
|
14
14
|
// 必须固定为ContainerItem,用于接收父级组件的broadcast事件
|
|
15
|
-
mixins: [R,
|
|
15
|
+
mixins: [R, $, B, I],
|
|
16
16
|
components: {
|
|
17
17
|
ContainerItemWrapper: F,
|
|
18
18
|
SvgIcon: M,
|
|
19
|
-
|
|
19
|
+
...j,
|
|
20
20
|
VFormRender: O(() => import("../../../form-render/index.vue.js"))
|
|
21
21
|
},
|
|
22
22
|
props: {
|
|
@@ -118,11 +118,11 @@ const D = {
|
|
|
118
118
|
};
|
|
119
119
|
function N(e, o, t, T, V, l) {
|
|
120
120
|
const y = c("VFormRender"), C = c("container-item-wrapper");
|
|
121
|
-
return
|
|
121
|
+
return _((n(), a(C, { widget: t.widget }, {
|
|
122
122
|
default: m(() => [
|
|
123
123
|
(n(), f("div", {
|
|
124
|
-
class:
|
|
125
|
-
style:
|
|
124
|
+
class: S(["box-container-item", [l.customClass]]),
|
|
125
|
+
style: L(l.boxStyle),
|
|
126
126
|
key: t.widget.id
|
|
127
127
|
}, [
|
|
128
128
|
t.widget.options.formCode ? (n(), a(y, {
|
|
@@ -84,9 +84,12 @@ const g = {
|
|
|
84
84
|
getPropName() {
|
|
85
85
|
return this.subFormItemFlag && !this.designState ? this.subFormName + "." + this.subFormRowIndex + "." + this.field.options.name : this.field.options.name;
|
|
86
86
|
},
|
|
87
|
+
getEl() {
|
|
88
|
+
return this.$el;
|
|
89
|
+
},
|
|
87
90
|
initFieldModel() {
|
|
88
91
|
if (this.field.formItemFlag) {
|
|
89
|
-
if (
|
|
92
|
+
if (this.subFormItemFlag && !this.designState) {
|
|
90
93
|
const i = this.formModel[this.subFormName];
|
|
91
94
|
(i === void 0 || i[this.subFormRowIndex] === void 0 || i[this.subFormRowIndex][this.field.options.name] === void 0) && this.field.options.defaultValue !== void 0 ? (this.fieldModel = this.field.options.defaultValue, i[this.subFormRowIndex][this.field.options.name] = this.field.options.defaultValue) : i[this.subFormRowIndex][this.field.options.name] === void 0 ? (this.fieldModel = null, i[this.subFormRowIndex][this.field.options.name] = null) : this.fieldModel = i[this.subFormRowIndex][this.field.options.name], setTimeout(() => {
|
|
92
95
|
this.handleOnChangeForSubForm(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./form-setting.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b0ffdf67"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as X, inject as Y, ref as f, onMounted as Z, resolveComponent as u, createElementBlock as D, openBlock as B, Fragment as K, createVNode as o, withModifiers as ee, withCtx as t, createBlock as oe, createCommentVNode as ne, unref as a, createTextVNode as p, toDisplayString as C, normalizeClass as P, renderList as te } from "vue";
|
|
2
2
|
import { useI18n as le } from "../../../utils/i18n.js";
|
|
3
|
-
import { insertCustomCssToHead as
|
|
3
|
+
import { insertCustomCssToHead as j, deepClone as I } from "../../../utils/util.js";
|
|
4
4
|
import ae from "../../public/methoad-item.vue.js";
|
|
5
5
|
import se from "./property-editor/container-vf-dialog/okButtonHidden-editor.vue.js";
|
|
6
6
|
import ie from "./property-editor/container-vf-dialog/cancelButtonHidden-editor.vue.js";
|
|
7
7
|
import { TpfCodeEditor as re } from "tmgc2-share";
|
|
8
|
-
|
|
9
|
-
const be = /* @__PURE__ */ Y({
|
|
8
|
+
const Ce = /* @__PURE__ */ X({
|
|
10
9
|
name: "form-setting",
|
|
11
10
|
__name: "form-setting",
|
|
12
11
|
props: {
|
|
13
12
|
designer: {},
|
|
14
13
|
formConfig: {}
|
|
15
14
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const m =
|
|
15
|
+
setup(T) {
|
|
16
|
+
const m = T, { i18nt: s } = le(), F = Y("getDesignerConfig"), H = F ? F() : {}, y = f("javascript"), O = f(""), S = f(""), N = f(!1), U = f(""), M = f(["1", "2"]), c = f(""), E = f([]), _ = f(""), A = f(null), R = [
|
|
18
17
|
{ label: "default", value: "middle" },
|
|
19
18
|
{ label: "large", value: "large" },
|
|
20
19
|
{ label: "small", value: "small" }
|
|
@@ -23,79 +22,80 @@ const be = /* @__PURE__ */ Y({
|
|
|
23
22
|
onFormMounted: "onFormMounted() {",
|
|
24
23
|
onOkButtonClick: "onOkButtonClick() {",
|
|
25
24
|
onCancelButtonClick: "onCancelButtonClick() {",
|
|
25
|
+
onFormEnterKey: "onFormEnterKey() {",
|
|
26
26
|
onFormDataChange: "onFormDataChange(fieldName, newValue, oldValue, formModel, subFormName, subFormRowIndex) {"
|
|
27
27
|
//'onFormValidate': 'onFormValidate() {',
|
|
28
28
|
}, W = (e) => {
|
|
29
29
|
m.formConfig[O.value] = e;
|
|
30
|
-
},
|
|
31
|
-
O.value = e.eventName,
|
|
32
|
-
}, $ = (e) => !!m.formConfig[e] && m.formConfig[e].length > 0,
|
|
33
|
-
const e = /\..*{/g,
|
|
34
|
-
|
|
35
|
-
const v =
|
|
30
|
+
}, w = (e) => {
|
|
31
|
+
O.value = e.eventName, y.value = e.mode, N.value = e.isShowEventHeader, _.value = m.formConfig[e.eventName], S.value = e.title, U.value = e.eventHeader || "", A.value.open();
|
|
32
|
+
}, $ = (e) => !!m.formConfig[e] && m.formConfig[e].length > 0, x = () => H.eventCollapse === void 0 ? !0 : !!H.eventCollapse, k = () => {
|
|
33
|
+
const e = /\..*{/g, n = c.value.match(e), g = [];
|
|
34
|
+
n && n.length > 0 && n.forEach((d) => {
|
|
35
|
+
const v = d.split(",");
|
|
36
36
|
v.length > 0 && v.forEach((b) => {
|
|
37
37
|
const i = b.trim();
|
|
38
38
|
if (i.indexOf(".", 1) !== -1) {
|
|
39
|
-
const
|
|
39
|
+
const r = i.substring(
|
|
40
40
|
i.indexOf(".") + 1,
|
|
41
41
|
i.indexOf(".", 1)
|
|
42
42
|
);
|
|
43
|
-
|
|
43
|
+
r && g.push(r.trim());
|
|
44
44
|
} else if (i.indexOf(" ") !== -1) {
|
|
45
|
-
const
|
|
45
|
+
const r = i.substring(
|
|
46
46
|
i.indexOf(".") + 1,
|
|
47
47
|
i.indexOf(" ")
|
|
48
48
|
);
|
|
49
|
-
|
|
49
|
+
r && g.push(r.trim());
|
|
50
50
|
} else if (i.indexOf("{") !== -1) {
|
|
51
|
-
const
|
|
51
|
+
const r = i.substring(
|
|
52
52
|
i.indexOf(".") + 1,
|
|
53
53
|
i.indexOf("{")
|
|
54
54
|
);
|
|
55
|
-
g.push(
|
|
55
|
+
g.push(r.trim());
|
|
56
56
|
} else {
|
|
57
|
-
const
|
|
58
|
-
g.push(
|
|
57
|
+
const r = i.substring(i.indexOf(".") + 1);
|
|
58
|
+
g.push(r.trim());
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
|
-
return
|
|
63
|
+
return Z(() => {
|
|
64
64
|
m.designer.handleEvent("form-json-imported", () => {
|
|
65
|
-
c.value = m.formConfig.cssCode,
|
|
65
|
+
c.value = m.formConfig.cssCode, j(c.value), k(), m.designer.emitEvent("form-css-updated", I(E.value));
|
|
66
66
|
}), setTimeout(() => {
|
|
67
|
-
c.value = m.formConfig.cssCode,
|
|
67
|
+
c.value = m.formConfig.cssCode, j(c.value), k(), m.designer.emitEvent("form-css-updated", I(E.value));
|
|
68
68
|
}, 1200);
|
|
69
|
-
}), (e,
|
|
70
|
-
const g = u("a-select"),
|
|
71
|
-
return
|
|
72
|
-
|
|
69
|
+
}), (e, n) => {
|
|
70
|
+
const g = u("a-select"), d = u("a-form-item"), v = u("a-radio-button"), b = u("a-radio-group"), i = u("a-input-number"), r = u("a-button"), L = u("a-input"), V = u("a-collapse-panel"), q = u("a-collapse"), G = u("a-form"), J = u("a-config-provider");
|
|
71
|
+
return B(), D(K, null, [
|
|
72
|
+
o(G, {
|
|
73
73
|
model: e.formConfig,
|
|
74
74
|
labelAlign: "left",
|
|
75
75
|
"label-width": "120px",
|
|
76
76
|
class: "setting-form",
|
|
77
|
-
onSubmit:
|
|
77
|
+
onSubmit: n[10] || (n[10] = ee(() => {
|
|
78
78
|
}, ["prevent"]))
|
|
79
79
|
}, {
|
|
80
80
|
default: t(() => [
|
|
81
|
-
|
|
81
|
+
o(q, {
|
|
82
82
|
activeKey: M.value,
|
|
83
|
-
"onUpdate:activeKey":
|
|
83
|
+
"onUpdate:activeKey": n[9] || (n[9] = (l) => M.value = l),
|
|
84
84
|
class: "setting-collapse"
|
|
85
85
|
}, {
|
|
86
86
|
default: t(() => [
|
|
87
|
-
|
|
87
|
+
o(V, {
|
|
88
88
|
key: "1",
|
|
89
89
|
header: a(s)("designer.setting.基本属性")
|
|
90
90
|
}, {
|
|
91
91
|
default: t(() => [
|
|
92
|
-
|
|
92
|
+
o(d, {
|
|
93
93
|
label: a(s)("designer.setting.formSize")
|
|
94
94
|
}, {
|
|
95
95
|
default: t(() => [
|
|
96
|
-
|
|
96
|
+
o(g, {
|
|
97
97
|
value: e.formConfig.size,
|
|
98
|
-
"onUpdate:value":
|
|
98
|
+
"onUpdate:value": n[0] || (n[0] = (l) => e.formConfig.size = l),
|
|
99
99
|
options: R,
|
|
100
100
|
allowClear: "",
|
|
101
101
|
style: { width: "120px" }
|
|
@@ -103,23 +103,23 @@ const be = /* @__PURE__ */ Y({
|
|
|
103
103
|
]),
|
|
104
104
|
_: 1
|
|
105
105
|
}, 8, ["label"]),
|
|
106
|
-
|
|
106
|
+
o(d, {
|
|
107
107
|
label: a(s)("designer.setting.labelPosition")
|
|
108
108
|
}, {
|
|
109
109
|
default: t(() => [
|
|
110
|
-
|
|
110
|
+
o(b, {
|
|
111
111
|
value: e.formConfig.labelPosition,
|
|
112
|
-
"onUpdate:value":
|
|
112
|
+
"onUpdate:value": n[1] || (n[1] = (l) => e.formConfig.labelPosition = l),
|
|
113
113
|
class: "radio-group-custom"
|
|
114
114
|
}, {
|
|
115
115
|
default: t(() => [
|
|
116
|
-
|
|
116
|
+
o(v, { value: "horizontal" }, {
|
|
117
117
|
default: t(() => [
|
|
118
118
|
p(C(a(s)("designer.setting.horizontal")), 1)
|
|
119
119
|
]),
|
|
120
120
|
_: 1
|
|
121
121
|
}),
|
|
122
|
-
|
|
122
|
+
o(v, { value: "vertical" }, {
|
|
123
123
|
default: t(() => [
|
|
124
124
|
p(C(a(s)("designer.setting.vertical")), 1)
|
|
125
125
|
]),
|
|
@@ -131,23 +131,23 @@ const be = /* @__PURE__ */ Y({
|
|
|
131
131
|
]),
|
|
132
132
|
_: 1
|
|
133
133
|
}, 8, ["label"]),
|
|
134
|
-
|
|
134
|
+
o(d, {
|
|
135
135
|
label: a(s)("designer.setting.labelAlign")
|
|
136
136
|
}, {
|
|
137
137
|
default: t(() => [
|
|
138
|
-
|
|
138
|
+
o(b, {
|
|
139
139
|
value: e.formConfig.labelAlign,
|
|
140
|
-
"onUpdate:value":
|
|
140
|
+
"onUpdate:value": n[2] || (n[2] = (l) => e.formConfig.labelAlign = l),
|
|
141
141
|
class: "radio-group-custom"
|
|
142
142
|
}, {
|
|
143
143
|
default: t(() => [
|
|
144
|
-
|
|
144
|
+
o(v, { value: "left" }, {
|
|
145
145
|
default: t(() => [
|
|
146
146
|
p(C(a(s)("designer.setting.leftAlign")), 1)
|
|
147
147
|
]),
|
|
148
148
|
_: 1
|
|
149
149
|
}),
|
|
150
|
-
|
|
150
|
+
o(v, { value: "right" }, {
|
|
151
151
|
default: t(() => [
|
|
152
152
|
p(C(a(s)("designer.setting.rightAlign")), 1)
|
|
153
153
|
]),
|
|
@@ -159,13 +159,13 @@ const be = /* @__PURE__ */ Y({
|
|
|
159
159
|
]),
|
|
160
160
|
_: 1
|
|
161
161
|
}, 8, ["label"]),
|
|
162
|
-
|
|
162
|
+
o(d, {
|
|
163
163
|
label: a(s)("designer.setting.labelWidth")
|
|
164
164
|
}, {
|
|
165
165
|
default: t(() => [
|
|
166
|
-
|
|
166
|
+
o(i, {
|
|
167
167
|
value: e.formConfig.labelWidth,
|
|
168
|
-
"onUpdate:value":
|
|
168
|
+
"onUpdate:value": n[3] || (n[3] = (l) => e.formConfig.labelWidth = l),
|
|
169
169
|
min: 0,
|
|
170
170
|
style: { width: "100%" },
|
|
171
171
|
allowClear: ""
|
|
@@ -173,19 +173,19 @@ const be = /* @__PURE__ */ Y({
|
|
|
173
173
|
]),
|
|
174
174
|
_: 1
|
|
175
175
|
}, 8, ["label"]),
|
|
176
|
-
|
|
176
|
+
o(d, {
|
|
177
177
|
label: a(s)("designer.setting.formCss")
|
|
178
178
|
}, {
|
|
179
179
|
default: t(() => [
|
|
180
|
-
|
|
180
|
+
o(r, {
|
|
181
181
|
shape: "round",
|
|
182
|
-
onClick:
|
|
182
|
+
onClick: n[4] || (n[4] = (l) => w({
|
|
183
183
|
eventName: "formCss",
|
|
184
184
|
isShowEventHeader: !1,
|
|
185
185
|
mode: "css",
|
|
186
186
|
title: a(s)("designer.setting.formCss")
|
|
187
187
|
})),
|
|
188
|
-
class:
|
|
188
|
+
class: P([{ "button-text-highlight": !!e.formConfig.cssCode }])
|
|
189
189
|
}, {
|
|
190
190
|
default: t(() => [
|
|
191
191
|
p(C(a(s)("designer.setting.addCss")), 1)
|
|
@@ -195,29 +195,29 @@ const be = /* @__PURE__ */ Y({
|
|
|
195
195
|
]),
|
|
196
196
|
_: 1
|
|
197
197
|
}, 8, ["label"]),
|
|
198
|
-
|
|
198
|
+
o(d, {
|
|
199
199
|
label: a(s)("designer.setting.customClass")
|
|
200
200
|
}, {
|
|
201
201
|
default: t(() => [
|
|
202
|
-
|
|
202
|
+
o(g, {
|
|
203
203
|
value: e.formConfig.customClass,
|
|
204
|
-
"onUpdate:value":
|
|
204
|
+
"onUpdate:value": n[5] || (n[5] = (l) => e.formConfig.customClass = l),
|
|
205
205
|
allowClear: "",
|
|
206
206
|
mode: "tags",
|
|
207
|
-
onChange:
|
|
207
|
+
onChange: k,
|
|
208
208
|
options: E.value
|
|
209
209
|
}, null, 8, ["value", "options"])
|
|
210
210
|
]),
|
|
211
211
|
_: 1
|
|
212
212
|
}, 8, ["label"]),
|
|
213
|
-
|
|
213
|
+
o(d, {
|
|
214
214
|
label: a(s)("designer.setting.globalFunctions")
|
|
215
215
|
}, {
|
|
216
216
|
default: t(() => [
|
|
217
|
-
|
|
218
|
-
class:
|
|
217
|
+
o(r, {
|
|
218
|
+
class: P([{ "button-text-highlight": !!e.formConfig.functions }]),
|
|
219
219
|
shape: "round",
|
|
220
|
-
onClick:
|
|
220
|
+
onClick: n[6] || (n[6] = (l) => w({
|
|
221
221
|
eventName: "functions",
|
|
222
222
|
isShowEventHeader: !1,
|
|
223
223
|
mode: "javascript",
|
|
@@ -232,85 +232,72 @@ const be = /* @__PURE__ */ Y({
|
|
|
232
232
|
]),
|
|
233
233
|
_: 1
|
|
234
234
|
}, 8, ["label"]),
|
|
235
|
-
|
|
235
|
+
o(d, {
|
|
236
236
|
label: a(s)("designer.setting.cancelButtonLabel")
|
|
237
237
|
}, {
|
|
238
238
|
default: t(() => [
|
|
239
|
-
|
|
239
|
+
o(L, {
|
|
240
240
|
type: "text",
|
|
241
241
|
value: e.formConfig.cancelButtonLabel,
|
|
242
|
-
"onUpdate:value":
|
|
242
|
+
"onUpdate:value": n[7] || (n[7] = (l) => e.formConfig.cancelButtonLabel = l)
|
|
243
243
|
}, null, 8, ["value"])
|
|
244
244
|
]),
|
|
245
245
|
_: 1
|
|
246
246
|
}, 8, ["label"]),
|
|
247
|
-
|
|
248
|
-
|
|
247
|
+
o(ie, { optionModel: e.formConfig }, null, 8, ["optionModel"]),
|
|
248
|
+
o(d, {
|
|
249
249
|
label: a(s)("designer.setting.okButtonLabel")
|
|
250
250
|
}, {
|
|
251
251
|
default: t(() => [
|
|
252
|
-
|
|
252
|
+
o(L, {
|
|
253
253
|
type: "text",
|
|
254
254
|
value: e.formConfig.okButtonLabel,
|
|
255
|
-
"onUpdate:value":
|
|
255
|
+
"onUpdate:value": n[8] || (n[8] = (l) => e.formConfig.okButtonLabel = l)
|
|
256
256
|
}, null, 8, ["value"])
|
|
257
257
|
]),
|
|
258
258
|
_: 1
|
|
259
259
|
}, 8, ["label"]),
|
|
260
|
-
|
|
261
|
-
n(r, {
|
|
262
|
-
label: a(s)("designer.setting.isEnterSubmit")
|
|
263
|
-
}, {
|
|
264
|
-
default: t(() => [
|
|
265
|
-
n(a(de), {
|
|
266
|
-
checked: e.formConfig.isEnterSubmit,
|
|
267
|
-
"onUpdate:checked": o[9] || (o[9] = (l) => e.formConfig.isEnterSubmit = l),
|
|
268
|
-
"checked-value": 1,
|
|
269
|
-
"un-checked-value": 0
|
|
270
|
-
}, null, 8, ["checked"])
|
|
271
|
-
]),
|
|
272
|
-
_: 1
|
|
273
|
-
}, 8, ["label"])
|
|
260
|
+
o(se, { optionModel: e.formConfig }, null, 8, ["optionModel"])
|
|
274
261
|
]),
|
|
275
262
|
_: 1
|
|
276
263
|
}, 8, ["header"]),
|
|
277
|
-
|
|
264
|
+
x() ? (B(), oe(V, {
|
|
278
265
|
key: "2",
|
|
279
266
|
class: "eventPanel",
|
|
280
267
|
header: a(s)("designer.setting.事件属性")
|
|
281
268
|
}, {
|
|
282
269
|
default: t(() => [
|
|
283
|
-
(
|
|
284
|
-
onClickItem:
|
|
270
|
+
(B(), D(K, null, te(z, (l, h) => o(ae, {
|
|
271
|
+
onClickItem: w,
|
|
285
272
|
key: h,
|
|
286
273
|
"event-name": h,
|
|
287
274
|
value: e.formConfig[h],
|
|
288
|
-
"onUpdate:value": (
|
|
275
|
+
"onUpdate:value": (Q) => e.formConfig[h] = Q,
|
|
289
276
|
"get-form-event-handled": $,
|
|
290
277
|
"event-params-map": z,
|
|
291
278
|
"form-config": e.formConfig
|
|
292
279
|
}, null, 8, ["event-name", "value", "onUpdate:value", "form-config"])), 64))
|
|
293
280
|
]),
|
|
294
281
|
_: 1
|
|
295
|
-
}, 8, ["header"])) :
|
|
282
|
+
}, 8, ["header"])) : ne("", !0)
|
|
296
283
|
]),
|
|
297
284
|
_: 1
|
|
298
285
|
}, 8, ["activeKey"])
|
|
299
286
|
]),
|
|
300
287
|
_: 1
|
|
301
288
|
}, 8, ["model"]),
|
|
302
|
-
|
|
289
|
+
o(J, { componentSize: "middle" }, {
|
|
303
290
|
default: t(() => [
|
|
304
|
-
|
|
305
|
-
isShowEventHeader:
|
|
291
|
+
o(a(re), {
|
|
292
|
+
isShowEventHeader: N.value,
|
|
306
293
|
ref_key: "codeEditorRef",
|
|
307
294
|
ref: A,
|
|
308
|
-
"event-header":
|
|
309
|
-
modelValue:
|
|
310
|
-
"onUpdate:modelValue":
|
|
311
|
-
mode:
|
|
295
|
+
"event-header": U.value,
|
|
296
|
+
modelValue: _.value,
|
|
297
|
+
"onUpdate:modelValue": n[11] || (n[11] = (l) => _.value = l),
|
|
298
|
+
mode: y.value,
|
|
312
299
|
readonly: !1,
|
|
313
|
-
title:
|
|
300
|
+
title: S.value,
|
|
314
301
|
onSetCode: W
|
|
315
302
|
}, null, 8, ["isShowEventHeader", "event-header", "modelValue", "mode", "title"])
|
|
316
303
|
]),
|
|
@@ -321,5 +308,5 @@ const be = /* @__PURE__ */ Y({
|
|
|
321
308
|
}
|
|
322
309
|
});
|
|
323
310
|
export {
|
|
324
|
-
|
|
311
|
+
Ce as default
|
|
325
312
|
};
|
|
@@ -2,7 +2,7 @@ import t from "./index.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-f4273f12"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./data-table-tableColumns-editor.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import a from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-b0d9c3ea"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|