bkui-vue 0.0.1-beta.14 → 0.0.1-beta.17

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 (260) hide show
  1. package/README.md +25 -17
  2. package/README_EN.md +89 -0
  3. package/dist/bkui-vue.cjs.js +2266 -535
  4. package/dist/bkui-vue.esm.js +2308 -582
  5. package/dist/bkui-vue.umd.js +2266 -535
  6. package/dist/style.css +601 -189
  7. package/lib/alert/alert.d.ts +24 -15
  8. package/lib/alert/alert.variable.css +6 -0
  9. package/lib/alert/index.d.ts +96 -60
  10. package/lib/alert/index.js +1 -1
  11. package/lib/animate-number/animate-number.d.ts +12 -7
  12. package/lib/animate-number/index.d.ts +48 -28
  13. package/lib/backtop/backtop.d.ts +27 -13
  14. package/lib/backtop/backtop.variable.css +6 -0
  15. package/lib/backtop/index.d.ts +108 -52
  16. package/lib/backtop/index.js +1 -1
  17. package/lib/badge/badge.d.ts +40 -19
  18. package/lib/badge/badge.variable.css +6 -0
  19. package/lib/badge/index.d.ts +144 -76
  20. package/lib/badge/index.js +1 -1
  21. package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
  22. package/lib/breadcrumb/breadcrumb.css +10 -1
  23. package/lib/breadcrumb/breadcrumb.d.ts +37 -9
  24. package/lib/breadcrumb/breadcrumb.less +13 -2
  25. package/lib/breadcrumb/breadcrumb.variable.css +16 -1
  26. package/lib/breadcrumb/index.d.ts +117 -45
  27. package/lib/breadcrumb/index.js +1 -1
  28. package/lib/button/button-group.d.ts +3 -5
  29. package/lib/button/button.d.ts +27 -22
  30. package/lib/button/button.variable.css +6 -0
  31. package/lib/button/index.d.ts +111 -93
  32. package/lib/button/index.js +1 -1
  33. package/lib/card/card.d.ts +30 -15
  34. package/lib/card/card.variable.css +6 -0
  35. package/lib/card/index.d.ts +120 -60
  36. package/lib/card/index.js +1 -1
  37. package/lib/checkbox/checkbox-group.d.ts +13 -9
  38. package/lib/checkbox/checkbox.d.ts +31 -22
  39. package/lib/checkbox/checkbox.variable.css +6 -0
  40. package/lib/checkbox/index.d.ts +137 -97
  41. package/lib/checkbox/index.js +1 -1
  42. package/lib/collapse/collapse.d.ts +50 -18
  43. package/lib/collapse/index.d.ts +108 -72
  44. package/lib/collapse/index.js +1 -1
  45. package/lib/components.d.ts +4 -0
  46. package/lib/date-picker/date-picker.d.ts +110 -63
  47. package/lib/date-picker/date-picker.variable.css +6 -0
  48. package/lib/date-picker/index.d.ts +437 -249
  49. package/lib/date-picker/index.js +1 -1
  50. package/lib/dialog/dialog.d.ts +46 -25
  51. package/lib/dialog/index.d.ts +179 -95
  52. package/lib/directives/index.js +1 -1
  53. package/lib/divider/divider.d.ts +21 -13
  54. package/lib/divider/divider.variable.css +6 -0
  55. package/lib/divider/index.d.ts +84 -52
  56. package/lib/dropdown/dropdown-item.d.ts +6 -5
  57. package/lib/dropdown/dropdown-menu.d.ts +6 -5
  58. package/lib/dropdown/dropdown.d.ts +25 -13
  59. package/lib/dropdown/dropdown.variable.css +6 -0
  60. package/lib/dropdown/index.d.ts +94 -62
  61. package/lib/exception/exception.d.ts +11 -9
  62. package/lib/exception/exception.variable.css +6 -0
  63. package/lib/exception/index.d.ts +44 -36
  64. package/lib/fixed-navbar/fixed-navbar.d.ts +15 -9
  65. package/lib/fixed-navbar/fixed-navbar.variable.css +6 -0
  66. package/lib/fixed-navbar/index.d.ts +60 -36
  67. package/lib/form/form-item.d.ts +46 -27
  68. package/lib/form/form.d.ts +21 -13
  69. package/lib/form/index.js +1 -1
  70. package/lib/icon/angle-double-left.js +15 -0
  71. package/lib/icon/angle-double-right.js +15 -0
  72. package/lib/icon/angle-down-fill.d.ts +4 -0
  73. package/lib/icon/angle-down-fill.js +15 -0
  74. package/lib/icon/angle-down-line.js +15 -0
  75. package/lib/icon/angle-down.js +15 -0
  76. package/lib/icon/angle-left.js +15 -0
  77. package/lib/icon/angle-right.js +15 -0
  78. package/lib/icon/angle-up-fill.d.ts +4 -0
  79. package/lib/icon/angle-up-fill.js +15 -0
  80. package/lib/icon/angle-up.js +15 -0
  81. package/lib/icon/arrows-left.d.ts +4 -0
  82. package/lib/icon/arrows-left.js +15 -0
  83. package/lib/icon/circle.js +15 -0
  84. package/lib/icon/close.js +15 -0
  85. package/lib/icon/code.js +15 -0
  86. package/lib/icon/cog-shape.js +15 -0
  87. package/lib/icon/collapse-left.js +15 -0
  88. package/lib/icon/copy.js +15 -0
  89. package/lib/icon/done.js +15 -0
  90. package/lib/icon/down-shape.js +15 -0
  91. package/lib/icon/down-small.js +15 -0
  92. package/lib/icon/error.js +15 -0
  93. package/lib/icon/eye.js +15 -0
  94. package/lib/icon/folder-open.js +15 -0
  95. package/lib/icon/folder-shape-open.js +15 -0
  96. package/lib/icon/folder-shape.js +15 -0
  97. package/lib/icon/folder.js +15 -0
  98. package/lib/icon/help-document-fill.js +15 -0
  99. package/lib/icon/help-fill.js +15 -0
  100. package/lib/icon/help.js +15 -0
  101. package/lib/icon/icon.js +15 -0
  102. package/lib/icon/index.d.ts +7 -3
  103. package/lib/icon/index.js +1 -1
  104. package/lib/icon/info-line.js +15 -0
  105. package/lib/icon/info.js +15 -0
  106. package/lib/icon/play-shape.js +15 -0
  107. package/lib/icon/plus.js +15 -0
  108. package/lib/icon/right-shape.js +15 -0
  109. package/lib/icon/search.js +15 -0
  110. package/lib/icon/share.js +15 -0
  111. package/lib/icon/spinner.d.ts +4 -0
  112. package/lib/icon/spinner.js +15 -0
  113. package/lib/icon/success.js +15 -0
  114. package/lib/icon/switcher-loading.js +15 -0
  115. package/lib/icon/text-file.js +15 -0
  116. package/lib/icon/tree-application-shape.js +15 -0
  117. package/lib/icon/unvisible.js +15 -0
  118. package/lib/icon/warn.js +15 -0
  119. package/lib/input/index.d.ts +251 -163
  120. package/lib/input/index.js +2 -2
  121. package/lib/input/input.css +1 -0
  122. package/lib/input/input.d.ts +62 -40
  123. package/lib/input/input.less +4 -3
  124. package/lib/input/input.variable.css +7 -0
  125. package/lib/link/index.d.ts +100 -52
  126. package/lib/link/link.d.ts +25 -13
  127. package/lib/link/link.variable.css +6 -0
  128. package/lib/loading/index.d.ts +64 -64
  129. package/lib/loading/index.js +1 -1
  130. package/lib/loading/loading.d.ts +16 -16
  131. package/lib/loading/loading.variable.css +6 -0
  132. package/lib/menu/index.d.ts +90 -71
  133. package/lib/menu/index.js +1 -1
  134. package/lib/menu/menu-group.d.ts +6 -5
  135. package/lib/menu/menu-item.d.ts +6 -5
  136. package/lib/menu/menu.d.ts +18 -14
  137. package/lib/menu/menu.variable.css +6 -0
  138. package/lib/menu/submenu.css +3 -0
  139. package/lib/menu/submenu.d.ts +6 -5
  140. package/lib/menu/submenu.less +1 -1
  141. package/lib/menu/submenu.variable.css +9 -0
  142. package/lib/message/index.js +1 -1
  143. package/lib/message/message.variable.css +6 -0
  144. package/lib/message/messageConstructor.d.ts +28 -16
  145. package/lib/modal/index.d.ts +92 -56
  146. package/lib/modal/index.js +1 -1
  147. package/lib/modal/modal.d.ts +24 -15
  148. package/lib/modal/props.mixin.d.ts +1 -1
  149. package/lib/navigation/index.js +1 -1
  150. package/lib/navigation/navigation-title.d.ts +10 -7
  151. package/lib/navigation/navigation.d.ts +40 -23
  152. package/lib/navigation/navigation.variable.css +6 -0
  153. package/lib/notify/index.js +1 -1
  154. package/lib/notify/notify.variable.css +6 -0
  155. package/lib/notify/notifyConstructor.d.ts +37 -21
  156. package/lib/popover/index.d.ts +219 -134
  157. package/lib/popover/index.js +1 -1
  158. package/lib/popover/popover.css +22 -13
  159. package/lib/popover/popover.d.ts +73 -44
  160. package/lib/popover/popover.less +55 -45
  161. package/lib/popover/popover.variable.css +28 -13
  162. package/lib/popover/props.d.ts +77 -0
  163. package/lib/process/index.d.ts +120 -60
  164. package/lib/process/index.js +1 -1
  165. package/lib/process/process.css +2 -3
  166. package/lib/process/process.d.ts +30 -15
  167. package/lib/process/process.less +2 -3
  168. package/lib/process/process.variable.css +8 -3
  169. package/lib/progress/index.d.ts +290 -120
  170. package/lib/progress/index.js +1 -1
  171. package/lib/progress/progress.css +0 -3
  172. package/lib/progress/progress.d.ts +84 -31
  173. package/lib/progress/progress.less +0 -4
  174. package/lib/progress/progress.variable.css +6 -3
  175. package/lib/radio/index.d.ts +127 -78
  176. package/lib/radio/index.js +1 -1
  177. package/lib/radio/radio-button.d.ts +24 -16
  178. package/lib/radio/radio-group.d.ts +11 -10
  179. package/lib/radio/radio.d.ts +23 -13
  180. package/lib/radio/radio.variable.css +6 -0
  181. package/lib/rate/index.d.ts +52 -40
  182. package/lib/rate/rate.d.ts +13 -10
  183. package/lib/rate/star.d.ts +32 -15
  184. package/lib/select/common.d.ts +10 -1
  185. package/lib/select/index.d.ts +515 -503
  186. package/lib/select/index.js +2 -2
  187. package/lib/select/option.d.ts +10 -17
  188. package/lib/select/optionGroup.d.ts +67 -52
  189. package/lib/select/select.css +71 -14
  190. package/lib/select/select.d.ts +136 -137
  191. package/lib/select/select.less +73 -14
  192. package/lib/select/select.variable.css +77 -14
  193. package/lib/shared/bk-helper-core.d.ts +6 -0
  194. package/lib/shared/bk-popover.d.ts +45 -4
  195. package/lib/shared/index.d.ts +10 -0
  196. package/lib/shared/index.js +1 -1
  197. package/lib/shared/utils.d.ts +6 -0
  198. package/lib/sideslider/index.d.ts +111 -63
  199. package/lib/sideslider/sideslider.d.ts +29 -17
  200. package/lib/sideslider/sideslider.variable.css +6 -0
  201. package/lib/slider/slider-button.d.ts +10 -7
  202. package/lib/slider/slider.d.ts +70 -40
  203. package/lib/slider/slider.variable.css +6 -0
  204. package/lib/steps/index.d.ts +156 -104
  205. package/lib/steps/index.js +1 -1
  206. package/lib/steps/steps.css +3 -0
  207. package/lib/steps/steps.d.ts +39 -26
  208. package/lib/steps/steps.less +4 -0
  209. package/lib/steps/steps.variable.css +9 -0
  210. package/lib/styles/index.d.ts +2 -0
  211. package/lib/styles/index.js +1 -1
  212. package/lib/styles/themes/themes.less +10 -0
  213. package/lib/switcher/index.d.ts +192 -128
  214. package/lib/switcher/index.js +1 -1
  215. package/lib/switcher/switcher.css +149 -135
  216. package/lib/switcher/switcher.d.ts +48 -32
  217. package/lib/switcher/switcher.less +210 -154
  218. package/lib/switcher/switcher.variable.css +155 -135
  219. package/lib/tab/index.d.ts +344 -208
  220. package/lib/tab/index.js +1 -1
  221. package/lib/tab/tab-nav.d.ts +74 -38
  222. package/lib/tab/tab-panel.d.ts +22 -20
  223. package/lib/tab/tab.d.ts +64 -32
  224. package/lib/tab/tab.variable.css +6 -0
  225. package/lib/table/const.d.ts +4 -0
  226. package/lib/table/index.d.ts +169 -70
  227. package/lib/table/index.js +1 -1
  228. package/lib/table/props.d.ts +56 -0
  229. package/lib/table/render.d.ts +19 -3
  230. package/lib/table/table.css +52 -13
  231. package/lib/table/table.d.ts +71 -12
  232. package/lib/table/table.less +62 -18
  233. package/lib/table/table.variable.css +60 -15
  234. package/lib/table/utils.d.ts +34 -1
  235. package/lib/tag/index.d.ts +10 -286
  236. package/lib/tag/tag.d.ts +2 -48
  237. package/lib/tag/tag.variable.css +6 -0
  238. package/lib/timeline/index.d.ts +129 -0
  239. package/lib/timeline/index.js +1 -0
  240. package/lib/timeline/timeline.css +235 -0
  241. package/lib/timeline/timeline.d.ts +81 -0
  242. package/lib/timeline/timeline.less +239 -0
  243. package/lib/timeline/timeline.variable.css +327 -0
  244. package/lib/tree/index.d.ts +148 -69
  245. package/lib/tree/index.js +1 -1
  246. package/lib/tree/props.d.ts +70 -0
  247. package/lib/tree/tree.css +16 -7
  248. package/lib/tree/tree.d.ts +51 -23
  249. package/lib/tree/tree.less +24 -24
  250. package/lib/tree/tree.variable.css +16 -7
  251. package/lib/tree/util.d.ts +3 -44
  252. package/lib/virtual-render/index.d.ts +556 -0
  253. package/lib/virtual-render/index.js +1 -0
  254. package/lib/virtual-render/props.d.ts +157 -0
  255. package/lib/virtual-render/v-virtual-render.d.ts +7 -0
  256. package/lib/virtual-render/virtual-render.css +40 -0
  257. package/lib/virtual-render/virtual-render.d.ts +244 -0
  258. package/lib/virtual-render/virtual-render.less +51 -0
  259. package/lib/virtual-render/virtual-render.variable.css +40 -0
  260. package/package.json +9 -7
