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

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 (450) hide show
  1. package/README.md +31 -19
  2. package/README_EN.md +93 -0
  3. package/dist/bkui-vue.cjs.js +18093 -2770
  4. package/dist/bkui-vue.esm.js +18049 -2775
  5. package/dist/bkui-vue.umd.js +18095 -2772
  6. package/dist/style.css +3958 -254
  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 +115 -0
  48. package/lib/code-diff/code-diff.d.ts +71 -0
  49. package/lib/code-diff/code-diff.less +145 -0
  50. package/lib/code-diff/code-diff.variable.css +208 -0
  51. package/lib/code-diff/index.d.ts +6 -0
  52. package/lib/collapse/collapse.css +8 -0
  53. package/lib/collapse/collapse.d.ts +50 -18
  54. package/lib/collapse/collapse.less +10 -0
  55. package/lib/collapse/collapse.variable.css +8 -0
  56. package/lib/collapse/index.d.ts +166 -0
  57. package/lib/collapse/index.js +1 -1
  58. package/lib/components.d.ts +39 -0
  59. package/lib/date-picker/date-picker.css +407 -0
  60. package/lib/date-picker/date-picker.d.ts +294 -0
  61. package/lib/date-picker/date-picker.less +526 -0
  62. package/lib/date-picker/date-picker.variable.css +500 -0
  63. package/lib/date-picker/fecha.d.ts +6 -0
  64. package/lib/date-picker/index.d.ts +713 -0
  65. package/lib/date-picker/index.js +1 -0
  66. package/lib/date-picker/interface.d.ts +22 -0
  67. package/lib/date-picker/props.d.ts +111 -0
  68. package/lib/date-picker/utils.d.ts +97 -0
  69. package/lib/dialog/dialog.d.ts +57 -27
  70. package/lib/dialog/index.d.ts +286 -0
  71. package/lib/dialog/index.js +1 -1
  72. package/lib/directives/clickoutside.d.ts +3 -0
  73. package/lib/directives/index.d.ts +3 -0
  74. package/lib/directives/index.js +14 -14
  75. package/lib/directives/tooltips.d.ts +17 -0
  76. package/lib/divider/divider.css +38 -0
  77. package/lib/divider/divider.d.ts +48 -0
  78. package/lib/divider/divider.less +53 -0
  79. package/lib/divider/divider.variable.css +131 -0
  80. package/lib/divider/index.d.ts +142 -0
  81. package/lib/divider/index.js +1 -0
  82. package/lib/dropdown/dropdown-item.d.ts +19 -0
  83. package/lib/dropdown/dropdown-menu.d.ts +16 -0
  84. package/lib/dropdown/dropdown.css +43 -0
  85. package/lib/dropdown/dropdown.d.ts +61 -0
  86. package/lib/dropdown/dropdown.less +54 -0
  87. package/lib/dropdown/dropdown.variable.css +136 -0
  88. package/lib/dropdown/index.d.ts +192 -0
  89. package/lib/dropdown/index.js +1 -0
  90. package/lib/exception/exception.d.ts +11 -9
  91. package/lib/exception/exception.variable.css +32 -0
  92. package/lib/exception/index.d.ts +96 -0
  93. package/lib/exception/index.js +1 -1
  94. package/lib/fixed-navbar/fixed-navbar.d.ts +15 -9
  95. package/lib/fixed-navbar/fixed-navbar.variable.css +32 -0
  96. package/lib/fixed-navbar/index.d.ts +112 -0
  97. package/lib/fixed-navbar/index.js +1 -1
  98. package/lib/form/common.d.ts +3 -0
  99. package/lib/form/form-item.d.ts +145 -0
  100. package/lib/form/form.css +48 -0
  101. package/lib/form/form.d.ts +64 -0
  102. package/lib/form/form.less +63 -0
  103. package/lib/form/form.variable.css +48 -0
  104. package/lib/form/index.d.ts +246 -0
  105. package/lib/form/index.js +1 -0
  106. package/lib/form/type.d.ts +21 -0
  107. package/lib/form/validator.d.ts +8 -0
  108. package/lib/icon/angle-double-down-line.d.ts +4 -0
  109. package/lib/icon/angle-double-down-line.js +15 -0
  110. package/lib/icon/angle-double-left-line.d.ts +4 -0
  111. package/lib/icon/angle-double-left-line.js +15 -0
  112. package/lib/icon/angle-double-left.d.ts +4 -0
  113. package/lib/icon/angle-double-left.js +15 -0
  114. package/lib/icon/angle-double-right-line.d.ts +4 -0
  115. package/lib/icon/angle-double-right-line.js +15 -0
  116. package/lib/icon/angle-double-right.d.ts +4 -0
  117. package/lib/icon/angle-double-right.js +15 -0
  118. package/lib/icon/angle-double-up-line.d.ts +4 -0
  119. package/lib/icon/angle-double-up-line.js +15 -0
  120. package/lib/icon/angle-down-fill.d.ts +4 -0
  121. package/lib/icon/angle-down-fill.js +15 -0
  122. package/lib/icon/angle-down-line.d.ts +4 -0
  123. package/lib/icon/angle-down-line.js +15 -0
  124. package/lib/icon/angle-down.d.ts +4 -0
  125. package/lib/icon/angle-down.js +15 -0
  126. package/lib/icon/angle-left.d.ts +4 -0
  127. package/lib/icon/angle-left.js +15 -0
  128. package/lib/icon/angle-right.d.ts +4 -0
  129. package/lib/icon/angle-right.js +15 -0
  130. package/lib/icon/angle-up-fill.d.ts +4 -0
  131. package/lib/icon/angle-up-fill.js +15 -0
  132. package/lib/icon/angle-up.d.ts +4 -0
  133. package/lib/icon/angle-up.js +15 -0
  134. package/lib/icon/arrows-left.d.ts +4 -0
  135. package/lib/icon/arrows-left.js +15 -0
  136. package/lib/icon/arrows-right.d.ts +4 -0
  137. package/lib/icon/arrows-right.js +15 -0
  138. package/lib/icon/bk.d.ts +4 -0
  139. package/lib/icon/bk.js +15 -0
  140. package/lib/icon/circle.d.ts +4 -0
  141. package/lib/icon/circle.js +15 -0
  142. package/lib/icon/close.d.ts +4 -0
  143. package/lib/icon/close.js +15 -0
  144. package/lib/icon/code.d.ts +4 -0
  145. package/lib/icon/code.js +15 -0
  146. package/lib/icon/cog-shape.d.ts +4 -0
  147. package/lib/icon/cog-shape.js +15 -0
  148. package/lib/icon/collapse-left.d.ts +4 -0
  149. package/lib/icon/collapse-left.js +15 -0
  150. package/lib/icon/copy.d.ts +4 -0
  151. package/lib/icon/copy.js +15 -0
  152. package/lib/icon/done.d.ts +4 -0
  153. package/lib/icon/done.js +15 -0
  154. package/lib/icon/down-shape.d.ts +4 -0
  155. package/lib/icon/down-shape.js +15 -0
  156. package/lib/icon/down-small.d.ts +4 -0
  157. package/lib/icon/down-small.js +15 -0
  158. package/lib/icon/ellipsis.d.ts +4 -0
  159. package/lib/icon/ellipsis.js +15 -0
  160. package/lib/icon/error.d.ts +4 -0
  161. package/lib/icon/error.js +15 -0
  162. package/lib/icon/eye.d.ts +4 -0
  163. package/lib/icon/eye.js +15 -0
  164. package/lib/icon/folder-open.d.ts +4 -0
  165. package/lib/icon/folder-open.js +15 -0
  166. package/lib/icon/folder-shape-open.d.ts +4 -0
  167. package/lib/icon/folder-shape-open.js +15 -0
  168. package/lib/icon/folder-shape.d.ts +4 -0
  169. package/lib/icon/folder-shape.js +15 -0
  170. package/lib/icon/folder.d.ts +4 -0
  171. package/lib/icon/folder.js +15 -0
  172. package/lib/icon/help-document-fill.d.ts +4 -0
  173. package/lib/icon/help-document-fill.js +15 -0
  174. package/lib/icon/help-fill.d.ts +4 -0
  175. package/lib/icon/help-fill.js +15 -0
  176. package/lib/icon/help.d.ts +4 -0
  177. package/lib/icon/help.js +15 -0
  178. package/lib/icon/icon.d.ts +12 -0
  179. package/lib/icon/icon.js +15 -0
  180. package/lib/icon/index.d.ts +53 -0
  181. package/lib/icon/index.js +1 -1
  182. package/lib/icon/info-line.d.ts +4 -0
  183. package/lib/icon/info-line.js +15 -0
  184. package/lib/icon/info.d.ts +4 -0
  185. package/lib/icon/info.js +15 -0
  186. package/lib/icon/left-shape.d.ts +4 -0
  187. package/lib/icon/left-shape.js +15 -0
  188. package/lib/icon/play-shape.d.ts +4 -0
  189. package/lib/icon/play-shape.js +15 -0
  190. package/lib/icon/plus.d.ts +4 -0
  191. package/lib/icon/plus.js +15 -0
  192. package/lib/icon/qq.d.ts +4 -0
  193. package/lib/icon/qq.js +15 -0
  194. package/lib/icon/right-shape.d.ts +4 -0
  195. package/lib/icon/right-shape.js +15 -0
  196. package/lib/icon/search.d.ts +4 -0
  197. package/lib/icon/search.js +15 -0
  198. package/lib/icon/share.d.ts +4 -0
  199. package/lib/icon/share.js +15 -0
  200. package/lib/icon/spinner.d.ts +4 -0
  201. package/lib/icon/spinner.js +15 -0
  202. package/lib/icon/success.d.ts +4 -0
  203. package/lib/icon/success.js +15 -0
  204. package/lib/icon/switcher-loading.d.ts +4 -0
  205. package/lib/icon/switcher-loading.js +15 -0
  206. package/lib/icon/text-file.d.ts +4 -0
  207. package/lib/icon/text-file.js +15 -0
  208. package/lib/icon/tree-application-shape.d.ts +4 -0
  209. package/lib/icon/tree-application-shape.js +15 -0
  210. package/lib/icon/unvisible.d.ts +4 -0
  211. package/lib/icon/unvisible.js +15 -0
  212. package/lib/icon/up-shape.d.ts +4 -0
  213. package/lib/icon/up-shape.js +15 -0
  214. package/lib/icon/warn.d.ts +4 -0
  215. package/lib/icon/warn.js +15 -0
  216. package/lib/icon/weixin.d.ts +4 -0
  217. package/lib/icon/weixin.js +15 -0
  218. package/lib/index.d.ts +4 -0
  219. package/lib/input/index.d.ts +417 -0
  220. package/lib/input/index.js +2 -2
  221. package/lib/input/input.css +20 -2
  222. package/lib/input/input.d.ts +97 -45
  223. package/lib/input/input.less +28 -5
  224. package/lib/input/input.variable.css +52 -2
  225. package/lib/link/index.d.ts +164 -0
  226. package/lib/link/index.js +1 -1
  227. package/lib/link/link.d.ts +25 -13
  228. package/lib/link/link.variable.css +32 -0
  229. package/lib/loading/index.d.ts +147 -0
  230. package/lib/loading/index.js +1 -1
  231. package/lib/loading/loading.css +100 -71
  232. package/lib/loading/loading.d.ts +48 -21
  233. package/lib/loading/loading.less +64 -49
  234. package/lib/loading/loading.variable.css +132 -71
  235. package/lib/menu/index.d.ts +188 -0
  236. package/lib/menu/index.js +1 -0
  237. package/lib/menu/menu-group.d.ts +14 -0
  238. package/lib/menu/menu-item.d.ts +16 -0
  239. package/lib/menu/menu.css +182 -0
  240. package/lib/menu/menu.d.ts +64 -0
  241. package/lib/menu/menu.less +180 -0
  242. package/lib/menu/menu.variable.css +275 -0
  243. package/lib/menu/submenu.css +3 -0
  244. package/lib/menu/submenu.d.ts +22 -0
  245. package/lib/menu/submenu.less +5 -0
  246. package/lib/menu/submenu.variable.css +96 -0
  247. package/lib/menu/utils.d.ts +41 -0
  248. package/lib/message/index.d.ts +2 -0
  249. package/lib/message/index.js +1 -0
  250. package/lib/message/message.css +53 -0
  251. package/lib/message/message.less +61 -0
  252. package/lib/message/message.variable.css +146 -0
  253. package/lib/message/messageConstructor.d.ts +73 -0
  254. package/lib/modal/index.d.ts +214 -0
  255. package/lib/modal/index.js +1 -1
  256. package/lib/modal/modal.d.ts +33 -15
  257. package/lib/modal/props.mixin.d.ts +5 -1
  258. package/lib/navigation/index.d.ts +2 -0
  259. package/lib/navigation/index.js +1 -0
  260. package/lib/navigation/navigation-title.d.ts +25 -0
  261. package/lib/navigation/navigation.css +184 -0
  262. package/lib/navigation/navigation.d.ts +111 -0
  263. package/lib/navigation/navigation.less +210 -0
  264. package/lib/navigation/navigation.variable.css +277 -0
  265. package/lib/notify/index.d.ts +2 -0
  266. package/lib/notify/index.js +1 -0
  267. package/lib/notify/notify.css +49 -0
  268. package/lib/notify/notify.less +58 -0
  269. package/lib/notify/notify.variable.css +142 -0
  270. package/lib/notify/notifyConstructor.d.ts +91 -0
  271. package/lib/pagination/index.d.ts +395 -0
  272. package/lib/pagination/index.js +1 -0
  273. package/lib/pagination/pagination.css +179 -0
  274. package/lib/pagination/pagination.d.ts +220 -0
  275. package/lib/pagination/pagination.less +201 -0
  276. package/lib/pagination/pagination.variable.css +272 -0
  277. package/lib/pagination/type.d.ts +6 -0
  278. package/lib/pagination/use-limit.d.ts +8 -0
  279. package/lib/pagination/use-list.d.ts +8 -0
  280. package/lib/pagination/use-small-list.d.ts +5 -0
  281. package/lib/pagination/use-total.d.ts +5 -0
  282. package/lib/popover/index.d.ts +287 -0
  283. package/lib/popover/index.js +1 -1
  284. package/lib/popover/popover.css +23 -14
  285. package/lib/popover/popover.d.ts +75 -46
  286. package/lib/popover/popover.less +57 -46
  287. package/lib/popover/popover.variable.css +55 -14
  288. package/lib/popover/props.d.ts +77 -0
  289. package/lib/preset.d.ts +7 -0
  290. package/lib/process/index.d.ts +205 -0
  291. package/lib/process/index.js +15 -0
  292. package/lib/process/process.css +138 -0
  293. package/lib/process/process.d.ts +131 -0
  294. package/lib/process/process.less +178 -0
  295. package/lib/process/process.variable.css +231 -0
  296. package/lib/progress/index.d.ts +398 -0
  297. package/lib/progress/index.js +1 -1
  298. package/lib/progress/progress.css +0 -3
  299. package/lib/progress/progress.d.ts +88 -35
  300. package/lib/progress/progress.less +0 -4
  301. package/lib/progress/progress.variable.css +32 -3
  302. package/lib/radio/common.d.ts +1 -1
  303. package/lib/radio/index.d.ts +277 -0
  304. package/lib/radio/index.js +1 -1
  305. package/lib/radio/radio-button.d.ts +24 -16
  306. package/lib/radio/radio-group.d.ts +11 -10
  307. package/lib/radio/radio.css +8 -2
  308. package/lib/radio/radio.d.ts +23 -13
  309. package/lib/radio/radio.less +9 -2
  310. package/lib/radio/radio.variable.css +40 -2
  311. package/lib/radio/type.d.ts +1 -1
  312. package/lib/rate/index.d.ts +113 -0
  313. package/lib/rate/index.js +1 -1
  314. package/lib/rate/rate.d.ts +13 -10
  315. package/lib/rate/star.d.ts +33 -16
  316. package/lib/resize-layout/index.d.ts +336 -0
  317. package/lib/resize-layout/index.js +1 -0
  318. package/lib/resize-layout/resize-layout.css +189 -0
  319. package/lib/resize-layout/resize-layout.d.ts +127 -0
  320. package/lib/resize-layout/resize-layout.less +233 -0
  321. package/lib/resize-layout/resize-layout.variable.css +282 -0
  322. package/lib/select/common.d.ts +23 -17
  323. package/lib/select/index.d.ts +1347 -0
  324. package/lib/select/index.js +15 -1
  325. package/lib/select/option.d.ts +12 -19
  326. package/lib/select/optionGroup.d.ts +54 -0
  327. package/lib/select/select.css +243 -17
  328. package/lib/select/select.d.ts +268 -155
  329. package/lib/select/select.less +245 -46
  330. package/lib/select/select.variable.css +275 -17
  331. package/lib/select/type.d.ts +31 -0
  332. package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
  333. package/lib/shared/index.d.ts +51 -0
  334. package/lib/shared/index.js +1 -1
  335. package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +32 -3
  336. package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +8 -1
  337. package/lib/shared/{bk-popover.d.ts → popover.d.ts} +57 -6
  338. package/lib/shared/utils.d.ts +6 -0
  339. package/lib/shared/vue-types.d.ts +8 -7
  340. package/lib/shared/z-index-manager.d.ts +6 -1
  341. package/lib/sideslider/index.d.ts +206 -0
  342. package/lib/sideslider/index.js +1 -1
  343. package/lib/sideslider/sideslider.d.ts +39 -18
  344. package/lib/sideslider/sideslider.variable.css +32 -0
  345. package/{changelog.config.js → lib/slider/index.d.ts} +2 -8
  346. package/lib/slider/index.js +15 -0
  347. package/lib/slider/slider-button.d.ts +75 -0
  348. package/lib/slider/slider.css +149 -0
  349. package/lib/slider/slider.d.ts +189 -0
  350. package/lib/slider/slider.less +179 -0
  351. package/lib/slider/slider.variable.css +242 -0
  352. package/lib/steps/index.d.ts +250 -0
  353. package/lib/steps/index.js +15 -0
  354. package/lib/steps/steps.css +288 -0
  355. package/lib/steps/steps.d.ts +161 -0
  356. package/lib/steps/steps.less +324 -0
  357. package/lib/steps/steps.variable.css +381 -0
  358. package/lib/styles/index.d.ts +46 -0
  359. package/lib/styles/index.js +1 -1
  360. package/lib/styles/mixins/popper.css +43 -0
  361. package/lib/styles/mixins/popper.less +52 -0
  362. package/lib/styles/mixins/popper.variable.css +43 -0
  363. package/lib/styles/mixins/size.less +9 -0
  364. package/lib/styles/reset.css +273 -0
  365. package/lib/styles/reset.less +313 -0
  366. package/lib/styles/reset.variable.css +273 -0
  367. package/lib/styles/themes/themes.less +52 -2
  368. package/lib/swiper/index.d.ts +181 -0
  369. package/lib/swiper/index.js +1 -0
  370. package/lib/swiper/swiper.css +91 -0
  371. package/lib/swiper/swiper.d.ts +65 -0
  372. package/lib/swiper/swiper.less +107 -0
  373. package/lib/swiper/swiper.variable.css +91 -0
  374. package/lib/switcher/index.d.ts +286 -0
  375. package/lib/switcher/index.js +1 -1
  376. package/lib/switcher/switcher.css +149 -135
  377. package/lib/switcher/switcher.d.ts +48 -32
  378. package/lib/switcher/switcher.less +210 -154
  379. package/lib/switcher/switcher.variable.css +181 -135
  380. package/lib/tab/index.d.ts +552 -0
  381. package/lib/tab/index.js +1 -0
  382. package/lib/tab/tab-nav.d.ts +190 -0
  383. package/lib/tab/tab-panel.d.ts +48 -0
  384. package/lib/tab/tab.css +147 -0
  385. package/lib/tab/tab.d.ts +163 -0
  386. package/lib/tab/tab.less +221 -0
  387. package/lib/tab/tab.variable.css +240 -0
  388. package/lib/table/const.d.ts +4 -0
  389. package/lib/table/index.d.ts +282 -0
  390. package/lib/table/index.js +10 -1
  391. package/lib/table/props.d.ts +118 -0
  392. package/lib/table/render.d.ts +74 -0
  393. package/lib/table/table.css +90 -0
  394. package/lib/table/table.d.ts +85 -37
  395. package/lib/table/table.less +116 -1
  396. package/lib/table/table.variable.css +122 -0
  397. package/lib/table/utils.d.ts +69 -0
  398. package/lib/tag/index.d.ts +229 -0
  399. package/lib/tag/index.js +1 -1
  400. package/lib/tag/tag.css +97 -0
  401. package/lib/tag/tag.d.ts +83 -53
  402. package/lib/tag/tag.less +110 -2
  403. package/lib/tag/tag.variable.css +129 -0
  404. package/lib/tag-input/common.d.ts +24 -0
  405. package/lib/tag-input/index.d.ts +2 -0
  406. package/lib/tag-input/index.js +1 -0
  407. package/lib/tag-input/list-tag-render.d.ts +47 -0
  408. package/lib/tag-input/tag-input.css +208 -0
  409. package/lib/tag-input/tag-input.d.ts +374 -0
  410. package/lib/tag-input/tag-input.less +250 -0
  411. package/lib/tag-input/tag-input.variable.css +301 -0
  412. package/lib/tag-input/tag-props.d.ts +131 -0
  413. package/lib/tag-input/tag-render.d.ts +38 -0
  414. package/lib/timeline/index.d.ts +129 -0
  415. package/lib/timeline/index.js +1 -0
  416. package/lib/timeline/timeline.css +235 -0
  417. package/lib/timeline/timeline.d.ts +81 -0
  418. package/lib/timeline/timeline.less +239 -0
  419. package/lib/timeline/timeline.variable.css +328 -0
  420. package/lib/transfer/index.d.ts +351 -0
  421. package/lib/transfer/index.js +1 -0
  422. package/lib/transfer/transfer.css +158 -0
  423. package/lib/transfer/transfer.d.ts +185 -0
  424. package/lib/transfer/transfer.less +171 -0
  425. package/lib/transfer/transfer.variable.css +251 -0
  426. package/lib/tree/index.d.ts +279 -0
  427. package/lib/tree/index.js +1 -0
  428. package/lib/tree/props.d.ts +89 -0
  429. package/lib/tree/tree.css +50 -0
  430. package/lib/tree/tree.d.ts +121 -0
  431. package/lib/tree/tree.less +63 -0
  432. package/lib/tree/tree.variable.css +143 -0
  433. package/lib/tree/util.d.ts +70 -0
  434. package/lib/use-form.d.ts +3 -0
  435. package/lib/use-message.d.ts +2 -0
  436. package/lib/virtual-render/index.d.ts +556 -0
  437. package/lib/virtual-render/index.js +10 -0
  438. package/lib/virtual-render/props.d.ts +157 -0
  439. package/lib/virtual-render/v-virtual-render.d.ts +7 -0
  440. package/lib/virtual-render/virtual-render.css +40 -0
  441. package/lib/virtual-render/virtual-render.d.ts +244 -0
  442. package/lib/virtual-render/virtual-render.less +51 -0
  443. package/lib/virtual-render/virtual-render.variable.css +40 -0
  444. package/package.json +71 -54
  445. package/lib/checkbox-group/index.js +0 -1
  446. package/lib/radio-button/index.js +0 -1
  447. package/lib/radio-group/index.js +0 -1
  448. package/lib/table/common.d.ts +0 -3
  449. package/lib/table/table-layout.d.ts +0 -14
  450. package/lib/table/type.d.ts +0 -12
