bkui-vue 0.0.2-beta.3 → 0.0.2-beta.31

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 (235) hide show
  1. package/dist/index.cjs.js +63 -63
  2. package/dist/index.cjs.source.js +45938 -0
  3. package/dist/index.esm.js +16922 -16471
  4. package/dist/index.esm.source.js +45938 -0
  5. package/dist/index.umd.js +61 -61
  6. package/dist/index.umd.source.js +45941 -0
  7. package/dist/style.css +1 -1
  8. package/dist/style.variable.css +1 -1
  9. package/lib/affix/affix.d.ts +1 -1
  10. package/lib/affix/index.d.ts +4 -4
  11. package/lib/affix/index.js +1 -1
  12. package/lib/alert/alert.css +1 -0
  13. package/lib/alert/alert.less +119 -119
  14. package/lib/alert/alert.variable.css +1 -0
  15. package/lib/alert/index.d.ts +1 -1
  16. package/lib/animate-number/index.d.ts +1 -1
  17. package/lib/backtop/index.d.ts +1 -1
  18. package/lib/backtop/index.js +1 -1
  19. package/lib/badge/badge.d.ts +3 -2
  20. package/lib/badge/index.d.ts +10 -7
  21. package/lib/badge/index.js +1 -1
  22. package/lib/breadcrumb/breadcrumb-item.d.ts +1 -1
  23. package/lib/breadcrumb/breadcrumb.d.ts +1 -1
  24. package/lib/breadcrumb/index.d.ts +5 -5
  25. package/lib/button/button-group.d.ts +2 -2
  26. package/lib/button/index.d.ts +3 -3
  27. package/lib/button/index.js +1 -1
  28. package/lib/card/card.d.ts +1 -1
  29. package/lib/card/index.d.ts +4 -4
  30. package/lib/cascader/cascader-panel.d.ts +1 -0
  31. package/lib/cascader/cascader.d.ts +2 -12
  32. package/lib/cascader/cascader.less +4 -4
  33. package/lib/cascader/index.d.ts +8 -19
  34. package/lib/cascader/index.js +1 -1
  35. package/lib/checkbox/checkbox-group.d.ts +3 -1
  36. package/lib/checkbox/checkbox.d.ts +8 -8
  37. package/lib/checkbox/index.d.ts +16 -14
  38. package/lib/checkbox/index.js +1 -1
  39. package/lib/code-diff/index.d.ts +1 -1
  40. package/lib/collapse/index.d.ts +1 -1
  41. package/lib/collapse-transition/collapse-transition.d.ts +1 -0
  42. package/lib/collapse-transition/index.js +1 -1
  43. package/lib/color-picker/color-picker.d.ts +1 -1
  44. package/lib/color-picker/index.d.ts +4 -4
  45. package/lib/color-picker/index.js +1 -1
  46. package/lib/components.d.ts +1 -1
  47. package/lib/config-provider/index.d.ts +1 -1
  48. package/lib/container/index.d.ts +1 -1
  49. package/lib/container/index.js +1 -1
  50. package/lib/date-picker/base/confirm.d.ts +1 -0
  51. package/lib/date-picker/base/date-table.d.ts +1 -0
  52. package/lib/date-picker/base/month-table.d.ts +1 -0
  53. package/lib/date-picker/base/picker-dropdown.d.ts +1 -0
  54. package/lib/date-picker/base/time-spinner.d.ts +2 -1
  55. package/lib/date-picker/base/year-table.d.ts +1 -0
  56. package/lib/date-picker/date-picker.d.ts +3 -2
  57. package/lib/date-picker/index.d.ts +10 -7
  58. package/lib/date-picker/index.js +1 -1
  59. package/lib/date-picker/panel/date-range.d.ts +1 -0
  60. package/lib/date-picker/panel/date.d.ts +1 -0
  61. package/lib/date-picker/panel/time-range.d.ts +3 -2
  62. package/lib/date-picker/panel/time.d.ts +3 -2
  63. package/lib/date-picker/time-picker.d.ts +3 -2
  64. package/lib/dialog/dialog.d.ts +4 -3
  65. package/lib/dialog/index.d.ts +11 -8
  66. package/lib/dialog/index.js +1 -1
  67. package/lib/dialog/props.d.ts +1 -1
  68. package/lib/directives/index.js +1 -1
  69. package/lib/directives/tooltips.d.ts +3 -2
  70. package/lib/divider/divider.less +3 -4
  71. package/lib/divider/index.d.ts +1 -1
  72. package/lib/divider/index.js +1 -1
  73. package/lib/dropdown/dropdown.d.ts +1 -1
  74. package/lib/dropdown/index.d.ts +6 -6
  75. package/lib/exception/index.d.ts +1 -1
  76. package/lib/fixed-navbar/index.d.ts +1 -1
  77. package/lib/fixed-navbar/index.js +1 -1
  78. package/lib/form/index.d.ts +1 -1
  79. package/lib/icon/assistant.d.ts +4 -0
  80. package/lib/icon/assistant.js +1 -0
  81. package/lib/icon/index.d.ts +1 -0
  82. package/lib/icon/index.js +1 -1
  83. package/lib/image/image-viewer.less +5 -3
  84. package/lib/image/image-viewer.variable.css +122 -0
  85. package/lib/image/image.css +142 -0
  86. package/lib/image/image.d.ts +0 -1
  87. package/lib/image/image.less +4 -1
  88. package/lib/image/image.variable.css +264 -0
  89. package/lib/image/index.d.ts +1 -1
  90. package/lib/image/index.js +1 -1
  91. package/lib/info-box/index.js +1 -1
  92. package/lib/input/index.d.ts +93 -57
  93. package/lib/input/index.js +1 -1
  94. package/lib/input/input.css +12 -0
  95. package/lib/input/input.d.ts +48 -15
  96. package/lib/input/input.less +26 -5
  97. package/lib/input/input.variable.css +12 -0
  98. package/lib/link/index.d.ts +7 -4
  99. package/lib/link/index.js +1 -1
  100. package/lib/link/link.d.ts +2 -1
  101. package/lib/loading/index.d.ts +1 -1
  102. package/lib/loading/index.js +1 -1
  103. package/lib/menu/index.d.ts +1 -1
  104. package/lib/message/index.js +1 -1
  105. package/lib/message/message.css +18 -8
  106. package/lib/message/message.less +68 -56
  107. package/lib/message/message.variable.css +18 -8
  108. package/lib/message/messageConstructor.d.ts +33 -8
  109. package/lib/modal/index.d.ts +9 -9
  110. package/lib/modal/index.js +1 -1
  111. package/lib/modal/modal.d.ts +3 -3
  112. package/lib/modal/props.mixin.d.ts +1 -1
  113. package/lib/navigation/index.d.ts +4 -1
  114. package/lib/navigation/index.js +1 -1
  115. package/lib/navigation/navigation.d.ts +1 -0
  116. package/lib/notify/index.js +1 -1
  117. package/lib/notify/notifyConstructor.d.ts +1 -1
  118. package/lib/overflow-title/index.d.ts +1 -1
  119. package/lib/pagination/index.d.ts +8 -8
  120. package/lib/pagination/index.js +1 -1
  121. package/lib/pagination/pagination.d.ts +4 -4
  122. package/lib/plugin-popover/index.js +1 -1
  123. package/lib/pop-confirm/index.d.ts +1 -1
  124. package/lib/pop-confirm/index.js +1 -1
  125. package/lib/pop-confirm/pop-confirm.less +9 -8
  126. package/lib/popover/const.d.ts +22 -9
  127. package/lib/popover/content.d.ts +25 -0
  128. package/lib/popover/index.d.ts +131 -61
  129. package/lib/popover/index.js +1 -1
  130. package/lib/popover/popover.d.ts +52 -24
  131. package/lib/popover/props.d.ts +23 -5
  132. package/lib/popover/use-floating.d.ts +2 -2
  133. package/lib/popover/use-popover-init.d.ts +1 -1
  134. package/lib/popover2/index.d.ts +1 -1
  135. package/lib/process/index.d.ts +1 -1
  136. package/lib/progress/index.d.ts +8 -8
  137. package/lib/progress/progress.d.ts +4 -4
  138. package/lib/radio/index.d.ts +4 -4
  139. package/lib/radio/radio-button.d.ts +3 -3
  140. package/lib/radio/radio-group.d.ts +1 -1
  141. package/lib/radio/radio.less +1 -1
  142. package/lib/rate/index.d.ts +12 -8
  143. package/lib/rate/index.js +1 -1
  144. package/lib/rate/rate.d.ts +4 -3
  145. package/lib/rate/rate.less +5 -3
  146. package/lib/rate/rate.variable.css +122 -0
  147. package/lib/rate/star.less +6 -4
  148. package/lib/rate/star.variable.css +122 -0
  149. package/lib/resize-layout/index.d.ts +1 -1
  150. package/lib/resize-layout/index.js +1 -1
  151. package/lib/resize-layout/resize-layout.css +12 -0
  152. package/lib/resize-layout/resize-layout.less +12 -0
  153. package/lib/resize-layout/resize-layout.variable.css +12 -0
  154. package/lib/search-select/index.d.ts +4 -1
  155. package/lib/search-select/index.js +1 -1
  156. package/lib/search-select/search-select.d.ts +1 -0
  157. package/lib/search-select/utils.d.ts +1 -0
  158. package/lib/select/index.d.ts +126 -61
  159. package/lib/select/index.js +1 -1
  160. package/lib/select/option.d.ts +1 -0
  161. package/lib/select/optionGroup.d.ts +1 -0
  162. package/lib/select/select.d.ts +57 -31
  163. package/lib/select/selectTagInput.d.ts +4 -0
  164. package/lib/shared/index.js +1 -1
  165. package/lib/shared/mask-manager.d.ts +3 -4
  166. package/lib/shared/pop-manager.d.ts +6 -2
  167. package/lib/shared/vue-types.d.ts +2 -2
  168. package/lib/sideslider/index.d.ts +8 -8
  169. package/lib/sideslider/index.js +1 -1
  170. package/lib/sideslider/sideslider.d.ts +3 -3
  171. package/lib/slider/index.d.ts +1 -1
  172. package/lib/slider/index.js +1 -1
  173. package/lib/slider/slider.less +6 -6
  174. package/lib/steps/index.d.ts +8 -8
  175. package/lib/steps/index.js +1 -1
  176. package/lib/steps/steps.d.ts +4 -4
  177. package/lib/styles/index.d.ts +2 -0
  178. package/lib/styles/mixins/popper.less +6 -5
  179. package/lib/styles/reset.less +4 -2
  180. package/lib/styles/reset.variable.css +122 -0
  181. package/lib/swiper/index.d.ts +1 -1
  182. package/lib/switcher/index.d.ts +5 -5
  183. package/lib/switcher/index.js +1 -1
  184. package/lib/switcher/switcher.d.ts +2 -2
  185. package/lib/tab/index.d.ts +5 -2
  186. package/lib/tab/index.js +1 -1
  187. package/lib/tab/tab-nav.d.ts +1 -0
  188. package/lib/tab/tab-panel.d.ts +1 -1
  189. package/lib/tab/tab.d.ts +1 -0
  190. package/lib/table/components/table-cell.d.ts +43 -11
  191. package/lib/table/components/table-column.d.ts +184 -208
  192. package/lib/table/const.d.ts +16 -54
  193. package/lib/table/events.d.ts +180 -0
  194. package/lib/table/index.d.ts +740 -421
  195. package/lib/table/index.js +1 -1
  196. package/lib/table/plugins/head-filter.d.ts +6 -5
  197. package/lib/table/plugins/head-filter.less +5 -7
  198. package/lib/table/plugins/head-sort.d.ts +6 -5
  199. package/lib/table/plugins/settings.d.ts +13 -21
  200. package/lib/table/plugins/settings.less +3 -3
  201. package/lib/table/plugins/use-fixed-column.d.ts +3 -2
  202. package/lib/table/props.d.ts +205 -170
  203. package/lib/table/render.d.ts +6 -4
  204. package/lib/table/table.css +28 -4
  205. package/lib/table/table.d.ts +206 -91
  206. package/lib/table/table.less +39 -5
  207. package/lib/table/table.variable.css +28 -4
  208. package/lib/table/use-column.d.ts +63 -1
  209. package/lib/table/use-common.d.ts +15 -9
  210. package/lib/table/utils.d.ts +1 -0
  211. package/lib/table-column/index.d.ts +255 -503
  212. package/lib/table-column/index.js +1 -1
  213. package/lib/tag/index.d.ts +1 -1
  214. package/lib/tag-input/index.d.ts +49 -28
  215. package/lib/tag-input/index.js +1 -1
  216. package/lib/tag-input/tag-input.css +1 -1
  217. package/lib/tag-input/tag-input.d.ts +30 -16
  218. package/lib/tag-input/tag-input.less +4 -4
  219. package/lib/tag-input/tag-input.variable.css +1 -1
  220. package/lib/tag-input/tag-props.d.ts +14 -7
  221. package/lib/time-picker/index.d.ts +10 -7
  222. package/lib/time-picker/time-picker.less +39 -39
  223. package/lib/timeline/index.d.ts +1 -1
  224. package/lib/transfer/index.d.ts +1 -1
  225. package/lib/tree/index.d.ts +4 -4
  226. package/lib/tree/index.js +1 -1
  227. package/lib/tree/tree.d.ts +11 -1
  228. package/lib/tree/use-node-attribute.d.ts +1 -1
  229. package/lib/upload/index.d.ts +1 -1
  230. package/lib/virtual-render/index.d.ts +19 -1
  231. package/lib/virtual-render/index.js +1 -1
  232. package/lib/virtual-render/props.d.ts +8 -0
  233. package/lib/virtual-render/virtual-render.d.ts +11 -0
  234. package/lib/virtual-render/virtual-render.less +5 -6
  235. package/package.json +2 -2
