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

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 (216) hide show
  1. package/dist/index.cjs.js +166 -166
  2. package/dist/index.esm.js +31973 -31924
  3. package/dist/index.umd.js +166 -166
  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.css +3 -3
  18. package/lib/cascader/cascader.d.ts +1 -1
  19. package/lib/cascader/cascader.less +4 -4
  20. package/lib/cascader/cascader.variable.css +3 -3
  21. package/lib/cascader/index.js +35 -36
  22. package/lib/cascader/interface.d.ts +1 -1
  23. package/lib/checkbox/index.js +3 -3
  24. package/lib/checkbox/type.d.ts +1 -1
  25. package/lib/code-diff/index.js +8 -8
  26. package/lib/collapse/index.js +2 -2
  27. package/lib/collapse/utils.d.ts +2 -2
  28. package/lib/color-picker/color-picker.css +3 -3
  29. package/lib/color-picker/color-picker.less +3 -3
  30. package/lib/color-picker/color-picker.variable.css +3 -3
  31. package/lib/color-picker/index.js +45 -45
  32. package/lib/components.d.ts +32 -32
  33. package/lib/components.js +31 -31
  34. package/lib/config-provider/index.d.ts +1 -1
  35. package/lib/container/index.js +6 -6
  36. package/lib/date-picker/base/date-table.d.ts +1 -1
  37. package/lib/date-picker/base/month-table.d.ts +1 -1
  38. package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
  39. package/lib/date-picker/base/year-table.d.ts +3 -3
  40. package/lib/date-picker/index.js +291 -213
  41. package/lib/date-picker/interface.d.ts +9 -9
  42. package/lib/date-picker/panel/date-range.d.ts +2 -64
  43. package/lib/date-picker/panel/date.d.ts +1 -1
  44. package/lib/date-picker/panel/time-range.d.ts +1 -1
  45. package/lib/date-picker/panel/time.d.ts +1 -1
  46. package/lib/date-picker/props.d.ts +1 -1
  47. package/lib/date-picker/utils.d.ts +5 -1
  48. package/lib/dialog/dialog.css +0 -4
  49. package/lib/dialog/dialog.d.ts +18 -18
  50. package/lib/dialog/dialog.variable.css +0 -4
  51. package/lib/dialog/index.d.ts +40 -40
  52. package/lib/dialog/index.js +22 -22
  53. package/lib/dialog/props.d.ts +7 -7
  54. package/lib/directives/index.d.ts +3 -3
  55. package/lib/directives/index.js +166 -166
  56. package/lib/directives/tooltips.d.ts +1 -1
  57. package/lib/dist.index.js +2 -2
  58. package/lib/divider/divider.d.ts +5 -5
  59. package/lib/divider/index.d.ts +11 -11
  60. package/lib/divider/index.js +2 -2
  61. package/lib/divider/props.d.ts +2 -2
  62. package/lib/dropdown/dropdown.d.ts +5 -5
  63. package/lib/dropdown/index.d.ts +11 -11
  64. package/lib/dropdown/index.js +7 -7
  65. package/lib/exception/exception.d.ts +9 -9
  66. package/lib/exception/index.d.ts +11 -11
  67. package/lib/exception/index.js +10 -10
  68. package/lib/exception/typings/index.d.ts +1 -1
  69. package/lib/fixed-navbar/index.js +2 -2
  70. package/lib/form/form.d.ts +2 -2
  71. package/lib/form/index.js +14 -14
  72. package/lib/form/type.d.ts +2 -2
  73. package/lib/icon/index.d.ts +11 -11
  74. package/lib/icon/index.js +11 -11
  75. package/lib/image/image-viewer.d.ts +1 -1
  76. package/lib/image/index.js +20 -20
  77. package/lib/index.d.ts +3 -3
  78. package/lib/index.js +3 -3
  79. package/lib/info-box/index.js +14 -14
  80. package/lib/info-box/info-box.d.ts +15 -15
  81. package/lib/input/index.d.ts +15 -15
  82. package/lib/input/index.js +16 -16
  83. package/lib/input/input.d.ts +15 -15
  84. package/lib/link/index.d.ts +11 -11
  85. package/lib/link/index.js +3 -3
  86. package/lib/link/link.d.ts +5 -5
  87. package/lib/loading/index.d.ts +4 -4
  88. package/lib/loading/index.js +6 -6
  89. package/lib/loading/loading.d.ts +6 -6
  90. package/lib/locale/index.d.ts +1 -1
  91. package/lib/menu/index.js +0 -1
  92. package/lib/menu/utils.d.ts +3 -3
  93. package/lib/message/index.js +18 -18
  94. package/lib/message/messageConstructor.d.ts +11 -11
  95. package/lib/modal/index.d.ts +3 -3
  96. package/lib/modal/index.js +7 -7
  97. package/lib/modal/modal.css +0 -4
  98. package/lib/modal/modal.d.ts +1 -1
  99. package/lib/modal/modal.less +0 -5
  100. package/lib/modal/modal.variable.css +0 -4
  101. package/lib/navigation/index.js +20 -20
  102. package/lib/navigation/navigation.d.ts +1 -1
  103. package/lib/notify/index.js +4 -4
  104. package/lib/overflow-title/components/overflow-title.d.ts +9 -9
  105. package/lib/overflow-title/index.d.ts +19 -19
  106. package/lib/overflow-title/index.js +61 -11
  107. package/lib/overflow-title/props.d.ts +18 -18
  108. package/lib/pagination/index.js +16 -16
  109. package/lib/pagination/type.d.ts +1 -1
  110. package/lib/pagination/use-limit.d.ts +1 -1
  111. package/lib/pagination/use-total.d.ts +1 -1
  112. package/lib/plugin-popover/index.js +18 -19
  113. package/lib/pop-confirm/index.js +9 -9
  114. package/lib/pop-confirm/props.d.ts +2 -2
  115. package/lib/popover/const.d.ts +3 -3
  116. package/lib/popover/index.d.ts +19 -19
  117. package/lib/popover/index.js +18 -19
  118. package/lib/popover/plugin-popover.d.ts +1 -1
  119. package/lib/popover/popover.d.ts +7 -7
  120. package/lib/popover/props.d.ts +4 -4
  121. package/lib/process/index.js +3 -3
  122. package/lib/progress/index.d.ts +11 -11
  123. package/lib/progress/index.js +10 -10
  124. package/lib/progress/progress.d.ts +7 -7
  125. package/lib/radio/index.js +18 -23
  126. package/lib/radio/type.d.ts +1 -1
  127. package/lib/rate/index.js +8 -8
  128. package/lib/rate/rate.css +27 -0
  129. package/lib/rate/rate.less +33 -0
  130. package/lib/rate/rate.variable.css +27 -0
  131. package/lib/resize-layout/index.d.ts +11 -11
  132. package/lib/resize-layout/index.js +7 -8
  133. package/lib/resize-layout/resize-layout.d.ts +5 -5
  134. package/lib/scrollbar/index.js +0 -1
  135. package/lib/scrollbar/scrollbar-core/index.d.ts +9 -9
  136. package/lib/search-select/index.js +66 -66
  137. package/lib/search-select/menu.d.ts +1 -1
  138. package/lib/search-select/selected.d.ts +1 -1
  139. package/lib/search-select/utils.d.ts +3 -3
  140. package/lib/select/index.d.ts +61 -61
  141. package/lib/select/index.js +69 -73
  142. package/lib/select/option.d.ts +1 -1
  143. package/lib/select/select.css +1 -2
  144. package/lib/select/select.d.ts +24 -24
  145. package/lib/select/select.less +1 -2
  146. package/lib/select/select.variable.css +1 -2
  147. package/lib/select/selectTagInput.d.ts +6 -6
  148. package/lib/select/type.d.ts +2 -2
  149. package/lib/shared/index.d.ts +1 -1
  150. package/lib/shared/index.js +38 -46
  151. package/lib/shared/popover.d.ts +3 -3
  152. package/lib/shared/token.d.ts +1 -1
  153. package/lib/shared/vue-types.d.ts +46 -46
  154. package/lib/shared/z-index-manager.d.ts +6 -6
  155. package/lib/sideslider/index.d.ts +3 -3
  156. package/lib/sideslider/index.js +11 -11
  157. package/lib/sideslider/sideslider.d.ts +1 -1
  158. package/lib/slider/index.js +21 -23
  159. package/lib/steps/index.d.ts +11 -11
  160. package/lib/steps/index.js +3 -3
  161. package/lib/steps/steps.d.ts +7 -7
  162. package/lib/styles/index.d.ts +0 -1
  163. package/lib/swiper/index.js +5 -5
  164. package/lib/switcher/index.js +2 -2
  165. package/lib/switcher/switcher.d.ts +2 -2
  166. package/lib/tab/index.d.ts +22 -22
  167. package/lib/tab/index.js +15 -15
  168. package/lib/tab/props.d.ts +15 -15
  169. package/lib/tab/tab-nav.d.ts +10 -10
  170. package/lib/tab/tab.d.ts +10 -10
  171. package/lib/table/components/table-column.d.ts +27 -87
  172. package/lib/table/const.d.ts +8 -8
  173. package/lib/table/events.d.ts +21 -21
  174. package/lib/table/index.d.ts +194 -244
  175. package/lib/table/index.js +164 -142
  176. package/lib/table/plugins/use-shift-key.d.ts +2 -0
  177. package/lib/table/props.d.ts +34 -34
  178. package/lib/table/table.d.ts +47 -47
  179. package/lib/table/use-attributes.d.ts +3 -3
  180. package/lib/table/use-column.d.ts +9 -129
  181. package/lib/table/use-common.d.ts +4 -4
  182. package/lib/table/utils.d.ts +5 -5
  183. package/lib/table-column/index.d.ts +42 -172
  184. package/lib/table-column/index.js +19 -19
  185. package/lib/tag/index.d.ts +11 -11
  186. package/lib/tag/index.js +2 -2
  187. package/lib/tag/tag.d.ts +5 -5
  188. package/lib/tag-input/common.d.ts +1 -1
  189. package/lib/tag-input/index.d.ts +8 -8
  190. package/lib/tag-input/index.js +30 -30
  191. package/lib/tag-input/tag-input.d.ts +4 -4
  192. package/lib/tag-input/tag-props.d.ts +2 -2
  193. package/lib/timeline/index.js +2 -2
  194. package/lib/transfer/const.d.ts +2 -2
  195. package/lib/transfer/index.js +19 -19
  196. package/lib/transfer/transfer.css +9 -9
  197. package/lib/transfer/transfer.less +3 -3
  198. package/lib/transfer/transfer.variable.css +9 -9
  199. package/lib/tree/constant.d.ts +20 -20
  200. package/lib/tree/index.d.ts +20 -20
  201. package/lib/tree/index.js +48 -48
  202. package/lib/tree/props.d.ts +6 -6
  203. package/lib/tree/tree.d.ts +6 -6
  204. package/lib/tree/tree.less +1 -1
  205. package/lib/tree/use-empty.d.ts +1 -1
  206. package/lib/tree/use-node-action.d.ts +2 -2
  207. package/lib/tree/use-search.d.ts +1 -1
  208. package/lib/tree/util.d.ts +1 -1
  209. package/lib/upload/index.js +41 -35
  210. package/lib/upload/props.d.ts +1 -1
  211. package/lib/upload/upload.type.d.ts +7 -7
  212. package/lib/upload/use-file-handler.d.ts +1 -1
  213. package/package.json +13 -49
  214. package/lib/rate/star.css +0 -27
  215. package/lib/rate/star.less +0 -34
  216. package/lib/rate/star.variable.css +0 -156
