bkui-vue 0.0.1-beta.98 → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (656) hide show
  1. package/License.txt +14 -0
  2. package/dist/index.cjs.js +360 -36
  3. package/dist/index.esm.js +30770 -23399
  4. package/dist/index.umd.js +360 -36
  5. package/dist/locale/en.esm.js +2 -0
  6. package/dist/locale/en.esm.js.map +1 -0
  7. package/dist/locale/en.umd.js +2 -0
  8. package/dist/locale/en.umd.js.map +1 -0
  9. package/dist/locale/zh-cn.esm.js +2 -0
  10. package/dist/locale/zh-cn.esm.js.map +1 -0
  11. package/dist/locale/zh-cn.umd.js +2 -0
  12. package/dist/locale/zh-cn.umd.js.map +1 -0
  13. package/dist/style.css +1 -1
  14. package/dist/style.variable.css +1 -0
  15. package/lib/affix/affix.d.ts +2 -2
  16. package/lib/affix/affix.variable.css +29 -6
  17. package/lib/affix/index.d.ts +60 -36
  18. package/lib/alert/alert.css +4 -0
  19. package/lib/alert/alert.d.ts +11 -9
  20. package/lib/alert/alert.less +24 -19
  21. package/lib/alert/alert.variable.css +33 -6
  22. package/lib/alert/index.d.ts +82 -58
  23. package/lib/alert/index.js +1 -1
  24. package/lib/animate-number/animate-number.d.ts +2 -2
  25. package/lib/animate-number/index.d.ts +58 -25
  26. package/lib/backtop/backtop.css +8 -0
  27. package/lib/backtop/backtop.d.ts +4 -4
  28. package/lib/backtop/backtop.less +8 -0
  29. package/lib/backtop/backtop.variable.css +37 -6
  30. package/lib/backtop/index.d.ts +65 -47
  31. package/lib/backtop/index.js +1 -1
  32. package/lib/badge/badge.css +2 -5
  33. package/lib/badge/badge.d.ts +3 -3
  34. package/lib/badge/badge.less +4 -5
  35. package/lib/badge/badge.variable.css +31 -11
  36. package/lib/badge/index.d.ts +67 -64
  37. package/lib/badge/index.js +1 -1
  38. package/lib/breadcrumb/breadcrumb-item.d.ts +5 -3
  39. package/lib/breadcrumb/breadcrumb.css +43 -0
  40. package/lib/breadcrumb/breadcrumb.d.ts +2 -2
  41. package/lib/breadcrumb/breadcrumb.variable.css +77 -11
  42. package/lib/breadcrumb/index.d.ts +65 -41
  43. package/lib/breadcrumb/index.js +1 -1
  44. package/lib/button/button-group.d.ts +4 -4
  45. package/lib/button/button.css +21 -3
  46. package/lib/button/button.d.ts +46 -33
  47. package/lib/button/button.less +25 -5
  48. package/lib/button/button.variable.css +50 -9
  49. package/lib/button/index.d.ts +121 -96
  50. package/lib/button/index.js +1 -1
  51. package/lib/card/card.css +45 -2
  52. package/lib/card/card.d.ts +2 -1
  53. package/lib/card/card.less +2 -2
  54. package/lib/card/card.variable.css +78 -12
  55. package/lib/card/index.d.ts +66 -64
  56. package/lib/card/index.js +1 -1
  57. package/lib/cascader/cascader-panel.d.ts +60 -6
  58. package/lib/cascader/cascader.css +197 -11
  59. package/lib/cascader/cascader.d.ts +108 -25
  60. package/lib/cascader/cascader.less +148 -11
  61. package/lib/cascader/cascader.variable.css +234 -25
  62. package/lib/cascader/index.d.ts +378 -176
  63. package/lib/cascader/index.js +2 -1
  64. package/lib/cascader/index.js.LICENSE.txt +1 -0
  65. package/lib/cascader/interface.d.ts +8 -1
  66. package/lib/cascader/node.d.ts +9 -2
  67. package/lib/cascader/store.d.ts +13 -1
  68. package/lib/checkbox/checkbox-group.d.ts +18 -2
  69. package/lib/checkbox/checkbox.css +38 -11
  70. package/lib/checkbox/checkbox.d.ts +40 -18
  71. package/lib/checkbox/checkbox.less +68 -33
  72. package/lib/checkbox/checkbox.variable.css +67 -17
  73. package/lib/checkbox/common.d.ts +1 -0
  74. package/lib/checkbox/index.d.ts +133 -72
  75. package/lib/checkbox/index.js +1 -1
  76. package/lib/checkbox/type.d.ts +1 -1
  77. package/lib/code-diff/code-diff.css +27 -7
  78. package/lib/code-diff/code-diff.d.ts +7 -7
  79. package/lib/code-diff/code-diff.less +42 -7
  80. package/lib/code-diff/code-diff.variable.css +56 -13
  81. package/lib/code-diff/index.d.ts +30 -43
  82. package/lib/code-diff/index.js +1 -1
  83. package/lib/collapse/collapse-panel.d.ts +104 -0
  84. package/lib/collapse/collapse.css +58 -19
  85. package/lib/collapse/collapse.d.ts +59 -42
  86. package/lib/collapse/collapse.less +106 -46
  87. package/lib/collapse/collapse.variable.css +87 -25
  88. package/lib/collapse/index.d.ts +271 -46
  89. package/lib/collapse/index.js +1 -1
  90. package/lib/collapse/props.d.ts +131 -0
  91. package/lib/collapse-transition/collapse-transition.css +93 -0
  92. package/lib/collapse-transition/collapse-transition.d.ts +15 -0
  93. package/lib/collapse-transition/collapse-transition.less +111 -0
  94. package/lib/collapse-transition/collapse-transition.variable.css +215 -0
  95. package/lib/collapse-transition/index.d.ts +2 -0
  96. package/lib/collapse-transition/index.js +1 -0
  97. package/lib/color-picker/color-picker.css +275 -0
  98. package/lib/color-picker/color-picker.d.ts +144 -0
  99. package/lib/color-picker/color-picker.less +325 -0
  100. package/lib/color-picker/color-picker.variable.css +397 -0
  101. package/lib/color-picker/components/color-input.d.ts +42 -0
  102. package/lib/color-picker/components/hue-slider.d.ts +41 -0
  103. package/lib/color-picker/components/input-container.d.ts +42 -0
  104. package/lib/color-picker/components/recommend-colors.d.ts +51 -0
  105. package/lib/color-picker/components/saturation-panel.d.ts +41 -0
  106. package/lib/color-picker/index.d.ts +255 -0
  107. package/lib/color-picker/index.js +1 -0
  108. package/lib/color-picker/utils.d.ts +37 -0
  109. package/lib/components.d.ts +14 -0
  110. package/lib/components.js +1 -1
  111. package/lib/config-provider/config-provider.css +0 -0
  112. package/lib/config-provider/config-provider.d.ts +402 -0
  113. package/lib/config-provider/config-provider.less +1 -0
  114. package/lib/config-provider/config-provider.variable.css +122 -0
  115. package/lib/config-provider/index.d.ts +646 -0
  116. package/lib/config-provider/index.js +1 -0
  117. package/lib/config-provider/token.d.ts +128 -0
  118. package/lib/config-provider/use-global-config.d.ts +5 -0
  119. package/lib/config-provider/use-locale.d.ts +3 -0
  120. package/lib/config-provider/use-prefix.d.ts +9 -0
  121. package/lib/container/col.d.ts +3 -3
  122. package/lib/container/container.css +43 -0
  123. package/lib/container/container.d.ts +2 -2
  124. package/lib/container/container.less +4 -4
  125. package/lib/container/container.variable.css +72 -6
  126. package/lib/container/index.d.ts +30 -49
  127. package/lib/container/index.js +1 -1
  128. package/lib/container/interface.d.ts +7 -0
  129. package/lib/container/row.d.ts +2 -2
  130. package/lib/date-picker/base/confirm.d.ts +74 -0
  131. package/lib/date-picker/base/date-table.d.ts +96 -0
  132. package/lib/date-picker/base/month-table.d.ts +117 -0
  133. package/lib/date-picker/base/picker-dropdown.d.ts +74 -0
  134. package/lib/date-picker/base/time-spinner.d.ts +170 -0
  135. package/lib/date-picker/base/year-table.d.ts +117 -0
  136. package/lib/date-picker/date-picker.css +30 -1
  137. package/lib/date-picker/date-picker.d.ts +55 -35
  138. package/lib/date-picker/date-picker.less +109 -74
  139. package/lib/date-picker/date-picker.variable.css +59 -7
  140. package/lib/date-picker/index.d.ts +198 -218
  141. package/lib/date-picker/index.js +1 -1
  142. package/lib/date-picker/interface.d.ts +20 -10
  143. package/lib/date-picker/panel/date-range.d.ts +345 -0
  144. package/lib/date-picker/panel/date.d.ts +206 -0
  145. package/lib/date-picker/panel/time-range.d.ts +495 -0
  146. package/lib/date-picker/panel/time.d.ts +451 -0
  147. package/lib/date-picker/props.d.ts +48 -5
  148. package/lib/date-picker/time-picker.d.ts +390 -0
  149. package/lib/date-picker/utils.d.ts +22 -2
  150. package/lib/dialog/dialog.css +94 -34
  151. package/lib/dialog/dialog.d.ts +57 -93
  152. package/lib/dialog/dialog.less +85 -43
  153. package/lib/dialog/dialog.variable.css +216 -34
  154. package/lib/dialog/index.d.ts +194 -334
  155. package/lib/dialog/index.js +2 -1
  156. package/lib/dialog/index.js.LICENSE.txt +1 -0
  157. package/lib/dialog/props.d.ts +122 -0
  158. package/lib/directives/ellipsis.d.ts +7 -0
  159. package/lib/directives/index.d.ts +2 -0
  160. package/lib/directives/index.js +1 -1
  161. package/lib/directives/tooltips.d.ts +2 -1
  162. package/lib/dist.index.js +1 -1
  163. package/lib/divider/divider.d.ts +17 -17
  164. package/lib/divider/divider.variable.css +29 -6
  165. package/lib/divider/index.d.ts +85 -61
  166. package/lib/divider/index.js +1 -1
  167. package/lib/divider/props.d.ts +6 -6
  168. package/lib/dropdown/dropdown-item.d.ts +1 -1
  169. package/lib/dropdown/dropdown-menu.d.ts +2 -2
  170. package/lib/dropdown/dropdown.css +34 -7
  171. package/lib/dropdown/dropdown.d.ts +46 -15
  172. package/lib/dropdown/dropdown.less +42 -36
  173. package/lib/dropdown/dropdown.variable.css +63 -13
  174. package/lib/dropdown/index.d.ts +136 -65
  175. package/lib/dropdown/index.js +1 -1
  176. package/lib/exception/exception.css +40 -14
  177. package/lib/exception/exception.d.ts +33 -13
  178. package/lib/exception/exception.less +59 -22
  179. package/lib/exception/exception.variable.css +69 -20
  180. package/lib/exception/index.d.ts +91 -43
  181. package/lib/exception/index.js +1 -1
  182. package/lib/exception/typings/index.d.ts +4 -0
  183. package/lib/fixed-navbar/fixed-navbar.d.ts +2 -2
  184. package/lib/fixed-navbar/fixed-navbar.variable.css +29 -6
  185. package/lib/fixed-navbar/index.d.ts +60 -36
  186. package/lib/form/compose-form-item.d.ts +4 -2
  187. package/lib/form/form-item.d.ts +15 -9
  188. package/lib/form/form.css +32 -8
  189. package/lib/form/form.d.ts +25 -7
  190. package/lib/form/form.less +85 -53
  191. package/lib/form/form.variable.css +61 -14
  192. package/lib/form/index.d.ts +109 -51
  193. package/lib/form/index.js +1 -1
  194. package/lib/form/type.d.ts +5 -4
  195. package/lib/form/utils.d.ts +2 -0
  196. package/lib/hooks.d.ts +1 -0
  197. package/lib/hooks.js +1 -0
  198. package/lib/icon/angle-double-down-line.js +1 -1
  199. package/lib/icon/angle-double-left-line.js +1 -1
  200. package/lib/icon/angle-double-left.js +1 -1
  201. package/lib/icon/angle-double-right-line.js +1 -1
  202. package/lib/icon/angle-double-right.js +1 -1
  203. package/lib/icon/angle-double-up-line.js +1 -1
  204. package/lib/icon/angle-down-fill.js +1 -1
  205. package/lib/icon/angle-down-line.js +1 -1
  206. package/lib/icon/angle-down.js +1 -1
  207. package/lib/icon/angle-left.js +1 -1
  208. package/lib/icon/angle-right.js +1 -1
  209. package/lib/icon/angle-up-fill.js +1 -1
  210. package/lib/icon/angle-up.js +1 -1
  211. package/lib/icon/archive-fill.js +1 -1
  212. package/lib/icon/arrows-left.js +1 -1
  213. package/lib/icon/arrows-right.js +1 -1
  214. package/lib/icon/audio-fill.js +1 -1
  215. package/lib/icon/bk.js +1 -1
  216. package/lib/icon/circle.js +1 -1
  217. package/lib/icon/close-line.js +1 -1
  218. package/lib/icon/close.js +1 -1
  219. package/lib/icon/code.js +1 -1
  220. package/lib/icon/cog-shape.js +1 -1
  221. package/lib/icon/collapse-left.js +1 -1
  222. package/lib/icon/copy-shape.d.ts +4 -0
  223. package/lib/icon/copy-shape.js +1 -0
  224. package/lib/icon/copy.js +1 -1
  225. package/lib/icon/data-shape.js +1 -1
  226. package/lib/icon/del.js +1 -1
  227. package/lib/icon/doc-fill.js +1 -1
  228. package/lib/icon/done.js +1 -1
  229. package/lib/icon/down-shape.js +1 -1
  230. package/lib/icon/down-small.js +1 -1
  231. package/lib/icon/edit-line.js +1 -1
  232. package/lib/icon/ellipsis.js +1 -1
  233. package/lib/icon/enlarge-line.d.ts +4 -0
  234. package/lib/icon/enlarge-line.js +1 -0
  235. package/lib/icon/error.js +1 -1
  236. package/lib/icon/excel-fill.js +1 -1
  237. package/lib/icon/exclamation-circle-shape.js +1 -1
  238. package/lib/icon/eye.js +1 -1
  239. package/lib/icon/filliscreen-line.d.ts +4 -0
  240. package/lib/icon/filliscreen-line.js +1 -0
  241. package/lib/icon/fix-line.d.ts +4 -0
  242. package/lib/icon/fix-line.js +1 -0
  243. package/lib/icon/fix-shape.d.ts +4 -0
  244. package/lib/icon/fix-shape.js +1 -0
  245. package/lib/icon/folder-open.js +1 -1
  246. package/lib/icon/folder-shape-open.js +1 -1
  247. package/lib/icon/folder-shape.js +1 -1
  248. package/lib/icon/folder.js +1 -0
  249. package/lib/icon/funnel.js +1 -1
  250. package/lib/icon/help-document-fill.js +1 -1
  251. package/lib/icon/help-fill.js +1 -1
  252. package/lib/icon/help.js +1 -1
  253. package/lib/icon/image-fill.js +1 -1
  254. package/lib/icon/img-error.d.ts +4 -0
  255. package/lib/icon/img-error.js +1 -0
  256. package/lib/icon/img-placehoulder.d.ts +4 -0
  257. package/lib/icon/img-placehoulder.js +1 -0
  258. package/lib/icon/index.d.ts +83 -69
  259. package/lib/icon/index.js +1 -1
  260. package/lib/icon/info-line.js +1 -1
  261. package/lib/icon/info.js +1 -1
  262. package/lib/icon/left-shape.js +1 -1
  263. package/lib/icon/left-turn-line.d.ts +4 -0
  264. package/lib/icon/left-turn-line.js +1 -0
  265. package/lib/icon/narrow-line.d.ts +4 -0
  266. package/lib/icon/narrow-line.js +1 -0
  267. package/lib/icon/original.d.ts +4 -0
  268. package/lib/icon/original.js +1 -0
  269. package/lib/icon/pdf-fill.js +1 -1
  270. package/lib/icon/play-shape.js +1 -1
  271. package/lib/icon/plus.js +1 -1
  272. package/lib/icon/ppt-fill.js +1 -1
  273. package/lib/icon/qq.js +1 -1
  274. package/lib/icon/right-shape.js +1 -1
  275. package/lib/icon/right-turn-line.d.ts +4 -0
  276. package/lib/icon/right-turn-line.js +1 -0
  277. package/lib/icon/search.js +1 -1
  278. package/lib/icon/share.js +1 -1
  279. package/lib/icon/spinner.js +1 -1
  280. package/lib/icon/success.js +1 -1
  281. package/lib/icon/switcher-loading.js +1 -1
  282. package/lib/icon/text-file.js +1 -1
  283. package/lib/icon/text-fill.js +1 -1
  284. package/lib/icon/transfer.d.ts +4 -0
  285. package/lib/icon/transfer.js +1 -0
  286. package/lib/icon/tree-application-shape.js +1 -1
  287. package/lib/icon/unfull-screen.d.ts +4 -0
  288. package/lib/icon/unfull-screen.js +1 -0
  289. package/lib/icon/unvisible.js +1 -1
  290. package/lib/icon/up-shape.js +1 -1
  291. package/lib/icon/upload.js +1 -1
  292. package/lib/icon/video-fill.js +1 -1
  293. package/lib/icon/warn.js +1 -1
  294. package/lib/icon/weixin-pro.d.ts +4 -0
  295. package/lib/icon/weixin-pro.js +1 -0
  296. package/lib/icon/weixin.js +1 -1
  297. package/lib/image/image-viewer.css +142 -0
  298. package/lib/image/image-viewer.d.ts +73 -0
  299. package/lib/image/image-viewer.less +168 -0
  300. package/lib/image/image-viewer.variable.css +142 -0
  301. package/lib/image/image.css +37 -0
  302. package/lib/image/image.d.ts +93 -0
  303. package/lib/image/image.less +44 -0
  304. package/lib/image/image.variable.css +37 -0
  305. package/lib/image/index.d.ts +252 -0
  306. package/lib/image/index.js +1 -0
  307. package/lib/image/props.d.ts +71 -0
  308. package/lib/index.d.ts +3 -0
  309. package/lib/index.js +1 -1
  310. package/lib/info-box/index.d.ts +7 -0
  311. package/lib/info-box/index.js +2 -0
  312. package/lib/info-box/index.js.LICENSE.txt +1 -0
  313. package/lib/info-box/info-box.css +37 -0
  314. package/lib/info-box/info-box.d.ts +29 -0
  315. package/lib/info-box/info-box.less +51 -0
  316. package/lib/info-box/info-box.variable.css +159 -0
  317. package/lib/input/index.d.ts +178 -228
  318. package/lib/input/index.js +1 -1
  319. package/lib/input/input.css +168 -23
  320. package/lib/input/input.d.ts +59 -37
  321. package/lib/input/input.less +104 -22
  322. package/lib/input/input.variable.css +228 -61
  323. package/lib/link/index.d.ts +80 -53
  324. package/lib/link/index.js +1 -1
  325. package/lib/link/link.css +12 -12
  326. package/lib/link/link.d.ts +10 -8
  327. package/lib/link/link.less +16 -14
  328. package/lib/link/link.variable.css +41 -18
  329. package/lib/loading/directive.d.ts +14 -0
  330. package/lib/loading/index.d.ts +160 -56
  331. package/lib/loading/index.js +1 -1
  332. package/lib/loading/loading.css +72 -29
  333. package/lib/loading/loading.d.ts +91 -15
  334. package/lib/loading/loading.less +21 -19
  335. package/lib/loading/loading.variable.css +117 -51
  336. package/lib/locale/index.d.ts +3 -0
  337. package/lib/locale/index.js +1 -0
  338. package/lib/locale/lang/en.d.ts +126 -0
  339. package/lib/locale/lang/zh-cn.d.ts +3 -0
  340. package/lib/menu/index.d.ts +75 -34
  341. package/lib/menu/index.js +1 -1
  342. package/lib/menu/menu-group.d.ts +2 -2
  343. package/lib/menu/menu-item.d.ts +5 -1
  344. package/lib/menu/menu.css +43 -0
  345. package/lib/menu/menu.d.ts +2 -2
  346. package/lib/menu/menu.variable.css +90 -24
  347. package/lib/menu/submenu.d.ts +5 -1
  348. package/lib/menu/submenu.variable.css +29 -6
  349. package/lib/menu/utils.d.ts +1 -1
  350. package/lib/message/index.js +2 -1
  351. package/lib/message/index.js.LICENSE.txt +6 -0
  352. package/lib/message/message.css +166 -2
  353. package/lib/message/message.less +222 -7
  354. package/lib/message/message.variable.css +195 -8
  355. package/lib/message/messageConstructor.d.ts +136 -27
  356. package/lib/modal/index.d.ts +201 -246
  357. package/lib/modal/index.js +1 -1
  358. package/lib/modal/modal.css +39 -6
  359. package/lib/modal/modal.d.ts +54 -61
  360. package/lib/modal/modal.less +8 -10
  361. package/lib/modal/modal.variable.css +161 -6
  362. package/lib/modal/props.mixin.d.ts +16 -23
  363. package/lib/navigation/index.d.ts +90 -68
  364. package/lib/navigation/index.js +1 -1
  365. package/lib/navigation/navigation-title.d.ts +6 -3
  366. package/lib/navigation/navigation.d.ts +12 -4
  367. package/lib/navigation/navigation.variable.css +29 -6
  368. package/lib/notify/index.js +1 -1
  369. package/lib/notify/notify.css +8 -4
  370. package/lib/notify/notify.less +18 -13
  371. package/lib/notify/notify.variable.css +37 -10
  372. package/lib/notify/notifyConstructor.d.ts +19 -21
  373. package/lib/overflow-title/components/overflow-title.d.ts +57 -0
  374. package/lib/overflow-title/directive/overflow-title.d.ts +3 -0
  375. package/lib/overflow-title/index.d.ts +195 -0
  376. package/lib/overflow-title/index.js +1 -0
  377. package/lib/overflow-title/overflow.css +11 -0
  378. package/lib/overflow-title/overflow.less +13 -0
  379. package/lib/overflow-title/overflow.variable.css +11 -0
  380. package/lib/overflow-title/props.d.ts +43 -0
  381. package/lib/overflow-title/utils/getActualWidthByCanvas.d.ts +3 -0
  382. package/lib/overflow-title/utils/getActualWidthByDom.d.ts +3 -0
  383. package/lib/pagination/index.d.ts +89 -90
  384. package/lib/pagination/index.js +1 -1
  385. package/lib/pagination/pagination.css +54 -28
  386. package/lib/pagination/pagination.d.ts +17 -6
  387. package/lib/pagination/pagination.less +59 -30
  388. package/lib/pagination/pagination.variable.css +83 -34
  389. package/lib/pagination/type.d.ts +1 -1
  390. package/lib/pagination/use-limit.d.ts +3 -1
  391. package/lib/pagination/use-total.d.ts +3 -1
  392. package/lib/plugin-popover/index.d.ts +27 -0
  393. package/lib/plugin-popover/index.js +1 -0
  394. package/lib/plugins/index.d.ts +1 -0
  395. package/lib/plugins/index.js +1 -0
  396. package/lib/pop-confirm/index.d.ts +249 -0
  397. package/lib/pop-confirm/index.js +1 -0
  398. package/lib/pop-confirm/pop-confirm.css +28 -0
  399. package/lib/pop-confirm/pop-confirm.d.ts +95 -0
  400. package/lib/pop-confirm/pop-confirm.less +34 -0
  401. package/lib/pop-confirm/pop-confirm.variable.css +150 -0
  402. package/lib/pop-confirm/props.d.ts +67 -0
  403. package/lib/popover/arrow.d.ts +2 -0
  404. package/lib/popover/const.d.ts +16 -0
  405. package/lib/popover/content.d.ts +43 -0
  406. package/lib/popover/index.d.ts +409 -173
  407. package/lib/popover/index.js +1 -1
  408. package/lib/popover/plugin-popover.d.ts +12 -0
  409. package/lib/popover/popover.css +10 -53
  410. package/lib/popover/popover.d.ts +189 -58
  411. package/lib/popover/popover.less +19 -68
  412. package/lib/popover/popover.variable.css +40 -60
  413. package/lib/popover/props.d.ts +90 -37
  414. package/lib/popover/reference.d.ts +2 -0
  415. package/lib/popover/root.d.ts +27 -0
  416. package/lib/popover/use-floating.d.ts +34 -0
  417. package/lib/popover/use-platform.d.ts +30 -0
  418. package/lib/popover/use-popover-init.d.ts +23 -0
  419. package/lib/popover/use-popper-id.d.ts +6 -0
  420. package/lib/popover/utils.d.ts +8 -0
  421. package/lib/popover2/index.d.ts +89 -0
  422. package/lib/popover2/index.js +1 -0
  423. package/lib/popover2/popover.d.ts +2 -0
  424. package/lib/preset.d.ts +264 -2
  425. package/lib/preset.js +1 -1
  426. package/lib/process/index.d.ts +69 -52
  427. package/lib/process/index.js +2 -1
  428. package/lib/process/index.js.LICENSE.txt +1 -0
  429. package/lib/process/process.css +22 -0
  430. package/lib/process/process.d.ts +5 -4
  431. package/lib/process/process.less +36 -8
  432. package/lib/process/process.variable.css +51 -6
  433. package/lib/progress/index.d.ts +100 -121
  434. package/lib/progress/index.js +1 -1
  435. package/lib/progress/progress.css +43 -0
  436. package/lib/progress/progress.d.ts +17 -15
  437. package/lib/progress/progress.less +8 -8
  438. package/lib/progress/progress.variable.css +76 -10
  439. package/lib/radio/index.d.ts +116 -58
  440. package/lib/radio/index.js +1 -1
  441. package/lib/radio/radio-button.d.ts +12 -9
  442. package/lib/radio/radio-group.d.ts +36 -5
  443. package/lib/radio/radio.css +133 -62
  444. package/lib/radio/radio.d.ts +9 -5
  445. package/lib/radio/radio.less +262 -173
  446. package/lib/radio/radio.variable.css +166 -72
  447. package/lib/radio/type.d.ts +1 -1
  448. package/lib/rate/index.d.ts +78 -28
  449. package/lib/rate/index.js +1 -1
  450. package/lib/rate/rate.d.ts +14 -3
  451. package/lib/rate/star.d.ts +1 -1
  452. package/lib/resize-layout/index.d.ts +82 -80
  453. package/lib/resize-layout/index.js +1 -1
  454. package/lib/resize-layout/resize-layout.css +6 -15
  455. package/lib/resize-layout/resize-layout.d.ts +10 -9
  456. package/lib/resize-layout/resize-layout.less +32 -41
  457. package/lib/resize-layout/resize-layout.variable.css +35 -21
  458. package/lib/search-select/index.d.ts +892 -0
  459. package/lib/search-select/index.js +2 -0
  460. package/lib/search-select/index.js.LICENSE.txt +1 -0
  461. package/lib/search-select/input.d.ts +101 -0
  462. package/lib/search-select/menu.d.ts +77 -0
  463. package/lib/search-select/search-select.css +427 -0
  464. package/lib/search-select/search-select.d.ts +361 -0
  465. package/lib/search-select/search-select.less +384 -0
  466. package/lib/search-select/search-select.variable.css +549 -0
  467. package/lib/search-select/selected.d.ts +155 -0
  468. package/lib/search-select/utils.d.ts +88 -0
  469. package/lib/select/common.d.ts +4 -11
  470. package/lib/select/index.d.ts +1471 -918
  471. package/lib/select/index.js +2 -1
  472. package/lib/select/index.js.LICENSE.txt +1 -0
  473. package/lib/select/option.d.ts +17 -6
  474. package/lib/select/optionGroup.d.ts +2 -2
  475. package/lib/select/select.css +211 -140
  476. package/lib/select/select.d.ts +654 -205
  477. package/lib/select/select.less +331 -189
  478. package/lib/select/select.variable.css +240 -146
  479. package/lib/select/selectTagInput.d.ts +38 -15
  480. package/lib/select/type.d.ts +20 -14
  481. package/lib/shared/dom.d.ts +3 -0
  482. package/lib/shared/helper.d.ts +9 -0
  483. package/lib/shared/hooks/use-form-item.d.ts +2 -0
  484. package/lib/shared/hooks/use-form.d.ts +2 -0
  485. package/lib/shared/index.d.ts +16 -12
  486. package/lib/shared/index.js +1 -1
  487. package/lib/shared/mask-manager.d.ts +18 -5
  488. package/lib/shared/pop-manager.d.ts +14 -4
  489. package/lib/shared/popover.d.ts +2 -1
  490. package/lib/shared/token.d.ts +1 -1
  491. package/lib/shared/utils.d.ts +19 -0
  492. package/lib/shared/vue-types.d.ts +116 -13
  493. package/lib/sideslider/index.d.ts +158 -252
  494. package/lib/sideslider/index.js +2 -1
  495. package/lib/sideslider/index.js.LICENSE.txt +1 -0
  496. package/lib/sideslider/sideslider.css +10 -8
  497. package/lib/sideslider/sideslider.d.ts +46 -71
  498. package/lib/sideslider/sideslider.less +19 -17
  499. package/lib/sideslider/sideslider.variable.css +39 -14
  500. package/lib/slider/index.d.ts +82 -112
  501. package/lib/slider/index.js +2 -1
  502. package/lib/slider/index.js.LICENSE.txt +1 -0
  503. package/lib/slider/slider-button.d.ts +3 -2
  504. package/lib/slider/slider.d.ts +6 -6
  505. package/lib/slider/slider.variable.css +29 -6
  506. package/lib/steps/index.d.ts +105 -96
  507. package/lib/steps/index.js +2 -1
  508. package/lib/steps/index.js.LICENSE.txt +1 -0
  509. package/lib/steps/steps.css +1 -0
  510. package/lib/steps/steps.d.ts +35 -34
  511. package/lib/steps/steps.less +63 -62
  512. package/lib/steps/steps.variable.css +30 -6
  513. package/lib/styles/index.d.ts +6 -1
  514. package/lib/styles/mixins/mixins.css +43 -0
  515. package/lib/styles/mixins/mixins.less +1 -0
  516. package/lib/styles/mixins/mixins.variable.css +43 -0
  517. package/lib/styles/mixins/popper.css +1 -1
  518. package/lib/styles/mixins/popper.less +12 -11
  519. package/lib/styles/mixins/popper.variable.css +123 -1
  520. package/lib/styles/mixins/scroll.css +17 -0
  521. package/lib/styles/mixins/scroll.less +22 -0
  522. package/lib/styles/mixins/scroll.variable.css +139 -0
  523. package/lib/styles/reset.css +36 -0
  524. package/lib/styles/reset.less +26 -2
  525. package/lib/styles/reset.variable.css +36 -0
  526. package/lib/styles/themes/themes.less +37 -6
  527. package/lib/swiper/index.d.ts +60 -44
  528. package/lib/swiper/index.js +1 -1
  529. package/lib/swiper/swiper.d.ts +1 -1
  530. package/lib/swiper/swiper.less +15 -13
  531. package/lib/swiper/swiper.variable.css +122 -0
  532. package/lib/switcher/index.d.ts +94 -87
  533. package/lib/switcher/index.js +1 -1
  534. package/lib/switcher/switcher.css +44 -1
  535. package/lib/switcher/switcher.d.ts +17 -11
  536. package/lib/switcher/switcher.less +29 -52
  537. package/lib/switcher/switcher.variable.css +90 -24
  538. package/lib/tab/index.d.ts +163 -124
  539. package/lib/tab/index.js +1 -1
  540. package/lib/tab/props.d.ts +92 -43
  541. package/lib/tab/tab-nav.d.ts +46 -14
  542. package/lib/tab/tab-panel.d.ts +16 -9
  543. package/lib/tab/tab.css +135 -58
  544. package/lib/tab/tab.d.ts +42 -20
  545. package/lib/tab/tab.less +164 -77
  546. package/lib/tab/tab.variable.css +164 -64
  547. package/lib/table/cache.d.ts +6 -0
  548. package/lib/table/components/index.d.ts +3 -0
  549. package/lib/table/components/table-cell.d.ts +51 -0
  550. package/lib/table/components/table-column.d.ts +305 -0
  551. package/lib/table/components/table-row.d.ts +2 -0
  552. package/lib/table/const.d.ts +94 -6
  553. package/lib/table/index.d.ts +697 -169
  554. package/lib/table/index.js +1 -1
  555. package/lib/table/plugins/body-empty.d.ts +36 -0
  556. package/lib/table/plugins/col-group.d.ts +38 -0
  557. package/lib/table/plugins/common.d.ts +6 -0
  558. package/lib/table/plugins/head-filter.css +30 -14
  559. package/lib/table/plugins/head-filter.d.ts +26 -0
  560. package/lib/table/plugins/head-filter.less +79 -52
  561. package/lib/table/plugins/head-filter.variable.css +59 -20
  562. package/lib/table/plugins/head-sort.css +7 -3
  563. package/lib/table/plugins/head-sort.d.ts +29 -0
  564. package/lib/table/plugins/head-sort.less +8 -4
  565. package/lib/table/plugins/head-sort.variable.css +36 -9
  566. package/lib/table/plugins/index.d.ts +5 -0
  567. package/lib/table/plugins/settings.css +43 -6
  568. package/lib/table/plugins/settings.d.ts +37 -0
  569. package/lib/table/plugins/settings.less +52 -7
  570. package/lib/table/plugins/settings.variable.css +72 -12
  571. package/lib/table/plugins/use-active-columns.d.ts +16 -0
  572. package/lib/table/plugins/use-column-resize.d.ts +15 -0
  573. package/lib/table/plugins/use-fixed-column.d.ts +26 -0
  574. package/lib/table/plugins/use-pagination.d.ts +16 -0
  575. package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
  576. package/lib/table/props.d.ts +271 -23
  577. package/lib/table/render.d.ts +32 -12
  578. package/lib/table/table.css +964 -67
  579. package/lib/table/table.d.ts +170 -27
  580. package/lib/table/table.less +198 -66
  581. package/lib/table/table.variable.css +993 -73
  582. package/lib/table/use-column.d.ts +12 -0
  583. package/lib/table/use-common.d.ts +71 -29
  584. package/lib/table/utils.d.ts +33 -4
  585. package/lib/table-column/index.d.ts +797 -0
  586. package/lib/table-column/index.js +1 -0
  587. package/lib/tag/index.d.ts +89 -68
  588. package/lib/tag/index.js +1 -1
  589. package/lib/tag/tag.css +46 -13
  590. package/lib/tag/tag.d.ts +17 -12
  591. package/lib/tag/tag.less +58 -21
  592. package/lib/tag/tag.variable.css +75 -19
  593. package/lib/tag-input/common.d.ts +13 -1
  594. package/lib/tag-input/index.d.ts +570 -269
  595. package/lib/tag-input/index.js +1 -1
  596. package/lib/tag-input/list-tag-render.d.ts +2 -5
  597. package/lib/tag-input/tag-input.css +23 -27
  598. package/lib/tag-input/tag-input.d.ts +304 -45
  599. package/lib/tag-input/tag-input.less +103 -106
  600. package/lib/tag-input/tag-input.variable.css +52 -33
  601. package/lib/tag-input/tag-props.d.ts +142 -8
  602. package/lib/tag-input/tag-render.d.ts +31 -5
  603. package/lib/time-picker/index.d.ts +833 -0
  604. package/lib/time-picker/index.js +1 -0
  605. package/lib/time-picker/time-picker.css +215 -0
  606. package/lib/time-picker/time-picker.less +260 -0
  607. package/lib/time-picker/time-picker.variable.css +337 -0
  608. package/lib/timeline/index.d.ts +64 -32
  609. package/lib/timeline/index.js +1 -1
  610. package/lib/timeline/timeline.css +11 -4
  611. package/lib/timeline/timeline.d.ts +4 -3
  612. package/lib/timeline/timeline.less +48 -36
  613. package/lib/timeline/timeline.variable.css +40 -10
  614. package/lib/transfer/index.d.ts +152 -81
  615. package/lib/transfer/index.js +1 -1
  616. package/lib/transfer/props.d.ts +5 -0
  617. package/lib/transfer/transfer.css +121 -41
  618. package/lib/transfer/transfer.d.ts +35 -3
  619. package/lib/transfer/transfer.less +103 -46
  620. package/lib/transfer/transfer.variable.css +155 -52
  621. package/lib/tree/constant.d.ts +22 -2
  622. package/lib/tree/index.d.ts +236 -141
  623. package/lib/tree/index.js +1 -1
  624. package/lib/tree/props.d.ts +68 -12
  625. package/lib/tree/tree.css +176 -7
  626. package/lib/tree/tree.d.ts +91 -20
  627. package/lib/tree/tree.less +49 -1
  628. package/lib/tree/tree.variable.css +205 -13
  629. package/lib/tree/use-empty.d.ts +1 -1
  630. package/lib/tree/use-node-action.d.ts +3 -2
  631. package/lib/tree/use-node-attribute.d.ts +11 -0
  632. package/lib/tree/use-node-drag.d.ts +1 -1
  633. package/lib/tree/use-search.d.ts +1 -1
  634. package/lib/tree/util.d.ts +2 -0
  635. package/lib/upload/index.d.ts +508 -1
  636. package/lib/upload/index.js +2 -1
  637. package/lib/upload/index.js.LICENSE.txt +1 -0
  638. package/lib/upload/props.d.ts +0 -2
  639. package/lib/upload/upload-list.d.ts +3 -2
  640. package/lib/upload/upload-trigger.d.ts +1 -4
  641. package/lib/upload/upload.css +58 -5
  642. package/lib/upload/upload.d.ts +10 -16
  643. package/lib/upload/upload.less +19 -8
  644. package/lib/upload/upload.type.d.ts +12 -12
  645. package/lib/upload/upload.variable.css +113 -37
  646. package/lib/upload/use-file-handler.d.ts +2 -25
  647. package/lib/virtual-render/index.d.ts +100 -150
  648. package/lib/virtual-render/index.js +1 -1
  649. package/lib/virtual-render/props.d.ts +15 -1
  650. package/lib/virtual-render/virtual-render.css +17 -17
  651. package/lib/virtual-render/virtual-render.d.ts +39 -4
  652. package/lib/virtual-render/virtual-render.less +2 -23
  653. package/lib/virtual-render/virtual-render.variable.css +139 -17
  654. package/lib/volar.components.d.ts +102 -0
  655. package/package.json +47 -40
  656. package/LICENSE.txt +0 -22
