@keyblade/pro-components 1.13.8-alpha.4 → 1.13.8-alpha.41
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/es/components.d.ts +7 -0
- package/es/global-props.d.ts +18 -2
- package/es/index.d.ts +7 -0
- package/es/index.js +48 -30
- package/es/inerface.d.ts +5 -1
- package/es/pro-calendar/calendar.vue.d.ts +75 -0
- package/es/pro-calendar/calendar.vue.js +159 -0
- package/es/pro-calendar/calendar.vue3.js +5 -0
- package/es/pro-calendar/enum.d.ts +6 -0
- package/es/pro-calendar/enum.js +4 -0
- package/es/pro-calendar/header.vue.d.ts +35 -0
- package/es/pro-calendar/header.vue.js +146 -0
- package/es/pro-calendar/header.vue2.js +4 -0
- package/es/pro-calendar/hooks/useCellClassName.d.ts +12 -0
- package/es/pro-calendar/hooks/useCellClassName.js +40 -0
- package/es/pro-calendar/index.d.ts +117 -0
- package/es/pro-calendar/index.js +12 -0
- package/es/pro-calendar/interface.d.ts +89 -0
- package/es/pro-calendar/month.d.ts +5 -0
- package/es/pro-calendar/month.js +53 -0
- package/es/pro-calendar/month.vue.d.ts +22 -0
- package/es/pro-calendar/month.vue.js +126 -0
- package/es/pro-calendar/month.vue2.js +4 -0
- package/es/pro-calendar/week.vue.d.ts +3 -0
- package/es/pro-calendar/week.vue.js +34 -0
- package/es/pro-calendar/week.vue2.js +4 -0
- package/es/pro-calendar/year.vue.d.ts +3 -0
- package/es/pro-calendar/year.vue.js +123 -0
- package/es/pro-calendar/year.vue2.js +4 -0
- package/es/pro-date-range-picker/index.d.ts +183 -13
- package/es/pro-date-range-picker/interface.d.ts +38 -0
- package/es/pro-date-range-picker/pro-date-range-picker.vue.d.ts +173 -6
- package/es/pro-date-range-picker/pro-date-range-picker.vue.js +1 -1
- package/es/pro-date-range-picker/pro-date-range-picker.vue2.js +127 -97
- package/es/pro-dates-picker/index.d.ts +49 -0
- package/es/pro-dates-picker/index.js +13 -0
- package/es/pro-dates-picker/index.vue.d.ts +29 -0
- package/es/pro-dates-picker/index.vue.js +135 -0
- package/es/pro-dates-picker/index.vue3.js +5 -0
- package/es/pro-dates-picker/interface.d.ts +38 -0
- package/es/pro-dates-picker/util.d.ts +12 -0
- package/es/pro-dates-picker/util.js +9 -0
- package/es/pro-find-password/enum.d.ts +8 -0
- package/es/pro-find-password/enum.js +4 -0
- package/es/pro-find-password/index.d.ts +11 -0
- package/es/pro-find-password/index.js +12 -0
- package/es/pro-find-password/index.vue.d.ts +4459 -0
- package/es/pro-find-password/index.vue.js +176 -0
- package/es/pro-find-password/index.vue3.js +5 -0
- package/es/pro-find-password/interface.d.ts +45 -0
- package/es/pro-find-password/reset-password.vue.d.ts +591 -0
- package/es/pro-find-password/reset-password.vue.js +179 -0
- package/es/pro-find-password/reset-password.vue2.js +4 -0
- package/es/pro-find-password/verify-user-name.vue.d.ts +795 -0
- package/es/pro-find-password/verify-user-name.vue.js +112 -0
- package/es/pro-find-password/verify-user-name.vue3.js +5 -0
- package/es/pro-footer-bar/index.d.ts +6 -3
- package/es/pro-footer-bar/index.vue.d.ts +1 -1
- package/es/pro-footer-bar/index.vue.js +2 -2
- package/es/pro-footer-bar/index.vue2.js +24 -26
- package/es/pro-footer-bar/{inerface.d.ts → interface.d.ts} +1 -0
- package/es/pro-form-group/index.d.ts +44 -0
- package/es/pro-form-group/index.js +12 -0
- package/es/pro-form-group/index.vue.d.ts +28 -0
- package/es/pro-form-group/index.vue.js +7 -0
- package/es/pro-form-group/index.vue2.js +42 -0
- package/es/pro-image-upload/cropper.vue.js +2 -2
- package/es/pro-image-upload/cropper.vue2.js +200 -190
- package/es/pro-image-upload/image-upload.vue.d.ts +1123 -371
- package/es/pro-image-upload/image-upload.vue.js +172 -145
- package/es/pro-image-upload/index.d.ts +1726 -1001
- package/es/pro-image-upload/index.js +1 -1
- package/es/pro-keep-alive-router-view/index.d.ts +1 -0
- package/es/pro-keep-alive-router-view/pro-keep-alive-router-view.vue.js +17 -18
- package/es/pro-layout/hooks.d.ts +80 -1
- package/es/pro-layout/hooks.js +133 -84
- package/es/pro-layout/index.d.ts +9 -6
- package/es/pro-layout/index.js +1 -1
- package/es/pro-layout/pro-layout.vue.d.ts +4 -2
- package/es/pro-layout/pro-layout.vue.js +220 -208
- package/es/pro-loader/index.d.ts +43 -0
- package/es/pro-loader/index.js +11 -0
- package/es/pro-loader/index.vue.d.ts +28 -0
- package/es/pro-loader/index.vue.js +112 -0
- package/es/pro-loader/index.vue3.js +5 -0
- package/es/pro-loader/interface.d.ts +16 -0
- package/es/pro-login/enum.d.ts +6 -0
- package/es/pro-login/enum.js +4 -0
- package/es/pro-login/form-mobile.vue.d.ts +797 -0
- package/es/pro-login/form-mobile.vue.js +146 -0
- package/es/pro-login/form-mobile.vue2.js +4 -0
- package/es/pro-login/form-password.vue.d.ts +584 -0
- package/es/pro-login/form-password.vue.js +99 -0
- package/es/pro-login/form-password.vue2.js +4 -0
- package/es/pro-login/index.d.ts +11 -0
- package/es/pro-login/index.js +12 -0
- package/es/pro-login/index.vue.d.ts +4429 -0
- package/es/pro-login/index.vue.js +105 -0
- package/es/pro-login/index.vue3.js +5 -0
- package/es/pro-login/interface.d.ts +72 -0
- package/es/pro-login/regexp.d.ts +17 -0
- package/es/pro-login/regexp.js +28 -0
- package/es/pro-menu/index.d.ts +18 -80
- package/es/pro-menu/interface.d.ts +31 -0
- package/es/pro-menu/menu-item.vue.d.ts +27 -0
- package/es/pro-menu/menu-item.vue.js +35 -0
- package/es/pro-menu/menu-item.vue2.js +4 -0
- package/es/pro-menu/pro-menu-item.vue.d.ts +9 -0
- package/es/pro-menu/pro-menu-item.vue.js +63 -0
- package/es/pro-menu/pro-menu-item.vue2.js +4 -0
- package/es/pro-menu/pro-menu.vue.d.ts +9 -55
- package/es/pro-menu/pro-menu.vue.js +36 -119
- package/es/pro-menu/sub-menu.vue.d.ts +22 -0
- package/es/pro-menu/sub-menu.vue.js +55 -0
- package/es/pro-menu/sub-menu.vue2.js +4 -0
- package/es/pro-menu/util.d.ts +9 -0
- package/es/pro-menu/util.js +7 -0
- package/es/pro-page-container/constant.d.ts +2 -0
- package/es/pro-page-container/constant.js +9 -0
- package/es/pro-page-container/index.d.ts +9 -22
- package/es/pro-page-container/index.js +21 -8
- package/es/pro-page-container/interface.d.ts +12 -0
- package/es/pro-page-container/pro-page-container.vue.d.ts +4 -15
- package/es/pro-page-container/pro-page-container.vue.js +58 -38
- package/es/pro-page-header/constant.d.ts +2 -0
- package/es/pro-page-header/constant.js +13 -0
- package/es/pro-page-header/index.d.ts +14 -147
- package/es/pro-page-header/index.js +21 -8
- package/es/pro-page-header/interface.d.ts +21 -0
- package/es/pro-page-header/pro-page-header.vue.d.ts +18 -103
- package/es/pro-page-header/pro-page-header.vue.js +141 -124
- package/es/pro-reuse-tabs/index.d.ts +8 -6
- package/es/pro-reuse-tabs/index.js +1 -1
- package/es/pro-reuse-tabs/pro-reuse-tabs.vue.d.ts +2 -2
- package/es/pro-reuse-tabs/pro-reuse-tabs.vue.js +33 -35
- package/es/pro-table/index.d.ts +22 -20
- package/es/pro-table/index.js +7 -5
- package/es/pro-table/index.vue.d.ts +11 -9
- package/es/pro-table/index.vue.js +93 -25
- package/es/pro-table/index.vue3.js +5 -0
- package/es/pro-table/interface.d.ts +74 -65
- package/es/pro-textarea/index.d.ts +7 -5
- package/es/pro-textarea/index.vue.d.ts +1 -1
- package/es/pro-textarea/index.vue.js +1 -1
- package/es/pro-textarea/index.vue2.js +14 -16
- package/es/pro-textarea/{inerface.d.ts → interface.d.ts} +19 -18
- package/es/style.css +1 -1
- package/es/utils.d.ts +6 -0
- package/es/utils.js +7 -0
- package/package.json +5 -4
- package/es/pro-date-range-picker/type.d.ts +0 -22
- package/es/pro-page-container/inerface.d.ts +0 -12
- package/es/pro-table/index.vue2.js +0 -4
|
@@ -29,8 +29,8 @@ declare const ProReuseTabs: {
|
|
|
29
29
|
"tab-delete": (_key: string) => void;
|
|
30
30
|
}, import('vue').PublicProps, {
|
|
31
31
|
tabs: import('./interface').IProTab[];
|
|
32
|
-
tabsSize: "small" | "
|
|
33
|
-
tabsType: "
|
|
32
|
+
tabsSize: "small" | "medium" | "mini" | "large";
|
|
33
|
+
tabsType: "text" | "line" | "card" | "card-gutter" | "rounded" | "capsule";
|
|
34
34
|
tabsHeaderPadding: boolean;
|
|
35
35
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
36
36
|
P: {};
|
|
@@ -65,8 +65,8 @@ declare const ProReuseTabs: {
|
|
|
65
65
|
"onTab-delete"?: ((_key: string) => any) | undefined;
|
|
66
66
|
}>, {}, {}, {}, {}, {
|
|
67
67
|
tabs: import('./interface').IProTab[];
|
|
68
|
-
tabsSize: "small" | "
|
|
69
|
-
tabsType: "
|
|
68
|
+
tabsSize: "small" | "medium" | "mini" | "large";
|
|
69
|
+
tabsType: "text" | "line" | "card" | "card-gutter" | "rounded" | "capsule";
|
|
70
70
|
tabsHeaderPadding: boolean;
|
|
71
71
|
}>;
|
|
72
72
|
__isFragment?: never;
|
|
@@ -101,12 +101,14 @@ declare const ProReuseTabs: {
|
|
|
101
101
|
"tab-delete": (_key: string) => void;
|
|
102
102
|
}, string, {
|
|
103
103
|
tabs: import('./interface').IProTab[];
|
|
104
|
-
tabsSize: "small" | "
|
|
105
|
-
tabsType: "
|
|
104
|
+
tabsSize: "small" | "medium" | "mini" | "large";
|
|
105
|
+
tabsType: "text" | "line" | "card" | "card-gutter" | "rounded" | "capsule";
|
|
106
106
|
tabsHeaderPadding: boolean;
|
|
107
107
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
108
108
|
install: (app: App) => void;
|
|
109
109
|
};
|
|
110
|
+
/** 导出类型 */
|
|
110
111
|
export * from './interface';
|
|
112
|
+
/** 导出组件 */
|
|
111
113
|
export { ProReuseTabs };
|
|
112
114
|
export default ProReuseTabs;
|
|
@@ -52,8 +52,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
52
52
|
"onTab-delete"?: ((_key: string) => any) | undefined;
|
|
53
53
|
}>, {
|
|
54
54
|
tabs: IProTab[];
|
|
55
|
-
tabsSize: "small" | "
|
|
56
|
-
tabsType: "
|
|
55
|
+
tabsSize: "small" | "medium" | "mini" | "large";
|
|
56
|
+
tabsType: "text" | "line" | "card" | "card-gutter" | "rounded" | "capsule";
|
|
57
57
|
tabsHeaderPadding: boolean;
|
|
58
58
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
59
59
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
1
|
+
import { defineComponent as m, computed as y, createElementBlock as d, openBlock as n, normalizeClass as f, createVNode as p, unref as l, withCtx as k, Fragment as g, renderList as h, createBlock as v } from "vue";
|
|
2
|
+
import { Tabs as S, TabPane as T } from "@arco-design/web-vue";
|
|
3
|
+
const z = "keyblade-pro-reuse-tabs", x = /* @__PURE__ */ m({
|
|
3
4
|
__name: "pro-reuse-tabs",
|
|
4
5
|
props: {
|
|
5
6
|
tabs: {
|
|
@@ -28,43 +29,40 @@ const _ = "keyblade-pro-reuse-tabs", q = /* @__PURE__ */ y({
|
|
|
28
29
|
"tab-click": (e) => !0,
|
|
29
30
|
"tab-delete": (e) => !0
|
|
30
31
|
},
|
|
31
|
-
setup(e, { emit:
|
|
32
|
-
const o = e,
|
|
33
|
-
var t;
|
|
34
|
-
return ((t = o.tabs.find((
|
|
32
|
+
setup(e, { emit: s }) {
|
|
33
|
+
const o = e, i = s, c = y(() => {
|
|
34
|
+
var t, r;
|
|
35
|
+
return (r = (t = o.tabs.find((a) => a.active)) == null ? void 0 : t.name) != null ? r : void 0;
|
|
35
36
|
}), u = (t) => {
|
|
36
|
-
|
|
37
|
+
i("tab-click", String(t));
|
|
37
38
|
}, b = (t) => {
|
|
38
|
-
|
|
39
|
-
};
|
|
40
|
-
return (t, r) => {
|
|
41
|
-
const m = l("a-tab-pane"), p = l("a-tabs");
|
|
42
|
-
return a(), s("div", {
|
|
43
|
-
class: k(_)
|
|
44
|
-
}, [
|
|
45
|
-
g(p, {
|
|
46
|
-
"active-key": c.value,
|
|
47
|
-
size: e.tabsSize,
|
|
48
|
-
type: e.tabsType,
|
|
49
|
-
"header-padding": e.tabsHeaderPadding,
|
|
50
|
-
editable: e.tabs.length > 1,
|
|
51
|
-
"hide-content": "",
|
|
52
|
-
"destroy-on-hide": "",
|
|
53
|
-
onTabClick: u,
|
|
54
|
-
onDelete: b
|
|
55
|
-
}, {
|
|
56
|
-
default: v(() => [
|
|
57
|
-
(a(!0), s(h, null, C(e.tabs, (i) => (a(), S(m, {
|
|
58
|
-
key: i.name,
|
|
59
|
-
title: i.title
|
|
60
|
-
}, null, 8, ["title"]))), 128))
|
|
61
|
-
]),
|
|
62
|
-
_: 1
|
|
63
|
-
}, 8, ["active-key", "size", "type", "header-padding", "editable"])
|
|
64
|
-
]);
|
|
39
|
+
i("tab-delete", String(t));
|
|
65
40
|
};
|
|
41
|
+
return (t, r) => (n(), d("div", {
|
|
42
|
+
class: f(z)
|
|
43
|
+
}, [
|
|
44
|
+
p(l(S), {
|
|
45
|
+
"active-key": c.value,
|
|
46
|
+
size: e.tabsSize,
|
|
47
|
+
type: e.tabsType,
|
|
48
|
+
"header-padding": e.tabsHeaderPadding,
|
|
49
|
+
editable: e.tabs.length > 1,
|
|
50
|
+
"hide-content": "",
|
|
51
|
+
"destroy-on-hide": "",
|
|
52
|
+
onTabClick: u,
|
|
53
|
+
onDelete: b
|
|
54
|
+
}, {
|
|
55
|
+
default: k(() => [
|
|
56
|
+
(n(!0), d(g, null, h(e.tabs, (a) => (n(), v(l(T), {
|
|
57
|
+
key: a.name,
|
|
58
|
+
title: a.title
|
|
59
|
+
}, null, 8, ["title"]))), 128))
|
|
60
|
+
]),
|
|
61
|
+
_: 1
|
|
62
|
+
}, 8, ["active-key", "size", "type", "header-padding", "editable"])
|
|
63
|
+
]));
|
|
66
64
|
}
|
|
67
65
|
});
|
|
68
66
|
export {
|
|
69
|
-
|
|
67
|
+
x as default
|
|
70
68
|
};
|
package/es/pro-table/index.d.ts
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
declare const ProTable: {
|
|
3
3
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./interface').IProTable> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
4
|
-
data: any[];
|
|
5
4
|
size: "mini" | "medium" | "large" | "small";
|
|
6
5
|
loading: boolean | Record<string, any>;
|
|
7
|
-
|
|
8
|
-
bordered: boolean |
|
|
9
|
-
columns: any[];
|
|
6
|
+
data: any[];
|
|
7
|
+
bordered: boolean | import('@arco-design/web-vue').TableBorder;
|
|
10
8
|
hoverable: boolean;
|
|
11
|
-
|
|
9
|
+
scrollbar: boolean | any;
|
|
10
|
+
columns: Partial<import('./interface').IProTableColumn>[];
|
|
11
|
+
pagination: boolean | import('@arco-design/web-vue').PaginationProps;
|
|
12
12
|
stripe: boolean;
|
|
13
13
|
tableLayoutFixed: boolean;
|
|
14
14
|
pagePosition: "top" | "tl" | "tr" | "bottom" | "bl" | "br";
|
|
15
15
|
indentSize: number;
|
|
16
16
|
rowKey: string;
|
|
17
|
-
showHeader: boolean;
|
|
18
17
|
spanAll: boolean;
|
|
19
18
|
filterIconAlignLeft: boolean;
|
|
20
19
|
hideExpandButtonOnEmpty: boolean;
|
|
@@ -23,7 +22,7 @@ declare const ProTable: {
|
|
|
23
22
|
defaultExpandAllRows: boolean;
|
|
24
23
|
stickyHeader: number | boolean;
|
|
25
24
|
showEmptyTree: boolean;
|
|
26
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {},
|
|
25
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
27
26
|
P: {};
|
|
28
27
|
B: {};
|
|
29
28
|
D: {};
|
|
@@ -31,20 +30,19 @@ declare const ProTable: {
|
|
|
31
30
|
M: {};
|
|
32
31
|
Defaults: {};
|
|
33
32
|
}, Readonly<import('./interface').IProTable> & Readonly<{}>, {}, {}, {}, {}, {
|
|
34
|
-
data: any[];
|
|
35
33
|
size: "mini" | "medium" | "large" | "small";
|
|
36
34
|
loading: boolean | Record<string, any>;
|
|
37
|
-
|
|
38
|
-
bordered: boolean |
|
|
39
|
-
columns: any[];
|
|
35
|
+
data: any[];
|
|
36
|
+
bordered: boolean | import('@arco-design/web-vue').TableBorder;
|
|
40
37
|
hoverable: boolean;
|
|
41
|
-
|
|
38
|
+
scrollbar: boolean | any;
|
|
39
|
+
columns: Partial<import('./interface').IProTableColumn>[];
|
|
40
|
+
pagination: boolean | import('@arco-design/web-vue').PaginationProps;
|
|
42
41
|
stripe: boolean;
|
|
43
42
|
tableLayoutFixed: boolean;
|
|
44
43
|
pagePosition: "top" | "tl" | "tr" | "bottom" | "bl" | "br";
|
|
45
44
|
indentSize: number;
|
|
46
45
|
rowKey: string;
|
|
47
|
-
showHeader: boolean;
|
|
48
46
|
spanAll: boolean;
|
|
49
47
|
filterIconAlignLeft: boolean;
|
|
50
48
|
hideExpandButtonOnEmpty: boolean;
|
|
@@ -58,20 +56,19 @@ declare const ProTable: {
|
|
|
58
56
|
__isTeleport?: never;
|
|
59
57
|
__isSuspense?: never;
|
|
60
58
|
} & import('vue').ComponentOptionsBase<Readonly<import('./interface').IProTable> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
61
|
-
data: any[];
|
|
62
59
|
size: "mini" | "medium" | "large" | "small";
|
|
63
60
|
loading: boolean | Record<string, any>;
|
|
64
|
-
|
|
65
|
-
bordered: boolean |
|
|
66
|
-
columns: any[];
|
|
61
|
+
data: any[];
|
|
62
|
+
bordered: boolean | import('@arco-design/web-vue').TableBorder;
|
|
67
63
|
hoverable: boolean;
|
|
68
|
-
|
|
64
|
+
scrollbar: boolean | any;
|
|
65
|
+
columns: Partial<import('./interface').IProTableColumn>[];
|
|
66
|
+
pagination: boolean | import('@arco-design/web-vue').PaginationProps;
|
|
69
67
|
stripe: boolean;
|
|
70
68
|
tableLayoutFixed: boolean;
|
|
71
69
|
pagePosition: "top" | "tl" | "tr" | "bottom" | "bl" | "br";
|
|
72
70
|
indentSize: number;
|
|
73
71
|
rowKey: string;
|
|
74
|
-
showHeader: boolean;
|
|
75
72
|
spanAll: boolean;
|
|
76
73
|
filterIconAlignLeft: boolean;
|
|
77
74
|
hideExpandButtonOnEmpty: boolean;
|
|
@@ -81,9 +78,14 @@ declare const ProTable: {
|
|
|
81
78
|
stickyHeader: number | boolean;
|
|
82
79
|
showEmptyTree: boolean;
|
|
83
80
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
84
|
-
$slots: Partial<Record<NonNullable<string | number>, (_: any) => any
|
|
81
|
+
$slots: Partial<Record<NonNullable<string | number>, (_: any) => any>> & {
|
|
82
|
+
'pagination-left'?(_: {}): any;
|
|
83
|
+
};
|
|
85
84
|
}) & {
|
|
86
85
|
install: (app: App) => void;
|
|
87
86
|
};
|
|
87
|
+
/** 导出类型 */
|
|
88
|
+
export * from './interface';
|
|
89
|
+
/** 导出组件 */
|
|
88
90
|
export { ProTable };
|
|
89
91
|
export default ProTable;
|
package/es/pro-table/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import e from "./index.vue.js";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { Message as s, Table as t, Tooltip as r, Button as m } from "@arco-design/web-vue";
|
|
4
|
+
import { IconCopy as i } from "@arco-design/web-vue/es/icon";
|
|
5
|
+
const c = Object.assign(e, {
|
|
4
6
|
install: (o) => {
|
|
5
|
-
o.use(t), o.component("KbProTable", e);
|
|
7
|
+
o.use(s), o.use(t), o.use(r), o.use(m), o.use(i), o.component("KbProTable", e);
|
|
6
8
|
}
|
|
7
9
|
});
|
|
8
10
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
c as ProTable,
|
|
12
|
+
c as default
|
|
11
13
|
};
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
+
import { PaginationProps } from '@arco-design/web-vue';
|
|
1
2
|
import { IProTable } from './interface';
|
|
2
3
|
declare function __VLS_template(): {
|
|
3
4
|
attrs: Partial<{}>;
|
|
4
|
-
slots: Partial<Record<NonNullable<string | number>, (_: any) => any
|
|
5
|
+
slots: Partial<Record<NonNullable<string | number>, (_: any) => any>> & {
|
|
6
|
+
'pagination-left'?(_: {}): any;
|
|
7
|
+
};
|
|
5
8
|
refs: {};
|
|
6
|
-
rootEl:
|
|
9
|
+
rootEl: HTMLDivElement;
|
|
7
10
|
};
|
|
8
11
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
12
|
declare const __VLS_component: import('vue').DefineComponent<IProTable, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProTable> & Readonly<{}>, {
|
|
10
|
-
data: any[];
|
|
11
13
|
size: "mini" | "medium" | "large" | "small";
|
|
12
14
|
loading: boolean | Record<string, any>;
|
|
13
|
-
|
|
14
|
-
bordered: boolean |
|
|
15
|
-
columns: any[];
|
|
15
|
+
data: any[];
|
|
16
|
+
bordered: boolean | import('@arco-design/web-vue').TableBorder;
|
|
16
17
|
hoverable: boolean;
|
|
17
|
-
|
|
18
|
+
scrollbar: boolean | any;
|
|
19
|
+
columns: Partial<import('./interface').IProTableColumn>[];
|
|
20
|
+
pagination: boolean | PaginationProps;
|
|
18
21
|
stripe: boolean;
|
|
19
22
|
tableLayoutFixed: boolean;
|
|
20
23
|
pagePosition: "top" | "tl" | "tr" | "bottom" | "bl" | "br";
|
|
21
24
|
indentSize: number;
|
|
22
25
|
rowKey: string;
|
|
23
|
-
showHeader: boolean;
|
|
24
26
|
spanAll: boolean;
|
|
25
27
|
filterIconAlignLeft: boolean;
|
|
26
28
|
hideExpandButtonOnEmpty: boolean;
|
|
@@ -29,7 +31,7 @@ declare const __VLS_component: import('vue').DefineComponent<IProTable, {}, {},
|
|
|
29
31
|
defaultExpandAllRows: boolean;
|
|
30
32
|
stickyHeader: number | boolean;
|
|
31
33
|
showEmptyTree: boolean;
|
|
32
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
34
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
33
35
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
34
36
|
export default _default;
|
|
35
37
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,21 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var M = Object.defineProperty, N = Object.defineProperties;
|
|
2
|
+
var R = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var B = Object.getOwnPropertySymbols;
|
|
4
|
+
var I = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var x = (o, e, t) => e in o ? M(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, v = (o, e) => {
|
|
6
|
+
for (var t in e || (e = {}))
|
|
7
|
+
I.call(e, t) && x(o, t, e[t]);
|
|
8
|
+
if (B)
|
|
9
|
+
for (var t of B(e))
|
|
10
|
+
O.call(e, t) && x(o, t, e[t]);
|
|
11
|
+
return o;
|
|
12
|
+
}, k = (o, e) => N(o, R(e));
|
|
13
|
+
var S = (o, e, t) => new Promise((f, u) => {
|
|
14
|
+
var y = (s) => {
|
|
15
|
+
try {
|
|
16
|
+
i(t.next(s));
|
|
17
|
+
} catch (a) {
|
|
18
|
+
u(a);
|
|
19
|
+
}
|
|
20
|
+
}, m = (s) => {
|
|
21
|
+
try {
|
|
22
|
+
i(t.throw(s));
|
|
23
|
+
} catch (a) {
|
|
24
|
+
u(a);
|
|
25
|
+
}
|
|
26
|
+
}, i = (s) => s.done ? f(s.value) : Promise.resolve(s.value).then(y, m);
|
|
27
|
+
i((t = t.apply(o, e)).next());
|
|
28
|
+
});
|
|
29
|
+
import { defineComponent as A, useSlots as L, useAttrs as j, computed as C, createElementBlock as w, openBlock as b, normalizeClass as g, createCommentVNode as E, createVNode as _, renderSlot as z, unref as p, mergeProps as $, createSlots as P, withCtx as h, normalizeStyle as T, createElementVNode as K, withModifiers as D, createBlock as F, toDisplayString as H, renderList as V, normalizeProps as U, guardReactiveProps as q } from "vue";
|
|
30
|
+
import { Table as G, Tooltip as J, Message as Q } from "@arco-design/web-vue";
|
|
31
|
+
import { IconCopy as W } from "@arco-design/web-vue/es/icon";
|
|
32
|
+
import { conclude as X } from "vue-global-config";
|
|
33
|
+
import { globalProps as Y } from "../global-props.js";
|
|
34
|
+
import { useClipboard as Z } from "@vueuse/core";
|
|
35
|
+
const ee = ["onClick"], d = "keyblade-pro-table", de = /* @__PURE__ */ A({
|
|
3
36
|
__name: "index",
|
|
4
37
|
props: {
|
|
5
38
|
size: { default: "large" },
|
|
6
39
|
scrollbar: { type: Boolean, default: !0 },
|
|
7
40
|
data: { default: () => [] },
|
|
8
41
|
loading: { type: [Boolean, Object], default: !1 },
|
|
9
|
-
bordered: { type: Boolean, default:
|
|
42
|
+
bordered: { type: [Boolean, Object], default: void 0 },
|
|
10
43
|
columns: { default: () => [] },
|
|
11
44
|
hoverable: { type: Boolean, default: !0 },
|
|
12
|
-
pagination: { type: Boolean, default: !0 },
|
|
45
|
+
pagination: { type: [Boolean, Object], default: !0 },
|
|
13
46
|
stripe: { type: Boolean, default: !1 },
|
|
14
47
|
tableLayoutFixed: { type: Boolean, default: !1 },
|
|
15
|
-
pagePosition: { default: "
|
|
48
|
+
pagePosition: { default: "tr" },
|
|
16
49
|
indentSize: { default: 16 },
|
|
17
50
|
rowKey: { default: "key" },
|
|
18
|
-
showHeader: { type: Boolean, default: !0 },
|
|
19
51
|
spanAll: { type: Boolean, default: !1 },
|
|
20
52
|
filterIconAlignLeft: { type: Boolean, default: !1 },
|
|
21
53
|
hideExpandButtonOnEmpty: { type: Boolean, default: !1 },
|
|
@@ -45,8 +77,6 @@ const K = /* @__PURE__ */ p({
|
|
|
45
77
|
onPageChange: {},
|
|
46
78
|
onPageSizeChange: {},
|
|
47
79
|
onExpand: {},
|
|
48
|
-
"onUpdate:selectedKeys": {},
|
|
49
|
-
"onUpdate:expandedKeys": {},
|
|
50
80
|
onExpandedChange: {},
|
|
51
81
|
onSelectAll: {},
|
|
52
82
|
onSelectionChange: {},
|
|
@@ -61,28 +91,66 @@ const K = /* @__PURE__ */ p({
|
|
|
61
91
|
onRowDblclick: {},
|
|
62
92
|
onCellDblclick: {},
|
|
63
93
|
onRowContextmenu: {},
|
|
64
|
-
onCellContextmenu: {}
|
|
94
|
+
onCellContextmenu: {},
|
|
95
|
+
"onUpdate:selectedKeys": {},
|
|
96
|
+
"onUpdate:expandedKeys": {}
|
|
65
97
|
},
|
|
66
|
-
setup(
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
98
|
+
setup(o) {
|
|
99
|
+
const e = o, t = L(), { copy: f } = Z(), u = j(), y = C(() => X([e, Y.table || {}]) || {}), m = C(() => {
|
|
100
|
+
var l, r;
|
|
101
|
+
return !((l = e.pagination) == null ? void 0 : l.total) && !((r = e.data) != null && r.length) && t["pagination-left"];
|
|
102
|
+
}), i = C(() => {
|
|
103
|
+
var a;
|
|
104
|
+
return (a = e.columns) == null ? void 0 : a.map((l) => l.clipboard ? k(v({}, l), {
|
|
105
|
+
hover: l.hover === void 0 ? !0 : l.hover,
|
|
106
|
+
slotName: `${d}-clipboard`
|
|
107
|
+
}) : l);
|
|
108
|
+
}), s = (a) => S(null, null, function* () {
|
|
109
|
+
try {
|
|
110
|
+
yield f(a), Q.success("拷贝成功!");
|
|
111
|
+
} catch (l) {
|
|
112
|
+
console.info(l);
|
|
113
|
+
}
|
|
72
114
|
});
|
|
73
|
-
return (
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
115
|
+
return (a, l) => (b(), w("div", {
|
|
116
|
+
class: g(d)
|
|
117
|
+
}, [
|
|
118
|
+
m.value ? (b(), w("div", {
|
|
119
|
+
key: 0,
|
|
120
|
+
class: g(`${d}-header`)
|
|
121
|
+
}, [
|
|
122
|
+
z(a.$slots, "pagination-left")
|
|
123
|
+
], 2)) : E("", !0),
|
|
124
|
+
_(p(G), $($(y.value, p(u)), { columns: i.value }), P({
|
|
125
|
+
[`${d}-clipboard`]: h(({ record: r, column: n }) => [
|
|
126
|
+
_(p(J), {
|
|
127
|
+
style: T({ display: n.ellipsis && n.hover ? "" : "none" }),
|
|
128
|
+
content: r[n.dataIndex]
|
|
129
|
+
}, {
|
|
130
|
+
default: h(() => [
|
|
131
|
+
K("div", {
|
|
132
|
+
class: g([`${d}-clipboard`, n.ellipsis ? `${d}-ellipsis` : ""]),
|
|
133
|
+
onClick: D((c) => s(r[n.dataIndex]), ["stop"])
|
|
134
|
+
}, [
|
|
135
|
+
K("span", null, H(r[n.dataIndex]), 1),
|
|
136
|
+
n.copyIcon ? (b(), F(p(W), { key: 0 })) : E("", !0)
|
|
137
|
+
], 10, ee)
|
|
138
|
+
]),
|
|
139
|
+
_: 2
|
|
140
|
+
}, 1032, ["style", "content"])
|
|
141
|
+
]),
|
|
142
|
+
_: 2
|
|
143
|
+
}, [
|
|
144
|
+
V(p(t), (r, n) => ({
|
|
145
|
+
name: n,
|
|
146
|
+
fn: h((c) => [
|
|
147
|
+
z(a.$slots, n, U(q(c != null ? c : {})))
|
|
80
148
|
])
|
|
81
149
|
}))
|
|
82
|
-
]), 1040)
|
|
83
|
-
|
|
150
|
+
]), 1040, ["columns"])
|
|
151
|
+
]));
|
|
84
152
|
}
|
|
85
153
|
});
|
|
86
154
|
export {
|
|
87
|
-
|
|
155
|
+
de as default
|
|
88
156
|
};
|