bkui-vue 0.0.1-beta.3 → 0.0.1-beta.32

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 (453) hide show
  1. package/README.md +31 -19
  2. package/README_EN.md +93 -0
  3. package/dist/bkui-vue.cjs.js +18095 -2770
  4. package/dist/bkui-vue.esm.js +18052 -2776
  5. package/dist/bkui-vue.umd.js +18097 -2772
  6. package/dist/style.css +4114 -259
  7. package/lib/alert/alert.d.ts +24 -15
  8. package/lib/alert/alert.variable.css +32 -0
  9. package/lib/alert/index.d.ts +180 -0
  10. package/lib/alert/index.js +1 -1
  11. package/lib/animate-number/animate-number.d.ts +12 -7
  12. package/lib/animate-number/index.d.ts +97 -0
  13. package/lib/animate-number/index.js +1 -1
  14. package/lib/backtop/backtop.d.ts +27 -13
  15. package/lib/backtop/backtop.variable.css +32 -0
  16. package/lib/backtop/index.d.ts +166 -0
  17. package/lib/backtop/index.js +10 -1
  18. package/lib/badge/badge.d.ts +40 -19
  19. package/lib/badge/badge.variable.css +32 -0
  20. package/lib/badge/index.d.ts +217 -0
  21. package/lib/badge/index.js +1 -1
  22. package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
  23. package/lib/breadcrumb/breadcrumb.css +10 -1
  24. package/lib/breadcrumb/breadcrumb.d.ts +37 -9
  25. package/lib/breadcrumb/breadcrumb.less +13 -2
  26. package/lib/breadcrumb/breadcrumb.variable.css +42 -1
  27. package/lib/breadcrumb/index.d.ts +194 -0
  28. package/lib/breadcrumb/index.js +1 -1
  29. package/lib/button/button-group.d.ts +3 -5
  30. package/lib/button/button.css +9 -0
  31. package/lib/button/button.d.ts +57 -28
  32. package/lib/button/button.less +23 -15
  33. package/lib/button/button.variable.css +41 -0
  34. package/lib/button/index.d.ts +226 -0
  35. package/lib/button/index.js +1 -1
  36. package/lib/card/card.d.ts +30 -15
  37. package/lib/card/card.variable.css +32 -0
  38. package/lib/card/index.d.ts +187 -0
  39. package/lib/card/index.js +1 -1
  40. package/lib/checkbox/checkbox-group.d.ts +13 -9
  41. package/lib/checkbox/checkbox.d.ts +31 -22
  42. package/lib/checkbox/checkbox.variable.css +32 -0
  43. package/lib/checkbox/common.d.ts +1 -1
  44. package/lib/checkbox/index.d.ts +261 -0
  45. package/lib/checkbox/index.js +1 -1
  46. package/lib/checkbox/type.d.ts +7 -6
  47. package/lib/code-diff/code-diff.css +186 -0
  48. package/lib/code-diff/code-diff.d.ts +80 -0
  49. package/lib/code-diff/code-diff.less +238 -0
  50. package/lib/code-diff/code-diff.variable.css +279 -0
  51. package/lib/code-diff/index.d.ts +154 -0
  52. package/lib/code-diff/index.js +1 -0
  53. package/lib/collapse/collapse.css +8 -0
  54. package/lib/collapse/collapse.d.ts +50 -18
  55. package/lib/collapse/collapse.less +10 -0
  56. package/lib/collapse/collapse.variable.css +8 -0
  57. package/lib/collapse/index.d.ts +166 -0
  58. package/lib/collapse/index.js +1 -1
  59. package/lib/components.d.ts +39 -0
  60. package/lib/date-picker/date-picker.css +407 -0
  61. package/lib/date-picker/date-picker.d.ts +294 -0
  62. package/lib/date-picker/date-picker.less +526 -0
  63. package/lib/date-picker/date-picker.variable.css +500 -0
  64. package/lib/date-picker/fecha.d.ts +6 -0
  65. package/lib/date-picker/index.d.ts +713 -0
  66. package/lib/date-picker/index.js +1 -0
  67. package/lib/date-picker/interface.d.ts +22 -0
  68. package/lib/date-picker/props.d.ts +111 -0
  69. package/lib/date-picker/utils.d.ts +97 -0
  70. package/lib/dialog/dialog.d.ts +57 -27
  71. package/lib/dialog/index.d.ts +286 -0
  72. package/lib/dialog/index.js +1 -1
  73. package/lib/directives/clickoutside.d.ts +3 -0
  74. package/lib/directives/index.d.ts +3 -0
  75. package/lib/directives/index.js +14 -14
  76. package/lib/directives/tooltips.d.ts +17 -0
  77. package/lib/divider/divider.css +38 -0
  78. package/lib/divider/divider.d.ts +48 -0
  79. package/lib/divider/divider.less +53 -0
  80. package/lib/divider/divider.variable.css +131 -0
  81. package/lib/divider/index.d.ts +142 -0
  82. package/lib/divider/index.js +1 -0
  83. package/lib/divider/props.d.ts +21 -0
  84. package/lib/dropdown/dropdown-item.d.ts +19 -0
  85. package/lib/dropdown/dropdown-menu.d.ts +16 -0
  86. package/lib/dropdown/dropdown.css +43 -0
  87. package/lib/dropdown/dropdown.d.ts +61 -0
  88. package/lib/dropdown/dropdown.less +54 -0
  89. package/lib/dropdown/dropdown.variable.css +136 -0
  90. package/lib/dropdown/index.d.ts +192 -0
  91. package/lib/dropdown/index.js +1 -0
  92. package/lib/exception/exception.d.ts +11 -9
  93. package/lib/exception/exception.variable.css +32 -0
  94. package/lib/exception/index.d.ts +96 -0
  95. package/lib/exception/index.js +1 -1
  96. package/lib/fixed-navbar/fixed-navbar.d.ts +15 -9
  97. package/lib/fixed-navbar/fixed-navbar.variable.css +32 -0
  98. package/lib/fixed-navbar/index.d.ts +112 -0
  99. package/lib/fixed-navbar/index.js +1 -1
  100. package/lib/form/common.d.ts +3 -0
  101. package/lib/form/form-item.d.ts +145 -0
  102. package/lib/form/form.css +48 -0
  103. package/lib/form/form.d.ts +64 -0
  104. package/lib/form/form.less +63 -0
  105. package/lib/form/form.variable.css +48 -0
  106. package/lib/form/index.d.ts +246 -0
  107. package/lib/form/index.js +1 -0
  108. package/lib/form/type.d.ts +21 -0
  109. package/lib/form/validator.d.ts +8 -0
  110. package/lib/icon/angle-double-down-line.d.ts +4 -0
  111. package/lib/icon/angle-double-down-line.js +15 -0
  112. package/lib/icon/angle-double-left-line.d.ts +4 -0
  113. package/lib/icon/angle-double-left-line.js +15 -0
  114. package/lib/icon/angle-double-left.d.ts +4 -0
  115. package/lib/icon/angle-double-left.js +15 -0
  116. package/lib/icon/angle-double-right-line.d.ts +4 -0
  117. package/lib/icon/angle-double-right-line.js +15 -0
  118. package/lib/icon/angle-double-right.d.ts +4 -0
  119. package/lib/icon/angle-double-right.js +15 -0
  120. package/lib/icon/angle-double-up-line.d.ts +4 -0
  121. package/lib/icon/angle-double-up-line.js +15 -0
  122. package/lib/icon/angle-down-fill.d.ts +4 -0
  123. package/lib/icon/angle-down-fill.js +15 -0
  124. package/lib/icon/angle-down-line.d.ts +4 -0
  125. package/lib/icon/angle-down-line.js +15 -0
  126. package/lib/icon/angle-down.d.ts +4 -0
  127. package/lib/icon/angle-down.js +15 -0
  128. package/lib/icon/angle-left.d.ts +4 -0
  129. package/lib/icon/angle-left.js +15 -0
  130. package/lib/icon/angle-right.d.ts +4 -0
  131. package/lib/icon/angle-right.js +15 -0
  132. package/lib/icon/angle-up-fill.d.ts +4 -0
  133. package/lib/icon/angle-up-fill.js +15 -0
  134. package/lib/icon/angle-up.d.ts +4 -0
  135. package/lib/icon/angle-up.js +15 -0
  136. package/lib/icon/arrows-left.d.ts +4 -0
  137. package/lib/icon/arrows-left.js +15 -0
  138. package/lib/icon/arrows-right.d.ts +4 -0
  139. package/lib/icon/arrows-right.js +15 -0
  140. package/lib/icon/bk.d.ts +4 -0
  141. package/lib/icon/bk.js +15 -0
  142. package/lib/icon/circle.d.ts +4 -0
  143. package/lib/icon/circle.js +15 -0
  144. package/lib/icon/close.d.ts +4 -0
  145. package/lib/icon/close.js +15 -0
  146. package/lib/icon/code.d.ts +4 -0
  147. package/lib/icon/code.js +15 -0
  148. package/lib/icon/cog-shape.d.ts +4 -0
  149. package/lib/icon/cog-shape.js +15 -0
  150. package/lib/icon/collapse-left.d.ts +4 -0
  151. package/lib/icon/collapse-left.js +15 -0
  152. package/lib/icon/copy.d.ts +4 -0
  153. package/lib/icon/copy.js +15 -0
  154. package/lib/icon/done.d.ts +4 -0
  155. package/lib/icon/done.js +15 -0
  156. package/lib/icon/down-shape.d.ts +4 -0
  157. package/lib/icon/down-shape.js +15 -0
  158. package/lib/icon/down-small.d.ts +4 -0
  159. package/lib/icon/down-small.js +15 -0
  160. package/lib/icon/ellipsis.d.ts +4 -0
  161. package/lib/icon/ellipsis.js +15 -0
  162. package/lib/icon/error.d.ts +4 -0
  163. package/lib/icon/error.js +15 -0
  164. package/lib/icon/eye.d.ts +4 -0
  165. package/lib/icon/eye.js +15 -0
  166. package/lib/icon/folder-open.d.ts +4 -0
  167. package/lib/icon/folder-open.js +15 -0
  168. package/lib/icon/folder-shape-open.d.ts +4 -0
  169. package/lib/icon/folder-shape-open.js +15 -0
  170. package/lib/icon/folder-shape.d.ts +4 -0
  171. package/lib/icon/folder-shape.js +15 -0
  172. package/lib/icon/folder.d.ts +4 -0
  173. package/lib/icon/folder.js +15 -0
  174. package/lib/icon/help-document-fill.d.ts +4 -0
  175. package/lib/icon/help-document-fill.js +15 -0
  176. package/lib/icon/help-fill.d.ts +4 -0
  177. package/lib/icon/help-fill.js +15 -0
  178. package/lib/icon/help.d.ts +4 -0
  179. package/lib/icon/help.js +15 -0
  180. package/lib/icon/icon.d.ts +12 -0
  181. package/lib/icon/icon.js +15 -0
  182. package/lib/icon/index.d.ts +53 -0
  183. package/lib/icon/index.js +1 -1
  184. package/lib/icon/info-line.d.ts +4 -0
  185. package/lib/icon/info-line.js +15 -0
  186. package/lib/icon/info.d.ts +4 -0
  187. package/lib/icon/info.js +15 -0
  188. package/lib/icon/left-shape.d.ts +4 -0
  189. package/lib/icon/left-shape.js +15 -0
  190. package/lib/icon/play-shape.d.ts +4 -0
  191. package/lib/icon/play-shape.js +15 -0
  192. package/lib/icon/plus.d.ts +4 -0
  193. package/lib/icon/plus.js +15 -0
  194. package/lib/icon/qq.d.ts +4 -0
  195. package/lib/icon/qq.js +15 -0
  196. package/lib/icon/right-shape.d.ts +4 -0
  197. package/lib/icon/right-shape.js +15 -0
  198. package/lib/icon/search.d.ts +4 -0
  199. package/lib/icon/search.js +15 -0
  200. package/lib/icon/share.d.ts +4 -0
  201. package/lib/icon/share.js +15 -0
  202. package/lib/icon/spinner.d.ts +4 -0
  203. package/lib/icon/spinner.js +15 -0
  204. package/lib/icon/success.d.ts +4 -0
  205. package/lib/icon/success.js +15 -0
  206. package/lib/icon/switcher-loading.d.ts +4 -0
  207. package/lib/icon/switcher-loading.js +15 -0
  208. package/lib/icon/text-file.d.ts +4 -0
  209. package/lib/icon/text-file.js +15 -0
  210. package/lib/icon/tree-application-shape.d.ts +4 -0
  211. package/lib/icon/tree-application-shape.js +15 -0
  212. package/lib/icon/unvisible.d.ts +4 -0
  213. package/lib/icon/unvisible.js +15 -0
  214. package/lib/icon/up-shape.d.ts +4 -0
  215. package/lib/icon/up-shape.js +15 -0
  216. package/lib/icon/warn.d.ts +4 -0
  217. package/lib/icon/warn.js +15 -0
  218. package/lib/icon/weixin.d.ts +4 -0
  219. package/lib/icon/weixin.js +15 -0
  220. package/lib/index.d.ts +4 -0
  221. package/lib/input/index.d.ts +417 -0
  222. package/lib/input/index.js +2 -2
  223. package/lib/input/input.css +20 -2
  224. package/lib/input/input.d.ts +97 -45
  225. package/lib/input/input.less +28 -5
  226. package/lib/input/input.variable.css +52 -2
  227. package/lib/link/index.d.ts +164 -0
  228. package/lib/link/index.js +1 -1
  229. package/lib/link/link.d.ts +25 -13
  230. package/lib/link/link.variable.css +32 -0
  231. package/lib/loading/index.d.ts +164 -0
  232. package/lib/loading/index.js +1 -1
  233. package/lib/loading/loading.css +108 -73
  234. package/lib/loading/loading.d.ts +61 -20
  235. package/lib/loading/loading.less +73 -58
  236. package/lib/loading/loading.variable.css +140 -73
  237. package/lib/menu/index.d.ts +188 -0
  238. package/lib/menu/index.js +1 -0
  239. package/lib/menu/menu-group.d.ts +14 -0
  240. package/lib/menu/menu-item.d.ts +16 -0
  241. package/lib/menu/menu.css +182 -0
  242. package/lib/menu/menu.d.ts +64 -0
  243. package/lib/menu/menu.less +180 -0
  244. package/lib/menu/menu.variable.css +275 -0
  245. package/lib/menu/submenu.css +3 -0
  246. package/lib/menu/submenu.d.ts +22 -0
  247. package/lib/menu/submenu.less +5 -0
  248. package/lib/menu/submenu.variable.css +96 -0
  249. package/lib/menu/utils.d.ts +41 -0
  250. package/lib/message/index.d.ts +2 -0
  251. package/lib/message/index.js +1 -0
  252. package/lib/message/message.css +53 -0
  253. package/lib/message/message.less +61 -0
  254. package/lib/message/message.variable.css +146 -0
  255. package/lib/message/messageConstructor.d.ts +73 -0
  256. package/lib/modal/index.d.ts +214 -0
  257. package/lib/modal/index.js +1 -1
  258. package/lib/modal/modal.d.ts +33 -15
  259. package/lib/modal/props.mixin.d.ts +5 -1
  260. package/lib/navigation/index.d.ts +2 -0
  261. package/lib/navigation/index.js +1 -0
  262. package/lib/navigation/navigation-title.d.ts +25 -0
  263. package/lib/navigation/navigation.css +184 -0
  264. package/lib/navigation/navigation.d.ts +111 -0
  265. package/lib/navigation/navigation.less +210 -0
  266. package/lib/navigation/navigation.variable.css +277 -0
  267. package/lib/notify/index.d.ts +2 -0
  268. package/lib/notify/index.js +1 -0
  269. package/lib/notify/notify.css +49 -0
  270. package/lib/notify/notify.less +58 -0
  271. package/lib/notify/notify.variable.css +142 -0
  272. package/lib/notify/notifyConstructor.d.ts +91 -0
  273. package/lib/pagination/index.d.ts +395 -0
  274. package/lib/pagination/index.js +1 -0
  275. package/lib/pagination/pagination.css +179 -0
  276. package/lib/pagination/pagination.d.ts +220 -0
  277. package/lib/pagination/pagination.less +201 -0
  278. package/lib/pagination/pagination.variable.css +272 -0
  279. package/lib/pagination/type.d.ts +6 -0
  280. package/lib/pagination/use-limit.d.ts +8 -0
  281. package/lib/pagination/use-list.d.ts +8 -0
  282. package/lib/pagination/use-small-list.d.ts +5 -0
  283. package/lib/pagination/use-total.d.ts +5 -0
  284. package/lib/popover/index.d.ts +287 -0
  285. package/lib/popover/index.js +1 -1
  286. package/lib/popover/popover.css +23 -14
  287. package/lib/popover/popover.d.ts +75 -46
  288. package/lib/popover/popover.less +57 -46
  289. package/lib/popover/popover.variable.css +55 -14
  290. package/lib/popover/props.d.ts +77 -0
  291. package/lib/preset.d.ts +7 -0
  292. package/lib/process/index.d.ts +205 -0
  293. package/lib/process/index.js +15 -0
  294. package/lib/process/process.css +138 -0
  295. package/lib/process/process.d.ts +131 -0
  296. package/lib/process/process.less +178 -0
  297. package/lib/process/process.variable.css +231 -0
  298. package/lib/progress/index.d.ts +398 -0
  299. package/lib/progress/index.js +1 -1
  300. package/lib/progress/progress.css +0 -3
  301. package/lib/progress/progress.d.ts +88 -35
  302. package/lib/progress/progress.less +0 -4
  303. package/lib/progress/progress.variable.css +32 -3
  304. package/lib/radio/common.d.ts +1 -1
  305. package/lib/radio/index.d.ts +277 -0
  306. package/lib/radio/index.js +1 -1
  307. package/lib/radio/radio-button.d.ts +24 -16
  308. package/lib/radio/radio-group.d.ts +11 -10
  309. package/lib/radio/radio.css +8 -2
  310. package/lib/radio/radio.d.ts +23 -13
  311. package/lib/radio/radio.less +9 -2
  312. package/lib/radio/radio.variable.css +40 -2
  313. package/lib/radio/type.d.ts +1 -1
  314. package/lib/rate/index.d.ts +113 -0
  315. package/lib/rate/index.js +1 -1
  316. package/lib/rate/rate.d.ts +13 -10
  317. package/lib/rate/star.d.ts +33 -16
  318. package/lib/resize-layout/index.d.ts +336 -0
  319. package/lib/resize-layout/index.js +1 -0
  320. package/lib/resize-layout/resize-layout.css +189 -0
  321. package/lib/resize-layout/resize-layout.d.ts +127 -0
  322. package/lib/resize-layout/resize-layout.less +233 -0
  323. package/lib/resize-layout/resize-layout.variable.css +282 -0
  324. package/lib/select/common.d.ts +23 -17
  325. package/lib/select/index.d.ts +1347 -0
  326. package/lib/select/index.js +15 -1
  327. package/lib/select/option.d.ts +12 -19
  328. package/lib/select/optionGroup.d.ts +54 -0
  329. package/lib/select/select.css +243 -17
  330. package/lib/select/select.d.ts +268 -155
  331. package/lib/select/select.less +245 -46
  332. package/lib/select/select.variable.css +275 -17
  333. package/lib/select/type.d.ts +31 -0
  334. package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
  335. package/lib/shared/index.d.ts +51 -0
  336. package/lib/shared/index.js +1 -1
  337. package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +32 -3
  338. package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +8 -1
  339. package/lib/shared/{bk-popover.d.ts → popover.d.ts} +57 -6
  340. package/lib/shared/utils.d.ts +6 -0
  341. package/lib/shared/vue-types.d.ts +8 -7
  342. package/lib/shared/z-index-manager.d.ts +6 -1
  343. package/lib/sideslider/index.d.ts +206 -0
  344. package/lib/sideslider/index.js +1 -1
  345. package/lib/sideslider/sideslider.d.ts +39 -18
  346. package/lib/sideslider/sideslider.variable.css +32 -0
  347. package/{changelog.config.js → lib/slider/index.d.ts} +2 -8
  348. package/lib/slider/index.js +15 -0
  349. package/lib/slider/slider-button.d.ts +80 -0
  350. package/lib/slider/slider.css +149 -0
  351. package/lib/slider/slider.d.ts +201 -0
  352. package/lib/slider/slider.less +179 -0
  353. package/lib/slider/slider.variable.css +242 -0
  354. package/lib/steps/index.d.ts +250 -0
  355. package/lib/steps/index.js +15 -0
  356. package/lib/steps/steps.css +288 -0
  357. package/lib/steps/steps.d.ts +161 -0
  358. package/lib/steps/steps.less +324 -0
  359. package/lib/steps/steps.variable.css +381 -0
  360. package/lib/styles/index.d.ts +47 -0
  361. package/lib/styles/index.js +1 -1
  362. package/lib/styles/mixins/popper.css +43 -0
  363. package/lib/styles/mixins/popper.less +52 -0
  364. package/lib/styles/mixins/popper.variable.css +43 -0
  365. package/lib/styles/mixins/size.less +9 -0
  366. package/lib/styles/reset.css +273 -0
  367. package/lib/styles/reset.less +313 -0
  368. package/lib/styles/reset.variable.css +273 -0
  369. package/lib/styles/themes/themes.less +52 -2
  370. package/lib/swiper/index.d.ts +181 -0
  371. package/lib/swiper/index.js +1 -0
  372. package/lib/swiper/swiper.css +91 -0
  373. package/lib/swiper/swiper.d.ts +65 -0
  374. package/lib/swiper/swiper.less +107 -0
  375. package/lib/swiper/swiper.variable.css +91 -0
  376. package/lib/switcher/index.d.ts +286 -0
  377. package/lib/switcher/index.js +1 -1
  378. package/lib/switcher/switcher.css +149 -135
  379. package/lib/switcher/switcher.d.ts +48 -32
  380. package/lib/switcher/switcher.less +210 -154
  381. package/lib/switcher/switcher.variable.css +181 -135
  382. package/lib/tab/index.d.ts +443 -0
  383. package/lib/tab/index.js +1 -0
  384. package/lib/tab/props.d.ts +191 -0
  385. package/lib/tab/tab-nav.d.ts +165 -0
  386. package/lib/tab/tab-panel.d.ts +73 -0
  387. package/lib/tab/tab.css +148 -0
  388. package/lib/tab/tab.d.ts +140 -0
  389. package/lib/tab/tab.less +222 -0
  390. package/lib/tab/tab.variable.css +241 -0
  391. package/lib/table/const.d.ts +4 -0
  392. package/lib/table/index.d.ts +278 -0
  393. package/lib/table/index.js +10 -1
  394. package/lib/table/props.d.ts +117 -0
  395. package/lib/table/render.d.ts +82 -0
  396. package/lib/table/table.css +90 -0
  397. package/lib/table/table.d.ts +83 -37
  398. package/lib/table/table.less +116 -1
  399. package/lib/table/table.variable.css +122 -0
  400. package/lib/table/utils.d.ts +69 -0
  401. package/lib/tag/index.d.ts +229 -0
  402. package/lib/tag/index.js +1 -1
  403. package/lib/tag/tag.css +97 -0
  404. package/lib/tag/tag.d.ts +83 -53
  405. package/lib/tag/tag.less +110 -2
  406. package/lib/tag/tag.variable.css +129 -0
  407. package/lib/tag-input/common.d.ts +24 -0
  408. package/lib/tag-input/index.d.ts +2 -0
  409. package/lib/tag-input/index.js +1 -0
  410. package/lib/tag-input/list-tag-render.d.ts +47 -0
  411. package/lib/tag-input/tag-input.css +208 -0
  412. package/lib/tag-input/tag-input.d.ts +374 -0
  413. package/lib/tag-input/tag-input.less +250 -0
  414. package/lib/tag-input/tag-input.variable.css +301 -0
  415. package/lib/tag-input/tag-props.d.ts +131 -0
  416. package/lib/tag-input/tag-render.d.ts +38 -0
  417. package/lib/timeline/index.d.ts +129 -0
  418. package/lib/timeline/index.js +1 -0
  419. package/lib/timeline/timeline.css +235 -0
  420. package/lib/timeline/timeline.d.ts +81 -0
  421. package/lib/timeline/timeline.less +239 -0
  422. package/lib/timeline/timeline.variable.css +328 -0
  423. package/lib/transfer/index.d.ts +351 -0
  424. package/lib/transfer/index.js +1 -0
  425. package/lib/transfer/transfer.css +158 -0
  426. package/lib/transfer/transfer.d.ts +185 -0
  427. package/lib/transfer/transfer.less +171 -0
  428. package/lib/transfer/transfer.variable.css +251 -0
  429. package/lib/tree/index.d.ts +279 -0
  430. package/lib/tree/index.js +1 -0
  431. package/lib/tree/props.d.ts +89 -0
  432. package/lib/tree/tree.css +50 -0
  433. package/lib/tree/tree.d.ts +121 -0
  434. package/lib/tree/tree.less +63 -0
  435. package/lib/tree/tree.variable.css +143 -0
  436. package/lib/tree/util.d.ts +70 -0
  437. package/lib/use-form.d.ts +3 -0
  438. package/lib/use-message.d.ts +2 -0
  439. package/lib/virtual-render/index.d.ts +556 -0
  440. package/lib/virtual-render/index.js +10 -0
  441. package/lib/virtual-render/props.d.ts +157 -0
  442. package/lib/virtual-render/v-virtual-render.d.ts +7 -0
  443. package/lib/virtual-render/virtual-render.css +40 -0
  444. package/lib/virtual-render/virtual-render.d.ts +244 -0
  445. package/lib/virtual-render/virtual-render.less +51 -0
  446. package/lib/virtual-render/virtual-render.variable.css +40 -0
  447. package/package.json +71 -54
  448. package/lib/checkbox-group/index.js +0 -1
  449. package/lib/radio-button/index.js +0 -1
  450. package/lib/radio-group/index.js +0 -1
  451. package/lib/table/common.d.ts +0 -3
  452. package/lib/table/table-layout.d.ts +0 -14
  453. package/lib/table/type.d.ts +0 -12