@@ -1 +1 @@
1
- !function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],n);else{var t="object"==typeof exports?n(require("../shared"),require("vue")):n(e["../shared"],e.vue);for(var r in t)("object"==typeof exports?exports:e)[r]=t[r]}}(self,((e,n)=>(()=>{"use strict";var t={4212:n=>{n.exports=e},748:e=>{e.exports=n}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.d=(e,n)=>{for(var t in n)o.o(n,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{o.r(a),o.d(a,{default:()=>r});var e=o(4212),n=o(748);const t=(0,n.defineComponent)({name:"Swiper",props:{isLoop:e.PropTypes.bool.def(!0),loopTime:e.PropTypes.number.def(8e3),pics:e.PropTypes.array.def([]),list:e.PropTypes.array.def([]),height:e.PropTypes.number,width:e.PropTypes.number},emits:["index-change"],setup:function(e,t){var r,o=t.emit,a=t.slots,i=(0,n.toRefs)(e),l=i.isLoop,u=i.loopTime,s=i.pics,c=i.list,p=i.height,d=i.width,v=(0,n.ref)(),f=(0,n.ref)(0),h=(0,n.ref)(0),b=(0,n.ref)(0),m=(0,n.ref)(0),w=(0,n.computed)((function(){var e;return(null===(e=c.value)||void 0===e?void 0:e.length)>0?c.value:s.value})),g=(0,n.computed)((function(){return{width:"".concat(h.value*w.value.length,"px"),transform:"translateX(-".concat(h.value*f.value,"px)")}})),y=(0,n.computed)((function(){return{width:"".concat(h.value,"px"),height:"".concat(b.value,"px")}})),k=function(e){var n=e;e>=w.value.length&&(n=0),e<0&&(n=w.value.length-1),f.value=n,o("index-change",n)},x=function(e){return["bk-swiper-img",{"bk-swiper-link":e.link},e.class]},T=function(e){return{"background-image":"url(".concat(e.url,")"),"background-color":e.color}},N=function(e){return{"bk-current-index":f.value===e}},P=function e(){l.value&&(m.value=window.setTimeout((function(){k(f.value+1),e()}),u.value))},V=function(){var e,n=function(e){if(void 0===e)return{height:0,width:0};var n=getComputedStyle(e),t=e.clientWidth-parseFloat(n.paddingTop)-parseFloat(n.paddingBottom);return{height:e.clientHeight-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight),width:t}}(null===(e=v.value)||void 0===e?void 0:e.parentElement);h.value=+d.value>0?d.value:n.width,b.value=+p.value>0?p.value:n.height};return(0,n.watch)([p,d],V),(0,n.onMounted)((function(){var e,n;V(),P(),(n=null===(e=v.value)||void 0===e?void 0:e.parentElement)&&window.ResizeObserver&&(r=new ResizeObserver((function(){V()}))).observe(n)})),(0,n.onBeforeUnmount)((function(){var e;window.clearTimeout(m.value),null===(e=r.disconnect)||void 0===e||e.call(r)})),function(){return(0,n.createVNode)("section",{class:"bk-swiper-home",ref:v,style:y.value},[(0,n.createVNode)("hgroup",{style:g.value,class:"bk-transition bk-swiper-main"},[w.value.map((function(e){var t,r;return(0,n.createVNode)("h3",{class:"bk-swiper-card",style:y.value},[null!==(r=null===(t=a.default)||void 0===t?void 0:t.call(a,e))&&void 0!==r?r:(0,n.createVNode)("span",{class:x(e),style:T(e),onClick:function(){var n;(n=e.link)&&window.open(n,"_blank")}},null)])}))]),(0,n.createVNode)("ul",{class:"bk-swiper-index"},[w.value.map((function(e,t){return(0,n.createVNode)("li",{class:N(t),onMouseover:function(){return k(t)}},null)}))]),(0,n.createVNode)("span",{class:"bk-swiper-nav bk-nav-prev",onClick:function(){return k(f.value-1)}},[(0,n.createVNode)("i",{class:"bk-swiper-nav-icon"},null)]),(0,n.createVNode)("span",{class:"bk-swiper-nav bk-nav-next",onClick:function(){return k(f.value+1)}},[(0,n.createVNode)("i",{class:"bk-swiper-nav-icon"},null)])])}}}),r=(0,e.withInstall)(t)})(),a})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../config-provider"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../config-provider")):t(e["../shared"],e.vue,e["../config-provider"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n)=>(()=>{"use strict";var r={2717:e=>{e.exports=n},4212:t=>{t.exports=e},748:e=>{e.exports=t}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{i.r(a),i.d(a,{default:()=>l});var e=i(4212);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===t(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var r=i(748),o=i(2717);const u=(0,r.defineComponent)({name:"Swiper",props:{isLoop:e.PropTypes.bool.def(!0),loopTime:e.PropTypes.number.def(8e3),pics:e.PropTypes.array.def([]),list:e.PropTypes.array.def([]),height:e.PropTypes.number,width:e.PropTypes.number},emits:["index-change"],setup:function(e,t){var i,a=t.emit,u=t.slots,l=(0,r.toRefs)(e),c=l.isLoop,s=l.loopTime,p=l.pics,v=l.list,d=l.height,f=l.width,m=(0,r.ref)(),y=(0,r.ref)(0),h=(0,r.ref)(0),b=(0,r.ref)(0),g=(0,r.ref)(0),w=(0,o.usePrefix)().resolveClassName,x=(0,r.computed)((function(){var e;return(null===(e=v.value)||void 0===e?void 0:e.length)>0?v.value:p.value})),S=(0,r.computed)((function(){return{width:"".concat(h.value*x.value.length,"px"),transform:"translateX(-".concat(h.value*y.value,"px)")}})),P=(0,r.computed)((function(){return{width:"".concat(h.value,"px"),height:"".concat(b.value,"px")}})),T=function(e){var t=e;e>=x.value.length&&(t=0),e<0&&(t=x.value.length-1),y.value=t,a("index-change",t)},j=function(e){return["".concat(w("swiper-img")),n({},"".concat(w("swiper-link")),e.link),e.class]},N=function(e){return{"background-image":"url(".concat(e.url,")"),"background-color":e.color}},V=function(e){return n({},"".concat(w("current-index")),y.value===e)},k=function e(){c.value&&(g.value=window.setTimeout((function(){T(y.value+1),e()}),s.value))},O=function(){var e,t=function(e){if(void 0===e)return{height:0,width:0};var t=getComputedStyle(e),n=e.clientWidth-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom);return{height:e.clientHeight-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight),width:n}}(null===(e=m.value)||void 0===e?void 0:e.parentElement);h.value=+f.value>0?f.value:t.width,b.value=+d.value>0?d.value:t.height};return(0,r.watch)([d,f],O),(0,r.onMounted)((function(){var e,t;O(),k(),(t=null===(e=m.value)||void 0===e?void 0:e.parentElement)&&window.ResizeObserver&&(i=new ResizeObserver((function(){O()}))).observe(t)})),(0,r.onBeforeUnmount)((function(){var e;window.clearTimeout(g.value),null===(e=i.disconnect)||void 0===e||e.call(i)})),function(){return(0,r.createVNode)("section",{class:"".concat(w("swiper-home")),ref:m,style:P.value},[(0,r.createVNode)("hgroup",{style:S.value,class:"".concat(w("transition")," ").concat(w("swiper-main"))},[x.value.map((function(e){var t,n;return(0,r.createVNode)("h3",{class:"".concat(w("swiper-card")),style:P.value},[null!==(n=null===(t=u.default)||void 0===t?void 0:t.call(u,e))&&void 0!==n?n:(0,r.createVNode)("span",{class:j(e),style:N(e),onClick:function(){var t;(t=e.link)&&window.open(t,"_blank")}},null)])}))]),(0,r.createVNode)("ul",{class:"".concat(w("swiper-index"))},[x.value.map((function(e,t){return(0,r.createVNode)("li",{class:V(t),onMouseover:function(){return T(t)}},null)}))]),(0,r.createVNode)("span",{class:"".concat(w("swiper-nav")," ").concat(w("nav-prev")),onClick:function(){return T(y.value-1)}},[(0,r.createVNode)("i",{class:"".concat(w("swiper-nav-icon"))},null)]),(0,r.createVNode)("span",{class:"".concat(w("swiper-nav")," ").concat(w("nav-next"),"}"),onClick:function(){return T(y.value+1)}},[(0,r.createVNode)("i",{class:"".concat(w("swiper-nav-icon"))},null)])])}}}),l=(0,e.withInstall)(u)})(),a})()));
@@ -61,5 +61,5 @@ declare const _default: import("vue").DefineComponent<{
61
61
  isLoop: boolean;
62
62
  loopTime: number;
63
63
  pics: unknown[];
64
- }>;
64
+ }, {}>;
65
65
  export default _default;
