bkui-vue 2.0.1-beta.6 → 2.0.1-beta.60.fix.1

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 (215) hide show
  1. package/dist/index.cjs.js +166 -166
  2. package/dist/index.esm.js +32099 -32092
  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 -7
  16. package/lib/cascader/cascader-panel.d.ts +1 -1
  17. package/lib/cascader/cascader.d.ts +1 -1
  18. package/lib/cascader/cascader.less +1 -1
  19. package/lib/cascader/index.js +32 -32
  20. package/lib/cascader/interface.d.ts +1 -1
  21. package/lib/checkbox/checkbox.d.ts +7 -7
  22. package/lib/checkbox/index.d.ts +11 -11
  23. package/lib/checkbox/index.js +12 -4
  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/index.js +44 -44
  29. package/lib/components.d.ts +32 -32
  30. package/lib/components.js +31 -31
  31. package/lib/config-provider/index.d.ts +1 -1
  32. package/lib/container/index.js +6 -7
  33. package/lib/date-picker/base/date-table.d.ts +1 -1
  34. package/lib/date-picker/base/month-table.d.ts +1 -1
  35. package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
  36. package/lib/date-picker/base/year-table.d.ts +1 -1
  37. package/lib/date-picker/date-picker.d.ts +0 -1
  38. package/lib/date-picker/index.d.ts +0 -3
  39. package/lib/date-picker/index.js +246 -220
  40. package/lib/date-picker/interface.d.ts +9 -9
  41. package/lib/date-picker/panel/date-range.d.ts +5 -5
  42. package/lib/date-picker/panel/date.d.ts +1 -1
  43. package/lib/date-picker/panel/time-range.d.ts +1 -1
  44. package/lib/date-picker/panel/time.d.ts +1 -1
  45. package/lib/date-picker/props.d.ts +1 -1
  46. package/lib/date-picker/utils.d.ts +1 -1
  47. package/lib/dialog/dialog.d.ts +25 -20
  48. package/lib/dialog/index.d.ts +55 -44
  49. package/lib/dialog/index.js +22 -22
  50. package/lib/dialog/props.d.ts +10 -8
  51. package/lib/directives/index.d.ts +3 -3
  52. package/lib/directives/index.js +166 -166
  53. package/lib/directives/tooltips.d.ts +1 -1
  54. package/lib/dist.index.js +2 -4
  55. package/lib/divider/divider.d.ts +5 -5
  56. package/lib/divider/index.d.ts +11 -11
  57. package/lib/divider/index.js +2 -2
  58. package/lib/divider/props.d.ts +2 -2
  59. package/lib/dropdown/dropdown.d.ts +5 -5
  60. package/lib/dropdown/index.d.ts +11 -11
  61. package/lib/dropdown/index.js +7 -7
  62. package/lib/exception/exception.d.ts +9 -9
  63. package/lib/exception/index.d.ts +11 -11
  64. package/lib/exception/index.js +10 -10
  65. package/lib/exception/typings/index.d.ts +1 -1
  66. package/lib/fixed-navbar/index.js +2 -2
  67. package/lib/form/form.d.ts +2 -2
  68. package/lib/form/index.js +14 -15
  69. package/lib/form/type.d.ts +2 -2
  70. package/lib/icon/index.d.ts +11 -11
  71. package/lib/icon/index.js +11 -11
  72. package/lib/image/image-viewer.d.ts +1 -1
  73. package/lib/image/index.js +20 -21
  74. package/lib/index.d.ts +9 -3
  75. package/lib/index.js +5 -29
  76. package/lib/info-box/index.js +13 -13
  77. package/lib/info-box/info-box.d.ts +15 -15
  78. package/lib/input/index.d.ts +15 -15
  79. package/lib/input/index.js +16 -17
  80. package/lib/input/input.d.ts +15 -15
  81. package/lib/link/index.d.ts +11 -11
  82. package/lib/link/index.js +3 -3
  83. package/lib/link/link.d.ts +5 -5
  84. package/lib/loading/index.d.ts +4 -4
  85. package/lib/loading/index.js +6 -6
  86. package/lib/loading/loading.d.ts +6 -6
  87. package/lib/locale/index.d.ts +1 -1
  88. package/lib/menu/index.js +0 -1
  89. package/lib/menu/utils.d.ts +3 -3
  90. package/lib/message/index.js +18 -18
  91. package/lib/message/messageConstructor.d.ts +11 -11
  92. package/lib/modal/index.d.ts +21 -8
  93. package/lib/modal/index.js +14 -8
  94. package/lib/modal/modal.d.ts +8 -3
  95. package/lib/modal/props.mixin.d.ts +3 -1
  96. package/lib/navigation/index.js +20 -20
  97. package/lib/navigation/navigation.d.ts +1 -1
  98. package/lib/notify/index.js +4 -4
  99. package/lib/overflow-title/components/overflow-title.d.ts +9 -9
  100. package/lib/overflow-title/index.d.ts +19 -19
  101. package/lib/overflow-title/index.js +61 -11
  102. package/lib/overflow-title/props.d.ts +18 -18
  103. package/lib/pagination/index.js +16 -16
  104. package/lib/pagination/type.d.ts +1 -1
  105. package/lib/pagination/use-limit.d.ts +1 -1
  106. package/lib/pagination/use-total.d.ts +1 -1
  107. package/lib/plugin-popover/index.js +18 -20
  108. package/lib/pop-confirm/index.d.ts +11 -11
  109. package/lib/pop-confirm/index.js +11 -10
  110. package/lib/pop-confirm/pop-confirm.d.ts +5 -5
  111. package/lib/pop-confirm/props.d.ts +4 -4
  112. package/lib/popover/const.d.ts +3 -3
  113. package/lib/popover/index.d.ts +19 -19
  114. package/lib/popover/index.js +18 -20
  115. package/lib/popover/plugin-popover.d.ts +1 -1
  116. package/lib/popover/popover.d.ts +7 -7
  117. package/lib/popover/props.d.ts +4 -4
  118. package/lib/preset.d.ts +0 -1
  119. package/lib/preset.js +0 -1
  120. package/lib/process/index.js +3 -3
  121. package/lib/progress/index.d.ts +11 -11
  122. package/lib/progress/index.js +10 -11
  123. package/lib/progress/progress.d.ts +7 -7
  124. package/lib/radio/index.d.ts +21 -21
  125. package/lib/radio/index.js +28 -17
  126. package/lib/radio/radio-button.d.ts +7 -7
  127. package/lib/radio/radio-group.d.ts +7 -7
  128. package/lib/radio/radio.d.ts +7 -7
  129. package/lib/radio/type.d.ts +1 -1
  130. package/lib/rate/index.js +8 -8
  131. package/lib/rate/rate.css +27 -0
  132. package/lib/rate/rate.less +33 -0
  133. package/lib/rate/rate.variable.css +27 -0
  134. package/lib/resize-layout/index.d.ts +34 -11
  135. package/lib/resize-layout/index.js +29 -14
  136. package/lib/resize-layout/resize-layout.d.ts +16 -5
  137. package/lib/scrollbar/index.js +0 -1
  138. package/lib/scrollbar/scrollbar-core/index.d.ts +9 -9
  139. package/lib/search-select/index.js +66 -66
  140. package/lib/search-select/menu.d.ts +1 -1
  141. package/lib/search-select/selected.d.ts +1 -1
  142. package/lib/search-select/utils.d.ts +3 -3
  143. package/lib/select/common.d.ts +4 -4
  144. package/lib/select/index.d.ts +88 -70
  145. package/lib/select/index.js +134 -125
  146. package/lib/select/option.d.ts +1 -1
  147. package/lib/select/select.d.ts +35 -27
  148. package/lib/select/selectTagInput.d.ts +6 -6
  149. package/lib/select/type.d.ts +2 -2
  150. package/lib/shared/index.d.ts +1 -1
  151. package/lib/shared/index.js +38 -46
  152. package/lib/shared/popover.d.ts +3 -3
  153. package/lib/shared/token.d.ts +1 -1
  154. package/lib/shared/vue-types.d.ts +46 -46
  155. package/lib/shared/z-index-manager.d.ts +6 -6
  156. package/lib/sideslider/index.d.ts +18 -7
  157. package/lib/sideslider/index.js +11 -11
  158. package/lib/sideslider/sideslider.d.ts +8 -3
  159. package/lib/slider/index.js +21 -23
  160. package/lib/steps/index.d.ts +11 -11
  161. package/lib/steps/index.js +3 -3
  162. package/lib/steps/steps.d.ts +7 -7
  163. package/lib/styles/index.d.ts +0 -1
  164. package/lib/swiper/index.js +5 -5
  165. package/lib/switcher/index.js +2 -2
  166. package/lib/switcher/switcher.d.ts +2 -2
  167. package/lib/tab/index.d.ts +22 -22
  168. package/lib/tab/index.js +15 -15
  169. package/lib/tab/props.d.ts +15 -15
  170. package/lib/tab/tab-nav.d.ts +10 -10
  171. package/lib/tab/tab.d.ts +10 -10
  172. package/lib/table/components/table-column.d.ts +27 -87
  173. package/lib/table/const.d.ts +8 -8
  174. package/lib/table/events.d.ts +21 -21
  175. package/lib/table/index.d.ts +194 -244
  176. package/lib/table/index.js +126 -130
  177. package/lib/table/props.d.ts +33 -33
  178. package/lib/table/table.css +3 -4
  179. package/lib/table/table.d.ts +47 -47
  180. package/lib/table/table.less +4 -12
  181. package/lib/table/table.variable.css +3 -4
  182. package/lib/table/use-attributes.d.ts +3 -3
  183. package/lib/table/use-column.d.ts +9 -129
  184. package/lib/table/use-common.d.ts +4 -4
  185. package/lib/table/utils.d.ts +5 -5
  186. package/lib/table-column/index.d.ts +42 -172
  187. package/lib/table-column/index.js +18 -18
  188. package/lib/tag/index.d.ts +11 -11
  189. package/lib/tag/index.js +2 -2
  190. package/lib/tag/tag.d.ts +5 -5
  191. package/lib/tag-input/common.d.ts +1 -1
  192. package/lib/tag-input/index.d.ts +8 -8
  193. package/lib/tag-input/index.js +30 -30
  194. package/lib/tag-input/tag-input.d.ts +4 -4
  195. package/lib/tag-input/tag-props.d.ts +2 -2
  196. package/lib/timeline/index.js +2 -2
  197. package/lib/transfer/const.d.ts +2 -2
  198. package/lib/transfer/index.js +3 -5
  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 -40
  202. package/lib/tree/props.d.ts +6 -6
  203. package/lib/tree/tree.d.ts +8 -14
  204. package/lib/tree/use-empty.d.ts +1 -1
  205. package/lib/tree/use-node-action.d.ts +2 -2
  206. package/lib/tree/use-search.d.ts +1 -1
  207. package/lib/upload/index.js +25 -26
  208. package/lib/upload/props.d.ts +1 -1
  209. package/lib/upload/upload.type.d.ts +6 -6
  210. package/lib/upload/use-file-handler.d.ts +1 -1
  211. package/lib/virtual-render/index.js +2 -3
  212. package/package.json +17 -55
  213. package/lib/rate/star.css +0 -27
  214. package/lib/rate/star.less +0 -34
  215. package/lib/rate/star.variable.css +0 -156