@@ -0,0 +1,244 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ onContentScroll: FunctionConstructor;
3
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
4
+ default: () => unknown[];
5
+ } & {
6
+ default: () => unknown[];
7
+ };
8
+ enabled: import("vue-types").VueTypeValidableDef<boolean> & {
9
+ default: boolean;
10
+ } & {
11
+ default: boolean;
12
+ };
13
+ lineHeight: import("vue-types").VueTypeDef<any> & {
14
+ default: any;
15
+ };
16
+ minHeight: import("vue-types").VueTypeValidableDef<number> & {
17
+ default: number;
18
+ } & {
19
+ default: number;
20
+ };
21
+ height: import("vue-types").VueTypeDef<string | number> & {
22
+ default: string | number;
23
+ };
24
+ width: import("vue-types").VueTypeDef<string | number> & {
25
+ default: string | number;
26
+ };
27
+ className: import("vue-types").VueTypeDef<string | string[] | {
28
+ [key: string]: any;
29
+ } | {
30
+ [key: string]: any;
31
+ }[]> & {
32
+ default: string | (() => {
33
+ [key: string]: any;
34
+ }) | (() => string[]) | (() => {
35
+ [key: string]: any;
36
+ }[]);
37
+ };
38
+ contentClassName: import("vue-types").VueTypeDef<string | string[] | {
39
+ [key: string]: any;
40
+ } | {
41
+ [key: string]: any;
42
+ }[]> & {
43
+ default: string | (() => {
44
+ [key: string]: any;
45
+ }) | (() => string[]) | (() => {
46
+ [key: string]: any;
47
+ }[]);
48
+ };
49
+ contentStyle: import("vue-types").VueTypeValidableDef<{
50
+ [key: string]: any;
51
+ }> & {
52
+ default: () => {
53
+ [key: string]: any;
54
+ };
55
+ } & {
56
+ default: () => {
57
+ [key: string]: any;
58
+ };
59
+ };
60
+ scrollXName: import("vue-types").VueTypeValidableDef<string> & {
61
+ default: string;
62
+ } & {
63
+ default: string;
64
+ };
65
+ scrollYName: import("vue-types").VueTypeValidableDef<string> & {
66
+ default: string;
67
+ } & {
68
+ default: string;
69
+ };
70
+ groupItemCount: import("vue-types").VueTypeValidableDef<number> & {
71
+ default: number;
72
+ } & {
73
+ default: number;
74
+ };
75
+ preloadItemCount: import("vue-types").VueTypeValidableDef<number> & {
76
+ default: number;
77
+ } & {
78
+ default: number;
79
+ };
80
+ renderAs: import("vue-types").VueTypeValidableDef<string> & {
81
+ default: string;
82
+ } & {
83
+ default: string;
84
+ };
85
+ contentAs: import("vue-types").VueTypeValidableDef<string> & {
86
+ default: string;
87
+ } & {
88
+ default: string;
89
+ };
90
+ scrollOffsetTop: import("vue-types").VueTypeValidableDef<number> & {
91
+ default: number;
92
+ } & {
93
+ default: number;
94
+ };
95
+ scrollPosition: import("vue-types").VueTypeValidableDef<string> & {
96
+ default: string;
97
+ } & {
98
+ default: string;
99
+ };
100
+ abosuteHeight: import("vue-types").VueTypeDef<string | number> & {
101
+ default: string | number;
102
+ };
103
+ throttleDelay: import("vue-types").VueTypeValidableDef<number> & {
104
+ default: number;
105
+ } & {
106
+ default: number;
107
+ };
108
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
109
+ [key: string]: any;
110
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "content-scroll", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
111
+ onContentScroll: FunctionConstructor;
112
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
113
+ default: () => unknown[];
114
+ } & {
115
+ default: () => unknown[];
116
+ };
117
+ enabled: import("vue-types").VueTypeValidableDef<boolean> & {
118
+ default: boolean;
119
+ } & {
120
+ default: boolean;
121
+ };
122
+ lineHeight: import("vue-types").VueTypeDef<any> & {
123
+ default: any;
124
+ };
125
+ minHeight: import("vue-types").VueTypeValidableDef<number> & {
126
+ default: number;
127
+ } & {
128
+ default: number;
129
+ };
130
+ height: import("vue-types").VueTypeDef<string | number> & {
131
+ default: string | number;
132
+ };
133
+ width: import("vue-types").VueTypeDef<string | number> & {
134
+ default: string | number;
135
+ };
136
+ className: import("vue-types").VueTypeDef<string | string[] | {
137
+ [key: string]: any;
138
+ } | {
139
+ [key: string]: any;
140
+ }[]> & {
141
+ default: string | (() => {
142
+ [key: string]: any;
143
+ }) | (() => string[]) | (() => {
144
+ [key: string]: any;
145
+ }[]);
146
+ };
147
+ contentClassName: import("vue-types").VueTypeDef<string | string[] | {
148
+ [key: string]: any;
149
+ } | {
150
+ [key: string]: any;
151
+ }[]> & {
152
+ default: string | (() => {
153
+ [key: string]: any;
154
+ }) | (() => string[]) | (() => {
155
+ [key: string]: any;
156
+ }[]);
157
+ };
158
+ contentStyle: import("vue-types").VueTypeValidableDef<{
159
+ [key: string]: any;
160
+ }> & {
161
+ default: () => {
162
+ [key: string]: any;
163
+ };
164
+ } & {
165
+ default: () => {
166
+ [key: string]: any;
167
+ };
168
+ };
169
+ scrollXName: import("vue-types").VueTypeValidableDef<string> & {
170
+ default: string;
171
+ } & {
172
+ default: string;
173
+ };
174
+ scrollYName: import("vue-types").VueTypeValidableDef<string> & {
175
+ default: string;
176
+ } & {
177
+ default: string;
178
+ };
179
+ groupItemCount: import("vue-types").VueTypeValidableDef<number> & {
180
+ default: number;
181
+ } & {
182
+ default: number;
183
+ };
184
+ preloadItemCount: import("vue-types").VueTypeValidableDef<number> & {
185
+ default: number;
186
+ } & {
187
+ default: number;
188
+ };
189
+ renderAs: import("vue-types").VueTypeValidableDef<string> & {
190
+ default: string;
191
+ } & {
192
+ default: string;
193
+ };
194
+ contentAs: import("vue-types").VueTypeValidableDef<string> & {
195
+ default: string;
196
+ } & {
197
+ default: string;
198
+ };
199
+ scrollOffsetTop: import("vue-types").VueTypeValidableDef<number> & {
200
+ default: number;
201
+ } & {
202
+ default: number;
203
+ };
204
+ scrollPosition: import("vue-types").VueTypeValidableDef<string> & {
205
+ default: string;
206
+ } & {
207
+ default: string;
208
+ };
209
+ abosuteHeight: import("vue-types").VueTypeDef<string | number> & {
210
+ default: string | number;
211
+ };
212
+ throttleDelay: import("vue-types").VueTypeValidableDef<number> & {
213
+ default: number;
214
+ } & {
215
+ default: number;
216
+ };
217
+ }>>, {
218
+ width: string | number;
219
+ height: string | number;
220
+ list: unknown[];
221
+ enabled: boolean;
222
+ lineHeight: any;
223
+ minHeight: number;
224
+ className: string | {
225
+ [key: string]: any;
226
+ };
227
+ contentClassName: string | {
228
+ [key: string]: any;
229
+ };
230
+ contentStyle: {
231
+ [key: string]: any;
232
+ };
233
+ scrollXName: string;
234
+ scrollYName: string;
235
+ groupItemCount: number;
236
+ preloadItemCount: number;
237
+ renderAs: string;
238
+ contentAs: string;
239
+ scrollOffsetTop: number;
240
+ scrollPosition: string;
241
+ abosuteHeight: string | number;
242
+ throttleDelay: number;
243
+ }>;
244
+ export default _default;
@@ -0,0 +1,51 @@
1
+
2
+ .bk-virtual-render {
3
+ position: relative;
4
+
5
+ .bk-virtual-content,
6
+ &.bk-virtual-content {
7
+ position: absolute;
8
+ top: 0;
9
+ bottom: 0;
10
+ left: 0;
11
+ width: 100%;
12
+ height: 100%;
13
+ }
14
+
15
+ .bk-virtual-section {
16
+ width: 1px;
17
+ background: transparent;
18
+ }
19
+
20
+
21
+ &.bk-scroll-x {
22
+ overflow-x: auto;
23
+ scrollbar-color: #a0a0a0 transparent;
24
+ scrollbar-width: thin;
25
+
26
+ &::-webkit-scrollbar {
27
+ height: 8px;
28
+ background-color: transparent;
29
+ }
30
+
31
+ &::-webkit-scrollbar-thumb {
32
+ background-color: #a0a0a0;
33
+ border-radius: 8px;
34
+ }
35
+ }
36
+
37
+ &.bk-scroll-y {
38
+ overflow-y: auto;
39
+
40
+ &::-webkit-scrollbar {
41
+ width: 6px;
42
+ background-color: transparent;
43
+ }
44
+
45
+ &::-webkit-scrollbar-thumb {
46
+ background-color: #dcdee5;
47
+ border-radius: 6px;
48
+ }
49
+ }
50
+ }
51
+
@@ -0,0 +1,40 @@
1
+ .bk-virtual-render {
2
+ position: relative;
3
+ }
4
+ .bk-virtual-render .bk-virtual-content,
5
+ .bk-virtual-render.bk-virtual-content {
6
+ position: absolute;
7
+ top: 0;
8
+ bottom: 0;
9
+ left: 0;
10
+ width: 100%;
11
+ height: 100%;
12
+ }
13
+ .bk-virtual-render .bk-virtual-section {
14
+ width: 1px;
15
+ background: transparent;
16
+ }
17
+ .bk-virtual-render.bk-scroll-x {
18
+ overflow-x: auto;
19
+ scrollbar-color: #a0a0a0 transparent;
20
+ scrollbar-width: thin;
21
+ }
22
+ .bk-virtual-render.bk-scroll-x::-webkit-scrollbar {
23
+ height: 8px;
24
+ background-color: transparent;
25
+ }
26
+ .bk-virtual-render.bk-scroll-x::-webkit-scrollbar-thumb {
27
+ background-color: #a0a0a0;
28
+ border-radius: 8px;
29
+ }
30
+ .bk-virtual-render.bk-scroll-y {
31
+ overflow-y: auto;
32
+ }
33
+ .bk-virtual-render.bk-scroll-y::-webkit-scrollbar {
34
+ width: 6px;
35
+ background-color: transparent;
36
+ }
37
+ .bk-virtual-render.bk-scroll-y::-webkit-scrollbar-thumb {
38
+ background-color: #dcdee5;
39
+ border-radius: 6px;
40
+ }
package/package.json CHANGED
@@ -1,107 +1,117 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "0.0.1-beta.3",
3
+ "version": "0.0.1-beta.32",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*"
7
7
  ]