@@ -0,0 +1,206 @@
1
+ declare const BkSideslider: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{
6
+ width: string | number;
7
+ height: string | number;
8
+ showMask: boolean;
9
+ direction: string;
10
+ isShow: boolean;
11
+ customClass: string | unknown[];
12
+ scrollable: boolean;
13
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<{
14
+ direction: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ validator: (value: string) => boolean;
18
+ };
19
+ isShow: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ width: {
24
+ type: (NumberConstructor | StringConstructor)[];
25
+ default: string;
26
+ };
27
+ height: {
28
+ type: (NumberConstructor | StringConstructor)[];
29
+ default: string;
30
+ };
31
+ customClass: {
32
+ type: (ArrayConstructor | StringConstructor)[];
33
+ default: string;
34
+ };
35
+ scrollable: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ showMask: {
40
+ type: BooleanConstructor;
41
+ default: boolean;
42
+ };
43
+ }>> & {
44
+ onClosed?: (...args: any[]) => any;
45
+ "onUpdate:isShow"?: (...args: any[]) => any;
46
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "height" | "showMask" | "direction" | "isShow" | "customClass" | "scrollable">;
47
+ $attrs: {
48
+ [x: string]: unknown;
49
+ };
50
+ $refs: {
51
+ [x: string]: unknown;
52
+ };
53
+ $slots: Readonly<{
54
+ [name: string]: import("vue").Slot;
55
+ }>;
56
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
57
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
58
+ $emit: (event: "closed" | "update:isShow", ...args: any[]) => void;
59
+ $el: any;
60
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
61
+ direction: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ validator: (value: string) => boolean;
65
+ };
66
+ isShow: {
67
+ type: BooleanConstructor;
68
+ default: boolean;
69
+ };
70
+ width: {
71
+ type: (NumberConstructor | StringConstructor)[];
72
+ default: string;
73
+ };
74
+ height: {
75
+ type: (NumberConstructor | StringConstructor)[];
76
+ default: string;
77
+ };
78
+ customClass: {
79
+ type: (ArrayConstructor | StringConstructor)[];
80
+ default: string;
81
+ };
82
+ scrollable: {
83
+ type: BooleanConstructor;
84
+ default: boolean;
85
+ };
86
+ showMask: {
87
+ type: BooleanConstructor;
88
+ default: boolean;
89
+ };
90
+ }>> & {
91
+ onClosed?: (...args: any[]) => any;
92
+ "onUpdate:isShow"?: (...args: any[]) => any;
93
+ }, unknown, unknown, {}, {
94
+ handleClose(): void;
95
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow")[], string, {
96
+ width: string | number;
97
+ height: string | number;
98
+ showMask: boolean;
99
+ direction: string;
100
+ isShow: boolean;
101
+ customClass: string | unknown[];
102
+ scrollable: boolean;
103
+ }> & {
104
+ beforeCreate?: (() => void) | (() => void)[];
105
+ created?: (() => void) | (() => void)[];
106
+ beforeMount?: (() => void) | (() => void)[];
107
+ mounted?: (() => void) | (() => void)[];
108
+ beforeUpdate?: (() => void) | (() => void)[];
109
+ updated?: (() => void) | (() => void)[];
110
+ activated?: (() => void) | (() => void)[];
111
+ deactivated?: (() => void) | (() => void)[];
112
+ beforeDestroy?: (() => void) | (() => void)[];
113
+ beforeUnmount?: (() => void) | (() => void)[];
114
+ destroyed?: (() => void) | (() => void)[];
115
+ unmounted?: (() => void) | (() => void)[];
116
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
117
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
118
+ 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)[];
119
+ };
120
+ $forceUpdate: () => void;
121
+ $nextTick: typeof import("vue").nextTick;
122
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
123
+ } & Readonly<import("vue").ExtractPropTypes<{
124
+ direction: {
125
+ type: StringConstructor;
126
+ default: string;
127
+ validator: (value: string) => boolean;
128
+ };
129
+ isShow: {
130
+ type: BooleanConstructor;
131
+ default: boolean;
132
+ };
133
+ width: {
134
+ type: (NumberConstructor | StringConstructor)[];
135
+ default: string;
136
+ };
137
+ height: {
138
+ type: (NumberConstructor | StringConstructor)[];
139
+ default: string;
140
+ };
141
+ customClass: {
142
+ type: (ArrayConstructor | StringConstructor)[];
143
+ default: string;
144
+ };
145
+ scrollable: {
146
+ type: BooleanConstructor;
147
+ default: boolean;
148
+ };
149
+ showMask: {
150
+ type: BooleanConstructor;
151
+ default: boolean;
152
+ };
153
+ }>> & {
154
+ onClosed?: (...args: any[]) => any;
155
+ "onUpdate:isShow"?: (...args: any[]) => any;
156
+ } & import("vue").ShallowUnwrapRef<{}> & {} & {} & {
157
+ handleClose(): void;
158
+ } & import("vue").ComponentCustomProperties;
159
+ __isFragment?: never;
160
+ __isTeleport?: never;
161
+ __isSuspense?: never;
162
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
163
+ direction: {
164
+ type: StringConstructor;
165
+ default: string;
166
+ validator: (value: string) => boolean;
167
+ };
168
+ isShow: {
169
+ type: BooleanConstructor;
170
+ default: boolean;
171
+ };
172
+ width: {
173
+ type: (NumberConstructor | StringConstructor)[];
174
+ default: string;
175
+ };
176
+ height: {
177
+ type: (NumberConstructor | StringConstructor)[];
178
+ default: string;
179
+ };
180
+ customClass: {
181
+ type: (ArrayConstructor | StringConstructor)[];
182
+ default: string;
183
+ };
184
+ scrollable: {
185
+ type: BooleanConstructor;
186
+ default: boolean;
187
+ };
188
+ showMask: {
189
+ type: BooleanConstructor;
190
+ default: boolean;
191
+ };
192
+ }>> & {
193
+ onClosed?: (...args: any[]) => any;
194
+ "onUpdate:isShow"?: (...args: any[]) => any;
195
+ }, unknown, unknown, {}, {
196
+ handleClose(): void;
197
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow")[], "closed" | "update:isShow", {
198
+ width: string | number;
199
+ height: string | number;
200
+ showMask: boolean;
201
+ direction: string;
202
+ isShow: boolean;
203
+ customClass: string | unknown[];
204
+ scrollable: boolean;
205
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
206
+ export default BkSideslider;
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../modal"),require("../button")):"function"==typeof define&&define.amd?define(["exports","vue","../modal","../button"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Modal,e.Button)}(this,(function(e,t,o,n){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=i(o),l=i(n);var d=Object.assign({},o.propsMixin);d.width.default="400",d.height.default="100%";var s=t.defineComponent({name:"BkSideslider",components:{BkModal:r.default,BkButton:l.default},props:Object.assign(Object.assign({},o.propsMixin),{direction:{type:String,default:"right",validator:function(e){var t=["left","right"];return!(t.indexOf(e)<0)||(console.error("direction property is not valid: '".concat(e,"',【").concat(t.join(" | "),"】")),!1)}}}),emits:["closed","update:isShow"],methods:{handleClose:function(){this.$emit("update:isShow",!1),this.$emit("closed")}},render:function(){var e,o=this,n={header:function(){var e,n,i;return t.createVNode(t.Fragment,null,[t.createVNode("div",{class:"bk-sideslider-header"},[t.createVNode("span",{class:"bk-sideslider-close ".concat(o.direction),onClick:o.handleClose},null),t.createVNode("span",{class:"bk-sideslider-title ".concat(o.direction)},[null!==(i=null===(n=(e=o.$slots).header)||void 0===n?void 0:n.call(e))&&void 0!==i?i:"Header"])])])},default:function(){var e,t,n;return null!==(n=null===(t=(e=o.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:"Content"},footer:function(){return t.createVNode("div",{class:"bk-sideslider-footer"},null)}},i="bk-sideslider-wrapper ".concat(this.scrollable?"scroll-able":"");return t.createVNode(r.default,t.mergeProps(this.$props,{class:i,style:"".concat(this.direction,": 0")}),"function"==typeof(e=n)||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)?n:{default:function(){return[n]}})}});s.install=function(e){e.component(s.name,s)},e.default=s,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("../shared"),require("vue"),require("../button"),require("../modal")):"function"==typeof define&&define.amd?define(["exports","../shared","vue","../button","../modal"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Shared,e.Vue,e.Button,e.Modal)}(this,(function(e,t,o,i,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=r(i),l=r(n);var a=l.default.propsMixin,s=Object.assign({},a);s.width.default="400",s.height.default="100%";var c=o.defineComponent({name:"Sideslider",components:{BkModal:l.default,BkButton:d.default},props:Object.assign(Object.assign({},s),{direction:{type:String,default:"right",validator:function(e){var t=["left","right"];return!(t.indexOf(e)<0)||(console.error("direction property is not valid: '".concat(e,"',【").concat(t.join(" | "),"】")),!1)}}}),emits:["closed","update:isShow"],methods:{handleClose:function(){this.$emit("update:isShow",!1),this.$emit("closed")}},render:function(){var e,t=this,i={header:function(){var e,i,n;return o.createVNode(o.Fragment,null,[o.createVNode("div",{class:"bk-sideslider-header"},[o.createVNode("span",{class:"bk-sideslider-close ".concat(t.direction),onClick:t.handleClose},null),o.createVNode("span",{class:"bk-sideslider-title ".concat(t.direction)},[null!==(n=null===(i=(e=t.$slots).header)||void 0===i?void 0:i.call(e))&&void 0!==n?n:"Header"])])])},default:function(){var e,o,i;return null!==(i=null===(o=(e=t.$slots).default)||void 0===o?void 0:o.call(e))&&void 0!==i?i:"Content"},footer:function(){return o.createVNode("div",{class:"bk-sideslider-footer"},null)}},n="bk-sideslider-wrapper ".concat(this.scrollable?"scroll-able":"");return o.createVNode(l.default,o.mergeProps(this.$props,{class:n,style:"".concat(this.direction,": 0")}),"function"==typeof(e=i)||"[object Object]"===Object.prototype.toString.call(e)&&!o.isVNode(e)?i:{default:function(){return[i]}})}}),u=t.withInstall(c);e.default=u,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -17,38 +17,59 @@ declare const _default: import("vue").DefineComponent<{
17
17
  default: string;
18
18
  };
