bkui-vue 0.0.1-beta.464 → 0.0.1-beta.465

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 (347) hide show
  1. package/dist/index.cjs.js +63 -67
  2. package/dist/index.esm.js +15197 -14527
  3. package/dist/index.umd.js +65 -69
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/affix.d.ts +1 -1
  7. package/lib/affix/index.d.ts +58 -34
  8. package/lib/alert/alert.d.ts +1 -1
  9. package/lib/alert/index.d.ts +60 -40
  10. package/lib/alert/index.js +1 -1
  11. package/lib/animate-number/animate-number.d.ts +3 -3
  12. package/lib/animate-number/index.d.ts +60 -27
  13. package/lib/backtop/backtop.d.ts +2 -2
  14. package/lib/backtop/index.d.ts +61 -43
  15. package/lib/badge/badge.d.ts +1 -1
  16. package/lib/badge/index.d.ts +63 -60
  17. package/lib/badge/index.js +1 -1
  18. package/lib/breadcrumb/breadcrumb-item.d.ts +1 -1
  19. package/lib/breadcrumb/breadcrumb.d.ts +2 -2
  20. package/lib/breadcrumb/index.d.ts +61 -39
  21. package/lib/button/button-group.d.ts +4 -4
  22. package/lib/button/button.d.ts +3 -3
  23. package/lib/button/index.d.ts +74 -68
  24. package/lib/button/index.js +1 -1
  25. package/lib/card/card.d.ts +1 -1
  26. package/lib/card/index.d.ts +63 -64
  27. package/lib/card/index.js +1 -1
  28. package/lib/cascader/cascader-panel.d.ts +1 -1
  29. package/lib/cascader/cascader.d.ts +2 -2
  30. package/lib/cascader/index.d.ts +81 -146
  31. package/lib/cascader/index.js +2 -1
  32. package/lib/cascader/index.js.LICENSE.txt +1 -0
  33. package/lib/checkbox/checkbox-group.d.ts +2 -2
  34. package/lib/checkbox/checkbox.d.ts +10 -10
  35. package/lib/checkbox/index.d.ts +76 -64
  36. package/lib/checkbox/index.js +1 -1
  37. package/lib/checkbox/type.d.ts +1 -1
  38. package/lib/code-diff/code-diff.d.ts +6 -6
  39. package/lib/code-diff/index.d.ts +30 -43
  40. package/lib/code-diff/index.js +1 -1
  41. package/lib/collapse/collapse-panel.d.ts +1 -1
  42. package/lib/collapse/collapse.d.ts +1 -1
  43. package/lib/collapse/index.d.ts +68 -74
  44. package/lib/collapse-transition/collapse-transition.d.ts +2 -2
  45. package/lib/color-picker/color-picker.d.ts +2 -2
  46. package/lib/color-picker/components/color-input.d.ts +2 -2
  47. package/lib/color-picker/components/hue-slider.d.ts +2 -2
  48. package/lib/color-picker/components/input-container.d.ts +2 -2
  49. package/lib/color-picker/components/recommend-colors.d.ts +2 -2
  50. package/lib/color-picker/components/saturation-panel.d.ts +2 -2
  51. package/lib/color-picker/index.d.ts +63 -62
  52. package/lib/color-picker/index.js +1 -1
  53. package/lib/config-provider/config-provider.d.ts +3 -3
  54. package/lib/config-provider/index.d.ts +175 -138
  55. package/lib/container/col.d.ts +2 -2
  56. package/lib/container/container.d.ts +2 -2
  57. package/lib/container/index.d.ts +29 -48
  58. package/lib/container/row.d.ts +2 -2
  59. package/lib/date-picker/base/confirm.d.ts +5 -5
  60. package/lib/date-picker/base/date-table.d.ts +3 -3
  61. package/lib/date-picker/base/month-table.d.ts +4 -4
  62. package/lib/date-picker/base/picker-dropdown.d.ts +4 -4
  63. package/lib/date-picker/base/time-spinner.d.ts +2 -2
  64. package/lib/date-picker/base/year-table.d.ts +4 -4
  65. package/lib/date-picker/date-picker.d.ts +37 -28
  66. package/lib/date-picker/index.d.ts +162 -209
  67. package/lib/date-picker/index.js +1 -1
  68. package/lib/date-picker/interface.d.ts +10 -10
  69. package/lib/date-picker/panel/date-range.d.ts +18 -15
  70. package/lib/date-picker/panel/date.d.ts +12 -12
  71. package/lib/date-picker/panel/time-range.d.ts +8 -2
  72. package/lib/date-picker/panel/time.d.ts +5 -2
  73. package/lib/date-picker/props.d.ts +3 -3
  74. package/lib/date-picker/time-picker.d.ts +11 -2
  75. package/lib/dialog/dialog.d.ts +2 -2
  76. package/lib/dialog/index.d.ts +90 -163
  77. package/lib/dialog/index.js +2 -1
  78. package/lib/dialog/index.js.LICENSE.txt +1 -0
  79. package/lib/divider/divider.d.ts +2 -2
  80. package/lib/divider/index.d.ts +61 -37
  81. package/lib/dropdown/dropdown-item.d.ts +1 -1
  82. package/lib/dropdown/dropdown-menu.d.ts +2 -2
  83. package/lib/dropdown/dropdown.d.ts +2 -2
  84. package/lib/dropdown/index.d.ts +66 -54
  85. package/lib/exception/exception.d.ts +2 -2
  86. package/lib/exception/index.d.ts +60 -29
  87. package/lib/exception/index.js +1 -1
  88. package/lib/exception/typings/index.d.ts +2 -2
  89. package/lib/fixed-navbar/fixed-navbar.d.ts +1 -1
  90. package/lib/fixed-navbar/index.d.ts +58 -34
  91. package/lib/form/compose-form-item.d.ts +2 -2
  92. package/lib/form/form-item.d.ts +3 -3
  93. package/lib/form/form.d.ts +3 -3
  94. package/lib/form/index.d.ts +62 -40
  95. package/lib/form/index.js +1 -1
  96. package/lib/icon/angle-double-down-line.js +1 -1
  97. package/lib/icon/angle-double-left-line.js +1 -1
  98. package/lib/icon/angle-double-left.js +1 -1
  99. package/lib/icon/angle-double-right-line.js +1 -1
  100. package/lib/icon/angle-double-right.js +1 -1
  101. package/lib/icon/angle-double-up-line.js +1 -1
  102. package/lib/icon/angle-down-fill.js +1 -1
  103. package/lib/icon/angle-down-line.js +1 -1
  104. package/lib/icon/angle-down.js +1 -1
  105. package/lib/icon/angle-left.js +1 -1
  106. package/lib/icon/angle-right.js +1 -1
  107. package/lib/icon/angle-up-fill.js +1 -1
  108. package/lib/icon/angle-up.js +1 -1
  109. package/lib/icon/archive-fill.js +1 -1
  110. package/lib/icon/arrows-left.js +1 -1
  111. package/lib/icon/arrows-right.js +1 -1
  112. package/lib/icon/audio-fill.js +1 -1
  113. package/lib/icon/bk.js +1 -1
  114. package/lib/icon/circle.js +1 -1
  115. package/lib/icon/close-line.js +1 -1
  116. package/lib/icon/close.js +1 -1
  117. package/lib/icon/code.js +1 -1
  118. package/lib/icon/cog-shape.js +1 -1
  119. package/lib/icon/collapse-left.js +1 -1
  120. package/lib/icon/copy-shape.js +1 -1
  121. package/lib/icon/copy.js +1 -1
  122. package/lib/icon/data-shape.js +1 -1
  123. package/lib/icon/del.js +1 -1
  124. package/lib/icon/doc-fill.js +1 -1
  125. package/lib/icon/done.js +1 -1
  126. package/lib/icon/down-shape.js +1 -1
  127. package/lib/icon/down-small.js +1 -1
  128. package/lib/icon/edit-line.js +1 -1
  129. package/lib/icon/ellipsis.js +1 -1
  130. package/lib/icon/enlarge-line.js +1 -1
  131. package/lib/icon/error.js +1 -1
  132. package/lib/icon/excel-fill.js +1 -1
  133. package/lib/icon/exclamation-circle-shape.js +1 -1
  134. package/lib/icon/eye.js +1 -1
  135. package/lib/icon/filliscreen-line.js +1 -1
  136. package/lib/icon/fix-line.js +1 -1
  137. package/lib/icon/fix-shape.js +1 -1
  138. package/lib/icon/folder-open.js +1 -1
  139. package/lib/icon/folder-shape-open.js +1 -1
  140. package/lib/icon/folder-shape.js +1 -1
  141. package/lib/icon/folder.js +1 -1
  142. package/lib/icon/funnel.js +1 -1
  143. package/lib/icon/help-document-fill.js +1 -1
  144. package/lib/icon/help-fill.js +1 -1
  145. package/lib/icon/help.js +1 -1
  146. package/lib/icon/image-fill.js +1 -1
  147. package/lib/icon/img-error.js +1 -1
  148. package/lib/icon/img-placehoulder.js +1 -1
  149. package/lib/icon/index.js +1 -1
  150. package/lib/icon/info-line.js +1 -1
  151. package/lib/icon/info.js +1 -1
  152. package/lib/icon/left-shape.js +1 -1
  153. package/lib/icon/left-turn-line.js +1 -1
  154. package/lib/icon/narrow-line.js +1 -1
  155. package/lib/icon/original.js +1 -1
  156. package/lib/icon/pdf-fill.js +1 -1
  157. package/lib/icon/play-shape.js +1 -1
  158. package/lib/icon/plus.js +1 -1
  159. package/lib/icon/ppt-fill.js +1 -1
  160. package/lib/icon/qq.js +1 -1
  161. package/lib/icon/right-shape.js +1 -1
  162. package/lib/icon/right-turn-line.js +1 -1
  163. package/lib/icon/search.js +1 -1
  164. package/lib/icon/share.js +1 -1
  165. package/lib/icon/spinner.js +1 -1
  166. package/lib/icon/success.js +1 -1
  167. package/lib/icon/switcher-loading.js +1 -1
  168. package/lib/icon/text-file.js +1 -1
  169. package/lib/icon/text-fill.js +1 -1
  170. package/lib/icon/transfer.js +1 -1
  171. package/lib/icon/tree-application-shape.js +1 -1
  172. package/lib/icon/unfull-screen.js +1 -1
  173. package/lib/icon/unvisible.js +1 -1
  174. package/lib/icon/up-shape.js +1 -1
  175. package/lib/icon/upload.js +1 -1
  176. package/lib/icon/video-fill.js +1 -1
  177. package/lib/icon/warn.js +1 -1
  178. package/lib/icon/weixin-pro.js +1 -1
  179. package/lib/icon/weixin.js +1 -1
  180. package/lib/image/image-viewer.d.ts +2 -2
  181. package/lib/image/image.d.ts +1 -1
  182. package/lib/image/index.d.ts +63 -57
  183. package/lib/info-box/index.d.ts +1 -1
  184. package/lib/info-box/index.js +2 -1
  185. package/lib/info-box/index.js.LICENSE.txt +1 -0
  186. package/lib/input/index.d.ts +82 -119
  187. package/lib/input/index.js +1 -1
  188. package/lib/input/input.d.ts +6 -6
  189. package/lib/link/index.d.ts +59 -40
  190. package/lib/link/link.d.ts +1 -1
  191. package/lib/loading/directive.d.ts +2 -2
  192. package/lib/loading/index.d.ts +67 -71
  193. package/lib/loading/index.js +1 -1
  194. package/lib/loading/loading.d.ts +3 -3
  195. package/lib/locale/lang/en.d.ts +1 -1
  196. package/lib/menu/index.d.ts +69 -32
  197. package/lib/menu/index.js +1 -1
  198. package/lib/menu/menu-group.d.ts +2 -2
  199. package/lib/menu/menu-item.d.ts +5 -1
  200. package/lib/menu/menu.d.ts +1 -1
  201. package/lib/menu/submenu.d.ts +5 -1
  202. package/lib/menu/utils.d.ts +1 -1
  203. package/lib/message/index.js +1 -1
  204. package/lib/message/messageConstructor.d.ts +5 -5
  205. package/lib/modal/index.d.ts +84 -123
  206. package/lib/modal/modal.d.ts +3 -3
  207. package/lib/navigation/index.d.ts +84 -65
  208. package/lib/navigation/index.js +1 -1
  209. package/lib/navigation/navigation-title.d.ts +6 -3
  210. package/lib/navigation/navigation.d.ts +10 -3
  211. package/lib/notify/index.js +1 -1
  212. package/lib/notify/notifyConstructor.d.ts +1 -1
  213. package/lib/overflow-title/components/overflow-title.d.ts +2 -2
  214. package/lib/overflow-title/index.d.ts +62 -37
  215. package/lib/overflow-title/props.d.ts +2 -2
  216. package/lib/pagination/index.d.ts +75 -94
  217. package/lib/pagination/index.js +1 -1
  218. package/lib/pagination/pagination.d.ts +6 -6
  219. package/lib/pagination/type.d.ts +1 -1
  220. package/lib/plugin-popover/index.js +1 -1
  221. package/lib/pop-confirm/index.d.ts +66 -63
  222. package/lib/pop-confirm/pop-confirm.d.ts +2 -2
  223. package/lib/popover/arrow.d.ts +1 -1
  224. package/lib/popover/content.d.ts +2 -2
  225. package/lib/popover/index.d.ts +82 -153
  226. package/lib/popover/index.js +1 -1
  227. package/lib/popover/plugin-popover.d.ts +1 -1
  228. package/lib/popover/popover.d.ts +1 -1
  229. package/lib/popover/props.d.ts +2 -2
  230. package/lib/popover/reference.d.ts +1 -1
  231. package/lib/popover/root.d.ts +2 -2
  232. package/lib/popover/use-floating.d.ts +3 -3
  233. package/lib/popover2/index.d.ts +55 -10
  234. package/lib/popover2/popover.d.ts +1 -1
  235. package/lib/process/index.d.ts +60 -46
  236. package/lib/process/index.js +2 -1
  237. package/lib/process/index.js.LICENSE.txt +1 -0
  238. package/lib/process/process.d.ts +2 -2
  239. package/lib/progress/index.d.ts +76 -103
  240. package/lib/progress/index.js +1 -1
  241. package/lib/progress/progress.d.ts +6 -6
  242. package/lib/radio/index.d.ts +63 -41
  243. package/lib/radio/index.js +1 -1
  244. package/lib/radio/radio-button.d.ts +5 -5
  245. package/lib/radio/radio-group.d.ts +2 -2
  246. package/lib/radio/radio.d.ts +2 -2
  247. package/lib/radio/type.d.ts +1 -1
  248. package/lib/rate/index.d.ts +61 -34
  249. package/lib/rate/rate.d.ts +3 -3
  250. package/lib/rate/star.d.ts +1 -1
  251. package/lib/resize-layout/index.d.ts +65 -66
  252. package/lib/resize-layout/index.js +1 -1
  253. package/lib/resize-layout/resize-layout.d.ts +1 -1
  254. package/lib/search-select/index.d.ts +70 -69
  255. package/lib/search-select/index.js +2 -1
  256. package/lib/search-select/index.js.LICENSE.txt +1 -0
  257. package/lib/search-select/input.d.ts +1 -1
  258. package/lib/search-select/menu.d.ts +1 -1
  259. package/lib/search-select/search-select.d.ts +2 -2
  260. package/lib/search-select/selected.d.ts +2 -2
  261. package/lib/search-select/utils.d.ts +4 -4
  262. package/lib/select/index.d.ts +296 -500
  263. package/lib/select/index.js +2 -1
  264. package/lib/select/index.js.LICENSE.txt +1 -0
  265. package/lib/select/option.d.ts +2 -2
  266. package/lib/select/optionGroup.d.ts +2 -2
  267. package/lib/select/select.d.ts +70 -60
  268. package/lib/select/selectTagInput.d.ts +2 -2
  269. package/lib/select/type.d.ts +3 -3
  270. package/lib/shared/index.d.ts +2 -2
  271. package/lib/shared/index.js +1 -1
  272. package/lib/shared/mask-manager.d.ts +2 -2
  273. package/lib/shared/popover.d.ts +1 -1
  274. package/lib/shared/vue-types.d.ts +7 -7
  275. package/lib/sideslider/index.d.ts +84 -125
  276. package/lib/sideslider/index.js +2 -1
  277. package/lib/sideslider/index.js.LICENSE.txt +1 -0
  278. package/lib/sideslider/sideslider.d.ts +3 -3
  279. package/lib/slider/index.d.ts +76 -106
  280. package/lib/slider/index.js +2 -1
  281. package/lib/slider/index.js.LICENSE.txt +1 -0
  282. package/lib/slider/slider-button.d.ts +1 -1
  283. package/lib/slider/slider.d.ts +3 -3
  284. package/lib/steps/index.d.ts +68 -62
  285. package/lib/steps/index.js +2 -1
  286. package/lib/steps/index.js.LICENSE.txt +1 -0
  287. package/lib/steps/steps.d.ts +5 -5
  288. package/lib/swiper/index.d.ts +60 -44
  289. package/lib/swiper/swiper.d.ts +1 -1
  290. package/lib/switcher/index.d.ts +72 -77
  291. package/lib/switcher/index.js +1 -1
  292. package/lib/switcher/switcher.d.ts +3 -3
  293. package/lib/tab/index.d.ts +81 -99
  294. package/lib/tab/index.js +1 -1
  295. package/lib/tab/props.d.ts +1 -1
  296. package/lib/tab/tab-nav.d.ts +2 -2
  297. package/lib/tab/tab-panel.d.ts +2 -2
  298. package/lib/tab/tab.d.ts +3 -3
  299. package/lib/table/components/table-cell.d.ts +2 -2
  300. package/lib/table/components/table-column.d.ts +18 -12
  301. package/lib/table/components/table-row.d.ts +1 -1
  302. package/lib/table/index.d.ts +213 -302
  303. package/lib/table/index.js +1 -1
  304. package/lib/table/plugins/body-empty.d.ts +1 -1
  305. package/lib/table/plugins/col-group.d.ts +2 -2
  306. package/lib/table/plugins/head-filter.d.ts +1 -1
  307. package/lib/table/plugins/head-sort.d.ts +1 -1
  308. package/lib/table/plugins/settings.d.ts +1 -1
  309. package/lib/table/plugins/use-active-columns.d.ts +3 -3
  310. package/lib/table/plugins/use-fixed-column.d.ts +3 -3
  311. package/lib/table/props.d.ts +19 -19
  312. package/lib/table/table.d.ts +6 -6
  313. package/lib/table/use-column.d.ts +4 -4
  314. package/lib/table/use-common.d.ts +1 -1
  315. package/lib/table-column/index.d.ts +113 -106
  316. package/lib/table-column/index.js +1 -1
  317. package/lib/tag/index.d.ts +68 -50
  318. package/lib/tag/index.js +1 -1
  319. package/lib/tag/tag.d.ts +5 -1
  320. package/lib/tag-input/index.d.ts +99 -311
  321. package/lib/tag-input/index.js +1 -1
  322. package/lib/tag-input/list-tag-render.d.ts +2 -2
  323. package/lib/tag-input/tag-input.d.ts +3 -3
  324. package/lib/tag-input/tag-props.d.ts +1 -1
  325. package/lib/tag-input/tag-render.d.ts +2 -2
  326. package/lib/time-picker/index.d.ts +116 -187
  327. package/lib/timeline/index.d.ts +57 -28
  328. package/lib/timeline/timeline.d.ts +2 -2
  329. package/lib/transfer/index.d.ts +67 -82
  330. package/lib/transfer/transfer.d.ts +1 -1
  331. package/lib/tree/index.d.ts +84 -146
  332. package/lib/tree/index.js +1 -1
  333. package/lib/tree/props.d.ts +4 -4
  334. package/lib/tree/tree.d.ts +3 -3
  335. package/lib/upload/index.d.ts +93 -150
  336. package/lib/upload/index.js +2 -1
  337. package/lib/upload/index.js.LICENSE.txt +1 -0
  338. package/lib/upload/upload-list.d.ts +1 -1
  339. package/lib/upload/upload-trigger.d.ts +1 -1
  340. package/lib/upload/upload.d.ts +4 -4
  341. package/lib/upload/upload.type.d.ts +12 -12
  342. package/lib/upload/use-file-handler.d.ts +1 -24
  343. package/lib/virtual-render/index.d.ts +64 -160
  344. package/lib/virtual-render/index.js +1 -1
  345. package/lib/virtual-render/props.d.ts +1 -1
  346. package/lib/virtual-render/virtual-render.d.ts +16 -3
  347. package/package.json +38 -37
