bkui-vue 0.0.1-beta.40 → 0.0.1-beta.400

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 (661) hide show
  1. package/License.txt +14 -0
  2. package/dist/index.cjs.js +160 -35
  3. package/dist/index.esm.js +32335 -13017
  4. package/dist/index.umd.js +160 -35
  5. package/dist/style.css +1 -1
  6. package/dist/style.variable.css +1 -0
  7. package/lib/affix/affix.css +3 -0
  8. package/lib/affix/affix.d.ts +47 -0
  9. package/lib/affix/affix.less +5 -0
  10. package/lib/affix/affix.variable.css +123 -0
  11. package/lib/affix/index.d.ts +143 -0
  12. package/lib/affix/index.js +1 -0
  13. package/lib/alert/alert.css +9 -3
  14. package/lib/alert/alert.d.ts +5 -5
  15. package/lib/alert/alert.less +29 -20
  16. package/lib/alert/alert.variable.css +39 -6
  17. package/lib/alert/index.d.ts +11 -11
  18. package/lib/alert/index.js +1 -0
  19. package/lib/animate-number/animate-number.d.ts +1 -1
  20. package/lib/animate-number/index.d.ts +4 -4
  21. package/lib/animate-number/{animate-number.js → index.js} +1 -1
  22. package/lib/backtop/backtop.css +8 -0
  23. package/lib/backtop/backtop.d.ts +1 -1
  24. package/lib/backtop/backtop.less +8 -0
  25. package/lib/backtop/backtop.variable.css +38 -3
  26. package/lib/backtop/index.d.ts +4 -4
  27. package/lib/backtop/index.js +1 -0
  28. package/lib/badge/badge.css +7 -10
  29. package/lib/badge/badge.d.ts +28 -7
  30. package/lib/badge/badge.less +9 -11
  31. package/lib/badge/badge.variable.css +37 -13
  32. package/lib/badge/index.d.ts +68 -18
  33. package/lib/badge/index.js +1 -0
  34. package/lib/breadcrumb/breadcrumb-item.d.ts +5 -3
  35. package/lib/breadcrumb/breadcrumb.css +51 -0
  36. package/lib/breadcrumb/breadcrumb.d.ts +1 -1
  37. package/lib/breadcrumb/breadcrumb.variable.css +86 -8
  38. package/lib/breadcrumb/index.d.ts +9 -7
  39. package/lib/breadcrumb/index.js +1 -0
  40. package/lib/button/button-group.d.ts +2 -2
  41. package/lib/button/button.css +85 -50
  42. package/lib/button/button.d.ts +44 -24
  43. package/lib/button/button.less +72 -42
  44. package/lib/button/button.variable.css +115 -53
  45. package/lib/button/index.d.ts +70 -40
  46. package/lib/button/index.js +1 -0
  47. package/lib/card/card.css +96 -1
  48. package/lib/card/card.d.ts +47 -6
  49. package/lib/card/card.less +50 -2
  50. package/lib/card/card.variable.css +130 -8
  51. package/lib/card/index.d.ts +113 -17
  52. package/lib/card/index.js +1 -0
  53. package/lib/cascader/cascader-panel.d.ts +100 -0
  54. package/lib/cascader/cascader.css +173 -0
  55. package/lib/cascader/cascader.d.ts +303 -0
  56. package/lib/cascader/cascader.less +196 -0
  57. package/lib/cascader/cascader.variable.css +293 -0
  58. package/lib/cascader/index.d.ts +868 -0
  59. package/lib/cascader/index.js +1 -0
  60. package/lib/cascader/interface.d.ts +51 -0
  61. package/lib/cascader/node.d.ts +31 -0
  62. package/lib/cascader/store.d.ts +23 -0
  63. package/lib/checkbox/checkbox-group.d.ts +16 -0
  64. package/lib/checkbox/checkbox.css +46 -10
  65. package/lib/checkbox/checkbox.d.ts +36 -24
  66. package/lib/checkbox/checkbox.less +79 -31
  67. package/lib/checkbox/checkbox.variable.css +76 -13
  68. package/lib/checkbox/common.d.ts +4 -3
  69. package/lib/checkbox/index.d.ts +70 -38
  70. package/lib/checkbox/index.js +1 -0
  71. package/lib/checkbox/type.d.ts +2 -6
  72. package/lib/code-diff/code-diff.css +27 -7
  73. package/lib/code-diff/code-diff.d.ts +1 -1
  74. package/lib/code-diff/code-diff.less +42 -7
  75. package/lib/code-diff/code-diff.variable.css +57 -10
  76. package/lib/code-diff/index.js +1 -0
  77. package/lib/collapse/collapse-panel.d.ts +78 -0
  78. package/lib/collapse/collapse.css +28 -12
  79. package/lib/collapse/collapse.d.ts +11 -52
  80. package/lib/collapse/collapse.less +54 -29
  81. package/lib/collapse/collapse.variable.css +148 -12
  82. package/lib/collapse/index.d.ts +127 -20
  83. package/lib/collapse/index.js +1 -0
  84. package/lib/collapse/props.d.ts +84 -0
  85. package/lib/collapse/utils.d.ts +11 -0
  86. package/lib/color-picker/color-picker.css +275 -0
  87. package/lib/color-picker/color-picker.d.ts +144 -0
  88. package/lib/color-picker/color-picker.less +325 -0
  89. package/lib/color-picker/color-picker.variable.css +395 -0
  90. package/lib/color-picker/components/color-input.d.ts +42 -0
  91. package/lib/color-picker/components/hue-slider.d.ts +41 -0
  92. package/lib/color-picker/components/input-container.d.ts +42 -0
  93. package/lib/color-picker/components/recommend-colors.d.ts +51 -0
  94. package/lib/color-picker/components/saturation-panel.d.ts +41 -0
  95. package/lib/color-picker/index.d.ts +254 -0
  96. package/lib/color-picker/index.js +1 -0
  97. package/lib/color-picker/utils.d.ts +37 -0
  98. package/lib/components.d.ts +28 -8
  99. package/lib/components.js +1 -0
  100. package/lib/container/col.d.ts +51 -0
  101. package/lib/container/container.css +91 -0
  102. package/lib/container/container.d.ts +83 -0
  103. package/lib/container/container.less +20 -0
  104. package/lib/container/container.variable.css +211 -0
  105. package/lib/container/index.d.ts +223 -0
  106. package/lib/container/index.js +1 -0
  107. package/lib/container/row.d.ts +4 -0
  108. package/lib/date-picker/base/confirm.d.ts +74 -0
  109. package/lib/date-picker/base/date-table.d.ts +96 -0
  110. package/lib/date-picker/base/picker-dropdown.d.ts +74 -0
  111. package/lib/date-picker/base/time-spinner.d.ts +151 -0
  112. package/lib/date-picker/date-picker.css +28 -1
  113. package/lib/date-picker/date-picker.d.ts +49 -20
  114. package/lib/date-picker/date-picker.less +106 -74
  115. package/lib/date-picker/date-picker.variable.css +58 -4
  116. package/lib/date-picker/index.d.ts +121 -54
  117. package/lib/date-picker/index.js +1 -0
  118. package/lib/date-picker/interface.d.ts +11 -1
  119. package/lib/date-picker/panel/date-range.d.ts +309 -0
  120. package/lib/date-picker/panel/date.d.ts +206 -0
  121. package/lib/date-picker/panel/time-range.d.ts +489 -0
  122. package/lib/date-picker/panel/time.d.ts +448 -0
  123. package/lib/date-picker/props.d.ts +55 -5
  124. package/lib/date-picker/time-picker.d.ts +381 -0
  125. package/lib/date-picker/utils.d.ts +22 -2
  126. package/lib/dialog/dialog.css +144 -22
  127. package/lib/dialog/dialog.d.ts +256 -58
  128. package/lib/dialog/dialog.less +105 -32
  129. package/lib/dialog/dialog.variable.css +264 -22
  130. package/lib/dialog/index.d.ts +562 -126
  131. package/lib/dialog/index.js +1 -0
  132. package/lib/dialog/props.d.ts +130 -0
  133. package/lib/directives/ellipsis.d.ts +7 -0
  134. package/lib/directives/index.d.ts +2 -0
  135. package/lib/directives/index.js +2 -0
  136. package/lib/directives/tooltips.d.ts +2 -1
  137. package/lib/dist.index.js +1 -0
  138. package/lib/divider/divider.d.ts +15 -15
  139. package/lib/divider/divider.variable.css +30 -3
  140. package/lib/divider/index.d.ts +34 -34
  141. package/lib/divider/index.js +1 -0
  142. package/lib/divider/props.d.ts +6 -6
  143. package/lib/dropdown/dropdown.css +13 -7
  144. package/lib/dropdown/dropdown.d.ts +47 -15
  145. package/lib/dropdown/dropdown.less +47 -34
  146. package/lib/dropdown/dropdown.variable.css +43 -10
  147. package/lib/dropdown/index.d.ts +102 -38
  148. package/lib/dropdown/index.js +1 -0
  149. package/lib/exception/exception.css +40 -14
  150. package/lib/exception/exception.d.ts +31 -11
  151. package/lib/exception/exception.less +59 -22
  152. package/lib/exception/exception.variable.css +70 -17
  153. package/lib/exception/index.d.ts +43 -26
  154. package/lib/exception/index.js +1 -0
  155. package/lib/exception/typings/index.d.ts +4 -0
  156. package/lib/fixed-navbar/fixed-navbar.d.ts +17 -3
  157. package/lib/fixed-navbar/fixed-navbar.variable.css +30 -3
  158. package/lib/fixed-navbar/index.d.ts +43 -8
  159. package/lib/fixed-navbar/{fixed-navbar.js → index.js} +1 -1
  160. package/lib/form/compose-form-item.d.ts +16 -0
  161. package/lib/form/form-item.d.ts +21 -6
  162. package/lib/form/form.css +104 -15
  163. package/lib/form/form.d.ts +38 -14
  164. package/lib/form/form.less +152 -45
  165. package/lib/form/form.variable.css +224 -15
  166. package/lib/form/index.d.ts +108 -35
  167. package/lib/form/index.js +1 -0
  168. package/lib/form/type.d.ts +8 -7
  169. package/lib/form/utils.d.ts +2 -0
  170. package/lib/form/validator.d.ts +1 -0
  171. package/lib/icon/angle-double-down-line.js +1 -1
  172. package/lib/icon/angle-double-left-line.js +1 -1
  173. package/lib/icon/angle-double-left.js +1 -1
  174. package/lib/icon/angle-double-right-line.js +1 -1
  175. package/lib/icon/angle-double-right.js +1 -1
  176. package/lib/icon/angle-double-up-line.js +1 -1
  177. package/lib/icon/angle-down-fill.js +1 -1
  178. package/lib/icon/angle-down-line.js +1 -1
  179. package/lib/icon/angle-down.js +1 -1
  180. package/lib/icon/angle-left.js +1 -1
  181. package/lib/icon/angle-right.js +1 -1
  182. package/lib/icon/angle-up-fill.js +1 -1
  183. package/lib/icon/angle-up.js +1 -1
  184. package/lib/icon/archive-fill.d.ts +4 -0
  185. package/lib/icon/archive-fill.js +1 -0
  186. package/lib/icon/arrows-left.js +1 -1
  187. package/lib/icon/arrows-right.js +1 -1
  188. package/lib/icon/audio-fill.d.ts +4 -0
  189. package/lib/icon/audio-fill.js +1 -0
  190. package/lib/icon/bk.js +1 -1
  191. package/lib/icon/circle.js +1 -1
  192. package/lib/icon/close-line.d.ts +4 -0
  193. package/lib/icon/close-line.js +1 -0
  194. package/lib/icon/close.js +1 -1
  195. package/lib/icon/code.js +1 -1
  196. package/lib/icon/cog-shape.js +1 -1
  197. package/lib/icon/collapse-left.js +1 -1
  198. package/lib/icon/copy.js +1 -1
  199. package/lib/icon/data-shape.d.ts +4 -0
  200. package/lib/icon/data-shape.js +1 -0
  201. package/lib/icon/del.d.ts +4 -0
  202. package/lib/icon/del.js +1 -0
  203. package/lib/icon/doc-fill.d.ts +4 -0
  204. package/lib/icon/doc-fill.js +1 -0
  205. package/lib/icon/done.js +1 -1
  206. package/lib/icon/down-shape.js +1 -1
  207. package/lib/icon/down-small.js +1 -1
  208. package/lib/icon/edit-line.d.ts +4 -0
  209. package/lib/icon/edit-line.js +1 -0
  210. package/lib/icon/ellipsis.js +1 -1
  211. package/lib/icon/enlarge-line.d.ts +4 -0
  212. package/lib/icon/enlarge-line.js +1 -0
  213. package/lib/icon/error.js +1 -1
  214. package/lib/icon/excel-fill.d.ts +4 -0
  215. package/lib/icon/excel-fill.js +1 -0
  216. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  217. package/lib/icon/exclamation-circle-shape.js +1 -0
  218. package/lib/icon/eye.js +1 -1
  219. package/lib/icon/filliscreen-line.d.ts +4 -0
  220. package/lib/icon/filliscreen-line.js +1 -0
  221. package/lib/icon/folder-open.js +1 -1
  222. package/lib/icon/folder-shape-open.js +1 -1
  223. package/lib/icon/folder-shape.js +1 -1
  224. package/lib/icon/folder.js +1 -1
  225. package/lib/icon/funnel.d.ts +4 -0
  226. package/lib/icon/funnel.js +1 -0
  227. package/lib/icon/help-document-fill.js +1 -1
  228. package/lib/icon/help-fill.js +1 -1
  229. package/lib/icon/help.js +1 -1
  230. package/lib/icon/image-fill.d.ts +4 -0
  231. package/lib/icon/image-fill.js +1 -0
  232. package/lib/icon/img-error.d.ts +4 -0
  233. package/lib/icon/img-placehoulder.d.ts +4 -0
  234. package/lib/icon/img-placehoulder.js +1 -0
  235. package/lib/icon/index.d.ts +27 -1
  236. package/lib/icon/index.js +1 -0
  237. package/lib/icon/info-line.js +1 -1
  238. package/lib/icon/info.js +1 -1
  239. package/lib/icon/left-shape.js +1 -1
  240. package/lib/icon/left-turn-line.d.ts +4 -0
  241. package/lib/icon/left-turn-line.js +1 -0
  242. package/lib/icon/narrow-line.d.ts +4 -0
  243. package/lib/icon/narrow-line.js +1 -0
  244. package/lib/icon/original.d.ts +4 -0
  245. package/lib/icon/original.js +1 -0
  246. package/lib/icon/pdf-fill.d.ts +4 -0
  247. package/lib/icon/pdf-fill.js +1 -0
  248. package/lib/icon/play-shape.js +1 -1
  249. package/lib/icon/plus.js +1 -1
  250. package/lib/icon/ppt-fill.d.ts +4 -0
  251. package/lib/icon/ppt-fill.js +1 -0
  252. package/lib/icon/qq.js +1 -1
  253. package/lib/icon/right-shape.js +1 -1
  254. package/lib/icon/right-turn-line.d.ts +4 -0
  255. package/lib/icon/right-turn-line.js +1 -0
  256. package/lib/icon/search.js +1 -1
  257. package/lib/icon/share.js +1 -1
  258. package/lib/icon/spinner.js +1 -1
  259. package/lib/icon/success.js +1 -1
  260. package/lib/icon/switcher-loading.js +1 -1
  261. package/lib/icon/text-file.js +1 -1
  262. package/lib/icon/text-fill.d.ts +4 -0
  263. package/lib/icon/text-fill.js +1 -0
  264. package/lib/icon/transfer.d.ts +4 -0
  265. package/lib/icon/transfer.js +1 -0
  266. package/lib/icon/tree-application-shape.js +1 -1
  267. package/lib/icon/unfull-screen.d.ts +4 -0
  268. package/lib/icon/unfull-screen.js +1 -0
  269. package/lib/icon/unvisible.js +1 -1
  270. package/lib/icon/up-shape.js +1 -1
  271. package/lib/icon/upload.d.ts +4 -0
  272. package/lib/icon/upload.js +1 -0
  273. package/lib/icon/video-fill.d.ts +4 -0
  274. package/lib/icon/video-fill.js +1 -0
  275. package/lib/icon/warn.js +1 -1
  276. package/lib/icon/weixin.js +1 -1
  277. package/lib/image/image-viewer.css +142 -0
  278. package/lib/image/image-viewer.d.ts +73 -0
  279. package/lib/image/image-viewer.less +168 -0
  280. package/lib/image/image-viewer.variable.css +142 -0
  281. package/lib/image/image.css +37 -0
  282. package/lib/image/image.d.ts +93 -0
  283. package/lib/image/image.less +44 -0
  284. package/lib/image/image.variable.css +37 -0
  285. package/lib/image/index.d.ts +246 -0
  286. package/lib/image/index.js +1 -0
  287. package/lib/image/props.d.ts +71 -0
  288. package/lib/index.d.ts +1 -1
  289. package/lib/index.js +1 -0
  290. package/lib/info-box/index.d.ts +6 -0
  291. package/lib/info-box/index.js +1 -0
  292. package/lib/info-box/info-box.css +37 -0
  293. package/lib/info-box/info-box.d.ts +26 -0
  294. package/lib/info-box/info-box.less +51 -0
  295. package/lib/info-box/info-box.variable.css +157 -0
  296. package/lib/input/index.d.ts +175 -90
  297. package/lib/input/index.js +1 -0
  298. package/lib/input/input.css +183 -22
  299. package/lib/input/input.d.ts +119 -36
  300. package/lib/input/input.less +112 -20
  301. package/lib/input/input.variable.css +244 -57
  302. package/lib/link/index.d.ts +29 -21
  303. package/lib/link/index.js +1 -0
  304. package/lib/link/link.css +12 -12
  305. package/lib/link/link.d.ts +10 -8
  306. package/lib/link/link.less +16 -14
  307. package/lib/link/link.variable.css +42 -15
  308. package/lib/loading/index.d.ts +112 -19
  309. package/lib/loading/index.js +1 -0
  310. package/lib/loading/loading.css +78 -34
  311. package/lib/loading/loading.d.ts +78 -12
  312. package/lib/loading/loading.less +18 -22
  313. package/lib/loading/loading.variable.css +124 -53
  314. package/lib/menu/index.d.ts +16 -24
  315. package/lib/menu/index.js +1 -0
  316. package/lib/menu/menu.css +51 -0
  317. package/lib/menu/menu.d.ts +7 -16
  318. package/lib/menu/menu.variable.css +99 -21
  319. package/lib/menu/submenu.variable.css +30 -3
  320. package/lib/message/index.js +1 -0
  321. package/lib/message/message.css +25 -4
  322. package/lib/message/message.less +30 -4
  323. package/lib/message/message.variable.css +55 -7
  324. package/lib/message/messageConstructor.d.ts +47 -11
  325. package/lib/modal/index.d.ts +456 -78
  326. package/lib/modal/index.js +1 -0
  327. package/lib/modal/modal.css +63 -1
  328. package/lib/modal/modal.d.ts +174 -30
  329. package/lib/modal/modal.less +39 -3
  330. package/lib/modal/modal.variable.css +183 -1
  331. package/lib/modal/props.mixin.d.ts +74 -13
  332. package/lib/navigation/index.d.ts +310 -1
  333. package/lib/navigation/index.js +1 -0
  334. package/lib/navigation/navigation.css +1 -1
  335. package/lib/navigation/navigation.d.ts +10 -1
  336. package/lib/navigation/navigation.less +1 -1
  337. package/lib/navigation/navigation.variable.css +31 -4
  338. package/lib/notify/index.js +1 -0
  339. package/lib/notify/notify.css +24 -4
  340. package/lib/notify/notify.less +27 -4
  341. package/lib/notify/notify.variable.css +54 -7
  342. package/lib/notify/notifyConstructor.d.ts +62 -21
  343. package/lib/overflow-title/components/OverflowTitle.d.ts +38 -0
  344. package/lib/overflow-title/directive/overflowTitle.d.ts +3 -0
  345. package/lib/overflow-title/index.d.ts +129 -0
  346. package/lib/overflow-title/index.js +1 -0
  347. package/lib/overflow-title/overflow.css +11 -0
  348. package/lib/overflow-title/overflow.less +13 -0
  349. package/lib/overflow-title/overflow.variable.css +11 -0
  350. package/lib/overflow-title/props.d.ts +16 -0
  351. package/lib/overflow-title/utils/getActualWidthByCanvas.d.ts +3 -0
  352. package/lib/overflow-title/utils/getActualWidthByDom.d.ts +3 -0
  353. package/lib/pagination/index.d.ts +38 -23
  354. package/lib/pagination/index.js +1 -0
  355. package/lib/pagination/pagination.css +54 -28
  356. package/lib/pagination/pagination.d.ts +19 -9
  357. package/lib/pagination/pagination.less +59 -30
  358. package/lib/pagination/pagination.variable.css +84 -31
  359. package/lib/plugin-popover/index.d.ts +27 -0
  360. package/lib/plugin-popover/index.js +1 -0
  361. package/lib/plugins/index.d.ts +1 -0
  362. package/lib/plugins/index.js +1 -0
  363. package/lib/popover/arrow.d.ts +2 -0
  364. package/lib/popover/const.d.ts +16 -0
  365. package/lib/popover/content.d.ts +32 -0
  366. package/lib/popover/index.d.ts +453 -87
  367. package/lib/popover/index.js +1 -0
  368. package/lib/popover/plugin-popover.d.ts +12 -0
  369. package/lib/popover/popover.css +10 -50
  370. package/lib/popover/popover.d.ts +199 -39
  371. package/lib/popover/popover.less +19 -66
  372. package/lib/popover/popover.variable.css +40 -53
  373. package/lib/popover/props.d.ts +97 -28
  374. package/lib/popover/reference.d.ts +2 -0
  375. package/lib/popover/root.d.ts +16 -0
  376. package/lib/popover/use-floating.d.ts +31 -0
  377. package/lib/popover/use-platform.d.ts +30 -0
  378. package/lib/popover/use-popover-init.d.ts +23 -0
  379. package/lib/popover/use-popper-id.d.ts +6 -0
  380. package/lib/popover/utils.d.ts +2 -0
  381. package/lib/popover2/index.d.ts +44 -0
  382. package/lib/popover2/index.js +1 -0
  383. package/lib/popover2/popover.d.ts +2 -0
  384. package/lib/preset.js +1 -0
  385. package/lib/process/index.d.ts +6 -6
  386. package/lib/process/index.js +1 -0
  387. package/lib/process/process.css +13 -0
  388. package/lib/process/process.d.ts +1 -1
  389. package/lib/process/process.less +17 -0
  390. package/lib/process/process.variable.css +43 -3
  391. package/lib/progress/index.d.ts +22 -22
  392. package/lib/progress/index.js +1 -0
  393. package/lib/progress/progress.css +51 -0
  394. package/lib/progress/progress.d.ts +9 -9
  395. package/lib/progress/progress.variable.css +85 -7
  396. package/lib/radio/common.d.ts +5 -5
  397. package/lib/radio/index.d.ts +29 -18
  398. package/lib/radio/index.js +1 -0
  399. package/lib/radio/radio-button.d.ts +7 -8
  400. package/lib/radio/radio-group.d.ts +16 -0
  401. package/lib/radio/radio.css +47 -46
  402. package/lib/radio/radio.d.ts +4 -4
  403. package/lib/radio/radio.less +177 -173
  404. package/lib/radio/radio.variable.css +81 -53
  405. package/lib/radio/type.d.ts +9 -4
  406. package/lib/rate/index.d.ts +28 -5
  407. package/lib/rate/index.js +1 -0
  408. package/lib/rate/rate.d.ts +13 -2
  409. package/lib/rate/star.d.ts +1 -1
  410. package/lib/resize-layout/index.d.ts +18 -18
  411. package/lib/resize-layout/index.js +1 -0
  412. package/lib/resize-layout/resize-layout.css +3 -15
  413. package/lib/resize-layout/resize-layout.d.ts +7 -7
  414. package/lib/resize-layout/resize-layout.less +3 -19
  415. package/lib/resize-layout/resize-layout.variable.css +33 -18
  416. package/lib/search-select/index.d.ts +823 -0
  417. package/lib/search-select/index.js +1 -0
  418. package/lib/search-select/input.d.ts +89 -0
  419. package/lib/search-select/menu.d.ts +83 -0
  420. package/lib/search-select/search-select.css +424 -0
  421. package/lib/search-select/search-select.d.ts +342 -0
  422. package/lib/search-select/search-select.less +380 -0
  423. package/lib/search-select/search-select.variable.css +544 -0
  424. package/lib/search-select/selected.d.ts +143 -0
  425. package/lib/search-select/utils.d.ts +88 -0
  426. package/lib/select/common.d.ts +5 -12
  427. package/lib/select/index.d.ts +1283 -595
  428. package/lib/select/index.js +1 -0
  429. package/lib/select/option.d.ts +12 -4
  430. package/lib/select/optionGroup.d.ts +1 -1
  431. package/lib/select/select.css +186 -113
  432. package/lib/select/select.d.ts +488 -130
  433. package/lib/select/select.less +320 -202
  434. package/lib/select/select.variable.css +216 -116
  435. package/lib/select/selectTagInput.d.ts +93 -0
  436. package/lib/select/type.d.ts +21 -13
  437. package/lib/shared/dom.d.ts +3 -0
  438. package/lib/shared/helper.d.ts +9 -0
  439. package/lib/shared/hooks/use-form-item.d.ts +2 -0
  440. package/lib/shared/hooks/use-form.d.ts +2 -0
  441. package/lib/shared/index.d.ts +22 -0
  442. package/lib/shared/index.js +1 -0
  443. package/lib/shared/mask-manager.d.ts +6 -2
  444. package/lib/shared/pop-manager.d.ts +16 -4
  445. package/lib/shared/popover.d.ts +6 -2
  446. package/lib/shared/token.d.ts +4 -0
  447. package/lib/shared/utils.d.ts +19 -0
  448. package/lib/shared/vue-types.d.ts +105 -7
  449. package/lib/sideslider/index.d.ts +343 -72
  450. package/lib/sideslider/index.js +1 -0
  451. package/lib/sideslider/sideslider.css +55 -10
  452. package/lib/sideslider/sideslider.d.ts +160 -32
  453. package/lib/sideslider/sideslider.less +72 -13
  454. package/lib/sideslider/sideslider.variable.css +85 -13
  455. package/lib/slider/index.d.ts +414 -1
  456. package/lib/slider/index.js +1 -0
  457. package/lib/slider/slider-button.d.ts +2 -1
  458. package/lib/slider/slider.d.ts +4 -4
  459. package/lib/slider/slider.variable.css +30 -3
  460. package/lib/steps/index.d.ts +52 -52
  461. package/lib/steps/index.js +1 -0
  462. package/lib/steps/steps.css +15 -3
  463. package/lib/steps/steps.d.ts +32 -32
  464. package/lib/steps/steps.less +24 -3
  465. package/lib/steps/steps.variable.css +45 -6
  466. package/lib/styles/index.d.ts +7 -1
  467. package/lib/styles/mixins/clearfix.css +8 -0
  468. package/lib/styles/mixins/clearfix.less +10 -0
  469. package/lib/styles/mixins/clearfix.variable.css +8 -0
  470. package/lib/styles/mixins/mixins.css +51 -0
  471. package/lib/styles/mixins/mixins.less +2 -0
  472. package/lib/styles/mixins/mixins.variable.css +51 -0
  473. package/lib/styles/mixins/popper.css +1 -1
  474. package/lib/styles/mixins/popper.less +12 -11
  475. package/lib/styles/mixins/popper.variable.css +121 -1
  476. package/lib/styles/mixins/scroll.css +17 -0
  477. package/lib/styles/mixins/scroll.less +22 -0
  478. package/lib/styles/mixins/scroll.variable.css +137 -0
  479. package/lib/styles/reset.css +36 -0
  480. package/lib/styles/reset.less +26 -2
  481. package/lib/styles/reset.variable.css +36 -0
  482. package/lib/styles/themes/themes.less +39 -3
  483. package/lib/swiper/index.js +1 -0
  484. package/lib/switcher/index.d.ts +42 -30
  485. package/lib/switcher/index.js +1 -0
  486. package/lib/switcher/switcher.css +57 -6
  487. package/lib/switcher/switcher.d.ts +19 -13
  488. package/lib/switcher/switcher.less +5 -26
  489. package/lib/switcher/switcher.variable.css +104 -26
  490. package/lib/tab/index.d.ts +66 -70
  491. package/lib/tab/index.js +1 -0
  492. package/lib/tab/props.d.ts +33 -11
  493. package/lib/tab/tab-nav.d.ts +17 -13
  494. package/lib/tab/tab-panel.d.ts +5 -10
  495. package/lib/tab/tab.css +87 -12
  496. package/lib/tab/tab.d.ts +20 -21
  497. package/lib/tab/tab.less +112 -49
  498. package/lib/tab/tab.variable.css +117 -15
  499. package/lib/table/components/index.d.ts +3 -0
  500. package/lib/table/components/table-cell.d.ts +38 -0
  501. package/lib/table/components/table-column.d.ts +137 -0
  502. package/lib/table/components/table-row.d.ts +2 -0
  503. package/lib/table/const.d.ts +119 -1
  504. package/lib/table/index.d.ts +880 -41
  505. package/lib/table/index.js +1 -0
  506. package/lib/table/plugins/body-empty.d.ts +40 -0
  507. package/lib/table/plugins/col-group.d.ts +38 -0
  508. package/lib/table/plugins/common.d.ts +6 -0
  509. package/lib/table/plugins/head-filter.css +84 -0
  510. package/lib/table/plugins/head-filter.d.ts +26 -0
  511. package/lib/table/plugins/head-filter.less +110 -0
  512. package/lib/table/plugins/head-filter.variable.css +204 -0
  513. package/lib/table/plugins/head-sort.css +25 -0
  514. package/lib/table/plugins/head-sort.d.ts +22 -0
  515. package/lib/table/plugins/head-sort.less +31 -0
  516. package/lib/table/plugins/head-sort.variable.css +145 -0
  517. package/lib/table/plugins/index.d.ts +5 -0
  518. package/lib/table/plugins/settings.css +145 -0
  519. package/lib/table/plugins/settings.d.ts +37 -0
  520. package/lib/table/plugins/settings.less +179 -0
  521. package/lib/table/plugins/settings.variable.css +265 -0
  522. package/lib/table/plugins/use-active-columns.d.ts +16 -0
  523. package/lib/table/plugins/use-column-resize.d.ts +15 -0
  524. package/lib/table/plugins/use-fixed-column.d.ts +12 -0
  525. package/lib/table/plugins/use-pagination.d.ts +16 -0
  526. package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
  527. package/lib/table/props.d.ts +325 -8
  528. package/lib/table/render.d.ts +46 -4
  529. package/lib/table/table.css +1192 -11
  530. package/lib/table/table.d.ts +248 -17
  531. package/lib/table/table.less +265 -15
  532. package/lib/table/table.variable.css +1232 -24
  533. package/lib/table/use-column.d.ts +11 -0
  534. package/lib/table/use-common.d.ts +98 -0
  535. package/lib/table/utils.d.ts +71 -11
  536. package/lib/table-column/index.d.ts +325 -0
  537. package/lib/table-column/index.js +1 -0
  538. package/lib/tag/index.d.ts +29 -29
  539. package/lib/tag/index.js +1 -0
  540. package/lib/tag/tag.css +46 -13
  541. package/lib/tag/tag.d.ts +12 -12
  542. package/lib/tag/tag.less +46 -10
  543. package/lib/tag/tag.variable.css +76 -16
  544. package/lib/tag-input/common.d.ts +13 -1
  545. package/lib/tag-input/index.d.ts +1348 -1
  546. package/lib/tag-input/index.js +1 -0
  547. package/lib/tag-input/list-tag-render.d.ts +0 -3
  548. package/lib/tag-input/tag-input.css +23 -26
  549. package/lib/tag-input/tag-input.d.ts +288 -43
  550. package/lib/tag-input/tag-input.less +102 -104
  551. package/lib/tag-input/tag-input.variable.css +53 -29
  552. package/lib/tag-input/tag-props.d.ts +128 -7
  553. package/lib/tag-input/tag-render.d.ts +30 -4
  554. package/lib/time-picker/index.d.ts +904 -0
  555. package/lib/time-picker/index.js +1 -0
  556. package/lib/time-picker/time-picker.css +215 -0
  557. package/lib/time-picker/time-picker.less +260 -0
  558. package/lib/time-picker/time-picker.variable.css +335 -0
  559. package/lib/timeline/index.d.ts +2 -2
  560. package/lib/timeline/index.js +1 -0
  561. package/lib/timeline/timeline.css +16 -9
  562. package/lib/timeline/timeline.less +22 -9
  563. package/lib/timeline/timeline.variable.css +46 -12
  564. package/lib/transfer/const.d.ts +5 -0
  565. package/lib/transfer/index.d.ts +164 -150
  566. package/lib/transfer/index.js +1 -0
  567. package/lib/transfer/props.d.ts +54 -0
  568. package/lib/transfer/transfer.css +89 -86
  569. package/lib/transfer/transfer.d.ts +70 -95
  570. package/lib/transfer/transfer.less +93 -113
  571. package/lib/transfer/transfer.variable.css +124 -94
  572. package/lib/tree/constant.d.ts +62 -0
  573. package/lib/tree/index.d.ts +417 -57
  574. package/lib/tree/index.js +1 -0
  575. package/lib/tree/props.d.ts +124 -0
  576. package/lib/tree/tree.css +177 -9
  577. package/lib/tree/tree.d.ts +190 -18
  578. package/lib/tree/tree.less +54 -3
  579. package/lib/tree/tree.variable.css +207 -12
  580. package/lib/tree/use-empty.d.ts +6 -0
  581. package/lib/tree/use-node-action.d.ts +12 -0
  582. package/lib/tree/use-node-async.d.ts +5 -0
  583. package/lib/tree/use-node-attribute.d.ts +33 -0
  584. package/lib/tree/use-node-drag.d.ts +3 -0
  585. package/lib/tree/use-search.d.ts +11 -0
  586. package/lib/tree/use-tree-init.d.ts +15 -0
  587. package/lib/tree/util.d.ts +4 -6
  588. package/lib/upload/index.d.ts +566 -0
  589. package/lib/upload/index.js +1 -0
  590. package/lib/upload/props.d.ts +111 -0
  591. package/lib/upload/upload-list.d.ts +47 -0
  592. package/lib/upload/upload-trigger.d.ts +51 -0
  593. package/lib/upload/upload.css +427 -0
  594. package/lib/upload/upload.d.ts +246 -0
  595. package/lib/upload/upload.less +466 -0
  596. package/lib/upload/upload.type.d.ts +78 -0
  597. package/lib/upload/upload.variable.css +547 -0
  598. package/lib/upload/use-ajax-upload.d.ts +3 -0
  599. package/lib/upload/use-file-handler.d.ts +44 -0
  600. package/lib/virtual-render/index.d.ts +50 -4
  601. package/lib/virtual-render/index.js +1 -0
  602. package/lib/virtual-render/props.d.ts +15 -0
  603. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  604. package/lib/virtual-render/v-virtual-render.d.ts +0 -1
  605. package/lib/virtual-render/virtual-render.css +17 -17
  606. package/lib/virtual-render/virtual-render.d.ts +23 -1
  607. package/lib/virtual-render/virtual-render.less +2 -23
  608. package/lib/virtual-render/virtual-render.variable.css +137 -17
  609. package/lib/volar.components.d.ts +101 -0
  610. package/package.json +54 -24
  611. package/LICENSE.txt +0 -22
  612. package/lib/alert/alert.js +0 -1
  613. package/lib/backtop/backtop.js +0 -1
  614. package/lib/badge/badge.js +0 -1
  615. package/lib/breadcrumb/breadcrumb.js +0 -1
  616. package/lib/button/button.js +0 -1
  617. package/lib/card/card.js +0 -1
  618. package/lib/checkbox/checkbox.js +0 -1
  619. package/lib/code-diff/code-diff.js +0 -1
  620. package/lib/collapse/collapse.js +0 -1
  621. package/lib/date-picker/date-picker.js +0 -1
  622. package/lib/dialog/dialog.js +0 -1
  623. package/lib/directives/directives.js +0 -2
  624. package/lib/divider/divider.js +0 -1
  625. package/lib/dropdown/dropdown.js +0 -1
  626. package/lib/exception/exception.js +0 -1
  627. package/lib/form/common.d.ts +0 -3
  628. package/lib/form/form.js +0 -1
  629. package/lib/icon/icon.js +0 -1
  630. package/lib/input/input.js +0 -1
  631. package/lib/link/link.js +0 -1
  632. package/lib/loading/loading.js +0 -1
  633. package/lib/menu/menu.js +0 -1
  634. package/lib/message/message.js +0 -1
  635. package/lib/modal/modal.js +0 -1
  636. package/lib/navigation/navigation.js +0 -1
  637. package/lib/notify/notify.js +0 -1
  638. package/lib/pagination/pagination.js +0 -1
  639. package/lib/popover/popover.js +0 -1
  640. package/lib/process/process.js +0 -1
  641. package/lib/progress/progress.js +0 -1
  642. package/lib/radio/radio.js +0 -1
  643. package/lib/rate/rate.js +0 -1
  644. package/lib/resize-layout/resize-layout.js +0 -1
  645. package/lib/select/select.js +0 -1
  646. package/lib/shared/shared.js +0 -1
  647. package/lib/sideslider/sideslider.js +0 -1
  648. package/lib/slider/slider.js +0 -1
  649. package/lib/steps/steps.js +0 -1
  650. package/lib/swiper/swiper.js +0 -1
  651. package/lib/switcher/switcher.js +0 -1
  652. package/lib/tab/tab.js +0 -1
  653. package/lib/table/table.js +0 -1
  654. package/lib/tag/tag.js +0 -1
  655. package/lib/tag-input/tag-input.js +0 -1
  656. package/lib/timeline/timeline.js +0 -1
  657. package/lib/transfer/transfer.js +0 -1
  658. package/lib/tree/tree.js +0 -1
  659. package/lib/use-form.d.ts +0 -3
  660. package/lib/virtual-render/virtual-render.js +0 -1
  661. /package/lib/directives/{directives.js.LICENSE.txt → index.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("vue-types"),require("../directives"),require("../icon"),require("../popover"),require("../checkbox"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types","../directives","../icon","../popover","../checkbox"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("vue-types"),require("../directives"),require("../icon"),require("../popover"),require("../checkbox")):t(e["../shared"],e.vue,e["vue-types"],e["../directives"],e["../icon"],e["../popover"],e["../checkbox"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,((e,t,r,n,o,i,a)=>(()=>{var s={7162:(e,t,r)=>{r(5047)},5047:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),a=new L(n||[]);return i._invoke=function(e,t,r){var n=d;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===f){if("throw"===o)throw i;return O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===d)throw n=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var c=u(e,t,r);if("normal"===c.type){if(n=r.done?f:h,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=f,r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d="suspendedStart",h="suspendedYield",p="executing",f="completed",v={};function y(){}function g(){}function m(){}var b={};c(b,i,(function(){return this}));var k=Object.getPrototypeOf,N=k&&k(k(E([])));N&&N!==r&&n.call(N,i)&&(b=N);var w=m.prototype=y.prototype=Object.create(b);function P(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function r(o,i,a,s){var c=u(e[o],e,i);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function x(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,x(e,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=u(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function V(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(V,this),this.reset(!0)}function E(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:O}}function O(){return{value:t,done:!0}}return g.prototype=m,c(w,"constructor",m),c(m,"constructor",g),g.displayName=c(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},P(T.prototype),c(T.prototype,a,(function(){return this})),e.AsyncIterator=T,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new T(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(w),c(w,s,"Generator"),c(w,i,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=E,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:E(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},5800:e=>{"use strict";e.exports=a},4061:e=>{"use strict";e.exports=n},6870:e=>{"use strict";e.exports=o},5537:e=>{"use strict";e.exports=i},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t},210:e=>{"use strict";e.exports=r}},c={};function l(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={exports:{}};return s[e](r,r.exports,l),r.exports}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return(()=>{"use strict";l.r(u),l.d(u,{BkCascader:()=>k,BkCascaderPanel:()=>d,default:()=>N});var e=l(4212),t=l(748),r=l(210),n=l(4061),o=l(6870),i=l(5537),a=l.n(i);l(7162),Symbol("BkSelect"),Symbol("BkOptionGroup");var s=l(5800),c=l.n(s);const d=(0,t.defineComponent)({name:"CascaderPanel",props:{width:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]).def(216),store:e.PropTypes.object.def({}),separator:e.PropTypes.string.def(""),suggestions:e.PropTypes.arrayOf((0,r.object)()),isFiltering:e.PropTypes.bool.def(!1),searchKey:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def(""),modelValue:e.PropTypes.arrayOf(e.PropTypes.oneOfType([(0,r.array)(),String,Number]))},emits:["update:modelValue"],setup:function(r,n){var i=n.emit,a=r.store,s=(0,t.reactive)({list:[r.store.getNodes()]}),c=(0,t.ref)([]),l=(0,t.ref)([]),u=function(e){return"number"==typeof e?"".concat(e,"px"):e},d=u(r.height),h=u(r.width),p=function(e){e.isDisabled||(e.config.multiple?l.value=a.getCheckedNodes().map((function(e){return e.path})):l.value=e.path,i("update:modelValue",l.value))},f=function(e){var t;if(e&&!(null==e?void 0:e.isDisabled)){if(s.list=s.list.slice(0,e.level),c.value=c.value.slice(0,e.level-1),null===(t=e.children)||void 0===t?void 0:t.length)return s.list.push(e.children),void c.value.push(e);a.config.isRemote&&!e.isLeaf&&(e.loading=!0,a.config.remoteMethod(e,(function(t){a.appendNodes(t,e||null),s.list.push(e.children),c.value.push(e),e.loading=!1})))}},v=function(e,t){e.setNodeCheck(t||!1),p(e)};return(0,t.watch)((function(){return r.modelValue}),(function(e){!function(e){0===e.length&&(s.list=s.list.slice(0,1),c.value=[]),e.forEach((function(e){var t=a.getNodeById(e);f(t)})),l.value=e}(e)}),{immediate:!0}),(0,t.watch)((function(){return r.store}),(function(e){s.list=[e.getNodes()]})),{menus:s,activePath:c,nodeExpandHandler:f,isNodeInPath:function(e){return(c.value[e.level-1]||{}).id===e.id},nodeEvent:function(e){var t=e.config,r=t.trigger,n=t.checkAnyLevel,o=t.multiple;return{onClick:function(t){e.isLeaf&&!o||t.stopPropagation(),"click"===r&&f(e),n&&!o&&p(e),e.isLeaf&&!o&&p(e)},onMouseenter:function(){"hover"===r&&f(e)}}},isCheckedNode:function(t,r){return t.config.multiple?r.some((function(r){return(0,e.arrayEqual)(r,t.path)})):(0,e.arrayEqual)(r,t.path)},checkValue:l,checkNode:v,iconRender:function(e){return e.loading?(0,t.createVNode)(o.Spinner,{class:"icon-spinner"},null):(0,t.createVNode)(o.AngleRight,{class:"icon-angle-right"},null)},panelWidth:h,panelHeight:d,searchPanelEvents:function(e){var t=e.config.multiple;return{onClick:function(r){if(t)return r.stopPropagation(),void v(e,!e.checked);f(e),e.isLeaf&&!t&&p(e)}}}}},render:function(){var e=this,r=parseInt(this.panelWidth,10)>200?this.panelWidth:"".concat(200,"px");return(0,t.createVNode)("div",{class:"bk-cascader-panel-wrapper"},[this.isFiltering?e.suggestions.length?(0,t.createVNode)("ul",{class:"bk-cascader-panel bk-scroll-y",style:{height:e.panelHeight,width:e.panelWidth}},[e.suggestions.map((function(r){return(0,t.createVNode)("li",(0,t.mergeProps)({class:["bk-cascader-node",{"is-selected":e.isNodeInPath(r)},{"is-disabled":r.isDisabled},{"is-checked":e.isCheckedNode(r,e.checkValue)}]},e.searchPanelEvents(r)),[r.pathNames.join(e.separator)])}))]):(0,t.createVNode)("div",{class:"bk-cascader-search-empty",style:{width:r}},[(0,t.createVNode)("span",null,[(0,t.createTextVNode)("暂无搜索结果")])]):this.menus.list.map((function(r){return(0,t.createVNode)("ul",{class:"bk-cascader-panel bk-scroll-y",style:{height:e.panelHeight,width:e.panelWidth}},[r.map((function(r){var n,o;return(0,t.createVNode)("li",(0,t.mergeProps)({class:["bk-cascader-node",{"is-selected":e.isNodeInPath(r)},{"is-disabled":r.isDisabled},{"is-checked":!r.config.multiple&&e.isCheckedNode(r,e.checkValue)}]},Object.assign(e.nodeEvent(r),(r.config.multiple,{}))),[r.config.multiple&&(0,t.createVNode)(c(),{disabled:r.isDisabled,modelValue:r.checked,"onUpdate:modelValue":function(e){return r.checked=e},indeterminate:r.isIndeterminate,onChange:function(t){return e.checkNode(r,t)}},null),null===(o=(n=e.$slots).default)||void 0===o?void 0:o.call(n,{node:r,data:r.data}),r.isLeaf?"":e.iconRender(r)])}))])}))])}});function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(e){return!!e.data.disabled||(1!==e.level?v(e.parent):e.data.disabled)}const y=function(){function t(e,r,n){h(this,t),this.data=e,this.config=r,this.parent=n||null,this.leaf=e.leaf,this.level=this.parent?this.parent.level+1:1,this.initState()}return f(t,[{key:"initState",value:function(){var e=this,r=this.config,n=r.idKey,o=r.nameKey,i=r.childrenKey;this.id=this.data[n],this.name=this.data[o],this.loading=!1,this.loaded=!1,this.checked=!1;var a=this.data[i];this.children=(a||[]).map((function(r){return new t(r,e.config,e)})),this.pathNodes=this.calculateNodesPath(),this.path=this.pathNodes.map((function(e){return e.id})),this.pathNames=this.pathNodes.map((function(e){return e.name}))}},{key:"isLeaf",get:function(){var e;return this.config.isRemote?this.leaf||!!this.loaded&&!this.children.length:!(Array.isArray(this.children)&&0!==(null===(e=this.children)||void 0===e?void 0:e.length))}},{key:"isDisabled",get:function(){return v(this)}},{key:"broadcast",value:function(t,r){var n="onParent".concat((0,e.capitalize)(t));this.children.forEach((function(e){var o;e&&(e.broadcast(t,r),null===(o=e[n])||void 0===o||o.call(e,r))}))}},{key:"emit",value:function(t){var r,n=this.parent,o="onChild".concat((0,e.capitalize)(t));n&&(null===(r=n[o])||void 0===r||r.call(n),n.emit(t))}},{key:"onParentCheck",value:function(e){this.isDisabled||this.setCheckState(e)}},{key:"onChildCheck",value:function(){var e=this.children.filter((function(e){return!e.isDisabled})),t=!!e.length&&e.every((function(e){return e.checked}));this.setCheckState(t)}},{key:"setCheckState",value:function(e){var t=this.children.length,r=this.children.reduce((function(e,t){var r=t.isIndeterminate?.5:0;return e+(t.checked?1:r)}),0);this.checked=e,this.isIndeterminate=r!==t&&r>0}},{key:"setNodeCheck",value:function(e){if(this.checked!==e){if(this.config.checkAnyLevel)return void(this.checked=e);this.broadcast("check",e),this.setCheckState(e),this.emit("check")}}},{key:"calculateNodesPath",value:function(){for(var e=[this],t=this.parent;t;)e.unshift(t),t=t.parent;return e}}]),t}();var g=function e(t,r){return t.reduce((function(t,n){return n.isLeaf?t.push(n):(!r&&t.push(n),t=t.concat(e(n.children,r))),t}),[])};const m=function(){function t(e){var r=this;h(this,t);var n=e.list;this.data=n,this.config=e,this.nodes=this.data.map((function(e){return new y(e,r.config)}))}return f(t,[{key:"getNodes",value:function(){return this.nodes}},{key:"clearChecked",value:function(){this.getFlattedNodes().forEach((function(e){e.checked=!1,e.isIndeterminate=!1}))}},{key:"removeTag",value:function(t){this.getFlattedNodes().find((function(r){return!!(0,e.arrayEqual)(t,r.path)&&(r.checked=!1,!0)}))}},{key:"getFlattedNodes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return g(this.nodes,e)}},{key:"getCheckedNodes",value:function(){return this.getFlattedNodes().filter((function(e){return e.checked}))}},{key:"getNodeByValue",value:function(t){var r;return null!==(r=this.getFlattedNodes().filter((function(r){return(0,e.arrayEqual)(r.path,t)}))[0])&&void 0!==r?r:null}},{key:"getNodeById",value:function(e){return this.getFlattedNodes().find((function(t){return t.id===e}))}},{key:"appendNode",value:function(e,t){var r=new y(e,this.config,t);(t?t.children:this.nodes).push(r)}},{key:"appendNodes",value:function(e,t){var r=this;e.forEach((function(e){return r.appendNode(e,t)}))}}]),t}(),b=(0,t.defineComponent)({name:"Cascader",directives:{clickoutside:n.clickoutside},components:{CascaderPanel:d,BkPopover:a()},props:{modelValue:e.PropTypes.arrayOf(e.PropTypes.oneOfType([(0,r.array)(),String,Number])),list:e.PropTypes.array.def([]),placeholder:e.PropTypes.string.def("请选择"),filterable:e.PropTypes.bool.def(!1),multiple:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),clearable:e.PropTypes.bool.def(!0),trigger:e.PropTypes.string.def("click"),checkAnyLevel:e.PropTypes.bool.def(!1),isRemote:e.PropTypes.bool.def(!1),remoteMethod:e.PropTypes.func,showCompleteName:e.PropTypes.bool.def(!0),idKey:e.PropTypes.string.def("id"),nameKey:e.PropTypes.string.def("name"),childrenKey:e.PropTypes.string.def("children"),separator:e.PropTypes.string.def("/"),limitOneLine:e.PropTypes.bool.def(!1),extCls:e.PropTypes.string.def(""),scrollHeight:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]).def(216),scrollWidth:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]).def("auto")},emits:["update:modelValue","change","clear","toggle"],setup:function(r,n){var o=n.emit,i=r.separator,a=r.multiple,s=function(){var e=(0,t.ref)(!1);return{isHover:e,setHover:function(){e.value=!0},cancelHover:function(){e.value=!1}}}(),c=s.isHover,l=s.setHover,u=s.cancelHover,d=(0,t.ref)(new m(r)),h=(0,t.ref)(!1),p=(0,t.ref)(""),f=(0,t.ref)([]),v=(0,t.toRefs)(r).modelValue,y=(0,t.ref)(),g=(0,t.ref)(""),b=(0,t.ref)([]),k=(0,t.ref)(!1),N=(0,t.computed)({get:function(){return v.value},set:function(e){o("update:modelValue",e)}}),w=(0,t.ref)(null),P=function(e){return r.showCompleteName?e.pathNames.join(i):e.pathNames[e.pathNames.length-1]},T=function(e){var t;if(a)f.value=d.value.getCheckedNodes().map((function(e){return{text:P(e),key:e.id}}));else{if(!r.checkAnyLevel&&(null===(t=null==w?void 0:w.value)||void 0===t||t.hide()),0===e.length)p.value="";else{var n=d.value.getNodeByValue(e);if(!n)return;p.value=P(n)}g.value=p.value}},x=(0,e.debounce)(200,(function(e){var t=e.target;if(g.value=t.value,""!==g.value){k.value=!0;var n=d.value.getFlattedNodes().filter((function(e){return(r.checkAnyLevel||e.isLeaf)&&e.pathNames.join(r.separator).includes(g.value)}));b.value=n,!(null==w?void 0:w.value.isShow)&&(null==w||w.value.show())}else k.value=!1}));return(0,t.watch)((function(){return r.modelValue}),(function(e,t){T(e),o("update:modelValue",e),void 0!==t&&o("change",e)}),{immediate:!0}),(0,t.watch)((function(){return r.list}),(function(){d.value=new m(r),T(r.modelValue)}),{deep:!0,immediate:!0}),{store:d,updateValue:T,panelShow:h,selectedText:p,checkedValue:N,handleClear:function(e){e.stopPropagation(),d.value.clearChecked(),g.value="",T([]),o("update:modelValue",[]),o("clear",JSON.parse(JSON.stringify(r.modelValue)))},isHover:c,setHover:l,popover:w,cancelHover:u,selectedTags:f,removeTag:function(e,t,r){r.stopPropagation();var n=JSON.parse(JSON.stringify(e)),i=n.splice(t,1)[0];d.value.removeTag(i),T(n),o("update:modelValue",d.value.getCheckedNodes().map((function(e){return e.path})))},cascaderPanel:y,popoverChangeEmitter:function(e){o("toggle",e.isShow),e.isShow||(k.value=!1)},searchKey:g,suggestions:b,isFiltering:k,searchInputHandler:x}},render:function(){var e=this;return(0,t.createVNode)("div",{class:["bk-cascader","bk-cascader-wrapper",this.extCls,{"bk-is-show-panel":this.panelShow,"is-unselected":0===this.modelValue.length,"is-hover":this.isHover,"is-filterable":this.filterable}],tabindex:"0","data-placeholder":this.placeholder,onMouseenter:this.setHover,onMouseleave:this.cancelHover},[e.clearable&&e.isHover?(0,t.createVNode)(o.Close,{class:"bk-icon-clear-icon",onClick:e.handleClear},null):(0,t.createVNode)(o.AngleUp,{class:"bk-icon-angle-up"},null),(0,t.createVNode)(a(),{placement:"bottom-start",theme:"light bk-cascader-popover",trigger:"click",arrow:!1,class:"bk-cascader-popover-wrapper",ref:"popover",onAfterHidden:this.popoverChangeEmitter,onAfterShow:this.popoverChangeEmitter,boundary:"body"},{default:function(){return(0,t.createVNode)("div",{class:"bk-cascader-name"},[e.multiple&&e.selectedTags.length>0&&(e.limitOneLine?(0,t.createVNode)("span",null,[e.selectedText]):(0,t.createVNode)("div",{class:"cascader-tag-list"},[e.selectedTags.map((function(r,n){return(0,t.createVNode)("span",{class:"cascader-tag-item"},[(0,t.createVNode)("span",{class:"cascader-tag-item-name"},[r.text]),(0,t.createVNode)(o.Error,{class:"bk-icon-clear-icon",onClick:function(t){return e.removeTag(e.modelValue,n,t)}},null)])}))])),e.filterable?(0,t.createVNode)("input",{class:"bk-cascader-search-input",type:"text",onInput:e.searchInputHandler,placeholder:e.placeholder,value:e.searchKey},null):(0,t.createVNode)("span",null,[e.selectedText])])},content:function(){return(0,t.createVNode)("div",{class:"bk-cascader-popover"},[(0,t.createVNode)(d,{store:e.store,ref:"cascaderPanel",width:e.scrollWidth,height:e.scrollHeight,"search-key":e.searchKey,separator:e.separator,"is-filtering":e.isFiltering,suggestions:e.suggestions,modelValue:e.checkedValue,"onUpdate:modelValue":function(t){return e.checkedValue=t}},{default:function(r){return e.$slots.default?e.$slots.default(r):(0,t.createVNode)("span",{class:"bk-cascader-node-name"},[r.node.name])}})])}})])}});var k=(0,e.withInstallProps)(b,{CascaderPanel:d});const N=k})(),u})()));