8
8
  },
9
9
  "scripts": {
10
- "prepare1": "node ./scripts/references-config.js",
11
- "lint": "eslint ./packages ./site --ext .js,.ts,.tsx",
10
+ "lint": "eslint --ext .js,.ts,.tsx,.vue ./packages ./site ",
12
11
  "lint:style": "stylelint --fix ./packages/**/*.{css,less} --custom-syntax",
13
- "lint:fix": "eslint --fix ./packages ./site ./scripts --ext .js,.ts,.tsx",
12
+ "lint:fix": "eslint --fix ./packages ./site ./scripts --ext .js,.ts,.tsx,.vue",
14
13
  "test:unit": "jest --passWithNoTests",
15
14
  "dev": "vite serve site",
16
15
  "build": "yarn build:library && yarn build:component",
17
- "build:site": "vite build site",
16
+ "build:site": "vite build site --mode development",
18
17
  "build:library": "rimraf dist && cross-env NODE_ENV=production ts-node --project=scripts/tsconfig.scripts.json scripts/build-library.ts",
19
18
  "build:component": "rimraf lib && npm run generate:declation && cross-env NODE_ENV=production ts-node --project=scripts/tsconfig.scripts.json scripts/build-component/index.ts",
20
19
  "compile:dev": "node --inspect-brk ./node_modules/.bin/ts-node --project=./scripts/tsconfig.scripts.json ./scripts/build-component/index.ts",
21
20
  "cz": "git-cz",
22
21
  "generate:icon": "lerna run --scope @bkui-vue/icon build",
23
22
  "release": "yarn build && rimraf package.json.bak && cross-env NODE_ENV=production ts-node --project=scripts/tsconfig.scripts.json scripts/release.ts",
24
- "changelog": "conventional-changelog -c changelog.config.js -p angular -i CHANGELOG.md -s -l",
23
+ "changelog": "conventional-changelog -c .changelog.config.js -p angular -i CHANGELOG.md -s -l",
25
24
  "prepare": "husky install",
26
25
  "generate:declation": "rimraf lib && tsc -p ./scripts/tsconfig.declaration.json"
27
26
  },