@@ -3,61 +3,67 @@ declare const BkButton: {
3
3
  new (...args: any[]): {
4
4
  $: import("vue").ComponentInternalInstance;
5
5
  $data: {};
6
- $props: Partial<{
7
- title: string;
8
- text: boolean;
9
- disabled: boolean;
10
- size: "" | "small" | "large";
11
- icon: string;
12
- outline: boolean;
13
- loading: boolean;
14
- iconRight: string;
15
- loadingMode: "default" | "spin";
16
- selected: boolean;
17
- nativeType: "reset" | "submit" | "button";
18
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
19
- theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
20
- hoverTheme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
21
- size: {
22
- type: import("vue").PropType<"" | "small" | "large">;
23
- default: "";
24
- };
25
- title: import("vue-types").VueTypeValidableDef<string> & {
26
- default: string;
27
- };
28
- icon: import("vue-types").VueTypeValidableDef<string> & {
29
- default: string;
30
- };
31
- iconRight: import("vue-types").VueTypeValidableDef<string> & {
32
- default: string;
33
- };
34
- disabled: import("vue-types").VueTypeValidableDef<boolean> & {
35
- default: boolean;
36
- };
37
- loading: import("vue-types").VueTypeValidableDef<boolean> & {
38
- default: boolean;
39
- };
40
- loadingMode: {
41
- type: import("vue").PropType<"default" | "spin">;
42
- default: string;
43
- };
44
- outline: import("vue-types").VueTypeValidableDef<boolean> & {
45
- default: boolean;
46
- };
47
- text: import("vue-types").VueTypeValidableDef<boolean> & {
48
- default: boolean;
49
- };
50
- selected: import("vue-types").VueTypeValidableDef<boolean> & {
51
- default: boolean;
52
- };
53
- nativeType: {
54
- type: ((new (...args: any[]) => ("reset" | "submit" | "button") & {}) | (() => "reset" | "submit" | "button")) | ((new (...args: any[]) => ("reset" | "submit" | "button") & {}) | (() => "reset" | "submit" | "button"))[];
55
- default: string;
56
- };
57
- }>> & {
6
+ $props: {
7
+ title?: string;
8
+ text?: boolean;
9
+ disabled?: boolean;
10
+ size?: "" | "small" | "large";
11
+ icon?: string;
12
+ outline?: boolean;
13
+ loading?: boolean;
14
+ iconRight?: string;
15
+ loadingMode?: "default" | "spin";
16
+ selected?: boolean;
17
+ nativeType?: "reset" | "submit" | "button";
18
+ class?: unknown;
19
+ style?: unknown;
58
20
  onClick?: (...args: any[]) => any;
59
21
  onMouseover?: (...args: any[]) => any;
60
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "text" | "disabled" | "size" | "icon" | "outline" | "loading" | "iconRight" | "loadingMode" | "selected" | "nativeType">;
22
+ readonly theme?: "success" | "warning" | "danger" | "primary";
23
+ key?: string | number | symbol;
24
+ ref?: import("vue").VNodeRef;
25
+ ref_for?: boolean;
26
+ ref_key?: string;
27
+ onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
28
+ [key: string]: any;
29
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
30
+ [key: string]: any;
31
+ }>) => void)[];
32
+ onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
33
+ [key: string]: any;
34
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
35
+ [key: string]: any;
36
+ }>) => void)[];
37
+ onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
38
+ [key: string]: any;
39
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
40
+ [key: string]: any;
41
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
42
+ [key: string]: any;
43
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
44
+ [key: string]: any;
45
+ }>) => void)[];
46
+ onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
+ [key: string]: any;
48
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
49
+ [key: string]: any;
50
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
51
+ [key: string]: any;
52
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
53
+ [key: string]: any;
54
+ }>) => void)[];
55
+ onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
56
+ [key: string]: any;
57
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
58
+ [key: string]: any;
59
+ }>) => void)[];
60
+ onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
61
+ [key: string]: any;
62
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
63
+ [key: string]: any;
64
+ }>) => void)[];
65
+ readonly hoverTheme?: "success" | "warning" | "danger" | "primary";
66
+ };
61
67
  $attrs: {
62
68
  [x: string]: unknown;
63
69
  };