@@ -47,24 +47,56 @@ declare const _default: import("vue").DefineComponent<{
47
47
  } & {
48
48
  default: boolean;
49
49
  };
50
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
51
- list?: unknown;
52
- idFiled?: unknown;
53
- titleField?: unknown;
54
- contentField?: unknown;
55
- activeIndex?: unknown;
56
- activeName?: unknown;
57
- accordion?: unknown;
58
- } & {
59
- list: any[];
60
- idFiled: string;
61
- titleField: string;
62
- contentField: string;
63
- accordion: boolean;
64
- } & {
65
- activeIndex?: number | number[];
66
- activeName?: string | string[];
67
- }> & {}, {
50
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
51
+ /**
52
+ * 渲染列表
53
+ * 对象数组或者字符串数组,字符串数组默认会增加 name 字段,值为传入的字符串值
54
+ */
55
+ list: import("vue-types").VueTypeDef<any[]> & {
56
+ default: () => any[];
57
+ };
58
+ /**
59
+ * ID字段
60
+ */
61
+ idFiled: import("vue-types").VueTypeValidableDef<string> & {
62
+ default: string;
63
+ } & {
64
+ default: string;
65
+ };
66
+ /**
67
+ * Title 字段
68
+ */
69
+ titleField: import("vue-types").VueTypeValidableDef<string> & {
70
+ default: string;
71
+ } & {
72
+ default: string;
73
+ };
74
+ /**
75
+ * Content 字段,默认渲染内容,不配置时自动读取 name字段
76
+ * 自定义配置slot时可以忽略
77
+ */
78
+ contentField: import("vue-types").VueTypeValidableDef<string> & {
79
+ default: string;
80
+ } & {
81
+ default: string;
82
+ };
83
+ /**
84
+ * 当前激活Index
85
+ */
86
+ activeIndex: import("vue-types").VueTypeDef<number | number[]>;
87
+ /**
88
+ * 当前激活 Name, 与activeIndex互斥,同时配置时, activeName 覆盖 activeIndex
89
+ */
90
+ activeName: import("vue-types").VueTypeDef<string | string[]>;
91
+ /**
92
+ * 是否使用手风琴效果
93
+ */
94
+ accordion: import("vue-types").VueTypeValidableDef<boolean> & {
95
+ default: boolean;
96
+ } & {
97
+ default: boolean;
98
+ };
99
+ }>>, {
68
100
  list: any[];
69
101
  idFiled: string;
70
102
  titleField: string;
@@ -8,24 +8,33 @@ declare const BkCollaspe: {
8
8
  titleField: string;
9
9
  contentField: string;
10
10
  accordion: boolean;
11
- }> & Omit<Readonly<{
12
- list?: unknown;
13
- idFiled?: unknown;
14
- titleField?: unknown;
15
- contentField?: unknown;
16
- activeIndex?: unknown;
17
- activeName?: unknown;
18
- accordion?: unknown;
19
- } & {
20
- list: any[];
21
- idFiled: string;
22
- titleField: string;
23
- contentField: string;
24
- accordion: boolean;
25
- } & {
26
- activeIndex?: number | number[];
27
- activeName?: string | string[];
28
- }> & {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "list" | "idFiled" | "titleField" | "contentField" | "accordion">;
11
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<{
12
+ list: import("vue-types").VueTypeDef<any[]> & {
13
+ default: () => any[];
14
+ };
15
+ idFiled: import("vue-types").VueTypeValidableDef<string> & {
16
+ default: string;
17
+ } & {
18
+ default: string;
19
+ };
20
+ titleField: import("vue-types").VueTypeValidableDef<string> & {
21
+ default: string;
22
+ } & {
23
+ default: string;
24
+ };
25
+ contentField: import("vue-types").VueTypeValidableDef<string> & {
26
+ default: string;
27
+ } & {
28
+ default: string;
29
+ };
30
+ activeIndex: import("vue-types").VueTypeDef<number | number[]>;
31
+ activeName: import("vue-types").VueTypeDef<string | string[]>;
32
+ accordion: import("vue-types").VueTypeValidableDef<boolean> & {
33
+ default: boolean;
34
+ } & {
35
+ default: boolean;
36
+ };
37
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "list" | "idFiled" | "titleField" | "contentField" | "accordion">;
29
38
  $attrs: {
30
39
  [x: string]: unknown;
31
40
  };
@@ -39,24 +48,33 @@ declare const BkCollaspe: {
39
48
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
40
49
  $emit: (event: string, ...args: any[]) => void;
41
50
  $el: any;
42
- $options: import("vue").ComponentOptionsBase<Readonly<{
43
- list?: unknown;
44
- idFiled?: unknown;
45
- titleField?: unknown;
46
- contentField?: unknown;
47
- activeIndex?: unknown;
48
- activeName?: unknown;
49
- accordion?: unknown;
50
- } & {
51
- list: any[];
52
- idFiled: string;
53
- titleField: string;
54
- contentField: string;
55
- accordion: boolean;
56
- } & {
57
- activeIndex?: number | number[];
58
- activeName?: string | string[];
59
- }> & {}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
51
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
52
+ list: import("vue-types").VueTypeDef<any[]> & {
53
+ default: () => any[];
54
+ };
55
+ idFiled: import("vue-types").VueTypeValidableDef<string> & {
56
+ default: string;
57
+ } & {
58
+ default: string;
59
+ };
60
+ titleField: import("vue-types").VueTypeValidableDef<string> & {
61
+ default: string;
62
+ } & {
63
+ default: string;
64
+ };
65
+ contentField: import("vue-types").VueTypeValidableDef<string> & {
66
+ default: string;
67
+ } & {
68
+ default: string;
69
+ };
70
+ activeIndex: import("vue-types").VueTypeDef<number | number[]>;
71
+ activeName: import("vue-types").VueTypeDef<string | string[]>;
72
+ accordion: import("vue-types").VueTypeValidableDef<boolean> & {
73
+ default: boolean;
74
+ } & {
75
+ default: boolean;
76
+ };
77
+ }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
60
78
  list: any[];
61
79
  idFiled: string;
62
80
  titleField: string;
@@ -82,45 +100,63 @@ declare const BkCollaspe: {
82
100
  $forceUpdate: () => void;
83
101
  $nextTick: typeof import("vue").nextTick;
84
102
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
85
- } & Readonly<{
86
- list?: unknown;
87
- idFiled?: unknown;
88
- titleField?: unknown;
89
- contentField?: unknown;
90
- activeIndex?: unknown;
91
- activeName?: unknown;
92
- accordion?: unknown;
93
- } & {
94
- list: any[];
95
- idFiled: string;
96
- titleField: string;
97
- contentField: string;
98
- accordion: boolean;
99
- } & {
100
- activeIndex?: number | number[];
101
- activeName?: string | string[];
102
- }> & {} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
103
+ } & Readonly<import("vue").ExtractPropTypes<{
104
+ list: import("vue-types").VueTypeDef<any[]> & {
105
+ default: () => any[];
106
+ };
107
+ idFiled: import("vue-types").VueTypeValidableDef<string> & {
108
+ default: string;
109
+ } & {
110
+ default: string;
111
+ };
112
+ titleField: import("vue-types").VueTypeValidableDef<string> & {
113
+ default: string;
114
+ } & {
115
+ default: string;
116
+ };
117
+ contentField: import("vue-types").VueTypeValidableDef<string> & {
118
+ default: string;
119
+ } & {
120
+ default: string;
121
+ };
122
+ activeIndex: import("vue-types").VueTypeDef<number | number[]>;
123
+ activeName: import("vue-types").VueTypeDef<string | string[]>;
124
+ accordion: import("vue-types").VueTypeValidableDef<boolean> & {
125
+ default: boolean;
126
+ } & {
127
+ default: boolean;
128
+ };
129
+ }>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
103
130
  __isFragment?: never;
104
131
  __isTeleport?: never;
105
132
  __isSuspense?: never;
106
- } & import("vue").ComponentOptionsBase<Readonly<{
107
- list?: unknown;
108
- idFiled?: unknown;
109
- titleField?: unknown;
110
- contentField?: unknown;
111
- activeIndex?: unknown;
112
- activeName?: unknown;
113
- accordion?: unknown;
114
- } & {
115
- list: any[];
116
- idFiled: string;
117
- titleField: string;
118
- contentField: string;
119
- accordion: boolean;
120
- } & {
121
- activeIndex?: number | number[];
122
- activeName?: string | string[];
123
- }> & {}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
133
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
134
+ list: import("vue-types").VueTypeDef<any[]> & {
135
+ default: () => any[];
136
+ };
137
+ idFiled: import("vue-types").VueTypeValidableDef<string> & {
138
+ default: string;
139
+ } & {
140
+ default: string;
141
+ };
142
+ titleField: import("vue-types").VueTypeValidableDef<string> & {
143
+ default: string;
144
+ } & {
145
+ default: string;
146
+ };
147
+ contentField: import("vue-types").VueTypeValidableDef<string> & {
148
+ default: string;
149
+ } & {
150
+ default: string;
151
+ };
152
+ activeIndex: import("vue-types").VueTypeDef<number | number[]>;
153
+ activeName: import("vue-types").VueTypeDef<string | string[]>;
154
+ accordion: import("vue-types").VueTypeValidableDef<boolean> & {
155
+ default: boolean;
156
+ } & {
157
+ default: boolean;
158
+ };
159
+ }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
124
160
  list: any[];
