@kp-ui/lowcode 2.14.0-beta → 2.14.0-beta.10
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 +26 -25
- package/package.json +2 -2
- package/src/components/FormRender/useFormRender.js +18 -0
- 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/index.js +6 -6
- 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 +20 -19
- 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 +1 -1
- 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/index.vue.js +55 -54
- package/src/components/form-designer/setting-panel/form-crud-setting.vue.js +62 -23
- 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 +4 -386
- package/src/components/form-designer/setting-panel/index.vue2.js +273 -0
- package/src/components/form-designer/setting-panel/property-editor/button-list-editor.vue2.js +5 -4
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/customRowEvent/data-table-customRow-editor.vue.js +1 -0
- 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 +26 -24
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-pagination-editor.vue.js +1 -0
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-selections-editor.vue2.js +24 -24
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-showButtonsColumn-editor.vue.js +9 -8
- 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 +13 -12
- package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/bodyStyle-editor.vue2.js +7 -6
- 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/customRender-editor.vue.js +2 -40
- package/src/components/form-designer/setting-panel/property-editor/customRender-editor.vue2.js +41 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onClickIcon-editor.vue.js +2 -47
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onClickIcon-editor.vue2.js +44 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onCreated-editor.vue.js +2 -47
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onCreated-editor.vue2.js +43 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onOkButtonClick-editor.vue.js +2 -46
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onOkButtonClick-editor.vue2.js +43 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onValidate-editor.vue.js +2 -47
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onValidate-editor.vue2.js +44 -0
- package/src/components/form-designer/setting-panel/property-editor/field-dropdown/dropdown-menuList-editor.vue.js +2 -66
- package/src/components/form-designer/setting-panel/property-editor/field-dropdown/dropdown-menuList-editor.vue2.js +42 -0
- package/src/components/form-designer/setting-panel/property-editor/field-html-text/htmlContent-editor.vue.js +5 -4
- package/src/components/form-designer/setting-panel/property-editor/hidden-editor.vue.js +6 -5
- package/src/components/form-designer/setting-panel/property-editor/index.js +146 -153
- package/src/components/form-designer/setting-panel/property-editor/labelIconClass-editor.vue.js +8 -7
- package/src/components/form-designer/setting-panel/property-editor/optionItems-editor.vue.js +38 -35
- package/src/components/form-designer/setting-panel/propertyRegister.js +3 -18
- 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-render/RenderWigetList.vue.js +61 -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 +135 -0
- package/src/components/form-render/container-item/grid-col-item.vue.js +149 -0
- package/src/components/form-render/container-item/grid-item.vue.js +92 -0
- package/src/components/form-render/container-item/grid-sub-form-item.vue.js +319 -0
- package/src/components/form-render/container-item/index.js +24 -0
- package/src/components/form-render/container-item/sub-form-item.vue.js +398 -0
- package/src/components/form-render/container-item/tab-item.vue.js +160 -0
- package/src/components/form-render/container-item/table-cell-item.vue.js +95 -0
- package/src/components/form-render/container-item/table-item.vue.js +96 -0
- package/src/components/form-render/container-item/vf-collapse-item.vue.js +252 -0
- package/src/components/form-render/container-item/vf-dialog-item.vue.js +12 -0
- package/src/components/form-render/container-item/vf-drawer-item.vue.js +12 -0
- package/src/components/form-render/dynamic-dialog.vue.js +66 -81
- package/src/components/form-render/index.vue.js +96 -114
- package/src/components/http-editor/index.vue.js +10 -10
- package/src/components/public/ActionButtonListRender.vue.js +19 -24
- package/src/hooks/useLowcode.js +40 -39
- package/src/lang/en-US.js +4 -4
- package/src/lang/zh-CN.js +3 -4
- package/src/mixins/useDataTableMixin.js +18 -23
- package/src/utils/useEmitter.js +57 -0
- package/src/utils/util.js +50 -49
- package/stats.html +1 -1
- package/styles/style.css +1 -1
- package/src/components/form-designer/setting-panel/property-editor/displayStyle-editor.vue.js +0 -46
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onVformAdd-editor.vue.js +0 -49
- package/src/components/form-designer/setting-panel/property-editor/labelTooltip-editor.vue.js +0 -31
- package/src/components/form-designer/setting-panel/property-editor/multipleSelect-editor.vue.js +0 -30
- package/src/components/form-designer/setting-panel/property-editor/uploadTip-editor.vue.js +0 -31
- package/src/components/form-designer/setting-panel/property-editor/uploadURL-editor.vue.js +0 -44
- package/src/components/form-designer/setting-panel/property-editor/withCredentials-editor.vue.js +0 -30
package/install.js
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import { i18n as
|
|
2
|
+
import { i18n as d } from "./src/utils/i18n.js";
|
|
3
3
|
import "./_virtual/virtual_svg-icons-register.js";
|
|
4
|
-
import { addAdvancedFieldSchema as
|
|
5
|
-
import { basicFieldsEnums as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
4
|
+
import { addAdvancedFieldSchema as w, addBasicFieldSchema as F, addContainerWidgetSchema as P, addCustomWidgetSchema as S } from "./src/components/form-designer/widget-panel/widgetsConfig.js";
|
|
5
|
+
import { basicFieldsEnums as R } from "./src/components/form-designer/widget-panel/basicFieldsEnums.js";
|
|
6
|
+
import { default as M } from "./src/components/form-designer/index.vue.js";
|
|
7
|
+
import { default as y } from "./src/components/form-render/index.vue.js";
|
|
8
8
|
import s from "./src/components/form-designer/form-widget/container-widget/index.js";
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import { default as
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
import p from "./src/components/form-render/container-item/index.js";
|
|
10
|
+
import { openCustomerModal as f } from "./src/components/public/CustomerModal/useCustomerModal.js";
|
|
11
|
+
import { default as B } from "./src/components/form-render/SubmitButtonRender.vue.js";
|
|
12
|
+
import { default as U } from "./src/utils/emitter.js";
|
|
13
|
+
import { useLowcode as D } from "./src/hooks/useLowcode.js";
|
|
14
|
+
const b = (r) => {
|
|
15
|
+
const { app: o, http: e, factoryRender: t, useMountApp: i, getUserInfo: m } = r;
|
|
16
|
+
o.config.globalProperties.$http = e, o.config.globalProperties.$getUserInfo = m, o.config.globalProperties.$factoryRender = t, o.config.globalProperties.$i18n = d.$st, o.config.globalProperties.$openCustomerModal = (n) => f(n, i), o.use(s), o.use(p);
|
|
17
|
+
const a = window.$vform ?? {};
|
|
17
18
|
window.$vform = {
|
|
18
|
-
...
|
|
19
|
+
...a,
|
|
19
20
|
$http: e
|
|
20
21
|
};
|
|
21
22
|
};
|
|
22
23
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
24
|
+
B as SubmitButtonRender,
|
|
25
|
+
M as VFormDesigner,
|
|
26
|
+
y as VFormRender,
|
|
27
|
+
w as addAdvancedFieldSchema,
|
|
28
|
+
F as addBasicFieldSchema,
|
|
29
|
+
P as addContainerWidgetSchema,
|
|
30
|
+
S as addCustomWidgetSchema,
|
|
31
|
+
R as basicFieldsEnums,
|
|
32
|
+
U as emitter,
|
|
33
|
+
b as registerLowcodeCore,
|
|
34
|
+
D as useLowcode
|
|
34
35
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kp-ui/lowcode",
|
|
3
|
-
"version": "2.14.0-beta",
|
|
3
|
+
"version": "2.14.0-beta.10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"@kp-ui/i18n": "0.0.12",
|
|
10
10
|
"@kp-ui/tool": "1.0.33",
|
|
11
11
|
"@surely-vue/table": "5.0.3",
|
|
12
|
-
"ace-builds": "1.
|
|
12
|
+
"ace-builds": "1.43.4",
|
|
13
13
|
"animate.css": "^4.1.1",
|
|
14
14
|
"ant-design-vue": "4.2.6",
|
|
15
15
|
"axios": "^1.3.5",
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ContainerWidgetMap as t } from "../form-render/container-item/index.js";
|
|
2
|
+
import o from "../form-designer/form-widget/field-widget/index.js";
|
|
3
|
+
function m() {
|
|
4
|
+
function i(e) {
|
|
5
|
+
var n;
|
|
6
|
+
if (!e) return "";
|
|
7
|
+
const r = `./${e.type}-item.vue`;
|
|
8
|
+
return t[r] || console.warn(`未找到容器组件类型: ${e.type},请确保已注册该组件。`), (n = t[r]) == null ? void 0 : n.default;
|
|
9
|
+
}
|
|
10
|
+
return {
|
|
11
|
+
getFieldWidget: (e) => e && o[e.type + "-widget"] || "",
|
|
12
|
+
getContainerWidget: i,
|
|
13
|
+
ContainerWidgetMap: t
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
m as useFormRender
|
|
18
|
+
};
|
|
@@ -1,35 +1,35 @@
|
|
|
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 b, createVNode as m, normalizeStyle as y, 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,
|
|
7
|
-
const c = a("a-empty"),
|
|
8
|
-
return
|
|
6
|
+
function S(e, i, t, N, k, d) {
|
|
7
|
+
const c = a("a-empty"), g = a("RenderBodyCell"), w = a("s-table"), h = a("container-wrapper");
|
|
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
|
-
|
|
22
|
-
m(
|
|
21
|
+
b("div", z, [
|
|
22
|
+
m(w, {
|
|
23
23
|
ref: "dataTable2",
|
|
24
24
|
columns: e.columns.columns,
|
|
25
25
|
scroll: { y: e.tableHeight },
|
|
26
26
|
height: e.tableHeight,
|
|
27
|
-
dataSource:
|
|
28
|
-
class: r([e.customClass]),
|
|
27
|
+
dataSource: d.data,
|
|
28
|
+
class: r(["tpf-surely-table", [e.customClass]]),
|
|
29
29
|
size: e.widgetSize,
|
|
30
30
|
rowKey: (o) => o[t.widget.options.rowKey],
|
|
31
31
|
bordered: t.widget.options.border,
|
|
32
|
-
style:
|
|
32
|
+
style: y({ width: t.widget.options.tableWidth, height: e.tableHeight + "px" }),
|
|
33
33
|
"row-class-name": e.rowClassName,
|
|
34
34
|
rowSelection: e.handleRowSelection(),
|
|
35
35
|
pagination: e.fmtPagination,
|
|
@@ -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(g, {
|
|
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
|
|
62
|
+
const T = /* @__PURE__ */ R(u, [["render", S], ["__scopeId", "data-v-bcb92396"]]);
|
|
63
63
|
export {
|
|
64
|
-
|
|
64
|
+
T 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,13 +1,13 @@
|
|
|
1
1
|
import { defineAsyncComponent as r } from "vue";
|
|
2
2
|
import { getFileName as m } from "../../../../utils/getFileName.js";
|
|
3
|
-
const
|
|
4
|
-
install(
|
|
5
|
-
for (const e in
|
|
6
|
-
const
|
|
7
|
-
|
|
3
|
+
const i = /* @__PURE__ */ Object.assign({ "./container-wrapper.vue": () => import("./container-wrapper.vue.js"), "./data-table-widget.vue": () => import("./data-table-widget.vue.js"), "./grid-col-widget.vue": () => import("./grid-col-widget.vue.js"), "./grid-sub-form-widget.vue": () => import("./grid-sub-form-widget.vue.js"), "./grid-widget.vue": () => import("./grid-widget.vue.js"), "./sub-form-widget.vue": () => import("./sub-form-widget.vue.js"), "./tab-widget.vue": () => import("./tab-widget.vue.js"), "./table-cell-widget.vue": () => import("./table-cell-widget.vue.js"), "./table-widget.vue": () => import("./table-widget.vue.js"), "./vf-box-item.vue": () => import("./vf-box-item.vue.js"), "./vf-box-widget.vue": () => import("./vf-box-widget.vue.js"), "./vf-collapse-widget.vue": () => import("./vf-collapse-widget.vue.js"), "./vf-dialog-widget.vue": () => import("./vf-dialog-widget.vue.js"), "./vf-drawer-widget.vue": () => import("./vf-drawer-widget.vue.js") }), g = {
|
|
4
|
+
install(o) {
|
|
5
|
+
for (const e in i) {
|
|
6
|
+
const t = m(e);
|
|
7
|
+
console.log(t), o.component(t, r(i[e]));
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
g as default
|
|
13
13
|
};
|
|
@@ -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, {
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { resolveComponent as
|
|
1
|
+
import a from "../../../../utils/i18n.js";
|
|
2
|
+
import o from "../../refMixinDesign.js";
|
|
3
|
+
import g from "../field-widget/index.js";
|
|
4
|
+
import l from "./container-wrapper.vue.js";
|
|
5
|
+
import { resolveComponent as c, createBlock as h, openBlock as n, withCtx as p, createElementBlock as m, withModifiers as f, normalizeClass as w, createElementVNode as r, toDisplayString as x } from "vue";
|
|
6
6
|
/* empty css */
|
|
7
7
|
import L from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
8
8
|
const W = {
|
|
9
9
|
name: "vf-dialog-widget",
|
|
10
10
|
componentName: "VfDialogWidget",
|
|
11
|
-
mixins: [
|
|
11
|
+
mixins: [a, o],
|
|
12
12
|
inject: ["refList"],
|
|
13
13
|
components: {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
...o
|
|
14
|
+
ContainerWrapper: l,
|
|
15
|
+
...g
|
|
17
16
|
},
|
|
18
17
|
props: {
|
|
19
18
|
widget: Object,
|
|
@@ -72,29 +71,31 @@ const W = {
|
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
73
|
}
|
|
75
|
-
}, v = { class: "dialog-title" };
|
|
76
|
-
function u(e, i, t,
|
|
77
|
-
const
|
|
78
|
-
return n(),
|
|
74
|
+
}, v = { class: "dialog-title" }, _ = { class: "tpf-link" };
|
|
75
|
+
function u(e, i, t, C, D, s) {
|
|
76
|
+
const d = c("container-wrapper");
|
|
77
|
+
return n(), h(d, {
|
|
79
78
|
designer: t.designer,
|
|
80
79
|
widget: t.widget,
|
|
81
80
|
"parent-widget": t.parentWidget,
|
|
82
81
|
"parent-list": t.parentList,
|
|
83
82
|
"index-of-parent-list": t.indexOfParentList
|
|
84
83
|
}, {
|
|
85
|
-
default:
|
|
84
|
+
default: p(() => [
|
|
86
85
|
(n(), m("div", {
|
|
87
|
-
class:
|
|
86
|
+
class: w(["dialog-container", [s.selected ? "selected" : "", s.customClass]]),
|
|
88
87
|
key: t.widget.id,
|
|
89
|
-
onClick: i[0] || (i[0] =
|
|
88
|
+
onClick: i[0] || (i[0] = f((O) => s.selectWidget(t.widget), ["stop"]))
|
|
90
89
|
}, [
|
|
91
|
-
|
|
90
|
+
r("div", v, [
|
|
91
|
+
r("div", _, x(t.widget.options.title), 1)
|
|
92
|
+
])
|
|
92
93
|
], 2))
|
|
93
94
|
]),
|
|
94
95
|
_: 1
|
|
95
96
|
}, 8, ["designer", "widget", "parent-widget", "parent-list", "index-of-parent-list"]);
|
|
96
97
|
}
|
|
97
|
-
const
|
|
98
|
+
const I = /* @__PURE__ */ L(W, [["render", u], ["__scopeId", "data-v-2de14bf1"]]);
|
|
98
99
|
export {
|
|
99
|
-
|
|
100
|
+
I as default
|
|
100
101
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { formateCascaderCode as
|
|
5
|
-
import
|
|
6
|
-
import { resolveComponent as o, createBlock as
|
|
1
|
+
import u from "./form-item-wrapper.vue.js";
|
|
2
|
+
import f from "../../../../utils/emitter.js";
|
|
3
|
+
import c from "../../../../utils/i18n.js";
|
|
4
|
+
import { formateCascaderCode as h } from "../../../../utils/format.js";
|
|
5
|
+
import p from "./fieldMixin.js";
|
|
6
|
+
import { resolveComponent as o, createBlock as b, createCommentVNode as d, openBlock as r, withCtx as g, createElementVNode as y, normalizeClass as C, createVNode as w, createElementBlock as v, toDisplayString as F } from "vue";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import
|
|
8
|
+
import K from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
9
9
|
const M = {
|
|
10
10
|
name: "cascader-widget",
|
|
11
11
|
componentName: "FieldWidget",
|
|
12
12
|
//必须固定为FieldWidget,用于接收父级组件的broadcast事件
|
|
13
|
-
mixins: [
|
|
13
|
+
mixins: [f, p, c],
|
|
14
14
|
props: {
|
|
15
15
|
field: Object,
|
|
16
16
|
parentWidget: Object,
|
|
@@ -38,7 +38,7 @@ const M = {
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
components: {
|
|
41
|
-
FormItemWrapper:
|
|
41
|
+
FormItemWrapper: u
|
|
42
42
|
},
|
|
43
43
|
data() {
|
|
44
44
|
return {
|
|
@@ -65,7 +65,7 @@ const M = {
|
|
|
65
65
|
// return this.field.options.showAllLevels === undefined || !!this.field.options.showAllLevels;
|
|
66
66
|
// },
|
|
67
67
|
contentForReadMode() {
|
|
68
|
-
return this.fieldModel ?
|
|
68
|
+
return this.fieldModel ? h(this.field.options.optionItems, this.fieldModel, {
|
|
69
69
|
label: this.labelKey,
|
|
70
70
|
value: this.valueKey,
|
|
71
71
|
children: this.childrenKey
|
|
@@ -88,10 +88,13 @@ const M = {
|
|
|
88
88
|
hideDropDownOnClick() {
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
}, x = {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
}, x = {
|
|
92
|
+
key: 0,
|
|
93
|
+
class: "readonly-mode-field"
|
|
94
|
+
};
|
|
95
|
+
function I(i, n, e, R, l, t) {
|
|
96
|
+
const s = o("a-cascader"), a = o("form-item-wrapper");
|
|
97
|
+
return i.handleHidden() ? d("", !0) : (r(), b(a, {
|
|
95
98
|
key: 0,
|
|
96
99
|
designer: e.designer,
|
|
97
100
|
field: e.field,
|
|
@@ -104,43 +107,33 @@ function I(t, n, e, K, l, i) {
|
|
|
104
107
|
"sub-form-col-index": e.subFormColIndex,
|
|
105
108
|
"sub-form-row-id": e.subFormRowId
|
|
106
109
|
}, {
|
|
107
|
-
default:
|
|
108
|
-
|
|
109
|
-
class:
|
|
110
|
+
default: g(() => [
|
|
111
|
+
y("div", {
|
|
112
|
+
class: C(["full-width-input", { "readonly-mode-cascader": i.isReadMode }])
|
|
110
113
|
}, [
|
|
111
|
-
w(
|
|
114
|
+
w(s, {
|
|
112
115
|
ref: "fieldEditor",
|
|
113
|
-
size:
|
|
116
|
+
size: t.size,
|
|
114
117
|
options: e.field.options.optionItems,
|
|
115
118
|
value: l.fieldModel,
|
|
116
|
-
"onUpdate:value": n[0] || (n[0] = (
|
|
117
|
-
disabled:
|
|
119
|
+
"onUpdate:value": n[0] || (n[0] = (m) => l.fieldModel = m),
|
|
120
|
+
disabled: i.handleDisabled(),
|
|
118
121
|
allowClear: e.field.options.allowClear,
|
|
119
|
-
placeholder: e.field.options.placeholder ||
|
|
120
|
-
fieldNames: { value:
|
|
122
|
+
placeholder: e.field.options.placeholder || i.i18nt("render.hint.selectPlaceholder"),
|
|
123
|
+
fieldNames: { value: t.valueKey, label: t.labelKey, children: t.childrenKey },
|
|
121
124
|
expandTrigger: "hover",
|
|
122
125
|
multiple: e.field.options.multiple,
|
|
123
|
-
onFocus:
|
|
124
|
-
onBlur:
|
|
125
|
-
onChange:
|
|
126
|
+
onFocus: i.handleFocusCustomEvent,
|
|
127
|
+
onBlur: i.handleBlurCustomEvent,
|
|
128
|
+
onChange: i.handleChangeEvent
|
|
126
129
|
}, null, 8, ["size", "options", "value", "disabled", "allowClear", "placeholder", "fieldNames", "multiple", "onFocus", "onBlur", "onChange"]),
|
|
127
|
-
|
|
128
|
-
key: 0,
|
|
129
|
-
placement: "topLeft",
|
|
130
|
-
title: i.contentForReadMode,
|
|
131
|
-
overlayStyle: { zIndex: 1e3 }
|
|
132
|
-
}, {
|
|
133
|
-
default: a(() => [
|
|
134
|
-
m("span", x, F(i.contentForReadMode), 1)
|
|
135
|
-
]),
|
|
136
|
-
_: 1
|
|
137
|
-
}, 8, ["title"])) : r("", !0)
|
|
130
|
+
i.isReadMode ? (r(), v("span", x, F(t.contentForReadMode), 1)) : d("", !0)
|
|
138
131
|
], 2)
|
|
139
132
|
]),
|
|
140
133
|
_: 1
|
|
141
134
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]));
|
|
142
135
|
}
|
|
143
|
-
const
|
|
136
|
+
const W = /* @__PURE__ */ K(M, [["render", I], ["__scopeId", "data-v-bb8b3209"]]);
|
|
144
137
|
export {
|
|
145
|
-
|
|
138
|
+
W as default
|
|
146
139
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { resolveComponent as
|
|
1
|
+
import u from "./form-item-wrapper.vue.js";
|
|
2
|
+
import h from "../../../../utils/emitter.js";
|
|
3
|
+
import c from "../../../../utils/i18n.js";
|
|
4
|
+
import g from "./fieldMixin.js";
|
|
5
|
+
import { resolveComponent as n, createBlock as b, createCommentVNode as l, openBlock as i, withCtx as p, createElementVNode as w, normalizeClass as r, createVNode as F, createElementBlock as C, toDisplayString as v } from "vue";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import
|
|
7
|
+
import y from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
8
8
|
const M = {
|
|
9
9
|
name: "date-range-widget",
|
|
10
10
|
componentName: "FieldWidget",
|
|
11
11
|
//必须固定为FieldWidget,用于接收父级组件的broadcast事件
|
|
12
|
-
mixins: [
|
|
12
|
+
mixins: [h, g, c],
|
|
13
13
|
props: {
|
|
14
14
|
field: Object,
|
|
15
15
|
parentWidget: Object,
|
|
@@ -37,7 +37,7 @@ const M = {
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
components: {
|
|
40
|
-
FormItemWrapper:
|
|
40
|
+
FormItemWrapper: u
|
|
41
41
|
},
|
|
42
42
|
data() {
|
|
43
43
|
return {
|
|
@@ -64,10 +64,13 @@ const M = {
|
|
|
64
64
|
this.unregisterFromRefList();
|
|
65
65
|
},
|
|
66
66
|
methods: {}
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
}, R = {
|
|
68
|
+
key: 0,
|
|
69
|
+
class: "readonly-mode-field"
|
|
70
|
+
};
|
|
71
|
+
function _(t, d, e, x, o, a) {
|
|
72
|
+
const s = n("a-range-picker"), m = n("form-item-wrapper");
|
|
73
|
+
return t.handleHidden() ? l("", !0) : (i(), b(m, {
|
|
71
74
|
key: 0,
|
|
72
75
|
designer: e.designer,
|
|
73
76
|
field: e.field,
|
|
@@ -80,18 +83,18 @@ function R(t, l, e, x, o, m) {
|
|
|
80
83
|
"sub-form-col-index": e.subFormColIndex,
|
|
81
84
|
"sub-form-row-id": e.subFormRowId
|
|
82
85
|
}, {
|
|
83
|
-
default:
|
|
84
|
-
|
|
85
|
-
class:
|
|
86
|
+
default: p(() => [
|
|
87
|
+
w("div", {
|
|
88
|
+
class: r([
|
|
86
89
|
e.field.options.autoFullWidth ? "auto-full-width" : "",
|
|
87
90
|
t.isReadMode ? "readonly-mode-date-range" : ""
|
|
88
91
|
])
|
|
89
92
|
}, [
|
|
90
|
-
|
|
93
|
+
F(s, {
|
|
91
94
|
ref: "fieldEditor",
|
|
92
95
|
value: o.fieldModel,
|
|
93
|
-
"onUpdate:value":
|
|
94
|
-
class:
|
|
96
|
+
"onUpdate:value": d[0] || (d[0] = (f) => o.fieldModel = f),
|
|
97
|
+
class: r([e.field.options.autoFullWidth ? "auto-full-width" : ""]),
|
|
95
98
|
disabled: t.handleDisabled(),
|
|
96
99
|
readonly: e.field.options.readonly,
|
|
97
100
|
allowClear: e.field.options.allowClear,
|
|
@@ -104,23 +107,13 @@ function R(t, l, e, x, o, m) {
|
|
|
104
107
|
onBlur: t.handleBlurCustomEvent,
|
|
105
108
|
onChange: t.handleChangeEvent
|
|
106
109
|
}, null, 8, ["value", "class", "disabled", "readonly", "allowClear", "show-time", "format", "value-format", "start-placeholder", "end-placeholder", "onFocus", "onBlur", "onChange"]),
|
|
107
|
-
t.isReadMode ? (
|
|
108
|
-
key: 0,
|
|
109
|
-
placement: "topLeft",
|
|
110
|
-
title: o.fieldModel,
|
|
111
|
-
overlayStyle: { zIndex: 1e3 }
|
|
112
|
-
}, {
|
|
113
|
-
default: a(() => [
|
|
114
|
-
s("span", _, y(m.contentForReadMode), 1)
|
|
115
|
-
]),
|
|
116
|
-
_: 1
|
|
117
|
-
}, 8, ["title"])) : i("", !0)
|
|
110
|
+
t.isReadMode ? (i(), C("span", R, v(a.contentForReadMode), 1)) : l("", !0)
|
|
118
111
|
], 2)
|
|
119
112
|
]),
|
|
120
113
|
_: 1
|
|
121
114
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]));
|
|
122
115
|
}
|
|
123
|
-
const
|
|
116
|
+
const L = /* @__PURE__ */ y(M, [["render", _], ["__scopeId", "data-v-7f77f8d8"]]);
|
|
124
117
|
export {
|
|
125
|
-
|
|
118
|
+
L as default
|
|
126
119
|
};
|