@@ -65,10 +71,10 @@ declare const BkButton: {
65
71
  [x: string]: unknown;
66
72
  };
67
73
  $slots: Readonly<{
68
- [name: string]: import("vue").Slot;
74
+ [name: string]: import("vue").Slot<any>;
69
75
  }>;
70
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
71
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
76
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
77
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
72
78
  $emit: (event: "click" | "mouseover", ...args: any[]) => void;
73
79
  $el: any;
74
80
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
@@ -107,7 +113,7 @@ declare const BkButton: {
107
113
  default: boolean;
108
114
  };
109
115
  nativeType: {
110
- type: ((new (...args: any[]) => ("reset" | "submit" | "button") & {}) | (() => "reset" | "submit" | "button")) | ((new (...args: any[]) => ("reset" | "submit" | "button") & {}) | (() => "reset" | "submit" | "button"))[];
116
+ type: ((new (...args: any[]) => "reset" | "submit" | "button") | (() => "reset" | "submit" | "button")) | ((new (...args: any[]) => "reset" | "submit" | "button") | (() => "reset" | "submit" | "button"))[];
111
117
  default: string;
112
118
  };
113
119
  }>> & {
@@ -125,7 +131,7 @@ declare const BkButton: {
125
131
  loadingMode: "default" | "spin";
126
132
  selected: boolean;
127
133
  nativeType: "reset" | "submit" | "button";
128
- }> & {
134
+ }, {}, string, {}> & {
129
135
  beforeCreate?: (() => void) | (() => void)[];
130
136
  created?: (() => void) | (() => void)[];
131
137
  beforeMount?: (() => void) | (() => void)[];
@@ -140,11 +146,11 @@ declare const BkButton: {
140
146
  unmounted?: (() => void) | (() => void)[];
141
147
  renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
142
148
  renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
143
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
149
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
144
150
  };
145
151
  $forceUpdate: () => void;
146
152
  $nextTick: typeof import("vue").nextTick;
147
- $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
153
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
148
154
  } & Readonly<import("vue").ExtractPropTypes<{
149
155
  theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
150
156
  hoverTheme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
@@ -181,13 +187,13 @@ declare const BkButton: {
181
187
  default: boolean;
182
188
  };
183
189
  nativeType: {
184
- type: ((new (...args: any[]) => ("reset" | "submit" | "button") & {}) | (() => "reset" | "submit" | "button")) | ((new (...args: any[]) => ("reset" | "submit" | "button") & {}) | (() => "reset" | "submit" | "button"))[];
190
+ type: ((new (...args: any[]) => "reset" | "submit" | "button") | (() => "reset" | "submit" | "button")) | ((new (...args: any[]) => "reset" | "submit" | "button") | (() => "reset" | "submit" | "button"))[];
185
191
  default: string;
186
192
  };
187
193
  }>> & {
188
194
  onClick?: (...args: any[]) => any;
189
195
  onMouseover?: (...args: any[]) => any;
190
- } & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
196
+ } & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
191
197
  __isFragment?: never;
