@kp-ui/lowcode 2.14.0-beta.2 → 2.14.0-beta.21
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 +18 -0
- package/src/components/form-designer/designer.js +78 -75
- package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue.js +18 -18
- 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/container-widget/vf-dialog-widget.vue.js +29 -21
- package/src/components/form-designer/form-widget/field-widget/cascader-widget.vue.js +32 -39
- package/src/components/form-designer/form-widget/field-widget/date-range-widget.vue.js +24 -31
- package/src/components/form-designer/form-widget/field-widget/date-widget.vue.js +26 -33
- package/src/components/form-designer/form-widget/field-widget/diy-compontent-widget.vue.js +4 -4
- package/src/components/form-designer/form-widget/field-widget/fieldMixin.js +4 -1
- package/src/components/form-designer/form-widget/field-widget/form-item-wrapper.vue.js +84 -152
- package/src/components/form-designer/form-widget/field-widget/input-widget.vue.js +31 -38
- package/src/components/form-designer/form-widget/field-widget/number-widget.vue.js +23 -30
- package/src/components/form-designer/form-widget/field-widget/select-widget.vue.js +56 -63
- package/src/components/form-designer/form-widget/field-widget/switch-widget.vue.js +1 -1
- package/src/components/form-designer/form-widget/field-widget/textarea-widget.vue.js +23 -32
- package/src/components/form-designer/form-widget/field-widget/treeSelect-widget.vue.js +26 -33
- 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/index.vue2.js +135 -135
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-colorRow-editor.vue2.js +8 -7
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-dsEnabled-editor.vue.js +23 -22
- 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-designer/setting-panel/property-editor/container-vf-dialog/formCode-editor.vue.js +25 -19
- package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/line-height-editor.vue2.js +7 -6
- package/src/components/form-designer/setting-panel/property-editor/index.js +41 -42
- package/src/components/form-designer/setting-panel/propertyRegister.js +3 -6
- package/src/components/form-designer/widget-panel/PanelItemDrag.vue.js +50 -0
- package/src/components/form-designer/widget-panel/PanelItemDrag.vue2.js +4 -0
- package/src/components/form-designer/widget-panel/advanced/cascader.js +0 -1
- package/src/components/form-designer/widget-panel/advanced/data-table.js +1 -1
- package/src/components/form-designer/widget-panel/advanced/file-upload.js +0 -1
- package/src/components/form-designer/widget-panel/advanced/rich-editor.js +4 -5
- package/src/components/form-designer/widget-panel/advanced/tree-select.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/checkbox.js +2 -3
- package/src/components/form-designer/widget-panel/basicFields/color.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/date.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/dateRange.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/input.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/number.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/radio.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/rate.js +5 -6
- package/src/components/form-designer/widget-panel/basicFields/select.js +2 -3
- package/src/components/form-designer/widget-panel/basicFields/slider.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/switch.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/textarea.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/time.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/timeRange.js +0 -1
- package/src/components/form-designer/widget-panel/business/department-select.js +0 -1
- package/src/components/form-designer/widget-panel/business/material-select.js +0 -1
- package/src/components/form-designer/widget-panel/business/operation-select.js +2 -3
- package/src/components/form-designer/widget-panel/business/post-select.js +0 -1
- package/src/components/form-designer/widget-panel/business/project-group-select.js +2 -3
- package/src/components/form-designer/widget-panel/business/project-select.js +2 -3
- package/src/components/form-designer/widget-panel/business/user-select.js +0 -1
- package/src/components/form-designer/widget-panel/containers/vf-dialog.js +3 -2
- package/src/components/form-designer/widget-panel/index.vue.js +4 -338
- package/src/components/form-designer/widget-panel/index.vue2.js +82 -0
- package/src/components/form-designer/widget-panel/widgetsConfig.js +19 -18
- package/src/components/form-render/RenderWigetList.vue.js +61 -0
- package/src/components/form-render/RenderWigetList.vue2.js +4 -0
- package/src/components/form-render/SubmitButtonRender.vue.js +41 -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 +115 -146
- 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 +87 -86
- package/src/components/form-render/index.vue.js +94 -110
- package/src/components/public/ActionButtonListDialog.vue.js +82 -75
- package/src/components/public/ActionButtonListDialog.vue2.js +16 -10
- package/src/components/public/ActionButtonListRender.vue.js +12 -11
- package/src/components/public/CustomerModal/CustomerModal.vue2.js +49 -42
- package/src/hooks/useLowcode.js +40 -39
- package/src/lang/en-US.js +5 -1
- package/src/lang/zh-CN.js +5 -1
- package/src/mixins/useDataTableMixin.js +29 -31
- package/src/utils/asyncExecuteFunction.js +4 -0
- package/stats.html +1 -1
- package/styles/style.css +1 -1
- package/src/components/form-designer/setting-panel/property-editor/labelTooltip-editor.vue.js +0 -31
- package/src/components/form-designer/widget-panel/templatesConfig.js +0 -53
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as n, createBlock as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import m from "../../../../../utils/i18n.js";
|
|
2
|
+
import { resolveComponent as n, createBlock as l, openBlock as p, withCtx as f, createVNode as c } from "vue";
|
|
3
|
+
import C from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const h = {
|
|
5
5
|
name: "formCode-editor",
|
|
6
|
-
mixins: [
|
|
6
|
+
mixins: [m],
|
|
7
7
|
props: {
|
|
8
8
|
designer: Object,
|
|
9
9
|
selectedWidget: Object,
|
|
@@ -18,8 +18,11 @@ const u = {
|
|
|
18
18
|
this.getOps();
|
|
19
19
|
},
|
|
20
20
|
methods: {
|
|
21
|
+
handleChangeFormCode(o) {
|
|
22
|
+
this.optionModel.formCode = o, this.optionModel.formId = this.ops.find((e) => e.formCode === o).formId;
|
|
23
|
+
},
|
|
21
24
|
async getOps() {
|
|
22
|
-
const
|
|
25
|
+
const o = {
|
|
23
26
|
pageCode: "FormDefinitionManagement",
|
|
24
27
|
conditions: [],
|
|
25
28
|
requiredFields: ["formCode", "terminalTypeName", "entityCode"],
|
|
@@ -27,28 +30,31 @@ const u = {
|
|
|
27
30
|
pageSize: null,
|
|
28
31
|
sorts: []
|
|
29
32
|
};
|
|
30
|
-
this.ops = await this.$http.post("/api/tmgc2-query/dataQuery/execute",
|
|
33
|
+
this.ops = await this.$http.post("/api/tmgc2-query/dataQuery/execute", o).then((e) => e.data.object.list || []).then(
|
|
34
|
+
(e) => e.map((t) => ({ formCode: t.formCode, formId: t.formId }))
|
|
35
|
+
);
|
|
31
36
|
}
|
|
32
37
|
}
|
|
33
38
|
};
|
|
34
|
-
function
|
|
35
|
-
const
|
|
36
|
-
return
|
|
37
|
-
label:
|
|
39
|
+
function u(o, e, t, g, r, d) {
|
|
40
|
+
const a = n("a-select"), i = n("a-form-item");
|
|
41
|
+
return p(), l(i, {
|
|
42
|
+
label: o.i18nt("designer.setting.formCode")
|
|
38
43
|
}, {
|
|
39
|
-
default:
|
|
40
|
-
c(
|
|
41
|
-
value:
|
|
42
|
-
"onUpdate:value": e[0] || (e[0] = (s) =>
|
|
44
|
+
default: f(() => [
|
|
45
|
+
c(a, {
|
|
46
|
+
value: t.optionModel.formCode,
|
|
47
|
+
"onUpdate:value": e[0] || (e[0] = (s) => t.optionModel.formCode = s),
|
|
43
48
|
allowClear: "",
|
|
44
49
|
options: r.ops,
|
|
45
|
-
fieldNames: { label: "formCode", value: "formCode" }
|
|
46
|
-
|
|
50
|
+
fieldNames: { label: "formCode", value: "formCode" },
|
|
51
|
+
onChange: d.handleChangeFormCode
|
|
52
|
+
}, null, 8, ["value", "options", "onChange"])
|
|
47
53
|
]),
|
|
48
54
|
_: 1
|
|
49
55
|
}, 8, ["label"]);
|
|
50
56
|
}
|
|
51
|
-
const
|
|
57
|
+
const v = /* @__PURE__ */ C(h, [["render", u]]);
|
|
52
58
|
export {
|
|
53
|
-
|
|
59
|
+
v as default
|
|
54
60
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as p, useModel as u, resolveComponent as o, createBlock as m, openBlock as d, unref as s, withCtx as _, createVNode as c } from "vue";
|
|
2
2
|
import { useI18n as f } from "../../../../../utils/i18n.js";
|
|
3
|
-
const v = /* @__PURE__ */
|
|
3
|
+
const v = /* @__PURE__ */ p({
|
|
4
|
+
name: "line-height-editor",
|
|
4
5
|
__name: "line-height-editor",
|
|
5
6
|
props: {
|
|
6
7
|
optionModel: {
|
|
@@ -12,17 +13,17 @@ const v = /* @__PURE__ */ u({
|
|
|
12
13
|
},
|
|
13
14
|
emits: ["update:optionModel"],
|
|
14
15
|
setup(n) {
|
|
15
|
-
const { i18nt: i } = f(), e =
|
|
16
|
+
const { i18nt: i } = f(), e = u(n, "optionModel");
|
|
16
17
|
return (g, t) => {
|
|
17
|
-
const l = o("a-input-number"),
|
|
18
|
-
return d(), m(
|
|
18
|
+
const l = o("a-input-number"), r = o("a-form-item");
|
|
19
|
+
return d(), m(r, {
|
|
19
20
|
label: s(i)("designer.setting.lineHeight")
|
|
20
21
|
}, {
|
|
21
22
|
default: _(() => [
|
|
22
23
|
c(l, {
|
|
23
24
|
type: "text",
|
|
24
25
|
value: e.value.lineHeight,
|
|
25
|
-
"onUpdate:value": t[0] || (t[0] = (
|
|
26
|
+
"onUpdate:value": t[0] || (t[0] = (a) => e.value.lineHeight = a)
|
|
26
27
|
}, null, 8, ["value"])
|
|
27
28
|
]),
|
|
28
29
|
_: 1
|
|
@@ -17,8 +17,8 @@ import * as b from "./columnWidth-editor.vue.js";
|
|
|
17
17
|
import * as g from "./container-data-table/customRowEvent/data-table-customRow-editor.vue.js";
|
|
18
18
|
import * as C from "./container-data-table/data-table-colorRow-editor.vue.js";
|
|
19
19
|
import * as w from "./container-data-table/data-table-customClass-editor.vue.js";
|
|
20
|
-
import * as
|
|
21
|
-
import * as
|
|
20
|
+
import * as k from "./container-data-table/data-table-dsEnabled-editor.vue.js";
|
|
21
|
+
import * as T from "./container-data-table/data-table-pagination-editor.vue.js";
|
|
22
22
|
import * as B from "./container-data-table/data-table-rowKey-editor.vue.js";
|
|
23
23
|
import * as D from "./container-data-table/data-table-selections-editor.vue.js";
|
|
24
24
|
import * as S from "./container-data-table/data-table-showButtonsColumn-editor.vue.js";
|
|
@@ -70,8 +70,8 @@ import * as bo from "./customClass-editor.vue.js";
|
|
|
70
70
|
import * as go from "./customRender-editor.vue.js";
|
|
71
71
|
import * as Co from "./defaultValue-editor.vue.js";
|
|
72
72
|
import * as wo from "./disabled-editor.vue.js";
|
|
73
|
-
import * as
|
|
74
|
-
import * as
|
|
73
|
+
import * as ko from "./editable-editor.vue.js";
|
|
74
|
+
import * as To from "./endPlaceholder-editor.vue.js";
|
|
75
75
|
import * as Bo from "./event-handler/onAppendButtonClick-editor.vue.js";
|
|
76
76
|
import * as Do from "./event-handler/onBeforeUpload-editor.vue.js";
|
|
77
77
|
import * as So from "./event-handler/onBlur-editor.vue.js";
|
|
@@ -124,8 +124,8 @@ import * as be from "./field-button/round-editor.vue.js";
|
|
|
124
124
|
import * as ge from "./field-button/shape-editor.vue.js";
|
|
125
125
|
import * as Ce from "./field-button/type-editor.vue.js";
|
|
126
126
|
import * as we from "./field-cascader/cascader-defaultValue-editor.vue.js";
|
|
127
|
-
import * as
|
|
128
|
-
import * as
|
|
127
|
+
import * as ke from "./field-cascader/cascader-multiple-editor.vue.js";
|
|
128
|
+
import * as Te from "./field-checkbox/checkbox-defaultValue-editor.vue.js";
|
|
129
129
|
import * as Be from "./field-color/color-defaultValue-editor.vue.js";
|
|
130
130
|
import * as De from "./field-date-range/date-range-defaultValue-editor.vue.js";
|
|
131
131
|
import * as Se from "./field-date-range/date-range-format-editor.vue.js";
|
|
@@ -176,45 +176,44 @@ import * as Et from "./labelAlign-editor.vue.js";
|
|
|
176
176
|
import * as ht from "./labelHidden-editor.vue.js";
|
|
177
177
|
import * as bt from "./labelIconClass-editor.vue.js";
|
|
178
178
|
import * as gt from "./labelIconPosition-editor.vue.js";
|
|
179
|
-
import * as Ct from "./
|
|
180
|
-
import * as wt from "./
|
|
181
|
-
import * as Tt from "./limit-editor.vue.js";
|
|
179
|
+
import * as Ct from "./labelWidth-editor.vue.js";
|
|
180
|
+
import * as wt from "./limit-editor.vue.js";
|
|
182
181
|
import * as kt from "./loadingPage-editor.vue.js";
|
|
183
|
-
import * as
|
|
184
|
-
import * as
|
|
185
|
-
import * as
|
|
186
|
-
import * as
|
|
187
|
-
import * as
|
|
188
|
-
import * as
|
|
189
|
-
import * as
|
|
190
|
-
import * as
|
|
191
|
-
import * as
|
|
192
|
-
import * as
|
|
193
|
-
import * as
|
|
194
|
-
import * as
|
|
195
|
-
import * as
|
|
196
|
-
import * as
|
|
197
|
-
import * as
|
|
198
|
-
import * as
|
|
199
|
-
import * as
|
|
200
|
-
import * as
|
|
201
|
-
import * as
|
|
202
|
-
import * as
|
|
203
|
-
import * as
|
|
204
|
-
import * as
|
|
205
|
-
import * as
|
|
206
|
-
import * as
|
|
207
|
-
import * as
|
|
208
|
-
import * as
|
|
209
|
-
import * as
|
|
210
|
-
import * as
|
|
211
|
-
import * as
|
|
212
|
-
import * as
|
|
213
|
-
const
|
|
182
|
+
import * as Tt from "./max-editor.vue.js";
|
|
183
|
+
import * as Bt from "./maxLength-editor.vue.js";
|
|
184
|
+
import * as Dt from "./maxSize-editor.vue.js";
|
|
185
|
+
import * as St from "./min-editor.vue.js";
|
|
186
|
+
import * as Rt from "./minLength-editor.vue.js";
|
|
187
|
+
import * as Vt from "./multiple-editor.vue.js";
|
|
188
|
+
import * as yt from "./name-editor.vue.js";
|
|
189
|
+
import * as Pt from "./optionItems-editor.vue.js";
|
|
190
|
+
import * as Ft from "./placeholder-editor.vue.js";
|
|
191
|
+
import * as Ht from "./placement-editor.vue.js";
|
|
192
|
+
import * as xt from "./precision-editor.vue.js";
|
|
193
|
+
import * as It from "./readonly-editor.vue.js";
|
|
194
|
+
import * as Ot from "./required-editor.vue.js";
|
|
195
|
+
import * as Mt from "./requiredHint-editor.vue.js";
|
|
196
|
+
import * as Lt from "./rightSlotCss-editor.vue.js";
|
|
197
|
+
import * as At from "./rows-editor.vue.js";
|
|
198
|
+
import * as Wt from "./showCount-editor.vue.js";
|
|
199
|
+
import * as zt from "./showFileList-editor.vue.js";
|
|
200
|
+
import * as Gt from "./showPassword-editor.vue.js";
|
|
201
|
+
import * as Ut from "./showSearch-editor.vue.js";
|
|
202
|
+
import * as qt from "./showTime-editor.vue.js";
|
|
203
|
+
import * as Nt from "./size-editor.vue.js";
|
|
204
|
+
import * as Kt from "./slot-compontent-editor.vue.js";
|
|
205
|
+
import * as Qt from "./startPlaceholder-editor.vue.js";
|
|
206
|
+
import * as jt from "./step-editor.vue.js";
|
|
207
|
+
import * as $t from "./type-editor.vue.js";
|
|
208
|
+
import * as Jt from "./uploadListType-editor.vue.js";
|
|
209
|
+
import * as Xt from "./useModel-editor.vue.js";
|
|
210
|
+
import * as Yt from "./validation-editor.vue.js";
|
|
211
|
+
import * as Zt from "./validationHint-editor.vue.js";
|
|
212
|
+
const _t = {}, o = /* @__PURE__ */ Object.assign({ "./accept-editor.vue": r, "./actionColumnPosition-editor.vue": i, "./addonAfter-editor.vue": a, "./addonBefore-editor.vue": d, "./allowClear-editor.vue": l, "./appendButton-editor.vue": n, "./appendButtonDisabled-editor.vue": m, "./autoFullWidth-editor.vue": u, "./border-editor.vue": s, "./boxModel-editor.vue": f, "./button-list-editor.vue": p, "./button-position-editor.vue": v, "./buttonIcon-editor.vue": c, "./buttonStyle-editor.vue": E, "./code-editor/code-editor-mode.vue": h, "./columnWidth-editor.vue": b, "./container-data-table/customRowEvent/data-table-customRow-editor.vue": g, "./container-data-table/data-table-colorRow-editor.vue": C, "./container-data-table/data-table-customClass-editor.vue": w, "./container-data-table/data-table-dsEnabled-editor.vue": k, "./container-data-table/data-table-pagination-editor.vue": T, "./container-data-table/data-table-rowKey-editor.vue": B, "./container-data-table/data-table-selections-editor.vue": D, "./container-data-table/data-table-showButtonsColumn-editor.vue": S, "./container-data-table/data-table-showIndex-editor.vue": R, "./container-data-table/data-table-stripe-editor.vue": V, "./container-data-table/data-table-tableColumns-editor.vue": y, "./container-data-table/data-table-tableHeight-editor.vue": P, "./container-data-table/data-table-tableSize-editor.vue": F, "./container-data-table/data-table-tableWidth-editor.vue": H, "./container-data-table/data-table-treeDataEnabled-editor.vue": x, "./container-grid-col/grid-col-offset-editor.vue": I, "./container-grid-col/grid-col-pull-editor.vue": O, "./container-grid-col/grid-col-push-editor.vue": M, "./container-grid-col/grid-col-responsive-editor.vue": L, "./container-grid-col/grid-col-span-editor.vue": A, "./container-grid/colHeight-editor.vue": W, "./container-grid/gutter-editor.vue": z, "./container-sub-form/showBlankRow-editor.vue": G, "./container-sub-form/showRowNumber-editor.vue": U, "./container-sub-form/sub-form-labelAlign-editor.vue": q, "./container-tab/tab-customClass-editor.vue": N, "./container-tab/tab-tabBarGutter-editor.vue": K, "./container-tab/tab-tabPosition-editor.vue": Q, "./container-tab/tab-type-editor.vue": j, "./container-table-cell/cellHeight-editor.vue": $, "./container-table-cell/cellWidth-editor.vue": J, "./container-vf-dialog/bodyStyle-editor.vue": X, "./container-vf-dialog/cancelButtonHidden-editor.vue": Y, "./container-vf-dialog/cancelButtonLabel-editor.vue": Z, "./container-vf-dialog/closeOnClickModal-editor.vue": _, "./container-vf-dialog/closeOnPressEscape-editor.vue": oo, "./container-vf-dialog/collapseIcon-editor.vue": eo, "./container-vf-dialog/disabledMode-editor.vue": to, "./container-vf-dialog/formCode-editor.vue": ro, "./container-vf-dialog/fullscreen-editor.vue": io, "./container-vf-dialog/height-editor.vue": ao, "./container-vf-dialog/isCollapse-editor.vue": lo, "./container-vf-dialog/line-height-editor.vue": no, "./container-vf-dialog/okButtonHidden-editor.vue": mo, "./container-vf-dialog/okButtonLabel-editor.vue": uo, "./container-vf-dialog/readMode-editor.vue": so, "./container-vf-dialog/showClose-editor.vue": fo, "./container-vf-dialog/title-editor.vue": po, "./container-vf-dialog/unCollapseIcon-editor.vue": vo, "./container-vf-dialog/width-editor.vue": co, "./container-vf-drawer/vf-drawer-direction-editor.vue": Eo, "./container-vf-drawer/vf-drawer-size-editor.vue": ho, "./customClass-editor.vue": bo, "./customRender-editor.vue": go, "./defaultValue-editor.vue": Co, "./disabled-editor.vue": wo, "./editable-editor.vue": ko, "./endPlaceholder-editor.vue": To, "./event-handler/onAppendButtonClick-editor.vue": Bo, "./event-handler/onBeforeUpload-editor.vue": Do, "./event-handler/onBlur-editor.vue": So, "./event-handler/onCancelButtonClick-editor.vue": Ro, "./event-handler/onCellClick-editor.vue": Vo, "./event-handler/onCellDoubleClick-editor.vue": yo, "./event-handler/onChange-editor.vue": Po, "./event-handler/onCheck-editor.vue": Fo, "./event-handler/onClick-editor.vue": Ho, "./event-handler/onClickIcon-editor.vue": xo, "./event-handler/onCreated-editor.vue": Io, "./event-handler/onCurrentPageChange-editor.vue": Oo, "./event-handler/onDialogBeforeClose-editor.vue": Mo, "./event-handler/onDialogOpened-editor.vue": Lo, "./event-handler/onDisableOperationButton-editor.vue": Ao, "./event-handler/onDrawerBeforeClose-editor.vue": Wo, "./event-handler/onDrawerOpened-editor.vue": zo, "./event-handler/onFileRemove.vue": Go, "./event-handler/onFocus-editor.vue": Uo, "./event-handler/onGetOperationButtonLabel-editor.vue": qo, "./event-handler/onGetRowClassName-editor.vue": No, "./event-handler/onGetSpanMethod-editor.vue": Ko, "./event-handler/onHeaderClick-editor.vue": Qo, "./event-handler/onHideOperationButton-editor.vue": jo, "./event-handler/onInput-editor.vue": $o, "./event-handler/onMenuClick-editor.vue": Jo, "./event-handler/onMounted-editor.vue": Xo, "./event-handler/onOkButtonClick-editor.vue": Yo, "./event-handler/onOperationButtonClick-editor.vue": Zo, "./event-handler/onPageSizeChange-editor.vue": _o, "./event-handler/onRemoteQuery-editor.vue": oe, "./event-handler/onRowClick-editor.vue": ee, "./event-handler/onRowDoubleClick-editor.vue": te, "./event-handler/onSelectionChange-editor.vue": re, "./event-handler/onSubFormRowAdd-editor.vue": ie, "./event-handler/onSubFormRowChange-editor.vue": ae, "./event-handler/onSubFormRowDelete-editor.vue": de, "./event-handler/onSubFormRowInsert-editor.vue": le, "./event-handler/onTabClick-editor.vue": ne, "./event-handler/onTableChange-editor.vue": me, "./event-handler/onUploadError-editor.vue": ue, "./event-handler/onUploadSuccess-editor.vue": se, "./event-handler/onValidate-editor.vue": fe, "./field-button/circle-editor.vue": pe, "./field-button/danger-editor.vue": ve, "./field-button/ghost-editor.vue": ce, "./field-button/icon-editor.vue": Ee, "./field-button/plain-editor.vue": he, "./field-button/round-editor.vue": be, "./field-button/shape-editor.vue": ge, "./field-button/type-editor.vue": Ce, "./field-cascader/cascader-defaultValue-editor.vue": we, "./field-cascader/cascader-multiple-editor.vue": ke, "./field-checkbox/checkbox-defaultValue-editor.vue": Te, "./field-color/color-defaultValue-editor.vue": Be, "./field-date-range/date-range-defaultValue-editor.vue": De, "./field-date-range/date-range-format-editor.vue": Se, "./field-date-range/date-range-type-editor.vue": Re, "./field-date-range/date-range-valueFormat-editor.vue": Ve, "./field-date/date-defaultValue-editor.vue": ye, "./field-date/date-format-editor.vue": Pe, "./field-date/date-type-editor.vue": Fe, "./field-date/date-valueFormat-editor.vue": He, "./field-divider/contentPosition-editor.vue": xe, "./field-divider/divider-direction-editor.vue": Ie, "./field-dropdown/dropdown-menuList-editor.vue": Oe, "./field-file-upload/file-upload-fileTypes-editor.vue": Me, "./field-html-text/htmlContent-editor.vue": Le, "./field-number/controlsPosition-editor.vue": Ae, "./field-number/number-defaultValue-editor.vue": We, "./field-picture-upload/picture-upload-fileTypes-editor.vue": ze, "./field-radio/radio-defaultValue-editor.vue": Ge, "./field-rate/allowHalf-editor.vue": Ue, "./field-rate/highThreshold-editor.vue": qe, "./field-rate/lowThreshold-editor.vue": Ne, "./field-rate/rate-count-editor.vue": Ke, "./field-rate/rate-defaultValue-editor.vue": Qe, "./field-rate/showScore-editor.vue": je, "./field-rate/showText-editor.vue": $e, "./field-rich-editor/rich-editor-contentHeight-editor.vue": Je, "./field-select/mode-editor.vue": Xe, "./field-select/select-defaultValue-editor.vue": Ye, "./field-slider/range-editor.vue": Ze, "./field-slider/vertical-editor.vue": _e, "./field-static-text/textContent-editor.vue": ot, "./field-switch/activeColor-editor.vue": et, "./field-switch/checkedValue-editor.vue": tt, "./field-switch/inactiveColor-editor.vue": rt, "./field-switch/switch-defaultValue-editor.vue": it, "./field-switch/switchWidth-editor.vue": at, "./field-switch/unCheckedValue-editor.vue": dt, "./field-time-range/time-range-defaultValue-editor.vue": lt, "./field-time-range/time-range-format-editor.vue": nt, "./field-time/time-defaultValue-editor.vue": mt, "./field-time/time-format-editor.vue": ut, "./field-tree/tree-data-editor.vue": st, "./field-treeSelect/treeSelect-treeDefaultExpandAll-editor.vue": ft, "./flex-editor.vue": pt, "./hidden-editor.vue": vt, "./label-editor.vue": ct, "./labelAlign-editor.vue": Et, "./labelHidden-editor.vue": ht, "./labelIconClass-editor.vue": bt, "./labelIconPosition-editor.vue": gt, "./labelWidth-editor.vue": Ct, "./limit-editor.vue": wt, "./loadingPage-editor.vue": kt, "./max-editor.vue": Tt, "./maxLength-editor.vue": Bt, "./maxSize-editor.vue": Dt, "./min-editor.vue": St, "./minLength-editor.vue": Rt, "./multiple-editor.vue": Vt, "./name-editor.vue": yt, "./optionItems-editor.vue": Pt, "./placeholder-editor.vue": Ft, "./placement-editor.vue": Ht, "./precision-editor.vue": xt, "./readonly-editor.vue": It, "./required-editor.vue": Ot, "./requiredHint-editor.vue": Mt, "./rightSlotCss-editor.vue": Lt, "./rows-editor.vue": At, "./showCount-editor.vue": Wt, "./showFileList-editor.vue": zt, "./showPassword-editor.vue": Gt, "./showSearch-editor.vue": Ut, "./showTime-editor.vue": qt, "./size-editor.vue": Nt, "./slot-compontent-editor.vue": Kt, "./startPlaceholder-editor.vue": Qt, "./step-editor.vue": jt, "./type-editor.vue": $t, "./uploadListType-editor.vue": Jt, "./useModel-editor.vue": Xt, "./validation-editor.vue": Yt, "./validationHint-editor.vue": Zt });
|
|
214
213
|
for (const e in o) {
|
|
215
214
|
const t = o[e].default.name;
|
|
216
|
-
|
|
215
|
+
_t[t] = o[e].default;
|
|
217
216
|
}
|
|
218
217
|
export {
|
|
219
|
-
|
|
218
|
+
_t as default
|
|
220
219
|
};
|
|
@@ -142,7 +142,6 @@ const e = {
|
|
|
142
142
|
icon: "icon-editor",
|
|
143
143
|
labelIconClass: "labelIconClass-editor",
|
|
144
144
|
labelIconPosition: "labelIconPosition-editor",
|
|
145
|
-
labelTooltip: "labelTooltip-editor",
|
|
146
145
|
appendButton: "appendButton-editor",
|
|
147
146
|
appendButtonDisabled: "appendButtonDisabled-editor",
|
|
148
147
|
buttonIcon: "buttonIcon-editor"
|
|
@@ -194,15 +193,13 @@ const e = {
|
|
|
194
193
|
onDrawerBeforeClose: "onDrawerBeforeClose-editor",
|
|
195
194
|
customRow: "customRow-editor"
|
|
196
195
|
};
|
|
197
|
-
|
|
198
|
-
return !!e[o] || !!t[o] || !!i[o];
|
|
199
|
-
}
|
|
196
|
+
var d = /* @__PURE__ */ ((o) => (o.Common = "COMMON", o.Advanced = "ADVANCED", o.Event = "EVENT", o))(d || {});
|
|
200
197
|
const r = {
|
|
201
198
|
COMMON_PROPERTIES: e,
|
|
202
199
|
ADVANCED_PROPERTIES: t,
|
|
203
200
|
EVENT_PROPERTIES: i
|
|
204
201
|
};
|
|
205
202
|
export {
|
|
206
|
-
|
|
207
|
-
|
|
203
|
+
d as PROPERTY_TYPE,
|
|
204
|
+
r as default
|
|
208
205
|
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent as d, createBlock as g, openBlock as m, unref as o, withCtx as p, createElementVNode as i, createVNode as u, createTextVNode as f, toDisplayString as h } from "vue";
|
|
2
|
+
import { SvgIcon as y } from "tmgc2-share";
|
|
3
|
+
import { useI18n as k } from "../../../utils/i18n.js";
|
|
4
|
+
import _ from "../../../lib/vuedraggable/src/vuedraggable.js";
|
|
5
|
+
const C = ["title", "onDblclick"], x = /* @__PURE__ */ d({
|
|
6
|
+
name: "PanelItemDrag",
|
|
7
|
+
__name: "PanelItemDrag",
|
|
8
|
+
props: {
|
|
9
|
+
designer: {},
|
|
10
|
+
items: {}
|
|
11
|
+
},
|
|
12
|
+
setup(r) {
|
|
13
|
+
const { i18n2t: s } = k(), n = r, l = (e) => e.category === "container" ? n.designer.copyNewContainerWidget(e) : n.designer.copyNewFieldWidget(e), a = (e) => n.designer.checkWidgetMove(e), c = (e) => {
|
|
14
|
+
n.designer.addWidget(e);
|
|
15
|
+
};
|
|
16
|
+
return (e, v) => (m(), g(o(_), {
|
|
17
|
+
tag: "ul",
|
|
18
|
+
list: e.items,
|
|
19
|
+
"item-key": "key",
|
|
20
|
+
group: { name: "dragGroup", pull: "clone", put: !1 },
|
|
21
|
+
clone: l,
|
|
22
|
+
"ghost-class": "ghost",
|
|
23
|
+
sort: !1,
|
|
24
|
+
move: a
|
|
25
|
+
}, {
|
|
26
|
+
item: p(({ element: t }) => [
|
|
27
|
+
i("li", {
|
|
28
|
+
class: "container-widget-item",
|
|
29
|
+
title: t.displayName,
|
|
30
|
+
onDblclick: (w) => c(t)
|
|
31
|
+
}, [
|
|
32
|
+
i("span", null, [
|
|
33
|
+
u(o(y), {
|
|
34
|
+
"icon-class": "icon-" + t.icon,
|
|
35
|
+
class: "color-svg-icon"
|
|
36
|
+
}, null, 8, ["icon-class"]),
|
|
37
|
+
f(" " + h(o(s)(
|
|
38
|
+
`designer.widgetLabel.${t.type}`,
|
|
39
|
+
`extension.widgetLabel.${t.type}`
|
|
40
|
+
)), 1)
|
|
41
|
+
])
|
|
42
|
+
], 40, C)
|
|
43
|
+
]),
|
|
44
|
+
_: 1
|
|
45
|
+
}, 8, ["list"]));
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
x as default
|
|
50
|
+
};
|
|
@@ -6,12 +6,12 @@ const l = (t = {}) => ({
|
|
|
6
6
|
icon: "data-table",
|
|
7
7
|
widgetList: [],
|
|
8
8
|
options: {
|
|
9
|
+
lineHeight: 50,
|
|
9
10
|
name: "",
|
|
10
11
|
label: "data-table",
|
|
11
12
|
hidden: !1,
|
|
12
13
|
tableHeight: "300px",
|
|
13
14
|
tableWidth: "100%",
|
|
14
|
-
lineHeight: 50,
|
|
15
15
|
customClass: [],
|
|
16
16
|
showIndex: !1,
|
|
17
17
|
showPagination: !0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
1
|
+
const l = (e = {}) => ({
|
|
2
2
|
type: "rich-editor",
|
|
3
3
|
icon: "rich-editor-field",
|
|
4
|
-
id:
|
|
4
|
+
id: e.name,
|
|
5
5
|
formItemFlag: !0,
|
|
6
6
|
options: {
|
|
7
7
|
name: "",
|
|
@@ -21,15 +21,14 @@ const e = (l = {}) => ({
|
|
|
21
21
|
customClass: [],
|
|
22
22
|
labelIconClass: null,
|
|
23
23
|
labelIconPosition: "rear",
|
|
24
|
-
labelTooltip: null,
|
|
25
24
|
maxLength: null,
|
|
26
25
|
showCount: !1,
|
|
27
26
|
onCreated: "",
|
|
28
27
|
onMounted: "",
|
|
29
28
|
onValidate: "",
|
|
30
|
-
...
|
|
29
|
+
...e
|
|
31
30
|
}
|
|
32
31
|
});
|
|
33
32
|
export {
|
|
34
|
-
|
|
33
|
+
l as richEditor
|
|
35
34
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getUuidKey as a } from "@kp-ui/tool";
|
|
2
|
-
const
|
|
2
|
+
const d = (e = {}) => ({
|
|
3
3
|
key: a(),
|
|
4
4
|
id: e.name,
|
|
5
5
|
type: "checkbox",
|
|
@@ -48,7 +48,6 @@ return {...data,data:d}`,
|
|
|
48
48
|
//自定义css类名
|
|
49
49
|
labelIconClass: null,
|
|
50
50
|
labelIconPosition: "rear",
|
|
51
|
-
labelTooltip: null,
|
|
52
51
|
//-------------------
|
|
53
52
|
onCreated: "",
|
|
54
53
|
onMounted: "",
|
|
@@ -58,5 +57,5 @@ return {...data,data:d}`,
|
|
|
58
57
|
}
|
|
59
58
|
});
|
|
60
59
|
export {
|
|
61
|
-
|
|
60
|
+
d as checkbox
|
|
62
61
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getUuidKey as
|
|
2
|
-
const n = (
|
|
3
|
-
key:
|
|
4
|
-
id:
|
|
1
|
+
import { getUuidKey as l } from "@kp-ui/tool";
|
|
2
|
+
const n = (e = {}) => ({
|
|
3
|
+
key: l(),
|
|
4
|
+
id: e.name,
|
|
5
5
|
type: "rate",
|
|
6
6
|
icon: "rate-field",
|
|
7
7
|
formItemFlag: !0,
|
|
@@ -26,7 +26,6 @@ const n = (l = {}) => ({
|
|
|
26
26
|
//自定义css类名
|
|
27
27
|
labelIconClass: null,
|
|
28
28
|
labelIconPosition: "rear",
|
|
29
|
-
labelTooltip: null,
|
|
30
29
|
count: 5,
|
|
31
30
|
allowHalf: !1,
|
|
32
31
|
//-------------------
|
|
@@ -34,7 +33,7 @@ const n = (l = {}) => ({
|
|
|
34
33
|
onMounted: "",
|
|
35
34
|
onChange: "",
|
|
36
35
|
onValidate: "",
|
|
37
|
-
...
|
|
36
|
+
...e
|
|
38
37
|
}
|
|
39
38
|
});
|
|
40
39
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getUuidKey as l } from "@kp-ui/tool";
|
|
2
|
-
const
|
|
2
|
+
const t = (e = {}) => ({
|
|
3
3
|
key: l(),
|
|
4
4
|
id: e.name,
|
|
5
5
|
type: "select",
|
|
@@ -57,7 +57,6 @@ return {...data,data:d}`,
|
|
|
57
57
|
//自定义css类名
|
|
58
58
|
labelIconClass: null,
|
|
59
59
|
labelIconPosition: "rear",
|
|
60
|
-
labelTooltip: null,
|
|
61
60
|
//-------------------
|
|
62
61
|
onCreated: "",
|
|
63
62
|
onMounted: "",
|
|
@@ -71,5 +70,5 @@ return {...data,data:d}`,
|
|
|
71
70
|
}
|
|
72
71
|
});
|
|
73
72
|
export {
|
|
74
|
-
|
|
73
|
+
t as select
|
|
75
74
|
};
|