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
@@ -2,19 +2,20 @@ import { ExtractPropTypes } from 'vue';
2
2
  import Column from './components/table-column';
3
3
  import { tableProps } from './props';
4
4
  export type TableProps = Partial<ExtractPropTypes<typeof tableProps>>;
5
- export type { Column as TableIColumn, Settings as TableSettings, TableColumnProps } from './props';
5
+ export type { Column as TableIColumn, Settings as TableSettings } from './props';
6
6
  declare const BkTable: {
7
7
  new (...args: any[]): {
8
8
  $: import("vue").ComponentInternalInstance;
9
9
  $data: {};
10
10
  $props: {
11
- pagination?: boolean | {
12
- [key: string]: any;
13
- };
14
11
  data?: any[];
12
+ thead?: import("./props").Thead;
15
13
  height?: string | number;
16
14
  maxHeight?: string | number;
17
15
  border?: string | ("col" | "none" | "row" | "horizontal" | "outer")[];
16
+ pagination?: boolean | {
17
+ [key: string]: any;
18
+ };
18
19
  minHeight?: string | number;
19
20
  columns?: import("./props").Column[];
20
21
  cellClass?: any;
@@ -23,22 +24,16 @@ declare const BkTable: {
23
24
  scrollLoading?: boolean | {
24
25
  [key: string]: any;
25
26
  };
26
- showOverflowTooltip?: boolean | import("./props").IOverflowTooltip;
27
+ showOverflowTooltip?: import("./props").IOverflowTooltipProp;
27
28
  columnPick?: "disabled" | "single" | "multi";
28
- rowHeight?: any;
29
+ stripe?: boolean;
30
+ rowHeight?: import("./props").RowHeightFunctionNumber;
29
31
  showHead?: boolean;
30
32
  virtualEnabled?: boolean;
31
33
  paginationHeight?: number;
32
34
  remotePagination?: boolean;
33
35
  emptyText?: string;
34
- settings?: boolean | {
35
- fields: import("./props").Field[] | (() => import("./props").Field[]);
36
- checked: string[] | (() => string[]);
37
- limit: number;
38
- size: "small" | "medium" | "large";
39
- sizeList: import("./props").SizeItem[] | (object & (() => import("./props").SizeItem[]));
40
- showLineHeight: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
41
- };
36
+ settings?: import("./props").ISettingPropType;
42
37
  rowClass?: any;
43
38
  rowStyle?: any;
44
39
  cellStyle?: any;
@@ -53,10 +48,14 @@ declare const BkTable: {
53
48
  prependStyle?: import("vue").CSSProperties;
54
49
  class?: unknown;
55
50
  style?: unknown;
56
- readonly thead?: import("./props").Thead;
57
- onSelect?: (...args: any[]) => any;
58
- key?: string | number | symbol;
51
+ onSelect?: (_args: {
52
+ row: Record<string, any>;
53
+ index: Number;
54
+ checked: string;
55
+ data: Record<string, any>[];
56
+ }) => any;
59
57
  ref?: import("vue").VNodeRef;
58
+ key?: string | number | symbol;
60
59
  ref_for?: boolean;
61
60
  ref_key?: string;
62
61
  onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -101,23 +100,78 @@ declare const BkTable: {
101
100
  readonly align?: "" | "right" | "left" | "center";
102
101
  readonly activeColumn?: number | number[];
103
102
  readonly resizerWay?: "debounce" | "throttle";
104
- onColumnPick?: (...args: any[]) => any;
105
- onColumnSort?: (...args: any[]) => any;
106
- onColumnFilter?: (...args: any[]) => any;
107
- onColFilterSave?: (...args: any[]) => any;
108
- onRowClick?: (...args: any[]) => any;
109
- onRowDblclick?: (...args: any[]) => any;
110
- onRowExpand?: (...args: any[]) => any;
111
- onRowMouseEnter?: (...args: any[]) => any;
112
- onRowMouseLeave?: (...args: any[]) => any;
113
- onPageLimitChange?: (...args: any[]) => any;
114
- onPageValueChange?: (...args: any[]) => any;
115
- onSettingChange?: (...args: any[]) => any;
116
- onScrollBottom?: (...args: any[]) => any;
117
- onSelectAll?: (...args: any[]) => any;
118
- onSelectionChange?: (...args: any[]) => any;
119
- onCellClick?: (...args: any[]) => any;
120
- onCellDblclick?: (...args: any[]) => any;
103
+ onColumnPick?: (_cols: import("./props").IColumnActive[]) => any;
104
+ onColumnSort?: (_args: {
105
+ column: import("./props").Column;
106
+ index: number;
107
+ type: import("./const").SORT_OPTION;
108
+ }) => any;
109
+ onColumnFilter?: (_args: {
110
+ checked: string[];
111
+ column: import("./props").Column;
112
+ index: number;
113
+ }) => any;
114
+ onColFilterSave?: (_args: {
115
+ column: import("./props").Column;
116
+ values: Record<string, any>[];
117
+ }) => any;
118
+ onRowClick?: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => any;
119
+ onRowDblclick?: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => any;
120
+ onRowExpand?: (_args: {
121
+ row: Record<string, any>;
122
+ column: import("./props").Column;
123
+ index: Number;
124
+ rows: Record<string, any>[];
125
+ e: MouseEvent;
126
+ }) => any;
127
+ onRowMouseEnter?: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => any;
128
+ onRowMouseLeave?: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => any;
129
+ onPageLimitChange?: (_arg: number) => any;
130
+ onPageValueChange?: (_arg: number) => any;
131
+ onSettingChange?: (_args: {
132
+ checked: string[];
133
+ size: string;
134
+ height: number;
135
+ fields: Record<string, any>[];
136
+ }) => any;
137
+ onScrollBottom?: (_args: {
138
+ translateX: number;
139
+ translateY: number;
140
+ scrollTop: number;
141
+ scrollLeft: number;
142
+ bottom: number;
143
+ }) => any;
144
+ onSelectAll?: (_args: {
145
+ checked: string;
146
+ data: Record<string, any>[];
147
+ }) => any;
148
+ onSelectionChange?: (_args: {
149
+ row: Record<string, any>;
150
+ index: Number;
151
+ checked: string;
152
+ data: Record<string, any>[];
153
+ isAll: boolean;
154
+ }) => any;
155
+ onCellClick?: (_args: {
156
+ event: MouseEvent;
157
+ row: Record<string, any>;
158
+ column: import("./props").Column;
159
+ cell: {
160
+ getValue: () => string;
161
+ };
162
+ rowIndex: number;
163
+ columnIndex: number;
164
+ }) => any;
165
+ onCellDblclick?: (_args: {
166
+ event: MouseEvent;
167
+ row: Record<string, any>;
168
+ column: import("./props").Column;
169
+ cell: {
170
+ getValue: () => string;
171
+ };
172
+ rowIndex: number;
173
+ columnIndex: number;
174
+ }) => any;
121
175
  };
122
176
  $attrs: {
123
177
  [x: string]: unknown;
@@ -130,7 +184,67 @@ declare const BkTable: {
130
184
  }>;
131
185
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
132
186
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
133
- $emit: ((event: import("./const").EMIT_EVENTS.COLUMN_PICK, ...args: any[]) => void) & ((event: import("./const").EMIT_EVENTS.COLUMN_SORT, ...args: any[]) => void) & ((event: import("./const").EMIT_EVENTS.COLUMN_FILTER, ...args: any[]) => void) & ((event: import("./const").EMIT_EVENTS.COLUMN_FILTER_SAVE, ...args: any[]) => void) & ((event: import("./const").EMIT_EVENTS.ROW_CLICK, ...args: any[]) => void) & ((event: import("./const").EMIT_EVENTS.ROW_DBL_CLICK, ...args: any[]) => void) & ((event: import("./const").EMIT_EVENTS.ROW_EXPAND_CLICK, ...args: any[]) => void) & ((event: import("./const").EMIT_EVENTS.ROW_MOUSE_ENTER, ...args: any[]) => void) & ((event: import("./const").EMIT_EVENTS.ROW_MOUSE_LEAVE, ...args: any[]) => void) & ((event: import("./const").EMIT_EVENTS.PAGE_LIMIT_CHANGE, ...args: any[]) => void) & ((event: import("./const").EMIT_EVENTS.PAGE_VALUE_CHANGE, ...args: any[]) => void) & ((event: import("./const").EMIT_EVENTS.SETTING_CHANGE, ...args: any[]) => void) & ((event: import("./const").EMIT_EVENTS.SCROLL_BOTTOM, ...args: any[]) => void) & ((event: import("./const").EMIT_EVENTS.ROW_SELECT, ...args: any[]) => void) & ((event: import("./const").EMIT_EVENTS.ROW_SELECT_ALL, ...args: any[]) => void) & ((event: import("./const").EMIT_EVENTS.ROW_SELECT_CHANGE, ...args: any[]) => void) & ((event: import("./const").EMIT_EVENTS.CELL_CLICK, ...args: any[]) => void) & ((event: import("./const").EMIT_EVENTS.CELL_DBL_CLICK, ...args: any[]) => void);
187
+ $emit: ((event: import("./events").EMIT_EVENTS.COLUMN_PICK, _cols: import("./props").IColumnActive[]) => void) & ((event: import("./events").EMIT_EVENTS.COLUMN_SORT, _args: {
188
+ column: import("./props").Column;
189
+ index: number;
190
+ type: import("./const").SORT_OPTION;
191
+ }) => void) & ((event: import("./events").EMIT_EVENTS.COLUMN_FILTER, _args: {
192
+ checked: string[];
193
+ column: import("./props").Column;
194
+ index: number;
195
+ }) => void) & ((event: import("./events").EMIT_EVENTS.COLUMN_FILTER_SAVE, _args: {
196
+ column: import("./props").Column;
197
+ values: Record<string, any>[];
198
+ }) => void) & ((event: import("./events").EMIT_EVENTS.ROW_CLICK, _e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => void) & ((event: import("./events").EMIT_EVENTS.ROW_DBL_CLICK, _e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => void) & ((event: import("./events").EMIT_EVENTS.ROW_EXPAND_CLICK, _args: {
199
+ row: Record<string, any>;
200
+ column: import("./props").Column;
201
+ index: Number;
202
+ rows: Record<string, any>[];
203
+ e: MouseEvent;
204
+ }) => void) & ((event: import("./events").EMIT_EVENTS.ROW_MOUSE_ENTER, _e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => void) & ((event: import("./events").EMIT_EVENTS.ROW_MOUSE_LEAVE, _e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => void) & ((event: import("./events").EMIT_EVENTS.PAGE_LIMIT_CHANGE, _arg: number) => void) & ((event: import("./events").EMIT_EVENTS.PAGE_VALUE_CHANGE, _arg: number) => void) & ((event: import("./events").EMIT_EVENTS.SETTING_CHANGE, _args: {
205
+ checked: string[];
206
+ size: string;
207
+ height: number;
208
+ fields: Record<string, any>[];
209
+ }) => void) & ((event: import("./events").EMIT_EVENTS.SCROLL_BOTTOM, _args: {
210
+ translateX: number;
211
+ translateY: number;
212
+ scrollTop: number;
213
+ scrollLeft: number;
214
+ bottom: number;
215
+ }) => void) & ((event: import("./events").EMIT_EVENTS.ROW_SELECT, _args: {
216
+ row: Record<string, any>;
217
+ index: Number;
218
+ checked: string;
219
+ data: Record<string, any>[];
220
+ }) => void) & ((event: import("./events").EMIT_EVENTS.ROW_SELECT_ALL, _args: {
221
+ checked: string;
222
+ data: Record<string, any>[];
223
+ }) => void) & ((event: import("./events").EMIT_EVENTS.ROW_SELECT_CHANGE, _args: {
224
+ row: Record<string, any>;
225
+ index: Number;
226
+ checked: string;
227
+ data: Record<string, any>[];
228
+ isAll: boolean;
229
+ }) => void) & ((event: import("./events").EMIT_EVENTS.CELL_CLICK, _args: {
230
+ event: MouseEvent;
231
+ row: Record<string, any>;
232
+ column: import("./props").Column;
233
+ cell: {
234
+ getValue: () => string;
235
+ };
236
+ rowIndex: number;
237
+ columnIndex: number;
238
+ }) => void) & ((event: import("./events").EMIT_EVENTS.CELL_DBL_CLICK, _args: {
239
+ event: MouseEvent;
240
+ row: Record<string, any>;
241
+ column: import("./props").Column;
242
+ cell: {
243
+ getValue: () => string;
244
+ };
245
+ rowIndex: number;
246
+ columnIndex: number;
247
+ }) => void);
134
248
  $el: any;
135
249
  $options: import("vue").ComponentOptionsBase<Readonly<ExtractPropTypes<{
136
250
  data: import("vue-types").VueTypeDef<any[]> & {
@@ -146,14 +260,19 @@ declare const BkTable: {
146
260
  height: import("vue-types").VueTypeDef<string | number> & {
147
261
  default: string | number;
148
262
  };
263
+ stripe: import("vue-types").VueTypeValidableDef<boolean> & {
264
+ default: boolean;
265
+ } & {
266
+ default: boolean;
267
+ };
149
268
  minHeight: import("vue-types").VueTypeDef<string | number> & {
150
269
  default: string | number;
151
270
  };
152
271
  maxHeight: import("vue-types").VueTypeDef<string | number> & {
153
272
  default: string | number;
154
273
  };
155
- rowHeight: import("vue-types").VueTypeDef<any> & {
156
- default: any;
274
+ rowHeight: import("vue-types").VueTypeDef<import("./props").RowHeightFunctionNumber> & {
275
+ default: import("./props").RowHeightFunctionNumber;
157
276
  };
158
277
  headHeight: import("vue-types").VueTypeValidableDef<number> & {
159
278
  default: number;
@@ -165,7 +284,9 @@ declare const BkTable: {
165
284
  } & {
166
285
  default: boolean;
167
286
  };
168
- thead: import("vue-types").VueTypeShape<import("./props").Thead>;
287
+ thead: import("vue-types").VueTypeDef<import("./props").Thead> & {
288
+ default: () => import("./props").Thead;
289
+ };
169
290
  virtualEnabled: import("vue-types").VueTypeValidableDef<boolean> & {
170
291
  default: boolean;
171
292
  } & {
@@ -194,22 +315,8 @@ declare const BkTable: {
194
315
  emptyText: import("vue-types").VueTypeValidableDef<string> & {
195
316
  default: string;
196
317
  };
197
- settings: import("vue-types").VueTypeDef<boolean | {
198
- fields: import("./props").Field[] | (() => import("./props").Field[]);
199
- checked: string[] | (() => string[]);
200
- limit: number;
201
- size: "small" | "medium" | "large";
202
- sizeList: import("./props").SizeItem[] | (object & (() => import("./props").SizeItem[]));
203
- showLineHeight: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
204
- }> & {
205
- default: boolean | (() => {
206
- fields: import("./props").Field[] | (() => import("./props").Field[]);
207
- checked: string[] | (() => string[]);
208
- limit: number;
209
- size: "small" | "medium" | "large";
210
- sizeList: import("./props").SizeItem[] | (object & (() => import("./props").SizeItem[]));
211
- showLineHeight: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
212
- });
318
+ settings: import("vue-types").VueTypeDef<import("./props").ISettingPropType> & {
319
+ default: boolean | (() => import("./props").Settings);
213
320
  };
214
321
  rowClass: import("vue-types").VueTypeDef<any> & {
215
322
  default: any;
@@ -248,8 +355,15 @@ declare const BkTable: {
248
355
  rowKey: import("vue-types").VueTypeDef<any> & {
249
356
  default: any;
250
357
  };
251
- showOverflowTooltip: import("vue-types").VueTypeDef<boolean | import("./props").IOverflowTooltip> & {
252
- default: boolean | (() => import("./props").IOverflowTooltip);
358
+ showOverflowTooltip: import("vue-types").VueTypeDef<import("./props").IOverflowTooltipProp> & {
359
+ default: boolean | (() => {
360
+ content: string | Function;
361
+ disabled?: boolean;
362
+ watchCellResize?: boolean;
363
+ mode?: "auto" | "static";
364
+ popoverOption?: any;
365
+ resizerWay?: import("./props").ResizerWay;
366
+ });
253
367
  };
254
368
  asyncData: import("vue-types").VueTypeValidableDef<boolean> & {
255
369
  default: boolean;
@@ -277,51 +391,172 @@ declare const BkTable: {
277
391
  default: () => import("vue").CSSProperties;
278
392
  };
279
393
  }>> & {
280
- onSelect?: (...args: any[]) => any;
281
- onColumnPick?: (...args: any[]) => any;
282
- onColumnSort?: (...args: any[]) => any;
283
- onColumnFilter?: (...args: any[]) => any;
284
- onColFilterSave?: (...args: any[]) => any;
285
- onRowClick?: (...args: any[]) => any;
286
- onRowDblclick?: (...args: any[]) => any;
287
- onRowExpand?: (...args: any[]) => any;
288
- onRowMouseEnter?: (...args: any[]) => any;
289
- onRowMouseLeave?: (...args: any[]) => any;
290
- onPageLimitChange?: (...args: any[]) => any;
291
- onPageValueChange?: (...args: any[]) => any;
292
- onSettingChange?: (...args: any[]) => any;
293
- onScrollBottom?: (...args: any[]) => any;
294
- onSelectAll?: (...args: any[]) => any;
295
- onSelectionChange?: (...args: any[]) => any;
296
- onCellClick?: (...args: any[]) => any;
297
- onCellDblclick?: (...args: any[]) => any;
394
+ onSelect?: (_args: {
395
+ row: Record<string, any>;
396
+ index: Number;
397
+ checked: string;
398
+ data: Record<string, any>[];
399
+ }) => any;
400
+ onColumnPick?: (_cols: import("./props").IColumnActive[]) => any;
401
+ onColumnSort?: (_args: {
402
+ column: import("./props").Column;
403
+ index: number;
404
+ type: import("./const").SORT_OPTION;
405
+ }) => any;
406
+ onColumnFilter?: (_args: {
407
+ checked: string[];
408
+ column: import("./props").Column;
409
+ index: number;
410
+ }) => any;
411
+ onColFilterSave?: (_args: {
412
+ column: import("./props").Column;
413
+ values: Record<string, any>[];
414
+ }) => any;
415
+ onRowClick?: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => any;
416
+ onRowDblclick?: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => any;
417
+ onRowExpand?: (_args: {
418
+ row: Record<string, any>;
419
+ column: import("./props").Column;
420
+ index: Number;
421
+ rows: Record<string, any>[];
422
+ e: MouseEvent;
423
+ }) => any;
424
+ onRowMouseEnter?: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => any;
425
+ onRowMouseLeave?: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => any;
426
+ onPageLimitChange?: (_arg: number) => any;
427
+ onPageValueChange?: (_arg: number) => any;
428
+ onSettingChange?: (_args: {
429
+ checked: string[];
430
+ size: string;
431
+ height: number;
432
+ fields: Record<string, any>[];
433
+ }) => any;
434
+ onScrollBottom?: (_args: {
435
+ translateX: number;
436
+ translateY: number;
437
+ scrollTop: number;
438
+ scrollLeft: number;
439
+ bottom: number;
440
+ }) => any;
441
+ onSelectAll?: (_args: {
442
+ checked: string;
443
+ data: Record<string, any>[];
444
+ }) => any;
445
+ onSelectionChange?: (_args: {
446
+ row: Record<string, any>;
447
+ index: Number;
448
+ checked: string;
449
+ data: Record<string, any>[];
450
+ isAll: boolean;
451
+ }) => any;
452
+ onCellClick?: (_args: {
453
+ event: MouseEvent;
454
+ row: Record<string, any>;
455
+ column: import("./props").Column;
456
+ cell: {
457
+ getValue: () => string;
458
+ };
459
+ rowIndex: number;
460
+ columnIndex: number;
461
+ }) => any;
462
+ onCellDblclick?: (_args: {
463
+ event: MouseEvent;
464
+ row: Record<string, any>;
465
+ column: import("./props").Column;
466
+ cell: {
467
+ getValue: () => string;
468
+ };
469
+ rowIndex: number;
470
+ columnIndex: number;
471
+ }) => any;
298
472
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
299
- columnPick: (..._args: any[]) => boolean;
300
- columnFilter: (..._args: any[]) => boolean;
301
- columnSort: (..._args: any[]) => boolean;
302
- colFilterSave: (..._args: any[]) => boolean;
303
- rowClick: (..._args: any[]) => boolean;
304
- rowDblclick: (..._args: any[]) => boolean;
305
- rowExpand: (..._args: any[]) => boolean;
306
- select: (..._args: any[]) => boolean;
307
- selectAll: (..._args: any[]) => boolean;
308
- selectionChange: (..._args: any[]) => boolean;
309
- pageLimitChange: (..._args: any[]) => boolean;
310
- pageValueChange: (..._args: any[]) => boolean;
311
- settingChange: (..._args: any[]) => boolean;
312
- scrollBottom: (..._args: any[]) => boolean;
313
- cellClick: (..._args: any[]) => boolean;
314
- cellDblclick: (..._args: any[]) => boolean;
315
- rowMouseEnter: (..._args: any[]) => boolean;
316
- rowMouseLeave: (..._args: any[]) => boolean;
473
+ columnPick: (_cols: import("./props").IColumnActive[]) => boolean;
474
+ columnFilter: (_args: {
475
+ checked: string[];
476
+ column: import("./props").Column;
477
+ index: number;
478
+ }) => boolean;
479
+ columnSort: (_args: {
480
+ column: import("./props").Column;
481
+ index: number;
482
+ type: import("./const").SORT_OPTION;
483
+ }) => boolean;
484
+ colFilterSave: (_args: {
485
+ column: import("./props").Column;
486
+ values: Record<string, any>[];
487
+ }) => boolean;
488
+ rowClick: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => boolean;
489
+ rowDblclick: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => boolean;
490
+ rowExpand: (_args: {
491
+ row: Record<string, any>;
492
+ column: import("./props").Column;
493
+ index: Number;
494
+ rows: Record<string, any>[];
495
+ e: MouseEvent;
496
+ }) => boolean;
497
+ select: (_args: {
498
+ row: Record<string, any>;
499
+ index: Number;
500
+ checked: string;
501
+ data: Record<string, any>[];
502
+ }) => boolean;
503
+ selectAll: (_args: {
504
+ checked: string;
505
+ data: Record<string, any>[];
506
+ }) => boolean;
507
+ selectionChange: (_args: {
508
+ row: Record<string, any>;
509
+ index: Number;
510
+ checked: string;
511
+ data: Record<string, any>[];
512
+ isAll: boolean;
513
+ }) => boolean;
514
+ pageLimitChange: (_arg: number) => boolean;
515
+ pageValueChange: (_arg: number) => boolean;
516
+ settingChange: (_args: {
517
+ checked: string[];
518
+ size: string;
519
+ height: number;
520
+ fields: Record<string, any>[];
521
+ }) => boolean;
522
+ scrollBottom: (_args: {
523
+ translateX: number;
524
+ translateY: number;
525
+ scrollTop: number;
526
+ scrollLeft: number;
527
+ bottom: number;
528
+ }) => boolean;
529
+ cellClick: (_args: {
530
+ event: MouseEvent;
531
+ row: Record<string, any>;
532
+ column: import("./props").Column;
533
+ cell: {
534
+ getValue: () => string;
535
+ };
536
+ rowIndex: number;
537
+ columnIndex: number;
538
+ }) => boolean;
539
+ cellDblclick: (_args: {
540
+ event: MouseEvent;
541
+ row: Record<string, any>;
542
+ column: import("./props").Column;
543
+ cell: {
544
+ getValue: () => string;
545
+ };
546
+ rowIndex: number;
547
+ columnIndex: number;
548
+ }) => boolean;
549
+ rowMouseEnter: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => boolean;
550
+ rowMouseLeave: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => boolean;
317
551
  }, string, {
318
- pagination: boolean | {
319
- [key: string]: any;
320
- };
321
552
  data: any[];
553
+ thead: import("./props").Thead;
322
554
  height: string | number;
323
555
  maxHeight: string | number;
324
556
  border: string | ("col" | "none" | "row" | "horizontal" | "outer")[];
557
+ pagination: boolean | {
558
+ [key: string]: any;
559
+ };
325
560
  minHeight: string | number;
326
561
  columns: import("./props").Column[];
327
562
  cellClass: any;
@@ -330,22 +565,16 @@ declare const BkTable: {
330
565
  scrollLoading: boolean | {
331
566
  [key: string]: any;
332
567
  };
333
- showOverflowTooltip: boolean | import("./props").IOverflowTooltip;
568
+ showOverflowTooltip: import("./props").IOverflowTooltipProp;
334
569
  columnPick: "disabled" | "single" | "multi";
335
- rowHeight: any;
570
+ stripe: boolean;
571
+ rowHeight: import("./props").RowHeightFunctionNumber;
336
572
  showHead: boolean;
337
573
  virtualEnabled: boolean;
338
574
  paginationHeight: number;
339
575
  remotePagination: boolean;
340
576
  emptyText: string;
341
- settings: boolean | {
342
- fields: import("./props").Field[] | (() => import("./props").Field[]);
343
- checked: string[] | (() => string[]);
344
- limit: number;
345
- size: "small" | "medium" | "large";
346
- sizeList: import("./props").SizeItem[] | (object & (() => import("./props").SizeItem[]));
347
- showLineHeight: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
348
- };
577
+ settings: import("./props").ISettingPropType;
349
578
  rowClass: any;
350
579
  rowStyle: any;
351
580
  cellStyle: any;
@@ -392,14 +621,19 @@ declare const BkTable: {
392
621
  height: import("vue-types").VueTypeDef<string | number> & {
393
622
  default: string | number;
394
623
  };
624
+ stripe: import("vue-types").VueTypeValidableDef<boolean> & {
625
+ default: boolean;
626
+ } & {
627
+ default: boolean;
628
+ };
395
629
  minHeight: import("vue-types").VueTypeDef<string | number> & {
396
630
  default: string | number;
397
631
  };
398
632
  maxHeight: import("vue-types").VueTypeDef<string | number> & {
399
633
  default: string | number;
400
634
  };
401
- rowHeight: import("vue-types").VueTypeDef<any> & {
402
- default: any;
635
+ rowHeight: import("vue-types").VueTypeDef<import("./props").RowHeightFunctionNumber> & {
636
+ default: import("./props").RowHeightFunctionNumber;
403
637
  };
404
638
  headHeight: import("vue-types").VueTypeValidableDef<number> & {
405
639
  default: number;
@@ -411,7 +645,9 @@ declare const BkTable: {
411
645
  } & {
412
646
  default: boolean;
413
647
  };
414
- thead: import("vue-types").VueTypeShape<import("./props").Thead>;
648
+ thead: import("vue-types").VueTypeDef<import("./props").Thead> & {
649
+ default: () => import("./props").Thead;
650
+ };
415
651
  virtualEnabled: import("vue-types").VueTypeValidableDef<boolean> & {
416
652
  default: boolean;
417
653
  } & {
@@ -440,22 +676,8 @@ declare const BkTable: {
440
676
  emptyText: import("vue-types").VueTypeValidableDef<string> & {
441
677
  default: string;
442
678
  };
443
- settings: import("vue-types").VueTypeDef<boolean | {
444
- fields: import("./props").Field[] | (() => import("./props").Field[]);
445
- checked: string[] | (() => string[]);
446
- limit: number;
447
- size: "small" | "medium" | "large";
448
- sizeList: import("./props").SizeItem[] | (object & (() => import("./props").SizeItem[]));
449
- showLineHeight: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
450
- }> & {
451
- default: boolean | (() => {
452
- fields: import("./props").Field[] | (() => import("./props").Field[]);
453
- checked: string[] | (() => string[]);
454
- limit: number;
455
- size: "small" | "medium" | "large";
456
- sizeList: import("./props").SizeItem[] | (object & (() => import("./props").SizeItem[]));
457
- showLineHeight: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
458
- });
679
+ settings: import("vue-types").VueTypeDef<import("./props").ISettingPropType> & {
680
+ default: boolean | (() => import("./props").Settings);
459
681
  };
460
682
  rowClass: import("vue-types").VueTypeDef<any> & {
461
683
  default: any;
@@ -494,8 +716,15 @@ declare const BkTable: {
494
716
  rowKey: import("vue-types").VueTypeDef<any> & {
495
717
  default: any;
496
718
  };
497
- showOverflowTooltip: import("vue-types").VueTypeDef<boolean | import("./props").IOverflowTooltip> & {
498
- default: boolean | (() => import("./props").IOverflowTooltip);
719
+ showOverflowTooltip: import("vue-types").VueTypeDef<import("./props").IOverflowTooltipProp> & {
720
+ default: boolean | (() => {
721
+ content: string | Function;
722
+ disabled?: boolean;
723
+ watchCellResize?: boolean;
724
+ mode?: "auto" | "static";
725
+ popoverOption?: any;
726
+ resizerWay?: import("./props").ResizerWay;
727
+ });
499
728
  };
500
729
  asyncData: import("vue-types").VueTypeValidableDef<boolean> & {
501
730
  default: boolean;
@@ -523,24 +752,84 @@ declare const BkTable: {
523
752
  default: () => import("vue").CSSProperties;
524
753
  };
525
754
  }>> & {
526
- onSelect?: (...args: any[]) => any;
527
- onColumnPick?: (...args: any[]) => any;
528
- onColumnSort?: (...args: any[]) => any;
529
- onColumnFilter?: (...args: any[]) => any;
530
- onColFilterSave?: (...args: any[]) => any;
531
- onRowClick?: (...args: any[]) => any;
532
- onRowDblclick?: (...args: any[]) => any;
533
- onRowExpand?: (...args: any[]) => any;
534
- onRowMouseEnter?: (...args: any[]) => any;
535
- onRowMouseLeave?: (...args: any[]) => any;
536
- onPageLimitChange?: (...args: any[]) => any;
537
- onPageValueChange?: (...args: any[]) => any;
538
- onSettingChange?: (...args: any[]) => any;
539
- onScrollBottom?: (...args: any[]) => any;
540
- onSelectAll?: (...args: any[]) => any;
541
- onSelectionChange?: (...args: any[]) => any;
542
- onCellClick?: (...args: any[]) => any;
543
- onCellDblclick?: (...args: any[]) => any;
755
+ onSelect?: (_args: {
756
+ row: Record<string, any>;
757
+ index: Number;
758
+ checked: string;
759
+ data: Record<string, any>[];
760
+ }) => any;
761
+ onColumnPick?: (_cols: import("./props").IColumnActive[]) => any;
762
+ onColumnSort?: (_args: {
763
+ column: import("./props").Column;
764
+ index: number;
765
+ type: import("./const").SORT_OPTION;
766
+ }) => any;
767
+ onColumnFilter?: (_args: {
768
+ checked: string[];
769
+ column: import("./props").Column;
770
+ index: number;
771
+ }) => any;
772
+ onColFilterSave?: (_args: {
773
+ column: import("./props").Column;
774
+ values: Record<string, any>[];
775
+ }) => any;
776
+ onRowClick?: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => any;
777
+ onRowDblclick?: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => any;
778
+ onRowExpand?: (_args: {
779
+ row: Record<string, any>;
780
+ column: import("./props").Column;
781
+ index: Number;
782
+ rows: Record<string, any>[];
783
+ e: MouseEvent;
784
+ }) => any;
785
+ onRowMouseEnter?: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => any;
786
+ onRowMouseLeave?: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => any;
787
+ onPageLimitChange?: (_arg: number) => any;
788
+ onPageValueChange?: (_arg: number) => any;
789
+ onSettingChange?: (_args: {
790
+ checked: string[];
791
+ size: string;
792
+ height: number;
793
+ fields: Record<string, any>[];
794
+ }) => any;
795
+ onScrollBottom?: (_args: {
796
+ translateX: number;
797
+ translateY: number;
798
+ scrollTop: number;
799
+ scrollLeft: number;
800
+ bottom: number;
801
+ }) => any;
802
+ onSelectAll?: (_args: {
803
+ checked: string;
804
+ data: Record<string, any>[];
805
+ }) => any;
806
+ onSelectionChange?: (_args: {
807
+ row: Record<string, any>;
808
+ index: Number;
809
+ checked: string;
810
+ data: Record<string, any>[];
811
+ isAll: boolean;
812
+ }) => any;
813
+ onCellClick?: (_args: {
814
+ event: MouseEvent;
815
+ row: Record<string, any>;
816
+ column: import("./props").Column;
817
+ cell: {
818
+ getValue: () => string;
819
+ };
820
+ rowIndex: number;
821
+ columnIndex: number;
822
+ }) => any;
823
+ onCellDblclick?: (_args: {
824
+ event: MouseEvent;
825
+ row: Record<string, any>;
826
+ column: import("./props").Column;
827
+ cell: {
828
+ getValue: () => string;
829
+ };
830
+ rowIndex: number;
831
+ columnIndex: number;
832
+ }) => any;
544
833
  } & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
545
834
  __isFragment?: never;
546
835
  __isTeleport?: never;
@@ -559,14 +848,19 @@ declare const BkTable: {
559
848
  height: import("vue-types").VueTypeDef<string | number> & {
560
849
  default: string | number;
561
850
  };
851
+ stripe: import("vue-types").VueTypeValidableDef<boolean> & {
852
+ default: boolean;
853
+ } & {
854
+ default: boolean;
855
+ };
562
856
  minHeight: import("vue-types").VueTypeDef<string | number> & {
563
857
  default: string | number;
564
858
  };
565
859
  maxHeight: import("vue-types").VueTypeDef<string | number> & {
566
860
  default: string | number;
567
861
  };
568
- rowHeight: import("vue-types").VueTypeDef<any> & {
569
- default: any;
862
+ rowHeight: import("vue-types").VueTypeDef<import("./props").RowHeightFunctionNumber> & {
863
+ default: import("./props").RowHeightFunctionNumber;
570
864
  };
571
865
  headHeight: import("vue-types").VueTypeValidableDef<number> & {
572
866
  default: number;
@@ -578,7 +872,9 @@ declare const BkTable: {
578
872
  } & {
579
873
  default: boolean;
580
874
  };
581
- thead: import("vue-types").VueTypeShape<import("./props").Thead>;
875
+ thead: import("vue-types").VueTypeDef<import("./props").Thead> & {
876
+ default: () => import("./props").Thead;
877
+ };
582
878
  virtualEnabled: import("vue-types").VueTypeValidableDef<boolean> & {
583
879
  default: boolean;
584
880
  } & {
@@ -607,22 +903,8 @@ declare const BkTable: {
607
903
  emptyText: import("vue-types").VueTypeValidableDef<string> & {
608
904
  default: string;
609
905
  };
610
- settings: import("vue-types").VueTypeDef<boolean | {
611
- fields: import("./props").Field[] | (() => import("./props").Field[]);
612
- checked: string[] | (() => string[]);
613
- limit: number;
614
- size: "small" | "medium" | "large";
615
- sizeList: import("./props").SizeItem[] | (object & (() => import("./props").SizeItem[]));
616
- showLineHeight: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
617
- }> & {
618
- default: boolean | (() => {
619
- fields: import("./props").Field[] | (() => import("./props").Field[]);
620
- checked: string[] | (() => string[]);
621
- limit: number;
622
- size: "small" | "medium" | "large";
623
- sizeList: import("./props").SizeItem[] | (object & (() => import("./props").SizeItem[]));
624
- showLineHeight: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
625
- });
906
+ settings: import("vue-types").VueTypeDef<import("./props").ISettingPropType> & {
907
+ default: boolean | (() => import("./props").Settings);
626
908
  };
627
909
  rowClass: import("vue-types").VueTypeDef<any> & {
628
910
  default: any;
@@ -661,8 +943,15 @@ declare const BkTable: {
661
943
  rowKey: import("vue-types").VueTypeDef<any> & {
662
944
  default: any;
663
945
  };
664
- showOverflowTooltip: import("vue-types").VueTypeDef<boolean | import("./props").IOverflowTooltip> & {
665
- default: boolean | (() => import("./props").IOverflowTooltip);
946
+ showOverflowTooltip: import("vue-types").VueTypeDef<import("./props").IOverflowTooltipProp> & {
947
+ default: boolean | (() => {
948
+ content: string | Function;
949
+ disabled?: boolean;
950
+ watchCellResize?: boolean;
951
+ mode?: "auto" | "static";
952
+ popoverOption?: any;
953
+ resizerWay?: import("./props").ResizerWay;
954
+ });
666
955
  };
667
956
  asyncData: import("vue-types").VueTypeValidableDef<boolean> & {
668
957
  default: boolean;
@@ -690,51 +979,172 @@ declare const BkTable: {
690
979
  default: () => import("vue").CSSProperties;
691
980
  };
692
981
  }>> & {
693
- onSelect?: (...args: any[]) => any;
694
- onColumnPick?: (...args: any[]) => any;
695
- onColumnSort?: (...args: any[]) => any;
696
- onColumnFilter?: (...args: any[]) => any;
697
- onColFilterSave?: (...args: any[]) => any;
698
- onRowClick?: (...args: any[]) => any;
699
- onRowDblclick?: (...args: any[]) => any;
700
- onRowExpand?: (...args: any[]) => any;
701
- onRowMouseEnter?: (...args: any[]) => any;
702
- onRowMouseLeave?: (...args: any[]) => any;
703
- onPageLimitChange?: (...args: any[]) => any;
704
- onPageValueChange?: (...args: any[]) => any;
705
- onSettingChange?: (...args: any[]) => any;
706
- onScrollBottom?: (...args: any[]) => any;
707
- onSelectAll?: (...args: any[]) => any;
708
- onSelectionChange?: (...args: any[]) => any;
709
- onCellClick?: (...args: any[]) => any;
710
- onCellDblclick?: (...args: any[]) => any;
982
+ onSelect?: (_args: {
983
+ row: Record<string, any>;
984
+ index: Number;
985
+ checked: string;
986
+ data: Record<string, any>[];
987
+ }) => any;
988
+ onColumnPick?: (_cols: import("./props").IColumnActive[]) => any;
989
+ onColumnSort?: (_args: {
990
+ column: import("./props").Column;
991
+ index: number;
992
+ type: import("./const").SORT_OPTION;
993
+ }) => any;
994
+ onColumnFilter?: (_args: {
995
+ checked: string[];
996
+ column: import("./props").Column;
997
+ index: number;
998
+ }) => any;
999
+ onColFilterSave?: (_args: {
1000
+ column: import("./props").Column;
1001
+ values: Record<string, any>[];
1002
+ }) => any;
1003
+ onRowClick?: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => any;
1004
+ onRowDblclick?: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => any;
1005
+ onRowExpand?: (_args: {
1006
+ row: Record<string, any>;
1007
+ column: import("./props").Column;
1008
+ index: Number;
1009
+ rows: Record<string, any>[];
1010
+ e: MouseEvent;
1011
+ }) => any;
1012
+ onRowMouseEnter?: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => any;
1013
+ onRowMouseLeave?: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => any;
1014
+ onPageLimitChange?: (_arg: number) => any;
1015
+ onPageValueChange?: (_arg: number) => any;
1016
+ onSettingChange?: (_args: {
1017
+ checked: string[];
1018
+ size: string;
1019
+ height: number;
1020
+ fields: Record<string, any>[];
1021
+ }) => any;
1022
+ onScrollBottom?: (_args: {
1023
+ translateX: number;
1024
+ translateY: number;
1025
+ scrollTop: number;
1026
+ scrollLeft: number;
1027
+ bottom: number;
1028
+ }) => any;
1029
+ onSelectAll?: (_args: {
1030
+ checked: string;
1031
+ data: Record<string, any>[];
1032
+ }) => any;
1033
+ onSelectionChange?: (_args: {
1034
+ row: Record<string, any>;
1035
+ index: Number;
1036
+ checked: string;
1037
+ data: Record<string, any>[];
1038
+ isAll: boolean;
1039
+ }) => any;
1040
+ onCellClick?: (_args: {
1041
+ event: MouseEvent;
1042
+ row: Record<string, any>;
1043
+ column: import("./props").Column;
1044
+ cell: {
1045
+ getValue: () => string;
1046
+ };
1047
+ rowIndex: number;
1048
+ columnIndex: number;
1049
+ }) => any;
1050
+ onCellDblclick?: (_args: {
1051
+ event: MouseEvent;
1052
+ row: Record<string, any>;
1053
+ column: import("./props").Column;
1054
+ cell: {
1055
+ getValue: () => string;
1056
+ };
1057
+ rowIndex: number;
1058
+ columnIndex: number;
1059
+ }) => any;
711
1060
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
712
- columnPick: (..._args: any[]) => boolean;
713
- columnFilter: (..._args: any[]) => boolean;
714
- columnSort: (..._args: any[]) => boolean;
715
- colFilterSave: (..._args: any[]) => boolean;
716
- rowClick: (..._args: any[]) => boolean;
717
- rowDblclick: (..._args: any[]) => boolean;
718
- rowExpand: (..._args: any[]) => boolean;
719
- select: (..._args: any[]) => boolean;
720
- selectAll: (..._args: any[]) => boolean;
721
- selectionChange: (..._args: any[]) => boolean;
722
- pageLimitChange: (..._args: any[]) => boolean;
723
- pageValueChange: (..._args: any[]) => boolean;
724
- settingChange: (..._args: any[]) => boolean;
725
- scrollBottom: (..._args: any[]) => boolean;
726
- cellClick: (..._args: any[]) => boolean;
727
- cellDblclick: (..._args: any[]) => boolean;
728
- rowMouseEnter: (..._args: any[]) => boolean;
729
- rowMouseLeave: (..._args: any[]) => boolean;
1061
+ columnPick: (_cols: import("./props").IColumnActive[]) => boolean;
1062
+ columnFilter: (_args: {
1063
+ checked: string[];
1064
+ column: import("./props").Column;
1065
+ index: number;
1066
+ }) => boolean;
1067
+ columnSort: (_args: {
1068
+ column: import("./props").Column;
1069
+ index: number;
1070
+ type: import("./const").SORT_OPTION;
1071
+ }) => boolean;
1072
+ colFilterSave: (_args: {
1073
+ column: import("./props").Column;
1074
+ values: Record<string, any>[];
1075
+ }) => boolean;
1076
+ rowClick: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => boolean;
1077
+ rowDblclick: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => boolean;
1078
+ rowExpand: (_args: {
1079
+ row: Record<string, any>;
1080
+ column: import("./props").Column;
1081
+ index: Number;
1082
+ rows: Record<string, any>[];
1083
+ e: MouseEvent;
1084
+ }) => boolean;
1085
+ select: (_args: {
1086
+ row: Record<string, any>;
1087
+ index: Number;
1088
+ checked: string;
1089
+ data: Record<string, any>[];
1090
+ }) => boolean;
1091
+ selectAll: (_args: {
1092
+ checked: string;
1093
+ data: Record<string, any>[];
1094
+ }) => boolean;
1095
+ selectionChange: (_args: {
1096
+ row: Record<string, any>;
1097
+ index: Number;
1098
+ checked: string;
1099
+ data: Record<string, any>[];
1100
+ isAll: boolean;
1101
+ }) => boolean;
1102
+ pageLimitChange: (_arg: number) => boolean;
1103
+ pageValueChange: (_arg: number) => boolean;
1104
+ settingChange: (_args: {
1105
+ checked: string[];
1106
+ size: string;
1107
+ height: number;
1108
+ fields: Record<string, any>[];
1109
+ }) => boolean;
1110
+ scrollBottom: (_args: {
1111
+ translateX: number;
1112
+ translateY: number;
1113
+ scrollTop: number;
1114
+ scrollLeft: number;
1115
+ bottom: number;
1116
+ }) => boolean;
1117
+ cellClick: (_args: {
1118
+ event: MouseEvent;
1119
+ row: Record<string, any>;
1120
+ column: import("./props").Column;
1121
+ cell: {
1122
+ getValue: () => string;
1123
+ };
1124
+ rowIndex: number;
1125
+ columnIndex: number;
1126
+ }) => boolean;
1127
+ cellDblclick: (_args: {
1128
+ event: MouseEvent;
1129
+ row: Record<string, any>;
1130
+ column: import("./props").Column;
1131
+ cell: {
1132
+ getValue: () => string;
1133
+ };
1134
+ rowIndex: number;
1135
+ columnIndex: number;
1136
+ }) => boolean;
1137
+ rowMouseEnter: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => boolean;
1138
+ rowMouseLeave: (_e: MouseEvent, _row: Record<string, any>, _index: number, _rows: Record<string, any>[], _this: any) => boolean;
730
1139
  }, string, {
731
- pagination: boolean | {
732
- [key: string]: any;
733
- };
734
1140
  data: any[];
1141
+ thead: import("./props").Thead;
735
1142
  height: string | number;
736
1143
  maxHeight: string | number;
737
1144
  border: string | ("col" | "none" | "row" | "horizontal" | "outer")[];
1145
+ pagination: boolean | {
1146
+ [key: string]: any;
1147
+ };
738
1148
  minHeight: string | number;
739
1149
  columns: import("./props").Column[];
740
1150
  cellClass: any;
@@ -743,22 +1153,16 @@ declare const BkTable: {
743
1153
  scrollLoading: boolean | {
744
1154
  [key: string]: any;
745
1155
  };
746
- showOverflowTooltip: boolean | import("./props").IOverflowTooltip;
1156
+ showOverflowTooltip: import("./props").IOverflowTooltipProp;
747
1157
  columnPick: "disabled" | "single" | "multi";
748
- rowHeight: any;
1158
+ stripe: boolean;
1159
+ rowHeight: import("./props").RowHeightFunctionNumber;
749
1160
  showHead: boolean;
750
1161
  virtualEnabled: boolean;
751
1162
  paginationHeight: number;
752
1163
  remotePagination: boolean;
753
1164
  emptyText: string;
754
- settings: boolean | {
755
- fields: import("./props").Field[] | (() => import("./props").Field[]);
756
- checked: string[] | (() => string[]);
757
- limit: number;
758
- size: "small" | "medium" | "large";
759
- sizeList: import("./props").SizeItem[] | (object & (() => import("./props").SizeItem[]));
760
- showLineHeight: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
761
- };
1165
+ settings: import("./props").ISettingPropType;
762
1166
  rowClass: any;
763
1167
  rowStyle: any;
764
1168
  cellStyle: any;
@@ -773,15 +1177,9 @@ declare const BkTable: {
773
1177
  prependStyle: import("vue").CSSProperties;
774
1178
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]> & Readonly<{
775
1179
  Column: import("vue").DefineComponent<{
776
- prop: import("vue-types").VueTypeDef<any>;
777
- index: import("vue-types").VueTypeValidableDef<number> & {
778
- default: number;
779
- } & {
780
- default: number;
781
- };
782
- label: import("vue-types").VueTypeDef<any>;
783
- field: import("vue-types").VueTypeDef<any>;
784
- render: import("vue-types").VueTypeDef<any>;
1180
+ label: import("vue-types").VueTypeDef<import("./props").LabelFunctionString>;
1181
+ field: import("vue-types").VueTypeDef<import("./props").LabelFunctionString>;
1182
+ render: import("vue-types").VueTypeDef<import("./props").RenderFunctionString>;
785
1183
  width: import("vue-types").VueTypeDef<string | number>;
786
1184
  minWidth: import("vue-types").VueTypeDef<string | number> & {
787
1185
  default: string | number;
@@ -791,8 +1189,15 @@ declare const BkTable: {
791
1189
  } & {
792
1190
  default: string;
793
1191
  };
794
- showOverflowTooltip: import("vue-types").VueTypeDef<boolean | import("./props").IOverflowTooltip> & {
795
- default: boolean | (() => import("./props").IOverflowTooltip);
1192
+ showOverflowTooltip: import("vue-types").VueTypeDef<import("./props").IOverflowTooltipProp> & {
1193
+ default: boolean | (() => {
1194
+ content: string | Function;
1195
+ disabled?: boolean;
1196
+ watchCellResize?: boolean;
1197
+ mode?: "auto" | "static";
1198
+ popoverOption?: any;
1199
+ resizerWay?: import("./props").ResizerWay;
1200
+ });
796
1201
  };
797
1202
  type: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
798
1203
  resizable: import("vue-types").VueTypeValidableDef<boolean> & {
@@ -803,72 +1208,76 @@ declare const BkTable: {
803
1208
  fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
804
1209
  default: boolean | "right" | "left";
805
1210
  };
806
- sort: import("vue-types").VueTypeDef<string | boolean | {
807
- sortFn: any;
808
- sortScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
809
- value: string;
810
- }> & {
811
- default: string | boolean | (() => {
812
- sortFn: any;
813
- sortScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
814
- value: string;
815
- });
1211
+ sort: import("vue-types").VueTypeDef<import("./props").ISortPropShape> & {
1212
+ default: string | boolean | (() => import("./props").ISortShape);
816
1213
  };
817
- filter: import("vue-types").VueTypeDef<string | boolean | {
818
- list: any[] | (object & (() => any[]));
819
- filterFn: any;
820
- match: "full" | "fuzzy";
821
- checked: any[] | (object & (() => any[]));
822
- filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
823
- btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
824
- btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
825
- }> & {
826
- default: string | boolean | (() => {
827
- list: any[] | (object & (() => any[]));
828
- filterFn: any;
829
- match: "full" | "fuzzy";
830
- checked: any[] | (object & (() => any[]));
831
- filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
832
- btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
833
- btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
834
- });
1214
+ filter: import("vue-types").VueTypeDef<import("./props").IFilterPropShape> & {
1215
+ default: string | boolean | (() => import("./props").IFilterShape);
1216
+ };
1217
+ colspan: import("vue-types").VueTypeDef<import("./props").SpanFunctionString> & {
1218
+ default: (({ column, colIndex, row, rowIndex, }: {
1219
+ column: any;
1220
+ colIndex: any;
1221
+ row: any;
1222
+ rowIndex: any;
1223
+ }) => number) | (() => Number);
1224
+ };
1225
+ rowspan: import("vue-types").VueTypeDef<import("./props").SpanFunctionString> & {
1226
+ default: (({ column, colIndex, row, rowIndex, }: {
1227
+ column: any;
1228
+ colIndex: any;
1229
+ row: any;
1230
+ rowIndex: any;
1231
+ }) => number) | (() => Number);
835
1232
  };
836
- colspan: import("vue-types").VueTypeDef<any>;
837
- rowspan: import("vue-types").VueTypeDef<any>;
838
1233
  align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
839
- className: import("vue-types").VueTypeDef<any>;
1234
+ className: import("vue-types").VueTypeDef<import("./props").RowClassFunctionString>;
1235
+ prop: import("vue-types").VueTypeDef<import("./props").LabelFunctionString>;
1236
+ index: import("vue-types").VueTypeValidableDef<number> & {
1237
+ default: number;
1238
+ } & {
1239
+ default: number;
1240
+ };
840
1241
  }, {
841
- initColumns: (_col: import("./components/table-column").ITableColumn | import("./components/table-column").ITableColumn[], _rm?: boolean) => void;
1242
+ initColumns: (_col: import("./props").Column | import("./props").Column[], _rm?: boolean) => void;
842
1243
  bkTableCache: {
843
1244
  queueStack: (_: any, fn: any) => any;
844
1245
  };
845
1246
  column: {
846
- field: string | Function;
847
- label: string | Function;
848
- render?: string | Function | import("vue").Slot<any>;
849
- width?: string | number;
1247
+ field: import("./props").LabelFunctionString;
1248
+ sort?: string | boolean | {
1249
+ sortFn?: Function;
1250
+ sortScope?: import("./props").SortScope;
1251
+ value?: import("./const").SORT_OPTION;
1252
+ };
1253
+ filter?: string | boolean | {
1254
+ list: any[];
1255
+ filterFn?: Function;
1256
+ match?: import("./props").FullEnum;
1257
+ checked?: any[];
1258
+ filterScope?: import("./props").SortScope;
1259
+ btnSave?: string | boolean;
1260
+ btnReset?: string | boolean;
1261
+ };
1262
+ fixed?: boolean | "right" | "left";
850
1263
  minWidth?: string | number;
1264
+ index?: number;
851
1265
  columnKey?: string;
852
1266
  showOverflowTooltip?: boolean | {
853
1267
  content: string | Function;
854
1268
  disabled?: boolean;
855
1269
  watchCellResize?: boolean;
856
1270
  mode?: "auto" | "static";
1271
+ popoverOption?: any;
1272
+ resizerWay?: import("./props").ResizerWay;
857
1273
  };
858
- type?: string;
859
- fixed?: string | boolean;
860
1274
  resizable?: boolean;
861
- sort?: string | boolean | {
862
- sortFn?: Function;
863
- sortScope?: string;
864
- value?: string;
865
- };
866
- filter?: string | boolean | {
867
- list?: any;
868
- filterFn?: Function;
869
- checked?: any;
870
- };
871
- colspan?: Function | {
1275
+ colspan?: (({ column, colIndex, row, rowIndex, }: {
1276
+ column: any;
1277
+ colIndex: any;
1278
+ row: any;
1279
+ rowIndex: any;
1280
+ }) => number) | {
872
1281
  toString: (radix?: number) => string;
873
1282
  toFixed: (fractionDigits?: number) => string;
874
1283
  toExponential: (fractionDigits?: number) => string;
@@ -879,7 +1288,12 @@ declare const BkTable: {
879
1288
  (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
880
1289
  };
881
1290
  };
882
- rowspan?: Function | {
1291
+ rowspan?: (({ column, colIndex, row, rowIndex, }: {
1292
+ column: any;
1293
+ colIndex: any;
1294
+ row: any;
1295
+ rowIndex: any;
1296
+ }) => number) | {
883
1297
  toString: (radix?: number) => string;
884
1298
  toFixed: (fractionDigits?: number) => string;
885
1299
  toExponential: (fractionDigits?: number) => string;
@@ -890,110 +1304,22 @@ declare const BkTable: {
890
1304
  (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
891
1305
  };
892
1306
  };
893
- textAlign?: {
894
- [x: number]: string;
895
- toString: () => string;
896
- charAt: (pos: number) => string;
897
- charCodeAt: (index: number) => number;
898
- concat: (...strings: string[]) => string;
899
- indexOf: (searchString: string, position?: number) => number;
900
- lastIndexOf: (searchString: string, position?: number) => number;
901
- localeCompare: {
902
- (that: string): number;
903
- (that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
904
- };
905
- match: {
906
- (regexp: string | RegExp): RegExpMatchArray;
907
- (matcher: {
908
- [Symbol.match](string: string): RegExpMatchArray;
909
- }): RegExpMatchArray;
910
- };
911
- replace: {
912
- (searchValue: string | RegExp, replaceValue: string): string;
913
- (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
914
- (searchValue: {
915
- [Symbol.replace](string: string, replaceValue: string): string;
916
- }, replaceValue: string): string;
917
- (searchValue: {
918
- [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
919
- }, replacer: (substring: string, ...args: any[]) => string): string;
920
- };
921
- search: {
922
- (regexp: string | RegExp): number;
923
- (searcher: {
924
- [Symbol.search](string: string): number;
925
- }): number;
926
- };
927
- slice: (start?: number, end?: number) => string;
928
- split: {
929
- (separator: string | RegExp, limit?: number): string[];
930
- (splitter: {
931
- [Symbol.split](string: string, limit?: number): string[];
932
- }, limit?: number): string[];
933
- };
934
- substring: (start: number, end?: number) => string;
935
- toLowerCase: () => string;
936
- toLocaleLowerCase: (locales?: string | string[]) => string;
937
- toUpperCase: () => string;
938
- toLocaleUpperCase: (locales?: string | string[]) => string;
939
- trim: () => string;
940
- readonly length: number;
941
- substr: (from: number, length?: number) => string;
942
- valueOf: () => string;
943
- codePointAt: (pos: number) => number;
944
- includes: (searchString: string, position?: number) => boolean;
945
- endsWith: (searchString: string, endPosition?: number) => boolean;
946
- normalize: {
947
- (form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
948
- (form?: string): string;
949
- };
950
- repeat: (count: number) => string;
951
- startsWith: (searchString: string, position?: number) => boolean;
952
- anchor: (name: string) => string;
953
- big: () => string;
954
- blink: () => string;
955
- bold: () => string;
956
- fixed: () => string;
957
- fontcolor: (color: string) => string;
958
- fontsize: {
959
- (size: number): string;
960
- (size: string): string;
961
- };
962
- italics: () => string;
963
- link: (url: string) => string;
964
- small: () => string;
965
- strike: () => string;
966
- sub: () => string;
967
- sup: () => string;
968
- padStart: (maxLength: number, fillString?: string) => string;
969
- padEnd: (maxLength: number, fillString?: string) => string;
970
- trimEnd: () => string;
971
- trimStart: () => string;
972
- trimLeft: () => string;
973
- trimRight: () => string;
974
- matchAll: (regexp: RegExp) => IterableIterator<RegExpMatchArray>;
975
- [Symbol.iterator]: () => IterableIterator<string>;
976
- at: (index: number) => string;
977
- };
978
- className?: string | Function;
979
- align?: string;
980
- prop?: string | Function;
981
- index?: number;
1307
+ render?: import("./props").RenderFunctionString;
1308
+ type?: "none" | "selection" | "index" | "expand";
1309
+ label?: import("./props").LabelFunctionString;
1310
+ width?: string | number;
1311
+ className?: import("./props").RowClassFunctionString;
1312
+ align?: "" | "right" | "left" | "center";
1313
+ prop?: import("./props").LabelFunctionString;
982
1314
  };
983
1315
  }, unknown, {}, {
984
1316
  updateColumnDefine(unmounted?: boolean): void;
985
1317
  updateColumnDefineByParent(): void;
986
1318
  updateColumnDefineByIndex(unmounted?: boolean): void;
987
1319
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
988
- prop: import("vue-types").VueTypeDef<any>;
989
- index: import("vue-types").VueTypeValidableDef<number> & {
990
- default: number;
991
- } & {
992
- default: number;
993
- };
994
- label: import("vue-types").VueTypeDef<any>;
995
- field: import("vue-types").VueTypeDef<any>;
996
- render: import("vue-types").VueTypeDef<any>;
1320
+ label: import("vue-types").VueTypeDef<import("./props").LabelFunctionString>;
1321
+ field: import("vue-types").VueTypeDef<import("./props").LabelFunctionString>;
1322
+ render: import("vue-types").VueTypeDef<import("./props").RenderFunctionString>;
997
1323
  width: import("vue-types").VueTypeDef<string | number>;
998
1324
  minWidth: import("vue-types").VueTypeDef<string | number> & {
999
1325
  default: string | number;
@@ -1003,8 +1329,15 @@ declare const BkTable: {
1003
1329
  } & {
1004
1330
  default: string;
1005
1331
  };
1006
- showOverflowTooltip: import("vue-types").VueTypeDef<boolean | import("./props").IOverflowTooltip> & {
1007
- default: boolean | (() => import("./props").IOverflowTooltip);
1332
+ showOverflowTooltip: import("vue-types").VueTypeDef<import("./props").IOverflowTooltipProp> & {
1333
+ default: boolean | (() => {
1334
+ content: string | Function;
1335
+ disabled?: boolean;
1336
+ watchCellResize?: boolean;
1337
+ mode?: "auto" | "static";
1338
+ popoverOption?: any;
1339
+ resizerWay?: import("./props").ResizerWay;
1340
+ });
1008
1341
  };
1009
1342
  type: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
1010
1343
  resizable: import("vue-types").VueTypeValidableDef<boolean> & {
@@ -1015,61 +1348,47 @@ declare const BkTable: {
1015
1348
  fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
1016
1349
  default: boolean | "right" | "left";
1017
1350
  };
1018
- sort: import("vue-types").VueTypeDef<string | boolean | {
1019
- sortFn: any;
1020
- sortScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
1021
- value: string;
1022
- }> & {
1023
- default: string | boolean | (() => {
1024
- sortFn: any;
1025
- sortScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
1026
- value: string;
1027
- });
1351
+ sort: import("vue-types").VueTypeDef<import("./props").ISortPropShape> & {
1352
+ default: string | boolean | (() => import("./props").ISortShape);
1028
1353
  };
1029
- filter: import("vue-types").VueTypeDef<string | boolean | {
1030
- list: any[] | (object & (() => any[]));
1031
- filterFn: any;
1032
- match: "full" | "fuzzy";
1033
- checked: any[] | (object & (() => any[]));
1034
- filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
1035
- btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
1036
- btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
1037
- }> & {
1038
- default: string | boolean | (() => {
1039
- list: any[] | (object & (() => any[]));
1040
- filterFn: any;
1041
- match: "full" | "fuzzy";
1042
- checked: any[] | (object & (() => any[]));
1043
- filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
1044
- btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
1045
- btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
1046
- });
1354
+ filter: import("vue-types").VueTypeDef<import("./props").IFilterPropShape> & {
1355
+ default: string | boolean | (() => import("./props").IFilterShape);
1356
+ };
1357
+ colspan: import("vue-types").VueTypeDef<import("./props").SpanFunctionString> & {
1358
+ default: (({ column, colIndex, row, rowIndex, }: {
1359
+ column: any;
1360
+ colIndex: any;
1361
+ row: any;
1362
+ rowIndex: any;
1363
+ }) => number) | (() => Number);
1364
+ };
1365
+ rowspan: import("vue-types").VueTypeDef<import("./props").SpanFunctionString> & {
1366
+ default: (({ column, colIndex, row, rowIndex, }: {
1367
+ column: any;
1368
+ colIndex: any;
1369
+ row: any;
1370
+ rowIndex: any;
1371
+ }) => number) | (() => Number);
1047
1372
  };
1048
- colspan: import("vue-types").VueTypeDef<any>;
1049
- rowspan: import("vue-types").VueTypeDef<any>;
1050
1373
  align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
1051
- className: import("vue-types").VueTypeDef<any>;
1052
- }>>, {
1053
- sort: string | boolean | {
1054
- sortFn: any;
1055
- sortScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
1056
- value: string;
1057
- };
1058
- filter: string | boolean | {
1059
- list: any[] | (object & (() => any[]));
1060
- filterFn: any;
1061
- match: "full" | "fuzzy";
1062
- checked: any[] | (object & (() => any[]));
1063
- filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
1064
- btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
1065
- btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
1374
+ className: import("vue-types").VueTypeDef<import("./props").RowClassFunctionString>;
1375
+ prop: import("vue-types").VueTypeDef<import("./props").LabelFunctionString>;
1376
+ index: import("vue-types").VueTypeValidableDef<number> & {
1377
+ default: number;
1378
+ } & {
1379
+ default: number;
1066
1380
  };
1381
+ }>>, {
1382
+ sort: import("./props").ISortPropShape;
1383
+ filter: import("./props").IFilterPropShape;
1067
1384
  fixed: boolean | "right" | "left";
1068
1385
  minWidth: string | number;
1069
1386
  index: number;
1070
1387
  columnKey: string;
1071
- showOverflowTooltip: boolean | import("./props").IOverflowTooltip;
1388
+ showOverflowTooltip: import("./props").IOverflowTooltipProp;
1072
1389
  resizable: boolean;
1390
+ colspan: import("./props").SpanFunctionString;
1391
+ rowspan: import("./props").SpanFunctionString;
1073
1392
  }, {}>;
1074
1393
  }>;
1075
1394
  export default BkTable;