192
198
  __isTeleport?: never;
193
199
  __isSuspense?: never;
@@ -227,7 +233,7 @@ declare const BkButton: {
227
233
  default: boolean;
228
234
  };
229
235
  nativeType: {
230
- type: ((new (...args: any[]) => ("reset" | "submit" | "button") & {}) | (() => "reset" | "submit" | "button")) | ((new (...args: any[]) => ("reset" | "submit" | "button") & {}) | (() => "reset" | "submit" | "button"))[];
236
+ type: ((new (...args: any[]) => "reset" | "submit" | "button") | (() => "reset" | "submit" | "button")) | ((new (...args: any[]) => "reset" | "submit" | "button") | (() => "reset" | "submit" | "button"))[];
231
237
  default: string;
232
238
  };
233
239
  }>> & {
@@ -245,12 +251,12 @@ declare const BkButton: {
245
251
  loadingMode: "default" | "spin";
246
252
  selected: boolean;
247
253
  nativeType: "reset" | "submit" | "button";
248
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & Readonly<{
254
+ }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]> & Readonly<{
249
255
  ButtonGroup: import("vue").DefineComponent<{
250
- size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
251
- }, () => 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<{
252
- size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
253
- }>>, {}>;
256
+ size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
257
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
258
+ size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
259
+ }>>, {}, {}>;
254
260
  }>;