@@ -1,28 +1,30 @@
1
- .bk-swiper-home {
1
+ @import '../styles/themes/themes.less';
2
+
3
+ .@{bk-prefix}-swiper-home {
2
4
  position: relative;
3
5
  overflow: hidden;
4
6
 
5
- &:hover .bk-swiper-nav {
7
+ &:hover .@{bk-prefix}-swiper-nav {
6
8
  display: block;
7
9
  }
8
10
  }
9
11
 
10
- .bk-swiper-main {
12
+ .@{bk-prefix}-swiper-main {
11
13
  display: flex;
12
14
  height: 100%;
13
15
  overflow: hidden;
14
16
 
15
- &.bk-transition {
17
+ &.@{bk-prefix}-transition {
16
18
  transition: .5s cubic-bezier(.42, 0, .58, 1);
17
19
  }
18
20
 
19
- .bk-swiper-card {
21
+ .@{bk-prefix}-swiper-card {
20
22
  height: 100%;
21
23
  padding: 0;
22
24
  margin: 0;
23
25
  }
24
26
 
25
- .bk-swiper-img {
27
+ .@{bk-prefix}-swiper-img {
26
28
  display: inline-block;
27
29
  width: 100%;
28
30
  height: 100%;
@@ -32,12 +34,12 @@
32
34
  background-size: cover;
33
35
  }
34
36
 
35
- .bk-swiper-link {
37
+ .@{bk-prefix}-swiper-link {
36
38
  cursor: pointer;
37
39
  }
38
40
  }
39
41
 
40
- .bk-swiper-index {
42
+ .@{bk-prefix}-swiper-index {
41
43
  position: absolute;
42
44
  right: 0;
43
45
  bottom: 10px;
@@ -56,14 +58,14 @@
56
58
  border-radius: 2px;
57
59
  transition: width .525s;
58
60
 
59
- &.bk-current-index {
61
+ &.@{bk-prefix}-current-index {
60
62
  width: 17px;
61
63
  background: #c5c7d1;
62
64
  }
63
65
  }
64
66
  }
65
67
 
66
- .bk-swiper-nav {
68
+ .@{bk-prefix}-swiper-nav {
67
69
  position: absolute;
68
70
  top: calc(50% - 15px);
69
71
  display: none;
@@ -73,7 +75,7 @@
73
75
  background: rgba(31,45,61,.4);
74
76
  border-radius: 50%;
75
77
 
76
- .bk-swiper-nav-icon {
78
+ .@{bk-prefix}-swiper-nav-icon {
77
79
  position: absolute;
78
80
  top: 9px;
79
81
  left: 11px;
@@ -83,7 +85,7 @@
83
85
  border-left: 2px solid #fff;
84
86
  }
85
87
 
86
- &.bk-nav-prev {
88
+ &.@{bk-prefix}-nav-prev {
87
89
  left: 14px;
88
90
  transform: rotate(45deg);
89
91
 
@@ -92,7 +94,7 @@
92
94
  }
93
95
  }
94
96
 
95
- &.bk-nav-next {
97
+ &.@{bk-prefix}-nav-next {
96
98
  right: 14px;
97
99
  transform: rotate(225deg);
98
100
 
@@ -1,3 +1,125 @@
1
+ :root {
2
+ --bk-prefix: bk;
3
+ --popover-max-height: 216px;
4
+ --primary-color: #3a84ff;
5
+ --success-color: #2dcb56;
6
+ --warning-color: #ff9c01;
7
+ --danger-color: #ea3636;
8
+ --default-color: #63656e;
9
+ --gray-color: #979ba5;
10
+ --light-gray: #c4c6cc;
11
+ --white-color: white;
12
+ --whitesmoke-color: #fafbfd;
13
+ --disable-color: #dcdee5;
14
+ --font-size-base: 12px;
15
+ --font-size-medium: 14px;
16
+ --font-size-large: 16px;
17
+ --line-height-base: 16px;
18
+ --line-height-medium: 16px;
19
+ --line-height-large: 18px;
20
+ --component-size-small: 26px;
21
+ --component-size-base: 32px;
22
+ --component-size-large: 40px;
23
+ --border-width-base: 1px;
24
+ --border-style-base: solid;
25
+ --border-radius-base: 2px;
26
+ --border-style-color: var(--light-gray);
27
+ --input-disabled-bg: #fafbfd;
28
+ --input-disabled-border: var(--disable-color);
29
+ --input-height-base: var(--component-size-base);
30
+ --input-color: var(--default-color);
31
+ --input-bg: white;
32
+ --input-border-color: var(--light-gray);
33
+ --input-broder-radius: 3px;
34
+ --input-shadow-color: #a3c5fd;
35
+ --input-horizontal-padding: 10px;
36
+ --input-block-color: #f5f7fa;
37
+ --input-block-hover-color: #eaebf0;
38
+ --input-icon-size: var(--font-size-medium);
39
+ --input-maxlength-color: #979ba5;
40
+ --button-primary-hover-color: #5594fa;
41
+ --button-danger-hover-color: #ff5656;
42
+ --button-success-hover-color: #45e35f;
43
+ --button-warning-hover-color: #ffb848;
44
+ --button-default-hover-border-color: #979ba5;
45
+ --button-primary-active-color: #2c77f4;
46
+ --button-danger-active-color: #db2626;
47
+ --button-success-active-color: #1ab943;
48
+ --button-warning-active-color: #eb9000;
49
+ --button-selected-bg-color: #e1ecff;
50
+ --button-disabled-selected-bg-color: #f0f1f5;
51
+ --radio-font-color: #63656e;
52
+ --radio-active-color: #5594fa;
53
+ --radio-hover-border-color: #979ba5;
54
+ --radio-disabled-border: #dcdee5;
55
+ --radio-disabled-font-color: #c4c6cc;
56
+ --radio-disabled-checked-bg: #a3c5fd;
57
+ --radio-button-checked-bg: #e1ecff;
58
+ --radio-button-disabled-checked-bg: #fafbfd;
59
+ --checkbox-disabled-checked-bg: #a3c5fd;
60
+ --fixed-navbar-background: #fff;
61
+ --fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
62
+ --switch-default-color: #fff;
63
+ --switch-grey-color: #c4c6cc;
64
+ --breadcrumb-black-color: #979ba5;
65
+ --breadcrumb-primary-hover-color: #0082ff;
66
+ --breadcrumb-fn-main-color: #63656e;
67
+ --link-default-hover-color: #979ba5;
68
+ --link-primary-hover-color: #699df4;
69
+ --link-success-hover-color: #45e35f;
70
+ --link-warning-hover-color: #ffb848;
71
+ --link-danger-hover-color: #ff5656;
72
+ --link-default-disabled-color: #dcdee5;
73
+ --link-primary-disabled-color: #a3c5fd;
74
+ --link-success-disabled-color: #94f5a4;
75
+ --link-warning-disabled-color: #ffd695;
76
+ --link-danger-disabled-color: #fd9c9c;
77
+ --message-color: var(--default-color);
78
+ --message-primary-bg-color: #f0f8ff;
79
+ --message-primary-border-color: #e1ecff;
80
+ --message-primary-shadow-color: #e1e8f4;
81
+ --message-warning-bg-color: #fff4e2;
82
+ --message-warning-border-color: #ffe8c3;
83
+ --message-warning-shadow-color: #ede6db;
84
+ --message-success-bg-color: #f2fff4;
85
+ --message-success-border-color: #dcffe2;
86
+ --message-success-shadow-color: #cef0d7;
87
+ --message-danger-bg-color: #ffeded;
88
+ --message-danger-border-color: #ffdddd;
89
+ --message-danger-shadow-color: #f6dada;
90
+ --slider-default-bg: #dcdee5;
91
+ --slider-disable-bar-bg: #979ba5;
92
+ --menu-bg-color: #182132;
93
+ --submenu-bg-color: #151d2c;
94
+ --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
95
+ --menu-color: #96a2b9;
96
+ --menu-group-color: var(--default-color);
97
+ --menu-width: 260px;
98
+ --menu-collapse-width: 60px;
99
+ --menu-active-color: white;
100
+ --nav-header-bg-color: #182132;
101
+ --nav-bg-color: #182132;
102
+ --date-picker-disabled-bg: #fafbfd;
103
+ --date-picker-dropdown-mb: 4px;
104
+ --date-picker-dropdown-bg: #fff;
105
+ --table-bg-color: var(--white-color);
106
+ --table-border-color: #dcdee5;
107
+ --table-head-bg-color: #fafbfd;
108
+ --table-head-font-color: #313238;
109
+ --table-body-font-color: #63656E;
110
+ --table-row-hover-bg-color: #f5f7fa;
111
+ --table-row-active-bg-color: #f0f1f5;
112
+ --cascader-panel-border-color: #dcdee5;
113
+ --cascader-panel-hover: #f5f7fa;
114
+ --cascader-panel-active: #e1ecff;
115
+ --cascader-panel-disabled-bg: #fff;
116
+ --search-select-focus-border-color: var(--primary-color);
117
+ --search-select-focus-color: #3c96ff;
118
+ --search-select-font-color: var(--default-color);
119
+ --search-select-placeholder-color: var(--light-gray);
120
+ --search-select-message-color: var(--danger-color);
121
+ --search-select-menu-border-color: var(--disable-color);
122
+ }
1
123
  .bk-swiper-home {
2
124
  position: relative;
3
125
  overflow: hidden;
@@ -2,71 +2,69 @@ declare const BkSwitcher: {
2
2
  new (...args: any[]): {
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
- $props: Partial<{
6
- disabled: boolean;
7
- theme: string;
8
- value: string | number | boolean;
9
- extCls: string;
10
- modelValue: string | number | boolean;
11
- beforeChange: (...args: any[]) => any;
12
- showText: boolean;
13
- isOutline: boolean;
14
- onText: string;
15
- offText: string;
16
- isSquare: boolean;
17
- trueValue: string | number | boolean;
18
- falseValue: string | number | boolean;
19
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
20
- theme: import("vue-types").VueTypeDef<string> & {
21
- default: string;
22
- };
23
- size: import("vue-types").VueTypeDef<string>;
24
- disabled: import("vue-types").VueTypeValidableDef<boolean> & {
25
- default: boolean;
26
- };
27
- showText: import("vue-types").VueTypeValidableDef<boolean> & {
28
- default: boolean;
29
- };
30
- isOutline: import("vue-types").VueTypeValidableDef<boolean> & {
31
- default: boolean;
32
- };
33
- onText: import("vue-types").VueTypeValidableDef<string> & {
34
- default: string;
35
- } & {
36
- default: string;
37
- };
38
- offText: import("vue-types").VueTypeValidableDef<string> & {
39
- default: string;
40
- } & {
41
- default: string;
42
- };
43
- isSquare: import("vue-types").VueTypeValidableDef<boolean> & {
44
- default: boolean;
45
- };
46
- extCls: import("vue-types").VueTypeValidableDef<string> & {
47
- default: string;
48
- };
49
- beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
50
- default: (...args: any[]) => any;
51
- } & {
52
- default: (...args: any[]) => any;
53
- };
54
- trueValue: import("vue-types").VueTypeDef<string | number | boolean> & {
55
- default: string | number | boolean;
56
- };
57
- falseValue: import("vue-types").VueTypeDef<string | number | boolean> & {
58
- default: string | number | boolean;
59
- };
60
- value: import("vue-types").VueTypeDef<string | number | boolean> & {
61
- default: string | number | boolean;
62
- };
63
- modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
64
- default: string | number | boolean;
65
- };
66
- }>> & {
5
+ $props: {
6
+ extCls?: string;
7
+ disabled?: boolean;
8
+ value?: string | number | boolean;
9
+ modelValue?: string | number | boolean;
10
+ withValidate?: boolean;
11
+ beforeChange?: (...args: any[]) => any;
12
+ showText?: boolean;
13
+ isOutline?: boolean;
14
+ onText?: string;
15
+ offText?: string;
16
+ isSquare?: boolean;
17
+ trueValue?: string | number | boolean;
18
+ falseValue?: string | number | boolean;
19
+ class?: unknown;
20
+ style?: unknown;
67
21
  onChange?: (...args: any[]) => any;
22
+ readonly theme?: "success" | "warning" | "danger" | "primary";
23
+ key?: string | number | symbol;
24
+ ref?: import("vue").VNodeRef;
25
+ ref_for?: boolean;
26
+ ref_key?: string;
27
+ onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
28
+ [key: string]: any;
29
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
30
+ [key: string]: any;
31
+ }>) => void)[];
32
+ onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
33
+ [key: string]: any;
34
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
35
+ [key: string]: any;
36
+ }>) => void)[];
37
+ onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
38
+ [key: string]: any;
39
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
40
+ [key: string]: any;
41
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
42
+ [key: string]: any;
43
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
44
+ [key: string]: any;
45
+ }>) => void)[];
46
+ onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
+ [key: string]: any;
48
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
49
+ [key: string]: any;
50
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
51
+ [key: string]: any;
52
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
53
+ [key: string]: any;
54
+ }>) => void)[];
55
+ onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
56
+ [key: string]: any;
57
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
58
+ [key: string]: any;
59
+ }>) => void)[];
60
+ onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
61
+ [key: string]: any;
62
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
63
+ [key: string]: any;
64
+ }>) => void)[];
65
+ readonly size?: "small" | "large" | "default";
68
66
  "onUpdate:modelValue"?: (...args: any[]) => any;