@@ -7,5 +7,7 @@ declare const _default: (props: TablePropTypes) => {
7
7
  end: any;
8
8
  };
9
9
  clearStore: () => void;
10
+ setStoreStart: (row?: any, index?: any) => void;
11
+ clearStoreStart: () => void;
10
12
  };
11
13
  export default _default;
@@ -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
- CURRENT = "current",
5
- ALL = "all"
4
+ ALL = "all",
5
+ CURRENT = "current"
6
6
  }
7
7
  export type ColumnFilterListItem = {
8
8
  text?: string;
9
9
  value?: string;
10
10
  };
11
11
  export declare enum OverflowModeEnum {
12
- STATIC = "static",
13
- AUTO = "auto"
12
+ AUTO = "auto",
13
+ STATIC = "static"
14
14
  }
15
15
  export declare const EnumOverflowModeType: import("vue-types").VueTypeDef<"auto" | "static">;
16
16
  export declare enum ColumnTypeEnum {
17
- SELECTION = "selection",
18
- INDEX = "index",
19
17
  EXPAND = "expand",
20
- NONE = "__COL_TYPE_NONE"
18
+ INDEX = "index",
19
+ NONE = "__COL_TYPE_NONE",
20
+ SELECTION = "selection"
21
21
  }
22
22
  export declare enum TableAlignEnum {
23
- LEFT = "left",
24
- RIGHT = "right",
25
23
  CENTER = "center",
26
- NONE = ""
24
+ LEFT = "left",
25
+ NONE = "",
26
+ RIGHT = "right"
27
27
  }
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">;
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">;
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
- SMALL = "small",
36
+ LARGE = "large",
37
37
  MEDIUM = "medium",