255
261
  export default BkButton;
256
262
  export { ButtonGroup as BkButtonGroup, BkButton, };
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../loading"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../loading"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../loading")):t(e["../shared"],e.vue,e["../loading"]);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t,o)=>(()=>{"use strict";var r={4870:e=>{e.exports=o},4212:t=>{t.exports=e},748:e=>{e.exports=t}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return(()=>{i.r(u),i.d(u,{BkButton:()=>c,BkButtonGroup:()=>d,default:()=>p});var e=i(4212);function t(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var o=i(748),r=i(4870),n=i.n(r),a=["","small","large"],l={theme:e.PropTypes.theme(),hoverTheme:e.PropTypes.theme(),size:{type:String,default:a[0]},title:e.PropTypes.string,icon:e.PropTypes.string,iconRight:e.PropTypes.string,disabled:e.PropTypes.bool,loading:e.PropTypes.bool,loadingMode:{type:String,default:"default"},outline:e.PropTypes.bool,text:e.PropTypes.bool,selected:e.PropTypes.bool,nativeType:{type:String,default:"button"}};const s=(0,o.defineComponent)({name:"Button",props:l,emits:["click","mouseover"],setup:function(i,u){var l,s=u.slots,d=u.emit,c=(0,o.ref)(!1),p=null!==(l=s.default)&&void 0!==l&&l,v="bk-button",f=(0,o.computed)((function(){return i.text&&!i.hoverTheme})),m=(0,o.computed)((function(){var o,r=i.hoverTheme?"".concat(v,"-hover-").concat(i.hoverTheme):"",n=i.theme?"".concat(v,"-").concat(i.theme):"",u=i.hoverTheme?"":n;return(0,e.classes)((t(o={"is-disabled":i.disabled,"is-outline":i.outline,"is-text":f.value,"is-loading":i.loading,"is-selected":i.selected},"".concat(v,"-").concat(i.size),i.size&&a.includes(i.size)),t(o,"no-slot",!p),o),"".concat(u," ").concat(v," ").concat(r))})),b=(0,o.computed)((function(){if(i.text||i.outline||i.hoverTheme){if(c.value&&!i.text)return"white";if(i.text&&i.disabled)return;return i.hoverTheme||i.theme}return i.theme?"white":void 0})),g=(0,o.computed)((function(){return f.value||i.size===r.BkLoadingSize.Small?r.BkLoadingSize.Mini:r.BkLoadingSize.Small})),h=function(e){i.loading||d("click",e)},y=function(e){c.value=!0,d("mouseover",e)},T=function(){c.value=!1};return function(){var e;return(0,o.createVNode)("button",{title:i.title,disabled:i.disabled,class:m.value,type:i.nativeType,onClick:h,onMouseover:y,onMouseleave:T},[i.loading&&(0,o.createVNode)(n(),(0,o.mergeProps)({loading:!0,class:"".concat(v,"-loading"),mode:i.loadingMode,size:g.value},b.value?{theme:b.value}:{}),null),s.default&&(0,o.createVNode)("span",{class:"".concat(v,"-text")},[null===(e=s.default)||void 0===e?void 0:e.call(s)])])}}}),d=(0,o.defineComponent)({name:"ButtonGroup",props:{size:e.PropTypes.size()},setup:function(r,n){var i=(0,o.computed)((function(){return(0,e.classes)(t({},"bk-button-group-".concat(r.size),!!r.size),"bk-button-group")}));return function(){var e,t;return(0,o.createVNode)("div",{class:i.value},[null===(t=(e=n.slots).default)||void 0===t?void 0:t.call(e)])}}});var c=(0,e.withInstallProps)(s,{ButtonGroup:d});const p=c})(),u})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../loading"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../loading"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../loading")):t(e["../shared"],e.vue,e["../loading"]);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t,o)=>(()=>{"use strict";var r={4870:e=>{e.exports=o},4212:t=>{t.exports=e},748:e=>{e.exports=t}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return(()=>{i.r(u),i.d(u,{BkButton:()=>p,BkButtonGroup:()=>d,default:()=>f});var e=i(4212);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function o(e,o,r){return(o=function(e){var o=function(e,o){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===t(o)?o:String(o)}(o))in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}var r=i(748),n=i(4870),l=i.n(n),a=["","small","large"],s={theme:e.PropTypes.theme(),hoverTheme:e.PropTypes.theme(),size:{type:String,default:a[0]},title:e.PropTypes.string,icon:e.PropTypes.string,iconRight:e.PropTypes.string,disabled:e.PropTypes.bool,loading:e.PropTypes.bool,loadingMode:{type:String,default:"default"},outline:e.PropTypes.bool,text:e.PropTypes.bool,selected:e.PropTypes.bool,nativeType:{type:String,default:"button"}};const c=(0,r.defineComponent)({name:"Button",props:s,emits:["click","mouseover"],setup:function(t,i){var u,s=i.slots,c=i.emit,d=(0,r.ref)(!1),p=null!==(u=s.default)&&void 0!==u&&u,f="bk-button",v=(0,r.computed)((function(){return t.text&&!t.hoverTheme})),m=(0,r.computed)((function(){var r,n=t.hoverTheme?"".concat(f,"-hover-").concat(t.hoverTheme):"",i=t.theme?"".concat(f,"-").concat(t.theme):"",u=t.hoverTheme?"":i;return(0,e.classes)((o(r={"is-disabled":t.disabled,"is-outline":t.outline,"is-text":v.value,"is-loading":t.loading,"is-selected":t.selected},"".concat(f,"-").concat(t.size),t.size&&a.includes(t.size)),o(r,"no-slot",!p),r),"".concat(u," ").concat(f," ").concat(n))})),y=(0,r.computed)((function(){if(t.text||t.outline||t.hoverTheme){if(d.value&&!t.text)return"white";if(t.text&&t.disabled)return;return t.hoverTheme||t.theme}return t.theme?"white":void 0})),b=(0,r.computed)((function(){return v.value||t.size===n.BkLoadingSize.Small?n.BkLoadingSize.Mini:n.BkLoadingSize.Small})),g=function(e){t.loading||c("click",e)},h=function(e){d.value=!0,c("mouseover",e)},T=function(){d.value=!1};return function(){var e;return(0,r.createVNode)("button",{title:t.title,disabled:t.disabled,class:m.value,type:t.nativeType,onClick:g,onMouseover:h,onMouseleave:T},[t.loading&&(0,r.createVNode)(l(),(0,r.mergeProps)({loading:!0,class:"".concat(f,"-loading"),mode:t.loadingMode,size:b.value},y.value?{theme:y.value}:{}),null),s.default&&(0,r.createVNode)("span",{class:"".concat(f,"-text")},[null===(e=s.default)||void 0===e?void 0:e.call(s)])])}}}),d=(0,r.defineComponent)({name:"ButtonGroup",props:{size:e.PropTypes.size()},setup:function(t,n){var i=(0,r.computed)((function(){return(0,e.classes)(o({},"bk-button-group-".concat(t.size),!!t.size),"bk-button-group")}));return function(){var e,t;return(0,r.createVNode)("div",{class:i.value},[null===(t=(e=n.slots).default)||void 0===t?void 0:t.call(e)])}}});var p=(0,e.withInstallProps)(c,{ButtonGroup:d});const f=p})(),u})()));
@@ -106,5 +106,5 @@ declare const _default: import("vue").DefineComponent<{
106
106
  disableHeaderStyle: boolean;
107
107
  isEdit: boolean;
108
108
  isCollapse: boolean;
109
- }>;
109
+ }, {}>;
110
110
  export default _default;
