@duxweb/dvha-pro 1.1.14 → 1.1.16
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/components/card/card.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/editor/aiEditor.cjs +3 -1
- package/dist/cjs/components/flowEditor/components/setting.cjs +1 -1
- package/dist/cjs/components/flowEditor/nodes/endNode.cjs +1 -1
- package/dist/cjs/components/flowEditor/nodes/index.cjs +1 -1
- package/dist/cjs/components/flowEditor/nodes/processNode.cjs +1 -1
- package/dist/cjs/components/flowEditor/nodes/startNode.cjs +1 -1
- 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/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/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/config/uno.cjs +1 -1
- package/dist/cjs/hooks/dialog.cjs +1 -1
- package/dist/cjs/hooks/download.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/pages/layout/global.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/menuApp.cjs +1 -1
- package/dist/cjs/pages/menu/menuMain.cjs +1 -1
- package/dist/cjs/pages/menu/mobile.cjs +1 -1
- package/dist/cjs/pages/menu/notice.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 +58 -112
- package/dist/esm/components/card/card.js +0 -1
- package/dist/esm/components/chart/echart.js +3 -5
- package/dist/esm/components/crop/imageCrop.js +3 -5
- package/dist/esm/components/data/dynamicSelect.js +3 -5
- package/dist/esm/components/data/selectModal.js +3 -5
- package/dist/esm/components/designEditor/components/grid.js +3 -5
- package/dist/esm/components/designEditor/editor/setting.js +5 -7
- package/dist/esm/components/editor/aiEditor.js +142 -125
- package/dist/esm/components/flowEditor/components/setting.js +13 -15
- package/dist/esm/components/flowEditor/nodes/endNode.js +3 -5
- package/dist/esm/components/flowEditor/nodes/index.js +3 -5
- package/dist/esm/components/flowEditor/nodes/processNode.js +3 -5
- package/dist/esm/components/flowEditor/nodes/startNode.js +3 -5
- package/dist/esm/components/form/drawerForm.js +3 -5
- package/dist/esm/components/form/modalForm.js +3 -5
- package/dist/esm/components/form/pageForm.js +3 -5
- package/dist/esm/components/form/pageTabForm.js +3 -5
- package/dist/esm/components/form/settingForm.js +3 -6
- package/dist/esm/components/formEditor/base/base.js +5 -7
- package/dist/esm/components/formEditor/base/setting.js +3 -5
- package/dist/esm/components/formEditor/components/cascader.js +3 -5
- package/dist/esm/components/formEditor/components/cascaderAsync.js +3 -5
- package/dist/esm/components/formEditor/components/checkbox.js +3 -5
- package/dist/esm/components/formEditor/components/color.js +3 -5
- package/dist/esm/components/formEditor/components/date.js +3 -5
- package/dist/esm/components/formEditor/components/dynamicInput.js +3 -5
- package/dist/esm/components/formEditor/components/dynamicTags.js +10 -12
- package/dist/esm/components/formEditor/components/editor.js +3 -5
- package/dist/esm/components/formEditor/components/fileUpload.js +3 -5
- package/dist/esm/components/formEditor/components/imageUpload.js +3 -5
- package/dist/esm/components/formEditor/components/input.js +3 -5
- package/dist/esm/components/formEditor/components/inputNumber.js +3 -5
- package/dist/esm/components/formEditor/components/mentionAsync.js +14 -16
- package/dist/esm/components/formEditor/components/radio.js +14 -16
- package/dist/esm/components/formEditor/components/region.js +16 -18
- package/dist/esm/components/formEditor/components/select.js +3 -5
- package/dist/esm/components/formEditor/components/selectAsync.js +3 -5
- package/dist/esm/components/formEditor/components/sider.js +3 -5
- package/dist/esm/components/formEditor/components/switch.js +19 -21
- package/dist/esm/components/formEditor/components/time.js +3 -5
- package/dist/esm/components/formEditor/components/transferAsync.js +23 -25
- package/dist/esm/components/formEditor/components/treeSelect.js +3 -5
- package/dist/esm/components/formEditor/components/treeSelectAsync.js +3 -5
- package/dist/esm/components/formEditor/editor.js +3 -5
- package/dist/esm/components/formEditor/renderer.js +3 -5
- package/dist/esm/components/icon/icon.js +3 -5
- package/dist/esm/components/layout/list.js +3 -5
- package/dist/esm/components/layout/table.js +23 -25
- package/dist/esm/components/layout/tools.js +3 -5
- package/dist/esm/components/level/level.js +3 -5
- package/dist/esm/components/posterEditor/pages/RightPanel.js +3 -5
- package/dist/esm/components/posterEditor/posterEditor.js +3 -5
- package/dist/esm/components/table/table.js +8 -10
- package/dist/esm/components/upload/file.js +3 -5
- package/dist/esm/components/upload/image.js +33 -35
- package/dist/esm/components/upload/manage/item.js +3 -5
- package/dist/esm/components/upload/manager.js +3 -5
- package/dist/esm/config/uno.js +6 -8
- package/dist/esm/hooks/dialog.js +3 -5
- package/dist/esm/hooks/download.js +57 -50
- package/dist/esm/hooks/drawer.js +3 -5
- package/dist/esm/hooks/modal.js +3 -5
- package/dist/esm/hooks/table/image.js +3 -5
- package/dist/esm/hooks/table/media.js +3 -5
- package/dist/esm/pages/layout/global.js +3 -5
- package/dist/esm/pages/layout/page.js +7 -9
- package/dist/esm/pages/login.js +8 -10
- package/dist/esm/pages/menu/avatar.js +19 -21
- package/dist/esm/pages/menu/button.js +3 -5
- package/dist/esm/pages/menu/cmd.js +11 -13
- package/dist/esm/pages/menu/menuApp.js +15 -17
- package/dist/esm/pages/menu/menuMain.js +3 -5
- package/dist/esm/pages/menu/mobile.js +3 -5
- package/dist/esm/pages/menu/notice.js +3 -5
- package/dist/esm/pages/page404.js +1 -3
- package/dist/esm/pages/pageStatus.js +3 -5
- package/dist/esm/theme/uno.css.js +58 -112
- package/dist/types/components/table/table.d.ts +5 -5
- package/dist/types/components/widget/avatar.d.ts +2 -2
- package/dist/types/components/widget/image.d.ts +1 -1
- package/dist/types/config/uno.d.ts +2 -2
- package/dist/types/hooks/action.d.ts +1 -1
- package/package.json +7 -8
|
@@ -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 m } from "naive-ui";
|
|
6
6
|
import "clsx";
|
|
7
7
|
import "vue-router";
|
|
8
8
|
import "@overlastic/vue";
|
|
@@ -24,7 +24,7 @@ import "lodash-es";
|
|
|
24
24
|
import "vue-draggable-plus";
|
|
25
25
|
import "aieditor";
|
|
26
26
|
import "@vue-flow/core";
|
|
27
|
-
import { DuxFormItem as
|
|
27
|
+
import { DuxFormItem as a } from "../../form/formItem.js";
|
|
28
28
|
import "@vee-validate/i18n";
|
|
29
29
|
import "colorizr";
|
|
30
30
|
import "echarts";
|
|
@@ -43,9 +43,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
43
43
|
import "highlight.js/lib/languages/typescript";
|
|
44
44
|
import "highlight.js/lib/languages/xml";
|
|
45
45
|
import "@ant-design/colors";
|
|
46
|
-
import "
|
|
47
|
-
import "@unocss/preset-typography";
|
|
48
|
-
import "unocss/preset-wind4";
|
|
46
|
+
import "unocss";
|
|
49
47
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
50
48
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
51
49
|
import "vee-validate";
|
|
@@ -68,7 +66,7 @@ const b = /* @__PURE__ */ u({
|
|
|
68
66
|
options: Object
|
|
69
67
|
},
|
|
70
68
|
setup(l) {
|
|
71
|
-
return () => t(
|
|
69
|
+
return () => t(a, {
|
|
72
70
|
label: l.options?.label,
|
|
73
71
|
description: l.options?.desc
|
|
74
72
|
}, {
|
|
@@ -117,7 +115,7 @@ const x = /* @__PURE__ */ u({
|
|
|
117
115
|
}, null), t(p, {
|
|
118
116
|
title: i("components.formEditor.config")
|
|
119
117
|
}, {
|
|
120
|
-
default: () => [t(
|
|
118
|
+
default: () => [t(a, {
|
|
121
119
|
label: i("components.formEditor.common.disabled"),
|
|
122
120
|
labelPlacement: "left"
|
|
123
121
|
}, {
|
|
@@ -127,7 +125,7 @@ const x = /* @__PURE__ */ u({
|
|
|
127
125
|
value: o.value.attr.disabled,
|
|
128
126
|
"onUpdate:value": (e) => o.value.attr.disabled = e
|
|
129
127
|
}, null)])]
|
|
130
|
-
}), t(
|
|
128
|
+
}), t(a, {
|
|
131
129
|
label: i("components.formEditor.common.clearable"),
|
|
132
130
|
labelPlacement: "left"
|
|
133
131
|
}, {
|
|
@@ -141,24 +139,24 @@ const x = /* @__PURE__ */ u({
|
|
|
141
139
|
}), t(p, {
|
|
142
140
|
title: i("components.formEditor.options")
|
|
143
141
|
}, {
|
|
144
|
-
default: () => [t(
|
|
142
|
+
default: () => [t(a, {
|
|
145
143
|
label: i("components.formEditor.mentionAsync.path")
|
|
146
144
|
}, {
|
|
147
|
-
default: () => [t(
|
|
145
|
+
default: () => [t(m, {
|
|
148
146
|
value: o.value.attr.path,
|
|
149
147
|
"onUpdate:value": (e) => o.value.attr.path = e
|
|
150
148
|
}, null)]
|
|
151
|
-
}), t(
|
|
149
|
+
}), t(a, {
|
|
152
150
|
label: i("components.formEditor.mentionAsync.labelField")
|
|
153
151
|
}, {
|
|
154
|
-
default: () => [t(
|
|
152
|
+
default: () => [t(m, {
|
|
155
153
|
value: o.value.attr.labelField,
|
|
156
154
|
"onUpdate:value": (e) => o.value.attr.labelField = e
|
|
157
155
|
}, null)]
|
|
158
|
-
}), t(
|
|
156
|
+
}), t(a, {
|
|
159
157
|
label: i("components.formEditor.mentionAsync.valueField")
|
|
160
158
|
}, {
|
|
161
|
-
default: () => [t(
|
|
159
|
+
default: () => [t(m, {
|
|
162
160
|
value: o.value.attr.valueField,
|
|
163
161
|
"onUpdate:value": (e) => o.value.attr.valueField = e
|
|
164
162
|
}, null)]
|
|
@@ -169,7 +167,7 @@ const x = /* @__PURE__ */ u({
|
|
|
169
167
|
}, null)]);
|
|
170
168
|
}
|
|
171
169
|
});
|
|
172
|
-
function
|
|
170
|
+
function Ct(l) {
|
|
173
171
|
return {
|
|
174
172
|
name: "mention-async",
|
|
175
173
|
icon: "i-tabler:at",
|
|
@@ -193,5 +191,5 @@ function Nt(l) {
|
|
|
193
191
|
};
|
|
194
192
|
}
|
|
195
193
|
export {
|
|
196
|
-
|
|
194
|
+
Ct as duxFormEditorMentionAsync
|
|
197
195
|
};
|
|
@@ -43,9 +43,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
43
43
|
import "highlight.js/lib/languages/typescript";
|
|
44
44
|
import "highlight.js/lib/languages/xml";
|
|
45
45
|
import "@ant-design/colors";
|
|
46
|
-
import "
|
|
47
|
-
import "@unocss/preset-typography";
|
|
48
|
-
import "unocss/preset-wind4";
|
|
46
|
+
import "unocss";
|
|
49
47
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
50
48
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
51
49
|
import "vee-validate";
|
|
@@ -107,12 +105,12 @@ function F(o) {
|
|
|
107
105
|
...e?.attr,
|
|
108
106
|
"v-model:value": [r, e?.name]
|
|
109
107
|
},
|
|
110
|
-
children: e?.attr?.options?.map((
|
|
108
|
+
children: e?.attr?.options?.map((m) => ({
|
|
111
109
|
tag: "n-radio",
|
|
112
110
|
attrs: {
|
|
113
|
-
value:
|
|
111
|
+
value: m.value
|
|
114
112
|
},
|
|
115
|
-
children: [
|
|
113
|
+
children: [m.label]
|
|
116
114
|
})) || []
|
|
117
115
|
}]
|
|
118
116
|
};
|
|
@@ -128,7 +126,7 @@ const R = /* @__PURE__ */ u({
|
|
|
128
126
|
setup(o, {
|
|
129
127
|
emit: e
|
|
130
128
|
}) {
|
|
131
|
-
const r = f(o, "value", e),
|
|
129
|
+
const r = f(o, "value", e), m = C(), {
|
|
132
130
|
t: i
|
|
133
131
|
} = s();
|
|
134
132
|
return () => {
|
|
@@ -137,7 +135,7 @@ const R = /* @__PURE__ */ u({
|
|
|
137
135
|
class: ""
|
|
138
136
|
}, [t(V, {
|
|
139
137
|
value: o.value,
|
|
140
|
-
"onUpdate:value": (
|
|
138
|
+
"onUpdate:value": (l) => o.value = l
|
|
141
139
|
}, null), t(p, {
|
|
142
140
|
title: i("components.formEditor.common.componentConfig")
|
|
143
141
|
}, {
|
|
@@ -146,7 +144,7 @@ const R = /* @__PURE__ */ u({
|
|
|
146
144
|
}, {
|
|
147
145
|
default: () => [t(v, {
|
|
148
146
|
value: r.value.attr.defaultValue,
|
|
149
|
-
"onUpdate:value": (
|
|
147
|
+
"onUpdate:value": (l) => r.value.attr.defaultValue = l
|
|
150
148
|
}, null)]
|
|
151
149
|
}), t(n, {
|
|
152
150
|
label: i("components.formEditor.common.disabled"),
|
|
@@ -156,7 +154,7 @@ const R = /* @__PURE__ */ u({
|
|
|
156
154
|
class: "flex flex-1 justify-end"
|
|
157
155
|
}, [t(b, {
|
|
158
156
|
value: r.value.attr.disabled,
|
|
159
|
-
"onUpdate:value": (
|
|
157
|
+
"onUpdate:value": (l) => r.value.attr.disabled = l
|
|
160
158
|
}, null)])]
|
|
161
159
|
})]
|
|
162
160
|
}), t(p, {
|
|
@@ -169,14 +167,14 @@ const R = /* @__PURE__ */ u({
|
|
|
169
167
|
class: "i-tabler:edit"
|
|
170
168
|
}, null),
|
|
171
169
|
onClick: () => {
|
|
172
|
-
|
|
170
|
+
m.show({
|
|
173
171
|
title: i("components.formEditor.common.dataConfig"),
|
|
174
172
|
component: () => import("../base/options.js"),
|
|
175
173
|
componentProps: {
|
|
176
174
|
desc: i("components.formEditor.radio.configDesc"),
|
|
177
175
|
value: r.value.attr.options,
|
|
178
|
-
onChange: (
|
|
179
|
-
r.value.attr.options =
|
|
176
|
+
onChange: (l) => {
|
|
177
|
+
r.value.attr.options = l;
|
|
180
178
|
},
|
|
181
179
|
options: [{
|
|
182
180
|
label: i("components.formEditor.common.optionLabel"),
|
|
@@ -193,12 +191,12 @@ const R = /* @__PURE__ */ u({
|
|
|
193
191
|
})]
|
|
194
192
|
}), t(h, {
|
|
195
193
|
value: r.value.rule,
|
|
196
|
-
"onUpdate:value": (
|
|
194
|
+
"onUpdate:value": (l) => r.value.rule = l
|
|
197
195
|
}, null)]);
|
|
198
196
|
};
|
|
199
197
|
}
|
|
200
198
|
});
|
|
201
|
-
function
|
|
199
|
+
function Bo(o) {
|
|
202
200
|
return {
|
|
203
201
|
name: "dux-radio",
|
|
204
202
|
icon: "i-tabler:circle-dot",
|
|
@@ -225,5 +223,5 @@ function Jo(o) {
|
|
|
225
223
|
};
|
|
226
224
|
}
|
|
227
225
|
export {
|
|
228
|
-
|
|
226
|
+
Bo as duxFormEditorRadio
|
|
229
227
|
};
|
|
@@ -23,7 +23,7 @@ import "lodash-es";
|
|
|
23
23
|
import "vue-draggable-plus";
|
|
24
24
|
import "aieditor";
|
|
25
25
|
import "@vue-flow/core";
|
|
26
|
-
import { DuxFormItem as
|
|
26
|
+
import { DuxFormItem as m } from "../../form/formItem.js";
|
|
27
27
|
import "@vee-validate/i18n";
|
|
28
28
|
import "colorizr";
|
|
29
29
|
import "echarts";
|
|
@@ -42,9 +42,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
42
42
|
import "highlight.js/lib/languages/typescript";
|
|
43
43
|
import "highlight.js/lib/languages/xml";
|
|
44
44
|
import "@ant-design/colors";
|
|
45
|
-
import "
|
|
46
|
-
import "@unocss/preset-typography";
|
|
47
|
-
import "unocss/preset-wind4";
|
|
45
|
+
import "unocss";
|
|
48
46
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
49
47
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
50
48
|
import "vee-validate";
|
|
@@ -70,7 +68,7 @@ const g = /* @__PURE__ */ p({
|
|
|
70
68
|
options: Object
|
|
71
69
|
},
|
|
72
70
|
setup(o) {
|
|
73
|
-
return () => t(
|
|
71
|
+
return () => t(m, {
|
|
74
72
|
label: o.options?.label,
|
|
75
73
|
description: o.options?.desc
|
|
76
74
|
}, {
|
|
@@ -110,7 +108,7 @@ const F = /* @__PURE__ */ p({
|
|
|
110
108
|
emit: i
|
|
111
109
|
}) {
|
|
112
110
|
const e = u(o, "value", i), {
|
|
113
|
-
t:
|
|
111
|
+
t: l
|
|
114
112
|
} = n();
|
|
115
113
|
return () => t("div", {
|
|
116
114
|
class: ""
|
|
@@ -118,36 +116,36 @@ const F = /* @__PURE__ */ p({
|
|
|
118
116
|
value: o.value,
|
|
119
117
|
"onUpdate:value": (r) => o.value = r
|
|
120
118
|
}, null), t(v, {
|
|
121
|
-
title:
|
|
119
|
+
title: l("components.formEditor.config")
|
|
122
120
|
}, {
|
|
123
|
-
default: () => [t(
|
|
124
|
-
label:
|
|
121
|
+
default: () => [t(m, {
|
|
122
|
+
label: l("components.formEditor.region.Path")
|
|
125
123
|
}, {
|
|
126
124
|
default: () => [t(a, {
|
|
127
125
|
value: e.value.attr.path,
|
|
128
126
|
"onUpdate:value": (r) => e.value.attr.path = r
|
|
129
127
|
}, null)]
|
|
130
|
-
}), t(
|
|
131
|
-
label:
|
|
128
|
+
}), t(m, {
|
|
129
|
+
label: l("components.formEditor.region.labelField")
|
|
132
130
|
}, {
|
|
133
131
|
default: () => [t(a, {
|
|
134
132
|
value: e.value.attr.labelField,
|
|
135
133
|
"onUpdate:value": (r) => e.value.attr.labelField = r
|
|
136
134
|
}, null)]
|
|
137
|
-
}), t(
|
|
138
|
-
label:
|
|
135
|
+
}), t(m, {
|
|
136
|
+
label: l("components.formEditor.region.valueField")
|
|
139
137
|
}, {
|
|
140
138
|
default: () => [t(a, {
|
|
141
139
|
value: e.value.attr.valueField,
|
|
142
140
|
"onUpdate:value": (r) => e.value.attr.valueField = r
|
|
143
141
|
}, null)]
|
|
144
|
-
}), t(
|
|
145
|
-
label:
|
|
142
|
+
}), t(m, {
|
|
143
|
+
label: l("components.formEditor.common.status")
|
|
146
144
|
}, {
|
|
147
145
|
default: () => [t("div", {
|
|
148
146
|
class: "w-full grid grid-cols-2"
|
|
149
147
|
}, [t(d, {
|
|
150
|
-
label:
|
|
148
|
+
label: l("components.formEditor.common.disabled"),
|
|
151
149
|
checked: e.value.attr.disabled,
|
|
152
150
|
"onUpdate:checked": (r) => e.value.attr.disabled = r
|
|
153
151
|
}, null)])]
|
|
@@ -158,7 +156,7 @@ const F = /* @__PURE__ */ p({
|
|
|
158
156
|
}, null)]);
|
|
159
157
|
}
|
|
160
158
|
});
|
|
161
|
-
function
|
|
159
|
+
function Nt(o) {
|
|
162
160
|
return {
|
|
163
161
|
name: "region",
|
|
164
162
|
icon: "i-tabler:directions",
|
|
@@ -180,5 +178,5 @@ function Ot(o) {
|
|
|
180
178
|
};
|
|
181
179
|
}
|
|
182
180
|
export {
|
|
183
|
-
|
|
181
|
+
Nt as duxFormEditorRegion
|
|
184
182
|
};
|
|
@@ -43,9 +43,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
43
43
|
import "highlight.js/lib/languages/typescript";
|
|
44
44
|
import "highlight.js/lib/languages/xml";
|
|
45
45
|
import "@ant-design/colors";
|
|
46
|
-
import "
|
|
47
|
-
import "@unocss/preset-typography";
|
|
48
|
-
import "unocss/preset-wind4";
|
|
46
|
+
import "unocss";
|
|
49
47
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
50
48
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
51
49
|
import "vee-validate";
|
|
@@ -195,7 +193,7 @@ const F = /* @__PURE__ */ u({
|
|
|
195
193
|
};
|
|
196
194
|
}
|
|
197
195
|
});
|
|
198
|
-
function
|
|
196
|
+
function wt(o) {
|
|
199
197
|
return {
|
|
200
198
|
name: "dux-select",
|
|
201
199
|
icon: "i-tabler:select",
|
|
@@ -216,5 +214,5 @@ function _t(o) {
|
|
|
216
214
|
};
|
|
217
215
|
}
|
|
218
216
|
export {
|
|
219
|
-
|
|
217
|
+
wt as duxFormEditorSelect
|
|
220
218
|
};
|
|
@@ -43,9 +43,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
43
43
|
import "highlight.js/lib/languages/typescript";
|
|
44
44
|
import "highlight.js/lib/languages/xml";
|
|
45
45
|
import "@ant-design/colors";
|
|
46
|
-
import "
|
|
47
|
-
import "@unocss/preset-typography";
|
|
48
|
-
import "unocss/preset-wind4";
|
|
46
|
+
import "unocss";
|
|
49
47
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
50
48
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
51
49
|
import "vee-validate";
|
|
@@ -203,7 +201,7 @@ const y = /* @__PURE__ */ u({
|
|
|
203
201
|
}, null)]);
|
|
204
202
|
}
|
|
205
203
|
});
|
|
206
|
-
function
|
|
204
|
+
function It(o) {
|
|
207
205
|
return {
|
|
208
206
|
name: "select-async",
|
|
209
207
|
icon: "i-tabler:select",
|
|
@@ -227,5 +225,5 @@ function Ct(o) {
|
|
|
227
225
|
};
|
|
228
226
|
}
|
|
229
227
|
export {
|
|
230
|
-
|
|
228
|
+
It as duxFormEditorSelectAsync
|
|
231
229
|
};
|
|
@@ -42,9 +42,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
42
42
|
import "highlight.js/lib/languages/typescript";
|
|
43
43
|
import "highlight.js/lib/languages/xml";
|
|
44
44
|
import "@ant-design/colors";
|
|
45
|
-
import "
|
|
46
|
-
import "@unocss/preset-typography";
|
|
47
|
-
import "unocss/preset-wind4";
|
|
45
|
+
import "unocss";
|
|
48
46
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
49
47
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
50
48
|
import "vee-validate";
|
|
@@ -159,7 +157,7 @@ const E = /* @__PURE__ */ n({
|
|
|
159
157
|
}, null)]);
|
|
160
158
|
}
|
|
161
159
|
});
|
|
162
|
-
function
|
|
160
|
+
function ht(o) {
|
|
163
161
|
return {
|
|
164
162
|
name: "sider",
|
|
165
163
|
icon: "i-tabler:separator",
|
|
@@ -181,5 +179,5 @@ function Ot(o) {
|
|
|
181
179
|
};
|
|
182
180
|
}
|
|
183
181
|
export {
|
|
184
|
-
|
|
182
|
+
ht as duxFormEditorSider
|
|
185
183
|
};
|
|
@@ -42,9 +42,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
42
42
|
import "highlight.js/lib/languages/typescript";
|
|
43
43
|
import "highlight.js/lib/languages/xml";
|
|
44
44
|
import "@ant-design/colors";
|
|
45
|
-
import "
|
|
46
|
-
import "@unocss/preset-typography";
|
|
47
|
-
import "unocss/preset-wind4";
|
|
45
|
+
import "unocss";
|
|
48
46
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
49
47
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
50
48
|
import "vee-validate";
|
|
@@ -79,20 +77,20 @@ const f = /* @__PURE__ */ a({
|
|
|
79
77
|
});
|
|
80
78
|
function v(o) {
|
|
81
79
|
const {
|
|
82
|
-
options:
|
|
83
|
-
model:
|
|
80
|
+
options: e,
|
|
81
|
+
model: r
|
|
84
82
|
} = o || {};
|
|
85
83
|
return {
|
|
86
84
|
tag: "dux-form-item",
|
|
87
85
|
attrs: {
|
|
88
|
-
label:
|
|
89
|
-
description:
|
|
86
|
+
label: e?.label,
|
|
87
|
+
description: e?.desc
|
|
90
88
|
},
|
|
91
89
|
children: [{
|
|
92
90
|
tag: "n-switch",
|
|
93
91
|
attrs: {
|
|
94
|
-
...
|
|
95
|
-
"v-model:value": [
|
|
92
|
+
...e?.attr,
|
|
93
|
+
"v-model:value": [r, e?.name]
|
|
96
94
|
}
|
|
97
95
|
}]
|
|
98
96
|
};
|
|
@@ -106,9 +104,9 @@ const b = /* @__PURE__ */ a({
|
|
|
106
104
|
}
|
|
107
105
|
},
|
|
108
106
|
setup(o, {
|
|
109
|
-
emit:
|
|
107
|
+
emit: e
|
|
110
108
|
}) {
|
|
111
|
-
const
|
|
109
|
+
const r = u(o, "value", e), {
|
|
112
110
|
t: m
|
|
113
111
|
} = n();
|
|
114
112
|
return () => t("div", {
|
|
@@ -126,8 +124,8 @@ const b = /* @__PURE__ */ a({
|
|
|
126
124
|
default: () => [t("div", {
|
|
127
125
|
class: "flex flex-1 justify-end"
|
|
128
126
|
}, [t(l, {
|
|
129
|
-
value:
|
|
130
|
-
"onUpdate:value": (i) =>
|
|
127
|
+
value: r.value.attr.disabled,
|
|
128
|
+
"onUpdate:value": (i) => r.value.attr.disabled = i
|
|
131
129
|
}, null)])]
|
|
132
130
|
}), t(p, {
|
|
133
131
|
label: m("components.formEditor.common.defaultValue"),
|
|
@@ -136,24 +134,24 @@ const b = /* @__PURE__ */ a({
|
|
|
136
134
|
default: () => [t("div", {
|
|
137
135
|
class: "flex flex-1 justify-end"
|
|
138
136
|
}, [t(l, {
|
|
139
|
-
value:
|
|
140
|
-
"onUpdate:value": (i) =>
|
|
137
|
+
value: r.value.attr.defaultValue,
|
|
138
|
+
"onUpdate:value": (i) => r.value.attr.defaultValue = i
|
|
141
139
|
}, null)])]
|
|
142
140
|
})]
|
|
143
141
|
}), t(s, {
|
|
144
|
-
value:
|
|
145
|
-
"onUpdate:value": (i) =>
|
|
142
|
+
value: r.value.rule,
|
|
143
|
+
"onUpdate:value": (i) => r.value.rule = i
|
|
146
144
|
}, null)]);
|
|
147
145
|
}
|
|
148
146
|
});
|
|
149
|
-
function
|
|
147
|
+
function Ct(o) {
|
|
150
148
|
return {
|
|
151
149
|
name: "dux-switch",
|
|
152
150
|
icon: "i-tabler:toggle-left",
|
|
153
151
|
label: o("components.formEditor.switch.label"),
|
|
154
152
|
group: "form",
|
|
155
|
-
component: (
|
|
156
|
-
setting: (
|
|
153
|
+
component: (e) => t(f, e, null),
|
|
154
|
+
setting: (e) => t(b, e, null),
|
|
157
155
|
settingDefault: {
|
|
158
156
|
label: o("components.formEditor.switch.label"),
|
|
159
157
|
name: "switch",
|
|
@@ -166,5 +164,5 @@ function Ut(o) {
|
|
|
166
164
|
};
|
|
167
165
|
}
|
|
168
166
|
export {
|
|
169
|
-
|
|
167
|
+
Ct as duxFormEditorSwitch
|
|
170
168
|
};
|
|
@@ -42,9 +42,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
42
42
|
import "highlight.js/lib/languages/typescript";
|
|
43
43
|
import "highlight.js/lib/languages/xml";
|
|
44
44
|
import "@ant-design/colors";
|
|
45
|
-
import "
|
|
46
|
-
import "@unocss/preset-typography";
|
|
47
|
-
import "unocss/preset-wind4";
|
|
45
|
+
import "unocss";
|
|
48
46
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
49
47
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
50
48
|
import "vee-validate";
|
|
@@ -164,7 +162,7 @@ const E = /* @__PURE__ */ p({
|
|
|
164
162
|
}, null)]);
|
|
165
163
|
}
|
|
166
164
|
});
|
|
167
|
-
function
|
|
165
|
+
function Nt(o) {
|
|
168
166
|
return {
|
|
169
167
|
name: "dux-time",
|
|
170
168
|
icon: "i-tabler:clock",
|
|
@@ -184,5 +182,5 @@ function St(o) {
|
|
|
184
182
|
};
|
|
185
183
|
}
|
|
186
184
|
export {
|
|
187
|
-
|
|
185
|
+
Nt as duxFormEditorTime
|
|
188
186
|
};
|
|
@@ -43,9 +43,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
43
43
|
import "highlight.js/lib/languages/typescript";
|
|
44
44
|
import "highlight.js/lib/languages/xml";
|
|
45
45
|
import "@ant-design/colors";
|
|
46
|
-
import "
|
|
47
|
-
import "@unocss/preset-typography";
|
|
48
|
-
import "unocss/preset-wind4";
|
|
46
|
+
import "unocss";
|
|
49
47
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
50
48
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
51
49
|
import "vee-validate";
|
|
@@ -67,20 +65,20 @@ const b = /* @__PURE__ */ u({
|
|
|
67
65
|
props: {
|
|
68
66
|
options: Object
|
|
69
67
|
},
|
|
70
|
-
setup(
|
|
68
|
+
setup(o) {
|
|
71
69
|
return () => t(i, {
|
|
72
|
-
label:
|
|
73
|
-
description:
|
|
70
|
+
label: o.options?.label,
|
|
71
|
+
description: o.options?.desc
|
|
74
72
|
}, {
|
|
75
|
-
default: () => [t(s,
|
|
73
|
+
default: () => [t(s, o.options?.attr, null)]
|
|
76
74
|
});
|
|
77
75
|
}
|
|
78
76
|
});
|
|
79
|
-
function F(
|
|
77
|
+
function F(o) {
|
|
80
78
|
const {
|
|
81
79
|
options: r,
|
|
82
80
|
model: e
|
|
83
|
-
} =
|
|
81
|
+
} = o || {};
|
|
84
82
|
return {
|
|
85
83
|
tag: "dux-form-item",
|
|
86
84
|
attrs: {
|
|
@@ -103,17 +101,17 @@ const E = /* @__PURE__ */ u({
|
|
|
103
101
|
default: {}
|
|
104
102
|
}
|
|
105
103
|
},
|
|
106
|
-
setup(
|
|
104
|
+
setup(o, {
|
|
107
105
|
emit: r
|
|
108
106
|
}) {
|
|
109
|
-
const e = c(
|
|
107
|
+
const e = c(o, "value", r), {
|
|
110
108
|
t: a
|
|
111
109
|
} = d();
|
|
112
110
|
return () => t("div", {
|
|
113
111
|
class: ""
|
|
114
112
|
}, [t(f, {
|
|
115
|
-
value:
|
|
116
|
-
"onUpdate:value": (
|
|
113
|
+
value: o.value,
|
|
114
|
+
"onUpdate:value": (l) => o.value = l
|
|
117
115
|
}, null), t(p, {
|
|
118
116
|
title: a("components.formEditor.config")
|
|
119
117
|
}, {
|
|
@@ -125,7 +123,7 @@ const E = /* @__PURE__ */ u({
|
|
|
125
123
|
class: "flex flex-1 justify-end"
|
|
126
124
|
}, [t(n, {
|
|
127
125
|
value: e.value.attr.disabled,
|
|
128
|
-
"onUpdate:value": (
|
|
126
|
+
"onUpdate:value": (l) => e.value.attr.disabled = l
|
|
129
127
|
}, null)])]
|
|
130
128
|
}), t(i, {
|
|
131
129
|
label: a("components.formEditor.tree.disabled"),
|
|
@@ -135,7 +133,7 @@ const E = /* @__PURE__ */ u({
|
|
|
135
133
|
class: "flex flex-1 justify-end"
|
|
136
134
|
}, [t(n, {
|
|
137
135
|
value: e.value.attr.clearable,
|
|
138
|
-
"onUpdate:value": (
|
|
136
|
+
"onUpdate:value": (l) => e.value.attr.clearable = l
|
|
139
137
|
}, null)])]
|
|
140
138
|
})]
|
|
141
139
|
}), t(p, {
|
|
@@ -146,53 +144,53 @@ const E = /* @__PURE__ */ u({
|
|
|
146
144
|
}, {
|
|
147
145
|
default: () => [t(m, {
|
|
148
146
|
value: e.value.attr.path,
|
|
149
|
-
"onUpdate:value": (
|
|
147
|
+
"onUpdate:value": (l) => e.value.attr.path = l
|
|
150
148
|
}, null)]
|
|
151
149
|
}), t(i, {
|
|
152
150
|
label: a("components.formEditor.selectAsync.labelField")
|
|
153
151
|
}, {
|
|
154
152
|
default: () => [t(m, {
|
|
155
153
|
value: e.value.attr.labelField,
|
|
156
|
-
"onUpdate:value": (
|
|
154
|
+
"onUpdate:value": (l) => e.value.attr.labelField = l
|
|
157
155
|
}, null)]
|
|
158
156
|
}), t(i, {
|
|
159
157
|
label: a("components.formEditor.selectAsync.valueField")
|
|
160
158
|
}, {
|
|
161
159
|
default: () => [t(m, {
|
|
162
160
|
value: e.value.attr.valueField,
|
|
163
|
-
"onUpdate:value": (
|
|
161
|
+
"onUpdate:value": (l) => e.value.attr.valueField = l
|
|
164
162
|
}, null)]
|
|
165
163
|
}), t(i, {
|
|
166
164
|
label: a("components.formEditor.selectAsync.imageField")
|
|
167
165
|
}, {
|
|
168
166
|
default: () => [t(m, {
|
|
169
167
|
value: e.value.attr.imageField,
|
|
170
|
-
"onUpdate:value": (
|
|
168
|
+
"onUpdate:value": (l) => e.value.attr.imageField = l
|
|
171
169
|
}, null)]
|
|
172
170
|
}), t(i, {
|
|
173
171
|
label: a("components.formEditor.selectAsync.descField")
|
|
174
172
|
}, {
|
|
175
173
|
default: () => [t(m, {
|
|
176
174
|
value: e.value.attr.descField,
|
|
177
|
-
"onUpdate:value": (
|
|
175
|
+
"onUpdate:value": (l) => e.value.attr.descField = l
|
|
178
176
|
}, null)]
|
|
179
177
|
})]
|
|
180
178
|
}), t(v, {
|
|
181
179
|
value: e.value.rule,
|
|
182
|
-
"onUpdate:value": (
|
|
180
|
+
"onUpdate:value": (l) => e.value.rule = l
|
|
183
181
|
}, null)]);
|
|
184
182
|
}
|
|
185
183
|
});
|
|
186
|
-
function
|
|
184
|
+
function Ct(o) {
|
|
187
185
|
return {
|
|
188
186
|
name: "transfer-async",
|
|
189
187
|
icon: "i-tabler:transfer",
|
|
190
|
-
label:
|
|
188
|
+
label: o("components.formEditor.transferAsync.name"),
|
|
191
189
|
group: "async",
|
|
192
190
|
component: (r) => t(b, r, null),
|
|
193
191
|
setting: (r) => t(E, r, null),
|
|
194
192
|
settingDefault: {
|
|
195
|
-
label:
|
|
193
|
+
label: o("components.formEditor.transferAsync.name"),
|
|
196
194
|
name: "transferAsync",
|
|
197
195
|
attr: {
|
|
198
196
|
path: "",
|
|
@@ -206,5 +204,5 @@ function St(l) {
|
|
|
206
204
|
};
|
|
207
205
|
}
|
|
208
206
|
export {
|
|
209
|
-
|
|
207
|
+
Ct as duxFormEditorTransferAsync
|
|
210
208
|
};
|
|
@@ -43,9 +43,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
43
43
|
import "highlight.js/lib/languages/typescript";
|
|
44
44
|
import "highlight.js/lib/languages/xml";
|
|
45
45
|
import "@ant-design/colors";
|
|
46
|
-
import "
|
|
47
|
-
import "@unocss/preset-typography";
|
|
48
|
-
import "unocss/preset-wind4";
|
|
46
|
+
import "unocss";
|
|
49
47
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
50
48
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
51
49
|
import "vee-validate";
|
|
@@ -199,7 +197,7 @@ const N = /* @__PURE__ */ u({
|
|
|
199
197
|
};
|
|
200
198
|
}
|
|
201
199
|
});
|
|
202
|
-
function
|
|
200
|
+
function kt(e) {
|
|
203
201
|
return {
|
|
204
202
|
name: "tree-select",
|
|
205
203
|
icon: "i-tabler:binary-tree",
|
|
@@ -220,5 +218,5 @@ function Mt(e) {
|
|
|
220
218
|
};
|
|
221
219
|
}
|
|
222
220
|
export {
|
|
223
|
-
|
|
221
|
+
kt as duxFormEditorTreeSelect
|
|
224
222
|
};
|