19
19
  customClass: {
20
- type: (ObjectConstructor | StringConstructor)[];
20
+ type: (ArrayConstructor | StringConstructor)[];
21
21
  default: string;
22
22
  };
23
23
  scrollable: {
24
24
  type: BooleanConstructor;
25
25
  default: boolean;
26
26
  };
27
+ showMask: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
27
31
  }, unknown, unknown, {}, {
28
32
  handleClose(): void;
29
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow")[], "closed" | "update:isShow", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
30
- direction?: unknown;
31
- isShow?: unknown;
32
- width?: unknown;
33
- height?: unknown;
34
- customClass?: unknown;
35
- scrollable?: unknown;
36
- } & {
37
- width: string | number;
38
- height: string | number;
39
- isShow: boolean;
40
- customClass: string;
41
- scrollable: boolean;
42
- direction: string;
43
- } & {}> & {
33
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow")[], "closed" | "update:isShow", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
34
+ direction: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ validator: (value: string) => boolean;
38
+ };
39
+ isShow: {
40
+ type: BooleanConstructor;
41
+ default: boolean;
42
+ };
43
+ width: {
44
+ type: (NumberConstructor | StringConstructor)[];
45
+ default: string;
46
+ };
47
+ height: {
48
+ type: (NumberConstructor | StringConstructor)[];
49
+ default: string;
50
+ };
51
+ customClass: {
52
+ type: (ArrayConstructor | StringConstructor)[];
53
+ default: string;
54
+ };
55
+ scrollable: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ showMask: {
60
+ type: BooleanConstructor;
61
+ default: boolean;
62
+ };
63
+ }>> & {
44
64
  onClosed?: (...args: any[]) => any;
45
65
  "onUpdate:isShow"?: (...args: any[]) => any;
46
66
  }, {
47
67
  width: string | number;
48
68
  height: string | number;
69
+ showMask: boolean;
70
+ direction: string;
49
71
  isShow: boolean;
50
- customClass: string;
72
+ customClass: string | unknown[];
51
73
  scrollable: boolean;
52
- direction: string;
53
74
  }>;