28
27
  "devDependencies": {
29
- "@babel/core": "~7.14.8",
30
- "@babel/eslint-parser": "~7.14.9",
31
- "@babel/plugin-transform-runtime": "~7.14.5",
32
- "@babel/plugin-transform-typescript": "~7.14.6",
33
- "@babel/preset-env": "~7.14.9",
34
- "@babel/preset-typescript": "~7.14.5",
35
- "@commitlint/cli": "~13.1.0",
36
- "@commitlint/config-conventional": "~13.1.0",
28
+ "@babel/core": "~7.17.9",
29
+ "@babel/eslint-parser": "~7.17.0",
30
+ "@babel/plugin-transform-runtime": "~7.17.0",
31
+ "@babel/plugin-transform-typescript": "~7.16.8",
32
+ "@babel/preset-env": "~7.16.11",
33
+ "@babel/preset-typescript": "~7.16.7",
34
+ "@commitlint/cli": "~16.2.3",
35
+ "@commitlint/config-conventional": "~16.2.1",
37
36
  "@rollup/plugin-babel": "~5.3.0",
38
- "@rollup/plugin-commonjs": "~20.0.0",
37
+ "@rollup/plugin-commonjs": "~21.0.3",
39
38
  "@rollup/plugin-json": "~4.1.0",
40
- "@rollup/plugin-node-resolve": "~13.0.4",
41
- "@types/jest": "~26.0.23",
42
- "@typescript-eslint/eslint-plugin": "~4.29.0",
43
- "@typescript-eslint/parser": "~4.29.0",
44
- "@vitejs/plugin-vue": "~1.3.0",
45
- "@vitejs/plugin-vue-jsx": "~1.1.7",
46
- "@vue/babel-plugin-jsx": "~1.0.5",
39
+ "@rollup/plugin-node-resolve": "~13.2.0",
40
+ "@types/jest": "~27.4.1",
41
+ "@types/node": "~17.0.23",
42
+ "@typescript-eslint/eslint-plugin": "~5.19.0",
43
+ "@typescript-eslint/parser": "~5.19.0",
44
+ "@vitejs/plugin-vue": "~2.3.1",
45
+ "@vitejs/plugin-vue-jsx": "~1.3.9",
46
+ "@vue/babel-plugin-jsx": "~1.1.1",
47
47
  "@vue/babel-preset-jsx": "~1.2.4",
48
- "@vue/compiler-sfc": "~3.1.5",
49
- "@vue/component-compiler-utils": "~3.2.0",
48
+ "@vue/compiler-sfc": "~3.2.31",
49
+ "@vue/component-compiler-utils": "~3.3.0",
50
50
  "@vue/eslint-config-standard": "~6.1.0",
51
- "@vue/eslint-config-typescript": "~7.0.0",
51
+ "@vue/eslint-config-typescript": "~10.0.0",
52
52
  "@vue/test-utils": "~2.0.0-rc.12",
53
+ "@vue/vue3-jest": "~27.0.0-alpha.4",
54
+ "acorn": "~8.7.0",
53
55
  "acorn-jsx": "~5.3.1",
54
- "babel-jest": "~27.0.6",
56
+ "babel-jest": "~27.5.1",
55
57
  "chalk": "~4.1.2",
58
+ "clipboard": "~2.0.8",
56
59
  "commitizen": "~4.2.4",
57
- "conventional-changelog-cli": "~2.1.1",
60
+ "conventional-changelog-cli": "~2.2.2",
58
61
  "cross-env": "~7.0.3",
59
62
  "cz-lerna-changelog": "~2.0.3",
60
- "eslint": "~7.32.0",
61
- "eslint-config-tencent": "~1.0.2",
62
- "eslint-plugin-codecc": "~0.0.4",
63
- "eslint-plugin-import": "~2.23.4",
63
+ "eslint": "~8.13.0",
64
+ "eslint-config-tencent": "~1.0.4",
65
+ "eslint-plugin-codecc": "~0.1.0",
66
+ "eslint-plugin-import": "~2.26.0",
64
67
  "eslint-plugin-node": "~11.1.0",
65
- "eslint-plugin-promise": "~5.1.0",
66
- "eslint-plugin-vue": "~7.15.1",
68
+ "eslint-plugin-prettier": "~4.0.0",
69
+ "eslint-plugin-promise": "~6.0.0",
70
+ "eslint-plugin-simple-import-sort": "~7.0.0",
71
+ "eslint-plugin-vue": "~8.6.0",
72
+ "highlight.js": "~11.5.1",
67
73
  "husky": "~7.0.1",
68
- "jest": "~27.0.6",
74
+ "jest": "~27.5.1",
69
75
  "jest-transform-stub": "~2.0.0",
70
76
  "lerna": "~4.0.0",
71
77
  "less": "~4.1.1",
72
- "lint-staged": "~11.1.1",
78
+ "lint-staged": "~12.3.7",
79
+ "markdown-it-container": "~3.0.0",
73
80
  "normalize-wheel": "~1.0.1",
74
81
  "ora": "~5.4.1",
75
- "plop": "~2.7.4",
76
- "postcss": "~8.3.6",
77
- "postcss-less": "~5.0.0",
82
+ "plop": "~3.0.5",
83
+ "postcss": "~8.4.12",
84
+ "postcss-less": "~6.0.0",
85
+ "prettier": "~2.6.2",
86
+ "prismjs": "~1.27.0",
78
87
  "rimraf": "~3.0.2",
79
- "rollup": "~2.55.1",
88
+ "rollup": "~2.70.1",
80
89
  "rollup-plugin-progress": "~1.1.2",
81
90
  "rollup-plugin-svg": "~2.0.0",
82
91
  "rollup-plugin-terser": "~7.0.2",
83
- "rollup-plugin-typescript2": "~0.30.0",
84
- "stylelint": "~13.13.1",
85
- "stylelint-order": "~4.1.0",
86
- "stylelint-scss": "~3.20.1",
87
- "ts-jest": "~27.0.4",
88
- "ts-node": "~10.1.0",
89
- "typescript": "~4.3.5",
90
- "vite": "~2.4.4",
91
- "vue": "3.2.2",
92
- "vue-jest": "~5.0.0-alpha.8",
93
- "vue-router": "~4.0.10",
94
- "vue-types": "~4.0.1"
92
+ "rollup-plugin-typescript2": "~0.31.2",
93
+ "stylelint": "~14.6.1",
94
+ "stylelint-order": "~5.0.0",
95
+ "stylelint-scss": "~4.2.0",
96
+ "ts-jest": "~27.1.4",
97
+ "ts-node": "~10.7.0",
98
+ "ttypescript": "~1.5.12",
99
+ "typescript": "~4.6.3",
100
+ "vite": "~2.9.1",
101
+ "vite-plugin-md": "~0.12.4",
102
+ "vue": "^3.2.0",
103
+ "vue-router": "~4.0.14",
104
+ "vue-types": "~4.1.1"
95
105
  },
