@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.
Files changed (153) hide show
  1. package/es/components.d.ts +7 -0
  2. package/es/global-props.d.ts +18 -2
  3. package/es/index.d.ts +7 -0
  4. package/es/index.js +48 -30
  5. package/es/inerface.d.ts +5 -1
  6. package/es/pro-calendar/calendar.vue.d.ts +75 -0
  7. package/es/pro-calendar/calendar.vue.js +159 -0
  8. package/es/pro-calendar/calendar.vue3.js +5 -0
  9. package/es/pro-calendar/enum.d.ts +6 -0
  10. package/es/pro-calendar/enum.js +4 -0
  11. package/es/pro-calendar/header.vue.d.ts +35 -0
  12. package/es/pro-calendar/header.vue.js +146 -0
  13. package/es/pro-calendar/header.vue2.js +4 -0
  14. package/es/pro-calendar/hooks/useCellClassName.d.ts +12 -0
  15. package/es/pro-calendar/hooks/useCellClassName.js +40 -0
  16. package/es/pro-calendar/index.d.ts +117 -0
  17. package/es/pro-calendar/index.js +12 -0
  18. package/es/pro-calendar/interface.d.ts +89 -0
  19. package/es/pro-calendar/month.d.ts +5 -0
  20. package/es/pro-calendar/month.js +53 -0
  21. package/es/pro-calendar/month.vue.d.ts +22 -0
  22. package/es/pro-calendar/month.vue.js +126 -0
  23. package/es/pro-calendar/month.vue2.js +4 -0
  24. package/es/pro-calendar/week.vue.d.ts +3 -0
  25. package/es/pro-calendar/week.vue.js +34 -0
  26. package/es/pro-calendar/week.vue2.js +4 -0
  27. package/es/pro-calendar/year.vue.d.ts +3 -0
  28. package/es/pro-calendar/year.vue.js +123 -0
  29. package/es/pro-calendar/year.vue2.js +4 -0
  30. package/es/pro-date-range-picker/index.d.ts +183 -13
  31. package/es/pro-date-range-picker/interface.d.ts +38 -0
  32. package/es/pro-date-range-picker/pro-date-range-picker.vue.d.ts +173 -6
  33. package/es/pro-date-range-picker/pro-date-range-picker.vue.js +1 -1
  34. package/es/pro-date-range-picker/pro-date-range-picker.vue2.js +127 -97
  35. package/es/pro-dates-picker/index.d.ts +49 -0
  36. package/es/pro-dates-picker/index.js +13 -0
  37. package/es/pro-dates-picker/index.vue.d.ts +29 -0
  38. package/es/pro-dates-picker/index.vue.js +135 -0
  39. package/es/pro-dates-picker/index.vue3.js +5 -0
  40. package/es/pro-dates-picker/interface.d.ts +38 -0
  41. package/es/pro-dates-picker/util.d.ts +12 -0
  42. package/es/pro-dates-picker/util.js +9 -0
  43. package/es/pro-find-password/enum.d.ts +8 -0
  44. package/es/pro-find-password/enum.js +4 -0
  45. package/es/pro-find-password/index.d.ts +11 -0
  46. package/es/pro-find-password/index.js +12 -0
  47. package/es/pro-find-password/index.vue.d.ts +4459 -0
  48. package/es/pro-find-password/index.vue.js +176 -0
  49. package/es/pro-find-password/index.vue3.js +5 -0
  50. package/es/pro-find-password/interface.d.ts +45 -0
  51. package/es/pro-find-password/reset-password.vue.d.ts +591 -0
  52. package/es/pro-find-password/reset-password.vue.js +179 -0
  53. package/es/pro-find-password/reset-password.vue2.js +4 -0
  54. package/es/pro-find-password/verify-user-name.vue.d.ts +795 -0
  55. package/es/pro-find-password/verify-user-name.vue.js +112 -0
  56. package/es/pro-find-password/verify-user-name.vue3.js +5 -0
  57. package/es/pro-footer-bar/index.d.ts +6 -3
  58. package/es/pro-footer-bar/index.vue.d.ts +1 -1
  59. package/es/pro-footer-bar/index.vue.js +2 -2
  60. package/es/pro-footer-bar/index.vue2.js +24 -26
  61. package/es/pro-footer-bar/{inerface.d.ts → interface.d.ts} +1 -0
  62. package/es/pro-form-group/index.d.ts +44 -0
  63. package/es/pro-form-group/index.js +12 -0
  64. package/es/pro-form-group/index.vue.d.ts +28 -0
  65. package/es/pro-form-group/index.vue.js +7 -0
  66. package/es/pro-form-group/index.vue2.js +42 -0
  67. package/es/pro-image-upload/cropper.vue.js +2 -2
  68. package/es/pro-image-upload/cropper.vue2.js +200 -190
  69. package/es/pro-image-upload/image-upload.vue.d.ts +1123 -371
  70. package/es/pro-image-upload/image-upload.vue.js +172 -145
  71. package/es/pro-image-upload/index.d.ts +1726 -1001
  72. package/es/pro-image-upload/index.js +1 -1
  73. package/es/pro-keep-alive-router-view/index.d.ts +1 -0
  74. package/es/pro-keep-alive-router-view/pro-keep-alive-router-view.vue.js +17 -18
  75. package/es/pro-layout/hooks.d.ts +80 -1
  76. package/es/pro-layout/hooks.js +133 -84
  77. package/es/pro-layout/index.d.ts +9 -6
  78. package/es/pro-layout/index.js +1 -1
  79. package/es/pro-layout/pro-layout.vue.d.ts +4 -2
  80. package/es/pro-layout/pro-layout.vue.js +220 -208
  81. package/es/pro-loader/index.d.ts +43 -0
  82. package/es/pro-loader/index.js +11 -0
  83. package/es/pro-loader/index.vue.d.ts +28 -0
  84. package/es/pro-loader/index.vue.js +112 -0
  85. package/es/pro-loader/index.vue3.js +5 -0
  86. package/es/pro-loader/interface.d.ts +16 -0
  87. package/es/pro-login/enum.d.ts +6 -0
  88. package/es/pro-login/enum.js +4 -0
  89. package/es/pro-login/form-mobile.vue.d.ts +797 -0
  90. package/es/pro-login/form-mobile.vue.js +146 -0
  91. package/es/pro-login/form-mobile.vue2.js +4 -0
  92. package/es/pro-login/form-password.vue.d.ts +584 -0
  93. package/es/pro-login/form-password.vue.js +99 -0
  94. package/es/pro-login/form-password.vue2.js +4 -0
  95. package/es/pro-login/index.d.ts +11 -0
  96. package/es/pro-login/index.js +12 -0
  97. package/es/pro-login/index.vue.d.ts +4429 -0
  98. package/es/pro-login/index.vue.js +105 -0
  99. package/es/pro-login/index.vue3.js +5 -0
  100. package/es/pro-login/interface.d.ts +72 -0
  101. package/es/pro-login/regexp.d.ts +17 -0
  102. package/es/pro-login/regexp.js +28 -0
  103. package/es/pro-menu/index.d.ts +18 -80
  104. package/es/pro-menu/interface.d.ts +31 -0
  105. package/es/pro-menu/menu-item.vue.d.ts +27 -0
  106. package/es/pro-menu/menu-item.vue.js +35 -0
  107. package/es/pro-menu/menu-item.vue2.js +4 -0
  108. package/es/pro-menu/pro-menu-item.vue.d.ts +9 -0
  109. package/es/pro-menu/pro-menu-item.vue.js +63 -0
  110. package/es/pro-menu/pro-menu-item.vue2.js +4 -0
  111. package/es/pro-menu/pro-menu.vue.d.ts +9 -55
  112. package/es/pro-menu/pro-menu.vue.js +36 -119
  113. package/es/pro-menu/sub-menu.vue.d.ts +22 -0
  114. package/es/pro-menu/sub-menu.vue.js +55 -0
  115. package/es/pro-menu/sub-menu.vue2.js +4 -0
  116. package/es/pro-menu/util.d.ts +9 -0
  117. package/es/pro-menu/util.js +7 -0
  118. package/es/pro-page-container/constant.d.ts +2 -0
  119. package/es/pro-page-container/constant.js +9 -0
  120. package/es/pro-page-container/index.d.ts +9 -22
  121. package/es/pro-page-container/index.js +21 -8
  122. package/es/pro-page-container/interface.d.ts +12 -0
  123. package/es/pro-page-container/pro-page-container.vue.d.ts +4 -15
  124. package/es/pro-page-container/pro-page-container.vue.js +58 -38
  125. package/es/pro-page-header/constant.d.ts +2 -0
  126. package/es/pro-page-header/constant.js +13 -0
  127. package/es/pro-page-header/index.d.ts +14 -147
  128. package/es/pro-page-header/index.js +21 -8
  129. package/es/pro-page-header/interface.d.ts +21 -0
  130. package/es/pro-page-header/pro-page-header.vue.d.ts +18 -103
  131. package/es/pro-page-header/pro-page-header.vue.js +141 -124
  132. package/es/pro-reuse-tabs/index.d.ts +8 -6
  133. package/es/pro-reuse-tabs/index.js +1 -1
  134. package/es/pro-reuse-tabs/pro-reuse-tabs.vue.d.ts +2 -2
  135. package/es/pro-reuse-tabs/pro-reuse-tabs.vue.js +33 -35
  136. package/es/pro-table/index.d.ts +22 -20
  137. package/es/pro-table/index.js +7 -5
  138. package/es/pro-table/index.vue.d.ts +11 -9
  139. package/es/pro-table/index.vue.js +93 -25
  140. package/es/pro-table/index.vue3.js +5 -0
  141. package/es/pro-table/interface.d.ts +74 -65
  142. package/es/pro-textarea/index.d.ts +7 -5
  143. package/es/pro-textarea/index.vue.d.ts +1 -1
  144. package/es/pro-textarea/index.vue.js +1 -1
  145. package/es/pro-textarea/index.vue2.js +14 -16
  146. package/es/pro-textarea/{inerface.d.ts → interface.d.ts} +19 -18
  147. package/es/style.css +1 -1
  148. package/es/utils.d.ts +6 -0
  149. package/es/utils.js +7 -0
  150. package/package.json +5 -4
  151. package/es/pro-date-range-picker/type.d.ts +0 -22
  152. package/es/pro-page-container/inerface.d.ts +0 -12
  153. 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" | "mini" | "medium" | "large";