69
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "theme" | "value" | "extCls" | "modelValue" | "beforeChange" | "showText" | "isOutline" | "onText" | "offText" | "isSquare" | "trueValue" | "falseValue">;
67
+ };
70
68
  $attrs: {
71
69
  [x: string]: unknown;
72
70
  };
@@ -74,17 +72,15 @@ declare const BkSwitcher: {
74
72
  [x: string]: unknown;
75
73
  };
76
74
  $slots: Readonly<{
77
- [name: string]: import("vue").Slot;
75
+ [name: string]: import("vue").Slot<any>;
78
76
  }>;
79
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
80
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
77
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
78
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
81
79
  $emit: (event: "change" | "update:modelValue", ...args: any[]) => void;
82
80
  $el: any;
83
81
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
84
- theme: import("vue-types").VueTypeDef<string> & {
85
- default: string;
86
- };
87
- size: import("vue-types").VueTypeDef<string>;
82
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
83
+ size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
88
84
  disabled: import("vue-types").VueTypeValidableDef<boolean> & {
89
85
  default: boolean;
90
86
  };
@@ -127,15 +123,20 @@ declare const BkSwitcher: {
127
123
  modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
128
124
  default: string | number | boolean;
129
125
  };
126
+ withValidate: import("vue-types").VueTypeValidableDef<boolean> & {
127
+ default: boolean;
128
+ } & {
129
+ default: boolean;
130
+ };
130
131
  }>> & {
131
132
  onChange?: (...args: any[]) => any;
132
133
  "onUpdate:modelValue"?: (...args: any[]) => any;
133
134
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], string, {
135
+ extCls: string;
134
136
  disabled: boolean;
135
- theme: string;
136
137
  value: string | number | boolean;
137
- extCls: string;
138
138
  modelValue: string | number | boolean;
139
+ withValidate: boolean;
139
140
  beforeChange: (...args: any[]) => any;
140
141
  showText: boolean;
141
142
  isOutline: boolean;
@@ -144,7 +145,7 @@ declare const BkSwitcher: {
144
145
  isSquare: boolean;
145
146
  trueValue: string | number | boolean;
146
147
  falseValue: string | number | boolean;
147
- }> & {
148
+ }, {}, string, {}> & {
148
149
  beforeCreate?: (() => void) | (() => void)[];
149
150
  created?: (() => void) | (() => void)[];
150
151
  beforeMount?: (() => void) | (() => void)[];
@@ -159,16 +160,14 @@ declare const BkSwitcher: {
159
160
  unmounted?: (() => void) | (() => void)[];
160
161
  renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
161
162
  renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
162
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
163
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
163
164
  };
164
165
  $forceUpdate: () => void;
165
166
  $nextTick: typeof import("vue").nextTick;
166
- $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
167
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
167
168
  } & Readonly<import("vue").ExtractPropTypes<{
168
- theme: import("vue-types").VueTypeDef<string> & {
169
- default: string;
170
- };
171
- size: import("vue-types").VueTypeDef<string>;
169
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
170
+ size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
172
171
  disabled: import("vue-types").VueTypeValidableDef<boolean> & {
173
172
  default: boolean;
174
173
  };
@@ -211,18 +210,21 @@ declare const BkSwitcher: {
211
210
  modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
212
211
  default: string | number | boolean;
213
212
  };
213
+ withValidate: import("vue-types").VueTypeValidableDef<boolean> & {
214
+ default: boolean;
215
+ } & {
216
+ default: boolean;
217
+ };
214
218
  }>> & {
215
219
  onChange?: (...args: any[]) => any;
216
220
  "onUpdate:modelValue"?: (...args: any[]) => any;
217
- } & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
221
+ } & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
218
222
  __isFragment?: never;
