@duxweb/dvha-pro 1.0.31 → 1.0.33
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/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 -0
- 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/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/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/echart.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/index.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/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 +2 -1
- package/dist/esm/component.js +31 -31
- package/dist/esm/components/chart/echart.js +16 -2
- package/dist/esm/components/crop/imageCrop.js +26 -12
- package/dist/esm/components/data/dynamicSelect.js +34 -20
- package/dist/esm/components/data/selectModal.js +41 -27
- package/dist/esm/components/designEditor/components/grid.js +39 -25
- package/dist/esm/components/designEditor/editor/setting.js +36 -22
- package/dist/esm/components/form/drawerForm.js +32 -18
- package/dist/esm/components/form/modalForm.js +31 -17
- package/dist/esm/components/form/pageForm.js +40 -30
- package/dist/esm/components/form/pageTabForm.js +159 -0
- package/dist/esm/components/form/settingForm.js +32 -18
- package/dist/esm/components/formEditor/base/base.js +29 -15
- package/dist/esm/components/formEditor/base/setting.js +21 -7
- package/dist/esm/components/formEditor/components/cascader.js +65 -51
- package/dist/esm/components/formEditor/components/cascaderAsync.js +95 -81
- package/dist/esm/components/formEditor/components/checkbox.js +43 -29
- package/dist/esm/components/formEditor/components/color.js +34 -20
- package/dist/esm/components/formEditor/components/date.js +51 -37
- package/dist/esm/components/formEditor/components/dynamicInput.js +42 -28
- package/dist/esm/components/formEditor/components/dynamicTags.js +39 -25
- package/dist/esm/components/formEditor/components/editor.js +23 -9
- package/dist/esm/components/formEditor/components/input.js +66 -52
- package/dist/esm/components/formEditor/components/inputNumber.js +37 -23
- package/dist/esm/components/formEditor/components/mentionAsync.js +60 -46
- package/dist/esm/components/formEditor/components/radio.js +28 -14
- package/dist/esm/components/formEditor/components/region.js +37 -23
- package/dist/esm/components/formEditor/components/select.js +16 -2
- package/dist/esm/components/formEditor/components/selectAsync.js +72 -58
- package/dist/esm/components/formEditor/components/sider.js +40 -26
- package/dist/esm/components/formEditor/components/switch.js +33 -19
- package/dist/esm/components/formEditor/components/time.js +60 -46
- package/dist/esm/components/formEditor/components/transferAsync.js +49 -35
- package/dist/esm/components/formEditor/components/treeSelect.js +54 -40
- package/dist/esm/components/formEditor/components/treeSelectAsync.js +74 -60
- package/dist/esm/components/formEditor/editor.js +16 -2
- package/dist/esm/components/formEditor/renderer.js +28 -14
- package/dist/esm/components/icon/icon.js +23 -9
- package/dist/esm/components/layout/list.js +69 -55
- package/dist/esm/components/layout/table.js +101 -85
- package/dist/esm/components/level/level.js +37 -23
- package/dist/esm/components/posterEditor/pages/RightPanel.js +46 -32
- package/dist/esm/components/posterEditor/posterEditor.js +26 -12
- package/dist/esm/components/table/table.js +21 -7
- package/dist/esm/components/upload/file.js +20 -4
- package/dist/esm/components/upload/image.js +42 -28
- package/dist/esm/components/upload/manage/item.js +24 -10
- package/dist/esm/components/upload/manager.js +16 -2
- package/dist/esm/config/echart.js +1 -1
- package/dist/esm/dvha-pro.css +1 -1
- package/dist/esm/hooks/dialog.js +16 -2
- package/dist/esm/hooks/drawer.js +16 -2
- package/dist/esm/hooks/modal.js +16 -2
- package/dist/esm/hooks/table/image.js +20 -6
- package/dist/esm/hooks/table/media.js +20 -6
- package/dist/esm/index.js +130 -128
- package/dist/esm/pages/layout/global.js +52 -37
- package/dist/esm/pages/layout/page.js +26 -12
- package/dist/esm/pages/login.js +33 -19
- package/dist/esm/pages/menu/avatar.js +46 -32
- package/dist/esm/pages/menu/button.js +22 -8
- package/dist/esm/pages/menu/cmd.js +51 -37
- package/dist/esm/pages/menu/main.js +42 -28
- package/dist/esm/pages/menu/mobile.js +16 -2
- package/dist/esm/pages/page404.js +14 -0
- package/dist/esm/pages/pageStatus.js +18 -4
- package/dist/esm/theme/uno.css.js +2 -1
- package/dist/types/components/data/selectModal.d.ts +1 -1
- package/dist/types/components/form/index.d.ts +1 -0
- package/dist/types/components/form/pageForm.d.ts +0 -9
- package/dist/types/components/form/pageTabForm.d.ts +63 -0
- package/dist/types/components/layout/table.d.ts +2 -2
- package/dist/types/components/table/tablePage.d.ts +2 -2
- package/package.json +5 -3
|
@@ -23,10 +23,24 @@ import "jinrishici";
|
|
|
23
23
|
import "lodash-es";
|
|
24
24
|
import "vue-draggable-plus";
|
|
25
25
|
import "aieditor";
|
|
26
|
-
import { DuxFormItem as
|
|
26
|
+
import { DuxFormItem as n } from "../../form/formItem.js";
|
|
27
27
|
import "@vee-validate/i18n";
|
|
28
28
|
import "colorizr";
|
|
29
29
|
import "echarts";
|
|
30
|
+
import "highlight.js/lib/core";
|
|
31
|
+
import "highlight.js/lib/languages/bash";
|
|
32
|
+
import "highlight.js/lib/languages/css";
|
|
33
|
+
import "highlight.js/lib/languages/go";
|
|
34
|
+
import "highlight.js/lib/languages/java";
|
|
35
|
+
import "highlight.js/lib/languages/javascript";
|
|
36
|
+
import "highlight.js/lib/languages/json";
|
|
37
|
+
import "highlight.js/lib/languages/markdown";
|
|
38
|
+
import "highlight.js/lib/languages/php";
|
|
39
|
+
import "highlight.js/lib/languages/python";
|
|
40
|
+
import "highlight.js/lib/languages/shell";
|
|
41
|
+
import "highlight.js/lib/languages/sql";
|
|
42
|
+
import "highlight.js/lib/languages/typescript";
|
|
43
|
+
import "highlight.js/lib/languages/xml";
|
|
30
44
|
import "@ant-design/colors";
|
|
31
45
|
import "@unocss/preset-icons/browser";
|
|
32
46
|
import "@unocss/preset-typography";
|
|
@@ -56,7 +70,7 @@ const N = /* @__PURE__ */ u({
|
|
|
56
70
|
options: Object
|
|
57
71
|
},
|
|
58
72
|
setup(o) {
|
|
59
|
-
return () => t(
|
|
73
|
+
return () => t(n, {
|
|
60
74
|
label: o.options?.label,
|
|
61
75
|
description: o.options?.desc
|
|
62
76
|
}, {
|
|
@@ -90,12 +104,12 @@ function F(o) {
|
|
|
90
104
|
...e?.attr,
|
|
91
105
|
"v-model:value": [r, e?.name]
|
|
92
106
|
},
|
|
93
|
-
children: e?.attr?.options?.map((
|
|
107
|
+
children: e?.attr?.options?.map((m) => ({
|
|
94
108
|
tag: "n-radio",
|
|
95
109
|
attrs: {
|
|
96
|
-
value:
|
|
110
|
+
value: m.value
|
|
97
111
|
},
|
|
98
|
-
children: [
|
|
112
|
+
children: [m.label]
|
|
99
113
|
})) || []
|
|
100
114
|
}]
|
|
101
115
|
};
|
|
@@ -111,11 +125,11 @@ const R = /* @__PURE__ */ u({
|
|
|
111
125
|
setup(o, {
|
|
112
126
|
emit: e
|
|
113
127
|
}) {
|
|
114
|
-
const r = f(o, "value", e),
|
|
128
|
+
const r = f(o, "value", e), m = C(), {
|
|
115
129
|
t: i
|
|
116
130
|
} = s();
|
|
117
131
|
return () => {
|
|
118
|
-
let
|
|
132
|
+
let a;
|
|
119
133
|
return t("div", {
|
|
120
134
|
class: ""
|
|
121
135
|
}, [t(V, {
|
|
@@ -124,14 +138,14 @@ const R = /* @__PURE__ */ u({
|
|
|
124
138
|
}, null), t(p, {
|
|
125
139
|
title: i("components.formEditor.common.componentConfig")
|
|
126
140
|
}, {
|
|
127
|
-
default: () => [t(
|
|
141
|
+
default: () => [t(n, {
|
|
128
142
|
label: i("components.formEditor.common.defaultValue")
|
|
129
143
|
}, {
|
|
130
144
|
default: () => [t(v, {
|
|
131
145
|
value: r.value.attr.defaultValue,
|
|
132
146
|
"onUpdate:value": (l) => r.value.attr.defaultValue = l
|
|
133
147
|
}, null)]
|
|
134
|
-
}), t(
|
|
148
|
+
}), t(n, {
|
|
135
149
|
label: i("components.formEditor.common.disabled"),
|
|
136
150
|
labelPlacement: "left"
|
|
137
151
|
}, {
|
|
@@ -152,7 +166,7 @@ const R = /* @__PURE__ */ u({
|
|
|
152
166
|
class: "i-tabler:edit"
|
|
153
167
|
}, null),
|
|
154
168
|
onClick: () => {
|
|
155
|
-
|
|
169
|
+
m.show({
|
|
156
170
|
title: i("components.formEditor.common.dataConfig"),
|
|
157
171
|
component: () => import("../base/options.js"),
|
|
158
172
|
componentProps: {
|
|
@@ -171,8 +185,8 @@ const R = /* @__PURE__ */ u({
|
|
|
171
185
|
}
|
|
172
186
|
});
|
|
173
187
|
}
|
|
174
|
-
}, j(
|
|
175
|
-
default: () => [
|
|
188
|
+
}, j(a = i("components.formEditor.common.dataConfig")) ? a : {
|
|
189
|
+
default: () => [a]
|
|
176
190
|
})]
|
|
177
191
|
}), t(h, {
|
|
178
192
|
value: r.value.rule,
|
|
@@ -181,7 +195,7 @@ const R = /* @__PURE__ */ u({
|
|
|
181
195
|
};
|
|
182
196
|
}
|
|
183
197
|
});
|
|
184
|
-
function
|
|
198
|
+
function _o(o) {
|
|
185
199
|
return {
|
|
186
200
|
name: "dux-radio",
|
|
187
201
|
icon: "i-tabler:circle-dot",
|
|
@@ -208,5 +222,5 @@ function jo(o) {
|
|
|
208
222
|
};
|
|
209
223
|
}
|
|
210
224
|
export {
|
|
211
|
-
|
|
225
|
+
_o as duxFormEditorRadio
|
|
212
226
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createVNode as t, defineComponent as
|
|
2
|
-
import { useI18n as
|
|
1
|
+
import { createVNode as t, defineComponent as p } from "vue";
|
|
2
|
+
import { useI18n as n } from "@duxweb/dvha-core";
|
|
3
3
|
import { useVModel as u } from "@vueuse/core";
|
|
4
4
|
import { NInput as a, NCheckbox as d } from "naive-ui";
|
|
5
5
|
import "clsx";
|
|
@@ -26,6 +26,20 @@ import { DuxFormItem as m } from "../../form/formItem.js";
|
|
|
26
26
|
import "@vee-validate/i18n";
|
|
27
27
|
import "colorizr";
|
|
28
28
|
import "echarts";
|
|
29
|
+
import "highlight.js/lib/core";
|
|
30
|
+
import "highlight.js/lib/languages/bash";
|
|
31
|
+
import "highlight.js/lib/languages/css";
|
|
32
|
+
import "highlight.js/lib/languages/go";
|
|
33
|
+
import "highlight.js/lib/languages/java";
|
|
34
|
+
import "highlight.js/lib/languages/javascript";
|
|
35
|
+
import "highlight.js/lib/languages/json";
|
|
36
|
+
import "highlight.js/lib/languages/markdown";
|
|
37
|
+
import "highlight.js/lib/languages/php";
|
|
38
|
+
import "highlight.js/lib/languages/python";
|
|
39
|
+
import "highlight.js/lib/languages/shell";
|
|
40
|
+
import "highlight.js/lib/languages/sql";
|
|
41
|
+
import "highlight.js/lib/languages/typescript";
|
|
42
|
+
import "highlight.js/lib/languages/xml";
|
|
29
43
|
import "@ant-design/colors";
|
|
30
44
|
import "@unocss/preset-icons/browser";
|
|
31
45
|
import "@unocss/preset-typography";
|
|
@@ -47,7 +61,7 @@ import "dayjs";
|
|
|
47
61
|
import "@tanstack/vue-query";
|
|
48
62
|
import "pinia";
|
|
49
63
|
import "short-unique-id";
|
|
50
|
-
const g = /* @__PURE__ */
|
|
64
|
+
const g = /* @__PURE__ */ p({
|
|
51
65
|
name: "FormRegion",
|
|
52
66
|
props: {
|
|
53
67
|
options: Object
|
|
@@ -63,25 +77,25 @@ const g = /* @__PURE__ */ n({
|
|
|
63
77
|
});
|
|
64
78
|
function b(o) {
|
|
65
79
|
const {
|
|
66
|
-
options:
|
|
80
|
+
options: i,
|
|
67
81
|
model: e
|
|
68
82
|
} = o || {};
|
|
69
83
|
return {
|
|
70
84
|
tag: "dux-form-item",
|
|
71
85
|
attrs: {
|
|
72
|
-
label:
|
|
73
|
-
description:
|
|
86
|
+
label: i?.label,
|
|
87
|
+
description: i?.desc
|
|
74
88
|
},
|
|
75
89
|
children: [{
|
|
76
90
|
tag: "dux-level",
|
|
77
91
|
attrs: {
|
|
78
|
-
...
|
|
79
|
-
"v-model:value": [e,
|
|
92
|
+
...i?.attr,
|
|
93
|
+
"v-model:value": [e, i?.name]
|
|
80
94
|
}
|
|
81
95
|
}]
|
|
82
96
|
};
|
|
83
97
|
}
|
|
84
|
-
const F = /* @__PURE__ */
|
|
98
|
+
const F = /* @__PURE__ */ p({
|
|
85
99
|
name: "FormRegionSetting",
|
|
86
100
|
props: {
|
|
87
101
|
value: {
|
|
@@ -90,47 +104,47 @@ const F = /* @__PURE__ */ n({
|
|
|
90
104
|
}
|
|
91
105
|
},
|
|
92
106
|
setup(o, {
|
|
93
|
-
emit:
|
|
107
|
+
emit: i
|
|
94
108
|
}) {
|
|
95
|
-
const e = u(o, "value",
|
|
96
|
-
t:
|
|
97
|
-
} =
|
|
109
|
+
const e = u(o, "value", i), {
|
|
110
|
+
t: l
|
|
111
|
+
} = n();
|
|
98
112
|
return () => t("div", {
|
|
99
113
|
class: ""
|
|
100
114
|
}, [t(s, {
|
|
101
115
|
value: o.value,
|
|
102
116
|
"onUpdate:value": (r) => o.value = r
|
|
103
117
|
}, null), t(v, {
|
|
104
|
-
title:
|
|
118
|
+
title: l("components.formEditor.config")
|
|
105
119
|
}, {
|
|
106
120
|
default: () => [t(m, {
|
|
107
|
-
label:
|
|
121
|
+
label: l("components.formEditor.region.Path")
|
|
108
122
|
}, {
|
|
109
123
|
default: () => [t(a, {
|
|
110
124
|
value: e.value.attr.path,
|
|
111
125
|
"onUpdate:value": (r) => e.value.attr.path = r
|
|
112
126
|
}, null)]
|
|
113
127
|
}), t(m, {
|
|
114
|
-
label:
|
|
128
|
+
label: l("components.formEditor.region.labelField")
|
|
115
129
|
}, {
|
|
116
130
|
default: () => [t(a, {
|
|
117
131
|
value: e.value.attr.labelField,
|
|
118
132
|
"onUpdate:value": (r) => e.value.attr.labelField = r
|
|
119
133
|
}, null)]
|
|
120
134
|
}), t(m, {
|
|
121
|
-
label:
|
|
135
|
+
label: l("components.formEditor.region.valueField")
|
|
122
136
|
}, {
|
|
123
137
|
default: () => [t(a, {
|
|
124
138
|
value: e.value.attr.valueField,
|
|
125
139
|
"onUpdate:value": (r) => e.value.attr.valueField = r
|
|
126
140
|
}, null)]
|
|
127
141
|
}), t(m, {
|
|
128
|
-
label:
|
|
142
|
+
label: l("components.formEditor.common.status")
|
|
129
143
|
}, {
|
|
130
144
|
default: () => [t("div", {
|
|
131
145
|
class: "w-full grid grid-cols-2"
|
|
132
146
|
}, [t(d, {
|
|
133
|
-
label:
|
|
147
|
+
label: l("components.formEditor.common.disabled"),
|
|
134
148
|
checked: e.value.attr.disabled,
|
|
135
149
|
"onUpdate:checked": (r) => e.value.attr.disabled = r
|
|
136
150
|
}, null)])]
|
|
@@ -141,14 +155,14 @@ const F = /* @__PURE__ */ n({
|
|
|
141
155
|
}, null)]);
|
|
142
156
|
}
|
|
143
157
|
});
|
|
144
|
-
function
|
|
158
|
+
function kt(o) {
|
|
145
159
|
return {
|
|
146
160
|
name: "region",
|
|
147
161
|
icon: "i-tabler:directions",
|
|
148
162
|
label: o("components.formEditor.region.name"),
|
|
149
163
|
group: "select",
|
|
150
|
-
component: (
|
|
151
|
-
setting: (
|
|
164
|
+
component: (i) => t(g, i, null),
|
|
165
|
+
setting: (i) => t(F, i, null),
|
|
152
166
|
settingDefault: {
|
|
153
167
|
label: o("components.formEditor.region.name"),
|
|
154
168
|
name: "region",
|
|
@@ -163,5 +177,5 @@ function vt(o) {
|
|
|
163
177
|
};
|
|
164
178
|
}
|
|
165
179
|
export {
|
|
166
|
-
|
|
180
|
+
kt as duxFormEditorRegion
|
|
167
181
|
};
|
|
@@ -27,6 +27,20 @@ import { DuxFormItem as i } from "../../form/formItem.js";
|
|
|
27
27
|
import "@vee-validate/i18n";
|
|
28
28
|
import "colorizr";
|
|
29
29
|
import "echarts";
|
|
30
|
+
import "highlight.js/lib/core";
|
|
31
|
+
import "highlight.js/lib/languages/bash";
|
|
32
|
+
import "highlight.js/lib/languages/css";
|
|
33
|
+
import "highlight.js/lib/languages/go";
|
|
34
|
+
import "highlight.js/lib/languages/java";
|
|
35
|
+
import "highlight.js/lib/languages/javascript";
|
|
36
|
+
import "highlight.js/lib/languages/json";
|
|
37
|
+
import "highlight.js/lib/languages/markdown";
|
|
38
|
+
import "highlight.js/lib/languages/php";
|
|
39
|
+
import "highlight.js/lib/languages/python";
|
|
40
|
+
import "highlight.js/lib/languages/shell";
|
|
41
|
+
import "highlight.js/lib/languages/sql";
|
|
42
|
+
import "highlight.js/lib/languages/typescript";
|
|
43
|
+
import "highlight.js/lib/languages/xml";
|
|
30
44
|
import "@ant-design/colors";
|
|
31
45
|
import "@unocss/preset-icons/browser";
|
|
32
46
|
import "@unocss/preset-typography";
|
|
@@ -178,7 +192,7 @@ const F = /* @__PURE__ */ u({
|
|
|
178
192
|
};
|
|
179
193
|
}
|
|
180
194
|
});
|
|
181
|
-
function
|
|
195
|
+
function kt(o) {
|
|
182
196
|
return {
|
|
183
197
|
name: "dux-select",
|
|
184
198
|
icon: "i-tabler:select",
|
|
@@ -199,5 +213,5 @@ function xt(o) {
|
|
|
199
213
|
};
|
|
200
214
|
}
|
|
201
215
|
export {
|
|
202
|
-
|
|
216
|
+
kt as duxFormEditorSelect
|
|
203
217
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { createVNode as
|
|
1
|
+
import { createVNode as t, defineComponent as p } 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";
|
|
5
|
-
import { NSwitch 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";
|
|
@@ -27,6 +27,20 @@ import { DuxFormItem as i } from "../../form/formItem.js";
|
|
|
27
27
|
import "@vee-validate/i18n";
|
|
28
28
|
import "colorizr";
|
|
29
29
|
import "echarts";
|
|
30
|
+
import "highlight.js/lib/core";
|
|
31
|
+
import "highlight.js/lib/languages/bash";
|
|
32
|
+
import "highlight.js/lib/languages/css";
|
|
33
|
+
import "highlight.js/lib/languages/go";
|
|
34
|
+
import "highlight.js/lib/languages/java";
|
|
35
|
+
import "highlight.js/lib/languages/javascript";
|
|
36
|
+
import "highlight.js/lib/languages/json";
|
|
37
|
+
import "highlight.js/lib/languages/markdown";
|
|
38
|
+
import "highlight.js/lib/languages/php";
|
|
39
|
+
import "highlight.js/lib/languages/python";
|
|
40
|
+
import "highlight.js/lib/languages/shell";
|
|
41
|
+
import "highlight.js/lib/languages/sql";
|
|
42
|
+
import "highlight.js/lib/languages/typescript";
|
|
43
|
+
import "highlight.js/lib/languages/xml";
|
|
30
44
|
import "@ant-design/colors";
|
|
31
45
|
import "@unocss/preset-icons/browser";
|
|
32
46
|
import "@unocss/preset-typography";
|
|
@@ -51,18 +65,18 @@ const b = /* @__PURE__ */ p({
|
|
|
51
65
|
options: Object
|
|
52
66
|
},
|
|
53
67
|
setup(o) {
|
|
54
|
-
return () =>
|
|
68
|
+
return () => t(i, {
|
|
55
69
|
label: o.options?.label,
|
|
56
70
|
description: o.options?.desc
|
|
57
71
|
}, {
|
|
58
|
-
default: () => [
|
|
72
|
+
default: () => [t(s, o.options?.attr, null)]
|
|
59
73
|
});
|
|
60
74
|
}
|
|
61
75
|
});
|
|
62
76
|
function F(o) {
|
|
63
77
|
const {
|
|
64
78
|
options: r,
|
|
65
|
-
model:
|
|
79
|
+
model: e
|
|
66
80
|
} = o || {};
|
|
67
81
|
return {
|
|
68
82
|
tag: "dux-form-item",
|
|
@@ -74,7 +88,7 @@ function F(o) {
|
|
|
74
88
|
tag: "dux-select",
|
|
75
89
|
attrs: {
|
|
76
90
|
...r?.attr,
|
|
77
|
-
"v-model:value": [
|
|
91
|
+
"v-model:value": [e, r?.name]
|
|
78
92
|
}
|
|
79
93
|
}]
|
|
80
94
|
};
|
|
@@ -89,111 +103,111 @@ const y = /* @__PURE__ */ p({
|
|
|
89
103
|
setup(o, {
|
|
90
104
|
emit: r
|
|
91
105
|
}) {
|
|
92
|
-
const
|
|
106
|
+
const e = c(o, "value", r), {
|
|
93
107
|
t: a
|
|
94
108
|
} = d();
|
|
95
|
-
return () =>
|
|
109
|
+
return () => t("div", {
|
|
96
110
|
class: ""
|
|
97
|
-
}, [
|
|
111
|
+
}, [t(v, {
|
|
98
112
|
value: o.value,
|
|
99
113
|
"onUpdate:value": (l) => o.value = l
|
|
100
|
-
}, null),
|
|
114
|
+
}, null), t(u, {
|
|
101
115
|
title: a("components.formEditor.config")
|
|
102
116
|
}, {
|
|
103
|
-
default: () => [
|
|
117
|
+
default: () => [t(i, {
|
|
104
118
|
label: a("components.formEditor.common.multiple"),
|
|
105
119
|
labelPlacement: "left"
|
|
106
120
|
}, {
|
|
107
|
-
default: () => [
|
|
121
|
+
default: () => [t("div", {
|
|
108
122
|
class: "flex flex-1 justify-end"
|
|
109
|
-
}, [
|
|
110
|
-
value:
|
|
111
|
-
"onUpdate:value": (l) =>
|
|
123
|
+
}, [t(n, {
|
|
124
|
+
value: e.value.attr.multiple,
|
|
125
|
+
"onUpdate:value": (l) => e.value.attr.multiple = l
|
|
112
126
|
}, null)])]
|
|
113
|
-
}),
|
|
127
|
+
}), t(i, {
|
|
114
128
|
label: a("components.formEditor.common.disabled"),
|
|
115
129
|
labelPlacement: "left"
|
|
116
130
|
}, {
|
|
117
|
-
default: () => [
|
|
131
|
+
default: () => [t("div", {
|
|
118
132
|
class: "flex flex-1 justify-end"
|
|
119
|
-
}, [
|
|
120
|
-
value:
|
|
121
|
-
"onUpdate:value": (l) =>
|
|
133
|
+
}, [t(n, {
|
|
134
|
+
value: e.value.attr.disabled,
|
|
135
|
+
"onUpdate:value": (l) => e.value.attr.disabled = l
|
|
122
136
|
}, null)])]
|
|
123
|
-
}),
|
|
137
|
+
}), t(i, {
|
|
124
138
|
label: a("components.formEditor.common.clearable"),
|
|
125
139
|
labelPlacement: "left"
|
|
126
140
|
}, {
|
|
127
|
-
default: () => [
|
|
141
|
+
default: () => [t("div", {
|
|
128
142
|
class: "flex flex-1 justify-end"
|
|
129
|
-
}, [
|
|
130
|
-
value:
|
|
131
|
-
"onUpdate:value": (l) =>
|
|
143
|
+
}, [t(n, {
|
|
144
|
+
value: e.value.attr.clearable,
|
|
145
|
+
"onUpdate:value": (l) => e.value.attr.clearable = l
|
|
132
146
|
}, null)])]
|
|
133
|
-
}),
|
|
147
|
+
}), t(i, {
|
|
134
148
|
label: a("components.formEditor.selectAsync.pagination"),
|
|
135
149
|
labelPlacement: "left"
|
|
136
150
|
}, {
|
|
137
|
-
default: () => [
|
|
151
|
+
default: () => [t("div", {
|
|
138
152
|
class: "flex flex-1 justify-end"
|
|
139
|
-
}, [
|
|
140
|
-
value:
|
|
141
|
-
"onUpdate:value": (l) =>
|
|
153
|
+
}, [t(n, {
|
|
154
|
+
value: e.value.attr.pagination,
|
|
155
|
+
"onUpdate:value": (l) => e.value.attr.pagination = l
|
|
142
156
|
}, null)])]
|
|
143
157
|
})]
|
|
144
|
-
}),
|
|
158
|
+
}), t(u, {
|
|
145
159
|
title: a("components.formEditor.options")
|
|
146
160
|
}, {
|
|
147
|
-
default: () => [
|
|
161
|
+
default: () => [t(i, {
|
|
148
162
|
label: a("components.formEditor.selectAsync.path")
|
|
149
163
|
}, {
|
|
150
|
-
default: () => [
|
|
151
|
-
value:
|
|
152
|
-
"onUpdate:value": (l) =>
|
|
164
|
+
default: () => [t(m, {
|
|
165
|
+
value: e.value.attr.path,
|
|
166
|
+
"onUpdate:value": (l) => e.value.attr.path = l
|
|
153
167
|
}, null)]
|
|
154
|
-
}),
|
|
168
|
+
}), t(i, {
|
|
155
169
|
label: a("components.formEditor.selectAsync.labelField")
|
|
156
170
|
}, {
|
|
157
|
-
default: () => [
|
|
158
|
-
value:
|
|
159
|
-
"onUpdate:value": (l) =>
|
|
171
|
+
default: () => [t(m, {
|
|
172
|
+
value: e.value.attr.labelField,
|
|
173
|
+
"onUpdate:value": (l) => e.value.attr.labelField = l
|
|
160
174
|
}, null)]
|
|
161
|
-
}),
|
|
175
|
+
}), t(i, {
|
|
162
176
|
label: a("components.formEditor.selectAsync.valueField")
|
|
163
177
|
}, {
|
|
164
|
-
default: () => [
|
|
165
|
-
value:
|
|
166
|
-
"onUpdate:value": (l) =>
|
|
178
|
+
default: () => [t(m, {
|
|
179
|
+
value: e.value.attr.valueField,
|
|
180
|
+
"onUpdate:value": (l) => e.value.attr.valueField = l
|
|
167
181
|
}, null)]
|
|
168
|
-
}),
|
|
182
|
+
}), t(i, {
|
|
169
183
|
label: a("components.formEditor.selectAsync.imageField")
|
|
170
184
|
}, {
|
|
171
|
-
default: () => [
|
|
172
|
-
value:
|
|
173
|
-
"onUpdate:value": (l) =>
|
|
185
|
+
default: () => [t(m, {
|
|
186
|
+
value: e.value.attr.imageField,
|
|
187
|
+
"onUpdate:value": (l) => e.value.attr.imageField = l
|
|
174
188
|
}, null)]
|
|
175
|
-
}),
|
|
189
|
+
}), t(i, {
|
|
176
190
|
label: a("components.formEditor.selectAsync.descField")
|
|
177
191
|
}, {
|
|
178
|
-
default: () => [
|
|
179
|
-
value:
|
|
180
|
-
"onUpdate:value": (l) =>
|
|
192
|
+
default: () => [t(m, {
|
|
193
|
+
value: e.value.attr.descField,
|
|
194
|
+
"onUpdate:value": (l) => e.value.attr.descField = l
|
|
181
195
|
}, null)]
|
|
182
196
|
})]
|
|
183
|
-
}),
|
|
184
|
-
value:
|
|
185
|
-
"onUpdate:value": (l) =>
|
|
197
|
+
}), t(f, {
|
|
198
|
+
value: e.value.rule,
|
|
199
|
+
"onUpdate:value": (l) => e.value.rule = l
|
|
186
200
|
}, null)]);
|
|
187
201
|
}
|
|
188
202
|
});
|
|
189
|
-
function
|
|
203
|
+
function St(o) {
|
|
190
204
|
return {
|
|
191
205
|
name: "select-async",
|
|
192
206
|
icon: "i-tabler:select",
|
|
193
207
|
label: o("components.formEditor.selectAsync.name"),
|
|
194
208
|
group: "async",
|
|
195
|
-
component: (r) =>
|
|
196
|
-
setting: (r) =>
|
|
209
|
+
component: (r) => t(b, r, null),
|
|
210
|
+
setting: (r) => t(y, r, null),
|
|
197
211
|
settingDefault: {
|
|
198
212
|
label: o("components.formEditor.selectAsync.name"),
|
|
199
213
|
name: "selectAsync",
|
|
@@ -210,5 +224,5 @@ function ce(o) {
|
|
|
210
224
|
};
|
|
211
225
|
}
|
|
212
226
|
export {
|
|
213
|
-
|
|
227
|
+
St as duxFormEditorSelectAsync
|
|
214
228
|
};
|