33
- tabsType: "line" | "text" | "card" | "card-gutter" | "rounded" | "capsule";
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" | "mini" | "medium" | "large";
69
- tabsType: "line" | "text" | "card" | "card-gutter" | "rounded" | "capsule";
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" | "mini" | "medium" | "large";
105
- tabsType: "line" | "text" | "card" | "card-gutter" | "rounded" | "capsule";
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;
@@ -1,6 +1,6 @@
1
+ import { Tabs as e } from "@arco-design/web-vue";
1
2
  import o from "./pro-reuse-tabs.vue.js";
2
3
  /* empty css */
3
- import { Tabs as e } from "@arco-design/web-vue";
4
4
  const m = Object.assign(o, {
5
5
  install: (s) => {
6
6
  s.use(e), s.component("KbProReuseTabs", o);
@@ -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" | "mini" | "medium" | "large";
56
- tabsType: "line" | "text" | "card" | "card-gutter" | "rounded" | "capsule";
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 y, computed as f, resolveComponent as l, createElementBlock as s, openBlock as a, normalizeClass as k, createVNode as g, withCtx as v, Fragment as h, renderList as C, createBlock as S } from "vue";
2
- const _ = "keyblade-pro-reuse-tabs", q = /* @__PURE__ */ y({
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: d }) {
32
- const o = e, n = d, c = f(() => {
33
- var t;
34
- return ((t = o.tabs.find((r) => r.active)) == null ? void 0 : t.name) ?? void 0;
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
- n("tab-click", String(t));
37
+ i("tab-click", String(t));
37
38
  }, b = (t) => {
38
- n("tab-delete", String(t));
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
- q as default
67
+ x as default
70
68
  };
@@ -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
- scrollbar: boolean | any;
8
- bordered: boolean | any;
9
- columns: any[];
6
+ data: any[];
7
+ bordered: boolean | import('@arco-design/web-vue').TableBorder;
10
8
  hoverable: boolean;
11
- pagination: boolean | any;
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, {}, any, import('vue').ComponentProvideOptions, {
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
- scrollbar: boolean | any;
38
- bordered: boolean | any;
39
- columns: any[];
35
+ data: any[];
36
+ bordered: boolean | import('@arco-design/web-vue').TableBorder;
40
37
  hoverable: boolean;
41
- pagination: boolean | any;
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
- scrollbar: boolean | any;
65
- bordered: boolean | any;
66
- columns: any[];
61
+ data: any[];
62
+ bordered: boolean | import('@arco-design/web-vue').TableBorder;
67
63
  hoverable: boolean;
68
- pagination: boolean | any;
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;
@@ -1,11 +1,13 @@
1
1
  import e from "./index.vue.js";
2
- import { Table as t } from "@arco-design/web-vue";
3
- const s = Object.assign(e, {
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
- s as ProTable,
10
- s as default
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: any;
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
- scrollbar: boolean | any;
14
- bordered: boolean | any;
15
- columns: any[];
15
+ data: any[];
16
+ bordered: boolean | import('@arco-design/web-vue').TableBorder;
16
17
  hoverable: boolean;
17
- pagination: boolean | any;
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, {}, any>;
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
- import { defineComponent as p, useSlots as f, useAttrs as c, computed as i, resolveComponent as y, createBlock as m, openBlock as C, mergeProps as B, toHandlers as g, createSlots as b, renderList as h, unref as x, withCtx as S, renderSlot as w, normalizeProps as k, guardReactiveProps as _ } from "vue";
2
- const K = /* @__PURE__ */ p({
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: { cell: !0 } },
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: "br" },
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(a) {
67
- const n = a, s = f(), r = c(), d = i(() => {
68
- const e = {};
69
- for (const [o, t] of Object.entries(r))
70
- o.startsWith("on") && typeof t == "function" && (e[o] = t);
71
- return e;
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 (e, o) => {
74
- const t = y("a-table");
75
- return C(), m(t, B(n, g(d.value)), b({ _: 2 }, [
76
- h(x(s), (v, l) => ({
77
- name: l,
78
- fn: S((u) => [
79
- w(e.$slots, l, k(_(u)))
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
- K as default
155
+ de as default
88
156
  };
@@ -0,0 +1,5 @@
1
+ import o from "./index.vue.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };