bkui-vue 2.0.1-beta.10 → 2.0.1-beta.11

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 (191) hide show
  1. package/dist/index.cjs.js +165 -165
  2. package/dist/index.esm.js +28601 -28591
  3. package/dist/index.umd.js +165 -165
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/index.js +7 -7
  7. package/lib/alert/alert.d.ts +5 -5
  8. package/lib/alert/index.d.ts +11 -11
  9. package/lib/backtop/backtop.d.ts +1 -1
  10. package/lib/backtop/index.d.ts +3 -3
  11. package/lib/backtop/index.js +6 -6
  12. package/lib/badge/index.js +1 -1
  13. package/lib/button/button.d.ts +7 -7
  14. package/lib/button/index.d.ts +8 -8
  15. package/lib/button/index.js +6 -6
  16. package/lib/cascader/cascader-panel.d.ts +1 -1
  17. package/lib/cascader/cascader.d.ts +1 -1
  18. package/lib/cascader/index.js +32 -31
  19. package/lib/cascader/interface.d.ts +1 -1
  20. package/lib/checkbox/index.js +3 -3
  21. package/lib/checkbox/type.d.ts +1 -1
  22. package/lib/code-diff/index.js +8 -8
  23. package/lib/collapse/index.js +2 -2
  24. package/lib/collapse/utils.d.ts +2 -2
  25. package/lib/color-picker/index.js +44 -44
  26. package/lib/components.d.ts +32 -32
  27. package/lib/components.js +31 -31
  28. package/lib/config-provider/index.d.ts +1 -1
  29. package/lib/container/index.js +6 -6
  30. package/lib/date-picker/base/date-table.d.ts +1 -1
  31. package/lib/date-picker/base/month-table.d.ts +1 -1
  32. package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
  33. package/lib/date-picker/base/year-table.d.ts +1 -1
  34. package/lib/date-picker/index.js +188 -189
  35. package/lib/date-picker/interface.d.ts +9 -9
  36. package/lib/date-picker/panel/date-range.d.ts +1 -1
  37. package/lib/date-picker/panel/date.d.ts +1 -1
  38. package/lib/date-picker/panel/time-range.d.ts +1 -1
  39. package/lib/date-picker/panel/time.d.ts +1 -1
  40. package/lib/date-picker/props.d.ts +1 -1
  41. package/lib/date-picker/utils.d.ts +1 -1
  42. package/lib/dialog/dialog.d.ts +18 -18
  43. package/lib/dialog/index.d.ts +40 -40
  44. package/lib/dialog/index.js +22 -22
  45. package/lib/dialog/props.d.ts +7 -7
  46. package/lib/directives/index.d.ts +3 -3
  47. package/lib/directives/index.js +166 -166
  48. package/lib/directives/tooltips.d.ts +1 -1
  49. package/lib/dist.index.js +2 -2
  50. package/lib/divider/divider.d.ts +5 -5
  51. package/lib/divider/index.d.ts +11 -11
  52. package/lib/divider/index.js +2 -2
  53. package/lib/divider/props.d.ts +2 -2
  54. package/lib/dropdown/dropdown.d.ts +5 -5
  55. package/lib/dropdown/index.d.ts +11 -11
  56. package/lib/dropdown/index.js +7 -7
  57. package/lib/exception/exception.d.ts +9 -9
  58. package/lib/exception/index.d.ts +11 -11
  59. package/lib/exception/index.js +10 -10
  60. package/lib/exception/typings/index.d.ts +1 -1
  61. package/lib/fixed-navbar/index.js +2 -2
  62. package/lib/form/form.d.ts +2 -2
  63. package/lib/form/index.js +14 -14
  64. package/lib/form/type.d.ts +2 -2
  65. package/lib/icon/index.d.ts +11 -11
  66. package/lib/icon/index.js +11 -11
  67. package/lib/image/image-viewer.d.ts +1 -1
  68. package/lib/image/index.js +20 -20
  69. package/lib/index.d.ts +3 -3
  70. package/lib/index.js +3 -3
  71. package/lib/info-box/index.js +13 -13
  72. package/lib/info-box/info-box.d.ts +15 -15
  73. package/lib/input/index.d.ts +15 -15
  74. package/lib/input/index.js +16 -16
  75. package/lib/input/input.d.ts +15 -15
  76. package/lib/link/index.d.ts +11 -11
  77. package/lib/link/index.js +3 -3
  78. package/lib/link/link.d.ts +5 -5
  79. package/lib/loading/index.d.ts +4 -4
  80. package/lib/loading/index.js +6 -6
  81. package/lib/loading/loading.d.ts +6 -6
  82. package/lib/locale/index.d.ts +1 -1
  83. package/lib/menu/index.js +1 -0
  84. package/lib/menu/utils.d.ts +3 -3
  85. package/lib/message/index.js +18 -18
  86. package/lib/message/messageConstructor.d.ts +11 -11
  87. package/lib/modal/index.d.ts +3 -3
  88. package/lib/modal/index.js +7 -7
  89. package/lib/modal/modal.d.ts +1 -1
  90. package/lib/navigation/index.js +20 -20
  91. package/lib/navigation/navigation.d.ts +1 -1
  92. package/lib/notify/index.js +4 -4
  93. package/lib/overflow-title/components/overflow-title.d.ts +9 -9
  94. package/lib/overflow-title/index.d.ts +19 -19
  95. package/lib/overflow-title/index.js +11 -61
  96. package/lib/overflow-title/props.d.ts +18 -18
  97. package/lib/pagination/index.js +16 -16
  98. package/lib/pagination/type.d.ts +1 -1
  99. package/lib/pagination/use-limit.d.ts +1 -1
  100. package/lib/pagination/use-total.d.ts +1 -1
  101. package/lib/plugin-popover/index.js +19 -18
  102. package/lib/pop-confirm/index.d.ts +11 -11
  103. package/lib/pop-confirm/index.js +11 -10
  104. package/lib/pop-confirm/pop-confirm.d.ts +5 -5
  105. package/lib/pop-confirm/props.d.ts +4 -4
  106. package/lib/popover/const.d.ts +3 -3
  107. package/lib/popover/index.d.ts +19 -19
  108. package/lib/popover/index.js +19 -18
  109. package/lib/popover/plugin-popover.d.ts +1 -1
  110. package/lib/popover/popover.d.ts +7 -7
  111. package/lib/popover/props.d.ts +4 -4
  112. package/lib/process/index.js +3 -3
  113. package/lib/progress/index.d.ts +11 -11
  114. package/lib/progress/index.js +10 -10
  115. package/lib/progress/progress.d.ts +7 -7
  116. package/lib/radio/index.js +10 -10
  117. package/lib/radio/type.d.ts +1 -1
  118. package/lib/rate/index.js +8 -8
  119. package/lib/resize-layout/index.d.ts +11 -11
  120. package/lib/resize-layout/index.js +8 -7
  121. package/lib/resize-layout/resize-layout.d.ts +5 -5
  122. package/lib/scrollbar/index.js +1 -0
  123. package/lib/scrollbar/scrollbar-core/index.d.ts +9 -9
  124. package/lib/search-select/index.js +66 -66
  125. package/lib/search-select/menu.d.ts +1 -1
  126. package/lib/search-select/selected.d.ts +1 -1
  127. package/lib/search-select/utils.d.ts +3 -3
  128. package/lib/select/index.d.ts +61 -61
  129. package/lib/select/index.js +73 -69
  130. package/lib/select/option.d.ts +1 -1
  131. package/lib/select/select.d.ts +24 -24
  132. package/lib/select/selectTagInput.d.ts +6 -6
  133. package/lib/select/type.d.ts +2 -2
  134. package/lib/shared/index.d.ts +1 -1
  135. package/lib/shared/index.js +46 -38
  136. package/lib/shared/popover.d.ts +3 -3
  137. package/lib/shared/token.d.ts +1 -1
  138. package/lib/shared/vue-types.d.ts +46 -46
  139. package/lib/shared/z-index-manager.d.ts +6 -6
  140. package/lib/sideslider/index.d.ts +3 -3
  141. package/lib/sideslider/index.js +11 -11
  142. package/lib/sideslider/sideslider.d.ts +1 -1
  143. package/lib/slider/index.js +23 -21
  144. package/lib/steps/index.d.ts +11 -11
  145. package/lib/steps/index.js +3 -3
  146. package/lib/steps/steps.d.ts +7 -7
  147. package/lib/swiper/index.js +5 -5
  148. package/lib/switcher/index.js +2 -2
  149. package/lib/switcher/switcher.d.ts +2 -2
  150. package/lib/tab/index.d.ts +22 -22
  151. package/lib/tab/index.js +15 -15
  152. package/lib/tab/props.d.ts +15 -15
  153. package/lib/tab/tab-nav.d.ts +10 -10
  154. package/lib/tab/tab.d.ts +10 -10
  155. package/lib/table/components/table-column.d.ts +87 -27
  156. package/lib/table/const.d.ts +8 -8
  157. package/lib/table/events.d.ts +21 -21
  158. package/lib/table/index.d.ts +244 -194
  159. package/lib/table/index.js +127 -124
  160. package/lib/table/props.d.ts +33 -33
  161. package/lib/table/table.d.ts +47 -47
  162. package/lib/table/use-attributes.d.ts +3 -3
  163. package/lib/table/use-column.d.ts +129 -9
  164. package/lib/table/use-common.d.ts +4 -4
  165. package/lib/table/utils.d.ts +5 -5
  166. package/lib/table-column/index.d.ts +172 -42
  167. package/lib/table-column/index.js +18 -18
  168. package/lib/tag/index.d.ts +11 -11
  169. package/lib/tag/index.js +2 -2
  170. package/lib/tag/tag.d.ts +5 -5
  171. package/lib/tag-input/common.d.ts +1 -1
  172. package/lib/tag-input/index.d.ts +8 -8
  173. package/lib/tag-input/index.js +30 -30
  174. package/lib/tag-input/tag-input.d.ts +4 -4
  175. package/lib/tag-input/tag-props.d.ts +2 -2
  176. package/lib/timeline/index.js +2 -2
  177. package/lib/transfer/const.d.ts +2 -2
  178. package/lib/transfer/index.js +5 -3
  179. package/lib/tree/constant.d.ts +20 -20
  180. package/lib/tree/index.d.ts +20 -20
  181. package/lib/tree/index.js +41 -37
  182. package/lib/tree/props.d.ts +6 -6
  183. package/lib/tree/tree.d.ts +8 -14
  184. package/lib/tree/use-empty.d.ts +1 -1
  185. package/lib/tree/use-node-action.d.ts +2 -2
  186. package/lib/tree/use-search.d.ts +1 -1
  187. package/lib/upload/index.js +26 -25
  188. package/lib/upload/props.d.ts +1 -1
  189. package/lib/upload/upload.type.d.ts +6 -6
  190. package/lib/upload/use-file-handler.d.ts +1 -1
  191. package/package.json +49 -13
