@duxweb/dvha-pro 1.1.15 → 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 +1 -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 +3 -5
- 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
|
@@ -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
|
};
|
|
@@ -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";
|
|
@@ -169,7 +167,7 @@ const E = /* @__PURE__ */ u({
|
|
|
169
167
|
}, null)]);
|
|
170
168
|
}
|
|
171
169
|
});
|
|
172
|
-
function
|
|
170
|
+
function kt(r) {
|
|
173
171
|
return {
|
|
174
172
|
name: "tree-select-async",
|
|
175
173
|
icon: "i-tabler:binary-tree",
|
|
@@ -192,5 +190,5 @@ function Ct(r) {
|
|
|
192
190
|
};
|
|
193
191
|
}
|
|
194
192
|
export {
|
|
195
|
-
|
|
193
|
+
kt as duxFormEditorTreeSelectAsync
|
|
196
194
|
};
|
|
@@ -39,9 +39,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
39
39
|
import "highlight.js/lib/languages/typescript";
|
|
40
40
|
import "highlight.js/lib/languages/xml";
|
|
41
41
|
import "@ant-design/colors";
|
|
42
|
-
import "
|
|
43
|
-
import "@unocss/preset-typography";
|
|
44
|
-
import "unocss/preset-wind4";
|
|
42
|
+
import "unocss";
|
|
45
43
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
46
44
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
47
45
|
import "vee-validate";
|
|
@@ -90,7 +88,7 @@ import "pinia";
|
|
|
90
88
|
function p(m) {
|
|
91
89
|
return typeof m == "function" || Object.prototype.toString.call(m) === "[object Object]" && !x(m);
|
|
92
90
|
}
|
|
93
|
-
const
|
|
91
|
+
const Cr = /* @__PURE__ */ f({
|
|
94
92
|
name: "DuxFormEditor",
|
|
95
93
|
props: {
|
|
96
94
|
onSave: Function
|
|
@@ -179,5 +177,5 @@ const kr = /* @__PURE__ */ f({
|
|
|
179
177
|
}
|
|
180
178
|
});
|
|
181
179
|
export {
|
|
182
|
-
|
|
180
|
+
Cr as DuxFormEditor
|
|
183
181
|
};
|
|
@@ -49,9 +49,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
49
49
|
import "highlight.js/lib/languages/typescript";
|
|
50
50
|
import "highlight.js/lib/languages/xml";
|
|
51
51
|
import "@ant-design/colors";
|
|
52
|
-
import "
|
|
53
|
-
import "@unocss/preset-typography";
|
|
54
|
-
import "unocss/preset-wind4";
|
|
52
|
+
import "unocss";
|
|
55
53
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
56
54
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
57
55
|
import "vue-command-palette";
|
|
@@ -84,7 +82,7 @@ import { duxFormEditorTreeSelectAsync as K } from "./components/treeSelectAsync.
|
|
|
84
82
|
import "@iconify-json/tabler/icons.json";
|
|
85
83
|
import "../posterEditor/elements/index.js";
|
|
86
84
|
import "fabric";
|
|
87
|
-
const
|
|
85
|
+
const So = /* @__PURE__ */ E({
|
|
88
86
|
name: "DuxFormRenderer",
|
|
89
87
|
props: {
|
|
90
88
|
data: {
|
|
@@ -166,5 +164,5 @@ const jo = /* @__PURE__ */ E({
|
|
|
166
164
|
}
|
|
167
165
|
});
|
|
168
166
|
export {
|
|
169
|
-
|
|
167
|
+
So as DuxFormRenderer
|
|
170
168
|
};
|
|
@@ -39,9 +39,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
39
39
|
import "highlight.js/lib/languages/typescript";
|
|
40
40
|
import "highlight.js/lib/languages/xml";
|
|
41
41
|
import "@ant-design/colors";
|
|
42
|
-
import "
|
|
43
|
-
import "@unocss/preset-typography";
|
|
44
|
-
import "unocss/preset-wind4";
|
|
42
|
+
import "unocss";
|
|
45
43
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
46
44
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
47
45
|
import "vee-validate";
|
|
@@ -61,7 +59,7 @@ import "fabric";
|
|
|
61
59
|
import "dayjs";
|
|
62
60
|
import "@tanstack/vue-query";
|
|
63
61
|
import "pinia";
|
|
64
|
-
const
|
|
62
|
+
const Po = /* @__PURE__ */ n({
|
|
65
63
|
name: "DuxIconPicker",
|
|
66
64
|
props: {
|
|
67
65
|
defaultValue: String,
|
|
@@ -105,5 +103,5 @@ const Co = /* @__PURE__ */ n({
|
|
|
105
103
|
}
|
|
106
104
|
});
|
|
107
105
|
export {
|
|
108
|
-
|
|
106
|
+
Po as DuxIconPicker
|
|
109
107
|
};
|
|
@@ -40,9 +40,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
40
40
|
import "highlight.js/lib/languages/typescript";
|
|
41
41
|
import "highlight.js/lib/languages/xml";
|
|
42
42
|
import "@ant-design/colors";
|
|
43
|
-
import "
|
|
44
|
-
import "@unocss/preset-typography";
|
|
45
|
-
import "unocss/preset-wind4";
|
|
43
|
+
import "unocss";
|
|
46
44
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
47
45
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
48
46
|
import "vee-validate";
|
|
@@ -66,7 +64,7 @@ import "fabric";
|
|
|
66
64
|
import "dayjs";
|
|
67
65
|
import "@tanstack/vue-query";
|
|
68
66
|
import "pinia";
|
|
69
|
-
const
|
|
67
|
+
const St = /* @__PURE__ */ Q({
|
|
70
68
|
name: "DuxListLayout",
|
|
71
69
|
props: {
|
|
72
70
|
rowKey: {
|
|
@@ -454,5 +452,5 @@ const Pt = /* @__PURE__ */ Q({
|
|
|
454
452
|
}
|
|
455
453
|
});
|
|
456
454
|
export {
|
|
457
|
-
|
|
455
|
+
St as DuxListLayout
|
|
458
456
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as te, toRef as O, computed as
|
|
1
|
+
import { defineComponent as te, toRef as O, computed as p, reactive as k, ref as S, watch as N, nextTick as h, onMounted as ae, createVNode as e, h as ie, mergeProps as le } from "vue";
|
|
2
2
|
import { useI18n as oe, useJsonSchema as re, useTabStore as ne } from "@duxweb/dvha-core";
|
|
3
3
|
import { useWindowSize as se } from "@vueuse/core";
|
|
4
|
-
import { NTabs as ue, NTab as ce, NButton as c, NPopselect as
|
|
4
|
+
import { NTabs as ue, NTab as ce, NButton as c, NPopselect as de, NTooltip as y, NProgress as pe, NPagination as me, NDrawer as z } from "naive-ui";
|
|
5
5
|
import { useAction as fe } from "../../hooks/action.js";
|
|
6
6
|
import "@overlastic/vue";
|
|
7
7
|
import "clsx";
|
|
@@ -40,9 +40,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
40
40
|
import "highlight.js/lib/languages/typescript";
|
|
41
41
|
import "highlight.js/lib/languages/xml";
|
|
42
42
|
import "@ant-design/colors";
|
|
43
|
-
import "
|
|
44
|
-
import "@unocss/preset-typography";
|
|
45
|
-
import "unocss/preset-wind4";
|
|
43
|
+
import "unocss";
|
|
46
44
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
47
45
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
48
46
|
import "vee-validate";
|
|
@@ -66,7 +64,7 @@ import "dayjs";
|
|
|
66
64
|
import "@tanstack/vue-query";
|
|
67
65
|
import { useTable as he } from "../../hooks/table.js";
|
|
68
66
|
import "pinia";
|
|
69
|
-
const
|
|
67
|
+
const zt = /* @__PURE__ */ te({
|
|
70
68
|
name: "DuxTableLayout",
|
|
71
69
|
props: {
|
|
72
70
|
path: {
|
|
@@ -125,7 +123,7 @@ const Jt = /* @__PURE__ */ te({
|
|
|
125
123
|
slots: o,
|
|
126
124
|
expose: J
|
|
127
125
|
}) {
|
|
128
|
-
const r = O(a, "filter", {}), U = O(a, "sorter", {}), v =
|
|
126
|
+
const r = O(a, "filter", {}), U = O(a, "sorter", {}), v = p(() => a.filterReactive || {}), B = O(a, "columns", []), {
|
|
129
127
|
t: n
|
|
130
128
|
} = oe(), {
|
|
131
129
|
renderAction: E
|
|
@@ -156,16 +154,16 @@ const Jt = /* @__PURE__ */ te({
|
|
|
156
154
|
onExport: G,
|
|
157
155
|
onExportRows: H,
|
|
158
156
|
onImport: Q
|
|
159
|
-
} = s, X =
|
|
157
|
+
} = s, X = p(() => R.value.filter((t) => "title" in t && "key" in t).map((t) => ({
|
|
160
158
|
label: t.title,
|
|
161
159
|
value: t.key
|
|
162
160
|
}))), {
|
|
163
|
-
width:
|
|
164
|
-
} = se(), Y =
|
|
161
|
+
width: d
|
|
162
|
+
} = se(), Y = p(() => R.value.reduce((i, u) => i + (Number(u?.width) || Number(u?.minWidth) || 110), 0)), m = k({
|
|
165
163
|
show: !1
|
|
166
164
|
}), f = k({
|
|
167
165
|
show: !1
|
|
168
|
-
}), x = S(!1), Z =
|
|
166
|
+
}), x = S(!1), Z = p(() => (a.filterSchema || []).map((t) => {
|
|
169
167
|
const {
|
|
170
168
|
label: i,
|
|
171
169
|
...u
|
|
@@ -180,8 +178,8 @@ const Jt = /* @__PURE__ */ te({
|
|
|
180
178
|
})), {
|
|
181
179
|
render: _
|
|
182
180
|
} = re({
|
|
183
|
-
data:
|
|
184
|
-
}), w =
|
|
181
|
+
data: p(() => Z.value)
|
|
182
|
+
}), w = p(() => ({
|
|
185
183
|
import: !1,
|
|
186
184
|
export: !0,
|
|
187
185
|
refresh: !0,
|
|
@@ -196,12 +194,12 @@ const Jt = /* @__PURE__ */ te({
|
|
|
196
194
|
h(() => b.value?.syncBarPosition());
|
|
197
195
|
}, {
|
|
198
196
|
deep: !0
|
|
199
|
-
}), N(() =>
|
|
197
|
+
}), N(() => d.value, () => {
|
|
200
198
|
h(() => {
|
|
201
199
|
b.value?.syncBarPosition();
|
|
202
200
|
});
|
|
203
201
|
});
|
|
204
|
-
const P = ne(), $ = P.tabs.find((t) => t.path === P.current), ee =
|
|
202
|
+
const P = ne(), $ = P.tabs.find((t) => t.path === P.current), ee = p(() => {
|
|
205
203
|
const t = a.tabs?.map((u) => u.value) || [], i = r.value?.tab;
|
|
206
204
|
return t.includes(i) ? i : t[0];
|
|
207
205
|
});
|
|
@@ -221,8 +219,8 @@ const Jt = /* @__PURE__ */ te({
|
|
|
221
219
|
actions: a.actions,
|
|
222
220
|
scrollbar: !1
|
|
223
221
|
}, {
|
|
224
|
-
sideLeft: () => o?.sideLeft &&
|
|
225
|
-
sideRight: () => o?.sideRight &&
|
|
222
|
+
sideLeft: () => o?.sideLeft && d.value >= 1024 ? o?.sideLeft?.() : void 0,
|
|
223
|
+
sideRight: () => o?.sideRight && d.value >= 1024 ? o?.sideRight?.() : void 0,
|
|
226
224
|
default: () => e("div", {
|
|
227
225
|
class: "flex flex-col gap-3 h-full relative"
|
|
228
226
|
}, [e("div", {
|
|
@@ -252,11 +250,11 @@ const Jt = /* @__PURE__ */ te({
|
|
|
252
250
|
})]), e("div", {
|
|
253
251
|
class: "flex gap-2 justify-end pb-2"
|
|
254
252
|
}, [o.actions?.(), a.actions?.length > 0 && E({
|
|
255
|
-
type:
|
|
253
|
+
type: d.value < 1024 ? "dropdown" : "button",
|
|
256
254
|
items: a.actions
|
|
257
255
|
})])]), e("div", {
|
|
258
256
|
class: "flex gap-2 justify-between flex-col-reverse lg:flex-row"
|
|
259
|
-
}, [(
|
|
257
|
+
}, [(d.value >= 1024 || x.value) && e("div", {
|
|
260
258
|
class: ["flex-1 flex flex-col lg:flex-row gap-2 flex-wrap"]
|
|
261
259
|
}, [e("div", {
|
|
262
260
|
key: T.value,
|
|
@@ -265,7 +263,7 @@ const Jt = /* @__PURE__ */ te({
|
|
|
265
263
|
class: "flex justify-between gap-2"
|
|
266
264
|
}, [e("div", {
|
|
267
265
|
class: ["flex gap-2"]
|
|
268
|
-
}, [o?.sideLeft &&
|
|
266
|
+
}, [o?.sideLeft && d.value < 1024 && e(c, {
|
|
269
267
|
class: "flex-none",
|
|
270
268
|
secondary: !0,
|
|
271
269
|
onClick: () => {
|
|
@@ -275,7 +273,7 @@ const Jt = /* @__PURE__ */ te({
|
|
|
275
273
|
icon: () => e("div", {
|
|
276
274
|
class: "i-tabler:layout-sidebar-inactive size-4"
|
|
277
275
|
}, null)
|
|
278
|
-
}), o?.sideRight &&
|
|
276
|
+
}), o?.sideRight && d.value < 1024 && e(c, {
|
|
279
277
|
class: "flex-none",
|
|
280
278
|
secondary: !0,
|
|
281
279
|
onClick: () => {
|
|
@@ -349,7 +347,7 @@ const Jt = /* @__PURE__ */ te({
|
|
|
349
347
|
class: "flex justify-between"
|
|
350
348
|
}, [e("div", {
|
|
351
349
|
class: "flex items-center gap-0.5"
|
|
352
|
-
}, [o?.bottom?.(), o?.tools?.(), e(
|
|
350
|
+
}, [o?.bottom?.(), o?.tools?.(), e(de, {
|
|
353
351
|
options: X.value,
|
|
354
352
|
value: q.value,
|
|
355
353
|
onUpdateValue: (t) => {
|
|
@@ -401,7 +399,7 @@ const Jt = /* @__PURE__ */ te({
|
|
|
401
399
|
circle: !0,
|
|
402
400
|
onClick: W
|
|
403
401
|
}, {
|
|
404
|
-
icon: () => I.value ? e(
|
|
402
|
+
icon: () => I.value ? e(pe, {
|
|
405
403
|
class: "size-4",
|
|
406
404
|
type: "circle",
|
|
407
405
|
percentage: C.value * 10,
|
|
@@ -417,7 +415,7 @@ const Jt = /* @__PURE__ */ te({
|
|
|
417
415
|
}),
|
|
418
416
|
default: () => n("components.button.autoRefresh")
|
|
419
417
|
})]), e("div", null, [a.pagination && e(me, le(A.value, {
|
|
420
|
-
simple:
|
|
418
|
+
simple: d.value < 768
|
|
421
419
|
}), {
|
|
422
420
|
prefix: () => e("div", null, [n("components.list.total", {
|
|
423
421
|
total: s.total.value || 0
|
|
@@ -469,5 +467,5 @@ const Jt = /* @__PURE__ */ te({
|
|
|
469
467
|
}
|
|
470
468
|
});
|
|
471
469
|
export {
|
|
472
|
-
|
|
470
|
+
zt as DuxTableLayout
|
|
473
471
|
};
|
|
@@ -40,9 +40,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
40
40
|
import "highlight.js/lib/languages/typescript";
|
|
41
41
|
import "highlight.js/lib/languages/xml";
|
|
42
42
|
import "@ant-design/colors";
|
|
43
|
-
import "
|
|
44
|
-
import "@unocss/preset-typography";
|
|
45
|
-
import "unocss/preset-wind4";
|
|
43
|
+
import "unocss";
|
|
46
44
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
47
45
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
48
46
|
import "vee-validate";
|
|
@@ -61,7 +59,7 @@ import "fabric";
|
|
|
61
59
|
import "dayjs";
|
|
62
60
|
import "@tanstack/vue-query";
|
|
63
61
|
import "pinia";
|
|
64
|
-
const
|
|
62
|
+
const At = /* @__PURE__ */ u({
|
|
65
63
|
name: "DuxTableTools",
|
|
66
64
|
props: {
|
|
67
65
|
selecteds: {
|
|
@@ -148,5 +146,5 @@ const Bt = /* @__PURE__ */ u({
|
|
|
148
146
|
}
|
|
149
147
|
});
|
|
150
148
|
export {
|
|
151
|
-
|
|
149
|
+
At as DuxTableTools
|
|
152
150
|
};
|
|
@@ -39,9 +39,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
39
39
|
import "highlight.js/lib/languages/typescript";
|
|
40
40
|
import "highlight.js/lib/languages/xml";
|
|
41
41
|
import "@ant-design/colors";
|
|
42
|
-
import "
|
|
43
|
-
import "@unocss/preset-typography";
|
|
44
|
-
import "unocss/preset-wind4";
|
|
42
|
+
import "unocss";
|
|
45
43
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
46
44
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
47
45
|
import "vee-validate";
|
|
@@ -60,7 +58,7 @@ import "fabric";
|
|
|
60
58
|
import "dayjs";
|
|
61
59
|
import { useLevel as c } from "../../hooks/level.js";
|
|
62
60
|
import "pinia";
|
|
63
|
-
const
|
|
61
|
+
const St = /* @__PURE__ */ v({
|
|
64
62
|
name: "DuxLevel",
|
|
65
63
|
props: {
|
|
66
64
|
value: {
|
|
@@ -131,5 +129,5 @@ const Ct = /* @__PURE__ */ v({
|
|
|
131
129
|
}
|
|
132
130
|
});
|
|
133
131
|
export {
|
|
134
|
-
|
|
132
|
+
St as DuxLevel
|
|
135
133
|
};
|