38
- LARGE = "large"
38
+ SMALL = "small"
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<"right" | "left">;
45
+ export declare const fixedType: import("vue-types").VueTypeValidableDef<"left" | "right">;
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",
82
83
  MULTI = "multi",
83
- SINGLE = "single",
84
- DISABLED = "disabled"
84
+ SINGLE = "single"
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) => string | number | boolean | JSX.Element) | string | number | boolean;
118
+ export type LabelFunctionString = ((_column: any, _index: any) => JSX.Element | boolean | number | string) | boolean | number | string;
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
- }) => string | number | boolean | JSX.Element;
127
+ }) => JSX.Element | boolean | number | string;
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 = string | number;
142
+ type StringNumber = number | string;
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?: string | boolean;
170
+ fixed?: boolean | string;
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
- interdependent = "interdependent",
224
+ independent = "independent",
225
225
  /**
226
- * 列与列之间的排序是独立的,互斥的
226
+ * 列排序是相互依赖的
227
227
  */
228
- independent = "independent"
228
+ interdependent = "interdependent"
229
229
  }
230
230
  export declare const tableProps: {
231
231
  /**
@@ -459,7 +459,7 @@ export declare const tableProps: {
459
459
  /**
460
460
  * 提供自定义判定当前行是否选中
461
461
  * 如果设置了此属性,其他判定均不生效
462
- * ({ row, cell, data }) => bool
462
+ * ({ row }) => bool
463
463
  */
464
464
  isSelectedFn: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
465
465
  default: (...args: any[]) => any;
@@ -529,8 +529,8 @@ export declare const tableProps: {
529
529
  } & {
530
530
  default: boolean;
531
531
  };
532
- align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
533
- headerAlign: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
532
+ align: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
533
+ headerAlign: import("vue-types").VueTypeDef<"" | "left" | "right" | "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<"" | "right" | "left" | "center">;
147
- headerAlign: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
146
+ align: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
147
+ headerAlign: import("vue-types").VueTypeDef<"" | "left" | "right" | "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<"" | "right" | "left" | "center">;
393
- headerAlign: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
392
+ align: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
393
+ headerAlign: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
394
394
  prependStyle: import("vue-types").VueTypeDef<import("vue").CSSProperties> & {
395
395
  default: () => import("vue").CSSProperties;
396
396
  };
@@ -415,15 +415,29 @@ 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
- onColumnPick?: (_cols: import("./props").IColumnActive[]) => any;
423
- onColumnSort?: (_args: {
422
+ onCellClick?: (_args: {
423
+ event: MouseEvent;
424
+ row: any;
424
425
  column: Column;
425
- index: number;
426
- type: import("./const").SORT_OPTION;
426
+ cell: {
427
+ getValue: () => string;
428
+ };
429
+ rowIndex: number;
430
+ columnIndex: number;
431
+ }) => any;
432
+ onCellDblclick?: (_args: {
433
+ event: MouseEvent;
434
+ row: any;
435
+ column: Column;
436
+ cell: {
437
+ getValue: () => string;
438
+ };
439
+ rowIndex: number;
440
+ columnIndex: number;
427
441
  }) => any;
428
442
  onColumnFilter?: (_args: {
429
443
  checked: string[];
@@ -434,62 +448,48 @@ declare const _default: import("vue").DefineComponent<{
434
448
  column: Column;
435
449
  values: any[];
436
450
  }) => 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;
437
459
  onRowClick?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
438
460
  onRowDblclick?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
439
461
  onRowExpand?: (_args: {
440
462
  row: any;
441
463
  column: Column;
442
- index: Number;
464
+ index: number;
443
465
  rows: any[];
444
466
  e: MouseEvent;
445
467
  }) => any;
446
468
  onRowMouseEnter?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
447
469
  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;
463
470
  onSelectAll?: (_args: {
464
471
  checked: string;
465
472
  data: any[];
466
473
  }) => any;
467
474
  onSelectionChange?: (_args: {
468
475
  row: any;
469
- index: Number;
476
+ index: number;
470
477
  checked: string;
471
478
  data: any[];
472
479
  isAll: boolean;
473
480
  }) => any;
474
- onCellClick?: (_args: {
475
- event: MouseEvent;
476
- row: any;
477
- column: Column;
478
- cell: {
479
- getValue: () => string;
480
- };
481
- rowIndex: number;
482
- columnIndex: number;
481
+ onScrollBottom?: (_args: {
482
+ translateX: number;
483
+ translateY: number;
484
+ scrollTop: number;
485
+ scrollLeft: number;
486
+ bottom: number;
483
487
  }) => 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;
488
+ onSettingChange?: (_args: {
489
+ checked: string[];
490
+ size: string;
491
+ height: number;
492
+ fields: Record<string, any>[];
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 | void | string)) => void;
27
+ setColumnAttribute: (col: Column, attrName: string, attrValue: string | number | boolean | ((...args: any[]) => boolean | number | string | void)) => 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 | void | string)) => void;
32
+ setAllColumnAttribute: (attributeName: string | string[], value: string | number | boolean | ((...args: any[]) => boolean | number | string | void)) => 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: any | IEmptyObject, attrName: string) => any;
48
+ getRowAttribute: (item: IEmptyObject | any, attrName: string) => any;
49
49
  filter: () => void;
50
50
  sortData: (column: Column) => void;
51
51
  isCheckedAll: () => boolean;
@@ -43,53 +43,13 @@ declare const _default: (props: TablePropTypes) => {
43
43
  height?: number;
44
44
  maxHeight?: number;
45
45
  };
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
- };
46
+ colspan?: import("./props").SpanFunctionString;
47
+ rowspan?: import("./props").SpanFunctionString;
78
48
  textAlign?: string;
79
49
  className?: import("./props").RowClassFunctionString;
80
50
  align?: string;
81
51
  prop?: import("./props").LabelFunctionString;
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
- };
52
+ index?: number;
93
53
  explain?: boolean | {
94
54
  content: import("./props").LabelFunctionString;
95
55
  head: import("./props").LabelFunctionString;
@@ -131,53 +91,13 @@ declare const _default: (props: TablePropTypes) => {
131
91
  height?: number;
132
92
  maxHeight?: number;
133
93
  };
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
- };
94
+ colspan?: import("./props").SpanFunctionString;
95
+ rowspan?: import("./props").SpanFunctionString;
166
96
  textAlign?: string;
167
97
  className?: import("./props").RowClassFunctionString;
168
98
  align?: string;
169
99
  prop?: import("./props").LabelFunctionString;
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
- };
100
+ index?: number;
181
101
  explain?: boolean | {
182
102
  content: import("./props").LabelFunctionString;
183
103
  head: import("./props").LabelFunctionString;
@@ -219,53 +139,13 @@ declare const _default: (props: TablePropTypes) => {
219
139
  height?: number;
220
140
  maxHeight?: number;
221
141
  };
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
- };
142
+ colspan?: import("./props").SpanFunctionString;
143
+ rowspan?: import("./props").SpanFunctionString;
254
144
  textAlign?: string;