54
75
  export default _default;
@@ -1,10 +1,12 @@
1
1
  :root {
2
2
  --bk-prefix: bk;
3
+ --popover-max-height: 216px;
3
4
  --primary-color: #3a84ff;
4
5
  --success-color: #2dcb56;
5
6
  --warning-color: #ff9c01;
6
7
  --danger-color: #ea3636;
7
8
  --default-color: #63656e;
9
+ --gray-color: #979ba5;
8
10
  --light-gray: #c4c6cc;
9
11
  --white-color: white;
10
12
  --disable-color: #dcdee5;
@@ -58,6 +60,36 @@
58
60
  --link-success-disabled-color: #94f5a4;
59
61
  --link-warning-disabled-color: #ffd695;
60
62
  --link-danger-disabled-color: #fd9c9c;
63
+ --message-color: var(--default-color);
64
+ --message-primary-bg-color: #f0f8ff;
65
+ --message-primary-border-color: #e1ecff;
66
+ --message-warning-bg-color: #fff4e2;
67
+ --message-warning-border-color: #ffe8c3;
68
+ --message-success-bg-color: #f2fff4;
69
+ --message-success-border-color: #dcffe2;
70
+ --message-danger-bg-color: #ffeded;
71
+ --message-danger-border-color: #ffdddd;
72
+ --slider-default-bg: #dcdee5;
73
+ --slider-disable-bar-bg: #979ba5;
74
+ --menu-bg-color: #182132;
75
+ --submenu-bg-color: #151d2c;
76
+ --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
77
+ --menu-color: #96a2b9;
78
+ --menu-group-color: var(--default-color);
79
+ --menu-width: 260px;
80
+ --menu-collapse-width: 60px;
81
+ --menu-active-color: white;
82
+ --nav-header-bg-color: #182132;
83
+ --nav-bg-color: #182132;
84
+ --date-picker-disabled-bg: #fafbfd;
85
+ --date-picker-dropdown-mb: 4px;
86
+ --date-picker-dropdown-bg: #fff;
87
+ --table-bg-color: var(--white-color);
88
+ --table-border-color: #dcdee5;
89
+ --table-head-bg-color: #fafbfd;
90
+ --table-head-font-color: #313238;
91
+ --table-body-font-color: #575961;
92
+ --table-row-hover-bg-color: #f5f7fa;
61
93
  }