219
223
  __isTeleport?: never;
220
224
  __isSuspense?: never;
221
225
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
222
- theme: import("vue-types").VueTypeDef<string> & {
223
- default: string;
224
- };
225
- size: import("vue-types").VueTypeDef<string>;
226
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
227
+ size: import("vue-types").VueTypeDef<"small" | "large" | "default">;
226
228
  disabled: import("vue-types").VueTypeValidableDef<boolean> & {
227
229
  default: boolean;
228
230
  };
@@ -265,15 +267,20 @@ declare const BkSwitcher: {
265
267
  modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
266
268
  default: string | number | boolean;
267
269
  };
270
+ withValidate: import("vue-types").VueTypeValidableDef<boolean> & {
271
+ default: boolean;
272
+ } & {
273
+ default: boolean;
274
+ };
268
275
  }>> & {
269
276
  onChange?: (...args: any[]) => any;
270
277
  "onUpdate:modelValue"?: (...args: any[]) => any;
271
278
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", {
279
+ extCls: string;
272
280
  disabled: boolean;
273
- theme: string;
274
281
  value: string | number | boolean;
275
- extCls: string;
276
282
  modelValue: string | number | boolean;
283
+ withValidate: boolean;
277
284
  beforeChange: (...args: any[]) => any;
278
285
  showText: boolean;
279
286
  isOutline: boolean;
@@ -282,5 +289,5 @@ declare const BkSwitcher: {
282
289
  isSquare: boolean;
283
290
  trueValue: string | number | boolean;
284
291
  falseValue: string | number | boolean;
285
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
292
+ }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
286
293
  export default BkSwitcher;
@@ -1 +1 @@
1
- !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon"],o);else{var r="object"==typeof exports?o(require("../shared"),require("vue"),require("../icon")):o(e["../shared"],e.vue,e["../icon"]);for(var t in r)("object"==typeof exports?exports:e)[t]=r[t]}}(self,((e,o,r)=>(()=>{"use strict";var t={6870:e=>{e.exports=r},4212:o=>{o.exports=e},748:e=>{e.exports=o}},n={};function u(e){var o=n[e];if(void 0!==o)return o.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,u),r.exports}u.d=(e,o)=>{for(var r in o)u.o(o,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},u.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{u.r(i),u.d(i,{default:()=>s});var e=u(4212);function o(e,o,r){return o in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}var r=u(748),t=u(6870);const n=(0,r.defineComponent)({name:"Switcher",props:{theme:e.PropTypes.theme().def(""),size:e.PropTypes.size(),disabled:e.PropTypes.bool,showText:e.PropTypes.bool,isOutline:e.PropTypes.bool,onText:e.PropTypes.string.def("ON"),offText:e.PropTypes.string.def("OFF"),isSquare:e.PropTypes.bool,extCls:e.PropTypes.string,beforeChange:e.PropTypes.func.def(void 0),trueValue:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number,e.PropTypes.bool]).def(!0),falseValue:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number,e.PropTypes.bool]).def(!1),value:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number,e.PropTypes.bool]).def(!1),modelValue:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number,e.PropTypes.bool]).def(!1)},emits:["update:modelValue","change"],setup:function(n,u){var i=u.emit,s=(0,e.useFormItem)(),a=(0,r.ref)(!1),l=(0,r.computed)((function(){return n.trueValue===f.value})),p=(0,r.ref)(!1!==n.modelValue),f=(0,r.computed)((function(){return p.value?n.modelValue:n.value})),c=(0,r.computed)((function(){var e,r=(o(e={},n.extCls,!!n.extCls),o(e,"bk-switcher",!0),o(e,"bk-switcher-outline",n.isOutline),o(e,"bk-switcher-square",n.isSquare),o(e,"show-label",n.showText),o(e,"is-disabled",n.disabled),o(e,"is-checked",l.value),o(e,"is-unchecked",!l.value),o(e,"is-loading",a.value),o(e,"bk-primary","primary"===n.theme),e);return n.size&&!n.showText&&(r["bk-switcher-".concat(n.size)]=!0),n.size||(r["bk-switcher-nomal"]=!0),r}));(0,r.watch)((function(){return n.modelValue}),(function(){p.value=!0})),(0,r.watch)((function(){return n.value}),(function(){p.value=!1}));var d=function(e){if(e.stopPropagation(),e.preventDefault(),!n.disabled&&!a.value){var o=l.value?n.falseValue:n.trueValue,r=!l.value,t=function(){var e;i("update:modelValue",o),i("change",r),null===(e=null==s?void 0:s.validate)||void 0===e||e.call(s,"change")},u=!0;if("function"==typeof n.beforeChange&&"function"==typeof(u=n.beforeChange(o)).then)return a.value=!0,u.then((function(){t()})).finally((function(){a.value=!1}));u&&t()}};return function(){return(0,r.createVNode)("div",{class:c.value,onClick:d,tabindex:"0",onKeydown:d},[a.value?(0,r.createVNode)(t.SwitcherLoading,{class:"bk-switcher-loading"},null):"",n.showText?(0,r.createVNode)("span",{class:"switcher-text"},[l.value?n.onText:n.offText]):""])}}}),s=(0,e.withInstall)(n)})(),i})()));
1
+ !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"),require("../config-provider"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","../icon"],o);else{var r="object"==typeof exports?o(require("../shared"),require("vue"),require("../config-provider"),require("../icon")):o(e["../shared"],e.vue,e["../config-provider"],e["../icon"]);for(var t in r)("object"==typeof exports?exports:e)[t]=r[t]}}(self,((e,o,r,t)=>(()=>{"use strict";var n={2717:e=>{e.exports=r},6870:e=>{e.exports=t},4212:o=>{o.exports=e},748:e=>{e.exports=o}},i={};function u(e){var o=i[e];if(void 0!==o)return o.exports;var r=i[e]={exports:{}};return n[e](r,r.exports,u),r.exports}u.d=(e,o)=>{for(var r in o)u.o(o,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},u.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{u.r(a),u.d(a,{default:()=>s});var e=u(4212);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function r(e,r,t){return(r=function(e){var r=function(e,r){if("object"!==o(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var t=u(748),n=u(2717),i=u(6870);const l=(0,t.defineComponent)({name:"Switcher",props:{theme:e.PropTypes.theme(),size:e.PropTypes.size(),disabled:e.PropTypes.bool,showText:e.PropTypes.bool,isOutline:e.PropTypes.bool,onText:e.PropTypes.string.def("ON"),offText:e.PropTypes.string.def("OFF"),isSquare:e.PropTypes.bool,extCls:e.PropTypes.string,beforeChange:e.PropTypes.func.def(void 0),trueValue:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number,e.PropTypes.bool]).def(!0),falseValue:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number,e.PropTypes.bool]).def(!1),value:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number,e.PropTypes.bool]).def(!1),modelValue:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number,e.PropTypes.bool]).def(!1),withValidate:e.PropTypes.bool.def(!0)},emits:["update:modelValue","change"],setup:function(o,u){var a=u.emit,l=(0,e.useFormItem)(),s=(0,n.usePrefix)().resolveClassName,p=(0,t.ref)(!1),c=(0,t.computed)((function(){return o.trueValue===d.value})),f=(0,t.ref)(!1!==o.modelValue),d=(0,t.computed)((function(){return f.value?o.modelValue:o.value})),y=(0,t.computed)((function(){var e,t=(r(e={},o.extCls,!!o.extCls),r(e,"".concat(s("switcher")),!0),r(e,"".concat(s("switcher-outline")),o.isOutline),r(e,"".concat(s("switcher-square")),o.isSquare),r(e,"show-label",o.showText),r(e,"is-disabled",o.disabled),r(e,"is-checked",c.value),r(e,"is-unchecked",!c.value),r(e,"is-loading",p.value),r(e,"".concat(s("primary")),"primary"===o.theme),e);return o.size&&!o.showText&&(t["".concat(s("bswitcher-".concat(o.size)))]=!0),t}));(0,t.watch)((function(){return o.modelValue}),(function(){var e;f.value=!0,o.withValidate&&(null===(e=null==l?void 0:l.validate)||void 0===e||e.call(l,"change"))})),(0,t.watch)((function(){return o.value}),(function(){f.value=!1}));var v=function(e){if(e.stopPropagation(),e.preventDefault(),!o.disabled&&!p.value){var r=c.value?o.falseValue:o.trueValue,t=!c.value,n=function(){a("update:modelValue",r),a("change",t)},i=!0;if("function"==typeof o.beforeChange&&"function"==typeof(i=o.beforeChange(r)).then)return p.value=!0,i.then((function(){n()})).finally((function(){p.value=!1}));i&&n()}},b=function(e){"Enter"!==e.code&&"Enter"!==e.key&&13!==e.keyCode||v(e)};return function(){return(0,t.createVNode)("div",{class:y.value,onClick:v,tabindex:"0",onKeydown:b},[p.value?(0,t.createVNode)(i.SwitcherLoading,{class:"".concat(s("switcher-loading"))},null):"",o.showText?(0,t.createVNode)("span",{class:"switcher-text"},[c.value?o.onText:o.offText]):""])}}}),s=(0,e.withInstall)(l)})(),a})()));
@@ -27,6 +27,49 @@
27
27
  content: '';
