@duxweb/dvha-pro 1.0.24 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/component.cjs +1 -1
- package/dist/cjs/components/chart/echart.cjs +1 -1
- package/dist/cjs/components/crop/imageCrop.cjs +1 -1
- package/dist/cjs/components/data/dynamicSelect.cjs +1 -1
- package/dist/cjs/components/data/selectModal.cjs +1 -1
- package/dist/cjs/components/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/settingForm.cjs +1 -1
- package/dist/cjs/components/icon/icon.cjs +1 -1
- package/dist/cjs/components/image/components/CanvasRuler.cjs +1 -0
- package/dist/cjs/components/image/elements/circle.cjs +1 -0
- package/dist/cjs/components/image/elements/image.cjs +1 -0
- package/dist/cjs/components/image/elements/index.cjs +1 -0
- package/dist/cjs/components/image/elements/rect.cjs +1 -0
- package/dist/cjs/components/image/elements/text.cjs +1 -0
- package/dist/cjs/components/image/hooks/usePosterEditor.cjs +1 -0
- package/dist/cjs/components/image/pages/LeftToolbar.cjs +1 -0
- package/dist/cjs/components/image/pages/Panel.cjs +1 -0
- package/dist/cjs/components/image/pages/PanelItem.cjs +1 -0
- package/dist/cjs/components/image/pages/RightPanel.cjs +1 -0
- package/dist/cjs/components/image/posterEditor.cjs +1 -0
- package/dist/cjs/components/layout/list.cjs +1 -1
- package/dist/cjs/components/layout/table.cjs +1 -1
- package/dist/cjs/components/level/level.cjs +1 -1
- package/dist/cjs/components/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/hooks/dialog.cjs +1 -1
- package/dist/cjs/hooks/drawer.cjs +1 -1
- package/dist/cjs/hooks/modal.cjs +1 -1
- package/dist/cjs/hooks/table/image.cjs +1 -1
- package/dist/cjs/hooks/table/media.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/pages/authLayout.cjs +1 -1
- package/dist/cjs/pages/layout/page.cjs +1 -1
- package/dist/cjs/pages/layout.cjs +1 -1
- package/dist/cjs/pages/login.cjs +1 -1
- package/dist/cjs/pages/menu/avatar.cjs +1 -1
- package/dist/cjs/pages/menu/button.cjs +1 -1
- package/dist/cjs/pages/menu/cmd.cjs +1 -1
- package/dist/cjs/pages/menu/main.cjs +1 -1
- package/dist/cjs/pages/menu/mobile.cjs +1 -1
- package/dist/cjs/pages/page404.cjs +1 -1
- package/dist/cjs/pages/pageStatus.cjs +1 -1
- package/dist/cjs/theme/uno.css.cjs +25 -1
- package/dist/esm/component.js +49 -47
- package/dist/esm/components/chart/echart.js +15 -13
- package/dist/esm/components/crop/imageCrop.js +15 -13
- package/dist/esm/components/data/dynamicSelect.js +15 -13
- package/dist/esm/components/data/selectModal.js +20 -18
- package/dist/esm/components/form/drawerForm.js +21 -19
- package/dist/esm/components/form/modalForm.js +15 -13
- package/dist/esm/components/form/pageForm.js +13 -11
- package/dist/esm/components/form/settingForm.js +12 -10
- package/dist/esm/components/icon/icon.js +15 -13
- package/dist/esm/components/image/components/CanvasRuler.js +113 -0
- package/dist/esm/components/image/elements/circle.js +127 -0
- package/dist/esm/components/image/elements/image.js +131 -0
- package/dist/esm/components/image/elements/index.js +46 -0
- package/dist/esm/components/image/elements/rect.js +171 -0
- package/dist/esm/components/image/elements/text.js +206 -0
- package/dist/esm/components/image/hooks/usePosterEditor.js +434 -0
- package/dist/esm/components/image/pages/LeftToolbar.js +40 -0
- package/dist/esm/components/image/pages/Panel.js +31 -0
- package/dist/esm/components/image/pages/PanelItem.js +22 -0
- package/dist/esm/components/image/pages/RightPanel.js +421 -0
- package/dist/esm/components/image/posterEditor.js +227 -0
- package/dist/esm/components/layout/list.js +16 -14
- package/dist/esm/components/layout/table.js +16 -14
- package/dist/esm/components/level/level.js +15 -13
- package/dist/esm/components/table/table.js +15 -13
- package/dist/esm/components/upload/file.js +98 -88
- package/dist/esm/components/upload/image.js +106 -94
- package/dist/esm/components/upload/manage/item.js +15 -13
- package/dist/esm/components/upload/manager.js +65 -63
- package/dist/esm/hooks/dialog.js +15 -13
- package/dist/esm/hooks/drawer.js +15 -13
- package/dist/esm/hooks/modal.js +15 -13
- package/dist/esm/hooks/table/image.js +15 -13
- package/dist/esm/hooks/table/media.js +15 -13
- package/dist/esm/index.js +213 -202
- package/dist/esm/pages/authLayout.js +15 -13
- package/dist/esm/pages/layout/page.js +15 -13
- package/dist/esm/pages/layout.js +7 -6
- package/dist/esm/pages/login.js +16 -15
- package/dist/esm/pages/menu/avatar.js +15 -13
- package/dist/esm/pages/menu/button.js +15 -13
- package/dist/esm/pages/menu/cmd.js +26 -24
- package/dist/esm/pages/menu/main.js +25 -23
- package/dist/esm/pages/menu/mobile.js +15 -13
- package/dist/esm/pages/page404.js +13 -11
- package/dist/esm/pages/pageStatus.js +15 -13
- package/dist/esm/theme/uno.css.js +25 -1
- package/dist/types/components/image/components/CanvasRuler.d.ts +43 -0
- package/dist/types/components/image/components/index.d.ts +1 -0
- package/dist/types/components/image/elements/circle.d.ts +3 -0
- package/dist/types/components/image/elements/image.d.ts +3 -0
- package/dist/types/components/image/elements/index.d.ts +15 -0
- package/dist/types/components/image/elements/rect.d.ts +3 -0
- package/dist/types/components/image/elements/text.d.ts +3 -0
- package/dist/types/components/image/elements/types.d.ts +51 -0
- package/dist/types/components/image/hooks/index.d.ts +1 -0
- package/dist/types/components/image/hooks/usePosterEditor.d.ts +48 -0
- package/dist/types/components/image/index.d.ts +4 -0
- package/dist/types/components/image/pages/LeftToolbar.d.ts +33 -0
- package/dist/types/components/image/pages/Panel.d.ts +11 -0
- package/dist/types/components/image/pages/PanelItem.d.ts +11 -0
- package/dist/types/components/image/pages/RightPanel.d.ts +208 -0
- package/dist/types/components/image/pages/index.d.ts +4 -0
- package/dist/types/components/image/posterEditor.d.ts +61 -0
- package/dist/types/components/image/types/editor.d.ts +47 -0
- package/dist/types/components/index.d.ts +2 -2
- package/dist/types/components/stats/number.d.ts +1 -1
- package/dist/types/components/upload/file.d.ts +5 -3
- package/dist/types/index.d.ts +1 -0
- package/dist/types/pages/layout/global.d.ts +0 -1
- package/package.json +6 -3
|
@@ -8,6 +8,17 @@ import "@overlastic/vue";
|
|
|
8
8
|
import "clsx";
|
|
9
9
|
import "vue-echarts";
|
|
10
10
|
import "@vueuse/core";
|
|
11
|
+
import "vue3-ace-editor";
|
|
12
|
+
import "ace-builds/src-noconflict/mode-vue";
|
|
13
|
+
import "ace-builds/src-noconflict/mode-javascript";
|
|
14
|
+
import "ace-builds/src-noconflict/mode-html";
|
|
15
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
16
|
+
import "ace-builds/src-noconflict/mode-json5";
|
|
17
|
+
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
18
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
19
|
+
import "ace-builds/src-noconflict/ext-searchbox";
|
|
20
|
+
import "ace-builds/src-noconflict/ext-language_tools";
|
|
21
|
+
import "ace-builds/src-noconflict/mode-snippets";
|
|
11
22
|
import "vue-cropper";
|
|
12
23
|
import "jinrishici";
|
|
13
24
|
import "vue-draggable-plus";
|
|
@@ -27,27 +38,18 @@ import "vue-command-palette";
|
|
|
27
38
|
import "@duxweb/dvha-naiveui";
|
|
28
39
|
import "../../pages/page404.js";
|
|
29
40
|
import "@iconify-json/tabler/icons.json";
|
|
41
|
+
import "../image/elements/index.js";
|
|
42
|
+
import "fabric";
|
|
30
43
|
import "mime";
|
|
31
44
|
import { useUploadConfig as ee } from "./config.js";
|
|
32
|
-
import "vue3-ace-editor";
|
|
33
|
-
import "ace-builds/src-noconflict/mode-vue";
|
|
34
|
-
import "ace-builds/src-noconflict/mode-javascript";
|
|
35
|
-
import "ace-builds/src-noconflict/mode-html";
|
|
36
|
-
import "ace-builds/src-noconflict/mode-json";
|
|
37
|
-
import "ace-builds/src-noconflict/mode-json5";
|
|
38
|
-
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
39
|
-
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
40
|
-
import "ace-builds/src-noconflict/ext-searchbox";
|
|
41
|
-
import "ace-builds/src-noconflict/ext-language_tools";
|
|
42
|
-
import "ace-builds/src-noconflict/mode-snippets";
|
|
43
45
|
import { useDownload as ae } from "../../hooks/download.js";
|
|
44
46
|
import "@tanstack/vue-query";
|
|
45
47
|
import "pinia";
|
|
46
48
|
import { DuxFileManageItem as T } from "./manage/item.js";
|
|
47
|
-
function P(
|
|
48
|
-
return typeof
|
|
49
|
+
function P(l) {
|
|
50
|
+
return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !_(l);
|
|
49
51
|
}
|
|
50
|
-
const
|
|
52
|
+
const Ke = /* @__PURE__ */ $({
|
|
51
53
|
name: "DuxFileManage",
|
|
52
54
|
props: {
|
|
53
55
|
path: String,
|
|
@@ -62,23 +64,23 @@ const He = /* @__PURE__ */ $({
|
|
|
62
64
|
handle: String,
|
|
63
65
|
uploadParams: Object
|
|
64
66
|
},
|
|
65
|
-
setup(
|
|
67
|
+
setup(l) {
|
|
66
68
|
const f = s(!1), k = s(0), C = s(0), {
|
|
67
|
-
t
|
|
69
|
+
t
|
|
68
70
|
} = q(), o = s([]), g = W(), M = B(), p = Y(), E = ae(), i = s({
|
|
69
71
|
manager: !0,
|
|
70
|
-
type:
|
|
72
|
+
type: l.type || "all",
|
|
71
73
|
folder: null
|
|
72
74
|
}), h = s(), {
|
|
73
75
|
uploadPath: j,
|
|
74
76
|
managePath: b,
|
|
75
77
|
driver: F
|
|
76
78
|
} = ee({
|
|
77
|
-
driver:
|
|
78
|
-
signPath:
|
|
79
|
-
signCallback:
|
|
80
|
-
uploadPath:
|
|
81
|
-
managePath:
|
|
79
|
+
driver: l.uploadParams?.driver,
|
|
80
|
+
signPath: l.uploadParams?.signPath,
|
|
81
|
+
signCallback: l.uploadParams?.signCallback,
|
|
82
|
+
uploadPath: l.uploadParams?.path,
|
|
83
|
+
managePath: l.path
|
|
82
84
|
}), I = s({
|
|
83
85
|
page: 1,
|
|
84
86
|
pageSize: 20
|
|
@@ -92,7 +94,7 @@ const He = /* @__PURE__ */ $({
|
|
|
92
94
|
signPath: d,
|
|
93
95
|
signCallback: m,
|
|
94
96
|
...a
|
|
95
|
-
} =
|
|
97
|
+
} = l.uploadParams || {};
|
|
96
98
|
return a;
|
|
97
99
|
}), y = R({
|
|
98
100
|
...U.value,
|
|
@@ -104,11 +106,11 @@ const He = /* @__PURE__ */ $({
|
|
|
104
106
|
o.value = [], n.refetch();
|
|
105
107
|
},
|
|
106
108
|
onError: (u) => {
|
|
107
|
-
p.error(u?.message ||
|
|
109
|
+
p.error(u?.message || t("components.uploadManage.uploadError") || "");
|
|
108
110
|
}
|
|
109
111
|
}), V = (u) => {
|
|
110
112
|
if (!u) {
|
|
111
|
-
p.error(
|
|
113
|
+
p.error(t("components.uploadManage.namePlaceholder") || "");
|
|
112
114
|
return;
|
|
113
115
|
}
|
|
114
116
|
M.request({
|
|
@@ -121,11 +123,11 @@ const He = /* @__PURE__ */ $({
|
|
|
121
123
|
}).then(() => {
|
|
122
124
|
n.refetch(), o.value = [];
|
|
123
125
|
}).catch(() => {
|
|
124
|
-
p.error(
|
|
126
|
+
p.error(t("components.uploadManage.createError") || "");
|
|
125
127
|
});
|
|
126
128
|
}, L = (u, d, m) => {
|
|
127
129
|
if (!d) {
|
|
128
|
-
p.error(
|
|
130
|
+
p.error(t("components.uploadManage.namePlaceholder") || "");
|
|
129
131
|
return;
|
|
130
132
|
}
|
|
131
133
|
M.request({
|
|
@@ -139,7 +141,7 @@ const He = /* @__PURE__ */ $({
|
|
|
139
141
|
}).then(() => {
|
|
140
142
|
n.refetch(), o.value = [];
|
|
141
143
|
}).catch(() => {
|
|
142
|
-
p.error(
|
|
144
|
+
p.error(t("components.uploadManage.editError") || "");
|
|
143
145
|
});
|
|
144
146
|
}, D = (u, d) => {
|
|
145
147
|
M.request({
|
|
@@ -152,15 +154,15 @@ const He = /* @__PURE__ */ $({
|
|
|
152
154
|
}).then(() => {
|
|
153
155
|
n.refetch(), o.value = [];
|
|
154
156
|
}).catch(() => {
|
|
155
|
-
p.error(
|
|
157
|
+
p.error(t("components.uploadManage.delError") || "");
|
|
156
158
|
});
|
|
157
|
-
}, v = w(() => !!(
|
|
159
|
+
}, v = w(() => !!(l.type && l.type !== "all"));
|
|
158
160
|
return () => {
|
|
159
161
|
let u, d, m;
|
|
160
162
|
return e("div", {
|
|
161
|
-
class: ["flex flex-col gap-2",
|
|
163
|
+
class: ["flex flex-col gap-2", l.page ? "h-full" : "h-500px max-h-500px"]
|
|
162
164
|
}, [e("div", {
|
|
163
|
-
class: ["flex-none flex justify-between items-center border-b border-muted p-3",
|
|
165
|
+
class: ["flex-none flex justify-between items-center border-b border-muted p-3", l.handle]
|
|
164
166
|
}, [e("div", {
|
|
165
167
|
class: "flex-none"
|
|
166
168
|
}, [e(G, {
|
|
@@ -175,19 +177,19 @@ const He = /* @__PURE__ */ $({
|
|
|
175
177
|
}
|
|
176
178
|
}, {
|
|
177
179
|
default: () => [e(x, {
|
|
178
|
-
tab:
|
|
180
|
+
tab: t("components.uploadManage.all"),
|
|
179
181
|
name: "all",
|
|
180
182
|
disabled: v.value
|
|
181
183
|
}, null), e(x, {
|
|
182
|
-
tab:
|
|
184
|
+
tab: t("components.uploadManage.image"),
|
|
183
185
|
name: "image",
|
|
184
186
|
disabled: v.value
|
|
185
187
|
}, null), e(x, {
|
|
186
|
-
tab:
|
|
188
|
+
tab: t("components.uploadManage.media"),
|
|
187
189
|
name: "media",
|
|
188
190
|
disabled: v.value
|
|
189
191
|
}, null), e(x, {
|
|
190
|
-
tab:
|
|
192
|
+
tab: t("components.uploadManage.docs"),
|
|
191
193
|
name: "docs",
|
|
192
194
|
disabled: v.value
|
|
193
195
|
}, null)]
|
|
@@ -198,7 +200,7 @@ const He = /* @__PURE__ */ $({
|
|
|
198
200
|
ghost: !0,
|
|
199
201
|
onClick: () => {
|
|
200
202
|
g.prompt({
|
|
201
|
-
title:
|
|
203
|
+
title: t("components.uploadManage.namePlaceholder") || "",
|
|
202
204
|
formSchema: [{
|
|
203
205
|
tag: N,
|
|
204
206
|
attrs: {
|
|
@@ -213,7 +215,7 @@ const He = /* @__PURE__ */ $({
|
|
|
213
215
|
renderIcon: () => e("div", {
|
|
214
216
|
class: "i-tabler:plus"
|
|
215
217
|
}, null)
|
|
216
|
-
}, P(u =
|
|
218
|
+
}, P(u = t("components.button.create")) ? u : {
|
|
217
219
|
default: () => [u]
|
|
218
220
|
}), e(c, {
|
|
219
221
|
type: "primary",
|
|
@@ -228,12 +230,12 @@ const He = /* @__PURE__ */ $({
|
|
|
228
230
|
}, {
|
|
229
231
|
default: () => [e("div", {
|
|
230
232
|
class: "flex gap-2"
|
|
231
|
-
}, [
|
|
232
|
-
}), !
|
|
233
|
+
}, [t("components.uploadManage.upload"), y.progress.value.totalPercent > 0 && `(${y.progress.value.totalPercent}%)`])]
|
|
234
|
+
}), !l.page && e(c, {
|
|
233
235
|
type: "default",
|
|
234
236
|
ghost: !0,
|
|
235
237
|
onClick: () => {
|
|
236
|
-
|
|
238
|
+
l.onClose?.();
|
|
237
239
|
},
|
|
238
240
|
renderIcon: () => e("div", {
|
|
239
241
|
class: "i-tabler:x"
|
|
@@ -250,12 +252,12 @@ const He = /* @__PURE__ */ $({
|
|
|
250
252
|
}
|
|
251
253
|
}, {
|
|
252
254
|
default: () => [e("div", {
|
|
253
|
-
class: ["grid grid-cols-3 md:grid-cols-4 text-sm items-start justify-start", n.data.value?.data?.length >= 4 && !
|
|
255
|
+
class: ["grid grid-cols-3 md:grid-cols-4 text-sm items-start justify-start", n.data.value?.data?.length >= 4 && !l.page ? " lg:grid-cols-[repeat(auto-fit,minmax(150px,1fr))]" : "lg:grid-cols-[repeat(auto-fit,minmax(150px,150px))]"]
|
|
254
256
|
}, [i.value?.folder && i.value?.folder !== n.data.value?.meta?.folder && e(T, {
|
|
255
257
|
key: `parent-${n.data.value?.meta?.folder}`,
|
|
256
258
|
type: "folder",
|
|
257
|
-
name:
|
|
258
|
-
page:
|
|
259
|
+
name: t("components.uploadManage.parentLevel"),
|
|
260
|
+
page: l.page,
|
|
259
261
|
onSelect: () => {
|
|
260
262
|
o.value = [], i.value.folder = n.data.value?.meta?.folder;
|
|
261
263
|
}
|
|
@@ -266,13 +268,13 @@ const He = /* @__PURE__ */ $({
|
|
|
266
268
|
}, {
|
|
267
269
|
default: () => a.filesize,
|
|
268
270
|
trigger: () => e(T, {
|
|
269
|
-
page:
|
|
271
|
+
page: l.page,
|
|
270
272
|
onContextmenu: (r) => {
|
|
271
273
|
h.value = a, f.value = !1, z().then(() => {
|
|
272
274
|
f.value = !0, k.value = r.clientX, C.value = r.clientY;
|
|
273
275
|
}), r.preventDefault();
|
|
274
276
|
},
|
|
275
|
-
value:
|
|
277
|
+
value: l.page ? !1 : !!o.value?.find?.((r) => r.id === a.id),
|
|
276
278
|
type: a.url ? "file" : "folder",
|
|
277
279
|
mime: a.filetype,
|
|
278
280
|
name: a.filename,
|
|
@@ -283,7 +285,7 @@ const He = /* @__PURE__ */ $({
|
|
|
283
285
|
o.value = [], n.data.value = void 0, i.value.folder = a.id;
|
|
284
286
|
return;
|
|
285
287
|
}
|
|
286
|
-
|
|
288
|
+
l.page || (r ? l.multiple ? o.value?.push(a) : o.value = [a] : l.multiple ? o.value?.splice(o.value?.indexOf(a), 1) : o.value = []);
|
|
287
289
|
}
|
|
288
290
|
}, null)
|
|
289
291
|
}))])]
|
|
@@ -297,9 +299,9 @@ const He = /* @__PURE__ */ $({
|
|
|
297
299
|
class: "w-26 mb-2"
|
|
298
300
|
}, [e(Z, null, null)]), e("div", {
|
|
299
301
|
class: "text-base"
|
|
300
|
-
}, [
|
|
302
|
+
}, [t("components.uploadManage.empty")]), e("div", {
|
|
301
303
|
class: "text-sm text-muted"
|
|
302
|
-
}, [
|
|
304
|
+
}, [t("components.uploadManage.emptyDesc")]), i.value?.folder && i.value?.folder !== n.data.value?.meta?.folder && e("div", {
|
|
303
305
|
class: "text-xs text-gray-6"
|
|
304
306
|
}, [e(c, {
|
|
305
307
|
type: "default",
|
|
@@ -307,7 +309,7 @@ const He = /* @__PURE__ */ $({
|
|
|
307
309
|
onClick: () => {
|
|
308
310
|
o.value = [], i.value.folder = n.data.value?.meta?.folder;
|
|
309
311
|
}
|
|
310
|
-
}, P(d =
|
|
312
|
+
}, P(d = t("components.uploadManage.back")) ? d : {
|
|
311
313
|
default: () => [d]
|
|
312
314
|
})])])])]), e(Q, {
|
|
313
315
|
x: k.value,
|
|
@@ -329,7 +331,7 @@ const He = /* @__PURE__ */ $({
|
|
|
329
331
|
break;
|
|
330
332
|
case "rename":
|
|
331
333
|
g.prompt({
|
|
332
|
-
title:
|
|
334
|
+
title: t("components.uploadManage.namePlaceholder"),
|
|
333
335
|
formSchema: [{
|
|
334
336
|
tag: N,
|
|
335
337
|
attrs: {
|
|
@@ -345,8 +347,8 @@ const He = /* @__PURE__ */ $({
|
|
|
345
347
|
break;
|
|
346
348
|
case "delete":
|
|
347
349
|
g.confirm({
|
|
348
|
-
title:
|
|
349
|
-
content:
|
|
350
|
+
title: t("components.uploadManage.delTitle"),
|
|
351
|
+
content: t("components.uploadManage.delDesc")
|
|
350
352
|
}).then(() => {
|
|
351
353
|
D(r?.type, r?.id);
|
|
352
354
|
});
|
|
@@ -354,51 +356,51 @@ const He = /* @__PURE__ */ $({
|
|
|
354
356
|
}
|
|
355
357
|
},
|
|
356
358
|
options: [h.value?.url && {
|
|
357
|
-
label:
|
|
359
|
+
label: t("components.button.download"),
|
|
358
360
|
key: "download",
|
|
359
361
|
icon: () => e("div", {
|
|
360
362
|
class: "i-tabler:download"
|
|
361
363
|
}, null)
|
|
362
364
|
}, {
|
|
363
|
-
label:
|
|
365
|
+
label: t("components.button.rename"),
|
|
364
366
|
key: "rename",
|
|
365
367
|
icon: () => e("div", {
|
|
366
368
|
class: "i-tabler:cursor-text"
|
|
367
369
|
}, null)
|
|
368
370
|
}, {
|
|
369
|
-
label:
|
|
371
|
+
label: t("components.button.delete"),
|
|
370
372
|
key: "delete",
|
|
371
373
|
icon: () => e("div", {
|
|
372
374
|
class: "i-tabler:trash"
|
|
373
375
|
}, null)
|
|
374
376
|
}].filter((a) => a)
|
|
375
|
-
}, null), !
|
|
377
|
+
}, null), !l.page && e("div", {
|
|
376
378
|
class: "flex justify-end gap-2 border-t border-muted p-3"
|
|
377
379
|
}, [e("div", null, [o.value?.length > 0 && e(c, {
|
|
378
380
|
type: "error",
|
|
379
381
|
secondary: !0,
|
|
380
382
|
onClick: () => {
|
|
381
383
|
g.confirm({
|
|
382
|
-
title:
|
|
383
|
-
content:
|
|
384
|
+
title: t("components.uploadManage.delTitle"),
|
|
385
|
+
content: t("components.uploadManage.delDesc")
|
|
384
386
|
}).then(() => {
|
|
385
387
|
D("file", o.value?.map((a) => a.id));
|
|
386
388
|
});
|
|
387
389
|
}
|
|
388
|
-
}, P(m =
|
|
390
|
+
}, P(m = t("components.button.delete")) ? m : {
|
|
389
391
|
default: () => [m]
|
|
390
392
|
})]), e("div", null, [e(c, {
|
|
391
393
|
type: "primary",
|
|
392
394
|
disabled: !o.value?.length,
|
|
393
395
|
onClick: () => {
|
|
394
|
-
|
|
396
|
+
l.onConfirm?.(o.value);
|
|
395
397
|
}
|
|
396
398
|
}, {
|
|
397
|
-
default: () => [
|
|
399
|
+
default: () => [t("components.button.select"), S("("), o.value?.length || 0, S(")")]
|
|
398
400
|
})])])]);
|
|
399
401
|
};
|
|
400
402
|
}
|
|
401
403
|
});
|
|
402
404
|
export {
|
|
403
|
-
|
|
405
|
+
Ke as default
|
|
404
406
|
};
|
package/dist/esm/hooks/dialog.js
CHANGED
|
@@ -12,6 +12,17 @@ import "@tanstack/vue-query";
|
|
|
12
12
|
import "@duxweb/dvha-naiveui";
|
|
13
13
|
import "@vueuse/core";
|
|
14
14
|
import "pinia";
|
|
15
|
+
import "vue3-ace-editor";
|
|
16
|
+
import "ace-builds/src-noconflict/mode-vue";
|
|
17
|
+
import "ace-builds/src-noconflict/mode-javascript";
|
|
18
|
+
import "ace-builds/src-noconflict/mode-html";
|
|
19
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
20
|
+
import "ace-builds/src-noconflict/mode-json5";
|
|
21
|
+
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
22
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
23
|
+
import "ace-builds/src-noconflict/ext-searchbox";
|
|
24
|
+
import "ace-builds/src-noconflict/ext-language_tools";
|
|
25
|
+
import "ace-builds/src-noconflict/mode-snippets";
|
|
15
26
|
import "vue-cropper";
|
|
16
27
|
import "jinrishici";
|
|
17
28
|
import "vue-draggable-plus";
|
|
@@ -30,18 +41,9 @@ import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
|
30
41
|
import "vue-command-palette";
|
|
31
42
|
import "../pages/page404.js";
|
|
32
43
|
import "@iconify-json/tabler/icons.json";
|
|
33
|
-
import "
|
|
34
|
-
import "
|
|
35
|
-
|
|
36
|
-
import "ace-builds/src-noconflict/mode-html";
|
|
37
|
-
import "ace-builds/src-noconflict/mode-json";
|
|
38
|
-
import "ace-builds/src-noconflict/mode-json5";
|
|
39
|
-
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
40
|
-
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
41
|
-
import "ace-builds/src-noconflict/ext-searchbox";
|
|
42
|
-
import "ace-builds/src-noconflict/ext-language_tools";
|
|
43
|
-
import "ace-builds/src-noconflict/mode-snippets";
|
|
44
|
-
function $() {
|
|
44
|
+
import "../components/image/elements/index.js";
|
|
45
|
+
import "fabric";
|
|
46
|
+
function or() {
|
|
45
47
|
const t = p(m), o = (r) => t(r);
|
|
46
48
|
return {
|
|
47
49
|
confirm: (r) => o({
|
|
@@ -67,5 +69,5 @@ function $() {
|
|
|
67
69
|
};
|
|
68
70
|
}
|
|
69
71
|
export {
|
|
70
|
-
|
|
72
|
+
or as useDialog
|
|
71
73
|
};
|
package/dist/esm/hooks/drawer.js
CHANGED
|
@@ -12,6 +12,17 @@ import "@tanstack/vue-query";
|
|
|
12
12
|
import "@duxweb/dvha-naiveui";
|
|
13
13
|
import "@vueuse/core";
|
|
14
14
|
import "pinia";
|
|
15
|
+
import "vue3-ace-editor";
|
|
16
|
+
import "ace-builds/src-noconflict/mode-vue";
|
|
17
|
+
import "ace-builds/src-noconflict/mode-javascript";
|
|
18
|
+
import "ace-builds/src-noconflict/mode-html";
|
|
19
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
20
|
+
import "ace-builds/src-noconflict/mode-json5";
|
|
21
|
+
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
22
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
23
|
+
import "ace-builds/src-noconflict/ext-searchbox";
|
|
24
|
+
import "ace-builds/src-noconflict/ext-language_tools";
|
|
25
|
+
import "ace-builds/src-noconflict/mode-snippets";
|
|
15
26
|
import "vue-cropper";
|
|
16
27
|
import "jinrishici";
|
|
17
28
|
import "vue-draggable-plus";
|
|
@@ -30,23 +41,14 @@ import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
|
30
41
|
import "vue-command-palette";
|
|
31
42
|
import "../pages/page404.js";
|
|
32
43
|
import "@iconify-json/tabler/icons.json";
|
|
33
|
-
import "
|
|
34
|
-
import "
|
|
35
|
-
|
|
36
|
-
import "ace-builds/src-noconflict/mode-html";
|
|
37
|
-
import "ace-builds/src-noconflict/mode-json";
|
|
38
|
-
import "ace-builds/src-noconflict/mode-json5";
|
|
39
|
-
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
40
|
-
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
41
|
-
import "ace-builds/src-noconflict/ext-searchbox";
|
|
42
|
-
import "ace-builds/src-noconflict/ext-language_tools";
|
|
43
|
-
import "ace-builds/src-noconflict/mode-snippets";
|
|
44
|
-
function W() {
|
|
44
|
+
import "../components/image/elements/index.js";
|
|
45
|
+
import "fabric";
|
|
46
|
+
function Y() {
|
|
45
47
|
const r = t(m);
|
|
46
48
|
return {
|
|
47
49
|
show: (o) => r(o)
|
|
48
50
|
};
|
|
49
51
|
}
|
|
50
52
|
export {
|
|
51
|
-
|
|
53
|
+
Y as useDrawer
|
|
52
54
|
};
|
package/dist/esm/hooks/modal.js
CHANGED
|
@@ -12,6 +12,17 @@ import "@tanstack/vue-query";
|
|
|
12
12
|
import "@duxweb/dvha-naiveui";
|
|
13
13
|
import "@vueuse/core";
|
|
14
14
|
import "pinia";
|
|
15
|
+
import "vue3-ace-editor";
|
|
16
|
+
import "ace-builds/src-noconflict/mode-vue";
|
|
17
|
+
import "ace-builds/src-noconflict/mode-javascript";
|
|
18
|
+
import "ace-builds/src-noconflict/mode-html";
|
|
19
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
20
|
+
import "ace-builds/src-noconflict/mode-json5";
|
|
21
|
+
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
22
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
23
|
+
import "ace-builds/src-noconflict/ext-searchbox";
|
|
24
|
+
import "ace-builds/src-noconflict/ext-language_tools";
|
|
25
|
+
import "ace-builds/src-noconflict/mode-snippets";
|
|
15
26
|
import "vue-cropper";
|
|
16
27
|
import { DuxModal as m } from "../components/modal/modal.js";
|
|
17
28
|
import "jinrishici";
|
|
@@ -30,23 +41,14 @@ import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
|
30
41
|
import "vue-command-palette";
|
|
31
42
|
import "../pages/page404.js";
|
|
32
43
|
import "@iconify-json/tabler/icons.json";
|
|
33
|
-
import "
|
|
34
|
-
import "
|
|
35
|
-
|
|
36
|
-
import "ace-builds/src-noconflict/mode-html";
|
|
37
|
-
import "ace-builds/src-noconflict/mode-json";
|
|
38
|
-
import "ace-builds/src-noconflict/mode-json5";
|
|
39
|
-
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
40
|
-
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
41
|
-
import "ace-builds/src-noconflict/ext-searchbox";
|
|
42
|
-
import "ace-builds/src-noconflict/ext-language_tools";
|
|
43
|
-
import "ace-builds/src-noconflict/mode-snippets";
|
|
44
|
-
function W() {
|
|
44
|
+
import "../components/image/elements/index.js";
|
|
45
|
+
import "fabric";
|
|
46
|
+
function Y() {
|
|
45
47
|
const o = t(m);
|
|
46
48
|
return {
|
|
47
49
|
show: (r) => o(r)
|
|
48
50
|
};
|
|
49
51
|
}
|
|
50
52
|
export {
|
|
51
|
-
|
|
53
|
+
Y as useModal
|
|
52
54
|
};
|
|
@@ -13,6 +13,17 @@ import "@tanstack/vue-query";
|
|
|
13
13
|
import "@duxweb/dvha-naiveui";
|
|
14
14
|
import "@vueuse/core";
|
|
15
15
|
import "pinia";
|
|
16
|
+
import "vue3-ace-editor";
|
|
17
|
+
import "ace-builds/src-noconflict/mode-vue";
|
|
18
|
+
import "ace-builds/src-noconflict/mode-javascript";
|
|
19
|
+
import "ace-builds/src-noconflict/mode-html";
|
|
20
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
21
|
+
import "ace-builds/src-noconflict/mode-json5";
|
|
22
|
+
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
23
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
24
|
+
import "ace-builds/src-noconflict/ext-searchbox";
|
|
25
|
+
import "ace-builds/src-noconflict/ext-language_tools";
|
|
26
|
+
import "ace-builds/src-noconflict/mode-snippets";
|
|
16
27
|
import "vue-cropper";
|
|
17
28
|
import "jinrishici";
|
|
18
29
|
import "vue-draggable-plus";
|
|
@@ -30,18 +41,9 @@ import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
|
30
41
|
import "vue-command-palette";
|
|
31
42
|
import "../../pages/page404.js";
|
|
32
43
|
import "@iconify-json/tabler/icons.json";
|
|
33
|
-
import "
|
|
34
|
-
import "
|
|
35
|
-
|
|
36
|
-
import "ace-builds/src-noconflict/mode-html";
|
|
37
|
-
import "ace-builds/src-noconflict/mode-json";
|
|
38
|
-
import "ace-builds/src-noconflict/mode-json5";
|
|
39
|
-
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
40
|
-
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
41
|
-
import "ace-builds/src-noconflict/ext-searchbox";
|
|
42
|
-
import "ace-builds/src-noconflict/ext-language_tools";
|
|
43
|
-
import "ace-builds/src-noconflict/mode-snippets";
|
|
44
|
-
function it() {
|
|
44
|
+
import "../../components/image/elements/index.js";
|
|
45
|
+
import "fabric";
|
|
46
|
+
function mt() {
|
|
45
47
|
return {
|
|
46
48
|
render: (t) => (e, d) => {
|
|
47
49
|
let i = h(e, t.key || "") || [];
|
|
@@ -70,5 +72,5 @@ function it() {
|
|
|
70
72
|
};
|
|
71
73
|
}
|
|
72
74
|
export {
|
|
73
|
-
|
|
75
|
+
mt as useTableColumnImage
|
|
74
76
|
};
|
|
@@ -12,6 +12,17 @@ import "@tanstack/vue-query";
|
|
|
12
12
|
import "@duxweb/dvha-naiveui";
|
|
13
13
|
import "@vueuse/core";
|
|
14
14
|
import "pinia";
|
|
15
|
+
import "vue3-ace-editor";
|
|
16
|
+
import "ace-builds/src-noconflict/mode-vue";
|
|
17
|
+
import "ace-builds/src-noconflict/mode-javascript";
|
|
18
|
+
import "ace-builds/src-noconflict/mode-html";
|
|
19
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
20
|
+
import "ace-builds/src-noconflict/mode-json5";
|
|
21
|
+
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
22
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
23
|
+
import "ace-builds/src-noconflict/ext-searchbox";
|
|
24
|
+
import "ace-builds/src-noconflict/ext-language_tools";
|
|
25
|
+
import "ace-builds/src-noconflict/mode-snippets";
|
|
15
26
|
import "vue-cropper";
|
|
16
27
|
import "clsx";
|
|
17
28
|
import "jinrishici";
|
|
@@ -30,18 +41,9 @@ import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
|
30
41
|
import "vue-command-palette";
|
|
31
42
|
import "../../pages/page404.js";
|
|
32
43
|
import "@iconify-json/tabler/icons.json";
|
|
33
|
-
import "
|
|
34
|
-
import "
|
|
35
|
-
|
|
36
|
-
import "ace-builds/src-noconflict/mode-html";
|
|
37
|
-
import "ace-builds/src-noconflict/mode-json";
|
|
38
|
-
import "ace-builds/src-noconflict/mode-json5";
|
|
39
|
-
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
40
|
-
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
41
|
-
import "ace-builds/src-noconflict/ext-searchbox";
|
|
42
|
-
import "ace-builds/src-noconflict/ext-language_tools";
|
|
43
|
-
import "ace-builds/src-noconflict/mode-snippets";
|
|
44
|
-
function D() {
|
|
44
|
+
import "../../components/image/elements/index.js";
|
|
45
|
+
import "fabric";
|
|
46
|
+
function it() {
|
|
45
47
|
return {
|
|
46
48
|
render: (t) => (i, d) => {
|
|
47
49
|
const o = typeof t.title == "function" ? t.title(i) : m(i, t.title || ""), r = typeof t.desc == "function" ? t.desc(i) : m(i, t.desc || ""), e = typeof t.image == "function" ? t.image(i) : m(i, t.image || "");
|
|
@@ -57,5 +59,5 @@ function D() {
|
|
|
57
59
|
};
|
|
58
60
|
}
|
|
59
61
|
export {
|
|
60
|
-
|
|
62
|
+
it as useTableColumnMedia
|
|
61
63
|
};
|