@@ -2,64 +2,63 @@ declare const BkCard: {
2
2
  new (...args: any[]): {
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
- $props: Partial<{
6
- title: string;
7
- position: string;
8
- border: boolean;
9
- showHeader: boolean;
10
- showFooter: boolean;
11
- collapseStatus: boolean;
12
- disableHeaderStyle: boolean;
13
- isEdit: boolean;
14
- isCollapse: boolean;
15
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
16
- title: import("vue-types").VueTypeValidableDef<string> & {
17
- default: string;
18
- };
19
- showHeader: import("vue-types").VueTypeValidableDef<boolean> & {
20
- default: boolean;
21
- } & {
22
- default: boolean;
23
- };
24
- showFooter: import("vue-types").VueTypeValidableDef<boolean> & {
25
- default: boolean;
26
- } & {
27
- default: boolean;
28
- };
29
- collapseStatus: import("vue-types").VueTypeValidableDef<boolean> & {
30
- default: boolean;
31
- } & {
32
- default: boolean;
33
- };
34
- border: import("vue-types").VueTypeValidableDef<boolean> & {
35
- default: boolean;
36
- } & {
37
- default: boolean;
38
- };
39
- disableHeaderStyle: import("vue-types").VueTypeValidableDef<boolean> & {
40
- default: boolean;
41
- } & {
42
- default: boolean;
43
- };
44
- position: import("vue-types").VueTypeValidableDef<string> & {
45
- default: string;
46
- } & {
47
- default: string;
48
- };
49
- isEdit: import("vue-types").VueTypeValidableDef<boolean> & {
50
- default: boolean;
51
- } & {
52
- default: boolean;
53
- };
54
- isCollapse: import("vue-types").VueTypeValidableDef<boolean> & {
55
- default: boolean;
56
- } & {
57
- default: boolean;
58
- };
59
- }>> & {
5
+ $props: {
6
+ title?: string;
7
+ position?: string;
8
+ border?: boolean;
9
+ showHeader?: boolean;
10
+ showFooter?: boolean;
11
+ collapseStatus?: boolean;
12
+ disableHeaderStyle?: boolean;
13
+ isEdit?: boolean;
14
+ isCollapse?: boolean;
15
+ class?: unknown;
16
+ style?: unknown;
17
+ key?: string | number | symbol;
18
+ ref?: import("vue").VNodeRef;
19
+ ref_for?: boolean;
20
+ ref_key?: string;
21
+ onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
22
+ [key: string]: any;
23
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
24
+ [key: string]: any;
25
+ }>) => void)[];
26
+ onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
27
+ [key: string]: any;
28
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
29
+ [key: string]: any;
30
+ }>) => void)[];
31
+ onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
32
+ [key: string]: any;
33
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
34
+ [key: string]: any;
35
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
36
+ [key: string]: any;
37
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
38
+ [key: string]: any;
39
+ }>) => void)[];
40
+ onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
41
+ [key: string]: any;
42
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
43
+ [key: string]: any;
44
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
+ [key: string]: any;
46
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
+ [key: string]: any;
48
+ }>) => void)[];
49
+ onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
50
+ [key: string]: any;
51
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
52
+ [key: string]: any;
53
+ }>) => void)[];
54
+ onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
55
+ [key: string]: any;
56
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
57
+ [key: string]: any;
58
+ }>) => void)[];
60
59
  "onUpdate:collapseStatus"?: (...args: any[]) => any;