@@ -1,48 +1,48 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
2
  import { IHeadColor, ROW_HOVER, SORT_OPTION } from './const';
3
3
  export declare enum SortScope {
4
- ALL = "all",
5
- CURRENT = "current"
4
+ CURRENT = "current",
5
+ ALL = "all"
6
6
  }
7
7
  export type ColumnFilterListItem = {
8
8
  text?: string;
9
9
  value?: string;
10
10
  };
11
11
  export declare enum OverflowModeEnum {
12
- AUTO = "auto",
13
- STATIC = "static"
12
+ STATIC = "static",
13
+ AUTO = "auto"
14
14
  }
15
15
  export declare const EnumOverflowModeType: import("vue-types").VueTypeDef<"auto" | "static">;
16
16
  export declare enum ColumnTypeEnum {
17
- EXPAND = "expand",
17
+ SELECTION = "selection",
18
18
  INDEX = "index",
19
- NONE = "__COL_TYPE_NONE",
20
- SELECTION = "selection"
19
+ EXPAND = "expand",
20
+ NONE = "__COL_TYPE_NONE"
21
21
  }
22
22
  export declare enum TableAlignEnum {
23
- CENTER = "center",
24
23
  LEFT = "left",
25
- NONE = "",
26
- RIGHT = "right"
24
+ RIGHT = "right",
25
+ CENTER = "center",
26
+ NONE = ""
27
27
  }