125
161
  idFiled: string;
126
162
  titleField: string;
@@ -1 +1 @@
1
- !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("vue"),require("../shared"),require("@bkui-vue/icon/")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","@bkui-vue/icon/"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared,e._)}(this,(function(e,n,t,o){"use strict";var i=n.defineComponent({name:"Collapse",props:{list:t.PropTypes.arrayOf(t.PropTypes.any).def([]),idFiled:t.PropTypes.string.def("$index"),titleField:t.PropTypes.string.def("name"),contentField:t.PropTypes.string.def("content"),activeIndex:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.number).def([]),t.PropTypes.number.def(-1)]),activeName:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.string).def([]),t.PropTypes.string.def("")]),accordion:t.PropTypes.bool.def(!0)},setup:function(e,t){var i=t.slots,r=n.ref(null);n.watch((function(){return[e.activeName,e.activeIndex]}),(function(){r.value=null}));var l=n.computed((function(){return(e.list||[]).map((function(e,n){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e?{$index:n,name:e}:Object.assign({$index:n},e)}))})),a=n.computed((function(){var n;return null!==r.value?r.value.map((function(e){return e.$index})):null!==e.activeName&&void 0!==e.activeName&&""!==e.activeName?u(e.activeName).map((function(n){return l.value.findIndex((function(t){return t[e.idFiled]===n}))})):u(null!==(n=e.activeIndex)&&void 0!==n?n:0)})),u=function n(t){return Array.isArray(t)?e.accordion?n(t[0]):t:"string"==typeof t||"number"==typeof t?[t]:[]},c=function(e){return a.value.some((function(n){return n===e.$index}))},d=function(){return l.value.map((function(t){var l,a,u,d;return n.createVNode("div",{class:"bk-collapse-item"},[n.createVNode("div",{class:"bk-collapse-header",onClick:function(){return function(n){if(null===r.value)r.value=[n];else if(e.accordion)r.value=[n];else{var t=r.value.findIndex((function(e){return e.$index===n.$index}));t>=0?r.value.splice(t,1):r.value.push(n)}}(t)}},[n.createVNode("span",{class:"bk-collapse-title"},[null!==(a=null===(l=i.default)||void 0===l?void 0:l.call(i))&&void 0!==a?a:t[e.titleField]]),c(t)?n.createVNode(o.AngleDown,{class:"bk-collapse-icon"},null):n.createVNode(o.AngleRight,{class:"bk-collapse-icon"},null)]),n.createVNode("div",{class:"bk-collapse-content ".concat(c(t)?"active":"")},[null!==(d=null===(u=i.content)||void 0===u?void 0:u.call(i,t))&&void 0!==d?d:t[e.contentField]])])}))};return function(){return n.createVNode("div",{class:"bk-collapse-wrapper"},[d()])}}}),r=t.withInstall(i);e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("vue"),require("../shared"),require("../icon/")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","../icon/"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared,e._)}(this,(function(e,n,t,o){"use strict";var i=n.defineComponent({name:"Collapse",props:{list:t.PropTypes.arrayOf(t.PropTypes.any).def([]),idFiled:t.PropTypes.string.def("$index"),titleField:t.PropTypes.string.def("name"),contentField:t.PropTypes.string.def("content"),activeIndex:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.number).def([]),t.PropTypes.number.def(-1)]),activeName:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.string).def([]),t.PropTypes.string.def("")]),accordion:t.PropTypes.bool.def(!0)},setup:function(e,t){var i=t.slots,r=n.ref(null);n.watch((function(){return[e.activeName,e.activeIndex]}),(function(){r.value=null}));var l=n.computed((function(){return(e.list||[]).map((function(e,n){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e?{$index:n,name:e}:Object.assign({$index:n},e)}))})),a=n.computed((function(){var n;return null!==r.value?r.value.map((function(e){return e.$index})):null!==e.activeName&&void 0!==e.activeName&&""!==e.activeName?u(e.activeName).map((function(n){return l.value.findIndex((function(t){return t[e.idFiled]===n}))})):u(null!==(n=e.activeIndex)&&void 0!==n?n:0)})),u=function n(t){return Array.isArray(t)?e.accordion?n(t[0]):t:"string"==typeof t||"number"==typeof t?[t]:[]},c=function(e){return a.value.some((function(n){return n===e.$index}))},d=function(){return l.value.map((function(t){var l,a,u,d;return n.createVNode("div",{class:"bk-collapse-item"},[n.createVNode("div",{class:"bk-collapse-header",onClick:function(){return function(n){if(null===r.value)r.value=[n];else if(e.accordion)r.value=[n];else{var t=r.value.findIndex((function(e){return e.$index===n.$index}));t>=0?r.value.splice(t,1):r.value.push(n)}}(t)}},[n.createVNode("span",{class:"bk-collapse-title"},[null!==(a=null===(l=i.default)||void 0===l?void 0:l.call(i))&&void 0!==a?a:t[e.titleField]]),c(t)?n.createVNode(o.AngleDown,{class:"bk-collapse-icon"},null):n.createVNode(o.AngleRight,{class:"bk-collapse-icon"},null)]),n.createVNode("div",{class:"bk-collapse-content ".concat(c(t)?"active":"")},[null!==(d=null===(u=i.content)||void 0===u?void 0:u.call(i,t))&&void 0!==d?d:t[e.contentField]])])}))};return function(){return n.createVNode("div",{class:"bk-collapse-wrapper"},[d()])}}}),r=t.withInstall(i);e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -24,8 +24,12 @@ export { default as Steps } from './steps';
24
24
  export { default as Switcher } from './switcher';