96
106
  "peerDependencies": {
97
- "vue": "3.2.x",
98
- "vue-types": "~4.0.1"
107
+ "vue": "^3.2.0"
99
108
  },
100
109
  "main": "dist/bkui-vue.umd.js",
101
110
  "module": "dist/bkui-vue.esm.js",
111
+ "typings": "./lib/index.d.ts",
102
112
  "lint-staged": {
103
113
  "*.css": "stylelint",
104
- "*.less": "stylelint --fix --syntax=less",
114
+ "*.less": "stylelint --fix --customSyntax=postcss-less",
105
115
  "*.{js,ts,tsx,vue}": [
106
116
  "eslint --fix",
107
117
  "git add ."
@@ -111,5 +121,12 @@
111
121
  "commitizen": {
112
122
  "path": "./node_modules/cz-lerna-changelog"
113
123
  }
124
+ },
125
+ "dependencies": {
126
+ "@popperjs/core": "~2.11.5",
127
+ "date-fns": "~2.28.0",
128
+ "js-calendar": "~1.2.3",
129
+ "lodash": "~4.17.21",
130
+ "vue-types": "~4.1.1"
114
131
  }
115
132
  }
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,t,o){"use strict";function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n={exports:{}},u={exports:{}},a={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r},e.exports.default=e.exports,e.exports.__esModule=!0}(a),function(e){var t=a.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.default=e.exports,e.exports.__esModule=!0}(u);var l={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0}(l);var s={exports:{}};!function(e){var t=a.exports;e.exports=function(e,o){if(e){if("string"==typeof e)return t(e,o);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,o):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0}(s);var p={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0}(p),function(e){var t=u.exports,o=l.exports,r=s.exports,n=p.exports;e.exports=function(e){return t(e)||o(e)||r(e)||n()},e.exports.default=e.exports,e.exports.__esModule=!0}(n);var i=r(n.exports),c=Symbol("CheckboxGroup"),d={name:o.PropTypes.string.def(""),modelValue:o.PropTypes.array,disabled:o.PropTypes.bool},f=t.defineComponent({name:"BkCheckboxGroup",props:d,emits:["change","update:modelValue"],setup:function(e,o){var r=t.reactive({localValue:e.modelValue?i(e.modelValue):[]});t.watch((function(){return e.modelValue}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];r.localValue=i(e)}));var n=[];return t.provide(c,{name:"BkCheckboxGroup",props:e,state:r,register:function(e){n.push(e)},unregister:function(e){var t=n.indexOf(e);t>-1&&n.splice(t,1)},handleChange:function(t,n){var u=i(r.localValue);u=t?[].concat(i(r.localValue),[n]):r.localValue.reduce((function(e,t){return t!==n&&e.push(t),e}),[]),e.modelValue||(r.localValue=u),o.emit("update:modelValue",u),o.emit("change",u)}}),t.onMounted((function(){n.forEach((function(e){(e.isChecked||e.checked)&&r.localValue.push(e.label)}))})),{}},render:function(){return t.createVNode("div",{class:"bk-checkbox-group"},[this.$slots.default()])}});f.install=function(e){e.component(f.name,f)},e.default=f,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,t,r){"use strict";function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n={exports:{}},s={exports:{}};!function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0}(s);var a={exports:{}};!function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,s=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(o=r.next()).done)&&(s.push(o.value),!t||s.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw n}}return s}},e.exports.default=e.exports,e.exports.__esModule=!0}(a);var l={exports:{}},u={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o},e.exports.default=e.exports,e.exports.__esModule=!0}(u),function(e){var t=u.exports;e.exports=function(e,r){if(e){if("string"==typeof e)return t(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,r):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0}(l);var i={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0}(i),function(e){var t=s.exports,r=a.exports,o=l.exports,n=i.exports;e.exports=function(e,s){return t(e)||r(e,s)||o(e,s)||n()},e.exports.default=e.exports,e.exports.__esModule=!0}(n);var d=o(n.exports),p=Symbol("RadioGroup");var c={name:r.PropTypes.string.def(""),label:r.PropTypes.oneOfType([String,Number,Boolean]).isRequired,modelValue:r.PropTypes.oneOfType([String,Number,Boolean]).def(""),checked:r.PropTypes.bool.def(!1),disabled:r.PropTypes.bool.def(!1),size:r.PropTypes.size},f=t.defineComponent({name:"BkRadioButton",props:c,emits:["change","update:modelValue"],setup:function(){var e=function(){var e=t.ref(!1);return[e,{blur:function(){e.value=!1},focus:function(){e.value=!0}}]}(),o=d(e,2),n=o[0],s=o[1],a=s.blur,l=s.focus,u=function(){var e=t.getCurrentInstance(),o=e.props,n=e.emit,s=t.inject(p,r.EMPTY_OBJ),a=!r.isEmptyObj(s),l=t.reactive({isLocalChecked:o.checked}),u=t.computed((function(){return a?s.state.localValue===o.label:""!==o.modelValue?o.modelValue===o.label:l.isLocalChecked}));l.isLocalChecked=u.value;var i=t.computed((function(){return!(!a||!s.props.disabled)||o.disabled}));return{name:t.computed((function(){return a&&s.props.name?s.props.name:o.name})),isCheck:u,isDisabled:i,handlerChange:function(){i.value||(n("change",o.label),n("update:modelValue",o.label),a&&s.handleChange(o.label))}}}();return{isFocus:n,realName:u.name,isCheck:u.isCheck,isDisabled:u.isDisabled,handleBlur:a,handleFocus:l,handlerChange:u.handlerChange}},render:function(){var e=r.classes({"bk-radio-button":!0,"is-focus":this.isFocus,"is-disabled":this.isDisabled,"is-checked":this.isCheck});return t.createVNode("label",{class:e,tabindex:"0"},[t.createVNode("input",{class:"bk-radio-button-input",type:"radio",tabindex:"0",name:this.realName,value:this.label,checked:this.isCheck,disabled:this.isDisabled,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handlerChange},null),t.createVNode("div",{class:"bk-radio-button-text"},[this.$slots.default?this.$slots.default():this.label])])}});f.install=function(e){e.component(f.name,f)},e.default=f,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1 +0,0 @@
1
- !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,o,n){"use strict";var t=Symbol("RadioGroup"),u={name:n.PropTypes.string.def(""),modelValue:n.PropTypes.oneOfType([String,Number,Boolean]),disabled:n.PropTypes.bool},a=o.defineComponent({name:"BkRadioGroup",props:u,emits:["change","update:modelValue"],setup:function(e,n){var u=o.reactive({localValue:e.modelValue});o.watch((function(){return e.modelValue}),(function(){u.localValue=e.modelValue}));return o.provide(t,{props:e,state:u,handleChange:function(e){n.emit("update:modelValue",e),n.emit("change",e)}}),{}},render:function(){return o.createVNode("div",{class:"bk-radio-group"},[this.$slots.default()])}});a.install=function(e){e.component(a.name,a)},e.default=a,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,3 +0,0 @@
1
- export declare const useTable: () => {
2
- handleHeaderFooterMousewheel: (_event: any, data: any) => void;
3
- };
@@ -1,14 +0,0 @@
1
- import { Ref } from 'vue';
2
- import { IAnyObject, ITable } from './type';
3
- export default class TableLayout {
4
- table: ITable;
5
- showHeader: boolean;
6
- headerHeight: Ref<null | number>;
7
- bodyWidth: Ref<null | number>;
8
- bodyHeight: Ref<null | number>;
9
- scrollY: Ref<boolean>;
10
- gutterWidth: number;
11
- footerHeight: Ref<null | number>;
12
- paginationHeight: Ref<null | number>;
13
- constructor(opts: IAnyObject);
14
- }
@@ -1,12 +0,0 @@
1
- import type { ComponentInternalInstance } from 'vue';
2
- export interface IAnyObject {
3
- [key: string]: any;
4
- }
5
- export interface ITableRefs {
6
- headerWrapper: HTMLElement;
7
- [key: string]: unknown;
8
- }
9
- export interface ITable extends ComponentInternalInstance {
10
- $ready: boolean;
11
- refs: ITableRefs;
12
- }