@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
|
@@ -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
|
};
|
|
@@ -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 { DuxImageUpload as b } from "../../upload/image.js";
|
|
|
66
64
|
function C(t) {
|
|
67
65
|
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !s(t);
|
|
68
66
|
}
|
|
69
|
-
const
|
|
67
|
+
const Ue = /* @__PURE__ */ v({
|
|
70
68
|
name: "RightPanel",
|
|
71
69
|
props: {
|
|
72
70
|
hasMultipleSelection: {
|
|
@@ -435,5 +433,5 @@ const qe = /* @__PURE__ */ v({
|
|
|
435
433
|
}
|
|
436
434
|
});
|
|
437
435
|
export {
|
|
438
|
-
|
|
436
|
+
Ue as RightPanel
|
|
439
437
|
};
|
|
@@ -41,9 +41,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
41
41
|
import "highlight.js/lib/languages/typescript";
|
|
42
42
|
import "highlight.js/lib/languages/xml";
|
|
43
43
|
import "@ant-design/colors";
|
|
44
|
-
import "
|
|
45
|
-
import "@unocss/preset-typography";
|
|
46
|
-
import "unocss/preset-wind4";
|
|
44
|
+
import "unocss";
|
|
47
45
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
48
46
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
49
47
|
import "vee-validate";
|
|
@@ -65,7 +63,7 @@ import "dayjs";
|
|
|
65
63
|
import "@tanstack/vue-query";
|
|
66
64
|
import "pinia";
|
|
67
65
|
import { DuxImageUpload as Q } from "../upload/image.js";
|
|
68
|
-
const
|
|
66
|
+
const ia = /* @__PURE__ */ T({
|
|
69
67
|
name: "DuxPosterEditor",
|
|
70
68
|
props: {
|
|
71
69
|
data: {
|
|
@@ -241,5 +239,5 @@ const ua = /* @__PURE__ */ T({
|
|
|
241
239
|
}
|
|
242
240
|
});
|
|
243
241
|
export {
|
|
244
|
-
|
|
242
|
+
ia as DuxPosterEditor
|
|
245
243
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as f, computed as d, toRef as c, createVNode as i, mergeProps as m } from "vue";
|
|
2
2
|
import { useI18n as b } from "@duxweb/dvha-core";
|
|
3
3
|
import { useWindowSize as g } from "@vueuse/core";
|
|
4
|
-
import { NDataTable as
|
|
4
|
+
import { NDataTable as e, NPagination as x } from "naive-ui";
|
|
5
5
|
import "vue-router";
|
|
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";
|
|
@@ -62,7 +60,7 @@ import "dayjs";
|
|
|
62
60
|
import "@tanstack/vue-query";
|
|
63
61
|
import { useTable as h } from "../../hooks/table.js";
|
|
64
62
|
import "pinia";
|
|
65
|
-
const
|
|
63
|
+
const St = /* @__PURE__ */ f({
|
|
66
64
|
name: "DuxTable",
|
|
67
65
|
props: {
|
|
68
66
|
path: {
|
|
@@ -80,9 +78,9 @@ const zt = /* @__PURE__ */ f({
|
|
|
80
78
|
default: !0
|
|
81
79
|
}
|
|
82
80
|
},
|
|
83
|
-
extends:
|
|
81
|
+
extends: e,
|
|
84
82
|
setup(o, {
|
|
85
|
-
expose:
|
|
83
|
+
expose: p
|
|
86
84
|
}) {
|
|
87
85
|
const n = d(() => {
|
|
88
86
|
const {
|
|
@@ -99,7 +97,7 @@ const zt = /* @__PURE__ */ f({
|
|
|
99
97
|
columns: o.columns || [],
|
|
100
98
|
pagination: o.pagination
|
|
101
99
|
});
|
|
102
|
-
|
|
100
|
+
p(r);
|
|
103
101
|
const {
|
|
104
102
|
width: a
|
|
105
103
|
} = g(), {
|
|
@@ -107,7 +105,7 @@ const zt = /* @__PURE__ */ f({
|
|
|
107
105
|
} = b();
|
|
108
106
|
return () => i("div", {
|
|
109
107
|
class: "flex flex-col gap-2"
|
|
110
|
-
}, [i(
|
|
108
|
+
}, [i(e, m(n.value, r.table.value, {
|
|
111
109
|
class: "flex-1 min-h-0",
|
|
112
110
|
minHeight: 200,
|
|
113
111
|
tableLayout: "fixed",
|
|
@@ -131,5 +129,5 @@ const zt = /* @__PURE__ */ f({
|
|
|
131
129
|
}
|
|
132
130
|
});
|
|
133
131
|
export {
|
|
134
|
-
|
|
132
|
+
St as DuxTable
|
|
135
133
|
};
|
|
@@ -41,9 +41,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
41
41
|
import "highlight.js/lib/languages/typescript";
|
|
42
42
|
import "highlight.js/lib/languages/xml";
|
|
43
43
|
import "@ant-design/colors";
|
|
44
|
-
import "
|
|
45
|
-
import "@unocss/preset-typography";
|
|
46
|
-
import "unocss/preset-wind4";
|
|
44
|
+
import "unocss";
|
|
47
45
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
48
46
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
49
47
|
import "vee-validate";
|
|
@@ -97,7 +95,7 @@ const d = {
|
|
|
97
95
|
empty: "flex items-center justify-center h-full text-muted",
|
|
98
96
|
actions: "flex gap-2"
|
|
99
97
|
}
|
|
100
|
-
},
|
|
98
|
+
}, at = /* @__PURE__ */ U({
|
|
101
99
|
name: "DuxFileUpload",
|
|
102
100
|
props: {
|
|
103
101
|
path: {
|
|
@@ -312,5 +310,5 @@ const d = {
|
|
|
312
310
|
}
|
|
313
311
|
});
|
|
314
312
|
export {
|
|
315
|
-
|
|
313
|
+
at as DuxFileUpload
|
|
316
314
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as k, computed as n, watch as g, createVNode as
|
|
1
|
+
import { defineComponent as k, computed as n, watch as g, createVNode as a } from "vue";
|
|
2
2
|
import { useI18n as w, useUpload as I } from "@duxweb/dvha-core";
|
|
3
3
|
import { useVModel as V } from "@vueuse/core";
|
|
4
4
|
import A from "clsx";
|
|
@@ -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";
|
|
@@ -63,7 +61,7 @@ import "dayjs";
|
|
|
63
61
|
import { useImagePreview as q } from "../../hooks/image.js";
|
|
64
62
|
import "@tanstack/vue-query";
|
|
65
63
|
import "pinia";
|
|
66
|
-
const
|
|
64
|
+
const Xe = /* @__PURE__ */ k({
|
|
67
65
|
name: "DuxImageUpload",
|
|
68
66
|
props: {
|
|
69
67
|
path: {
|
|
@@ -123,7 +121,7 @@ const Ze = /* @__PURE__ */ k({
|
|
|
123
121
|
uploadPath: t?.path,
|
|
124
122
|
managePath: t?.managePath,
|
|
125
123
|
method: t?.method
|
|
126
|
-
}),
|
|
124
|
+
}), r = I({
|
|
127
125
|
path: d.value,
|
|
128
126
|
multiple: t.multiple,
|
|
129
127
|
maxFileCount: t.maxNum,
|
|
@@ -136,64 +134,64 @@ const Ze = /* @__PURE__ */ k({
|
|
|
136
134
|
},
|
|
137
135
|
driver: z.value
|
|
138
136
|
});
|
|
139
|
-
g(
|
|
137
|
+
g(r.dataFiles, (e) => {
|
|
140
138
|
const o = t.multiple ? e?.map((l) => l.url) : e?.[0]?.url;
|
|
141
139
|
u.value = o, t.onUpdateValue?.(o);
|
|
142
140
|
});
|
|
143
|
-
const F = n(() =>
|
|
144
|
-
|
|
145
|
-
}, S = n(() => t.multiple ? t.maxNum &&
|
|
141
|
+
const F = n(() => r.progress.value.totalPercent), P = n(() => r.isUploading.value), C = async () => {
|
|
142
|
+
r.open();
|
|
143
|
+
}, S = n(() => t.multiple ? t.maxNum && r.uploadFiles.value.length >= t.maxNum : !0), N = n(() => r.dataFiles.value?.map((e) => e.url)), U = O();
|
|
146
144
|
return g(u, (e) => {
|
|
147
145
|
if (!e || !(Array.isArray(e) ? e.length : String(e).length)) return;
|
|
148
|
-
const o = typeof e == "string" ? [e] : Array.isArray(e) ? e : [], l = (
|
|
149
|
-
c.length &&
|
|
146
|
+
const o = typeof e == "string" ? [e] : Array.isArray(e) ? e : [], l = (r.dataFiles.value || []).map((m) => m.url).filter(Boolean), c = o.filter((m) => !l.includes(m));
|
|
147
|
+
c.length && r.addDataFiles(c.map((m) => ({
|
|
150
148
|
url: m
|
|
151
149
|
})));
|
|
152
|
-
}), () =>
|
|
153
|
-
modelValue:
|
|
154
|
-
"onUpdate:modelValue": (e) =>
|
|
150
|
+
}), () => a("div", null, [a(M, {
|
|
151
|
+
modelValue: r.uploadFiles.value,
|
|
152
|
+
"onUpdate:modelValue": (e) => r.uploadFiles.value = e,
|
|
155
153
|
class: i.container,
|
|
156
154
|
draggable: ".draggable"
|
|
157
155
|
}, {
|
|
158
|
-
default: () => [
|
|
156
|
+
default: () => [r.uploadFiles.value?.map((e, o) => {
|
|
159
157
|
const l = e.url || URL.createObjectURL(e.file);
|
|
160
|
-
return
|
|
158
|
+
return a("div", {
|
|
161
159
|
key: o,
|
|
162
160
|
class: A(i.imageItem)
|
|
163
|
-
}, [
|
|
161
|
+
}, [a(B, {
|
|
164
162
|
class: "z-0 rounded",
|
|
165
163
|
objectFit: "scale-down",
|
|
166
164
|
width: 78,
|
|
167
165
|
height: 78,
|
|
168
166
|
previewDisabled: !0,
|
|
169
167
|
src: l
|
|
170
|
-
}, null),
|
|
168
|
+
}, null), a("div", {
|
|
171
169
|
class: i.imageOverlay
|
|
172
|
-
}, [e.status === "success" &&
|
|
170
|
+
}, [e.status === "success" && a(v, {
|
|
173
171
|
quaternary: !0,
|
|
174
172
|
circle: !0,
|
|
175
173
|
size: "small",
|
|
176
|
-
renderIcon: () =>
|
|
174
|
+
renderIcon: () => a("div", {
|
|
177
175
|
class: "n-icon i-tabler:eye"
|
|
178
176
|
}, null),
|
|
179
177
|
onClick: () => b.show(N.value, o)
|
|
180
|
-
}, null),
|
|
178
|
+
}, null), a(v, {
|
|
181
179
|
quaternary: !0,
|
|
182
180
|
circle: !0,
|
|
183
181
|
size: "small",
|
|
184
|
-
renderIcon: () =>
|
|
182
|
+
renderIcon: () => a("div", {
|
|
185
183
|
class: "n-icon i-tabler:trash"
|
|
186
184
|
}, null),
|
|
187
185
|
onClick: () => {
|
|
188
|
-
|
|
186
|
+
r.removeFiles([e.id]);
|
|
189
187
|
}
|
|
190
188
|
}, null)])]);
|
|
191
|
-
}), (
|
|
189
|
+
}), (r.uploadFiles.value.length === 0 || !S.value) && a("div", {
|
|
192
190
|
class: i.uploadArea,
|
|
193
191
|
onClick: () => {
|
|
194
192
|
C();
|
|
195
193
|
}
|
|
196
|
-
}, [t.manager &&
|
|
194
|
+
}, [t.manager && a("div", {
|
|
197
195
|
class: " py-1 text-xs bg-muted border-b border-dashed border-accented flex items-center justify-center",
|
|
198
196
|
onClick: (e) => {
|
|
199
197
|
e.stopPropagation(), U.show({
|
|
@@ -213,30 +211,30 @@ const Ze = /* @__PURE__ */ k({
|
|
|
213
211
|
}
|
|
214
212
|
}
|
|
215
213
|
}).then((o) => {
|
|
216
|
-
|
|
214
|
+
r.addDataFiles(o);
|
|
217
215
|
});
|
|
218
216
|
}
|
|
219
|
-
}, [
|
|
217
|
+
}, [a("div", {
|
|
220
218
|
class: "i-tabler:folder size-4"
|
|
221
|
-
}, null)]),
|
|
219
|
+
}, null)]), a("div", {
|
|
222
220
|
class: i.uploadContent
|
|
223
|
-
}, [P.value ?
|
|
221
|
+
}, [P.value ? a("div", {
|
|
224
222
|
class: i.progressContainer
|
|
225
|
-
}, [
|
|
223
|
+
}, [a("div", {
|
|
226
224
|
class: "i-tabler:photo size-6"
|
|
227
|
-
}, null),
|
|
225
|
+
}, null), a("div", {
|
|
228
226
|
class: i.progressBar
|
|
229
|
-
}, [
|
|
227
|
+
}, [a(D, {
|
|
230
228
|
type: "line",
|
|
231
229
|
percentage: F.value,
|
|
232
230
|
showIndicator: !1,
|
|
233
231
|
height: 4
|
|
234
|
-
}, null)])]) :
|
|
232
|
+
}, null)])]) : a("div", {
|
|
235
233
|
class: "i-tabler:plus size-4"
|
|
236
234
|
}, null)])])]
|
|
237
235
|
})]);
|
|
238
236
|
}
|
|
239
237
|
});
|
|
240
238
|
export {
|
|
241
|
-
|
|
239
|
+
Xe as DuxImageUpload
|
|
242
240
|
};
|