28
28
  visibility: hidden;
29
29
  }
30
+ .bk-popper {
31
+ display: none;
32
+ padding: 7px 14px;
33
+ font-size: 12px;
34
+ color: #fff;
35
+ background: #333;
36
+ border-radius: 4px;
37
+ }
38
+ .bk-popper.light {
39
+ color: #63656e;
40
+ background: #fff;
41
+ box-shadow: #dcdee5 0 0 6px 0;
42
+ }
43
+ .bk-popper .bk-popper-arrow,
44
+ .bk-popper .bk-popper-arrow::before {
45
+ position: absolute;
46
+ width: 8px;
47
+ height: 8px;
48
+ background: inherit;
49
+ }
50
+ .bk-popper .bk-popper-arrow {
51
+ visibility: hidden;
52
+ }
53
+ .bk-popper .bk-popper-arrow::before {
54
+ content: '';
55
+ visibility: visible;
56
+ transform: rotate(45deg);
57
+ }
58
+ .bk-popper[data-show] {
59
+ display: block;
60
+ }
61
+ .bk-popper[data-popper-placement^='top'] > .bk-popper-arrow {
62
+ bottom: -4px;
63
+ }
64
+ .bk-popper[data-popper-placement^='bottom'] > .bk-popper-arrow {
65
+ top: -4px;
66
+ }
67
+ .bk-popper[data-popper-placement^='left'] > .bk-popper-arrow {
68
+ right: -4px;
69
+ }
70
+ .bk-popper[data-popper-placement^='right'] > .bk-popper-arrow {
71
+ left: -4px;
72
+ }
30
73
  .bk-switcher {
31
74
  position: relative;
32
75
  display: inline-block;
@@ -247,7 +290,7 @@
247
290
  .bk-switcher.bk-switcher-small.is-checked .bk-switcher-loading {
248
291
  margin-left: -13px;
249
292
  }
250
- :not(.show-label).bk-switcher-nomal.bk-switcher-outline::after {
293
+ :not(.show-label).bk-switcher-default.bk-switcher-outline::after {
251
294
  width: 16px;
252
295
  height: 16px;
253
296
  }