@duxweb/dvha-pro 1.0.45 → 1.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/component.cjs +1 -1
- package/dist/cjs/components/chart/echart.cjs +1 -1
- package/dist/cjs/components/crop/imageCrop.cjs +1 -1
- package/dist/cjs/components/data/dynamicSelect.cjs +1 -1
- package/dist/cjs/components/data/selectModal.cjs +1 -1
- package/dist/cjs/components/designEditor/components/grid.cjs +1 -1
- package/dist/cjs/components/designEditor/editor/setting.cjs +1 -1
- package/dist/cjs/components/flowEditor/components/jsonEditor.cjs +1 -0
- package/dist/cjs/components/flowEditor/components/nodeCard.cjs +1 -0
- package/dist/cjs/components/flowEditor/components/setting.cjs +1 -0
- package/dist/cjs/components/flowEditor/components/toolbar.cjs +1 -0
- package/dist/cjs/components/flowEditor/flowEditor.cjs +1 -0
- package/dist/cjs/components/flowEditor/nodes/endNode.cjs +1 -0
- package/dist/cjs/components/flowEditor/nodes/index.cjs +1 -0
- package/dist/cjs/components/flowEditor/nodes/processNode.cjs +1 -0
- package/dist/cjs/components/flowEditor/nodes/startNode.cjs +1 -0
- package/dist/cjs/components/flowEditor/utils/nodeDataUtils.cjs +1 -0
- package/dist/cjs/components/form/drawerForm.cjs +1 -1
- package/dist/cjs/components/form/modalForm.cjs +1 -1
- package/dist/cjs/components/form/pageForm.cjs +1 -1
- package/dist/cjs/components/form/pageTabForm.cjs +1 -1
- package/dist/cjs/components/form/settingForm.cjs +1 -1
- package/dist/cjs/components/formEditor/base/base.cjs +1 -1
- package/dist/cjs/components/formEditor/base/setting.cjs +1 -1
- package/dist/cjs/components/formEditor/components/cascader.cjs +1 -1
- package/dist/cjs/components/formEditor/components/cascaderAsync.cjs +1 -1
- package/dist/cjs/components/formEditor/components/checkbox.cjs +1 -1
- package/dist/cjs/components/formEditor/components/color.cjs +1 -1
- package/dist/cjs/components/formEditor/components/date.cjs +1 -1
- package/dist/cjs/components/formEditor/components/dynamicInput.cjs +1 -1
- package/dist/cjs/components/formEditor/components/dynamicTags.cjs +1 -1
- package/dist/cjs/components/formEditor/components/editor.cjs +1 -1
- package/dist/cjs/components/formEditor/components/fileUpload.cjs +1 -1
- package/dist/cjs/components/formEditor/components/imageUpload.cjs +1 -1
- package/dist/cjs/components/formEditor/components/input.cjs +1 -1
- package/dist/cjs/components/formEditor/components/inputNumber.cjs +1 -1
- package/dist/cjs/components/formEditor/components/mentionAsync.cjs +1 -1
- package/dist/cjs/components/formEditor/components/radio.cjs +1 -1
- package/dist/cjs/components/formEditor/components/region.cjs +1 -1
- package/dist/cjs/components/formEditor/components/select.cjs +1 -1
- package/dist/cjs/components/formEditor/components/selectAsync.cjs +1 -1
- package/dist/cjs/components/formEditor/components/sider.cjs +1 -1
- package/dist/cjs/components/formEditor/components/switch.cjs +1 -1
- package/dist/cjs/components/formEditor/components/time.cjs +1 -1
- package/dist/cjs/components/formEditor/components/transferAsync.cjs +1 -1
- package/dist/cjs/components/formEditor/components/treeSelect.cjs +1 -1
- package/dist/cjs/components/formEditor/components/treeSelectAsync.cjs +1 -1
- package/dist/cjs/components/formEditor/editor.cjs +1 -1
- package/dist/cjs/components/formEditor/renderer.cjs +1 -1
- package/dist/cjs/components/icon/icon.cjs +1 -1
- package/dist/cjs/components/layout/list.cjs +1 -1
- package/dist/cjs/components/layout/table.cjs +1 -1
- package/dist/cjs/components/layout/tools.cjs +1 -1
- package/dist/cjs/components/level/level.cjs +1 -1
- package/dist/cjs/components/list/card.cjs +1 -1
- package/dist/cjs/components/list/list.cjs +1 -1
- package/dist/cjs/components/posterEditor/pages/RightPanel.cjs +1 -1
- package/dist/cjs/components/posterEditor/posterEditor.cjs +1 -1
- package/dist/cjs/components/table/table.cjs +1 -1
- package/dist/cjs/components/table/tablePage.cjs +1 -1
- package/dist/cjs/components/upload/file.cjs +1 -1
- package/dist/cjs/components/upload/image.cjs +1 -1
- package/dist/cjs/components/upload/manage/item.cjs +1 -1
- package/dist/cjs/components/upload/manager.cjs +1 -1
- package/dist/cjs/dvha-pro.css +1 -1
- package/dist/cjs/hooks/dialog.cjs +1 -1
- package/dist/cjs/hooks/drawer.cjs +1 -1
- package/dist/cjs/hooks/modal.cjs +1 -1
- package/dist/cjs/hooks/table/image.cjs +1 -1
- package/dist/cjs/hooks/table/media.cjs +1 -1
- package/dist/cjs/hooks/table.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/langs/en-US.json.cjs +1 -1
- package/dist/cjs/langs/zh-CN.json.cjs +1 -1
- package/dist/cjs/main.cjs +1 -1
- package/dist/cjs/pages/authLayout.cjs +1 -1
- package/dist/cjs/pages/layout/page.cjs +1 -1
- package/dist/cjs/pages/login.cjs +1 -1
- package/dist/cjs/pages/menu/avatar.cjs +1 -1
- package/dist/cjs/pages/menu/button.cjs +1 -1
- package/dist/cjs/pages/menu/cmd.cjs +1 -1
- package/dist/cjs/pages/menu/main.cjs +1 -1
- package/dist/cjs/pages/menu/mobile.cjs +1 -1
- package/dist/cjs/pages/page404.cjs +1 -1
- package/dist/cjs/pages/pageStatus.cjs +1 -1
- package/dist/cjs/theme/uno.css.cjs +75 -9
- package/dist/esm/component.js +5 -2
- package/dist/esm/components/chart/echart.js +5 -2
- package/dist/esm/components/crop/imageCrop.js +13 -10
- package/dist/esm/components/data/dynamicSelect.js +5 -2
- package/dist/esm/components/data/selectModal.js +5 -2
- package/dist/esm/components/designEditor/components/grid.js +5 -2
- package/dist/esm/components/designEditor/editor/setting.js +7 -4
- package/dist/esm/components/flowEditor/components/jsonEditor.js +53 -0
- package/dist/esm/components/flowEditor/components/nodeCard.js +160 -0
- package/dist/esm/components/flowEditor/components/setting.js +319 -0
- package/dist/esm/components/flowEditor/components/toolbar.js +120 -0
- package/dist/esm/components/flowEditor/flowEditor.js +287 -0
- package/dist/esm/components/flowEditor/nodes/endNode.js +144 -0
- package/dist/esm/components/flowEditor/nodes/index.js +66 -0
- package/dist/esm/components/flowEditor/nodes/processNode.js +142 -0
- package/dist/esm/components/flowEditor/nodes/startNode.js +144 -0
- package/dist/esm/components/flowEditor/utils/nodeDataUtils.js +82 -0
- package/dist/esm/components/form/drawerForm.js +5 -2
- package/dist/esm/components/form/modalForm.js +12 -9
- package/dist/esm/components/form/pageForm.js +21 -18
- package/dist/esm/components/form/pageTabForm.js +5 -2
- package/dist/esm/components/form/settingForm.js +11 -8
- package/dist/esm/components/formEditor/base/base.js +8 -5
- package/dist/esm/components/formEditor/base/setting.js +5 -2
- package/dist/esm/components/formEditor/components/cascader.js +6 -3
- package/dist/esm/components/formEditor/components/cascaderAsync.js +6 -3
- package/dist/esm/components/formEditor/components/checkbox.js +17 -14
- package/dist/esm/components/formEditor/components/color.js +6 -3
- package/dist/esm/components/formEditor/components/date.js +6 -3
- package/dist/esm/components/formEditor/components/dynamicInput.js +6 -3
- package/dist/esm/components/formEditor/components/dynamicTags.js +13 -10
- package/dist/esm/components/formEditor/components/editor.js +6 -3
- package/dist/esm/components/formEditor/components/fileUpload.js +6 -3
- package/dist/esm/components/formEditor/components/imageUpload.js +6 -3
- package/dist/esm/components/formEditor/components/input.js +6 -3
- package/dist/esm/components/formEditor/components/inputNumber.js +29 -26
- package/dist/esm/components/formEditor/components/mentionAsync.js +17 -14
- package/dist/esm/components/formEditor/components/radio.js +17 -14
- package/dist/esm/components/formEditor/components/region.js +19 -16
- package/dist/esm/components/formEditor/components/select.js +6 -3
- package/dist/esm/components/formEditor/components/selectAsync.js +12 -9
- package/dist/esm/components/formEditor/components/sider.js +6 -3
- package/dist/esm/components/formEditor/components/switch.js +22 -19
- package/dist/esm/components/formEditor/components/time.js +6 -3
- package/dist/esm/components/formEditor/components/transferAsync.js +26 -23
- package/dist/esm/components/formEditor/components/treeSelect.js +6 -3
- package/dist/esm/components/formEditor/components/treeSelectAsync.js +26 -23
- package/dist/esm/components/formEditor/editor.js +5 -2
- package/dist/esm/components/formEditor/renderer.js +5 -2
- package/dist/esm/components/icon/icon.js +5 -2
- package/dist/esm/components/layout/list.js +98 -86
- package/dist/esm/components/layout/table.js +125 -117
- package/dist/esm/components/layout/tools.js +109 -32
- package/dist/esm/components/level/level.js +5 -2
- package/dist/esm/components/list/card.js +27 -22
- package/dist/esm/components/list/list.js +16 -11
- package/dist/esm/components/posterEditor/pages/RightPanel.js +5 -2
- package/dist/esm/components/posterEditor/posterEditor.js +5 -2
- package/dist/esm/components/table/table.js +35 -28
- package/dist/esm/components/table/tablePage.js +17 -12
- package/dist/esm/components/upload/file.js +5 -2
- package/dist/esm/components/upload/image.js +18 -15
- package/dist/esm/components/upload/manage/item.js +5 -2
- package/dist/esm/components/upload/manager.js +5 -2
- package/dist/esm/dvha-pro.css +1 -1
- package/dist/esm/hooks/dialog.js +5 -2
- package/dist/esm/hooks/drawer.js +5 -2
- package/dist/esm/hooks/modal.js +5 -2
- package/dist/esm/hooks/table/image.js +5 -2
- package/dist/esm/hooks/table/media.js +5 -2
- package/dist/esm/hooks/table.js +25 -19
- package/dist/esm/index.js +252 -226
- package/dist/esm/langs/en-US.json.js +5 -5
- package/dist/esm/langs/zh-CN.json.js +6 -6
- package/dist/esm/main.js +4 -2
- package/dist/esm/pages/authLayout.js +5 -2
- package/dist/esm/pages/layout/page.js +9 -6
- package/dist/esm/pages/login.js +10 -7
- package/dist/esm/pages/menu/avatar.js +18 -15
- package/dist/esm/pages/menu/button.js +8 -5
- package/dist/esm/pages/menu/cmd.js +13 -10
- package/dist/esm/pages/menu/main.js +29 -26
- package/dist/esm/pages/menu/mobile.js +5 -2
- package/dist/esm/pages/page404.js +3 -0
- package/dist/esm/pages/pageStatus.js +5 -2
- package/dist/esm/theme/uno.css.js +75 -9
- package/dist/types/components/flowEditor/components/index.d.ts +3 -0
- package/dist/types/components/flowEditor/components/jsonEditor.d.ts +22 -0
- package/dist/types/components/flowEditor/components/nodeCard.d.ts +112 -0
- package/dist/types/components/flowEditor/components/setting.d.ts +16 -0
- package/dist/types/components/flowEditor/components/toolbar.d.ts +11 -0
- package/dist/types/components/flowEditor/flowEditor.d.ts +68 -0
- package/dist/types/components/flowEditor/index.d.ts +5 -0
- package/dist/types/components/flowEditor/nodes/endNode.d.ts +19 -0
- package/dist/types/components/flowEditor/nodes/index.d.ts +8 -0
- package/dist/types/components/flowEditor/nodes/processNode.d.ts +19 -0
- package/dist/types/components/flowEditor/nodes/startNode.d.ts +19 -0
- package/dist/types/components/flowEditor/types/index.d.ts +62 -0
- package/dist/types/components/flowEditor/utils/nodeDataUtils.d.ts +59 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/layout/list.d.ts +7 -0
- package/dist/types/components/layout/table.d.ts +7 -0
- package/dist/types/components/layout/tools.d.ts +28 -2
- package/dist/types/components/list/card.d.ts +6 -0
- package/dist/types/components/list/list.d.ts +6 -0
- package/dist/types/components/table/tablePage.d.ts +6 -0
- package/dist/types/main.d.ts +2 -0
- package/package.json +9 -3
|
@@ -22,6 +22,7 @@ import "jinrishici";
|
|
|
22
22
|
import "lodash-es";
|
|
23
23
|
import "vue-draggable-plus";
|
|
24
24
|
import "aieditor";
|
|
25
|
+
import "@vue-flow/core";
|
|
25
26
|
import { DuxFormItem as i } from "../../form/formItem.js";
|
|
26
27
|
import "@vee-validate/i18n";
|
|
27
28
|
import "colorizr";
|
|
@@ -50,6 +51,9 @@ import "vee-validate";
|
|
|
50
51
|
import "vue-command-palette";
|
|
51
52
|
import "@duxweb/dvha-naiveui";
|
|
52
53
|
import "../../../pages/page404.js";
|
|
54
|
+
import "short-unique-id";
|
|
55
|
+
import "@vue-flow/background";
|
|
56
|
+
/* empty css */
|
|
53
57
|
import { DuxFormEditorItem as s, DuxFormEditorRule as f } from "../base/base.js";
|
|
54
58
|
import { WidgetEditorSettingCard as v } from "../../designEditor/editor/setting.js";
|
|
55
59
|
import "mime";
|
|
@@ -59,17 +63,16 @@ import "fabric";
|
|
|
59
63
|
import "dayjs";
|
|
60
64
|
import "@tanstack/vue-query";
|
|
61
65
|
import "pinia";
|
|
62
|
-
import "short-unique-id";
|
|
63
66
|
const b = /* @__PURE__ */ u({
|
|
64
67
|
name: "FormEditorInputNumber",
|
|
65
68
|
props: {
|
|
66
69
|
options: Object
|
|
67
70
|
},
|
|
68
|
-
setup(
|
|
69
|
-
const r =
|
|
71
|
+
setup(m) {
|
|
72
|
+
const r = m.options?.attr;
|
|
70
73
|
return () => t(i, {
|
|
71
|
-
label:
|
|
72
|
-
description:
|
|
74
|
+
label: m.options?.label,
|
|
75
|
+
description: m.options?.desc
|
|
73
76
|
}, {
|
|
74
77
|
default: () => [t("div", {
|
|
75
78
|
class: "flex-1"
|
|
@@ -80,11 +83,11 @@ const b = /* @__PURE__ */ u({
|
|
|
80
83
|
});
|
|
81
84
|
}
|
|
82
85
|
});
|
|
83
|
-
function x(
|
|
86
|
+
function x(m) {
|
|
84
87
|
const {
|
|
85
88
|
options: r,
|
|
86
89
|
model: o
|
|
87
|
-
} =
|
|
90
|
+
} = m || {};
|
|
88
91
|
return {
|
|
89
92
|
tag: "dux-form-item",
|
|
90
93
|
attrs: {
|
|
@@ -108,68 +111,68 @@ const E = /* @__PURE__ */ u({
|
|
|
108
111
|
default: {}
|
|
109
112
|
}
|
|
110
113
|
},
|
|
111
|
-
setup(
|
|
114
|
+
setup(m, {
|
|
112
115
|
emit: r
|
|
113
116
|
}) {
|
|
114
|
-
const o = c(
|
|
115
|
-
t:
|
|
117
|
+
const o = c(m, "value", r), {
|
|
118
|
+
t: l
|
|
116
119
|
} = d();
|
|
117
120
|
return () => t("div", null, [t(s, {
|
|
118
|
-
value:
|
|
119
|
-
"onUpdate:value": (e) =>
|
|
121
|
+
value: m.value,
|
|
122
|
+
"onUpdate:value": (e) => m.value = e
|
|
120
123
|
}, null), t(v, {
|
|
121
|
-
title:
|
|
124
|
+
title: l("components.formEditor.common.componentConfig")
|
|
122
125
|
}, {
|
|
123
126
|
default: () => [t(i, {
|
|
124
|
-
label:
|
|
127
|
+
label: l("components.formEditor.common.placeholder")
|
|
125
128
|
}, {
|
|
126
129
|
default: () => [t(a, {
|
|
127
130
|
value: o.value.attr.placeholder,
|
|
128
131
|
"onUpdate:value": (e) => o.value.attr.placeholder = e
|
|
129
132
|
}, null)]
|
|
130
133
|
}), t(i, {
|
|
131
|
-
label:
|
|
134
|
+
label: l("components.formEditor.common.minValue")
|
|
132
135
|
}, {
|
|
133
136
|
default: () => [t(p, {
|
|
134
137
|
value: o.value.attr.min,
|
|
135
138
|
"onUpdate:value": (e) => o.value.attr.min = e
|
|
136
139
|
}, null)]
|
|
137
140
|
}), t(i, {
|
|
138
|
-
label:
|
|
141
|
+
label: l("components.formEditor.common.maxValue")
|
|
139
142
|
}, {
|
|
140
143
|
default: () => [t(p, {
|
|
141
144
|
value: o.value.attr.max,
|
|
142
145
|
"onUpdate:value": (e) => o.value.attr.max = e
|
|
143
146
|
}, null)]
|
|
144
147
|
}), t(i, {
|
|
145
|
-
label:
|
|
148
|
+
label: l("components.formEditor.common.prefix")
|
|
146
149
|
}, {
|
|
147
150
|
default: () => [t(a, {
|
|
148
151
|
value: o.value.attr["v-slot:prefix"],
|
|
149
152
|
"onUpdate:value": (e) => o.value.attr["v-slot:prefix"] = e
|
|
150
153
|
}, null)]
|
|
151
154
|
}), t(i, {
|
|
152
|
-
label:
|
|
155
|
+
label: l("components.formEditor.common.suffix")
|
|
153
156
|
}, {
|
|
154
157
|
default: () => [t(a, {
|
|
155
158
|
value: o.value.attr["v-slot:suffix"],
|
|
156
159
|
"onUpdate:value": (e) => o.value.attr["v-slot:suffix"] = e
|
|
157
160
|
}, null)]
|
|
158
161
|
}), t(i, {
|
|
159
|
-
label:
|
|
162
|
+
label: l("components.formEditor.common.status")
|
|
160
163
|
}, {
|
|
161
164
|
default: () => [t("div", {
|
|
162
165
|
class: "w-full grid grid-cols-2"
|
|
163
166
|
}, [t(n, {
|
|
164
|
-
label:
|
|
167
|
+
label: l("components.formEditor.common.readonly"),
|
|
165
168
|
checked: o.value.attr.readonly,
|
|
166
169
|
"onUpdate:checked": (e) => o.value.attr.readonly = e
|
|
167
170
|
}, null), t(n, {
|
|
168
|
-
label:
|
|
171
|
+
label: l("components.formEditor.common.disabled"),
|
|
169
172
|
checked: o.value.attr.disabled,
|
|
170
173
|
"onUpdate:checked": (e) => o.value.attr.disabled = e
|
|
171
174
|
}, null), t(n, {
|
|
172
|
-
label:
|
|
175
|
+
label: l("components.formEditor.common.clearable"),
|
|
173
176
|
checked: o.value.attr.clearable,
|
|
174
177
|
"onUpdate:checked": (e) => o.value.attr.clearable = e
|
|
175
178
|
}, null)])]
|
|
@@ -180,16 +183,16 @@ const E = /* @__PURE__ */ u({
|
|
|
180
183
|
}, null)]);
|
|
181
184
|
}
|
|
182
185
|
});
|
|
183
|
-
function
|
|
186
|
+
function jt(m) {
|
|
184
187
|
return {
|
|
185
188
|
name: "dux-input-number",
|
|
186
189
|
icon: "i-tabler:number",
|
|
187
|
-
label:
|
|
190
|
+
label: m("components.formEditor.inputNumber.label"),
|
|
188
191
|
group: "form",
|
|
189
192
|
component: (r) => t(b, r, null),
|
|
190
193
|
setting: (r) => t(E, r, null),
|
|
191
194
|
settingDefault: {
|
|
192
|
-
label:
|
|
195
|
+
label: m("components.formEditor.inputNumber.label"),
|
|
193
196
|
name: "number",
|
|
194
197
|
attr: {},
|
|
195
198
|
rule: []
|
|
@@ -198,5 +201,5 @@ function yt(l) {
|
|
|
198
201
|
};
|
|
199
202
|
}
|
|
200
203
|
export {
|
|
201
|
-
|
|
204
|
+
jt as duxFormEditorInputNumber
|
|
202
205
|
};
|
|
@@ -2,7 +2,7 @@ import { createVNode as t, defineComponent as u } from "vue";
|
|
|
2
2
|
import { useI18n as d } from "@duxweb/dvha-core";
|
|
3
3
|
import { DuxMention as s } from "@duxweb/dvha-naiveui";
|
|
4
4
|
import { useVModel as c } from "@vueuse/core";
|
|
5
|
-
import { NSwitch as n, NInput as
|
|
5
|
+
import { NSwitch as n, NInput as a } from "naive-ui";
|
|
6
6
|
import "clsx";
|
|
7
7
|
import "vue-router";
|
|
8
8
|
import "@overlastic/vue";
|
|
@@ -23,7 +23,8 @@ import "jinrishici";
|
|
|
23
23
|
import "lodash-es";
|
|
24
24
|
import "vue-draggable-plus";
|
|
25
25
|
import "aieditor";
|
|
26
|
-
import
|
|
26
|
+
import "@vue-flow/core";
|
|
27
|
+
import { DuxFormItem as m } from "../../form/formItem.js";
|
|
27
28
|
import "@vee-validate/i18n";
|
|
28
29
|
import "colorizr";
|
|
29
30
|
import "echarts";
|
|
@@ -50,6 +51,9 @@ import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
|
50
51
|
import "vee-validate";
|
|
51
52
|
import "vue-command-palette";
|
|
52
53
|
import "../../../pages/page404.js";
|
|
54
|
+
import "short-unique-id";
|
|
55
|
+
import "@vue-flow/background";
|
|
56
|
+
/* empty css */
|
|
53
57
|
import { DuxFormEditorItem as f, DuxFormEditorRule as v } from "../base/base.js";
|
|
54
58
|
import { WidgetEditorSettingCard as p } from "../../designEditor/editor/setting.js";
|
|
55
59
|
import "mime";
|
|
@@ -59,13 +63,12 @@ import "fabric";
|
|
|
59
63
|
import "dayjs";
|
|
60
64
|
import "@tanstack/vue-query";
|
|
61
65
|
import "pinia";
|
|
62
|
-
import "short-unique-id";
|
|
63
66
|
const b = /* @__PURE__ */ u({
|
|
64
67
|
props: {
|
|
65
68
|
options: Object
|
|
66
69
|
},
|
|
67
70
|
setup(l) {
|
|
68
|
-
return () => t(
|
|
71
|
+
return () => t(m, {
|
|
69
72
|
label: l.options?.label,
|
|
70
73
|
description: l.options?.desc
|
|
71
74
|
}, {
|
|
@@ -114,7 +117,7 @@ const x = /* @__PURE__ */ u({
|
|
|
114
117
|
}, null), t(p, {
|
|
115
118
|
title: i("components.formEditor.config")
|
|
116
119
|
}, {
|
|
117
|
-
default: () => [t(
|
|
120
|
+
default: () => [t(m, {
|
|
118
121
|
label: i("components.formEditor.common.disabled"),
|
|
119
122
|
labelPlacement: "left"
|
|
120
123
|
}, {
|
|
@@ -124,7 +127,7 @@ const x = /* @__PURE__ */ u({
|
|
|
124
127
|
value: o.value.attr.disabled,
|
|
125
128
|
"onUpdate:value": (e) => o.value.attr.disabled = e
|
|
126
129
|
}, null)])]
|
|
127
|
-
}), t(
|
|
130
|
+
}), t(m, {
|
|
128
131
|
label: i("components.formEditor.common.clearable"),
|
|
129
132
|
labelPlacement: "left"
|
|
130
133
|
}, {
|
|
@@ -138,24 +141,24 @@ const x = /* @__PURE__ */ u({
|
|
|
138
141
|
}), t(p, {
|
|
139
142
|
title: i("components.formEditor.options")
|
|
140
143
|
}, {
|
|
141
|
-
default: () => [t(
|
|
144
|
+
default: () => [t(m, {
|
|
142
145
|
label: i("components.formEditor.mentionAsync.path")
|
|
143
146
|
}, {
|
|
144
|
-
default: () => [t(
|
|
147
|
+
default: () => [t(a, {
|
|
145
148
|
value: o.value.attr.path,
|
|
146
149
|
"onUpdate:value": (e) => o.value.attr.path = e
|
|
147
150
|
}, null)]
|
|
148
|
-
}), t(
|
|
151
|
+
}), t(m, {
|
|
149
152
|
label: i("components.formEditor.mentionAsync.labelField")
|
|
150
153
|
}, {
|
|
151
|
-
default: () => [t(
|
|
154
|
+
default: () => [t(a, {
|
|
152
155
|
value: o.value.attr.labelField,
|
|
153
156
|
"onUpdate:value": (e) => o.value.attr.labelField = e
|
|
154
157
|
}, null)]
|
|
155
|
-
}), t(
|
|
158
|
+
}), t(m, {
|
|
156
159
|
label: i("components.formEditor.mentionAsync.valueField")
|
|
157
160
|
}, {
|
|
158
|
-
default: () => [t(
|
|
161
|
+
default: () => [t(a, {
|
|
159
162
|
value: o.value.attr.valueField,
|
|
160
163
|
"onUpdate:value": (e) => o.value.attr.valueField = e
|
|
161
164
|
}, null)]
|
|
@@ -166,7 +169,7 @@ const x = /* @__PURE__ */ u({
|
|
|
166
169
|
}, null)]);
|
|
167
170
|
}
|
|
168
171
|
});
|
|
169
|
-
function
|
|
172
|
+
function Nt(l) {
|
|
170
173
|
return {
|
|
171
174
|
name: "mention-async",
|
|
172
175
|
icon: "i-tabler:at",
|
|
@@ -190,5 +193,5 @@ function It(l) {
|
|
|
190
193
|
};
|
|
191
194
|
}
|
|
192
195
|
export {
|
|
193
|
-
|
|
196
|
+
Nt as duxFormEditorMentionAsync
|
|
194
197
|
};
|
|
@@ -23,6 +23,7 @@ import "jinrishici";
|
|
|
23
23
|
import "lodash-es";
|
|
24
24
|
import "vue-draggable-plus";
|
|
25
25
|
import "aieditor";
|
|
26
|
+
import "@vue-flow/core";
|
|
26
27
|
import { DuxFormItem as n } from "../../form/formItem.js";
|
|
27
28
|
import "@vee-validate/i18n";
|
|
28
29
|
import "colorizr";
|
|
@@ -51,6 +52,9 @@ import "vee-validate";
|
|
|
51
52
|
import "vue-command-palette";
|
|
52
53
|
import "@duxweb/dvha-naiveui";
|
|
53
54
|
import "../../../pages/page404.js";
|
|
55
|
+
import "short-unique-id";
|
|
56
|
+
import "@vue-flow/background";
|
|
57
|
+
/* empty css */
|
|
54
58
|
import { DuxFormEditorItem as V, DuxFormEditorRule as h } from "../base/base.js";
|
|
55
59
|
import { WidgetEditorSettingCard as p } from "../../designEditor/editor/setting.js";
|
|
56
60
|
import "mime";
|
|
@@ -60,7 +64,6 @@ import "fabric";
|
|
|
60
64
|
import "dayjs";
|
|
61
65
|
import "@tanstack/vue-query";
|
|
62
66
|
import "pinia";
|
|
63
|
-
import "short-unique-id";
|
|
64
67
|
function j(o) {
|
|
65
68
|
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !c(o);
|
|
66
69
|
}
|
|
@@ -104,12 +107,12 @@ function F(o) {
|
|
|
104
107
|
...e?.attr,
|
|
105
108
|
"v-model:value": [r, e?.name]
|
|
106
109
|
},
|
|
107
|
-
children: e?.attr?.options?.map((
|
|
110
|
+
children: e?.attr?.options?.map((l) => ({
|
|
108
111
|
tag: "n-radio",
|
|
109
112
|
attrs: {
|
|
110
|
-
value:
|
|
113
|
+
value: l.value
|
|
111
114
|
},
|
|
112
|
-
children: [
|
|
115
|
+
children: [l.label]
|
|
113
116
|
})) || []
|
|
114
117
|
}]
|
|
115
118
|
};
|
|
@@ -125,7 +128,7 @@ const R = /* @__PURE__ */ u({
|
|
|
125
128
|
setup(o, {
|
|
126
129
|
emit: e
|
|
127
130
|
}) {
|
|
128
|
-
const r = f(o, "value", e),
|
|
131
|
+
const r = f(o, "value", e), l = C(), {
|
|
129
132
|
t: i
|
|
130
133
|
} = s();
|
|
131
134
|
return () => {
|
|
@@ -134,7 +137,7 @@ const R = /* @__PURE__ */ u({
|
|
|
134
137
|
class: ""
|
|
135
138
|
}, [t(V, {
|
|
136
139
|
value: o.value,
|
|
137
|
-
"onUpdate:value": (
|
|
140
|
+
"onUpdate:value": (m) => o.value = m
|
|
138
141
|
}, null), t(p, {
|
|
139
142
|
title: i("components.formEditor.common.componentConfig")
|
|
140
143
|
}, {
|
|
@@ -143,7 +146,7 @@ const R = /* @__PURE__ */ u({
|
|
|
143
146
|
}, {
|
|
144
147
|
default: () => [t(v, {
|
|
145
148
|
value: r.value.attr.defaultValue,
|
|
146
|
-
"onUpdate:value": (
|
|
149
|
+
"onUpdate:value": (m) => r.value.attr.defaultValue = m
|
|
147
150
|
}, null)]
|
|
148
151
|
}), t(n, {
|
|
149
152
|
label: i("components.formEditor.common.disabled"),
|
|
@@ -153,7 +156,7 @@ const R = /* @__PURE__ */ u({
|
|
|
153
156
|
class: "flex flex-1 justify-end"
|
|
154
157
|
}, [t(b, {
|
|
155
158
|
value: r.value.attr.disabled,
|
|
156
|
-
"onUpdate:value": (
|
|
159
|
+
"onUpdate:value": (m) => r.value.attr.disabled = m
|
|
157
160
|
}, null)])]
|
|
158
161
|
})]
|
|
159
162
|
}), t(p, {
|
|
@@ -166,14 +169,14 @@ const R = /* @__PURE__ */ u({
|
|
|
166
169
|
class: "i-tabler:edit"
|
|
167
170
|
}, null),
|
|
168
171
|
onClick: () => {
|
|
169
|
-
|
|
172
|
+
l.show({
|
|
170
173
|
title: i("components.formEditor.common.dataConfig"),
|
|
171
174
|
component: () => import("../base/options.js"),
|
|
172
175
|
componentProps: {
|
|
173
176
|
desc: i("components.formEditor.radio.configDesc"),
|
|
174
177
|
value: r.value.attr.options,
|
|
175
|
-
onChange: (
|
|
176
|
-
r.value.attr.options =
|
|
178
|
+
onChange: (m) => {
|
|
179
|
+
r.value.attr.options = m;
|
|
177
180
|
},
|
|
178
181
|
options: [{
|
|
179
182
|
label: i("components.formEditor.common.optionLabel"),
|
|
@@ -190,12 +193,12 @@ const R = /* @__PURE__ */ u({
|
|
|
190
193
|
})]
|
|
191
194
|
}), t(h, {
|
|
192
195
|
value: r.value.rule,
|
|
193
|
-
"onUpdate:value": (
|
|
196
|
+
"onUpdate:value": (m) => r.value.rule = m
|
|
194
197
|
}, null)]);
|
|
195
198
|
};
|
|
196
199
|
}
|
|
197
200
|
});
|
|
198
|
-
function
|
|
201
|
+
function Jo(o) {
|
|
199
202
|
return {
|
|
200
203
|
name: "dux-radio",
|
|
201
204
|
icon: "i-tabler:circle-dot",
|
|
@@ -222,5 +225,5 @@ function _o(o) {
|
|
|
222
225
|
};
|
|
223
226
|
}
|
|
224
227
|
export {
|
|
225
|
-
|
|
228
|
+
Jo as duxFormEditorRadio
|
|
226
229
|
};
|
|
@@ -22,7 +22,8 @@ import "jinrishici";
|
|
|
22
22
|
import "lodash-es";
|
|
23
23
|
import "vue-draggable-plus";
|
|
24
24
|
import "aieditor";
|
|
25
|
-
import
|
|
25
|
+
import "@vue-flow/core";
|
|
26
|
+
import { DuxFormItem as l } from "../../form/formItem.js";
|
|
26
27
|
import "@vee-validate/i18n";
|
|
27
28
|
import "colorizr";
|
|
28
29
|
import "echarts";
|
|
@@ -50,6 +51,9 @@ import "vee-validate";
|
|
|
50
51
|
import "vue-command-palette";
|
|
51
52
|
import "@duxweb/dvha-naiveui";
|
|
52
53
|
import "../../../pages/page404.js";
|
|
54
|
+
import "short-unique-id";
|
|
55
|
+
import "@vue-flow/background";
|
|
56
|
+
/* empty css */
|
|
53
57
|
import { DuxFormEditorItem as s, DuxFormEditorRule as c } from "../base/base.js";
|
|
54
58
|
import { WidgetEditorSettingCard as v } from "../../designEditor/editor/setting.js";
|
|
55
59
|
import "mime";
|
|
@@ -60,14 +64,13 @@ import "fabric";
|
|
|
60
64
|
import "dayjs";
|
|
61
65
|
import "@tanstack/vue-query";
|
|
62
66
|
import "pinia";
|
|
63
|
-
import "short-unique-id";
|
|
64
67
|
const g = /* @__PURE__ */ p({
|
|
65
68
|
name: "FormRegion",
|
|
66
69
|
props: {
|
|
67
70
|
options: Object
|
|
68
71
|
},
|
|
69
72
|
setup(o) {
|
|
70
|
-
return () => t(
|
|
73
|
+
return () => t(l, {
|
|
71
74
|
label: o.options?.label,
|
|
72
75
|
description: o.options?.desc
|
|
73
76
|
}, {
|
|
@@ -107,7 +110,7 @@ const F = /* @__PURE__ */ p({
|
|
|
107
110
|
emit: i
|
|
108
111
|
}) {
|
|
109
112
|
const e = u(o, "value", i), {
|
|
110
|
-
t:
|
|
113
|
+
t: m
|
|
111
114
|
} = n();
|
|
112
115
|
return () => t("div", {
|
|
113
116
|
class: ""
|
|
@@ -115,36 +118,36 @@ const F = /* @__PURE__ */ p({
|
|
|
115
118
|
value: o.value,
|
|
116
119
|
"onUpdate:value": (r) => o.value = r
|
|
117
120
|
}, null), t(v, {
|
|
118
|
-
title:
|
|
121
|
+
title: m("components.formEditor.config")
|
|
119
122
|
}, {
|
|
120
|
-
default: () => [t(
|
|
121
|
-
label:
|
|
123
|
+
default: () => [t(l, {
|
|
124
|
+
label: m("components.formEditor.region.Path")
|
|
122
125
|
}, {
|
|
123
126
|
default: () => [t(a, {
|
|
124
127
|
value: e.value.attr.path,
|
|
125
128
|
"onUpdate:value": (r) => e.value.attr.path = r
|
|
126
129
|
}, null)]
|
|
127
|
-
}), t(
|
|
128
|
-
label:
|
|
130
|
+
}), t(l, {
|
|
131
|
+
label: m("components.formEditor.region.labelField")
|
|
129
132
|
}, {
|
|
130
133
|
default: () => [t(a, {
|
|
131
134
|
value: e.value.attr.labelField,
|
|
132
135
|
"onUpdate:value": (r) => e.value.attr.labelField = r
|
|
133
136
|
}, null)]
|
|
134
|
-
}), t(
|
|
135
|
-
label:
|
|
137
|
+
}), t(l, {
|
|
138
|
+
label: m("components.formEditor.region.valueField")
|
|
136
139
|
}, {
|
|
137
140
|
default: () => [t(a, {
|
|
138
141
|
value: e.value.attr.valueField,
|
|
139
142
|
"onUpdate:value": (r) => e.value.attr.valueField = r
|
|
140
143
|
}, null)]
|
|
141
|
-
}), t(
|
|
142
|
-
label:
|
|
144
|
+
}), t(l, {
|
|
145
|
+
label: m("components.formEditor.common.status")
|
|
143
146
|
}, {
|
|
144
147
|
default: () => [t("div", {
|
|
145
148
|
class: "w-full grid grid-cols-2"
|
|
146
149
|
}, [t(d, {
|
|
147
|
-
label:
|
|
150
|
+
label: m("components.formEditor.common.disabled"),
|
|
148
151
|
checked: e.value.attr.disabled,
|
|
149
152
|
"onUpdate:checked": (r) => e.value.attr.disabled = r
|
|
150
153
|
}, null)])]
|
|
@@ -155,7 +158,7 @@ const F = /* @__PURE__ */ p({
|
|
|
155
158
|
}, null)]);
|
|
156
159
|
}
|
|
157
160
|
});
|
|
158
|
-
function
|
|
161
|
+
function Ot(o) {
|
|
159
162
|
return {
|
|
160
163
|
name: "region",
|
|
161
164
|
icon: "i-tabler:directions",
|
|
@@ -177,5 +180,5 @@ function kt(o) {
|
|
|
177
180
|
};
|
|
178
181
|
}
|
|
179
182
|
export {
|
|
180
|
-
|
|
183
|
+
Ot as duxFormEditorRegion
|
|
181
184
|
};
|
|
@@ -23,6 +23,7 @@ import "jinrishici";
|
|
|
23
23
|
import "lodash-es";
|
|
24
24
|
import "vue-draggable-plus";
|
|
25
25
|
import "aieditor";
|
|
26
|
+
import "@vue-flow/core";
|
|
26
27
|
import { DuxFormItem as i } from "../../form/formItem.js";
|
|
27
28
|
import "@vee-validate/i18n";
|
|
28
29
|
import "colorizr";
|
|
@@ -51,6 +52,9 @@ import "vee-validate";
|
|
|
51
52
|
import "vue-command-palette";
|
|
52
53
|
import "@duxweb/dvha-naiveui";
|
|
53
54
|
import "../../../pages/page404.js";
|
|
55
|
+
import "short-unique-id";
|
|
56
|
+
import "@vue-flow/background";
|
|
57
|
+
/* empty css */
|
|
54
58
|
import { DuxFormEditorItem as g, DuxFormEditorRule as x } from "../base/base.js";
|
|
55
59
|
import { WidgetEditorSettingCard as p } from "../../designEditor/editor/setting.js";
|
|
56
60
|
import "mime";
|
|
@@ -60,7 +64,6 @@ import "fabric";
|
|
|
60
64
|
import "dayjs";
|
|
61
65
|
import "@tanstack/vue-query";
|
|
62
66
|
import "pinia";
|
|
63
|
-
import "short-unique-id";
|
|
64
67
|
function S(o) {
|
|
65
68
|
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !d(o);
|
|
66
69
|
}
|
|
@@ -192,7 +195,7 @@ const F = /* @__PURE__ */ u({
|
|
|
192
195
|
};
|
|
193
196
|
}
|
|
194
197
|
});
|
|
195
|
-
function
|
|
198
|
+
function _t(o) {
|
|
196
199
|
return {
|
|
197
200
|
name: "dux-select",
|
|
198
201
|
icon: "i-tabler:select",
|
|
@@ -213,5 +216,5 @@ function kt(o) {
|
|
|
213
216
|
};
|
|
214
217
|
}
|
|
215
218
|
export {
|
|
216
|
-
|
|
219
|
+
_t as duxFormEditorSelect
|
|
217
220
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createVNode as t, defineComponent as
|
|
1
|
+
import { createVNode as t, defineComponent as u } from "vue";
|
|
2
2
|
import { useI18n as d } from "@duxweb/dvha-core";
|
|
3
3
|
import { DuxSelect as s } from "@duxweb/dvha-naiveui";
|
|
4
4
|
import { useVModel as c } from "@vueuse/core";
|
|
@@ -23,6 +23,7 @@ import "jinrishici";
|
|
|
23
23
|
import "lodash-es";
|
|
24
24
|
import "vue-draggable-plus";
|
|
25
25
|
import "aieditor";
|
|
26
|
+
import "@vue-flow/core";
|
|
26
27
|
import { DuxFormItem as i } from "../../form/formItem.js";
|
|
27
28
|
import "@vee-validate/i18n";
|
|
28
29
|
import "colorizr";
|
|
@@ -50,8 +51,11 @@ import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
|
50
51
|
import "vee-validate";
|
|
51
52
|
import "vue-command-palette";
|
|
52
53
|
import "../../../pages/page404.js";
|
|
54
|
+
import "short-unique-id";
|
|
55
|
+
import "@vue-flow/background";
|
|
56
|
+
/* empty css */
|
|
53
57
|
import { DuxFormEditorItem as v, DuxFormEditorRule as f } from "../base/base.js";
|
|
54
|
-
import { WidgetEditorSettingCard as
|
|
58
|
+
import { WidgetEditorSettingCard as p } from "../../designEditor/editor/setting.js";
|
|
55
59
|
import "mime";
|
|
56
60
|
import "@iconify-json/tabler/icons.json";
|
|
57
61
|
import "../../posterEditor/elements/index.js";
|
|
@@ -59,8 +63,7 @@ import "fabric";
|
|
|
59
63
|
import "dayjs";
|
|
60
64
|
import "@tanstack/vue-query";
|
|
61
65
|
import "pinia";
|
|
62
|
-
|
|
63
|
-
const b = /* @__PURE__ */ p({
|
|
66
|
+
const b = /* @__PURE__ */ u({
|
|
64
67
|
props: {
|
|
65
68
|
options: Object
|
|
66
69
|
},
|
|
@@ -93,7 +96,7 @@ function F(o) {
|
|
|
93
96
|
}]
|
|
94
97
|
};
|
|
95
98
|
}
|
|
96
|
-
const y = /* @__PURE__ */
|
|
99
|
+
const y = /* @__PURE__ */ u({
|
|
97
100
|
props: {
|
|
98
101
|
value: {
|
|
99
102
|
type: Object,
|
|
@@ -111,7 +114,7 @@ const y = /* @__PURE__ */ p({
|
|
|
111
114
|
}, [t(v, {
|
|
112
115
|
value: o.value,
|
|
113
116
|
"onUpdate:value": (l) => o.value = l
|
|
114
|
-
}, null), t(
|
|
117
|
+
}, null), t(p, {
|
|
115
118
|
title: a("components.formEditor.config")
|
|
116
119
|
}, {
|
|
117
120
|
default: () => [t(i, {
|
|
@@ -155,7 +158,7 @@ const y = /* @__PURE__ */ p({
|
|
|
155
158
|
"onUpdate:value": (l) => e.value.attr.pagination = l
|
|
156
159
|
}, null)])]
|
|
157
160
|
})]
|
|
158
|
-
}), t(
|
|
161
|
+
}), t(p, {
|
|
159
162
|
title: a("components.formEditor.options")
|
|
160
163
|
}, {
|
|
161
164
|
default: () => [t(i, {
|
|
@@ -200,7 +203,7 @@ const y = /* @__PURE__ */ p({
|
|
|
200
203
|
}, null)]);
|
|
201
204
|
}
|
|
202
205
|
});
|
|
203
|
-
function
|
|
206
|
+
function Ct(o) {
|
|
204
207
|
return {
|
|
205
208
|
name: "select-async",
|
|
206
209
|
icon: "i-tabler:select",
|
|
@@ -224,5 +227,5 @@ function St(o) {
|
|
|
224
227
|
};
|
|
225
228
|
}
|
|
226
229
|
export {
|
|
227
|
-
|
|
230
|
+
Ct as duxFormEditorSelectAsync
|
|
228
231
|
};
|
|
@@ -22,6 +22,7 @@ import "jinrishici";
|
|
|
22
22
|
import "lodash-es";
|
|
23
23
|
import "vue-draggable-plus";
|
|
24
24
|
import "aieditor";
|
|
25
|
+
import "@vue-flow/core";
|
|
25
26
|
import { DuxFormItem as l } from "../../form/formItem.js";
|
|
26
27
|
import "@vee-validate/i18n";
|
|
27
28
|
import "colorizr";
|
|
@@ -50,6 +51,9 @@ import "vee-validate";
|
|
|
50
51
|
import "vue-command-palette";
|
|
51
52
|
import "@duxweb/dvha-naiveui";
|
|
52
53
|
import "../../../pages/page404.js";
|
|
54
|
+
import "short-unique-id";
|
|
55
|
+
import "@vue-flow/background";
|
|
56
|
+
/* empty css */
|
|
53
57
|
import { DuxFormEditorItem as c, DuxFormEditorRule as v } from "../base/base.js";
|
|
54
58
|
import { WidgetEditorSettingCard as a } from "../../designEditor/editor/setting.js";
|
|
55
59
|
import "mime";
|
|
@@ -59,7 +63,6 @@ import "fabric";
|
|
|
59
63
|
import "dayjs";
|
|
60
64
|
import "@tanstack/vue-query";
|
|
61
65
|
import "pinia";
|
|
62
|
-
import "short-unique-id";
|
|
63
66
|
const b = /* @__PURE__ */ n({
|
|
64
67
|
props: {
|
|
65
68
|
options: Object
|
|
@@ -156,7 +159,7 @@ const E = /* @__PURE__ */ n({
|
|
|
156
159
|
}, null)]);
|
|
157
160
|
}
|
|
158
161
|
});
|
|
159
|
-
function
|
|
162
|
+
function Ot(o) {
|
|
160
163
|
return {
|
|
161
164
|
name: "sider",
|
|
162
165
|
icon: "i-tabler:separator",
|
|
@@ -178,5 +181,5 @@ function Ct(o) {
|
|
|
178
181
|
};
|
|
179
182
|
}
|
|
180
183
|
export {
|
|
181
|
-
|
|
184
|
+
Ot as duxFormEditorSider
|
|
182
185
|
};
|