25
25
  export { default as Table } from './table';
26
26
  export { default as Tag } from './tag';
27
+ export { default as Divider } from './divider';
28
+ export { default as Tab, BKTabPanel as TabPanel } from './tab';
27
29
  export { default as Message } from './message';
28
30
  export { default as Notify } from './notify';
29
31
  export { default as Menu } from './menu';
30
32
  export { default as Navigation } from './navigation';
31
33
  export { default as DatePicker } from './date-picker';
34
+ export { default as Tree } from './tree';
35
+ export { default as VirtualRender } from './virtual-render';
@@ -244,13 +244,13 @@ declare const _default: import("vue").DefineComponent<{
244
244
  onPick: (_dates: any, visible: boolean, type: any, shortcut: any) => void;
245
245
  showClose: import("vue").Ref<boolean>;
246
246
  visible: import("vue").Ref<boolean>;
247
- internalValue: any;
247
+ internalValue: import("vue").Ref<any>;
248
248
  disableClickOutSide: import("vue").Ref<boolean>;
249
249
  disableCloseUnderTransfer: import("vue").Ref<boolean>;
250
250
  selectionMode: import("vue").Ref<SelectionModeType>;
251
251
  forceInputRerender: import("vue").Ref<number>;
252
252
  isFocused: import("vue").Ref<boolean>;
253
- focusedDate: any;
253
+ focusedDate: import("vue").Ref<any>;
254
254
  focusedTime: import("vue").Ref<{
255
255
  column: number;
256
256
  picker: number;
@@ -259,68 +259,115 @@ declare const _default: import("vue").DefineComponent<{
259
259
  }>;
260
260
  internalFocus: import("vue").Ref<boolean>;
261
261
  timeEnterMode: import("vue").Ref<boolean>;
262
- shortcut: any;
262
+ shortcut: import("vue").Ref<any>;
263
263
  onSelectionModeChange: import("vue").Ref<(_type: any) => SelectionModeType>;
264
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "change" | "clear" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change")[], "input" | "change" | "clear" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
265
- readonly type?: unknown;
266
- readonly extPopoverCls?: unknown;
267
- readonly format?: unknown;
268
- readonly readonly?: unknown;
269
- readonly disabled?: unknown;
270
- readonly editable?: unknown;
271
- readonly clearable?: unknown;
272
- readonly open?: unknown;
273
- readonly multiple?: unknown;
274
- readonly timePickerOptions?: unknown;
275
- readonly splitPanels?: unknown;
276
- readonly startDate?: unknown;
277
- readonly placeholder?: unknown;
278
- readonly placement?: unknown;
279
- readonly transfer?: unknown;
280
- readonly appendToBody?: unknown;
281
- readonly shortcuts?: unknown;
282
- readonly shortcutClose?: unknown;
283
- readonly modelValue?: unknown;
284
- readonly options?: unknown;
285
- readonly fontSize?: unknown;
286
- readonly upToNow?: unknown;
287
- readonly useShortcutText?: unknown;
288
- readonly shortcutSelectedIndex?: unknown;
289
- readonly footerSlotCls?: unknown;
290
- readonly allowCrossDay?: unknown;
291
- readonly behavior?: unknown;
292
- readonly disableDate?: unknown;
293
- } & {
294
- placement: import("@popperjs/core").ComputedPlacement;
295
- options: Record<string, any>;
296
- placeholder: string;
297
- multiple: boolean;
298
- disabled: boolean;
299
- type: PickerTypeType;
300
- extPopoverCls: string;
301
- readonly: boolean;
302
- editable: boolean;
303
- clearable: boolean;
304
- timePickerOptions: {};
305
- splitPanels: boolean;
306
- transfer: boolean;
307
- appendToBody: boolean;
308
- shortcuts: DatePickerShortcutsType;
309
- shortcutClose: boolean;
310
- fontSize: "large" | "normal" | "medium";
311
- upToNow: boolean;
312
- useShortcutText: boolean;
313
- shortcutSelectedIndex: number;
314
- footerSlotCls: string;
315
- allowCrossDay: boolean;
316
- behavior: "normal" | "simplicity";
317
- } & {
318
- open?: boolean;
319
- modelValue?: DatePickerValueType;
320
- format?: string;
321
- startDate?: Date;
322
- disableDate?: DisableDateType;
323
- }> & {
264
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "change" | "clear" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change")[], "input" | "change" | "clear" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
265
+ readonly type: {
266
+ readonly type: PropType<PickerTypeType>;
267
+ readonly default: "date";
268
+ readonly validator: (value: any) => boolean;
269
+ };
270
+ readonly extPopoverCls: {
271
+ readonly type: StringConstructor;
272
+ readonly default: "";
273
+ };
274
+ readonly format: StringConstructor;
275
+ readonly readonly: {
276
+ readonly type: BooleanConstructor;
277
+ readonly default: false;
278
+ };
279
+ readonly disabled: {
280
+ readonly type: BooleanConstructor;
281
+ readonly default: false;
282
+ };
283
+ readonly editable: {
284
+ readonly type: BooleanConstructor;
285
+ readonly default: true;
286
+ };
287
+ readonly clearable: {
288
+ readonly type: BooleanConstructor;
289
+ readonly default: true;
290
+ };
291
+ readonly open: {
292
+ readonly type: BooleanConstructor;
293
+ readonly default: any;
294
+ };
295
+ readonly multiple: {
296
+ readonly type: BooleanConstructor;
297
+ readonly default: false;
298
+ };
299
+ readonly timePickerOptions: {
300
+ readonly type: PropType<Record<string, any>>;
301
+ readonly default: () => {};
302
+ };
303
+ readonly splitPanels: {
304
+ readonly type: BooleanConstructor;
305
+ readonly default: true;
306
+ };
307
+ readonly startDate: DateConstructor;
308
+ readonly placeholder: {
309
+ readonly type: StringConstructor;
310
+ readonly default: "";
311
+ };
312
+ readonly placement: {
313
+ readonly type: PropType<import("@popperjs/core").ComputedPlacement>;
314
+ readonly default: "bottom-start";
315
+ readonly validator: (value: any) => boolean;
316
+ };
317
+ readonly transfer: {
318
+ readonly type: BooleanConstructor;
319
+ readonly default: false;
320
+ };
321
+ readonly appendToBody: {
322
+ readonly type: BooleanConstructor;
323
+ readonly default: false;
324
+ };
325
+ readonly shortcuts: {
326
+ readonly type: PropType<DatePickerShortcutsType>;
327
+ readonly default: () => any[];
328
+ };
329
+ readonly shortcutClose: {
330
+ readonly type: BooleanConstructor;
331
+ readonly default: false;
332
+ };
333
+ readonly modelValue: {
334
+ readonly type: PropType<DatePickerValueType>;
335
+ };
336
+ readonly options: {
337
+ readonly type: ObjectConstructor;
338
+ readonly default: () => {};
339
+ };
340
+ readonly fontSize: {
341
+ readonly type: PropType<"large" | "normal" | "medium">;
342
+ readonly default: "normal";
343
+ };
344
+ readonly upToNow: {
345
+ readonly type: BooleanConstructor;
346
+ readonly default: false;
347
+ };
348
+ readonly useShortcutText: {
349
+ readonly type: BooleanConstructor;
350
+ readonly default: false;
351
+ };
352
+ readonly shortcutSelectedIndex: {
353
+ readonly type: NumberConstructor;
354
+ readonly default: -1;
355
+ };
356
+ readonly footerSlotCls: {
357
+ readonly type: StringConstructor;
358
+ readonly default: "";
359
+ };
360
+ readonly allowCrossDay: {
361
+ readonly type: BooleanConstructor;
362
+ readonly default: false;
363
+ };
364
+ readonly behavior: {
365
+ readonly type: PropType<"normal" | "simplicity">;
366
+ readonly default: "normal";
367
+ readonly validator: (v: any) => boolean;
368
+ };
369
+ readonly disableDate: PropType<DisableDateType>;
370
+ }>> & {
324
371
  onChange?: (...args: any[]) => any;
325
372
  onInput?: (...args: any[]) => any;
326
373
  "onUpdate:modelValue"?: (...args: any[]) => any;
@@ -83,6 +83,12 @@
83
83
  --date-picker-disabled-bg: #fafbfd;
84
84
  --date-picker-dropdown-mb: 4px;
85
85
  --date-picker-dropdown-bg: #fff;
86
+ --table-bg-color: var(--white-color);
87
+ --table-border-color: #dcdee5;
88
+ --table-head-bg-color: #fafbfd;
89
+ --table-head-font-color: #313238;
90
+ --table-body-font-color: #575961;
91
+ --table-row-hover-bg-color: #f5f7fa;
86
92
  }
87
93
  .bk-date-picker {
88
94
  display: inline-block;