@@ -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;
@@ -13,34 +13,24 @@ declare const BkTableColumn: {
13
13
  default: string;
14
14
  };
15
15
  showOverflowTooltip: import("vue-types").VueTypeDef<import("../table/props").IOverflowTooltipProp>;
16
- type: import("vue-types").VueTypeDef<"index" | "selection" | "expand" | "__COL_TYPE_NONE">;
16
+ type: import("vue-types").VueTypeDef<"index" | "expand" | "__COL_TYPE_NONE" | "selection">;
17
17
  resizable: import("vue-types").VueTypeValidableDef<boolean> & {
18
18
  default: boolean;
19
19
  } & {
20
20
  default: boolean;
21
21
  };
22
- fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
23
- default: boolean | "right" | "left";
22
+ fixed: import("vue-types").VueTypeDef<boolean | "left" | "right"> & {
23
+ default: boolean | "left" | "right";
24
24
  };
25
25
  sort: import("vue-types").VueTypeDef<import("../table/props").ISortPropShape>;
26
26
  filter: import("vue-types").VueTypeDef<import("../table/props").IFilterPropShape>;
27
27
  colspan: import("vue-types").VueTypeDef<import("../table/props").SpanFunctionString> & {
28
- default: (({ column, colIndex, row, rowIndex }: {
29
- column: any;
30
- colIndex: any;
31
- row: any;
32
- rowIndex: any;
33
- }) => number) | (() => Number);
28
+ default: import("../table/props").SpanFunctionString;
34
29
  };