@@ -0,0 +1,51 @@
1
+ export interface IPanel {
2
+ id: string;
3
+ name: string;
4
+ disabled?: boolean;
5
+ children?: IPanel;
6
+ }
7
+ export interface INodeConfig {
8
+ multiple: boolean;
9
+ }
10
+ export interface INode {
11
+ checked: boolean;
12
+ children?: (null)[] | null;
13
+ config: IConfig;
14
+ data: IData;
15
+ leaf: boolean;
16
+ id: string;
17
+ level: number;
18
+ loading: boolean;
19
+ loaded: boolean;
20
+ name: string;
21
+ parent?: INode;
22
+ isDisabled: boolean;
23
+ isIndeterminate: boolean;
24
+ isLeaf: boolean;
25
+ pathNames: string[];
26
+ path: string[];
27
+ setNodeCheck(status: boolean): void;
28
+ broadcast(event: string, check: boolean): void;
29
+ emit(event: string): void;
30
+ }
31
+ export interface IData {
32
+ id: string;
33
+ name: string;
34
+ leaf?: boolean;
35
+ disabled?: boolean;
36
+ children?: IData[];
37
+ }
38
+ export interface IConfig {
39
+ checkAnyLevel: boolean;
40
+ childrenKey: string;
41
+ clearable: boolean;
42
+ disabled: boolean;
43
+ idKey: string;
44
+ isRemote: boolean;
45
+ multiple: boolean;
46
+ nameKey: string;
47
+ showCompleteName: boolean;
48
+ trigger: string;
49
+ separator: string;
50
+ remoteMethod: Function;
51
+ }
@@ -0,0 +1,31 @@
1
+ import { IConfig, IData, INode } from './interface';
2
+ declare class Node implements INode {
3
+ data: IData;
4
+ config: IConfig;
5
+ parent: INode;
6
+ level: number;
7
+ id: string;
8
+ name: string;
9
+ loading: boolean;
10
+ loaded: boolean;
11
+ checked: boolean;
12
+ isIndeterminate: boolean;
13
+ children?: null[];
14
+ leaf: boolean;
15
+ pathNodes: INode[];
16
+ path: string[];
17
+ pathNames: string[];
18
+ nodes: INode[];
19
+ constructor(node: IData, config: any, parent?: any);
20
+ initState(): void;
21
+ get isLeaf(): boolean;
22
+ get isDisabled(): any;
23
+ broadcast(event: string, checkStatus: boolean): void;
24
+ emit(event: string): void;
25
+ onParentCheck(checked: boolean): void;
26
+ onChildCheck(): void;
27
+ setCheckState(checked: boolean): void;
28
+ setNodeCheck(status: boolean): void;
29
+ calculateNodesPath(): INode[];
30
+ }
31
+ export default Node;
@@ -0,0 +1,23 @@
1
+ import { IConfig, IData, INode } from './interface';
2
+ declare class Store {
3
+ data: IData[];
4
+ config: IConfig;
5
+ nodes: INode[];
6
+ constructor(props: any);
7
+ getNodes(): INode[];
8
+ /** 清空所有checked */
9
+ clearChecked(): void;
10
+ /** 移除某一个Tag的check状态 */
11
+ removeTag(tag: string[]): void;
12
+ /** 拍平节点,方便筛选 */
13
+ getFlattedNodes(leafOnly?: boolean): any;
14
+ /** 获取多选下,被选中(checked)的节点 */
15
+ getCheckedNodes(): any;
16
+ /** 根据值获得node实例 */
17
+ getNodeByValue(value: Array<number | string | string[]>): INode;
18
+ getNodeById(id: number | string): INode;
19
+ /** 插入单个节点 */
20
+ appendNode(nodeData: IData, parentNode: IData): void;
21
+ appendNodes(nodeDataList: IData[], parentNode: IData): void;
22
+ }
23
+ export default Store;
@@ -11,6 +11,11 @@ declare const checkboxGroupProps: {
11
11
  disabled: import("vue-types").VueTypeValidableDef<boolean> & {
12
12
  default: boolean;
13
13
  };
14
+ withValidate: import("vue-types").VueTypeValidableDef<boolean> & {
15
+ default: boolean;
16
+ } & {
17
+ default: boolean;
18
+ };
14
19
  };