28
- export declare const columnType: import("vue-types").VueTypeDef<"index" | "expand" | "__COL_TYPE_NONE" | "selection">;
29
- export declare const TableAlign: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
28
+ export declare const columnType: import("vue-types").VueTypeDef<"index" | "selection" | "expand" | "__COL_TYPE_NONE">;
29
+ export declare const TableAlign: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
30
30
  export declare enum FullEnum {
31
31
  FULL = "full",
32
32
  FUZZY = "fuzzy"
33
33
  }
34
34
  export declare const fullType: import("vue-types").VueTypeDef<"full" | "fuzzy">;
35
35
  export declare enum SettingSizeEnum {
36
- LARGE = "large",
36
+ SMALL = "small",
37
37
  MEDIUM = "medium",
38
- SMALL = "small"
38
+ LARGE = "large"
39
39
  }
40
40
  export declare const settingSizeType: import("vue-types").VueTypeDef<"small" | "medium" | "large">;
41
41
  export declare enum FixedEnum {
42
42
  LEFT = "left",
43
43
  RIGHT = "right"
44
44
  }
45
- export declare const fixedType: import("vue-types").VueTypeValidableDef<"left" | "right">;
45
+ export declare const fixedType: import("vue-types").VueTypeValidableDef<"right" | "left">;
46
46
  export type IOverflowTooltipOption = {
47
47
  content: ((col: Column, row: any) => string) | string;
48
48
  disabled?: ((col: Column, row: any) => boolean) | boolean;
@@ -79,9 +79,9 @@ export type IFilterShape = {
79
79
  export type IFilterPropShape = IFilterShape | boolean | string;
80
80
  export declare const IFilterType: import("vue-types").VueTypeDef<IFilterPropShape>;
81
81
  export declare enum ColumnPickEnum {
82
- DISABLED = "disabled",
83
82
  MULTI = "multi",
84
- SINGLE = "single"
83
+ SINGLE = "single",
84
+ DISABLED = "disabled"
85
85
  }
86
86
  export declare enum ResizerWay {
87
87
  DEBOUNCE = "debounce",
@@ -115,7 +115,7 @@ export type Field = {
115
115
  id?: string;
116
116
  name?: string;
117
117
  };
118
- export type LabelFunctionString = ((_column: any, _index: any) => JSX.Element | boolean | number | string) | boolean | number | string;
118
+ export type LabelFunctionString = ((_column: any, _index: any) => string | number | boolean | JSX.Element) | string | number | boolean;
119
119
  export declare const LabelFunctionStringType: import("vue-types").VueTypeDef<LabelFunctionString>;
120
120
  export type RenderFunctionString = ({ cell, data, row, column, index, rows, }: {
121
121
  cell: any;
@@ -124,14 +124,14 @@ export type RenderFunctionString = ({ cell, data, row, column, index, rows, }: {
124
124
  column: any;
125
125
  index: any;
126
126
  rows: any;
127
- }) => JSX.Element | boolean | number | string;
127
+ }) => string | number | boolean | JSX.Element;
128
128
  export declare const RenderFunctionStringType: import("vue-types").VueTypeDef<RenderFunctionString>;
129
129
  export type SpanFunctionString = (({ column, colIndex, row, rowIndex }: {
130
130
  column: any;
131
131
  colIndex: any;
132
132
  row: any;
133
133
  rowIndex: any;
134
- }) => number) | number;
134
+ }) => number) | Number;
135
135
  export declare const SpanFunctionStringType: import("vue-types").VueTypeDef<SpanFunctionString>;