255
145
  className?: import("./props").RowClassFunctionString;
256
146
  align?: string;
257
147
  prop?: import("./props").LabelFunctionString;
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
- };
148
+ index?: number;
269
149
  explain?: boolean | {
270
150
  content: import("./props").LabelFunctionString;
271
151
  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: string | boolean;
27
- minHeight: string | number;
28
- height: string | number;
29
- maxHeight: string | number;
26
+ display: boolean | string;
27
+ minHeight: number | string;
28
+ height: number | string;
29
+ maxHeight: number | string;
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: string | number) => string | number;
22
+ export declare const resolveWidth: (propWidth: number | string) => string | number;
23
23
  /**
24
24
  * 解析可为数字或者字符串设置的样式配置
25
25
  * @param val 配置值
@@ -27,7 +27,7 @@ export declare const resolveWidth: (propWidth: string | number) => string | numb
27
27
  * @param offset 偏移量
28
28
  * @returns 标准化px string
29
29
  */
30
- export declare const resolveNumberOrStringToPix: (val: string | number, defaultValue?: string | number, offset?: any) => string | number;
30
+ export declare const resolveNumberOrStringToPix: (val: number | string, defaultValue?: number | string, 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: string | number) => boolean;
65
+ export declare const isPercentPixOrNumber: (val: number | string) => 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?: string[] | (() => string | number | boolean)[]) => any;
83
+ export declare const getRowText: (row: any, key: string, format?: (() => boolean | number | string)[] | string[]) => 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: string | object | (() => any), args: any[]) => any;
97
+ export declare const formatPropAsArray: (prop: (() => any) | object | string, 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;