62
94
  .bk-modal-wrapper.bk-sideslider-wrapper {
63
95
  position: fixed;
@@ -23,11 +23,5 @@
23
23
  * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24
24
  * IN THE SOFTWARE.
25
25
  */
26
-
27
- module.exports = {
28
- owner: 'blueking',
29
- repository: 'bkui-vue',
30
- host: 'https://git.woa.com',
31
- commit: 'commit',
32
- issue: 'issue',
33
- };
26
+ import Slider from './slider';
27
+ export default Slider;
@@ -0,0 +1,15 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../input"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../input","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Input,e.Shared)}(this,(function(e,t,a,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=r(a),l={exports:{}};!function(e){var t=function(e){var t,a=Object.prototype,n=a.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},u=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function i(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{i({},"")}catch(e){i=function(e,t,a){return e[t]=a}}function c(e,t,a,n){var r=t&&t.prototype instanceof h?t:h,u=Object.create(r.prototype),l=new C(n||[]);return u._invoke=function(e,t,a){var n=m;return function(r,u){if(n===f)throw new Error("Generator is already running");if(n===d){if("throw"===r)throw u;return j()}for(a.method=r,a.arg=u;;){var l=a.delegate;if(l){var o=k(l,a);if(o){if(o===p)continue;return o}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(n===m)throw n=d,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);n=f;var i=s(e,t,a);if("normal"===i.type){if(n=a.done?d:v,i.arg===p)continue;return{value:i.arg,done:a.done}}"throw"===i.type&&(n=d,a.method="throw",a.arg=i.arg)}}}(e,a,l),u}function s(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var m="suspendedStart",v="suspendedYield",f="executing",d="completed",p={};function h(){}function V(){}function y(){}var b={};i(b,u,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(T([])));w&&w!==a&&n.call(w,u)&&(b=w);var x=y.prototype=h.prototype=Object.create(b);function N(e){["next","throw","return"].forEach((function(t){i(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function a(r,u,l,o){var i=s(e[r],e,u);if("throw"!==i.type){var c=i.arg,m=c.value;return m&&"object"==typeof m&&n.call(m,"__await")?t.resolve(m.__await).then((function(e){a("next",e,l,o)}),(function(e){a("throw",e,l,o)})):t.resolve(m).then((function(e){c.value=e,l(c)}),(function(e){return a("throw",e,l,o)}))}o(i.arg)}var r;this._invoke=function(e,n){function u(){return new t((function(t,r){a(e,n,t,r)}))}return r=r?r.then(u,u):u()}}function k(e,a){var n=e.iterator[a.method];if(n===t){if(a.delegate=null,"throw"===a.method){if(e.iterator.return&&(a.method="return",a.arg=t,k(e,a),"throw"===a.method))return p;a.method="throw",a.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=s(n,e.iterator,a.arg);if("throw"===r.type)return a.method="throw",a.arg=r.arg,a.delegate=null,p;var u=r.arg;return u?u.done?(a[e.resultName]=u.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=t),a.delegate=null,p):u:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,p)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function B(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function T(e){if(e){var a=e[u];if(a)return a.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,l=function a(){for(;++r<e.length;)if(n.call(e,r))return a.value=e[r],a.done=!1,a;return a.value=t,a.done=!0,a};return l.next=l}}return{next:j}}function j(){return{value:t,done:!0}}return V.prototype=y,i(x,"constructor",y),i(y,"constructor",V),V.displayName=i(y,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===V||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,i(e,o,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},N(L.prototype),i(L.prototype,l,(function(){return this})),e.AsyncIterator=L,e.async=function(t,a,n,r,u){void 0===u&&(u=Promise);var l=new L(c(t,a,n,r),u);return e.isGeneratorFunction(a)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},N(x),i(x,o,"Generator"),i(x,u,(function(){return this})),i(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var a in e)t.push(a);return t.reverse(),function a(){for(;t.length;){var n=t.pop();if(n in e)return a.value=n,a.done=!1,a}return a.done=!0,a}},e.values=T,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(B),!e)for(var a in this)"t"===a.charAt(0)&&n.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var a=this;function r(n,r){return o.type="throw",o.arg=e,a.next=n,r&&(a.method="next",a.arg=t),!!r}for(var u=this.tryEntries.length-1;u>=0;--u){var l=this.tryEntries[u],o=l.completion;if("root"===l.tryLoc)return r("end");if(l.tryLoc<=this.prev){var i=n.call(l,"catchLoc"),c=n.call(l,"finallyLoc");if(i&&c){if(this.prev<l.catchLoc)return r(l.catchLoc,!0);if(this.prev<l.finallyLoc)return r(l.finallyLoc)}else if(i){if(this.prev<l.catchLoc)return r(l.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return r(l.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var u=r;break}}u&&("break"===e||"continue"===e)&&u.tryLoc<=t&&t<=u.finallyLoc&&(u=null);var l=u?u.completion:{};return l.type=e,l.arg=t,u?(this.method="next",this.next=u.finallyLoc,p):this.complete(l)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),B(a),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var n=a.completion;if("throw"===n.type){var r=n.arg;B(a)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,a,n){return this.delegate={iterator:T(e),resultName:a,nextLoc:n},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(l);var o=l.exports;
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */function i(e,t,a,n){return new(a||(a=Promise))((function(r,u){function l(e){try{i(n.next(e))}catch(e){u(e)}}function o(e){try{i(n.throw(e))}catch(e){u(e)}}function i(e){var t;e.done?r(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(l,o)}i((n=n.apply(e,t||[])).next())}))}var c=t.defineComponent({name:"SliderButton",props:{modelValue:{type:Number,default:0},params:{type:Object,default:function(){return{}}}},emits:["emitChange","resetSize","update:modelValue"],setup:function(e,a){var n=a.emit,r=t.ref(!1),u=t.ref(!1),l=t.ref(0),o=t.ref(0),i=t.ref(0),c=t.ref(null),v=t.ref(e.modelValue),f=t.ref(0),d=t.ref(0),p=t.ref(!1),h=t.ref(null),V=t.computed((function(){return"".concat((e.modelValue-e.params.minValue)/(e.params.maxValue-e.params.minValue)*100,"%")})),y=t.computed((function(){return e.params.vertical?{bottom:V.value}:{left:V.value}})),b=t.computed((function(){return e.params.formatterButtonLabel(e.modelValue)})),g=function(t){e.params.disable||(t.preventDefault(),w(t),s(window,"mousemove",x),s(window,"touchmove",x),s(window,"mouseup",N),s(window,"touchend",N))},w=function(t){r.value=!0,u.value=!0,e.params.vertical?l.value=t.clientY:o.value=t.clientX,i.value=parseFloat(V.value),c.value=i.value},x=function(t){if(r.value){u.value=!1,n("resetSize");var a=0;e.params.vertical?(f.value=t.clientY,a=(l.value-f.value)/e.params.sliderSize*100):(d.value=t.clientX,a=(d.value-o.value)/e.params.sliderSize*100),c.value=i.value+a,L(c.value)}},N=function e(){p.value=!1,r.value&&(setTimeout((function(){r.value=!1,u.value||(L(c.value),n("emitChange"))}),0),m(window,"mousemove",x),m(window,"touchmove",x),m(window,"mouseup",e),m(window,"touchend",e))},L=function(t){if(null!==t&&!isNaN(t)){t<0?c.value=0:t>100&&(c.value=100);var a=100/((e.params.maxValue-e.params.minValue)/e.params.step),u=Math.round(t/a)*a*(e.params.maxValue-e.params.minValue)*.01+e.params.minValue;u=parseFloat(u.toFixed(e.params.precision)),n("update:modelValue",u),r.value||e.modelValue===v.value||(v.value=e.modelValue)}};return{renderDom:function(){return t.createVNode("div",{class:["bk-slider-button",e.params.vertical?"vertical":"horizontal",{grabbing:r.value}],ref:h,tabindex:"0",style:y.value,onClick:function(e){return e.stopPropagation()},onMousedown:g},[t.createVNode("div",{class:["slider-button",{"slider-button-disable":e.params.disable}]},null),e.params.showButtonLabel&&!e.params.showIntervalLabel?t.createVNode("div",{class:["slider-button-label",e.params.vertical?"vertical":"horizontal"]},[b.value]):void 0])},setPosition:L}},render:function(){return this.renderDom()}}),s=function(e,t,a){e&&t&&a&&e.addEventListener(t,a,!1)},m=function(e,t,a){e&&t&&a&&e.removeEventListener(t,a,!1)},v=t.defineComponent({name:"Slider",props:{modelValue:n.PropTypes.oneOfType([n.PropTypes.array,n.PropTypes.number]),extCls:{type:String,default:""},vertical:{type:Boolean,default:!1},height:{type:String,default:"200px"},disable:{type:Boolean,default:!1},showTip:{type:Boolean,default:!1},maxValue:{type:[Number],default:100},minValue:{type:[Number],default:0},step:{type:[Number],default:1},range:{type:Boolean,default:!1},showInterval:{type:Boolean,default:!1},showIntervalLabel:{type:Boolean,default:!1},showButtonLabel:{type:Boolean,default:!1},showBetweenLabel:{type:Boolean,default:!1},showInput:{type:Boolean,default:!1},customContent:{type:Object},formatterLabel:{type:Function,default:function(e){return e}},formatterButtonLabel:{type:Function,default:function(e){return e}}},emits:["update:modelValue","change"],setup:function(e,a){var n=this,r=a.slots,l=a.emit,m=t.ref(1),v=t.ref(null),f=t.ref(null),d=t.ref(null),p=t.ref(0),h=t.ref(0),V=t.ref(0),y=t.ref(null),b=t.ref(null),g=t.ref(null),w=t.ref(null),x=t.computed((function(){var t=[e.minValue,e.maxValue,e.step].map((function(e){var t="".concat(e).split(".")[1];return t?t.length:0}));return Math.max.apply(null,t)})),N=t.computed((function(){return Math.min(v.value,f.value)})),L=t.computed((function(){return Math.max(v.value,f.value)})),k=t.computed((function(){return e.range?"".concat(100*(L.value-N.value)/(e.maxValue-e.minValue),"%"):"".concat(100*(v.value-e.minValue)/(e.maxValue-e.minValue),"%")})),E=t.computed((function(){return e.range?"".concat(100*(N.value-e.minValue)/(e.maxValue-e.minValue),"%"):"0%"})),B=t.computed((function(){return e.vertical?{height:k.value,bottom:E.value}:{width:k.value,left:E.value}})),C=t.computed((function(){if(!e.showInterval||e.minValue>e.maxValue)return[];if(0===e.step)return console.warn("WARNNING:step should not be 0"),[];for(var t=(e.maxValue-e.minValue)/e.step,a=100*e.step/(e.maxValue-e.minValue),n=[],r=1;r<t;r++)n.push(r*a);return e.range?n.filter((function(t){return t<100*(N.value-e.minValue)/(e.maxValue-e.minValue)||t>100*(L.value-e.minValue)/(e.maxValue-e.minValue)})):n.filter((function(t){return t>100*(v.value-e.minValue)/(e.maxValue-e.minValue)}))})),T=t.computed((function(){return e.vertical?{height:e.height,width:"4px"}:{}})),j=t.computed((function(){if(!e.showIntervalLabel)return[];if(0===e.step)return console.warn("WARNNING:step should not be 0"),[];for(var t=(e.maxValue-e.minValue)/e.step,a=100*e.step/(e.maxValue-e.minValue),n=[],r=0;r<=t;r++){var u={stepWidth:r*a,stepLabel:e.formatterLabel(r*e.step)};n.push(u)}return n})),I=t.computed((function(){return Array.isArray(e.modelValue)})),S=t.computed((function(){return e.customContent?Object.keys(e.customContent).sort((function(e,t){return Number(e)-Number(t)})).filter((function(t){return Number(t)>=e.minValue&&Number(t)<=e.maxValue})).map((function(t){var a=e.customContent[t].tip,n=e.customContent[t].label;return{tip:a||n||"",label:n||"",percent:(Number(t)-e.minValue)/(e.maxValue-e.minValue)*100}})):[]})),O=t.computed((function(){return{vertical:e.vertical,showTip:e.showTip,disable:e.disable,maxValue:e.maxValue,minValue:e.minValue,step:e.step,precision:x.value,showButtonLabel:e.showButtonLabel,formatterButtonLabel:e.formatterButtonLabel,showIntervalLabel:e.showIntervalLabel,customContent:e.customContent,sliderSize:m.value}}));t.watch((function(){return e.modelValue}),(function(){z()})),t.watch((function(){return v.value}),(function(t){e.range?l("update:modelValue",[N.value,L.value]):l("update:modelValue",t),h.value=t})),t.watch((function(){return f.value}),(function(e){l("update:modelValue",[N.value,L.value]),V.value=e})),t.onMounted((function(){e.range?(Array.isArray(e.modelValue)?(v.value=Math.max(e.minValue,Number(e.modelValue[0])),f.value=Math.min(e.maxValue,Number(e.modelValue[1]))):(v.value=e.minValue,f.value=e.maxValue),d.value=[v.value,f.value]):("number"!=typeof e.modelValue||isNaN(e.modelValue)?v.value=e.minValue:v.value=Math.min(e.maxValue,Math.max(e.minValue,e.modelValue)),d.value=v.value),p.value=100*e.step/(e.maxValue-e.minValue),_(),s(window,"resize",_())}));var _=function(){y.value&&(m.value=y.value["client".concat(e.vertical?"Height":"Width")])},P=function(t){var a,n;if(t.stopPropagation(),!e.disable){if(_(),e.vertical){var r=null===(a=y.value)||void 0===a?void 0:a.getBoundingClientRect().bottom;G((r-t.clientY)/m.value*100)}else{var u=null===(n=y.value)||void 0===n?void 0:n.getBoundingClientRect().left;G((t.clientX-u)/m.value*100)}M()}},F=function(){return e.range?![N.value,L.value].every((function(e,t){return e===d.value[t]})):e.modelValue!==d.value},z=function(){if(e.minValue>e.maxValue)console.error("min should not be greater than max.");else{var t=e.modelValue;e.range&&Array.isArray(t)?t[1]<e.minValue?l("update:modelValue",[e.minValue,e.minValue]):t[0]>e.maxValue?l("update:modelValue",[e.maxValue,e.maxValue]):t[0]<e.minValue?l("update:modelValue",[e.minValue,t[1]]):t[1]>e.maxValue?l("update:modelValue",[t[0],e.maxValue]):(v.value=Number(t[0]),f.value=Number(t[1]),F()&&(d.value=t.slice())):e.range||"number"!=typeof t||isNaN(t)||(t<e.minValue?l("update:modelValue",e.minValue):t>e.maxValue?l("update:modelValue",e.maxValue):(v.value=t,F()&&(d.value=t)))}},M=function(){return i(n,void 0,void 0,o.mark((function a(){return o.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t.nextTick();case 2:l("change",e.range?[N.value,L.value]:e.modelValue);case 3:case"end":return a.stop()}}),a)})))},A=function(t){return e.vertical?{bottom:"".concat(t,"%")}:{left:"".concat(t,"%")}},G=function(t){if(e.range){var a=e.minValue+t*(e.maxValue-e.minValue)/100;Math.abs(N.value-a)<Math.abs(L.value-a)?w.value=v.value<f.value?b.value:g.value:w.value=v.value>f.value?b.value:g.value,w.value.setPosition(t)}else b.value.setPosition(t)},R=function(t){if(""!==t){var a=parseFloat(t);a<e.minValue?(h.value=e.minValue,v.value=e.minValue):a>e.maxValue?(h.value=e.maxValue,v.value=e.maxValue):v.value=a}},D=function(t){if(""!==t){var a=parseFloat(t);a<e.minValue?(V.value=e.minValue,f.value=e.minValue):a>e.maxValue?(V.value=e.maxValue,f.value=e.maxValue):f.value=a}},W=function(t){var a=0;return a="start"===t?e.vertical?e.maxValue:e.minValue:e.vertical?e.minValue:e.maxValue,e.showButtonLabel&&[v.value,f.value].includes(a)?"0":"1"};return{renderDom:function(){var a,n;return t.createVNode(t.Fragment,null,[t.createVNode("div",{class:["bk-slider",e.extCls]},[null===(a=r.start)||void 0===a?void 0:a.call(r),t.createVNode("div",{class:"bk-slider-runway",ref:y,style:T.value,onClick:P},[t.createVNode("div",{class:["bk-slider-bar",e.vertical?"vertical":"horizontal",{disable:e.disable}],style:B.value},null),e.showInterval?C.value.map((function(a,n){return t.createVNode("div",{key:n,class:["bk-slider-interval",{vertical:e.vertical}],style:A(a)},null)})):void 0,e.customContent?S.value.map((function(a,n){return t.createVNode("div",{key:n,class:["bk-slider-interval",{vertical:e.vertical}],style:A(a.percent)},null)})):void 0,e.showBetweenLabel||e.showIntervalLabel||e.customContent?t.createVNode("div",{class:["bk-slider-labels",e.vertical?"vertical":"horizontal"]},[e.showBetweenLabel?[t.createVNode("div",{class:"label-start",style:[{opacity:W("start")}]},[e.formatterLabel(e.minValue)]),t.createVNode("div",{class:"label-end",style:[{opacity:W("end")}]},[e.formatterLabel(e.maxValue)])]:e.showIntervalLabel?j.value.map((function(a,n){return t.createVNode("div",{class:["bk-slider-label",e.vertical?"vertical":"horizontal"],key:n,style:A(a.stepWidth)},[a.stepLabel])})):e.customContent?S.value.map((function(a,n){return t.createVNode("div",{class:["bk-slider-label",e.vertical?"vertical":"horizontal"],key:n,style:A(a.percent)},[a.label])})):void 0]):void 0,t.createVNode(c,{modelValue:v.value,"onUpdate:modelValue":function(e){return v.value=e},ref:b,params:O.value,onEmitChange:M,onResetSize:_},null),e.range?t.createVNode(c,{modelValue:f.value,"onUpdate:modelValue":function(e){return f.value=e},ref:g,params:O.value,onEmitChange:M,onResetSize:_},null):void 0]),e.showInput&&!e.vertical?t.createVNode("div",{class:"bk-slider-input"},[t.createVNode("div",{class:"input-item"},[t.createVNode(u.default,{type:"number",modelValue:h.value,"onUpdate:modelValue":function(e){return h.value=e},max:e.maxValue,min:e.minValue,onChange:R},null)]),I.value&&f.value?t.createVNode(t.Fragment,null,[t.createVNode("div",{class:"input-center"},[t.createTextVNode("~")]),t.createVNode("div",{class:"input-item"},[t.createVNode(u.default,{type:"number",modelValue:V.value,"onUpdate:modelValue":function(e){return V.value=e},max:e.maxValue,min:e.minValue,onChange:D},null)])]):void 0]):void 0,null===(n=r.end)||void 0===n?void 0:n.call(r)])])}}},render:function(){return this.renderDom()}});v.install=function(e){e.component(v.name,v)},e.default=v,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1,75 @@
1
+ /**
2
+ * Tencent is pleased to support the open source community by making
3
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
4
+ *
5
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
6
+ *
7
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
8
+ *
9
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
10
+ *
11
+ * ---------------------------------------------------
12
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
13
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
14
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
15
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
16
+ *
17
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
18
+ * the Software.
19
+ *
20
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
21
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
23
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24
+ * IN THE SOFTWARE.
25
+ */
26
+ import { PropType } from 'vue';
27
+ interface Params {
28
+ vertical: boolean;
29
+ showTip: boolean;
30
+ disable: boolean;
31
+ maxValue: number;
32
+ minValue: number;
33
+ step: number;
34
+ precision: number;
35
+ showButtonLabel: boolean;
36
+ formatterButtonLabel: Function;
37
+ showIntervalLabel: boolean;
38
+ customContent: {
39
+ [propName: string]: {
40
+ label?: string;
41
+ tip?: string;
42
+ };
43
+ };
44
+ sliderSize: number;
45
+ }
46
+ declare const _default: import("vue").DefineComponent<{
47
+ modelValue: {
48
+ type: NumberConstructor;
49
+ default: number;
50
+ };
51
+ params: {
52
+ type: PropType<Params>;
53
+ default: () => {};
54
+ };
55
+ }, {
56
+ renderDom: () => JSX.Element;
57
+ setPosition: (position: number) => void;
58
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "emitChange" | "resetSize")[], "update:modelValue" | "emitChange" | "resetSize", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
59
+ modelValue: {
60
+ type: NumberConstructor;
61
+ default: number;
62
+ };
63
+ params: {
64
+ type: PropType<Params>;
65
+ default: () => {};
66
+ };
67
+ }>> & {
68
+ "onUpdate:modelValue"?: (...args: any[]) => any;
69
+ onEmitChange?: (...args: any[]) => any;
70
+ onResetSize?: (...args: any[]) => any;
71
+ }, {
72
+ modelValue: number;
73
+ params: Params;
74
+ }>;
75
+ export default _default;
@@ -0,0 +1,149 @@
1
+ .bk-slider {
2
+ display: flex;
3
+ flex-direction: row;
4
+ align-items: center;
5
+ }
6
+ .bk-slider .bk-slider-runway {
7
+ position: relative;
8
+ width: 100%;
9
+ height: 4px;
10
+ vertical-align: middle;
11
+ cursor: pointer;
12
+ background: #dcdee5;
13
+ border-radius: 2px;
14
+ opacity: 1;
15
+ }
16
+ .bk-slider .bk-slider-runway .bk-slider-bar {
17
+ position: absolute;
18
+ height: 4px;
19
+ background: #3a84ff;
20
+ border-bottom-left-radius: 3px;
21
+ border-top-left-radius: 3px;
22
+ }
23
+ .bk-slider .bk-slider-runway .bk-slider-bar.vertical {
24
+ width: 4px;
25
+ }
26
+ .bk-slider .bk-slider-runway .bk-slider-bar.horizontal {
27
+ height: 4px;
28
+ }
29
+ .bk-slider .bk-slider-runway .disable {
30
+ background: #979ba5;
31
+ }
32
+ .bk-slider .bk-slider-runway .bk-slider-labels {
33
+ position: relative;
34
+ }
35
+ .bk-slider .bk-slider-runway .bk-slider-labels.vertical {
36
+ left: 18px;
37
+ display: flex;
38
+ width: 10px;
39
+ height: 100%;
40
+ flex-direction: column;
41
+ justify-content: space-between;
42
+ }
43
+ .bk-slider .bk-slider-runway .bk-slider-labels.horizontal {
44
+ top: 10px;
45
+ display: flex;
46
+ width: 100%;
47
+ height: 10px;
48
+ flex-direction: row;
49
+ justify-content: space-between;
50
+ }
51
+ .bk-slider .bk-slider-runway .bk-slider-labels .bk-slider-label {
52
+ position: absolute;
53
+ display: flex;
54
+ width: 10px;
55
+ height: 10px;
56
+ text-align: center;
57
+ white-space: nowrap;
58
+ align-items: center;
59
+ justify-content: center;
60
+ }
61
+ .bk-slider .bk-slider-runway .bk-slider-labels .bk-slider-label.vertical {
62
+ left: 10px;
63
+ transform: translateY(50%);
64
+ }
65
+ .bk-slider .bk-slider-runway .bk-slider-labels .bk-slider-label.horizontal {
66
+ top: 10px;
67
+ transform: translateX(-50%);
68
+ }
69
+ .bk-slider .bk-slider-interval {
70
+ position: absolute;
71
+ width: 4px;
72
+ height: 4px;
73
+ background-color: #fff;
74
+ border-radius: 100%;
75
+ transform: translateX(-50%);
76
+ }
77
+ .bk-slider .bk-slider-interval.vertical {
78
+ left: 2px;
79
+ }
80
+ .bk-slider-input {
81
+ display: flex;
82
+ margin: 0 0 0 28px;
83
+ flex-direction: row;
84
+ align-items: center;
85
+ }
86
+ .bk-slider-input .input-item {
87
+ width: 92px;
88
+ }
89
+ .bk-slider-input .input-center {
90
+ margin: 0 7px;
91
+ }
92
+ .bk-slider-button {
93
+ position: absolute;
94
+ z-index: 1001;
95
+ display: flex;
96
+ width: 24px;
97
+ height: 24px;
98
+ line-height: normal;
99
+ text-align: center;
100
+ background-color: transparent;
101
+ user-select: none;
102
+ justify-content: center;
103
+ align-items: center;
104
+ }
105
+ .bk-slider-button:hover {
106
+ cursor: grab;
107
+ }
108
+ .bk-slider-button.grabbing {
109
+ cursor: grabbing;
110
+ }
111
+ .bk-slider-button.vertical {
112
+ left: -10px;
113
+ transform: translateY(50%);
114
+ }
115
+ .bk-slider-button.horizontal {
116
+ top: -10px;
117
+ transform: translateX(-50%);
118
+ }
119
+ .bk-slider-button .slider-button {
120
+ width: 12px;
121
+ height: 12px;
122
+ background-color: #fff;
123
+ border: 2px solid #3a84ff;
124
+ border-radius: 50%;
125
+ transition: 0.2s;
126
+ user-select: none;
127
+ }
128
+ .bk-slider-button .slider-button-disable {
129
+ border: 2px solid #979ba5;
130
+ }
131
+ .bk-slider-button .slider-button:hover {
132
+ box-shadow: 0px 0px 0px 4px rgba(58, 132, 255, 0.3);
133
+ }
134
+ .bk-slider-button .slider-button:focus {
135
+ box-shadow: 0px 0px 10px 0px rgba(58, 132, 255, 0.9);
136
+ }
137
+ .bk-slider-button .slider-button-label {
138
+ position: absolute;
139
+ display: flex;
140
+ text-align: center;
141
+ align-items: center;
142
+ justify-content: center;
143
+ }
144
+ .bk-slider-button .slider-button-label.vertical {
145
+ left: 28px;
146
+ }
147
+ .bk-slider-button .slider-button-label.horizontal {
148
+ top: 20px;
149
+ }