35
30
  rowspan: import("vue-types").VueTypeDef<import("../table/props").SpanFunctionString> & {
36
- default: (({ column, colIndex, row, rowIndex }: {
37
- column: any;
38
- colIndex: any;
39
- row: any;
40
- rowIndex: any;
41
- }) => number) | (() => Number);
31
+ default: import("../table/props").SpanFunctionString;
42
32
  };
43
- align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
33
+ align: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
44
34
  className: import("vue-types").VueTypeDef<import("../table/props").RowClassFunctionString>;
45
35
  prop: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
46
36
  index: import("vue-types").VueTypeValidableDef<number> & {
@@ -50,43 +40,13 @@ declare const BkTableColumn: {
50
40
  };
51
41
  }>>, {
52
42
  column: {
53
- fixed?: boolean | "right" | "left";
43
+ fixed?: boolean | "left" | "right";
54
44
  resizable?: boolean;
55
45
  minWidth?: string | number;
56
46
  index?: number;
57
47
  columnKey?: string;
58
- colspan?: (({ column, colIndex, row, rowIndex }: {
59
- column: any;
60
- colIndex: any;
61
- row: any;
62
- rowIndex: any;
63
- }) => number) | {
64
- toString: (radix?: number) => string;
65
- toFixed: (fractionDigits?: number) => string;
66
- toExponential: (fractionDigits?: number) => string;
67
- toPrecision: (precision?: number) => string;
68
- valueOf: () => number;
69
- toLocaleString: {
70
- (locales?: string | string[], options?: Intl.NumberFormatOptions): string;
71
- (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
72
- };
73
- };
74
- rowspan?: (({ column, colIndex, row, rowIndex }: {
75
- column: any;
76
- colIndex: any;
77
- row: any;
78
- rowIndex: any;
79
- }) => number) | {
80
- toString: (radix?: number) => string;
81
- toFixed: (fractionDigits?: number) => string;
82
- toExponential: (fractionDigits?: number) => string;
83
- toPrecision: (precision?: number) => string;
84
- valueOf: () => number;
85
- toLocaleString: {
86
- (locales?: string | string[], options?: Intl.NumberFormatOptions): string;
87
- (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
88
- };
89
- };
48
+ colspan?: import("../table/props").SpanFunctionString;
49
+ rowspan?: import("../table/props").SpanFunctionString;
90
50
  render?: import("../table/props").RenderFunctionString;
91
51
  sort?: string | boolean | {
92
52
  sortFn?: Function;
@@ -104,11 +64,11 @@ declare const BkTableColumn: {
104
64
  height?: number;
105
65
  maxHeight?: number;
106
66
  };
107
- type?: "index" | "selection" | "expand" | "__COL_TYPE_NONE";
67
+ type?: "index" | "expand" | "__COL_TYPE_NONE" | "selection";
108
68
  label?: import("../table/props").LabelFunctionString;
109
69
  width?: string | number;
110
70
  className?: import("../table/props").RowClassFunctionString;
111
- align?: "" | "right" | "left" | "center";
71
+ align?: "" | "left" | "right" | "center";
112
72
  showOverflowTooltip?: boolean | {
113
73
  content: string | ((col: import("../../bkui-vue").TableIColumn, row: any) => string);
114
74
  disabled?: boolean | ((col: import("../../bkui-vue").TableIColumn, row: any) => boolean);
@@ -135,34 +95,24 @@ declare const BkTableColumn: {
135
95
  default: string;
136
96
  };
137
97
  showOverflowTooltip: import("vue-types").VueTypeDef<import("../table/props").IOverflowTooltipProp>;
138
- type: import("vue-types").VueTypeDef<"index" | "selection" | "expand" | "__COL_TYPE_NONE">;
98
+ type: import("vue-types").VueTypeDef<"index" | "expand" | "__COL_TYPE_NONE" | "selection">;
139
99
  resizable: import("vue-types").VueTypeValidableDef<boolean> & {
140
100
  default: boolean;
141
101
  } & {
142
102
  default: boolean;
143
103
  };
144
- fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
145
- default: boolean | "right" | "left";
104
+ fixed: import("vue-types").VueTypeDef<boolean | "left" | "right"> & {
105
+ default: boolean | "left" | "right";
146
106
  };
147
107
  sort: import("vue-types").VueTypeDef<import("../table/props").ISortPropShape>;
148
108
  filter: import("vue-types").VueTypeDef<import("../table/props").IFilterPropShape>;
149
109
  colspan: import("vue-types").VueTypeDef<import("../table/props").SpanFunctionString> & {
150
- default: (({ column, colIndex, row, rowIndex }: {
151
- column: any;
152
- colIndex: any;
153
- row: any;
154
- rowIndex: any;
155
- }) => number) | (() => Number);
110
+ default: import("../table/props").SpanFunctionString;
156
111
  };
157
112
  rowspan: import("vue-types").VueTypeDef<import("../table/props").SpanFunctionString> & {
158
- default: (({ column, colIndex, row, rowIndex }: {
159
- column: any;
160
- colIndex: any;
161
- row: any;
162
- rowIndex: any;
163
- }) => number) | (() => Number);
113
+ default: import("../table/props").SpanFunctionString;
164
114
  };
165
- align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
115
+ align: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
166
116
  className: import("vue-types").VueTypeDef<import("../table/props").RowClassFunctionString>;
167
117
  prop: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
168
118
  index: import("vue-types").VueTypeValidableDef<number> & {
@@ -171,7 +121,7 @@ declare const BkTableColumn: {
171
121
  default: number;
172
122
  };
173
123
  }>>, {
174
- fixed: boolean | "right" | "left";
124
+ fixed: boolean | "left" | "right";
175
125
  resizable: boolean;
176
126
  minWidth: string | number;
177
127
  index: number;
@@ -199,34 +149,24 @@ declare const BkTableColumn: {
199
149
  default: string;
200
150
  };
201
151
  showOverflowTooltip: import("vue-types").VueTypeDef<import("../table/props").IOverflowTooltipProp>;
202
- type: import("vue-types").VueTypeDef<"index" | "selection" | "expand" | "__COL_TYPE_NONE">;
152
+ type: import("vue-types").VueTypeDef<"index" | "expand" | "__COL_TYPE_NONE" | "selection">;
203
153
  resizable: import("vue-types").VueTypeValidableDef<boolean> & {
204
154
  default: boolean;
205
155
  } & {
206
156
  default: boolean;
207
157
  };
208
- fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
209
- default: boolean | "right" | "left";
158
+ fixed: import("vue-types").VueTypeDef<boolean | "left" | "right"> & {
159
+ default: boolean | "left" | "right";
210
160
  };
211
161
  sort: import("vue-types").VueTypeDef<import("../table/props").ISortPropShape>;
212
162
  filter: import("vue-types").VueTypeDef<import("../table/props").IFilterPropShape>;
213
163
  colspan: import("vue-types").VueTypeDef<import("../table/props").SpanFunctionString> & {
214
- default: (({ column, colIndex, row, rowIndex }: {
215
- column: any;
216
- colIndex: any;
217
- row: any;
218
- rowIndex: any;
219
- }) => number) | (() => Number);
164
+ default: import("../table/props").SpanFunctionString;
220
165
  };
221
166
  rowspan: import("vue-types").VueTypeDef<import("../table/props").SpanFunctionString> & {
222
- default: (({ column, colIndex, row, rowIndex }: {
223
- column: any;
224
- colIndex: any;
225
- row: any;
226
- rowIndex: any;
227
- }) => number) | (() => Number);
167
+ default: import("../table/props").SpanFunctionString;
228
168
  };
229
- align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
169
+ align: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
230
170
  className: import("vue-types").VueTypeDef<import("../table/props").RowClassFunctionString>;
231
171
  prop: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
232
172
  index: import("vue-types").VueTypeValidableDef<number> & {
@@ -236,43 +176,13 @@ declare const BkTableColumn: {
236
176
  };
237
177
  }>>, {
238
178
  column: {
239
- fixed?: boolean | "right" | "left";
179
+ fixed?: boolean | "left" | "right";
240
180
  resizable?: boolean;
241
181
  minWidth?: string | number;
242
182
  index?: number;
243
183
  columnKey?: string;
244
- colspan?: (({ column, colIndex, row, rowIndex }: {
245
- column: any;
246
- colIndex: any;
247
- row: any;
248
- rowIndex: any;
249
- }) => number) | {
250
- toString: (radix?: number) => string;
251
- toFixed: (fractionDigits?: number) => string;
252
- toExponential: (fractionDigits?: number) => string;
253
- toPrecision: (precision?: number) => string;
254
- valueOf: () => number;
255
- toLocaleString: {
256
- (locales?: string | string[], options?: Intl.NumberFormatOptions): string;
257
- (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
258
- };
259
- };
260
- rowspan?: (({ column, colIndex, row, rowIndex }: {
261
- column: any;
262
- colIndex: any;
263
- row: any;
264
- rowIndex: any;
265
- }) => number) | {
266
- toString: (radix?: number) => string;
267
- toFixed: (fractionDigits?: number) => string;
268
- toExponential: (fractionDigits?: number) => string;
269
- toPrecision: (precision?: number) => string;
270
- valueOf: () => number;
271
- toLocaleString: {
272
- (locales?: string | string[], options?: Intl.NumberFormatOptions): string;
273
- (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
274
- };
275
- };
184
+ colspan?: import("../table/props").SpanFunctionString;
185
+ rowspan?: import("../table/props").SpanFunctionString;
276
186
  render?: import("../table/props").RenderFunctionString;
277
187
  sort?: string | boolean | {
278
188
  sortFn?: Function;
@@ -290,11 +200,11 @@ declare const BkTableColumn: {
290
200
  height?: number;
291
201
  maxHeight?: number;
292
202
  };
293
- type?: "index" | "selection" | "expand" | "__COL_TYPE_NONE";
203
+ type?: "index" | "expand" | "__COL_TYPE_NONE" | "selection";
294
204
  label?: import("../table/props").LabelFunctionString;
295
205
  width?: string | number;
296
206
  className?: import("../table/props").RowClassFunctionString;
297
- align?: "" | "right" | "left" | "center";
207
+ align?: "" | "left" | "right" | "center";
298
208
  showOverflowTooltip?: boolean | {
299
209
  content: string | ((col: import("../../bkui-vue").TableIColumn, row: any) => string);
300
210
  disabled?: boolean | ((col: import("../../bkui-vue").TableIColumn, row: any) => boolean);
@@ -308,7 +218,7 @@ declare const BkTableColumn: {
308
218
  prop?: import("../table/props").LabelFunctionString;
309
219
  };
310
220
  }, {}, {}, {}, {
311
- fixed: boolean | "right" | "left";
221
+ fixed: boolean | "left" | "right";
312
222
  resizable: boolean;
313
223
  minWidth: string | number;
314
224
  index: number;
@@ -333,34 +243,24 @@ declare const BkTableColumn: {
333
243
  default: string;
334
244
  };
335
245
  showOverflowTooltip: import("vue-types").VueTypeDef<import("../table/props").IOverflowTooltipProp>;
336
- type: import("vue-types").VueTypeDef<"index" | "selection" | "expand" | "__COL_TYPE_NONE">;
246
+ type: import("vue-types").VueTypeDef<"index" | "expand" | "__COL_TYPE_NONE" | "selection">;
337
247
  resizable: import("vue-types").VueTypeValidableDef<boolean> & {
338
248
  default: boolean;
339
249
  } & {
340
250
  default: boolean;
341
251
  };
342
- fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
343
- default: boolean | "right" | "left";
252
+ fixed: import("vue-types").VueTypeDef<boolean | "left" | "right"> & {
253
+ default: boolean | "left" | "right";
344
254
  };
345
255
  sort: import("vue-types").VueTypeDef<import("../table/props").ISortPropShape>;
346
256
  filter: import("vue-types").VueTypeDef<import("../table/props").IFilterPropShape>;
347
257
  colspan: import("vue-types").VueTypeDef<import("../table/props").SpanFunctionString> & {
348
- default: (({ column, colIndex, row, rowIndex }: {
349
- column: any;
350
- colIndex: any;
351
- row: any;
352
- rowIndex: any;
353
- }) => number) | (() => Number);
258
+ default: import("../table/props").SpanFunctionString;
354
259
  };
355
260
  rowspan: import("vue-types").VueTypeDef<import("../table/props").SpanFunctionString> & {
356
- default: (({ column, colIndex, row, rowIndex }: {
357
- column: any;
358
- colIndex: any;
359
- row: any;
360
- rowIndex: any;
361
- }) => number) | (() => Number);
261
+ default: import("../table/props").SpanFunctionString;
362
262
  };
363
- align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
263
+ align: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
364
264
  className: import("vue-types").VueTypeDef<import("../table/props").RowClassFunctionString>;
365
265
  prop: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
366
266
  index: import("vue-types").VueTypeValidableDef<number> & {
@@ -370,43 +270,13 @@ declare const BkTableColumn: {
370
270
  };
371
271
  }>>, {
372
272
  column: {
373
- fixed?: boolean | "right" | "left";
273
+ fixed?: boolean | "left" | "right";
374
274
  resizable?: boolean;
375
275
  minWidth?: string | number;
376
276
  index?: number;
377
277
  columnKey?: string;
378
- colspan?: (({ column, colIndex, row, rowIndex }: {
379
- column: any;
380
- colIndex: any;
381
- row: any;
382
- rowIndex: any;
383
- }) => number) | {
384
- toString: (radix?: number) => string;
385
- toFixed: (fractionDigits?: number) => string;
386
- toExponential: (fractionDigits?: number) => string;
387
- toPrecision: (precision?: number) => string;
388
- valueOf: () => number;
389
- toLocaleString: {
390
- (locales?: string | string[], options?: Intl.NumberFormatOptions): string;
391
- (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
392
- };
393
- };
394
- rowspan?: (({ column, colIndex, row, rowIndex }: {
395
- column: any;
396
- colIndex: any;
397
- row: any;
398
- rowIndex: any;
399
- }) => number) | {
400
- toString: (radix?: number) => string;
401
- toFixed: (fractionDigits?: number) => string;
402
- toExponential: (fractionDigits?: number) => string;
403
- toPrecision: (precision?: number) => string;
404
- valueOf: () => number;
405
- toLocaleString: {
406
- (locales?: string | string[], options?: Intl.NumberFormatOptions): string;
407
- (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
408
- };
409
- };
278
+ colspan?: import("../table/props").SpanFunctionString;
279
+ rowspan?: import("../table/props").SpanFunctionString;
410
280
  render?: import("../table/props").RenderFunctionString;
411
281
  sort?: string | boolean | {
412
282
  sortFn?: Function;
@@ -424,11 +294,11 @@ declare const BkTableColumn: {
424
294
  height?: number;
425
295
  maxHeight?: number;
426
296
  };
427
- type?: "index" | "selection" | "expand" | "__COL_TYPE_NONE";
297
+ type?: "index" | "expand" | "__COL_TYPE_NONE" | "selection";
428
298
  label?: import("../table/props").LabelFunctionString;
429
299
  width?: string | number;
430
300
  className?: import("../table/props").RowClassFunctionString;
431
- align?: "" | "right" | "left" | "center";
301
+ align?: "" | "left" | "right" | "center";
432
302
  showOverflowTooltip?: boolean | {
433
303
  content: string | ((col: import("../../bkui-vue").TableIColumn, row: any) => string);
434
304
  disabled?: boolean | ((col: import("../../bkui-vue").TableIColumn, row: any) => boolean);
@@ -442,7 +312,7 @@ declare const BkTableColumn: {
442
312
  prop?: import("../table/props").LabelFunctionString;
443
313
  };
444
314
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
445
- fixed: boolean | "right" | "left";
315
+ fixed: boolean | "left" | "right";
446
316
  resizable: boolean;
447
317
  minWidth: string | number;
448
318
  index: number;
@@ -114,11 +114,11 @@ function _defineProperty(obj, key, value) {
114
114
  // eslint-disable-next-line @typescript-eslint/naming-convention
115
115
  var BORDER_OPTION;
116
116
  (function (BORDER_OPTION) {
117
- BORDER_OPTION["NONE"] = "none";
118
- BORDER_OPTION["ROW"] = "row";
119
117
  BORDER_OPTION["COL"] = "col";
120
- BORDER_OPTION["OUTER"] = "outer";
121
118
  BORDER_OPTION["HORIZONTAL"] = "horizontal";
119
+ BORDER_OPTION["NONE"] = "none";
120
+ BORDER_OPTION["OUTER"] = "outer";
121
+ BORDER_OPTION["ROW"] = "row";
122
122
  })(BORDER_OPTION || (BORDER_OPTION = {}));
123
123
  /**
124
124
  * 鼠标划过行样式
@@ -126,8 +126,8 @@ var BORDER_OPTION;
126
126
  // eslint-disable-next-line @typescript-eslint/naming-convention
127
127
  var ROW_HOVER;
128
128
  (function (ROW_HOVER) {
129
- ROW_HOVER["HIGHLIGHT"] = "highlight";
130
129
  ROW_HOVER["AUTO"] = "auto";
130
+ ROW_HOVER["HIGHLIGHT"] = "highlight";
131
131
  })(ROW_HOVER || (ROW_HOVER = {}));
132
132
  var ROW_HOVER_OPTIONS = [ROW_HOVER.AUTO, ROW_HOVER.HIGHLIGHT];
133
133
  /**
@@ -220,9 +220,9 @@ var TB_FOOT_HEIGHT = 60;
220
220
  var SORT_OPTION;
221
221
  (function (SORT_OPTION) {
222
222
  SORT_OPTION["ASC"] = "asc";
223
+ SORT_OPTION["CUSTOM"] = "custom";
223
224
  SORT_OPTION["DESC"] = "desc";
224
225
  SORT_OPTION["NULL"] = "null";
225
- SORT_OPTION["CUSTOM"] = "custom";
226
226
  })(SORT_OPTION || (SORT_OPTION = {}));
227
227
  var SORT_OPTIONS = [SORT_OPTION.ASC, SORT_OPTION.DESC, SORT_OPTION.NULL, SORT_OPTION.CUSTOM];
228
228
  /**
@@ -247,30 +247,30 @@ const external_vue_types_namespaceObject = external_vue_types_x({ ["string"]: ()
247
247
 
248
248
  var SortScope;
249
249
  (function (SortScope) {
250
- SortScope["CURRENT"] = "current";
251
250
  SortScope["ALL"] = "all";
251
+ SortScope["CURRENT"] = "current";
252
252
  })(SortScope || (SortScope = {}));
253
253
  var OverflowModeEnum;
254
254
  (function (OverflowModeEnum) {
255
- OverflowModeEnum["STATIC"] = "static";
256
255
  OverflowModeEnum["AUTO"] = "auto";
256
+ OverflowModeEnum["STATIC"] = "static";
257
257
  })(OverflowModeEnum || (OverflowModeEnum = {}));
258
258
  var EnumOverflowModeType = (0,external_vue_types_namespaceObject.toType)('showOverflowTooltipMode', {
259
259
  "default": OverflowModeEnum.AUTO
260
260
  });
261
261
  var ColumnTypeEnum;
262
262
  (function (ColumnTypeEnum) {
263
- ColumnTypeEnum["SELECTION"] = "selection";
264
- ColumnTypeEnum["INDEX"] = "index";
265
263
  ColumnTypeEnum["EXPAND"] = "expand";
264
+ ColumnTypeEnum["INDEX"] = "index";
266
265
  ColumnTypeEnum["NONE"] = "__COL_TYPE_NONE";
266
+ ColumnTypeEnum["SELECTION"] = "selection";
267
267
  })(ColumnTypeEnum || (ColumnTypeEnum = {}));
268
268
  var TableAlignEnum;
269
269
  (function (TableAlignEnum) {
270
- TableAlignEnum["LEFT"] = "left";
271
- TableAlignEnum["RIGHT"] = "right";
272
270
  TableAlignEnum["CENTER"] = "center";
271
+ TableAlignEnum["LEFT"] = "left";
273
272
  TableAlignEnum["NONE"] = "";
273
+ TableAlignEnum["RIGHT"] = "right";
274
274
  })(TableAlignEnum || (TableAlignEnum = {}));
275
275
  var columnType = (0,external_vue_types_namespaceObject.toType)('columnType', {
276
276
  "default": ColumnTypeEnum.NONE
@@ -288,9 +288,9 @@ var fullType = (0,external_vue_types_namespaceObject.toType)('full', {
288
288
  });
289
289
  var SettingSizeEnum;
290
290
  (function (SettingSizeEnum) {
291
- SettingSizeEnum["SMALL"] = "small";
292
- SettingSizeEnum["MEDIUM"] = "medium";
293
291
  SettingSizeEnum["LARGE"] = "large";
292
+ SettingSizeEnum["MEDIUM"] = "medium";
293
+ SettingSizeEnum["SMALL"] = "small";
294
294
  })(SettingSizeEnum || (SettingSizeEnum = {}));
295
295
  var settingSizeType = (0,external_vue_types_namespaceObject.toType)('columnSize', {
296
296
  "default": SettingSizeEnum.SMALL
@@ -315,9 +315,9 @@ var IFilterType = (0,external_vue_types_namespaceObject.toType)('IFilterPropShap
315
315
  });
316
316
  var ColumnPickEnum;
317
317
  (function (ColumnPickEnum) {
318
+ ColumnPickEnum["DISABLED"] = "disabled";
318
319
  ColumnPickEnum["MULTI"] = "multi";
319
320
  ColumnPickEnum["SINGLE"] = "single";
320
- ColumnPickEnum["DISABLED"] = "disabled";
321
321
  })(ColumnPickEnum || (ColumnPickEnum = {}));
322
322
  var ResizerWay;
323
323
  (function (ResizerWay) {
@@ -353,14 +353,14 @@ var IColumnProp = (0,external_vue_types_namespaceObject.toType)('IColumnPropType
353
353
  });
354
354
  var IColSortBehavior;
355
355
  (function (IColSortBehavior) {
356
- /**
357
- * 列排序是相互依赖的
358
- */
359
- IColSortBehavior["interdependent"] = "interdependent";
360
356
  /**
361
357
  * 列与列之间的排序是独立的,互斥的
362
358
  */
363
359
  IColSortBehavior["independent"] = "independent";
360
+ /**
361
+ * 列排序是相互依赖的
362
+ */
363
+ IColSortBehavior["interdependent"] = "interdependent";
364
364
  })(IColSortBehavior || (IColSortBehavior = {}));
365
365
  var tableProps = {
366
366
  /**
@@ -1,7 +1,7 @@
1
1
  declare const BkTag: {
2
2
  new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
3
- theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "warning" | "danger"> & {
4
- default: "" | "info" | "success" | "warning" | "danger";
3
+ theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "danger" | "warning"> & {
4
+ default: "" | "info" | "success" | "danger" | "warning";
5
5
  };
6
6
  closable: import("vue-types").VueTypeValidableDef<boolean> & {
7
7
  default: boolean;
@@ -38,8 +38,8 @@ declare const BkTag: {
38
38
  handleClick: (e: Event) => void;
39
39
  resolveClassName: (cls: string) => string;
40
40
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
41
- theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "warning" | "danger"> & {
42
- default: "" | "info" | "success" | "warning" | "danger";
41
+ theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "danger" | "warning"> & {
42
+ default: "" | "info" | "success" | "danger" | "warning";
43
43
  };
44
44
  closable: import("vue-types").VueTypeValidableDef<boolean> & {
45
45
  default: boolean;
@@ -70,7 +70,7 @@ declare const BkTag: {
70
70
  onClose?: (...args: any[]) => any;
71
71
  }, {
72
72
  type: "" | "stroke" | "filled";
73
- theme: "" | "info" | "success" | "warning" | "danger";
73
+ theme: "" | "info" | "success" | "danger" | "warning";
74
74
  closable: boolean;
75
75
  radius: string;
76
76
  checked: boolean;
@@ -86,8 +86,8 @@ declare const BkTag: {
86
86
  M: {};
87
87
  Defaults: {};
88
88
  }, Readonly<import("vue").ExtractPropTypes<{
89
- theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "warning" | "danger"> & {
90
- default: "" | "info" | "success" | "warning" | "danger";
89
+ theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "danger" | "warning"> & {
90
+ default: "" | "info" | "success" | "danger" | "warning";
91
91
  };
92
92
  closable: import("vue-types").VueTypeValidableDef<boolean> & {
93
93
  default: boolean;
@@ -125,7 +125,7 @@ declare const BkTag: {
125
125
  resolveClassName: (cls: string) => string;
126
126
  }, {}, {}, {}, {
127
127
  type: "" | "stroke" | "filled";
128
- theme: "" | "info" | "success" | "warning" | "danger";
128
+ theme: "" | "info" | "success" | "danger" | "warning";
129
129
  closable: boolean;
130
130
  radius: string;
131
131
  checked: boolean;
@@ -135,8 +135,8 @@ declare const BkTag: {
135
135
  __isTeleport?: never;
136
136
  __isSuspense?: never;
137
137
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
138
- theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "warning" | "danger"> & {
139
- default: "" | "info" | "success" | "warning" | "danger";
138
+ theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "danger" | "warning"> & {
139
+ default: "" | "info" | "success" | "danger" | "warning";
140
140
  };
141
141
  closable: import("vue-types").VueTypeValidableDef<boolean> & {
142
142
  default: boolean;
@@ -174,7 +174,7 @@ declare const BkTag: {
174
174
  resolveClassName: (cls: string) => string;
175
175
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close")[], "change" | "close", {
176
176
  type: "" | "stroke" | "filled";
177
- theme: "" | "info" | "success" | "warning" | "danger";
177
+ theme: "" | "info" | "success" | "danger" | "warning";
178
178
  closable: boolean;
179
179
  radius: string;
180
180
  checked: boolean;
package/lib/tag/index.js CHANGED
@@ -134,9 +134,9 @@ const icon_namespaceObject = icon_x({ ["Error"]: () => __WEBPACK_EXTERNAL_MODULE
134
134
 
135
135
  var TagStrokeType;
136
136
  (function (TagStrokeType) {
137
- TagStrokeType["UNKNOWN"] = "";
138
137
  TagStrokeType["FILLED"] = "filled";
139
138
  TagStrokeType["STROKE"] = "stroke";
139
+ TagStrokeType["UNKNOWN"] = "";
140
140
  })(TagStrokeType || (TagStrokeType = {}));
141
141
  /* harmony default export */ const tag = ((0,external_vue_namespaceObject.defineComponent)({
142
142
  name: 'Tag',
@@ -184,8 +184,8 @@ var TagStrokeType;
184
184
  var _this$$slots$default, _this$$slots;
185
185
  var classes = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, this.resolveClassName('tag'), true), this.resolveClassName('tag-closable'), this.closable), this.resolveClassName('tag-checkable'), this.checkable), this.resolveClassName('tag-check'), this.checked), this.resolveClassName("tag-".concat(this.type)), this.type), this.resolveClassName("tag-".concat(this.theme)), this.theme), this.resolveClassName("tag--".concat(this.size)), true);
186
186
  return (0,external_vue_namespaceObject.createVNode)("div", {
187
- "class": classes,
188
187
  "style": this.wrapperStyle,
188
+ "class": classes,
189
189
  "onClick": this.handleClick
190
190
  }, [this.$slots.icon ? (0,external_vue_namespaceObject.createVNode)("span", {
191
191
  "class": "".concat(this.resolveClassName('tag-icon'))