61
60
  onEdit?: (...args: any[]) => any;
62
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "position" | "border" | "showHeader" | "showFooter" | "collapseStatus" | "disableHeaderStyle" | "isEdit" | "isCollapse">;
61
+ };
63
62
  $attrs: {
64
63
  [x: string]: unknown;
65
64
  };
@@ -67,10 +66,10 @@ declare const BkCard: {
67
66
  [x: string]: unknown;
68
67
  };
69
68
  $slots: Readonly<{
70
- [name: string]: import("vue").Slot;
69
+ [name: string]: import("vue").Slot<any>;
71
70
  }>;
72
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
73
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
71
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
72
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
74
73
  $emit: (event: "update:collapseStatus" | "edit", ...args: any[]) => void;
75
74
  $el: any;
76
75
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
@@ -137,7 +136,7 @@ declare const BkCard: {
137
136
  disableHeaderStyle: boolean;
138
137
  isEdit: boolean;
139
138
  isCollapse: boolean;
140
- }> & {
139
+ }, {}, string, {}> & {
141
140
  beforeCreate?: (() => void) | (() => void)[];
142
141
  created?: (() => void) | (() => void)[];
143
142
  beforeMount?: (() => void) | (() => void)[];
@@ -152,11 +151,11 @@ declare const BkCard: {
152
151
  unmounted?: (() => void) | (() => void)[];
153
152
  renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
154
153
  renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
155
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
154
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
156
155
  };
157
156
  $forceUpdate: () => void;
158
157
  $nextTick: typeof import("vue").nextTick;
159
- $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
158
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
160
159
  } & Readonly<import("vue").ExtractPropTypes<{
161
160
  title: import("vue-types").VueTypeValidableDef<string> & {
162
161
  default: string;
@@ -211,7 +210,7 @@ declare const BkCard: {
211
210
  handleCollapse: () => void;
212
211
  saveEdit: () => void;
213
212
  clickEdit: () => void;
214
- }> & {} & {} & import("vue").ComponentCustomProperties;
213
+ }> & {} & import("vue").ComponentCustomProperties & {};
215
214
  __isFragment?: never;
216
215
  __isTeleport?: never;
217
216
  __isSuspense?: never;
@@ -279,5 +278,5 @@ declare const BkCard: {
279
278
  disableHeaderStyle: boolean;
280
279
  isEdit: boolean;
281
280
  isCollapse: boolean;
282
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
281
+ }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
283
282
  export default BkCard;
package/lib/card/index.js CHANGED
@@ -1 +1 @@
1
- !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"),require("../collapse-transition"),require("../icon"),require("../input"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../collapse-transition","../icon","../input"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue"),require("../collapse-transition"),require("../icon"),require("../input")):o(e["../shared"],e.vue,e["../collapse-transition"],e["../icon"],e["../input"]);for(var r in t)("object"==typeof exports?exports:e)[r]=t[r]}}(self,((e,o,t,r,l)=>(()=>{"use strict";var i={9891:e=>{e.exports=t},6870:e=>{e.exports=r},8133:e=>{e.exports=l},4212:o=>{o.exports=e},748:e=>{e.exports=o}},s={};function n(e){var o=s[e];if(void 0!==o)return o.exports;var t=s[e]={exports:{}};return i[e](t,t.exports,n),t.exports}n.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return n.d(o,{a:o}),o},n.d=(e,o)=>{for(var t in o)n.o(o,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{n.r(a),n.d(a,{default:()=>p});var e=n(4212);function o(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var t=n(748),r=n(9891),l=n.n(r),i=n(6870),s=n(8133),c=n.n(s);const d=(0,t.defineComponent)({name:"Card",props:{title:e.PropTypes.string,showHeader:e.PropTypes.bool.def(!0),showFooter:e.PropTypes.bool.def(!1),collapseStatus:e.PropTypes.bool.def(!0),border:e.PropTypes.bool.def(!0),disableHeaderStyle:e.PropTypes.bool.def(!1),position:e.PropTypes.string.def("left"),isEdit:e.PropTypes.bool.def(!1),isCollapse:e.PropTypes.bool.def(!1)},emits:["update:collapseStatus","edit"],setup:function(e,o){var r=o.emit,l=(0,t.ref)(!0),i=(0,t.ref)(!1),s=(0,t.ref)("");return(0,t.watch)((function(){return e.collapseStatus}),(function(o){e.isCollapse&&(l.value=o)}),{immediate:!0}),(0,t.watch)((function(){return e.title}),(function(e){s.value=e}),{immediate:!0}),{collapseActive:l,showInput:i,renderTitle:s,handleCollapse:function(){e.isCollapse&&(l.value=!l.value,r("update:collapseStatus",l.value))},saveEdit:function(){i.value=!i.value,r("edit",s)},clickEdit:function(){i.value=!i.value}}},render:function(){var r,s,n,a,d,p,u,f,v,h,b,y,m,T,w=this,x="bk-card",P=(0,e.classes)((o(r={},"".concat(x),!0),o(r,"".concat(x,"-border-none"),!this.$props.border),r),""),V=(0,e.classes)((o(s={},"".concat(x,"-head"),!0),o(s,"".concat(x,"-head-").concat(this.$props.position),this.$props.isCollapse&&this.$props.position),o(s,"no-line-height",this.$props.disableHeaderStyle),o(s,"collapse",!this.collapseActive),s),""),$=(0,t.createVNode)("div",{class:"title",title:this.renderTitle},[this.showInput?(0,t.createVNode)(c(),{class:"".concat(x,"-input"),modelValue:w.renderTitle,"onUpdate:modelValue":function(e){return w.renderTitle=e},onBlur:this.saveEdit},null):this.renderTitle]),g=(0,t.createVNode)("span",{class:"".concat(x,"-icon"),onClick:this.handleCollapse},[this.collapseActive?(0,t.createVNode)(i.AngleDown,null,null):(0,t.createVNode)(i.AngleRight,null,null)]);return(0,t.createVNode)("div",{class:P},[this.$props.showHeader?(0,t.createVNode)("div",{class:V},[this.$props.isCollapse&&(null!==(d=null===(a=(n=this.$slots).icon)||void 0===a?void 0:a.call(n))&&void 0!==d?d:g),null!==(f=null===(u=(p=this.$slots).header)||void 0===u?void 0:u.call(p))&&void 0!==f?f:$,this.$props.isEdit&&!this.showInput&&(0,t.createVNode)(i.EditLine,{class:"".concat(x,"-edit"),onClick:this.clickEdit},null)]):"",(0,t.createVNode)(l(),null,{default:function(){return[(0,t.withDirectives)((0,t.createVNode)("div",null,[(0,t.createVNode)("div",{class:"".concat(x,"-body")},[null!==(b=null===(h=(v=w.$slots).default)||void 0===h?void 0:h.call(v))&&void 0!==b?b:"Content"]),w.$props.showFooter?(0,t.createVNode)("div",{class:"".concat(x,"-footer")},[null!==(T=null===(m=(y=w.$slots).footer)||void 0===m?void 0:m.call(y))&&void 0!==T?T:"Footer"]):""]),[[t.vShow,w.collapseActive]])]}})])}}),p=(0,e.withInstall)(d)})(),a})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../collapse-transition"),require("../icon"),require("../input"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../collapse-transition","../icon","../input"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../collapse-transition"),require("../icon"),require("../input")):t(e["../shared"],e.vue,e["../collapse-transition"],e["../icon"],e["../input"]);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t,o,r,i)=>(()=>{"use strict";var l={9891:e=>{e.exports=o},6870:e=>{e.exports=r},8133:e=>{e.exports=i},4212:t=>{t.exports=e},748:e=>{e.exports=t}},n={};function s(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return l[e](o,o.exports,s),o.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{s.r(a),s.d(a,{default:()=>d});var e=s(4212);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function o(e,o,r){return(o=function(e){var o=function(e,o){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,"string");if("object"!==t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===t(o)?o:String(o)}(o))in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}var r=s(748),i=s(9891),l=s.n(i),n=s(6870),c=s(8133),u=s.n(c);const p=(0,r.defineComponent)({name:"Card",props:{title:e.PropTypes.string,showHeader:e.PropTypes.bool.def(!0),showFooter:e.PropTypes.bool.def(!1),collapseStatus:e.PropTypes.bool.def(!0),border:e.PropTypes.bool.def(!0),disableHeaderStyle:e.PropTypes.bool.def(!1),position:e.PropTypes.string.def("left"),isEdit:e.PropTypes.bool.def(!1),isCollapse:e.PropTypes.bool.def(!1)},emits:["update:collapseStatus","edit"],setup:function(e,t){var o=t.emit,i=(0,r.ref)(!0),l=(0,r.ref)(!1),n=(0,r.ref)("");return(0,r.watch)((function(){return e.collapseStatus}),(function(t){e.isCollapse&&(i.value=t)}),{immediate:!0}),(0,r.watch)((function(){return e.title}),(function(e){n.value=e}),{immediate:!0}),{collapseActive:i,showInput:l,renderTitle:n,handleCollapse:function(){e.isCollapse&&(i.value=!i.value,o("update:collapseStatus",i.value))},saveEdit:function(){l.value=!l.value,o("edit",n)},clickEdit:function(){l.value=!l.value}}},render:function(){var t,i,s,a,c,p,d,f,v,h,y,b,m,S,w=this,T="bk-card",P=(0,e.classes)((o(t={},"".concat(T),!0),o(t,"".concat(T,"-border-none"),!this.$props.border),t),""),g=(0,e.classes)((o(i={},"".concat(T,"-head"),!0),o(i,"".concat(T,"-head-").concat(this.$props.position),this.$props.isCollapse&&this.$props.position),o(i,"no-line-height",this.$props.disableHeaderStyle),o(i,"collapse",!this.collapseActive),i),""),x=(0,r.createVNode)("div",{class:"title",title:this.renderTitle},[this.showInput?(0,r.createVNode)(u(),{class:"".concat(T,"-input"),modelValue:w.renderTitle,"onUpdate:modelValue":function(e){return w.renderTitle=e},onBlur:this.saveEdit},null):this.renderTitle]),V=(0,r.createVNode)("span",{class:"".concat(T,"-icon"),onClick:this.handleCollapse},[this.collapseActive?(0,r.createVNode)(n.AngleDown,null,null):(0,r.createVNode)(n.AngleRight,null,null)]);return(0,r.createVNode)("div",{class:P},[this.$props.showHeader?(0,r.createVNode)("div",{class:g},[this.$props.isCollapse&&(null!==(c=null===(a=(s=this.$slots).icon)||void 0===a?void 0:a.call(s))&&void 0!==c?c:V),null!==(f=null===(d=(p=this.$slots).header)||void 0===d?void 0:d.call(p))&&void 0!==f?f:x,this.$props.isEdit&&!this.showInput&&(0,r.createVNode)(n.EditLine,{class:"".concat(T,"-edit"),onClick:this.clickEdit},null)]):"",(0,r.createVNode)(l(),null,{default:function(){return[(0,r.withDirectives)((0,r.createVNode)("div",null,[(0,r.createVNode)("div",{class:"".concat(T,"-body")},[null!==(y=null===(h=(v=w.$slots).default)||void 0===h?void 0:h.call(v))&&void 0!==y?y:"Content"]),w.$props.showFooter?(0,r.createVNode)("div",{class:"".concat(T,"-footer")},[null!==(S=null===(m=(b=w.$slots).footer)||void 0===m?void 0:m.call(b))&&void 0!==S?S:"Footer"]):""]),[[r.vShow,w.collapseActive]])]}})])}}),d=(0,e.withInstall)(p)})(),a})()));
@@ -98,5 +98,5 @@ declare const _default: import("vue").DefineComponent<{
98
98
  };
99
99
  isFiltering: boolean;
100
100
  searchKey: string | number;
101
- }>;
101
+ }, {}>;
102
102
  export default _default;
@@ -333,8 +333,8 @@ declare const _default: import("vue").DefineComponent<{
333
333
  trigger: string;
334
334
  separator: string;
335
335
  multiple: boolean;
336
- list: unknown[];
337
336
  placeholder: string;
337
+ list: unknown[];
338
338
  scrollHeight: string | number;
339
339
  clearable: boolean;
340
340
  checkAnyLevel: boolean;
@@ -350,5 +350,5 @@ declare const _default: import("vue").DefineComponent<{
350
350
  filterMethod: (...args: any[]) => any;
351
351
  scrollWidth: string | number;
352
352
  floatMode: boolean;
353
- }>;
353
+ }, {}>;
354
354
  export default _default;