@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
|
@@ -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
|
};
|
|
@@ -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";
|
|
@@ -69,7 +67,7 @@ import "fabric";
|
|
|
69
67
|
import "dayjs";
|
|
70
68
|
import "@tanstack/vue-query";
|
|
71
69
|
import "pinia";
|
|
72
|
-
const
|
|
70
|
+
const Te = /* @__PURE__ */ c({
|
|
73
71
|
name: "DuxFileManageItem",
|
|
74
72
|
props: {
|
|
75
73
|
name: String,
|
|
@@ -204,5 +202,5 @@ const qe = /* @__PURE__ */ c({
|
|
|
204
202
|
}
|
|
205
203
|
});
|
|
206
204
|
export {
|
|
207
|
-
|
|
205
|
+
Te as DuxFileManageItem
|
|
208
206
|
};
|
|
@@ -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";
|
|
@@ -67,7 +65,7 @@ import { DuxFileManageItem as T } from "./manage/item.js";
|
|
|
67
65
|
function M(t) {
|
|
68
66
|
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !q(t);
|
|
69
67
|
}
|
|
70
|
-
const
|
|
68
|
+
const ca = /* @__PURE__ */ z({
|
|
71
69
|
name: "DuxFileManage",
|
|
72
70
|
props: {
|
|
73
71
|
path: String,
|
|
@@ -423,5 +421,5 @@ const va = /* @__PURE__ */ z({
|
|
|
423
421
|
}
|
|
424
422
|
});
|
|
425
423
|
export {
|
|
426
|
-
|
|
424
|
+
ca as default
|
|
427
425
|
};
|
package/dist/esm/config/uno.js
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
import o from "
|
|
2
|
-
import p from "@unocss/preset-typography";
|
|
3
|
-
import { presetWind4 as i } from "unocss/preset-wind4";
|
|
1
|
+
import { presetWind4 as o, presetIcons as p, presetTypography as i } from "unocss";
|
|
4
2
|
import "@duxweb/dvha-core";
|
|
5
3
|
import "colorizr";
|
|
6
4
|
import "lodash-es";
|
|
7
5
|
import "vue";
|
|
8
6
|
import { presetTheme as m } from "../theme/presetTheme.js";
|
|
9
|
-
function
|
|
7
|
+
function l(t) {
|
|
10
8
|
const r = {
|
|
11
9
|
presets: [
|
|
12
|
-
|
|
10
|
+
o({
|
|
13
11
|
preflights: {
|
|
14
12
|
reset: t,
|
|
15
13
|
theme: t
|
|
16
14
|
}
|
|
17
15
|
}),
|
|
18
|
-
|
|
16
|
+
p({
|
|
19
17
|
collections: {
|
|
20
18
|
tabler: () => import("@iconify-json/tabler/icons.json").then((e) => e.default)
|
|
21
19
|
}
|
|
22
20
|
}),
|
|
23
|
-
|
|
21
|
+
i(),
|
|
24
22
|
m()
|
|
25
23
|
]
|
|
26
24
|
};
|
|
@@ -31,5 +29,5 @@ function u(t) {
|
|
|
31
29
|
]), r;
|
|
32
30
|
}
|
|
33
31
|
export {
|
|
34
|
-
|
|
32
|
+
l as config
|
|
35
33
|
};
|
package/dist/esm/hooks/dialog.js
CHANGED
|
@@ -44,9 +44,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
44
44
|
import "highlight.js/lib/languages/typescript";
|
|
45
45
|
import "highlight.js/lib/languages/xml";
|
|
46
46
|
import "@ant-design/colors";
|
|
47
|
-
import "
|
|
48
|
-
import "@unocss/preset-typography";
|
|
49
|
-
import "unocss/preset-wind4";
|
|
47
|
+
import "unocss";
|
|
50
48
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
51
49
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
52
50
|
import "vee-validate";
|
|
@@ -61,7 +59,7 @@ import "@vue-flow/background";
|
|
|
61
59
|
import "@iconify-json/tabler/icons.json";
|
|
62
60
|
import "../components/posterEditor/elements/index.js";
|
|
63
61
|
import "fabric";
|
|
64
|
-
function
|
|
62
|
+
function hr() {
|
|
65
63
|
const t = p(m), o = (r) => t(r);
|
|
66
64
|
return {
|
|
67
65
|
confirm: (r) => o({
|
|
@@ -87,5 +85,5 @@ function wr() {
|
|
|
87
85
|
};
|
|
88
86
|
}
|
|
89
87
|
export {
|
|
90
|
-
|
|
88
|
+
hr as useDialog
|
|
91
89
|
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { useI18n as B, useClient as M } from "@duxweb/dvha-core";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import C from "dayjs";
|
|
3
|
+
import x from "mime";
|
|
4
4
|
import { useMessage as k } from "naive-ui";
|
|
5
|
-
import { ref as
|
|
5
|
+
import { ref as w } from "vue";
|
|
6
6
|
function I() {
|
|
7
|
-
const { t:
|
|
7
|
+
const { t: y } = B(), v = M(), f = w(!1), r = w({
|
|
8
8
|
loaded: 0,
|
|
9
9
|
total: 0,
|
|
10
10
|
percent: 0,
|
|
11
11
|
speed: 0,
|
|
12
12
|
speedText: "0 B/s",
|
|
13
13
|
remainingTime: 0
|
|
14
|
-
}),
|
|
14
|
+
}), T = k(), g = (o) => {
|
|
15
15
|
if (o === 0)
|
|
16
16
|
return "0 B/s";
|
|
17
|
-
const n = ["B/s", "KB/s", "MB/s", "GB/s"],
|
|
18
|
-
return `${(o / 1024 **
|
|
19
|
-
},
|
|
20
|
-
const
|
|
21
|
-
|
|
17
|
+
const n = ["B/s", "KB/s", "MB/s", "GB/s"], t = Math.floor(Math.log(o) / Math.log(1024));
|
|
18
|
+
return `${(o / 1024 ** t).toFixed(1)} ${n[t]}`;
|
|
19
|
+
}, p = (o, n) => {
|
|
20
|
+
const t = window.URL || window.webkitURL, s = t.createObjectURL(o), a = document.createElement("a");
|
|
21
|
+
a.href = s, a.download = n || "", document.body.appendChild(a), a.click(), document.body.removeChild(a), t.revokeObjectURL(s);
|
|
22
22
|
};
|
|
23
23
|
return {
|
|
24
|
-
file: (o, n,
|
|
25
|
-
|
|
24
|
+
file: (o, n, t, s, a) => {
|
|
25
|
+
f.value = !0, r.value = {
|
|
26
26
|
loaded: 0,
|
|
27
27
|
total: 0,
|
|
28
28
|
percent: 0,
|
|
@@ -30,66 +30,73 @@ function I() {
|
|
|
30
30
|
speedText: "0 B/s",
|
|
31
31
|
remainingTime: 0
|
|
32
32
|
};
|
|
33
|
-
const
|
|
34
|
-
|
|
33
|
+
const b = Date.now();
|
|
34
|
+
v.request({
|
|
35
35
|
path: o,
|
|
36
36
|
method: "GET",
|
|
37
37
|
query: n,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
meta: {
|
|
39
|
+
responseType: "blob"
|
|
40
|
+
},
|
|
41
|
+
onDownloadProgress: (e) => {
|
|
42
|
+
const l = (Date.now() - b) / 1e3, d = l > 0 ? e.loaded / l : 0, h = (e.total || 0) - e.loaded, c = d > 0 ? h / d : 0, m = {
|
|
43
|
+
loaded: e.loaded,
|
|
44
|
+
total: e.total,
|
|
45
|
+
percent: e.percent || 0,
|
|
46
|
+
speed: Math.round(d),
|
|
47
|
+
speedText: g(d),
|
|
48
|
+
remainingTime: Math.round(c)
|
|
46
49
|
};
|
|
47
|
-
|
|
50
|
+
r.value = m, a?.(m);
|
|
48
51
|
}
|
|
49
|
-
}).then((
|
|
50
|
-
const i = e ||
|
|
51
|
-
if (
|
|
52
|
-
const c =
|
|
53
|
-
|
|
52
|
+
}).then((e) => {
|
|
53
|
+
const i = e.headers || e.raw?.headers || {}, u = t || i["content-type"] || i["Content-Type"], l = i["content-disposition"] || i["Content-Disposition"];
|
|
54
|
+
if (!s && (s = C().format("YYYY-MM-DD-HH:mm:ss"), u)) {
|
|
55
|
+
const c = u.split(";")[0]?.trim(), m = c ? x.getExtension(c) : void 0;
|
|
56
|
+
m && (s = `${s}.${m}`);
|
|
54
57
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
if (l) {
|
|
59
|
+
const c = /filename=["']?([^"']+)/.exec(l);
|
|
60
|
+
c && c?.length > 1 && (s = decodeURIComponent(c[1]));
|
|
61
|
+
}
|
|
62
|
+
const d = e.data instanceof Blob ? e.data : new Blob([e.data], { type: u || "application/octet-stream" });
|
|
63
|
+
p(d, s);
|
|
64
|
+
const h = {
|
|
65
|
+
loaded: r.value.total || r.value.loaded,
|
|
66
|
+
total: r.value.total || r.value.loaded,
|
|
60
67
|
percent: 100,
|
|
61
68
|
speed: 0,
|
|
62
69
|
speedText: g(0),
|
|
63
70
|
remainingTime: 0
|
|
64
71
|
};
|
|
65
|
-
|
|
66
|
-
}).catch((
|
|
67
|
-
|
|
72
|
+
r.value = h, a?.(h);
|
|
73
|
+
}).catch((e) => {
|
|
74
|
+
T.error(e.error || e.message || y("hooks.download.failed"));
|
|
68
75
|
}).finally(() => {
|
|
69
|
-
|
|
76
|
+
f.value = !1;
|
|
70
77
|
});
|
|
71
78
|
},
|
|
72
79
|
url: (o, n) => {
|
|
73
|
-
const
|
|
74
|
-
|
|
80
|
+
const t = document.createElement("a");
|
|
81
|
+
t.href = o, t.download = n || "", document.body.appendChild(t), t.click(), document.body.removeChild(t);
|
|
75
82
|
},
|
|
76
|
-
blob:
|
|
83
|
+
blob: p,
|
|
77
84
|
base64: (o, n) => {
|
|
78
|
-
const
|
|
79
|
-
for (let
|
|
80
|
-
|
|
81
|
-
const
|
|
82
|
-
|
|
85
|
+
const t = atob(o.split(",")[1]), s = Array.from({ length: t.length });
|
|
86
|
+
for (let e = 0; e < t.length; e++)
|
|
87
|
+
s[e] = t.charCodeAt(e);
|
|
88
|
+
const a = new Uint8Array(s), b = new Blob([a], { type: "application/octet-stream" });
|
|
89
|
+
p(b, n);
|
|
83
90
|
},
|
|
84
|
-
loading:
|
|
85
|
-
progress:
|
|
91
|
+
loading: f,
|
|
92
|
+
progress: r,
|
|
86
93
|
image: (o) => {
|
|
87
94
|
fetch(o).then((n) => {
|
|
88
|
-
n.blob().then((
|
|
89
|
-
|
|
95
|
+
n.blob().then((t) => {
|
|
96
|
+
p(t);
|
|
90
97
|
});
|
|
91
98
|
}).catch((n) => {
|
|
92
|
-
|
|
99
|
+
T.error(n.error || y("hooks.download.failed"));
|
|
93
100
|
});
|
|
94
101
|
}
|
|
95
102
|
};
|
package/dist/esm/hooks/drawer.js
CHANGED
|
@@ -44,9 +44,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
44
44
|
import "highlight.js/lib/languages/typescript";
|
|
45
45
|
import "highlight.js/lib/languages/xml";
|
|
46
46
|
import "@ant-design/colors";
|
|
47
|
-
import "
|
|
48
|
-
import "@unocss/preset-typography";
|
|
49
|
-
import "unocss/preset-wind4";
|
|
47
|
+
import "unocss";
|
|
50
48
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
51
49
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
52
50
|
import "vee-validate";
|
|
@@ -61,12 +59,12 @@ import "@vue-flow/background";
|
|
|
61
59
|
import "@iconify-json/tabler/icons.json";
|
|
62
60
|
import "../components/posterEditor/elements/index.js";
|
|
63
61
|
import "fabric";
|
|
64
|
-
function
|
|
62
|
+
function wr() {
|
|
65
63
|
const r = t(m);
|
|
66
64
|
return {
|
|
67
65
|
show: (o) => r(o)
|
|
68
66
|
};
|
|
69
67
|
}
|
|
70
68
|
export {
|
|
71
|
-
|
|
69
|
+
wr as useDrawer
|
|
72
70
|
};
|
package/dist/esm/hooks/modal.js
CHANGED
|
@@ -45,9 +45,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
45
45
|
import "highlight.js/lib/languages/typescript";
|
|
46
46
|
import "highlight.js/lib/languages/xml";
|
|
47
47
|
import "@ant-design/colors";
|
|
48
|
-
import "
|
|
49
|
-
import "@unocss/preset-typography";
|
|
50
|
-
import "unocss/preset-wind4";
|
|
48
|
+
import "unocss";
|
|
51
49
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
52
50
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
53
51
|
import "vee-validate";
|
|
@@ -61,12 +59,12 @@ import "@vue-flow/background";
|
|
|
61
59
|
import "@iconify-json/tabler/icons.json";
|
|
62
60
|
import "../components/posterEditor/elements/index.js";
|
|
63
61
|
import "fabric";
|
|
64
|
-
function
|
|
62
|
+
function fo() {
|
|
65
63
|
const o = t(m);
|
|
66
64
|
return {
|
|
67
65
|
show: (r) => o(r)
|
|
68
66
|
};
|
|
69
67
|
}
|
|
70
68
|
export {
|
|
71
|
-
|
|
69
|
+
fo as useModal
|
|
72
70
|
};
|
|
@@ -45,9 +45,7 @@ import "highlight.js/lib/languages/sql";
|
|
|
45
45
|
import "highlight.js/lib/languages/typescript";
|
|
46
46
|
import "highlight.js/lib/languages/xml";
|
|
47
47
|
import "@ant-design/colors";
|
|
48
|
-
import "
|
|
49
|
-
import "@unocss/preset-typography";
|
|
50
|
-
import "unocss/preset-wind4";
|
|
48
|
+
import "unocss";
|
|
51
49
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
52
50
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
53
51
|
import "vee-validate";
|
|
@@ -61,7 +59,7 @@ import "@vue-flow/background";
|
|
|
61
59
|
import "@iconify-json/tabler/icons.json";
|
|
62
60
|
import "../../components/posterEditor/elements/index.js";
|
|
63
61
|
import "fabric";
|
|
64
|
-
function
|
|
62
|
+
function vt() {
|
|
65
63
|
return {
|
|
66
64
|
render: (t) => (p, d) => {
|
|
67
65
|
let i = h(p, t.key || "") || [];
|
|
@@ -90,5 +88,5 @@ function kt() {
|
|
|
90
88
|
};
|
|
91
89
|
}
|
|
92
90
|
export {
|
|
93
|
-
|
|
91
|
+
vt as useTableColumnImage
|
|
94
92
|
};
|