@vrojs/element-plus 0.0.7 → 0.0.9
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/index.d.ts +5 -0
- package/dist/index.js +125 -83
- package/dist/locale/index.js +6 -7
- package/dist/locale/lang/en.d.ts +8 -0
- package/dist/locale/lang/en.js +8 -0
- package/dist/locale/lang/zh-cn.d.ts +8 -0
- package/dist/locale/lang/zh-cn.js +8 -0
- package/dist/locale/useLocale.d.ts +1 -48
- package/dist/locale/useLocale.js +16 -17
- package/dist/style/deps.js +7 -0
- package/dist/style/index.css +1 -1
- package/dist/style/index.js +7 -0
- package/dist/utils/elTableColumnProps.d.ts +149 -0
- package/dist/utils/elTableColumnProps.js +152 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +4 -2
- package/dist/vro-el-checkbox-group/index.d.ts +1 -1
- package/dist/vro-el-checkbox-group/vro-el-checkbox-group.vue.d.ts +1 -1
- package/dist/vro-el-checkbox-group/vro-el-checkbox-group.vue.js +10 -10
- package/dist/vro-el-config-provider/config.d.ts +14 -0
- package/dist/vro-el-config-provider/config.js +36 -0
- package/dist/vro-el-config-provider/index.d.ts +16 -0
- package/dist/vro-el-config-provider/index.js +8 -2
- package/dist/vro-el-config-provider/types.d.ts +7 -0
- package/dist/vro-el-config-provider/types.js +7 -0
- package/dist/vro-el-config-provider/vro-el-config-provider.vue.d.ts +9 -0
- package/dist/vro-el-config-provider/vro-el-config-provider.vue.js +11 -11
- package/dist/vro-el-file-upload/index.d.ts +6 -6
- package/dist/vro-el-file-upload/style/index.css +1 -1
- package/dist/vro-el-file-upload/types.d.ts +9 -2
- package/dist/vro-el-file-upload/vro-el-file-upload.vue.d.ts +7 -6
- package/dist/vro-el-file-upload/vro-el-file-upload.vue.js +55 -51
- package/dist/vro-el-icon/index.d.ts +28 -40
- package/dist/vro-el-icon/style/css.js +1 -0
- package/dist/vro-el-icon/style/deps.js +1 -1
- package/dist/vro-el-icon/style/index.js +1 -1
- package/dist/vro-el-icon/types.d.ts +16 -13
- package/dist/vro-el-icon/types.js +8 -1
- package/dist/vro-el-icon/vro-el-icon.vue.d.ts +18 -27
- package/dist/vro-el-icon/vro-el-icon.vue.js +27 -23
- package/dist/vro-el-image/index.d.ts +10 -4
- package/dist/vro-el-image/style/css.js +4 -0
- package/dist/vro-el-image/style/index.css +1 -0
- package/dist/vro-el-image/style/index.js +4 -0
- package/dist/vro-el-image/types.d.ts +35 -0
- package/dist/vro-el-image/types.js +24 -1
- package/dist/vro-el-image/utils.d.ts +1 -1
- package/dist/vro-el-image/vro-el-image.vue.d.ts +7 -2
- package/dist/vro-el-image/vro-el-image.vue.js +55 -24
- package/dist/vro-el-image-upload/index.d.ts +1 -1
- package/dist/vro-el-image-upload/style/css.js +4 -0
- package/dist/vro-el-image-upload/style/index.css +1 -1
- package/dist/vro-el-image-upload/style/index.js +4 -0
- package/dist/vro-el-image-upload/types.d.ts +24 -7
- package/dist/vro-el-image-upload/types.js +21 -7
- package/dist/vro-el-image-upload/vro-el-image-upload.vue.d.ts +1 -1
- package/dist/vro-el-image-upload/vro-el-image-upload.vue.js +82 -68
- package/dist/vro-el-radio-group/index.d.ts +1 -1
- package/dist/vro-el-radio-group/vro-el-radio-group.vue.d.ts +1 -1
- package/dist/vro-el-radio-group/vro-el-radio-group.vue.js +12 -12
- package/dist/vro-el-schema-filter/index.d.ts +27 -31
- package/dist/vro-el-schema-filter/style/css.js +5 -0
- package/dist/vro-el-schema-filter/style/index.css +1 -1
- package/dist/vro-el-schema-filter/style/index.js +5 -0
- package/dist/vro-el-schema-filter/types.d.ts +17 -0
- package/dist/vro-el-schema-filter/vro-el-schema-filter.vue.d.ts +38 -43
- package/dist/vro-el-schema-filter/vro-el-schema-filter.vue.js +63 -44
- package/dist/vro-el-schema-form/index.d.ts +16 -18
- package/dist/vro-el-schema-form/style/css.js +5 -0
- package/dist/vro-el-schema-form/style/index.css +1 -1
- package/dist/vro-el-schema-form/style/index.js +5 -0
- package/dist/vro-el-schema-form/types.d.ts +66 -7
- package/dist/vro-el-schema-form/useVroElSchemaForm.d.ts +39 -40
- package/dist/vro-el-schema-form/useVroElSchemaForm.js +15 -13
- package/dist/vro-el-schema-form/vro-el-schema-form.vue.d.ts +11 -13
- package/dist/vro-el-schema-form/vro-el-schema-form.vue.js +79 -79
- package/dist/vro-el-schema-form-dialog/function-call.js +10 -7
- package/dist/vro-el-schema-form-dialog/index.d.ts +111 -142
- package/dist/vro-el-schema-form-dialog/style/css.js +5 -0
- package/dist/vro-el-schema-form-dialog/style/index.css +1 -1
- package/dist/vro-el-schema-form-dialog/style/index.js +5 -0
- package/dist/vro-el-schema-form-dialog/types.d.ts +25 -16
- package/dist/vro-el-schema-form-dialog/types.js +6 -11
- package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.d.ts +92 -113
- package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.js +83 -87
- package/dist/vro-el-schema-form-drawer/function-call.d.ts +4 -0
- package/dist/vro-el-schema-form-drawer/function-call.js +20 -0
- package/dist/vro-el-schema-form-drawer/index.d.ts +2207 -0
- package/dist/vro-el-schema-form-drawer/index.js +16 -0
- package/dist/vro-el-schema-form-drawer/injection.d.ts +9 -0
- package/dist/vro-el-schema-form-drawer/injection.js +9 -0
- package/dist/vro-el-schema-form-drawer/style/css.d.ts +0 -0
- package/dist/vro-el-schema-form-drawer/style/css.js +24 -0
- package/dist/vro-el-schema-form-drawer/style/deps.d.ts +0 -0
- package/dist/vro-el-schema-form-drawer/style/deps.js +24 -0
- package/dist/vro-el-schema-form-drawer/style/index.css +1 -0
- package/dist/vro-el-schema-form-drawer/style/index.d.ts +0 -0
- package/dist/vro-el-schema-form-drawer/style/index.js +48 -0
- package/dist/vro-el-schema-form-drawer/types.d.ts +110 -0
- package/dist/vro-el-schema-form-drawer/types.js +75 -0
- package/dist/vro-el-schema-form-drawer/useVroElSchemaFormDrawer.d.ts +14 -0
- package/dist/vro-el-schema-form-drawer/useVroElSchemaFormDrawer.js +18 -0
- package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue.d.ts +1832 -0
- package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue.js +134 -0
- package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue2.js +4 -0
- package/dist/vro-el-select/index.d.ts +11 -11
- package/dist/vro-el-select/vro-el-select.vue.d.ts +11 -11
- package/dist/vro-el-select/vro-el-select.vue.js +11 -11
- package/dist/vro-el-skeleton/index.d.ts +9 -73
- package/dist/vro-el-skeleton/style/index.css +1 -1
- package/dist/vro-el-skeleton/types.d.ts +32 -24
- package/dist/vro-el-skeleton/types.js +3 -23
- package/dist/vro-el-skeleton/vro-el-skeleton.vue.d.ts +7 -48
- package/dist/vro-el-skeleton/vro-el-skeleton.vue.js +48 -46
- package/dist/vro-el-table/createUseVroElTable.d.ts +7 -0
- package/dist/vro-el-table/createUseVroElTable.js +7 -0
- package/dist/vro-el-table/index.js +13 -0
- package/dist/vro-el-table/style/css.d.ts +0 -0
- package/dist/vro-el-table/style/css.js +29 -0
- package/dist/vro-el-table/style/deps.d.ts +0 -0
- package/dist/vro-el-table/style/deps.js +28 -0
- package/dist/vro-el-table/style/index.css +1 -0
- package/dist/vro-el-table/style/index.d.ts +0 -0
- package/dist/vro-el-table/style/index.js +57 -0
- package/dist/vro-el-table/types.d.ts +97 -0
- package/dist/vro-el-table/types.js +66 -0
- package/dist/vro-el-table/useVroElTable.d.ts +44 -0
- package/dist/vro-el-table/useVroElTable.js +49 -0
- package/dist/vro-el-table/vro-el-table.vue.js +94 -0
- package/dist/vro-el-table/vro-el-table.vue2.js +4 -0
- package/dist/vro-el-table-actions-column/index.d.ts +269 -0
- package/dist/vro-el-table-actions-column/index.js +9 -0
- package/dist/vro-el-table-actions-column/style/css.d.ts +0 -0
- package/dist/vro-el-table-actions-column/style/css.js +4 -0
- package/dist/vro-el-table-actions-column/style/deps.d.ts +0 -0
- package/dist/vro-el-table-actions-column/style/deps.js +5 -0
- package/dist/vro-el-table-actions-column/style/index.css +1 -0
- package/dist/vro-el-table-actions-column/style/index.d.ts +0 -0
- package/dist/vro-el-table-actions-column/style/index.js +9 -0
- package/dist/vro-el-table-actions-column/types.d.ts +139 -0
- package/dist/vro-el-table-actions-column/types.js +37 -0
- package/dist/vro-el-table-actions-column/vro-el-table-actions-column.vue.d.ts +167 -0
- package/dist/vro-el-table-actions-column/vro-el-table-actions-column.vue.js +101 -0
- package/dist/vro-el-table-actions-column/vro-el-table-actions-column.vue2.js +4 -0
- package/dist/vro-el-table-column/index.d.ts +257 -0
- package/dist/vro-el-table-column/index.js +9 -0
- package/dist/vro-el-table-column/style/css.d.ts +0 -0
- package/dist/vro-el-table-column/style/css.js +6 -0
- package/dist/vro-el-table-column/style/deps.d.ts +0 -0
- package/dist/vro-el-table-column/style/deps.js +1 -0
- package/dist/vro-el-table-column/style/index.css +1 -0
- package/dist/vro-el-table-column/style/index.d.ts +0 -0
- package/dist/vro-el-table-column/style/index.js +7 -0
- package/dist/vro-el-table-column/types.d.ts +141 -0
- package/dist/vro-el-table-column/types.js +43 -0
- package/dist/vro-el-table-column/vro-el-table-column.vue.d.ts +161 -0
- package/dist/vro-el-table-column/vro-el-table-column.vue.js +66 -0
- package/dist/vro-el-table-column/vro-el-table-column.vue2.js +4 -0
- package/dist/vro-el-table-column-group/index.d.ts +23 -0
- package/dist/vro-el-table-column-group/index.js +13 -0
- package/dist/vro-el-table-column-group/style/css.d.ts +0 -0
- package/dist/vro-el-table-column-group/style/css.js +9 -0
- package/dist/vro-el-table-column-group/style/deps.d.ts +0 -0
- package/dist/vro-el-table-column-group/style/deps.js +5 -0
- package/dist/vro-el-table-column-group/style/index.d.ts +0 -0
- package/dist/vro-el-table-column-group/style/index.js +14 -0
- package/dist/vro-el-table-column-group/types.d.ts +87 -0
- package/dist/vro-el-table-column-group/types.js +12 -0
- package/dist/vro-el-table-column-group/useVroElTableColumnGroup.d.ts +2 -0
- package/dist/vro-el-table-column-group/useVroElTableColumnGroup.js +10 -0
- package/dist/vro-el-table-column-group/vro-el-table-column-group.vue.d.ts +14 -0
- package/dist/vro-el-table-column-group/vro-el-table-column-group.vue.js +29 -0
- package/dist/vro-el-table-column-group/vro-el-table-column-group.vue2.js +4 -0
- package/dist/vro-el-table-column-group/vroElTableColumnGroupColumnManager.d.ts +2 -0
- package/dist/vro-el-table-column-group/vroElTableColumnGroupColumnManager.js +9 -0
- package/dist/vro-el-tags/index.d.ts +234 -187
- package/dist/vro-el-tags/style/css.js +1 -0
- package/dist/vro-el-tags/style/index.css +1 -0
- package/dist/vro-el-tags/style/index.js +1 -0
- package/dist/vro-el-tags/types.d.ts +37 -1
- package/dist/vro-el-tags/types.js +17 -1
- package/dist/vro-el-tags/vro-el-tags.vue.d.ts +219 -8
- package/dist/vro-el-tags/vro-el-tags.vue.js +55 -45
- package/dist/vro-el-tree/index.d.ts +3235 -32
- package/dist/vro-el-tree/style/index.css +1 -1
- package/dist/vro-el-tree/types.d.ts +124 -5
- package/dist/vro-el-tree/types.js +12 -6
- package/dist/vro-el-tree/vro-el-tree.vue.d.ts +6020 -20
- package/dist/vro-el-tree/vro-el-tree.vue.js +54 -36
- package/package.json +6 -6
|
@@ -1,51 +1,53 @@
|
|
|
1
|
-
import { defineComponent as h, computed as
|
|
2
|
-
import { formatMessage as
|
|
3
|
-
import { VroLoading as
|
|
4
|
-
import { ElResult as
|
|
5
|
-
import { useLocale as
|
|
6
|
-
import { vroElSkeletonProps as
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as h, computed as v, createElementBlock as g, openBlock as p, normalizeStyle as B, renderSlot as l, createElementVNode as n, createVNode as i, unref as t, mergeProps as E, toDisplayString as a, withCtx as m, createTextVNode as d, createBlock as T, createCommentVNode as S } from "vue";
|
|
2
|
+
import { formatMessage as V } from "@daysnap/utils";
|
|
3
|
+
import { VroLoading as C } from "@vrojs/base";
|
|
4
|
+
import { ElResult as D, ElButton as c, ElEmpty as $ } from "element-plus";
|
|
5
|
+
import { useLocale as H } from "../locale/useLocale.js";
|
|
6
|
+
import { vroElSkeletonProps as N } from "./types.js";
|
|
7
|
+
const b = { class: "vro-el-skeleton-state vro-el-skeleton-loading" }, P = { class: "vro-el-skeleton-description" }, w = { class: "vro-el-skeleton-state" }, z = { class: "vro-el-skeleton-state" }, F = /* @__PURE__ */ h({
|
|
8
8
|
name: "VroElSkeleton",
|
|
9
9
|
__name: "vro-el-skeleton",
|
|
10
|
-
props:
|
|
10
|
+
props: N,
|
|
11
11
|
emits: ["refresh"],
|
|
12
|
-
setup(
|
|
13
|
-
const f =
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
setup(k, { emit: y }) {
|
|
13
|
+
const f = y, r = k, { t: o } = H(), u = v(() => {
|
|
14
|
+
if (r.minHeight !== void 0)
|
|
15
|
+
return {
|
|
16
|
+
"--vro-el-skeleton-min-height": typeof r.minHeight == "number" ? `${r.minHeight}px` : r.minHeight
|
|
17
|
+
};
|
|
18
|
+
}), s = () => {
|
|
16
19
|
f("refresh");
|
|
17
20
|
};
|
|
18
|
-
return (e,
|
|
21
|
+
return (e, L) => (p(), g("div", {
|
|
19
22
|
class: "vro-el-skeleton",
|
|
20
|
-
style:
|
|
23
|
+
style: B(u.value)
|
|
21
24
|
}, [
|
|
22
|
-
e.loading ?
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
type:
|
|
26
|
-
size:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
l("p", H, p(e.loadingDescription ?? o(t)("skeleton.loadingDescription")), 1)
|
|
25
|
+
e.loading ? l(e.$slots, "loading", { key: 0 }, () => [
|
|
26
|
+
n("div", b, [
|
|
27
|
+
i(t(C), E({
|
|
28
|
+
type: "circular",
|
|
29
|
+
size: "32"
|
|
30
|
+
}, e.loadingProps), null, 16),
|
|
31
|
+
n("p", P, a(e.loadingDescription ?? t(o)("skeleton.loadingDescription")), 1)
|
|
30
32
|
])
|
|
31
|
-
]) : e.error ?
|
|
33
|
+
]) : e.error ? l(e.$slots, "error", {
|
|
32
34
|
key: 1,
|
|
33
35
|
error: e.error,
|
|
34
|
-
refresh:
|
|
36
|
+
refresh: s
|
|
35
37
|
}, () => [
|
|
36
|
-
|
|
37
|
-
|
|
38
|
+
n("div", w, [
|
|
39
|
+
i(t(D), {
|
|
38
40
|
icon: "error",
|
|
39
|
-
title: e.errorTitle ?? o
|
|
40
|
-
"sub-title":
|
|
41
|
+
title: e.errorTitle ?? t(o)("skeleton.errorTitle"),
|
|
42
|
+
"sub-title": t(V)(e.error)
|
|
41
43
|
}, {
|
|
42
|
-
extra:
|
|
43
|
-
|
|
44
|
+
extra: m(() => [
|
|
45
|
+
i(t(c), {
|
|
44
46
|
type: "primary",
|
|
45
|
-
onClick:
|
|
47
|
+
onClick: s
|
|
46
48
|
}, {
|
|
47
|
-
default:
|
|
48
|
-
d(
|
|
49
|
+
default: m(() => [
|
|
50
|
+
d(a(e.errorBtnText ?? t(o)("skeleton.errorBtnText")), 1)
|
|
49
51
|
]),
|
|
50
52
|
_: 1
|
|
51
53
|
})
|
|
@@ -53,33 +55,33 @@ const z = { class: "vro-el-skeleton__state vro-el-skeleton__loading" }, H = { cl
|
|
|
53
55
|
_: 1
|
|
54
56
|
}, 8, ["title", "sub-title"])
|
|
55
57
|
])
|
|
56
|
-
]) : e.empty ?
|
|
58
|
+
]) : e.empty ? l(e.$slots, "empty", {
|
|
57
59
|
key: 2,
|
|
58
|
-
refresh:
|
|
60
|
+
refresh: s
|
|
59
61
|
}, () => [
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
description: e.emptyDescription ?? o
|
|
62
|
+
n("div", z, [
|
|
63
|
+
i(t($), {
|
|
64
|
+
description: e.emptyDescription ?? t(o)("skeleton.emptyDescription")
|
|
63
65
|
}, {
|
|
64
|
-
default:
|
|
65
|
-
e.showEmptyBtn ? (
|
|
66
|
+
default: m(() => [
|
|
67
|
+
e.showEmptyBtn ? (p(), T(t(c), {
|
|
66
68
|
key: 0,
|
|
67
69
|
type: "primary",
|
|
68
|
-
onClick:
|
|
70
|
+
onClick: s
|
|
69
71
|
}, {
|
|
70
|
-
default:
|
|
71
|
-
d(
|
|
72
|
+
default: m(() => [
|
|
73
|
+
d(a(e.emptyBtnText ?? t(o)("skeleton.emptyBtnText")), 1)
|
|
72
74
|
]),
|
|
73
75
|
_: 1
|
|
74
|
-
})) :
|
|
76
|
+
})) : S("", !0)
|
|
75
77
|
]),
|
|
76
78
|
_: 1
|
|
77
79
|
}, 8, ["description"])
|
|
78
80
|
])
|
|
79
|
-
]) :
|
|
81
|
+
]) : l(e.$slots, "default", { key: 3 })
|
|
80
82
|
], 4));
|
|
81
83
|
}
|
|
82
84
|
});
|
|
83
85
|
export {
|
|
84
|
-
|
|
86
|
+
F as default
|
|
85
87
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { VroElSchemaFormSchema } from '../vro-el-schema-form';
|
|
2
|
+
import { VroElTableRequest } from './types';
|
|
3
|
+
import { UseVroElTableOptions, UseVroElTableRawColumns, useVroElTable } from './useVroElTable';
|
|
4
|
+
export interface CreateUseVroElTable<Row extends Record<string, any> = any> {
|
|
5
|
+
<R extends VroElSchemaFormSchema>(rowSchema: (() => R) | R, rawColumns: UseVroElTableRawColumns<Row>, request: VroElTableRequest<Row>, options?: UseVroElTableOptions<Row>): ReturnType<typeof useVroElTable<Row, R>>;
|
|
6
|
+
}
|
|
7
|
+
export declare function createUseVroElTable<Row extends Record<string, any> = any>(): CreateUseVroElTable<Row>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { withInstall as o } from "@vrojs/base";
|
|
2
|
+
import r from "./vro-el-table.vue.js";
|
|
3
|
+
import { createUseVroElTable as f } from "./createUseVroElTable.js";
|
|
4
|
+
import { vroElTableProps as s } from "./types.js";
|
|
5
|
+
import { useVroElTable as i } from "./useVroElTable.js";
|
|
6
|
+
const t = o(r);
|
|
7
|
+
export {
|
|
8
|
+
t as VroElTable,
|
|
9
|
+
f as createUseVroElTable,
|
|
10
|
+
t as default,
|
|
11
|
+
i as useVroElTable,
|
|
12
|
+
s as vroElTableProps
|
|
13
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import '../../style/base.css';
|
|
2
|
+
import '../../vro-el-file-upload/style/index.css';
|
|
3
|
+
import '../../vro-el-image-upload/style/index.css';
|
|
4
|
+
import '../../vro-el-image/style/index.css';
|
|
5
|
+
import '../../vro-el-schema-filter/style/index.css';
|
|
6
|
+
import '../../vro-el-schema-form/style/index.css';
|
|
7
|
+
import '../../vro-el-table-actions-column/style/index.css';
|
|
8
|
+
import '../../vro-el-table-column/style/index.css';
|
|
9
|
+
import './index.css';
|
|
10
|
+
import '../../vro-el-tags/style/index.css';
|
|
11
|
+
import '../../vro-el-tree/style/index.css';
|
|
12
|
+
/* empty css */
|
|
13
|
+
/* empty css */
|
|
14
|
+
/* empty css */
|
|
15
|
+
import "@vrojs/base/src/vro-loading/style/css";
|
|
16
|
+
import "@vrojs/base/src/vro-icon/style/css";
|
|
17
|
+
/* empty css */
|
|
18
|
+
/* empty css */
|
|
19
|
+
/* empty css */
|
|
20
|
+
/* empty css */
|
|
21
|
+
/* empty css */
|
|
22
|
+
/* empty css */
|
|
23
|
+
/* empty css */
|
|
24
|
+
/* empty css */
|
|
25
|
+
/* empty css */
|
|
26
|
+
/* empty css */
|
|
27
|
+
/* empty css */
|
|
28
|
+
/* empty css */
|
|
29
|
+
/* empty css */
|
|
File without changes
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import "element-plus/es/components/checkbox-group/style/css";
|
|
2
|
+
import "element-plus/es/components/checkbox/style/css";
|
|
3
|
+
import "element-plus/es/components/button/style/css";
|
|
4
|
+
import "element-plus/es/components/icon/style/css";
|
|
5
|
+
import "element-plus/es/components/image/style/css";
|
|
6
|
+
import "element-plus/es/components/loading/style/css";
|
|
7
|
+
import "element-plus/es/components/radio-group/style/css";
|
|
8
|
+
import "element-plus/es/components/radio/style/css";
|
|
9
|
+
import "element-plus/es/components/option/style/css";
|
|
10
|
+
import "element-plus/es/components/select/style/css";
|
|
11
|
+
import "element-plus/es/components/input/style/css";
|
|
12
|
+
import "element-plus/es/components/tag/style/css";
|
|
13
|
+
import "element-plus/es/components/tree/style/css";
|
|
14
|
+
import "element-plus/es/components/cascader/style/css";
|
|
15
|
+
import "element-plus/es/components/col/style/css";
|
|
16
|
+
import "element-plus/es/components/date-picker/style/css";
|
|
17
|
+
import "element-plus/es/components/divider/style/css";
|
|
18
|
+
import "element-plus/es/components/form-item/style/css";
|
|
19
|
+
import "element-plus/es/components/form/style/css";
|
|
20
|
+
import "element-plus/es/components/input-number/style/css";
|
|
21
|
+
import "element-plus/es/components/row/style/css";
|
|
22
|
+
import "element-plus/es/components/tree-select/style/css";
|
|
23
|
+
import "element-plus/es/components/dropdown-item/style/css";
|
|
24
|
+
import "element-plus/es/components/dropdown-menu/style/css";
|
|
25
|
+
import "element-plus/es/components/dropdown/style/css";
|
|
26
|
+
import "element-plus/es/components/table-column/style/css";
|
|
27
|
+
import "element-plus/es/components/pagination/style/css";
|
|
28
|
+
import "element-plus/es/components/table/style/css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root,:host{--vro-el-table-gap: 16px;--vro-el-table-padding: 16px;--vro-el-table-inner-gap: var(--vro-el-table-gap)}.vro-el-table{display:flex;flex-direction:column;width:100%;box-sizing:border-box;gap:var(--vro-el-table-gap)}.vro-el-table .el-table-column--selection{line-height:normal}.vro-el-table .el-table__expand-icon{display:flex;align-items:center;justify-content:center}.vro-el-table-inner{flex:1;position:relative;background-color:var(--el-bg-color);padding:var(--vro-el-table-padding);display:flex;flex-direction:column;gap:var(--vro-el-table-inner-gap)}.vro-el-table-header{display:flex;align-items:center;flex-wrap:wrap}.vro-el-table-header h2{font-size:16px}.vro-el-table-actions{flex-shrink:0;margin-left:auto}.vro-el-table-content{flex:1}.vro-el-table-content .el-table{width:100%;--el-table-bg-color: transparent}.vro-el-table-content .el-table__header{--el-table-header-bg-color: var(--el-bg-color-page);--el-table-header-text-color: var(--el-text-color-primary)}.vro-el-table-content .el-table__body-wrapper .cell{line-height:1.4}.vro-el-table-content .el-table__body-wrapper strong{font-weight:700;font-size:14px}.vro-el-table-content .el-table__body-wrapper dl dt{font-weight:700;margin-bottom:8px;font-size:14px}.vro-el-table-content .el-table__body-wrapper dl dt:last-child{margin-bottom:0}.vro-el-table-content .el-table__body-wrapper dl dd{margin-bottom:4px}.vro-el-table-content .el-table__body-wrapper dl dd:last-of-type{margin-bottom:0}.vro-el-table-content .el-table__body-wrapper ul li{margin-bottom:4px}.vro-el-table-content .el-table__body-wrapper ul li:last-of-type{margin-bottom:0}.vro-el-table-pagination{justify-content:flex-end}
|
|
File without changes
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import '../../style/base.css';
|
|
2
|
+
import '../../vro-el-file-upload/style/index.css';
|
|
3
|
+
import '../../vro-el-image-upload/style/index.css';
|
|
4
|
+
import '../../vro-el-image/style/index.css';
|
|
5
|
+
import '../../vro-el-schema-filter/style/index.css';
|
|
6
|
+
import '../../vro-el-schema-form/style/index.css';
|
|
7
|
+
import '../../vro-el-table-actions-column/style/index.css';
|
|
8
|
+
import '../../vro-el-table-column/style/index.css';
|
|
9
|
+
import './index.css';
|
|
10
|
+
import '../../vro-el-tags/style/index.css';
|
|
11
|
+
import '../../vro-el-tree/style/index.css';
|
|
12
|
+
import "element-plus/es/components/checkbox-group/style/css";
|
|
13
|
+
import "element-plus/es/components/checkbox/style/css";
|
|
14
|
+
import "element-plus/es/components/button/style/css";
|
|
15
|
+
import "element-plus/es/components/icon/style/css";
|
|
16
|
+
import "element-plus/es/components/image/style/css";
|
|
17
|
+
import "element-plus/es/components/loading/style/css";
|
|
18
|
+
import "element-plus/es/components/radio-group/style/css";
|
|
19
|
+
import "element-plus/es/components/radio/style/css";
|
|
20
|
+
import "element-plus/es/components/option/style/css";
|
|
21
|
+
import "element-plus/es/components/select/style/css";
|
|
22
|
+
import "element-plus/es/components/input/style/css";
|
|
23
|
+
import "element-plus/es/components/tag/style/css";
|
|
24
|
+
import "element-plus/es/components/tree/style/css";
|
|
25
|
+
import "element-plus/es/components/cascader/style/css";
|
|
26
|
+
import "element-plus/es/components/col/style/css";
|
|
27
|
+
import "element-plus/es/components/date-picker/style/css";
|
|
28
|
+
import "element-plus/es/components/divider/style/css";
|
|
29
|
+
import "element-plus/es/components/form-item/style/css";
|
|
30
|
+
import "element-plus/es/components/form/style/css";
|
|
31
|
+
import "element-plus/es/components/input-number/style/css";
|
|
32
|
+
import "element-plus/es/components/row/style/css";
|
|
33
|
+
import "element-plus/es/components/tree-select/style/css";
|
|
34
|
+
import "element-plus/es/components/dropdown-item/style/css";
|
|
35
|
+
import "element-plus/es/components/dropdown-menu/style/css";
|
|
36
|
+
import "element-plus/es/components/dropdown/style/css";
|
|
37
|
+
import "element-plus/es/components/table-column/style/css";
|
|
38
|
+
import "element-plus/es/components/pagination/style/css";
|
|
39
|
+
import "element-plus/es/components/table/style/css";
|
|
40
|
+
/* empty css */
|
|
41
|
+
/* empty css */
|
|
42
|
+
/* empty css */
|
|
43
|
+
import "@vrojs/base/src/vro-loading/style/css";
|
|
44
|
+
import "@vrojs/base/src/vro-icon/style/css";
|
|
45
|
+
/* empty css */
|
|
46
|
+
/* empty css */
|
|
47
|
+
/* empty css */
|
|
48
|
+
/* empty css */
|
|
49
|
+
/* empty css */
|
|
50
|
+
/* empty css */
|
|
51
|
+
/* empty css */
|
|
52
|
+
/* empty css */
|
|
53
|
+
/* empty css */
|
|
54
|
+
/* empty css */
|
|
55
|
+
/* empty css */
|
|
56
|
+
/* empty css */
|
|
57
|
+
/* empty css */
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { PaginationProps, TableProps } from 'element-plus';
|
|
2
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import { VroElSchemaFilterProps } from '../vro-el-schema-filter';
|
|
4
|
+
import { VroElTableColumnGroupColumn } from '../vro-el-table-column-group';
|
|
5
|
+
export interface VroElTableRequestPayload {
|
|
6
|
+
currentPage?: number;
|
|
7
|
+
pageSize?: number;
|
|
8
|
+
query?: Record<string, any>;
|
|
9
|
+
}
|
|
10
|
+
export interface VroElTableRequest<T = any> {
|
|
11
|
+
(state: [number, number], query: any): Promise<[T[], number]>;
|
|
12
|
+
}
|
|
13
|
+
export interface VroElTableEmits {
|
|
14
|
+
request: [payload?: VroElTableRequestPayload];
|
|
15
|
+
'selection-change': [selection: any[]];
|
|
16
|
+
}
|
|
17
|
+
export interface VroElTableSlots {
|
|
18
|
+
/**
|
|
19
|
+
* 自定义表格列内容,追加在 columns 渲染的列之后。
|
|
20
|
+
*/
|
|
21
|
+
default?: () => any;
|
|
22
|
+
/**
|
|
23
|
+
* 自定义头部标题区域。
|
|
24
|
+
*/
|
|
25
|
+
title?: () => any;
|
|
26
|
+
/**
|
|
27
|
+
* 自定义头部操作区域,追加在刷新按钮之后。
|
|
28
|
+
*/
|
|
29
|
+
actions?: () => any;
|
|
30
|
+
/**
|
|
31
|
+
* 自定义表格内部前置列内容,渲染在 columns 之前。
|
|
32
|
+
*/
|
|
33
|
+
'content-prefix'?: () => any;
|
|
34
|
+
}
|
|
35
|
+
export declare const vroElTableProps: {
|
|
36
|
+
/**
|
|
37
|
+
* 是否启用筛选区。
|
|
38
|
+
*
|
|
39
|
+
* 当 filterProps.schema 为空时不会渲染筛选区。
|
|
40
|
+
*/
|
|
41
|
+
filterable: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* 筛选区属性,透传给 VroElSchemaFilter。
|
|
47
|
+
*/
|
|
48
|
+
filterProps: PropType<Partial<VroElSchemaFilterProps>>;
|
|
49
|
+
/**
|
|
50
|
+
* 表格列配置。
|
|
51
|
+
*/
|
|
52
|
+
columns: {
|
|
53
|
+
type: PropType<VroElTableColumnGroupColumn[]>;
|
|
54
|
+
default: () => never[];
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* 表格数据。
|
|
58
|
+
*/
|
|
59
|
+
data: {
|
|
60
|
+
type: PropType<any[]>;
|
|
61
|
+
default: () => never[];
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* 表格和筛选区 loading 状态。
|
|
65
|
+
*/
|
|
66
|
+
loading: BooleanConstructor;
|
|
67
|
+
/**
|
|
68
|
+
* 表格属性,透传给 ElTable。
|
|
69
|
+
*/
|
|
70
|
+
tableProps: PropType<Partial<TableProps<any>>>;
|
|
71
|
+
/**
|
|
72
|
+
* 是否启用分页。
|
|
73
|
+
*/
|
|
74
|
+
pageable: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* 分页属性,透传给 ElPagination。
|
|
80
|
+
*/
|
|
81
|
+
paginationProps: PropType<Partial<PaginationProps>>;
|
|
82
|
+
/**
|
|
83
|
+
* 是否显示刷新按钮。
|
|
84
|
+
*/
|
|
85
|
+
showRefresh: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* 是否显示头部区域。
|
|
91
|
+
*/
|
|
92
|
+
showHeader: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
export type VroElTableProps = ExtractPropTypes<typeof vroElTableProps>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import "element-plus";
|
|
2
|
+
const t = {
|
|
3
|
+
/**
|
|
4
|
+
* 是否启用筛选区。
|
|
5
|
+
*
|
|
6
|
+
* 当 filterProps.schema 为空时不会渲染筛选区。
|
|
7
|
+
*/
|
|
8
|
+
filterable: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: !0
|
|
11
|
+
},
|
|
12
|
+
/**
|
|
13
|
+
* 筛选区属性,透传给 VroElSchemaFilter。
|
|
14
|
+
*/
|
|
15
|
+
filterProps: Object,
|
|
16
|
+
/**
|
|
17
|
+
* 表格列配置。
|
|
18
|
+
*/
|
|
19
|
+
columns: {
|
|
20
|
+
type: Array,
|
|
21
|
+
default: () => []
|
|
22
|
+
},
|
|
23
|
+
/**
|
|
24
|
+
* 表格数据。
|
|
25
|
+
*/
|
|
26
|
+
data: {
|
|
27
|
+
type: Array,
|
|
28
|
+
default: () => []
|
|
29
|
+
},
|
|
30
|
+
/**
|
|
31
|
+
* 表格和筛选区 loading 状态。
|
|
32
|
+
*/
|
|
33
|
+
loading: Boolean,
|
|
34
|
+
/**
|
|
35
|
+
* 表格属性,透传给 ElTable。
|
|
36
|
+
*/
|
|
37
|
+
tableProps: Object,
|
|
38
|
+
/**
|
|
39
|
+
* 是否启用分页。
|
|
40
|
+
*/
|
|
41
|
+
pageable: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: !0
|
|
44
|
+
},
|
|
45
|
+
/**
|
|
46
|
+
* 分页属性,透传给 ElPagination。
|
|
47
|
+
*/
|
|
48
|
+
paginationProps: Object,
|
|
49
|
+
/**
|
|
50
|
+
* 是否显示刷新按钮。
|
|
51
|
+
*/
|
|
52
|
+
showRefresh: {
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: !0
|
|
55
|
+
},
|
|
56
|
+
/**
|
|
57
|
+
* 是否显示头部区域。
|
|
58
|
+
*/
|
|
59
|
+
showHeader: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: !0
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
export {
|
|
65
|
+
t as vroElTableProps
|
|
66
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { UseAsyncTaskOptions } from '@vrojs/use';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
import { VroElSchemaFormSchema, VroElSchemaFormSchemaFieldBase } from '../vro-el-schema-form';
|
|
4
|
+
import { VroElTableColumnGroupColumns } from '../vro-el-table-column-group';
|
|
5
|
+
import { VroElTableRequest } from './types';
|
|
6
|
+
export interface UseVroElTableOptions<Row extends Record<string, any> = any> extends Pick<UseAsyncTaskOptions<any>, 'activated' | 'immediate' | 'throwError' | 'onError'> {
|
|
7
|
+
query?: Ref<Record<string, any>>;
|
|
8
|
+
initialValue?: Row[];
|
|
9
|
+
}
|
|
10
|
+
export type UseVroElTableAsyncTaskParams = {
|
|
11
|
+
currentPage?: number;
|
|
12
|
+
pageSize?: number;
|
|
13
|
+
query?: Record<string, any>;
|
|
14
|
+
} | number;
|
|
15
|
+
export type UseVroElTableRawColumns<T extends Record<string, any> = any> = (() => VroElTableColumnGroupColumns<T>) | VroElTableColumnGroupColumns<T>;
|
|
16
|
+
export type UseVroElTableSchema<T extends VroElSchemaFormSchema> = {
|
|
17
|
+
[P in keyof T]: VroElSchemaFormSchemaFieldBase;
|
|
18
|
+
};
|
|
19
|
+
export declare function useVroElTable<Row extends Record<string, any> = any, R extends VroElSchemaFormSchema = VroElSchemaFormSchema>(rowSchema: (() => R) | R, rawColumns: UseVroElTableRawColumns<Row>, request: VroElTableRequest<Row>, options?: UseVroElTableOptions<Row>): {
|
|
20
|
+
tableProps: import('vue').ComputedRef<{
|
|
21
|
+
filterProps: {
|
|
22
|
+
schema: import('vue').Reactive<UseVroElTableSchema<R>>;
|
|
23
|
+
};
|
|
24
|
+
loading: boolean;
|
|
25
|
+
columns: import('vue').Reactive<VroElTableColumnGroupColumns<Row>>;
|
|
26
|
+
data: Row[];
|
|
27
|
+
paginationProps: {
|
|
28
|
+
currentPage: number;
|
|
29
|
+
pageSize: number;
|
|
30
|
+
total: number;
|
|
31
|
+
};
|
|
32
|
+
}>;
|
|
33
|
+
query: Ref<Record<string, any>, Record<string, any>>;
|
|
34
|
+
schema: import('vue').Reactive<UseVroElTableSchema<R>>;
|
|
35
|
+
columns: import('vue').Reactive<VroElTableColumnGroupColumns<Row>>;
|
|
36
|
+
trigger: (params?: UseVroElTableAsyncTaskParams) => Promise<Row[]>;
|
|
37
|
+
data: Ref<Row[], Row[]>;
|
|
38
|
+
loading: Ref<boolean, boolean>;
|
|
39
|
+
pagination: {
|
|
40
|
+
currentPage: number;
|
|
41
|
+
pageSize: number;
|
|
42
|
+
total: number;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import q from "@daysnap/banana";
|
|
2
|
+
import { isFunction as p, filterEmptyValue as z, isNumber as E } from "@daysnap/utils";
|
|
3
|
+
import { useAsyncTask as T } from "@vrojs/use";
|
|
4
|
+
import { reactive as a, ref as V, computed as k } from "vue";
|
|
5
|
+
import "../vro-el-table-column-group/index.js";
|
|
6
|
+
function Q(r, o, f, y = {}) {
|
|
7
|
+
const { query: P, ...m } = y, i = a(
|
|
8
|
+
p(r) ? r() : r
|
|
9
|
+
), u = a(p(o) ? o() : o), n = P ?? V(z(q.extract(i), !0)), t = a({
|
|
10
|
+
currentPage: 1,
|
|
11
|
+
pageSize: 10,
|
|
12
|
+
total: 0
|
|
13
|
+
}), { trigger: b, data: c, loading: s } = T(
|
|
14
|
+
async (e) => {
|
|
15
|
+
E(e) && (e = { currentPage: e });
|
|
16
|
+
const { currentPage: l, pageSize: g } = Object.assign({}, t, e);
|
|
17
|
+
e?.query && (n.value = e?.query), t.currentPage = l, t.pageSize = g;
|
|
18
|
+
const [d, v] = await f([l, g], n.value);
|
|
19
|
+
return t.total = v, d || [];
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
immediate: !0,
|
|
23
|
+
throwError: !0,
|
|
24
|
+
initialValue: [],
|
|
25
|
+
...m
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
return {
|
|
29
|
+
tableProps: k(() => ({
|
|
30
|
+
filterProps: {
|
|
31
|
+
schema: i
|
|
32
|
+
},
|
|
33
|
+
loading: s.value,
|
|
34
|
+
columns: u,
|
|
35
|
+
data: c.value,
|
|
36
|
+
paginationProps: t
|
|
37
|
+
})),
|
|
38
|
+
query: n,
|
|
39
|
+
schema: i,
|
|
40
|
+
columns: u,
|
|
41
|
+
trigger: b,
|
|
42
|
+
data: c,
|
|
43
|
+
loading: s,
|
|
44
|
+
pagination: t
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
Q as useVroElTable
|
|
49
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { defineComponent as E, useTemplateRef as y, computed as k, resolveDirective as P, createElementBlock as i, openBlock as l, createBlock as n, createCommentVNode as a, createElementVNode as d, unref as r, mergeProps as u, withDirectives as T, renderSlot as s, withCtx as p, createTextVNode as $, toDisplayString as V, createVNode as q } from "vue";
|
|
2
|
+
import { isEmptyObject as C } from "@daysnap/utils";
|
|
3
|
+
import { RefreshRight as S } from "@element-plus/icons-vue";
|
|
4
|
+
import { ElButton as w, ElTable as z, ElPagination as B } from "element-plus";
|
|
5
|
+
import { useLocale as N } from "../locale/useLocale.js";
|
|
6
|
+
import { VroElSchemaFilter as R } from "../vro-el-schema-filter/index.js";
|
|
7
|
+
import { VroElTableColumnGroup as D } from "../vro-el-table-column-group/index.js";
|
|
8
|
+
import { vroElTableProps as j } from "./types.js";
|
|
9
|
+
const U = { class: "vro-el-table" }, F = { class: "vro-el-table-inner" }, G = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "vro-el-table-header"
|
|
12
|
+
}, H = { class: "vro-el-table-actions" }, L = { class: "vro-el-table-content" }, X = /* @__PURE__ */ E({
|
|
13
|
+
name: "VroElTable",
|
|
14
|
+
__name: "vro-el-table",
|
|
15
|
+
props: j,
|
|
16
|
+
emits: ["request", "selection-change"],
|
|
17
|
+
setup(f, { expose: g }) {
|
|
18
|
+
const b = f, { t: v } = N(), m = y("refElTable"), c = k(() => {
|
|
19
|
+
const { filterable: e, filterProps: o } = b;
|
|
20
|
+
return !!(e && o?.schema && !C(o.schema));
|
|
21
|
+
});
|
|
22
|
+
return g({
|
|
23
|
+
get elTable() {
|
|
24
|
+
return m.value;
|
|
25
|
+
}
|
|
26
|
+
}), (e, o) => {
|
|
27
|
+
const h = P("loading");
|
|
28
|
+
return l(), i("div", U, [
|
|
29
|
+
c.value ? (l(), n(r(R), u({ key: 0 }, e.filterProps, {
|
|
30
|
+
loading: e.loading,
|
|
31
|
+
class: "vro-el-table-filter",
|
|
32
|
+
onQuery: o[0] || (o[0] = (t) => e.$emit("request", { query: t, currentPage: 1 }))
|
|
33
|
+
}), null, 16, ["loading"])) : a("", !0),
|
|
34
|
+
d("div", F, [
|
|
35
|
+
e.showHeader ? (l(), i("div", G, [
|
|
36
|
+
s(e.$slots, "title"),
|
|
37
|
+
d("div", H, [
|
|
38
|
+
e.showRefresh ? (l(), n(r(w), {
|
|
39
|
+
key: 0,
|
|
40
|
+
plain: "",
|
|
41
|
+
icon: r(S),
|
|
42
|
+
loading: e.loading,
|
|
43
|
+
onClick: o[1] || (o[1] = (t) => e.$emit("request"))
|
|
44
|
+
}, {
|
|
45
|
+
default: p(() => [
|
|
46
|
+
$(V(r(v)("table.refresh")), 1)
|
|
47
|
+
]),
|
|
48
|
+
_: 1
|
|
49
|
+
}, 8, ["icon", "loading"])) : a("", !0),
|
|
50
|
+
s(e.$slots, "actions")
|
|
51
|
+
])
|
|
52
|
+
])) : a("", !0),
|
|
53
|
+
T((l(), i("div", L, [
|
|
54
|
+
q(r(z), u({
|
|
55
|
+
ref_key: "refElTable",
|
|
56
|
+
ref: m,
|
|
57
|
+
width: "100%",
|
|
58
|
+
"table-layout": "fixed"
|
|
59
|
+
}, e.tableProps, {
|
|
60
|
+
data: e.data,
|
|
61
|
+
onSelectionChange: o[2] || (o[2] = (t) => e.$emit("selection-change", t))
|
|
62
|
+
}), {
|
|
63
|
+
default: p(() => [
|
|
64
|
+
s(e.$slots, "content-prefix"),
|
|
65
|
+
e.columns.length ? (l(), n(r(D), {
|
|
66
|
+
key: 0,
|
|
67
|
+
columns: e.columns
|
|
68
|
+
}, null, 8, ["columns"])) : a("", !0),
|
|
69
|
+
s(e.$slots, "default")
|
|
70
|
+
]),
|
|
71
|
+
_: 3
|
|
72
|
+
}, 16, ["data"])
|
|
73
|
+
])), [
|
|
74
|
+
[h, e.loading]
|
|
75
|
+
]),
|
|
76
|
+
e.pageable ? (l(), n(r(B), u({
|
|
77
|
+
key: 1,
|
|
78
|
+
class: "vro-el-table-pagination",
|
|
79
|
+
layout: "total, prev, pager, next, sizes, jumper",
|
|
80
|
+
background: "",
|
|
81
|
+
size: "small",
|
|
82
|
+
"page-sizes": [10, 20, 50, 100]
|
|
83
|
+
}, e.paginationProps, {
|
|
84
|
+
"onUpdate:currentPage": o[3] || (o[3] = (t) => e.$emit("request", { currentPage: t })),
|
|
85
|
+
"onUpdate:pageSize": o[4] || (o[4] = (t) => e.$emit("request", { pageSize: t, currentPage: 1 }))
|
|
86
|
+
}), null, 16)) : a("", !0)
|
|
87
|
+
])
|
|
88
|
+
]);
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
export {
|
|
93
|
+
X as default
|
|
94
|
+
};
|