136
136
  export type RowClassFunctionString = ((row: any) => string) | string;
137
137
  export declare const RowClassFunctionStringType: import("vue-types").VueTypeDef<RowClassFunctionString>;
@@ -139,7 +139,7 @@ export type RowHeightFunctionNumber = ((_type: string, _row: any, _rowIndex: num
139
139
  export declare const RowHeightFunctionNumberType: import("vue-types").VueTypeDef<RowHeightFunctionNumber>;
140
140
  type FunctionNumber = Function | number;
141
141
  export declare const FunctionNumberType: import("vue-types").VueTypeDef<FunctionNumber>;
142
- type StringNumber = number | string;
142
+ type StringNumber = string | number;
143
143
  export declare const StringNumberType: (val: number | string) => import("vue-types").VueTypeDef<StringNumber> & {
144
144
  default: StringNumber;
145
145
  };
@@ -167,7 +167,7 @@ export type Column = {
167
167
  columnKey?: string;
168
168
  showOverflowTooltip?: IOverflowTooltip;
169
169
  type?: string;
170
- fixed?: boolean | string;
170
+ fixed?: string | boolean;
171
171
  resizable?: boolean;
172
172
  sort?: ISortShape | boolean | string;
173
173
  filter?: IFilterShape | boolean | string;
@@ -177,12 +177,12 @@ export type Column = {
177
177
  className?: RowClassFunctionString;
178
178
  align?: string;
179
179
  prop?: LabelFunctionString;
180
- index?: number;
180
+ index?: Number;
181
181
  explain?: IColumnExplain;
182
182
  };
183
183
  export declare const IColumnProp: import("vue-types").VueTypeDef<Column>;
184
184
  export type Thead = {
185
- height?: number;
185
+ height?: Number;
186
186
  isShow?: boolean;
187
187
  cellFn?: Function;
188
188
  color?: IHeadColor | string;
@@ -202,13 +202,13 @@ export type IColumnActive = {
202
202
  export type IReactiveProp = {
203
203
  activeColumns: IColumnActive[];
204
204
  rowActions: Record<string, any>;
205
- scrollTranslateY: number;
206
- scrollTranslateX: number;
205
+ scrollTranslateY: Number;
206
+ scrollTranslateX: Number;
207
207
  pos: Record<string, any>;
208
208
  settings: Settings | boolean;
209
209
  setting: {
210
210
  size: string;
211
- height: number;
211
+ height: Number;
212
212
  };
213
213
  defaultSort: Record<string, any>;
214
214
  };
@@ -219,13 +219,13 @@ export type Colgroups = Column & {
219
219
  };
220
220
  export declare enum IColSortBehavior {
221
221
  /**
222
- * 列与列之间的排序是独立的,互斥的
222
+ * 列排序是相互依赖的
223
223
  */
224
- independent = "independent",
224
+ interdependent = "interdependent",
225
225
  /**
226
- * 列排序是相互依赖的
226
+ * 列与列之间的排序是独立的,互斥的
227
227
  */
228
- interdependent = "interdependent"
228
+ independent = "independent"
229
229
  }
230
230
  export declare const tableProps: {
231
231
  /**
@@ -529,8 +529,8 @@ export declare const tableProps: {
529
529
  } & {
530
530
  default: boolean;
531
531
  };
532
- align: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
533
- headerAlign: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
532
+ align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
533
+ headerAlign: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
534
534
  /**
535
535
  * 插入至表格第一行之前的内容容器样式
536
536
  * 默认样式为固定在第一行
@@ -143,8 +143,8 @@ declare const _default: import("vue").DefineComponent<{
143
143
  } & {
144
144
  default: boolean;
145
145
  };
146
- align: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
147
- headerAlign: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
146
+ align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
147
+ headerAlign: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
148
148
  prependStyle: import("vue-types").VueTypeDef<import("vue").CSSProperties> & {
149
149
  default: () => import("vue").CSSProperties;
150
150
  };
@@ -183,13 +183,13 @@ declare const _default: import("vue").DefineComponent<{
183
183
  rowExpand: (_args: {
184
184
  row: any;
185
185
  column: Column;
186
- index: number;
186
+ index: Number;
187
187
  rows: any[];
188
188
  e: MouseEvent;
189
189
  }) => boolean;
190
190
  select: (_args: {
191
191
  row: any;
192
- index: number;
192
+ index: Number;
193
193
  checked: string;
194
194
  data: any[];
195
195
  }) => boolean;
@@ -199,7 +199,7 @@ declare const _default: import("vue").DefineComponent<{
199
199
  }) => boolean;
200
200
  selectionChange: (_args: {
201
201
  row: any;
202
- index: number;
202
+ index: Number;
203
203
  checked: string;
204
204
  data: any[];
205
205
  isAll: boolean;
@@ -389,8 +389,8 @@ declare const _default: import("vue").DefineComponent<{
389
389
  } & {
390
390
  default: boolean;
391
391
  };
392
- align: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
393
- headerAlign: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
392
+ align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
393
+ headerAlign: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
394
394
  prependStyle: import("vue-types").VueTypeDef<import("vue").CSSProperties> & {
395
395
  default: () => import("vue").CSSProperties;
396
396
  };
@@ -415,29 +415,15 @@ declare const _default: import("vue").DefineComponent<{
415
415
  }) => any;
416
416
  onSelect?: (_args: {
417
417
  row: any;
418
- index: number;
418
+ index: Number;
419
419
  checked: string;
420
420
  data: any[];
421
421
  }) => any;
422
- onCellClick?: (_args: {
423
- event: MouseEvent;
424
- row: any;
425
- column: Column;
426
- cell: {
427
- getValue: () => string;
428
- };
429
- rowIndex: number;
430
- columnIndex: number;
431
- }) => any;
432
- onCellDblclick?: (_args: {
433
- event: MouseEvent;
434
- row: any;
422
+ onColumnPick?: (_cols: import("./props").IColumnActive[]) => any;
423
+ onColumnSort?: (_args: {
435
424
  column: Column;
436
- cell: {
437
- getValue: () => string;
438
- };
439
- rowIndex: number;
440
- columnIndex: number;
425
+ index: number;
426
+ type: import("./const").SORT_OPTION;
441
427
  }) => any;
442
428
  onColumnFilter?: (_args: {
443
429
  checked: string[];
@@ -448,48 +434,62 @@ declare const _default: import("vue").DefineComponent<{
448
434
  column: Column;
449
435
  values: any[];
450
436
  }) => any;
451
- onColumnPick?: (_cols: import("./props").IColumnActive[]) => any;
452
- onColumnSort?: (_args: {
453
- column: Column;
454
- index: number;
455
- type: import("./const").SORT_OPTION;
456
- }) => any;
457
- onPageLimitChange?: (_arg: number) => any;
458
- onPageValueChange?: (_arg: number) => any;
459
437
  onRowClick?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
460
438
  onRowDblclick?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
461
439
  onRowExpand?: (_args: {
462
440
  row: any;
463
441
  column: Column;
464
- index: number;
442
+ index: Number;
465
443
  rows: any[];
466
444
  e: MouseEvent;
467
445
  }) => any;
468
446
  onRowMouseEnter?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
469
447
  onRowMouseLeave?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
448
+ onPageLimitChange?: (_arg: number) => any;
449
+ onPageValueChange?: (_arg: number) => any;
450
+ onSettingChange?: (_args: {
451
+ checked: string[];
452
+ size: string;
453
+ height: number;
454
+ fields: Record<string, any>[];
455
+ }) => any;
456
+ onScrollBottom?: (_args: {
457
+ translateX: number;
458
+ translateY: number;
459
+ scrollTop: number;
460
+ scrollLeft: number;
461
+ bottom: number;
462
+ }) => any;
470
463
  onSelectAll?: (_args: {
471
464
  checked: string;
472
465
  data: any[];
473
466
  }) => any;
474
467
  onSelectionChange?: (_args: {
475
468
  row: any;
476
- index: number;
469
+ index: Number;
477
470
  checked: string;
478
471
  data: any[];
479
472
  isAll: boolean;
480
473
  }) => any;
481
- onScrollBottom?: (_args: {
482
- translateX: number;
483
- translateY: number;
484
- scrollTop: number;
485
- scrollLeft: number;
486
- bottom: number;
474
+ onCellClick?: (_args: {
475
+ event: MouseEvent;
476
+ row: any;
477
+ column: Column;
478
+ cell: {
479
+ getValue: () => string;
480
+ };
481
+ rowIndex: number;
482
+ columnIndex: number;
487
483
  }) => any;
488
- onSettingChange?: (_args: {
489
- checked: string[];
490
- size: string;
491
- height: number;
492
- fields: Record<string, any>[];
484
+ onCellDblclick?: (_args: {
485
+ event: MouseEvent;
486
+ row: any;
487
+ column: Column;
488
+ cell: {
489
+ getValue: () => string;
490
+ };
491
+ rowIndex: number;
492
+ columnIndex: number;
493
493
  }) => any;
494
494
  }, {
495
495
  data: any[];
@@ -24,12 +24,12 @@ declare const tableSchemaResponse: (props: TablePropTypes) => {
24
24
  setRowSelection: (row: any, isSelected: boolean, index?: number) => void;
25
25
  setRowExpand: (row: any, isExpand: boolean) => void;
26
26
  setRowIndex: (row: any, index: number) => void;
27
- setColumnAttribute: (col: Column, attrName: string, attrValue: string | number | boolean | ((...args: any[]) => boolean | number | string | void)) => void;
27
+ setColumnAttribute: (col: Column, attrName: string, attrValue: string | number | boolean | ((...args: any[]) => boolean | number | void | string)) => void;
28
28
  setColumnAttributeBySettings: (settings: Settings, checkedVal?: string[]) => void;
29
29
  setColumnSortActive: (column: Column, active: boolean) => void;
30
30
  setRowSelectionAll: (val: boolean) => void;
31
31
  setRowIndeterminate: () => void;
32
- setAllColumnAttribute: (attributeName: string | string[], value: string | number | boolean | ((...args: any[]) => boolean | number | string | void)) => void;
32
+ setAllColumnAttribute: (attributeName: string | string[], value: string | number | boolean | ((...args: any[]) => boolean | number | void | string)) => void;
33
33
  getColumnAttribute: (col: Column | IEmptyObject, attributeName: string) => any;
34
34
  getColumnId: (col: Column) => any;
35
35
  getColumnOrderWidth: (col: Column, orders?: string[]) => number;
@@ -45,7 +45,7 @@ declare const tableSchemaResponse: (props: TablePropTypes) => {
45
45
  clearSelection: () => void;
46
46
  clearColumnSort: (reset?: boolean) => void;
47
47
  toggleRowSelection: (row: any) => void;
48
- getRowAttribute: (item: IEmptyObject | any, attrName: string) => any;
48
+ getRowAttribute: (item: any | IEmptyObject, attrName: string) => any;
49
49
  filter: () => void;
50
50
  sortData: (column: Column) => void;
51
51
  isCheckedAll: () => boolean;
@@ -43,13 +43,53 @@ declare const _default: (props: TablePropTypes) => {
43
43
  height?: number;
44
44
  maxHeight?: number;
45
45
  };
46
- colspan?: import("./props").SpanFunctionString;
47
- rowspan?: import("./props").SpanFunctionString;
46
+ colspan?: (({ column, colIndex, row, rowIndex }: {
47
+ column: any;
48
+ colIndex: any;
49
+ row: any;
50
+ rowIndex: any;
51
+ }) => number) | {
52
+ toString: (radix?: number) => string;
53
+ toFixed: (fractionDigits?: number) => string;
54
+ toExponential: (fractionDigits?: number) => string;
55
+ toPrecision: (precision?: number) => string;
56
+ valueOf: () => number;
57
+ toLocaleString: {
58
+ (locales?: string | string[], options?: Intl.NumberFormatOptions): string;
59
+ (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
60
+ };
61
+ };
62
+ rowspan?: (({ column, colIndex, row, rowIndex }: {
63
+ column: any;
64
+ colIndex: any;
65
+ row: any;
66
+ rowIndex: any;
67
+ }) => number) | {
68
+ toString: (radix?: number) => string;
69
+ toFixed: (fractionDigits?: number) => string;
70
+ toExponential: (fractionDigits?: number) => string;
71
+ toPrecision: (precision?: number) => string;
72
+ valueOf: () => number;
73
+ toLocaleString: {
74
+ (locales?: string | string[], options?: Intl.NumberFormatOptions): string;
75
+ (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
76
+ };
77
+ };
48
78
  textAlign?: string;
49
79
  className?: import("./props").RowClassFunctionString;
50
80
  align?: string;
51
81
  prop?: import("./props").LabelFunctionString;
52
- index?: number;
82
+ index?: {
83
+ toString: (radix?: number) => string;
84
+ toFixed: (fractionDigits?: number) => string;
85
+ toExponential: (fractionDigits?: number) => string;
86
+ toPrecision: (precision?: number) => string;
87
+ valueOf: () => number;
88
+ toLocaleString: {
89
+ (locales?: string | string[], options?: Intl.NumberFormatOptions): string;
90
+ (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
91
+ };
92
+ };
53
93
  explain?: boolean | {
54
94
  content: import("./props").LabelFunctionString;
55
95
  head: import("./props").LabelFunctionString;
@@ -91,13 +131,53 @@ declare const _default: (props: TablePropTypes) => {
91
131
  height?: number;
92
132
  maxHeight?: number;
93
133
  };
94
- colspan?: import("./props").SpanFunctionString;
95
- rowspan?: import("./props").SpanFunctionString;
134
+ colspan?: (({ column, colIndex, row, rowIndex }: {
135
+ column: any;
136
+ colIndex: any;
137
+ row: any;
138
+ rowIndex: any;
139
+ }) => number) | {
140
+ toString: (radix?: number) => string;
141
+ toFixed: (fractionDigits?: number) => string;
142
+ toExponential: (fractionDigits?: number) => string;
143
+ toPrecision: (precision?: number) => string;
144
+ valueOf: () => number;
145
+ toLocaleString: {
146
+ (locales?: string | string[], options?: Intl.NumberFormatOptions): string;
147
+ (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
148
+ };
149
+ };
150
+ rowspan?: (({ column, colIndex, row, rowIndex }: {
151
+ column: any;
152
+ colIndex: any;
153
+ row: any;
154
+ rowIndex: any;
155
+ }) => number) | {
156
+ toString: (radix?: number) => string;
157
+ toFixed: (fractionDigits?: number) => string;
158
+ toExponential: (fractionDigits?: number) => string;
159
+ toPrecision: (precision?: number) => string;
160
+ valueOf: () => number;
161
+ toLocaleString: {
162
+ (locales?: string | string[], options?: Intl.NumberFormatOptions): string;
163
+ (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
164
+ };
165
+ };
96
166
  textAlign?: string;
97
167
  className?: import("./props").RowClassFunctionString;
98
168
  align?: string;
99
169
  prop?: import("./props").LabelFunctionString;
100
- index?: number;
170
+ index?: {
171
+ toString: (radix?: number) => string;
172
+ toFixed: (fractionDigits?: number) => string;
173
+ toExponential: (fractionDigits?: number) => string;
174
+ toPrecision: (precision?: number) => string;
175
+ valueOf: () => number;
176
+ toLocaleString: {
177
+ (locales?: string | string[], options?: Intl.NumberFormatOptions): string;
178
+ (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
179
+ };
180
+ };
101
181
  explain?: boolean | {
102
182
  content: import("./props").LabelFunctionString;
103
183
  head: import("./props").LabelFunctionString;
@@ -139,13 +219,53 @@ declare const _default: (props: TablePropTypes) => {
139
219
  height?: number;
140
220
  maxHeight?: number;
141
221
  };
142
- colspan?: import("./props").SpanFunctionString;
143
- rowspan?: import("./props").SpanFunctionString;
222
+ colspan?: (({ column, colIndex, row, rowIndex }: {
223
+ column: any;
224
+ colIndex: any;
225
+ row: any;
226
+ rowIndex: any;
227
+ }) => number) | {
228
+ toString: (radix?: number) => string;
229
+ toFixed: (fractionDigits?: number) => string;
230
+ toExponential: (fractionDigits?: number) => string;
231
+ toPrecision: (precision?: number) => string;
232
+ valueOf: () => number;
233
+ toLocaleString: {
234
+ (locales?: string | string[], options?: Intl.NumberFormatOptions): string;
235
+ (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
236
+ };
237
+ };
238
+ rowspan?: (({ column, colIndex, row, rowIndex }: {
239
+ column: any;
240
+ colIndex: any;
241
+ row: any;
242
+ rowIndex: any;
243
+ }) => number) | {
244
+ toString: (radix?: number) => string;
245
+ toFixed: (fractionDigits?: number) => string;
246
+ toExponential: (fractionDigits?: number) => string;
247
+ toPrecision: (precision?: number) => string;
248
+ valueOf: () => number;
249
+ toLocaleString: {
250
+ (locales?: string | string[], options?: Intl.NumberFormatOptions): string;
251
+ (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
252
+ };
253
+ };
144
254
  textAlign?: string;
145
255
  className?: import("./props").RowClassFunctionString;
146
256
  align?: string;
147
257
  prop?: import("./props").LabelFunctionString;
148
- index?: number;
258
+ index?: {
259
+ toString: (radix?: number) => string;
260
+ toFixed: (fractionDigits?: number) => string;
261
+ toExponential: (fractionDigits?: number) => string;
262
+ toPrecision: (precision?: number) => string;
263
+ valueOf: () => number;
264
+ toLocaleString: {
265
+ (locales?: string | string[], options?: Intl.NumberFormatOptions): string;
266
+ (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
267
+ };
268
+ };
149
269
  explain?: boolean | {
150
270
  content: import("./props").LabelFunctionString;
151
271
  head: import("./props").LabelFunctionString;
@@ -23,10 +23,10 @@ export declare const useClass: (props: TablePropTypes, _targetColumns: ITableCol
23
23
  height: string;
24
24
  }>;
25
25
  contentStyle: {
26
- display: boolean | string;
27
- minHeight: number | string;
28
- height: number | string;
29
- maxHeight: number | string;
26
+ display: string | boolean;
27
+ minHeight: string | number;
28
+ height: string | number;
29
+ maxHeight: string | number;
30
30
  };
31
31
  headStyle: import("vue").ComputedRef<{
32
32
  '--row-height': string;
@@ -19,7 +19,7 @@ export declare const resolveActiveColumns: (props: TablePropTypes) => number[];
19
19
  * @returns
20
20
  */
21
21
  export declare const resolveNumberToNumArray: (prop: number) => number[];
22
- export declare const resolveWidth: (propWidth: number | string) => string | number;
22
+ export declare const resolveWidth: (propWidth: string | number) => string | number;
23
23
  /**
24
24
  * 解析可为数字或者字符串设置的样式配置
25
25
  * @param val 配置值
@@ -27,7 +27,7 @@ export declare const resolveWidth: (propWidth: number | string) => string | numb
27
27
  * @param offset 偏移量
28
28
  * @returns 标准化px string
29
29
  */
30
- export declare const resolveNumberOrStringToPix: (val: number | string, defaultValue?: number | string, offset?: any) => string | number;
30
+ export declare const resolveNumberOrStringToPix: (val: string | number, defaultValue?: string | number, offset?: any) => string | number;
31
31
  /**
32
32
  * 格式化Border配置为标准Class
33
33
  * @param val
@@ -62,7 +62,7 @@ export declare const observerResize: (root: HTMLElement, callbackFn: () => void,
62
62
  * @param val
63
63
  * @returns
64
64
  */
65
- export declare const isPercentPixOrNumber: (val: number | string) => boolean;
65
+ export declare const isPercentPixOrNumber: (val: string | number) => boolean;
66
66
  /**
67
67
  * Format Table Head Option
68
68
  * @param props
@@ -80,7 +80,7 @@ export declare const resolveHeadConfig: (props: TablePropTypes) => {
80
80
  * @param index 当前行Index
81
81
  * @returns
82
82
  */
83
- export declare const getRowText: (row: any, key: string, format?: (() => boolean | number | string)[] | string[]) => any;
83
+ export declare const getRowText: (row: any, key: string, format?: string[] | (() => string | number | boolean)[]) => any;
84
84
  /**
85
85
  * 获取当前行指定列的值
86
86
  * @param row 当前行
@@ -94,7 +94,7 @@ export declare const getRowValue: (row: any, key: string) => any;
94
94
  * @param args 如果是function参数
95
95
  * @returns
96
96
  */
97
- export declare const formatPropAsArray: (prop: (() => any) | object | string, args: any[]) => any;
97
+ export declare const formatPropAsArray: (prop: string | object | (() => any), args: any[]) => any;
98
98
  export declare const isRenderScrollBottomLoading: (props: TablePropTypes) => boolean;
99
99
  export declare const getRowKey: (item: any, props: TablePropTypes, index: number) => any;
100
100
  export declare const getRowKeyNull: (item: any, props: TablePropTypes, index: number) => unknown;