@duxweb/dvha-pro 1.1.3 → 1.1.5
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/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/layout/table.cjs +1 -1
- package/dist/cjs/theme/uno.css.cjs +1 -1
- package/dist/esm/components/form/drawerForm.js +30 -22
- package/dist/esm/components/form/modalForm.js +18 -10
- package/dist/esm/components/form/pageForm.js +26 -18
- package/dist/esm/components/form/pageTabForm.js +32 -24
- package/dist/esm/components/form/settingForm.js +29 -21
- package/dist/esm/components/layout/table.js +130 -119
- package/dist/esm/theme/uno.css.js +1 -1
- package/dist/types/components/form/drawerForm.d.ts +12 -0
- package/dist/types/components/form/modalForm.d.ts +12 -0
- package/dist/types/components/form/pageForm.d.ts +12 -0
- package/dist/types/components/form/pageTabForm.d.ts +12 -0
- package/dist/types/components/form/settingForm.d.ts +12 -0
- package/dist/types/components/layout/table.d.ts +6 -0
- package/dist/types/components/table/tablePage.d.ts +6 -0
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as s, ref as c, toRef as d, computed as f, createVNode as i } from "vue";
|
|
2
|
-
import { useI18n as g, useInvalidate as
|
|
3
|
-
import { useMessage as
|
|
2
|
+
import { useI18n as g, useInvalidate as y, useExtendForm as x } from "@duxweb/dvha-core";
|
|
3
|
+
import { useMessage as b, NTabs as v } from "naive-ui";
|
|
4
4
|
import "@overlastic/vue";
|
|
5
5
|
import "vue-router";
|
|
6
6
|
import "clsx";
|
|
@@ -59,9 +59,9 @@ import "unocss/preset-wind4";
|
|
|
59
59
|
import "@vee-validate/i18n/dist/locale/en.json";
|
|
60
60
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
61
61
|
import "vue-command-palette";
|
|
62
|
-
import { DuxPage as
|
|
62
|
+
import { DuxPage as S } from "../../pages/page.js";
|
|
63
63
|
import "../../pages/page404.js";
|
|
64
|
-
const
|
|
64
|
+
const Ot = /* @__PURE__ */ s({
|
|
65
65
|
name: "DuxSettingForm",
|
|
66
66
|
props: {
|
|
67
67
|
id: {
|
|
@@ -76,6 +76,12 @@ const Ct = /* @__PURE__ */ s({
|
|
|
76
76
|
data: {
|
|
77
77
|
type: Object
|
|
78
78
|
},
|
|
79
|
+
meta: {
|
|
80
|
+
type: Object
|
|
81
|
+
},
|
|
82
|
+
params: {
|
|
83
|
+
type: Object
|
|
84
|
+
},
|
|
79
85
|
onSuccess: {
|
|
80
86
|
type: Function
|
|
81
87
|
},
|
|
@@ -99,22 +105,24 @@ const Ct = /* @__PURE__ */ s({
|
|
|
99
105
|
}
|
|
100
106
|
},
|
|
101
107
|
setup(t, {
|
|
102
|
-
slots:
|
|
108
|
+
slots: o
|
|
103
109
|
}) {
|
|
104
|
-
const
|
|
105
|
-
t:
|
|
106
|
-
} = g(), a =
|
|
110
|
+
const m = c(t.defaultTab), n = d(t, "data", {}), {
|
|
111
|
+
t: r
|
|
112
|
+
} = g(), a = b(), {
|
|
107
113
|
invalidate: u
|
|
108
|
-
} =
|
|
114
|
+
} = y(), p = x({
|
|
109
115
|
id: t.id,
|
|
110
116
|
path: t.path,
|
|
111
117
|
form: n,
|
|
118
|
+
meta: t.meta,
|
|
119
|
+
params: t.params,
|
|
112
120
|
action: t.action,
|
|
113
|
-
onError: (
|
|
114
|
-
a.error(
|
|
121
|
+
onError: (e) => {
|
|
122
|
+
a.error(e.message || r("components.form.error")), t.onError?.(e);
|
|
115
123
|
},
|
|
116
|
-
onSuccess: (
|
|
117
|
-
a.success(
|
|
124
|
+
onSuccess: (e) => {
|
|
125
|
+
a.success(r("components.form.success")), t.onSuccess?.(e), t.invalidate && u(t.invalidate);
|
|
118
126
|
}
|
|
119
127
|
}), l = f(() => {
|
|
120
128
|
switch (t.size) {
|
|
@@ -127,22 +135,22 @@ const Ct = /* @__PURE__ */ s({
|
|
|
127
135
|
return "lg:max-w-2xl";
|
|
128
136
|
}
|
|
129
137
|
});
|
|
130
|
-
return () => i(
|
|
138
|
+
return () => i(S, null, {
|
|
131
139
|
default: () => [i("div", {
|
|
132
140
|
class: `flex flex-col gap-6 w-full ${l.value} mx-auto py-4`
|
|
133
|
-
}, [t.tabs ? i(
|
|
141
|
+
}, [t.tabs ? i(v, {
|
|
134
142
|
defaultValue: t.defaultTab,
|
|
135
|
-
value:
|
|
136
|
-
onUpdateValue: (
|
|
137
|
-
|
|
143
|
+
value: m.value,
|
|
144
|
+
onUpdateValue: (e) => {
|
|
145
|
+
m.value = e;
|
|
138
146
|
},
|
|
139
147
|
type: "segment"
|
|
140
148
|
}, {
|
|
141
|
-
default: () => [
|
|
142
|
-
}) :
|
|
149
|
+
default: () => [o?.default?.(p)]
|
|
150
|
+
}) : o?.default?.(p)])]
|
|
143
151
|
});
|
|
144
152
|
}
|
|
145
153
|
});
|
|
146
154
|
export {
|
|
147
|
-
|
|
155
|
+
Ot as DuxSettingForm
|
|
148
156
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useWindowSize as
|
|
4
|
-
import { NTabs as
|
|
5
|
-
import { useAction 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
|
+
import { useI18n as oe, useJsonSchema as re, useTabStore as ne } from "@duxweb/dvha-core";
|
|
3
|
+
import { useWindowSize as se } from "@vueuse/core";
|
|
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
|
+
import { useAction as fe } from "../../hooks/action.js";
|
|
6
6
|
import "@overlastic/vue";
|
|
7
7
|
import "clsx";
|
|
8
8
|
import "vue-echarts";
|
|
@@ -21,7 +21,7 @@ import "vue-cropper";
|
|
|
21
21
|
import "jinrishici";
|
|
22
22
|
import "lodash-es";
|
|
23
23
|
import "vue-draggable-plus";
|
|
24
|
-
import { DuxTableFilter as
|
|
24
|
+
import { DuxTableFilter as be } from "./filter.js";
|
|
25
25
|
import "@vee-validate/i18n";
|
|
26
26
|
import "colorizr";
|
|
27
27
|
import "echarts";
|
|
@@ -49,10 +49,10 @@ import "vee-validate";
|
|
|
49
49
|
import "vue-router";
|
|
50
50
|
import "vue-command-palette";
|
|
51
51
|
import "@duxweb/dvha-naiveui";
|
|
52
|
-
import { DuxPage as
|
|
52
|
+
import { DuxPage as ve } from "../../pages/page.js";
|
|
53
53
|
import "../../pages/page404.js";
|
|
54
|
-
import { DuxDrawerPage as
|
|
55
|
-
import { DuxTableTools as
|
|
54
|
+
import { DuxDrawerPage as L } from "../drawer/drawerPage.js";
|
|
55
|
+
import { DuxTableTools as ge } from "./tools.js";
|
|
56
56
|
import "short-unique-id";
|
|
57
57
|
import "aieditor";
|
|
58
58
|
import "@vue-flow/core";
|
|
@@ -64,9 +64,9 @@ import "../posterEditor/elements/index.js";
|
|
|
64
64
|
import "fabric";
|
|
65
65
|
import "dayjs";
|
|
66
66
|
import "@tanstack/vue-query";
|
|
67
|
-
import { useTable as
|
|
67
|
+
import { useTable as he } from "../../hooks/table.js";
|
|
68
68
|
import "pinia";
|
|
69
|
-
const
|
|
69
|
+
const Jt = /* @__PURE__ */ te({
|
|
70
70
|
name: "DuxTableLayout",
|
|
71
71
|
props: {
|
|
72
72
|
path: {
|
|
@@ -79,6 +79,9 @@ const zt = /* @__PURE__ */ $({
|
|
|
79
79
|
filterSchema: {
|
|
80
80
|
type: Array
|
|
81
81
|
},
|
|
82
|
+
filterReactive: {
|
|
83
|
+
type: Object
|
|
84
|
+
},
|
|
82
85
|
filterNumber: {
|
|
83
86
|
type: Number,
|
|
84
87
|
default: 1
|
|
@@ -119,99 +122,107 @@ const zt = /* @__PURE__ */ $({
|
|
|
119
122
|
}
|
|
120
123
|
},
|
|
121
124
|
setup(a, {
|
|
122
|
-
slots:
|
|
123
|
-
expose:
|
|
125
|
+
slots: o,
|
|
126
|
+
expose: J
|
|
124
127
|
}) {
|
|
125
|
-
const r =
|
|
128
|
+
const r = O(a, "filter", {}), U = O(a, "sorter", {}), v = p(() => a.filterReactive || {}), B = O(a, "columns", []), {
|
|
126
129
|
t: n
|
|
127
|
-
} =
|
|
128
|
-
renderAction:
|
|
129
|
-
} =
|
|
130
|
+
} = oe(), {
|
|
131
|
+
renderAction: E
|
|
132
|
+
} = fe(), l = k({
|
|
130
133
|
...r.value || {}
|
|
131
|
-
}),
|
|
134
|
+
}), s = he({
|
|
132
135
|
...a.hookTableProps,
|
|
133
136
|
path: a.path,
|
|
134
|
-
filters:
|
|
135
|
-
sorters:
|
|
137
|
+
filters: l,
|
|
138
|
+
sorters: U.value,
|
|
136
139
|
columns: B,
|
|
137
140
|
pagination: a.pagination
|
|
138
141
|
});
|
|
139
|
-
|
|
142
|
+
J(s);
|
|
140
143
|
const {
|
|
141
|
-
columns:
|
|
144
|
+
columns: R,
|
|
142
145
|
tablePagination: A,
|
|
143
|
-
table:
|
|
146
|
+
table: j,
|
|
144
147
|
onUpdateColumnSelected: D,
|
|
145
|
-
onUpdateChecked:
|
|
148
|
+
onUpdateChecked: F,
|
|
146
149
|
columnSelected: q,
|
|
147
|
-
autoRefetch:
|
|
148
|
-
autoCountdown:
|
|
149
|
-
onAutoRefetch:
|
|
150
|
-
isExporting:
|
|
151
|
-
isExportingRows:
|
|
152
|
-
isImporting:
|
|
153
|
-
onExport:
|
|
154
|
-
onExportRows:
|
|
155
|
-
onImport:
|
|
156
|
-
} =
|
|
150
|
+
autoRefetch: I,
|
|
151
|
+
autoCountdown: C,
|
|
152
|
+
onAutoRefetch: W,
|
|
153
|
+
isExporting: K,
|
|
154
|
+
isExportingRows: V,
|
|
155
|
+
isImporting: M,
|
|
156
|
+
onExport: G,
|
|
157
|
+
onExportRows: H,
|
|
158
|
+
onImport: Q
|
|
159
|
+
} = s, X = p(() => R.value.filter((t) => "title" in t && "key" in t).map((t) => ({
|
|
157
160
|
label: t.title,
|
|
158
161
|
value: t.key
|
|
159
162
|
}))), {
|
|
160
|
-
width:
|
|
161
|
-
} =
|
|
163
|
+
width: d
|
|
164
|
+
} = se(), Y = p(() => R.value.reduce((i, u) => i + (Number(u?.width) || Number(u?.minWidth) || 110), 0)), m = k({
|
|
162
165
|
show: !1
|
|
163
|
-
}), f =
|
|
166
|
+
}), f = k({
|
|
164
167
|
show: !1
|
|
165
|
-
}),
|
|
168
|
+
}), x = S(!1), Z = p(() => (a.filterSchema || []).map((t) => {
|
|
166
169
|
const {
|
|
167
170
|
label: i,
|
|
168
|
-
...
|
|
171
|
+
...u
|
|
169
172
|
} = t;
|
|
170
173
|
return {
|
|
171
|
-
tag:
|
|
174
|
+
tag: be,
|
|
172
175
|
attrs: {
|
|
173
176
|
label: i
|
|
174
177
|
},
|
|
175
|
-
children:
|
|
178
|
+
children: u
|
|
176
179
|
};
|
|
177
180
|
})), {
|
|
178
|
-
render:
|
|
179
|
-
} =
|
|
180
|
-
data:
|
|
181
|
-
}),
|
|
181
|
+
render: _
|
|
182
|
+
} = re({
|
|
183
|
+
data: p(() => Z.value)
|
|
184
|
+
}), w = p(() => ({
|
|
182
185
|
import: !1,
|
|
183
186
|
export: !0,
|
|
184
187
|
refresh: !0,
|
|
185
188
|
...a.tools
|
|
186
|
-
})), T =
|
|
187
|
-
|
|
189
|
+
})), T = S(0), b = S(null);
|
|
190
|
+
N(() => a.tabs?.map((t) => t.value), () => {
|
|
188
191
|
const t = a.tabs?.map((i) => i.value) || [];
|
|
189
192
|
if (r.value?.tab === void 0) {
|
|
190
193
|
const i = t[0];
|
|
191
194
|
i !== void 0 && (r.value.tab = i);
|
|
192
195
|
}
|
|
193
|
-
|
|
196
|
+
h(() => b.value?.syncBarPosition());
|
|
194
197
|
}, {
|
|
195
198
|
deep: !0
|
|
196
|
-
}),
|
|
197
|
-
|
|
199
|
+
}), N(() => d.value, () => {
|
|
200
|
+
h(() => {
|
|
198
201
|
b.value?.syncBarPosition();
|
|
199
202
|
});
|
|
200
203
|
});
|
|
201
|
-
const
|
|
202
|
-
const t = a.tabs?.map((
|
|
204
|
+
const P = ne(), $ = P.tabs.find((t) => t.path === P.current), ee = p(() => {
|
|
205
|
+
const t = a.tabs?.map((u) => u.value) || [], i = r.value?.tab;
|
|
203
206
|
return t.includes(i) ? i : t[0];
|
|
204
207
|
});
|
|
205
|
-
return
|
|
206
|
-
|
|
208
|
+
return ae(() => {
|
|
209
|
+
h(() => {
|
|
207
210
|
b.value?.syncBarPosition();
|
|
208
211
|
});
|
|
209
|
-
}), () =>
|
|
212
|
+
}), N(() => v.value, (t) => {
|
|
213
|
+
const i = t || {};
|
|
214
|
+
Object.keys(i).forEach((u) => {
|
|
215
|
+
const g = i[u];
|
|
216
|
+
g == null || g === "" ? delete l[u] : l[u] = g;
|
|
217
|
+
}), s.onUpdatePage?.(1);
|
|
218
|
+
}, {
|
|
219
|
+
deep: !0
|
|
220
|
+
}), () => e(ve, {
|
|
210
221
|
actions: a.actions,
|
|
211
222
|
scrollbar: !1
|
|
212
223
|
}, {
|
|
213
|
-
sideLeft: () =>
|
|
214
|
-
sideRight: () =>
|
|
224
|
+
sideLeft: () => o?.sideLeft && d.value >= 1024 ? o?.sideLeft?.() : void 0,
|
|
225
|
+
sideRight: () => o?.sideRight && d.value >= 1024 ? o?.sideRight?.() : void 0,
|
|
215
226
|
default: () => e("div", {
|
|
216
227
|
class: "flex flex-col gap-3 h-full relative"
|
|
217
228
|
}, [e("div", {
|
|
@@ -220,7 +231,7 @@ const zt = /* @__PURE__ */ $({
|
|
|
220
231
|
class: "relative top-1.5px"
|
|
221
232
|
}, [!a.tabs && e("div", {
|
|
222
233
|
class: "pt-1 text-base"
|
|
223
|
-
}, [
|
|
234
|
+
}, [$?.label]), a.tabs && e(ue, {
|
|
224
235
|
ref: b,
|
|
225
236
|
type: "bar",
|
|
226
237
|
size: "small",
|
|
@@ -229,32 +240,32 @@ const zt = /* @__PURE__ */ $({
|
|
|
229
240
|
"--n-tab-gap": "20px"
|
|
230
241
|
},
|
|
231
242
|
"default-value": a.tabs?.[0]?.value || "",
|
|
232
|
-
value:
|
|
243
|
+
value: ee.value,
|
|
233
244
|
onUpdateValue: (t) => {
|
|
234
|
-
r.value.tab = t,
|
|
245
|
+
r.value.tab = t, l.tab = t, h(() => b.value?.syncBarPosition());
|
|
235
246
|
}
|
|
236
247
|
}, {
|
|
237
|
-
default: () => [a.tabs?.map((t) => e(
|
|
248
|
+
default: () => [a.tabs?.map((t) => e(ce, {
|
|
238
249
|
name: t.value,
|
|
239
250
|
tab: t.label
|
|
240
251
|
}, null))]
|
|
241
252
|
})]), e("div", {
|
|
242
253
|
class: "flex gap-2 justify-end pb-2"
|
|
243
|
-
}, [
|
|
244
|
-
type:
|
|
254
|
+
}, [o.actions?.(), a.actions?.length > 0 && E({
|
|
255
|
+
type: d.value < 1024 ? "dropdown" : "button",
|
|
245
256
|
items: a.actions
|
|
246
257
|
})])]), e("div", {
|
|
247
258
|
class: "flex gap-2 justify-between flex-col-reverse lg:flex-row"
|
|
248
|
-
}, [(
|
|
259
|
+
}, [(d.value >= 1024 || x.value) && e("div", {
|
|
249
260
|
class: ["flex-1 flex flex-col lg:flex-row gap-2 flex-wrap"]
|
|
250
261
|
}, [e("div", {
|
|
251
262
|
key: T.value,
|
|
252
263
|
class: "contents"
|
|
253
|
-
}, [
|
|
264
|
+
}, [ie(_)])]), e("div", {
|
|
254
265
|
class: "flex justify-between gap-2"
|
|
255
266
|
}, [e("div", {
|
|
256
267
|
class: ["flex gap-2"]
|
|
257
|
-
}, [
|
|
268
|
+
}, [o?.sideLeft && d.value < 1024 && e(c, {
|
|
258
269
|
class: "flex-none",
|
|
259
270
|
secondary: !0,
|
|
260
271
|
onClick: () => {
|
|
@@ -264,7 +275,7 @@ const zt = /* @__PURE__ */ $({
|
|
|
264
275
|
icon: () => e("div", {
|
|
265
276
|
class: "i-tabler:layout-sidebar-inactive size-4"
|
|
266
277
|
}, null)
|
|
267
|
-
}),
|
|
278
|
+
}), o?.sideRight && d.value < 1024 && e(c, {
|
|
268
279
|
class: "flex-none",
|
|
269
280
|
secondary: !0,
|
|
270
281
|
onClick: () => {
|
|
@@ -276,10 +287,10 @@ const zt = /* @__PURE__ */ $({
|
|
|
276
287
|
}, null)
|
|
277
288
|
}), e("div", {
|
|
278
289
|
class: "flex-none lg:hidden"
|
|
279
|
-
}, [e(
|
|
290
|
+
}, [e(c, {
|
|
280
291
|
secondary: !0,
|
|
281
292
|
onClick: () => {
|
|
282
|
-
|
|
293
|
+
x.value = !x.value;
|
|
283
294
|
}
|
|
284
295
|
}, {
|
|
285
296
|
icon: () => e("div", {
|
|
@@ -289,13 +300,13 @@ const zt = /* @__PURE__ */ $({
|
|
|
289
300
|
class: ["flex gap-2 flex-row"]
|
|
290
301
|
}, [e("div", {
|
|
291
302
|
class: "flex lg:hidden"
|
|
292
|
-
}, [e(
|
|
303
|
+
}, [e(c, {
|
|
293
304
|
type: "primary",
|
|
294
305
|
secondary: !0,
|
|
295
306
|
onClick: () => {
|
|
296
|
-
Object.keys(
|
|
297
|
-
delete
|
|
298
|
-
}), Object.assign(
|
|
307
|
+
Object.keys(l).forEach((t) => {
|
|
308
|
+
delete l[t];
|
|
309
|
+
}), Object.assign(l, JSON.parse(JSON.stringify(r.value || {}))), Object.assign(l, JSON.parse(JSON.stringify(v.value || {}))), s.onUpdatePage?.(1);
|
|
299
310
|
}
|
|
300
311
|
}, {
|
|
301
312
|
icon: () => e("div", {
|
|
@@ -303,43 +314,43 @@ const zt = /* @__PURE__ */ $({
|
|
|
303
314
|
}, null)
|
|
304
315
|
})]), e("div", {
|
|
305
316
|
class: ["hidden lg:flex gap-2"]
|
|
306
|
-
}, [e(
|
|
317
|
+
}, [e(c, {
|
|
307
318
|
type: "primary",
|
|
308
319
|
secondary: !0,
|
|
309
320
|
onClick: () => {
|
|
310
|
-
Object.keys(
|
|
321
|
+
Object.keys(l).forEach((t) => delete l[t]), Object.assign(l, JSON.parse(JSON.stringify(r.value || {}))), Object.assign(l, JSON.parse(JSON.stringify(v.value || {}))), s.onUpdatePage?.(1);
|
|
311
322
|
}
|
|
312
323
|
}, {
|
|
313
324
|
icon: () => e("div", {
|
|
314
325
|
class: "i-tabler:search size-4"
|
|
315
326
|
}, null),
|
|
316
327
|
default: () => n("components.button.search")
|
|
317
|
-
}), e(
|
|
328
|
+
}), e(c, {
|
|
318
329
|
secondary: !0,
|
|
319
330
|
onClick: () => {
|
|
320
331
|
const t = r.value.tab;
|
|
321
332
|
Object.keys(r.value || {}).forEach((i) => {
|
|
322
333
|
i !== "tab" && delete r.value[i];
|
|
323
|
-
}), Object.keys(
|
|
324
|
-
delete
|
|
325
|
-
}), t !== void 0 && (
|
|
334
|
+
}), Object.keys(l).forEach((i) => {
|
|
335
|
+
delete l[i];
|
|
336
|
+
}), t !== void 0 && (l.tab = t), Object.assign(l, JSON.parse(JSON.stringify(v.value || {}))), s.onUpdatePage?.(1), T.value++;
|
|
326
337
|
}
|
|
327
338
|
}, {
|
|
328
339
|
icon: () => e("div", {
|
|
329
340
|
class: "i-tabler:arrow-back-up size-4"
|
|
330
341
|
}, null),
|
|
331
342
|
default: () => n("components.button.reset")
|
|
332
|
-
})])])])]),
|
|
343
|
+
})])])])]), o?.header?.(), e("div", {
|
|
333
344
|
class: "flex-1 min-h-0"
|
|
334
|
-
}, [
|
|
335
|
-
...
|
|
336
|
-
width:
|
|
345
|
+
}, [o?.default?.({
|
|
346
|
+
...s,
|
|
347
|
+
width: Y.value
|
|
337
348
|
})]), e("div", {
|
|
338
349
|
class: "flex justify-between"
|
|
339
350
|
}, [e("div", {
|
|
340
351
|
class: "flex items-center gap-0.5"
|
|
341
|
-
}, [
|
|
342
|
-
options:
|
|
352
|
+
}, [o?.bottom?.(), o?.tools?.(), e(de, {
|
|
353
|
+
options: X.value,
|
|
343
354
|
value: q.value,
|
|
344
355
|
onUpdateValue: (t) => {
|
|
345
356
|
D(t);
|
|
@@ -348,8 +359,8 @@ const zt = /* @__PURE__ */ $({
|
|
|
348
359
|
placement: "bottom-start",
|
|
349
360
|
trigger: "click"
|
|
350
361
|
}, {
|
|
351
|
-
default: () => [e(
|
|
352
|
-
trigger: () => e(
|
|
362
|
+
default: () => [e(y, null, {
|
|
363
|
+
trigger: () => e(c, {
|
|
353
364
|
quaternary: !0,
|
|
354
365
|
circle: !0,
|
|
355
366
|
"icon-placement": "right"
|
|
@@ -360,103 +371,103 @@ const zt = /* @__PURE__ */ $({
|
|
|
360
371
|
}),
|
|
361
372
|
default: () => n("components.list.columnSetting")
|
|
362
373
|
})]
|
|
363
|
-
}),
|
|
364
|
-
trigger: () => e(
|
|
374
|
+
}), w.value.export && e(y, null, {
|
|
375
|
+
trigger: () => e(c, {
|
|
365
376
|
quaternary: !0,
|
|
366
377
|
circle: !0,
|
|
367
|
-
loading:
|
|
368
|
-
onClick:
|
|
378
|
+
loading: K.value,
|
|
379
|
+
onClick: G
|
|
369
380
|
}, {
|
|
370
381
|
icon: () => e("div", {
|
|
371
382
|
class: "i-tabler:database-export size-4"
|
|
372
383
|
}, null)
|
|
373
384
|
}),
|
|
374
385
|
default: () => n("components.button.export")
|
|
375
|
-
}),
|
|
376
|
-
trigger: () => e(
|
|
386
|
+
}), w.value.import && e(y, null, {
|
|
387
|
+
trigger: () => e(c, {
|
|
377
388
|
quaternary: !0,
|
|
378
389
|
circle: !0,
|
|
379
|
-
loading:
|
|
380
|
-
onClick:
|
|
390
|
+
loading: M.value,
|
|
391
|
+
onClick: Q
|
|
381
392
|
}, {
|
|
382
393
|
icon: () => e("div", {
|
|
383
394
|
class: "i-tabler:database-import size-4"
|
|
384
395
|
}, null)
|
|
385
396
|
}),
|
|
386
397
|
default: () => n("components.button.import")
|
|
387
|
-
}),
|
|
388
|
-
trigger: () => e(
|
|
398
|
+
}), w.value.refresh && e(y, null, {
|
|
399
|
+
trigger: () => e(c, {
|
|
389
400
|
quaternary: !0,
|
|
390
401
|
circle: !0,
|
|
391
|
-
onClick:
|
|
402
|
+
onClick: W
|
|
392
403
|
}, {
|
|
393
|
-
icon: () =>
|
|
404
|
+
icon: () => I.value ? e(pe, {
|
|
394
405
|
class: "size-4",
|
|
395
406
|
type: "circle",
|
|
396
|
-
percentage:
|
|
407
|
+
percentage: C.value * 10,
|
|
397
408
|
strokeWidth: 20,
|
|
398
409
|
color: "rgba(var(--ui-color-primary))"
|
|
399
410
|
}, {
|
|
400
411
|
default: () => [e("span", {
|
|
401
412
|
class: "text-8px"
|
|
402
|
-
}, [
|
|
413
|
+
}, [C.value])]
|
|
403
414
|
}) : e("div", {
|
|
404
415
|
class: "i-tabler:refresh size-4"
|
|
405
416
|
}, null)
|
|
406
417
|
}),
|
|
407
418
|
default: () => n("components.button.autoRefresh")
|
|
408
|
-
})]), e("div", null, [a.pagination && e(
|
|
409
|
-
simple:
|
|
419
|
+
})]), e("div", null, [a.pagination && e(me, le(A.value, {
|
|
420
|
+
simple: d.value < 768
|
|
410
421
|
}), {
|
|
411
422
|
prefix: () => e("div", null, [n("components.list.total", {
|
|
412
|
-
total:
|
|
423
|
+
total: s.total.value || 0
|
|
413
424
|
})])
|
|
414
|
-
})])]), e(
|
|
415
|
-
isLoading:
|
|
416
|
-
onBatch:
|
|
417
|
-
selecteds:
|
|
418
|
-
number:
|
|
425
|
+
})])]), e(ge, {
|
|
426
|
+
isLoading: s.isBatching.value,
|
|
427
|
+
onBatch: s.onBatch,
|
|
428
|
+
selecteds: j.value.checkedRowKeys,
|
|
429
|
+
number: j.value.checkedRowKeys?.length || 0 || 0,
|
|
419
430
|
group: [[{
|
|
420
431
|
icon: "i-tabler:x",
|
|
421
432
|
onClick: () => {
|
|
422
|
-
|
|
433
|
+
F?.([]);
|
|
423
434
|
}
|
|
424
435
|
}], [{
|
|
425
436
|
label: n("components.button.export"),
|
|
426
437
|
icon: "i-tabler:file-export",
|
|
427
|
-
loading:
|
|
428
|
-
onClick:
|
|
438
|
+
loading: V.value,
|
|
439
|
+
onClick: H
|
|
429
440
|
}, ...a.batchOptions || []]]
|
|
430
|
-
}, null), e(
|
|
441
|
+
}, null), e(z, {
|
|
431
442
|
show: m.show,
|
|
432
443
|
onUpdateShow: (t) => m.show = t,
|
|
433
444
|
autoFocus: !1,
|
|
434
445
|
placement: "left"
|
|
435
446
|
}, {
|
|
436
|
-
default: () => [e(
|
|
447
|
+
default: () => [e(L, {
|
|
437
448
|
title: a.sideLeftTitle || n("components.button.sideLeft"),
|
|
438
449
|
onClose: () => m.show = !1,
|
|
439
450
|
scrollbar: !1
|
|
440
451
|
}, {
|
|
441
|
-
default: () => [
|
|
452
|
+
default: () => [o?.sideLeft?.()]
|
|
442
453
|
})]
|
|
443
|
-
}), e(
|
|
454
|
+
}), e(z, {
|
|
444
455
|
show: f.show,
|
|
445
456
|
onUpdateShow: (t) => f.show = t,
|
|
446
457
|
autoFocus: !1,
|
|
447
458
|
placement: "right"
|
|
448
459
|
}, {
|
|
449
|
-
default: () => [e(
|
|
460
|
+
default: () => [e(L, {
|
|
450
461
|
title: a.sideRightTitle || n("components.button.sideRight"),
|
|
451
462
|
onClose: () => f.show = !1,
|
|
452
463
|
scrollbar: !1
|
|
453
464
|
}, {
|
|
454
|
-
default: () => [
|
|
465
|
+
default: () => [o?.sideRight?.()]
|
|
455
466
|
})]
|
|
456
467
|
})])
|
|
457
468
|
});
|
|
458
469
|
}
|
|
459
470
|
});
|
|
460
471
|
export {
|
|
461
|
-
|
|
472
|
+
Jt as DuxTableLayout
|
|
462
473
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const r = `/* layer: properties */
|
|
2
|
-
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*, ::before, ::after, ::backdrop{--un-text-opacity:100%;--un-bg-opacity:100%;--un-from-opacity:100%;--un-divide-y-reverse:initial;--un-border-style:solid;--un-divide-x-reverse:initial;--un-divide-opacity:100%;--un-border-opacity:100%;--un-translate-x:initial;--un-translate-y:initial;--un-translate-z:initial;--un-shadow-opacity:100%;--un-
|
|
2
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*, ::before, ::after, ::backdrop{--un-text-opacity:100%;--un-bg-opacity:100%;--un-from-opacity:100%;--un-divide-y-reverse:initial;--un-border-style:solid;--un-divide-x-reverse:initial;--un-divide-opacity:100%;--un-ease:initial;--un-border-opacity:100%;--un-translate-x:initial;--un-translate-y:initial;--un-translate-z:initial;--un-shadow-opacity:100%;--un-to-opacity:100%;--un-outline-style:solid;--un-fill-opacity:100%;--un-space-y-reverse:initial;}}
|
|
3
3
|
@property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
4
4
|
@property --un-outline-style{syntax:"*";inherits:false;initial-value:solid;}
|
|
5
5
|
@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
@@ -13,6 +13,12 @@ export declare const DuxDrawerForm: import("vue").DefineComponent<import("vue").
|
|
|
13
13
|
data: {
|
|
14
14
|
type: PropType<MaybeRef<Record<string, any>>>;
|
|
15
15
|
};
|
|
16
|
+
meta: {
|
|
17
|
+
type: PropType<MaybeRef<Record<string, any>>>;
|
|
18
|
+
};
|
|
19
|
+
params: {
|
|
20
|
+
type: PropType<MaybeRef<Record<string, any>>>;
|
|
21
|
+
};
|
|
16
22
|
onClose: {
|
|
17
23
|
type: PropType<() => void>;
|
|
18
24
|
};
|
|
@@ -86,6 +92,12 @@ export declare const DuxDrawerForm: import("vue").DefineComponent<import("vue").
|
|
|
86
92
|
data: {
|
|
87
93
|
type: PropType<MaybeRef<Record<string, any>>>;
|
|
88
94
|
};
|
|
95
|
+
meta: {
|
|
96
|
+
type: PropType<MaybeRef<Record<string, any>>>;
|
|
97
|
+
};
|
|
98
|
+
params: {
|
|
99
|
+
type: PropType<MaybeRef<Record<string, any>>>;
|
|
100
|
+
};
|
|
89
101
|
onClose: {
|
|
90
102
|
type: PropType<() => void>;
|
|
91
103
|
};
|
|
@@ -13,6 +13,12 @@ export declare const DuxModalForm: import("vue").DefineComponent<import("vue").E
|
|
|
13
13
|
data: {
|
|
14
14
|
type: PropType<MaybeRef<Record<string, any>>>;
|
|
15
15
|
};
|
|
16
|
+
meta: {
|
|
17
|
+
type: PropType<MaybeRef<Record<string, any>>>;
|
|
18
|
+
};
|
|
19
|
+
params: {
|
|
20
|
+
type: PropType<MaybeRef<Record<string, any>>>;
|
|
21
|
+
};
|
|
16
22
|
onClose: {
|
|
17
23
|
type: PropType<() => void>;
|
|
18
24
|
};
|
|
@@ -86,6 +92,12 @@ export declare const DuxModalForm: import("vue").DefineComponent<import("vue").E
|
|
|
86
92
|
data: {
|
|
87
93
|
type: PropType<MaybeRef<Record<string, any>>>;
|
|
88
94
|
};
|
|
95
|
+
meta: {
|
|
96
|
+
type: PropType<MaybeRef<Record<string, any>>>;
|
|
97
|
+
};
|
|
98
|
+
params: {
|
|
99
|
+
type: PropType<MaybeRef<Record<string, any>>>;
|
|
100
|
+
};
|
|
89
101
|
onClose: {
|
|
90
102
|
type: PropType<() => void>;
|
|
91
103
|
};
|