@@ -1,18 +1,73 @@
1
+ import { ExtractPropTypes } from 'vue';
1
2
  import { Column } from '../props';
2
- export type ITableColumn = Column & {
3
- prop?: string | Function;
4
- index?: number;
5
- };
6
- declare const _default: import("vue").DefineComponent<{
7
- prop: import("vue-types").VueTypeDef<any>;
3
+ declare const TableColumnProp: {
4
+ label: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
5
+ field: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
6
+ render: import("vue-types").VueTypeDef<import("../props").RenderFunctionString>;
7
+ width: import("vue-types").VueTypeDef<string | number>;
8
+ minWidth: import("vue-types").VueTypeDef<string | number> & {
9
+ default: string | number;
10
+ };
11
+ columnKey: import("vue-types").VueTypeValidableDef<string> & {
12
+ default: string;
13
+ } & {
14
+ default: string;
15
+ };
16
+ showOverflowTooltip: import("vue-types").VueTypeDef<import("../props").IOverflowTooltipProp> & {
17
+ default: boolean | (() => {
18
+ content: string | Function;
19
+ disabled?: boolean;
20
+ watchCellResize?: boolean;
21
+ mode?: "auto" | "static";
22
+ popoverOption?: any;
23
+ resizerWay?: import("../props").ResizerWay;
24
+ });
25
+ };
26
+ type: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
27
+ resizable: import("vue-types").VueTypeValidableDef<boolean> & {
28
+ default: boolean;
29
+ } & {
30
+ default: boolean;
31
+ };
32
+ fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
33
+ default: boolean | "right" | "left";
34
+ };
35
+ sort: import("vue-types").VueTypeDef<import("../props").ISortPropShape> & {
36
+ default: string | boolean | (() => import("../props").ISortShape);
37
+ };
38
+ filter: import("vue-types").VueTypeDef<import("../props").IFilterPropShape> & {
39
+ default: string | boolean | (() => import("../props").IFilterShape);
40
+ };
41
+ colspan: import("vue-types").VueTypeDef<import("../props").SpanFunctionString> & {
42
+ default: (({ column, colIndex, row, rowIndex, }: {
43
+ column: any;
44
+ colIndex: any;
45
+ row: any;
46
+ rowIndex: any;
47
+ }) => number) | (() => Number);
48
+ };
49
+ rowspan: import("vue-types").VueTypeDef<import("../props").SpanFunctionString> & {
50
+ default: (({ column, colIndex, row, rowIndex, }: {
51
+ column: any;
52
+ colIndex: any;
53
+ row: any;
54
+ rowIndex: any;
55
+ }) => number) | (() => Number);
56
+ };
57
+ align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
58
+ className: import("vue-types").VueTypeDef<import("../props").RowClassFunctionString>;
59
+ prop: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
8
60
  index: import("vue-types").VueTypeValidableDef<number> & {
9
61
  default: number;
10
62
  } & {
11
63
  default: number;
12
64
  };
13
- label: import("vue-types").VueTypeDef<any>;
14
- field: import("vue-types").VueTypeDef<any>;
15
- render: import("vue-types").VueTypeDef<any>;
65
+ };
66
+ export type ITableColumn = Partial<ExtractPropTypes<typeof TableColumnProp>>;
67
+ declare const _default: import("vue").DefineComponent<{
68
+ label: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
69
+ field: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
70
+ render: import("vue-types").VueTypeDef<import("../props").RenderFunctionString>;
16
71
  width: import("vue-types").VueTypeDef<string | number>;
17
72
  minWidth: import("vue-types").VueTypeDef<string | number> & {
18
73
  default: string | number;
@@ -22,8 +77,15 @@ declare const _default: import("vue").DefineComponent<{
22
77
  } & {
23
78
  default: string;
24
79
  };
25
- showOverflowTooltip: import("vue-types").VueTypeDef<boolean | import("../props").IOverflowTooltip> & {
26
- default: boolean | (() => import("../props").IOverflowTooltip);
80
+ showOverflowTooltip: import("vue-types").VueTypeDef<import("../props").IOverflowTooltipProp> & {
81
+ default: boolean | (() => {
82
+ content: string | Function;
83
+ disabled?: boolean;
84
+ watchCellResize?: boolean;
85
+ mode?: "auto" | "static";
86
+ popoverOption?: any;
87
+ resizerWay?: import("../props").ResizerWay;
88
+ });
27
89
  };
28
90
  type: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
29
91
  resizable: import("vue-types").VueTypeValidableDef<boolean> & {
@@ -34,72 +96,76 @@ declare const _default: import("vue").DefineComponent<{
34
96
  fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
35
97
  default: boolean | "right" | "left";
36
98
  };
37
- sort: import("vue-types").VueTypeDef<string | boolean | {
38
- sortFn: any;
39
- sortScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
40
- value: string;
41
- }> & {
42
- default: string | boolean | (() => {
43
- sortFn: any;
44
- sortScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
45
- value: string;
46
- });
99
+ sort: import("vue-types").VueTypeDef<import("../props").ISortPropShape> & {
100
+ default: string | boolean | (() => import("../props").ISortShape);
47
101
  };
48
- filter: import("vue-types").VueTypeDef<string | boolean | {
49
- list: any[] | (object & (() => any[]));
50
- filterFn: any;
51
- match: "full" | "fuzzy";
52
- checked: any[] | (object & (() => any[]));
53
- filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
54
- btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
55
- btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
56
- }> & {
57
- default: string | boolean | (() => {
58
- list: any[] | (object & (() => any[]));
59
- filterFn: any;
60
- match: "full" | "fuzzy";
61
- checked: any[] | (object & (() => any[]));
62
- filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
63
- btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
64
- btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
65
- });
102
+ filter: import("vue-types").VueTypeDef<import("../props").IFilterPropShape> & {
103
+ default: string | boolean | (() => import("../props").IFilterShape);
104
+ };
105
+ colspan: import("vue-types").VueTypeDef<import("../props").SpanFunctionString> & {
106
+ default: (({ column, colIndex, row, rowIndex, }: {
107
+ column: any;
108
+ colIndex: any;
109
+ row: any;
110
+ rowIndex: any;
111
+ }) => number) | (() => Number);
112
+ };
113
+ rowspan: import("vue-types").VueTypeDef<import("../props").SpanFunctionString> & {
114
+ default: (({ column, colIndex, row, rowIndex, }: {
115
+ column: any;
116
+ colIndex: any;
117
+ row: any;
118
+ rowIndex: any;
119
+ }) => number) | (() => Number);
66
120
  };
67
- colspan: import("vue-types").VueTypeDef<any>;
68
- rowspan: import("vue-types").VueTypeDef<any>;
69
121
  align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
70
- className: import("vue-types").VueTypeDef<any>;
122
+ className: import("vue-types").VueTypeDef<import("../props").RowClassFunctionString>;
123
+ prop: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
124
+ index: import("vue-types").VueTypeValidableDef<number> & {
125
+ default: number;
126
+ } & {
127
+ default: number;
128
+ };
71
129
  }, {
72
- initColumns: (_col: ITableColumn | ITableColumn[], _rm?: boolean) => void;
130
+ initColumns: (_col: Column | Column[], _rm?: boolean) => void;
73
131
  bkTableCache: {
74
132
  queueStack: (_: any, fn: any) => any;
75
133
  };
76
134
  column: {
77
- field: string | Function;
78
- label: string | Function;
79
- render?: string | Function | import("vue").Slot<any>;
80
- width?: string | number;
135
+ field: import("../props").LabelFunctionString;
136
+ sort?: string | boolean | {
137
+ sortFn?: Function;
138
+ sortScope?: import("../props").SortScope;
139
+ value?: import("../const").SORT_OPTION;
140
+ };
141
+ filter?: string | boolean | {
142
+ list: any[];
143
+ filterFn?: Function;
144
+ match?: import("../props").FullEnum;
145
+ checked?: any[];
146
+ filterScope?: import("../props").SortScope;
147
+ btnSave?: string | boolean;
148
+ btnReset?: string | boolean;
149
+ };
150
+ fixed?: boolean | "right" | "left";
81
151
  minWidth?: string | number;
152
+ index?: number;
82
153
  columnKey?: string;
83
154
  showOverflowTooltip?: boolean | {
84
155
  content: string | Function;
85
156
  disabled?: boolean;
86
157
  watchCellResize?: boolean;
87
158
  mode?: "auto" | "static";
159
+ popoverOption?: any;
160
+ resizerWay?: import("../props").ResizerWay;
88
161
  };
89
- type?: string;
90
- fixed?: string | boolean;
91
162
  resizable?: boolean;
92
- sort?: string | boolean | {
93
- sortFn?: Function;
94
- sortScope?: string;
95
- value?: string;
96
- };
97
- filter?: string | boolean | {
98
- list?: any;
99
- filterFn?: Function;
100
- checked?: any;
101
- };
102
- colspan?: Function | {
163
+ colspan?: (({ column, colIndex, row, rowIndex, }: {
164
+ column: any;
165
+ colIndex: any;
166
+ row: any;
167
+ rowIndex: any;
168
+ }) => number) | {
103
169
  toString: (radix?: number) => string;
104
170
  toFixed: (fractionDigits?: number) => string;
105
171
  toExponential: (fractionDigits?: number) => string;
@@ -110,7 +176,12 @@ declare const _default: import("vue").DefineComponent<{
110
176
  (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
111
177
  };
112
178
  };
113
- rowspan?: Function | {
179
+ rowspan?: (({ column, colIndex, row, rowIndex, }: {
180
+ column: any;
181
+ colIndex: any;
182
+ row: any;
183
+ rowIndex: any;
184
+ }) => number) | {
114
185
  toString: (radix?: number) => string;
115
186
  toFixed: (fractionDigits?: number) => string;
116
187
  toExponential: (fractionDigits?: number) => string;
@@ -121,110 +192,22 @@ declare const _default: import("vue").DefineComponent<{
121
192
  (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
122
193
  };
123
194
  };
124
- textAlign?: {
125
- [x: number]: string;
126
- toString: () => string;
127
- charAt: (pos: number) => string;
128
- charCodeAt: (index: number) => number;
129
- concat: (...strings: string[]) => string;
130
- indexOf: (searchString: string, position?: number) => number;
131
- lastIndexOf: (searchString: string, position?: number) => number;
132
- localeCompare: {
133
- (that: string): number;
134
- (that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
135
- };
136
- match: {
137
- (regexp: string | RegExp): RegExpMatchArray;
138
- (matcher: {
139
- [Symbol.match](string: string): RegExpMatchArray;
140
- }): RegExpMatchArray;
141
- };
142
- replace: {
143
- (searchValue: string | RegExp, replaceValue: string): string;
144
- (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
145
- (searchValue: {
146
- [Symbol.replace](string: string, replaceValue: string): string;
147
- }, replaceValue: string): string;
148
- (searchValue: {
149
- [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
150
- }, replacer: (substring: string, ...args: any[]) => string): string;
151
- };
152
- search: {
153
- (regexp: string | RegExp): number;
154
- (searcher: {
155
- [Symbol.search](string: string): number;
156
- }): number;
157
- };
158
- slice: (start?: number, end?: number) => string;
159
- split: {
160
- (separator: string | RegExp, limit?: number): string[];
161
- (splitter: {
162
- [Symbol.split](string: string, limit?: number): string[];
163
- }, limit?: number): string[];
164
- };
165
- substring: (start: number, end?: number) => string;
166
- toLowerCase: () => string;
167
- toLocaleLowerCase: (locales?: string | string[]) => string;
168
- toUpperCase: () => string;
169
- toLocaleUpperCase: (locales?: string | string[]) => string;
170
- trim: () => string;
171
- readonly length: number;
172
- substr: (from: number, length?: number) => string;
173
- valueOf: () => string;
174
- codePointAt: (pos: number) => number;
175
- includes: (searchString: string, position?: number) => boolean;
176
- endsWith: (searchString: string, endPosition?: number) => boolean;
177
- normalize: {
178
- (form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
179
- (form?: string): string;
180
- };
181
- repeat: (count: number) => string;
182
- startsWith: (searchString: string, position?: number) => boolean;
183
- anchor: (name: string) => string;
184
- big: () => string;
185
- blink: () => string;
186
- bold: () => string;
187
- fixed: () => string;
188
- fontcolor: (color: string) => string;
189
- fontsize: {
190
- (size: number): string;
191
- (size: string): string;
192
- };
193
- italics: () => string;
194
- link: (url: string) => string;
195
- small: () => string;
196
- strike: () => string;
197
- sub: () => string;
198
- sup: () => string;
199
- padStart: (maxLength: number, fillString?: string) => string;
200
- padEnd: (maxLength: number, fillString?: string) => string;
201
- trimEnd: () => string;
202
- trimStart: () => string;
203
- trimLeft: () => string;
204
- trimRight: () => string;
205
- matchAll: (regexp: RegExp) => IterableIterator<RegExpMatchArray>;
206
- [Symbol.iterator]: () => IterableIterator<string>;
207
- at: (index: number) => string;
208
- };
209
- className?: string | Function;
210
- align?: string;
211
- prop?: string | Function;
212
- index?: number;
195
+ render?: import("../props").RenderFunctionString;
196
+ type?: "none" | "selection" | "index" | "expand";
197
+ label?: import("../props").LabelFunctionString;
198
+ width?: string | number;
199
+ className?: import("../props").RowClassFunctionString;
200
+ align?: "" | "right" | "left" | "center";
201
+ prop?: import("../props").LabelFunctionString;
213
202
  };
214
203
  }, unknown, {}, {
215
204
  updateColumnDefine(unmounted?: boolean): void;
216
205
  updateColumnDefineByParent(): void;
217
206
  updateColumnDefineByIndex(unmounted?: boolean): void;
218
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
219
- prop: import("vue-types").VueTypeDef<any>;
220
- index: import("vue-types").VueTypeValidableDef<number> & {
221
- default: number;
222
- } & {
223
- default: number;
224
- };
225
- label: import("vue-types").VueTypeDef<any>;
226
- field: import("vue-types").VueTypeDef<any>;
227
- render: import("vue-types").VueTypeDef<any>;
207
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
208
+ label: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
209
+ field: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
210
+ render: import("vue-types").VueTypeDef<import("../props").RenderFunctionString>;
228
211
  width: import("vue-types").VueTypeDef<string | number>;
229
212
  minWidth: import("vue-types").VueTypeDef<string | number> & {
230
213
  default: string | number;
@@ -234,8 +217,15 @@ declare const _default: import("vue").DefineComponent<{
234
217
  } & {
235
218
  default: string;
236
219
  };
237
- showOverflowTooltip: import("vue-types").VueTypeDef<boolean | import("../props").IOverflowTooltip> & {
238
- default: boolean | (() => import("../props").IOverflowTooltip);
220
+ showOverflowTooltip: import("vue-types").VueTypeDef<import("../props").IOverflowTooltipProp> & {
221
+ default: boolean | (() => {
222
+ content: string | Function;
223
+ disabled?: boolean;
224
+ watchCellResize?: boolean;
225
+ mode?: "auto" | "static";
226
+ popoverOption?: any;
227
+ resizerWay?: import("../props").ResizerWay;
228
+ });
239
229
  };
240
230
  type: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
241
231
  resizable: import("vue-types").VueTypeValidableDef<boolean> & {
@@ -246,60 +236,46 @@ declare const _default: import("vue").DefineComponent<{
246
236
  fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
247
237
  default: boolean | "right" | "left";
248
238
  };
249
- sort: import("vue-types").VueTypeDef<string | boolean | {
250
- sortFn: any;
251
- sortScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
252
- value: string;
253
- }> & {
254
- default: string | boolean | (() => {
255
- sortFn: any;
256
- sortScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
257
- value: string;
258
- });
239
+ sort: import("vue-types").VueTypeDef<import("../props").ISortPropShape> & {
240
+ default: string | boolean | (() => import("../props").ISortShape);
259
241
  };
260
- filter: import("vue-types").VueTypeDef<string | boolean | {
261
- list: any[] | (object & (() => any[]));
262
- filterFn: any;
263
- match: "full" | "fuzzy";
264
- checked: any[] | (object & (() => any[]));
265
- filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
266
- btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
267
- btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
268
- }> & {
269
- default: string | boolean | (() => {
270
- list: any[] | (object & (() => any[]));
271
- filterFn: any;
272
- match: "full" | "fuzzy";
273
- checked: any[] | (object & (() => any[]));
274
- filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
275
- btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
276
- btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
277
- });
242
+ filter: import("vue-types").VueTypeDef<import("../props").IFilterPropShape> & {
243
+ default: string | boolean | (() => import("../props").IFilterShape);
244
+ };
245
+ colspan: import("vue-types").VueTypeDef<import("../props").SpanFunctionString> & {
246
+ default: (({ column, colIndex, row, rowIndex, }: {
247
+ column: any;
248
+ colIndex: any;
249
+ row: any;
250
+ rowIndex: any;
251
+ }) => number) | (() => Number);
252
+ };
253
+ rowspan: import("vue-types").VueTypeDef<import("../props").SpanFunctionString> & {
254
+ default: (({ column, colIndex, row, rowIndex, }: {
255
+ column: any;
256
+ colIndex: any;
257
+ row: any;
258
+ rowIndex: any;
259
+ }) => number) | (() => Number);
278
260
  };
279
- colspan: import("vue-types").VueTypeDef<any>;
280
- rowspan: import("vue-types").VueTypeDef<any>;
281
261
  align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
282
- className: import("vue-types").VueTypeDef<any>;
283
- }>>, {
284
- sort: string | boolean | {
285
- sortFn: any;
286
- sortScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
287
- value: string;
288
- };
289
- filter: string | boolean | {
290
- list: any[] | (object & (() => any[]));
291
- filterFn: any;
292
- match: "full" | "fuzzy";
293
- checked: any[] | (object & (() => any[]));
294
- filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
295
- btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
296
- btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
262
+ className: import("vue-types").VueTypeDef<import("../props").RowClassFunctionString>;
263
+ prop: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
264
+ index: import("vue-types").VueTypeValidableDef<number> & {
265
+ default: number;
266
+ } & {
267
+ default: number;
297
268
  };
269
+ }>>, {
270
+ sort: import("../props").ISortPropShape;
271
+ filter: import("../props").IFilterPropShape;
298
272
  fixed: boolean | "right" | "left";
299
273
  minWidth: string | number;
300
274
  index: number;
301
275
  columnKey: string;
302
- showOverflowTooltip: boolean | import("../props").IOverflowTooltip;
276
+ showOverflowTooltip: import("../props").IOverflowTooltipProp;
303
277
  resizable: boolean;
278
+ colspan: import("../props").SpanFunctionString;
279
+ rowspan: import("../props").SpanFunctionString;
304
280
  }, {}>;
305
281
  export default _default;
@@ -19,60 +19,6 @@ export declare const ROW_HOVER_OPTIONS: ROW_HOVER[];
19
19
  * 边框配置可选项
20
20
  */
21
21
  export declare const BORDER_OPTIONS: BORDER_OPTION[];
22
- export declare const enum EVENTS {
23
- /** 点击排序事件 */
24
- ON_SORT_BY_CLICK = "onSortByClick",
25
- ON_FILTER_CLICK = "onFilterClick",
26
- ON_SETTING_CHANGE = "onSettingChange",
27
- ON_ROW_EXPAND_CLICK = "onRowExpandClick",
28
- ON_ROW_CHECK = "onRowCheck"
29
- }
30
- export declare const enum EMIT_EVENTS {
31
- COLUMN_PICK = "columnPick",
32
- COLUMN_SORT = "columnSort",
33
- COLUMN_FILTER = "columnFilter",
34
- COLUMN_FILTER_SAVE = "colFilterSave",
35
- ROW_CLICK = "rowClick",
36
- ROW_DBL_CLICK = "rowDblclick",
37
- ROW_EXPAND_CLICK = "rowExpand",
38
- ROW_MOUSE_ENTER = "rowMouseEnter",
39
- ROW_MOUSE_LEAVE = "rowMouseLeave",
40
- PAGE_LIMIT_CHANGE = "pageLimitChange",
41
- PAGE_VALUE_CHANGE = "pageValueChange",
42
- SETTING_CHANGE = "settingChange",
43
- SCROLL_BOTTOM = "scrollBottom",
44
- ROW_SELECT = "select",
45
- ROW_SELECT_ALL = "selectAll",
46
- ROW_SELECT_CHANGE = "selectionChange",
47
- CELL_CLICK = "cellClick",
48
- CELL_DBL_CLICK = "cellDblclick",
49
- NATIVE_CLICK = "click",
50
- NATIVE_DBL_CLICK = "dblclick"
51
- }
52
- export declare const EMIT_EVENT_TYPES: {
53
- columnPick: (..._args: any[]) => boolean;
54
- columnFilter: (..._args: any[]) => boolean;
55
- columnSort: (..._args: any[]) => boolean;
56
- colFilterSave: (..._args: any[]) => boolean;
57
- rowClick: (..._args: any[]) => boolean;
58
- rowDblclick: (..._args: any[]) => boolean;
59
- rowExpand: (..._args: any[]) => boolean;
60
- select: (..._args: any[]) => boolean;
61
- selectAll: (..._args: any[]) => boolean;
62
- selectionChange: (..._args: any[]) => boolean;
63
- pageLimitChange: (..._args: any[]) => boolean;
64
- pageValueChange: (..._args: any[]) => boolean;
65
- settingChange: (..._args: any[]) => boolean;
66
- scrollBottom: (..._args: any[]) => boolean;
67
- cellClick: (..._args: any[]) => boolean;
68
- cellDblclick: (..._args: any[]) => boolean;
69
- rowMouseEnter: (..._args: any[]) => boolean;
70
- rowMouseLeave: (..._args: any[]) => boolean;
71
- };
72
- export declare const CELL_EVENT_TYPES: {
73
- click: (..._args: any[]) => boolean;
74
- dblclick: (..._args: any[]) => boolean;
75
- };
76
22
  /**
77
23
  * Table Row Attributes
78
24
  */
@@ -99,6 +45,17 @@ export declare const SCROLLY_WIDTH = 6;
99
45
  * 默认行高
100
46
  */
101
47
  export declare const LINE_HEIGHT = 42;
48
+ export declare enum IHeadColor {
49
+ DEF1 = "def1",
50
+ DEF2 = "def2"
51
+ }
52
+ /**
53
+ * 根据表格的使用场景,表头支持颜色自定义,默认提供的选项:FAFBFD、F0F1F5,尽量一个项目选用同一种颜色。
54
+ */
55
+ export declare const DEF_COLOR: {
56
+ def1: string;
57
+ def2: string;
58
+ };
102
59
  export declare const SETTING_SIZE: {
103
60
  large: number;
104
61
  medium: number;
@@ -115,6 +72,11 @@ export declare const createDefaultSizeList: (t: ComputedRef<Language['table']>)
115
72
  export declare const PROVIDE_KEY_INIT_COL = "InitColumns";
116
73
  export declare const PROVIDE_KEY_TB_CACHE = "BKTableCahce";
117
74
  export declare const BK_COLUMN_UPDATE_DEFINE = "Bk_COlumn_Update_Define";
75
+ /**
76
+ * 表格底部高度
77
+ * 分页组件
78
+ */
79
+ export declare const TB_FOOT_HEIGHT = 60;
118
80
  /**
119
81
  * 排序可选择项
120
82
  */