15
20
  export declare type CheckboxGroupProps = Readonly<ExtractPropTypes<typeof checkboxGroupProps>>;
16
21
  declare const _default: import("vue").DefineComponent<{
@@ -25,6 +30,11 @@ declare const _default: import("vue").DefineComponent<{
25
30
  disabled: import("vue-types").VueTypeValidableDef<boolean> & {
26
31
  default: boolean;
27
32
  };
33
+ withValidate: import("vue-types").VueTypeValidableDef<boolean> & {
34
+ default: boolean;
35
+ } & {
36
+ default: boolean;
37
+ };
28
38
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
29
39
  name: import("vue-types").VueTypeValidableDef<string> & {
30
40
  default: string;
@@ -37,6 +47,11 @@ declare const _default: import("vue").DefineComponent<{
37
47
  disabled: import("vue-types").VueTypeValidableDef<boolean> & {
38
48
  default: boolean;
39
49
  };
50
+ withValidate: import("vue-types").VueTypeValidableDef<boolean> & {
51
+ default: boolean;
52
+ } & {
53
+ default: boolean;
54
+ };
40
55
  }>> & {
41
56
  onChange?: (...args: any[]) => any;
42
57
  "onUpdate:modelValue"?: (...args: any[]) => any;
@@ -44,5 +59,6 @@ declare const _default: import("vue").DefineComponent<{
44
59
  name: string;
45
60
  disabled: boolean;
46
61
  modelValue: unknown[];
62
+ withValidate: boolean;
47
63
  }>;
48
64
  export default _default;
@@ -1,30 +1,63 @@
1
+ .bk-checkbox-group {
2
+ display: inline-flex;
3
+ letter-spacing: normal;
4
+ }
1
5
  .bk-checkbox {
2
- display: inline-block;
3
- margin-right: 30px;
6
+ display: inline-flex;
7
+ justify-self: center;
8
+ align-items: center;
4
9
  font-size: 14px;
5
10
  letter-spacing: normal;
6
11
  color: #63656e;
7
12
  cursor: pointer;
8
13
  user-select: none;
9
14
  }
15
+ .bk-checkbox ~ .bk-checkbox {
16
+ margin-left: 30px;
17
+ }
10
18
  .bk-checkbox.is-checked .bk-checkbox-input {
11
19
  background: #3a84ff;
12
20
  border-color: #3a84ff;
13
21
  transition: all 0.1s;
14
22
  }
23
+ .bk-checkbox.is-checked .bk-checkbox-input.small::after {
24
+ width: 3px;
25
+ height: 6px;
26
+ }
15
27
  .bk-checkbox.is-checked .bk-checkbox-input::after {
16
28
  position: absolute;
17
- top: 1px;
18
- left: 5px;
29
+ top: 50%;
30
+ left: 50%;
19
31
  width: 4px;
20
32
  height: 8px;
21
33
  border: 2px solid #fff;
22
34
  border-top: 0;
23
35
  border-left: 0;
24
36
  content: '';
25
- transform: scaleY(1) rotate(45deg);
37
+ transform: translate(-50%, -60%) scaleY(1) rotate(45deg);
26
38
  transform-origin: center;
27
39
  }
40
+ .bk-checkbox.is-indeterminated .bk-checkbox-input {
41
+ background: #3a84ff;
42
+ border-color: #3a84ff;
43
+ transition: all 0.1s;
44
+ }
45
+ .bk-checkbox.is-indeterminated .bk-checkbox-input.small::after {
46
+ width: 6px;
47
+ height: 2px;
48
+ }
49
+ .bk-checkbox.is-indeterminated .bk-checkbox-input::after {
50
+ position: absolute;
51
+ top: 50%;
52
+ left: 50%;
53
+ width: 8px;
54
+ height: 2px;
55
+ background: #fff;
56
+ border: none;
57
+ border-radius: 2px;
58
+ content: '';
59
+ transform: translate(-50%, -50%);
60
+ }
28
61
  .bk-checkbox.is-disabled {
29
62
  color: #c4c6cc;
30
63
  cursor: not-allowed;
@@ -39,17 +72,20 @@
39
72
  .bk-checkbox.is-disabled.is-checked .bk-checkbox-input {
40
73
  background: #dcdee5;
41
74
  }
42
- .bk-checkbox .bk-checkbox-input {
75
+ .bk-checkbox-input {
43
76
  position: relative;
44
77
  display: inline-block;
45
78
  width: 16px;
46
79
  height: 16px;
47
- margin-right: 5px;
48
80
  vertical-align: middle;
49
81
  border: 1px solid #979ba5;
50
82
  border-radius: 2px;
51
83
  }
52
- .bk-checkbox .bk-checkbox-original {
84
+ .bk-checkbox-input.small {
85
+ width: 14px;
86
+ height: 14px;
87
+ }
88
+ .bk-checkbox-original {
53
89
  position: absolute;
54
90
  top: 0;
55
91
  left: 0;
@@ -57,8 +93,8 @@
57
93
  width: 0;
58
94
  height: 0;
59
95
  }
60
- .bk-checkbox .bk-checkbox-label {
96
+ .bk-checkbox-label {
61
97
  display: inline-block;
62
- line-height: 18px;
98
+ margin-left: 5px;
63
99
  vertical-align: middle;
64
100
  }
@@ -1,11 +1,7 @@
1
1
  import type { ExtractPropTypes } from 'vue';
2
2
  export declare const checkboxProps: {
3
- modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
4
- default: string | number | boolean;
5
- };
6
- label: import("vue-types").VueTypeDef<string | number | boolean> & {
7
- required: true;
8
- };
3
+ modelValue: import("vue-types").VueTypeDef<string | number | boolean>;
4
+ label: import("vue-types").VueTypeDef<string | number | boolean>;
9
5
  trueLabel: import("vue-types").VueTypeDef<string | number | boolean> & {
10
6
  default: string | number | boolean;
11
7
  };
@@ -28,16 +24,19 @@ export declare const checkboxProps: {
28
24
  beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
29
25
  default: (...args: any[]) => any;
30
26
  };
31
- size: import("vue-types").VueTypeDef<string>;
27
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large"> & {
28
+ default: "small" | "default" | "large";
29
+ };
30
+ immediateEmitChange: import("vue-types").VueTypeValidableDef<boolean> & {
31
+ default: boolean;
32
+ } & {
33
+ default: boolean;
34
+ };
32
35
  };
33
36
  export declare type CheckboxProps = Readonly<ExtractPropTypes<typeof checkboxProps>>;
34
37
  declare const _default: import("vue").DefineComponent<{
35
- modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
36
- default: string | number | boolean;
37
- };
38
- label: import("vue-types").VueTypeDef<string | number | boolean> & {
39
- required: true;
40
- };
38
+ modelValue: import("vue-types").VueTypeDef<string | number | boolean>;
39
+ label: import("vue-types").VueTypeDef<string | number | boolean>;
41
40
  trueLabel: import("vue-types").VueTypeDef<string | number | boolean> & {
42
41
  default: string | number | boolean;
43
42
  };
@@ -60,22 +59,27 @@ declare const _default: import("vue").DefineComponent<{
60
59
  beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
61
60
  default: (...args: any[]) => any;
62
61
  };
63
- size: import("vue-types").VueTypeDef<string>;
62
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large"> & {
63
+ default: "small" | "default" | "large";
64
+ };
65
+ immediateEmitChange: import("vue-types").VueTypeValidableDef<boolean> & {
66
+ default: boolean;
67
+ } & {
68
+ default: boolean;
69
+ };
64
70
  }, {
65
- currentValue: import("vue").ComputedRef<string | number | boolean>;
71
+ inputRef: import("vue").Ref<any>;
66
72
  isFocus: import("vue").Ref<boolean>;
67
- isChecked: import("vue").ComputedRef<boolean>;
73
+ isChecked: import("vue").Ref<boolean>;
68
74
  isDisabled: import("vue").ComputedRef<boolean>;
75
+ setChecked: (value?: boolean) => void;
69
76
  handleBlur: () => void;
70
77
  handleFocus: () => void;
71
78
  handleChange: (event: Event) => void;
79
+ size: "small" | "default" | "large";
72
80
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
73
- modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
74
- default: string | number | boolean;
75
- };
76
- label: import("vue-types").VueTypeDef<string | number | boolean> & {
77
- required: true;
78
- };
81
+ modelValue: import("vue-types").VueTypeDef<string | number | boolean>;
82
+ label: import("vue-types").VueTypeDef<string | number | boolean>;
79
83
  trueLabel: import("vue-types").VueTypeDef<string | number | boolean> & {
80
84
  default: string | number | boolean;
81
85
  };
@@ -98,17 +102,25 @@ declare const _default: import("vue").DefineComponent<{
98
102
  beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
99
103
  default: (...args: any[]) => any;
100
104
  };
101
- size: import("vue-types").VueTypeDef<string>;
105
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large"> & {
106
+ default: "small" | "default" | "large";
107
+ };
108
+ immediateEmitChange: import("vue-types").VueTypeValidableDef<boolean> & {
109
+ default: boolean;
110
+ } & {
111
+ default: boolean;
112
+ };
102
113
  }>> & {
103
114
  onChange?: (...args: any[]) => any;
104
115
  "onUpdate:modelValue"?: (...args: any[]) => any;
105
116
  }, {
106
117
  disabled: boolean;
107
- modelValue: string | number | boolean;
118
+ size: "small" | "default" | "large";
108
119
  trueLabel: string | number | boolean;
109
120
  falseLabel: string | number | boolean;
110
121
  checked: boolean;
111
122
  indeterminate: boolean;
112
123
  beforeChange: (...args: any[]) => any;
124
+ immediateEmitChange: boolean;
113
125
  }>;
114
126
  export default _default;
@@ -1,41 +1,86 @@
1
1
  @import '../styles/themes/themes.less';
2
2
 
3
+ .@{bk-prefix}-checkbox-group {
4
+ display: inline-flex;
5
+ letter-spacing: normal;
6
+ }
7
+
3
8
  .@{bk-prefix}-checkbox {
4
- display: inline-block;
5
- margin-right: 30px;
9
+ display: inline-flex;
10
+ justify-self: center;
11
+ align-items: center;
6
12
  font-size: 14px;
7
13
  letter-spacing: normal;
8
14
  color: #63656e;
9
15
  cursor: pointer;
10
16
  user-select: none;
11
17
 
18
+ & ~ .@{bk-prefix}-checkbox {
19
+ margin-left: 30px;
20
+ }
21
+
12
22
  &.is-checked {
13
- .bk-checkbox-input {
23
+ .@{bk-prefix}-checkbox-input {
14
24
  background: @primary-color;
15
25
  border-color: @primary-color;
16
26
  transition: all .1s;
17
27
 
28
+ &.small {
29
+ &::after {
30
+ width: 3px;
31
+ height: 6px;
32
+ }
33
+ }
34
+
18
35
  &::after {
19
36
  position: absolute;
20
- top: 1px;
21
- left: 5px;
37
+ top: 50%;
38
+ left: 50%;
22
39
  width: 4px;
23
40
  height: 8px;
24
41
  border: 2px solid #fff;
25
42
  border-top: 0;
26
43
  border-left: 0;
27
44
  content: '';
28
- transform: scaleY(1) rotate(45deg);
45
+ transform: translate(-50%, -60%) scaleY(1) rotate(45deg);
29
46
  transform-origin: center;
30
47
  }
31
48
  }
32
49
  }
33
50
 
51
+ &.is-indeterminated {
52
+ .@{bk-prefix}-checkbox-input {
53
+ background: @primary-color;
54
+ border-color: @primary-color;
55
+ transition: all .1s;
56
+
57
+ &.small {
58
+ &::after {
59
+ width: 6px;
60
+ height: 2px;
61
+ }
62
+ }
63
+
64
+ &::after {
65
+ position: absolute;
66
+ top: 50%;
67
+ left: 50%;
68
+ width: 8px;
69
+ height: 2px;
70
+ background: #fff;
71
+ border: none;
72
+ border-radius: 2px;
73
+ content: '';
74
+ transform: translate(-50%, -50%);
75
+ }
76
+ }
77
+ }
78
+
34
79
  &.is-disabled {
35
80
  color: #c4c6cc;
36
81
  cursor: not-allowed;
37
82
 
38
- .bk-checkbox-input {
83
+ .@{bk-prefix}-checkbox-input {
39
84
  background: #fafbfd;
40
85
  border-color: @disable-color;
41
86
 
@@ -45,36 +90,39 @@
45
90
  }
46
91
 
47
92
  &.is-checked {
48
- .bk-checkbox-input {
93
+ .@{bk-prefix}-checkbox-input {
49
94
  background: @disable-color;
50
95
  }
51
96
  }
52
97
  }
98
+ }
53
99
 
54
- .bk-checkbox-input {
55
- position: relative;
56
- display: inline-block;
57
- width: 16px;
58
- height: 16px;
59
- margin-right: 5px;
60
- vertical-align: middle;
61
- border: 1px solid #979ba5;
62
- border-radius: 2px;
63
-
64
- }
100
+ .@{bk-prefix}-checkbox-input {
101
+ position: relative;
102
+ display: inline-block;
103
+ width: 16px;
104
+ height: 16px;
105
+ vertical-align: middle;
106
+ border: 1px solid #979ba5;
107
+ border-radius: 2px;
65
108
 
66
- .bk-checkbox-original {
67
- position: absolute;
68
- top: 0;
69
- left: 0;
70
- z-index: -1;
71
- width: 0;
72
- height: 0;
109
+ &.small {
110
+ width: 14px;
111
+ height: 14px;
73
112
  }
113
+ }
74
114
 
75
- .bk-checkbox-label {
76
- display: inline-block;
77
- line-height: 18px;
78
- vertical-align: middle;
79
- }
115
+ .@{bk-prefix}-checkbox-original {
116
+ position: absolute;
117
+ top: 0;
118
+ left: 0;
119
+ z-index: -1;
120
+ width: 0;
121
+ height: 0;
122
+ }
123
+
124
+ .@{bk-prefix}-checkbox-label {
125
+ display: inline-block;
126
+ margin-left: 5px;
127
+ vertical-align: middle;
80
128
  }