bkui-vue 0.0.1-beta.6 → 0.0.1-beta.60

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 (506) hide show
  1. package/README.md +31 -19
  2. package/dist/index.cjs.js +57 -0
  3. package/dist/index.esm.js +21606 -0
  4. package/dist/index.umd.js +57 -0
  5. package/dist/style.css +1 -2009
  6. package/lib/alert/alert.d.ts +24 -15
  7. package/lib/alert/alert.variable.css +33 -0
  8. package/lib/alert/index.d.ts +180 -0
  9. package/lib/alert/index.js +1 -1
  10. package/lib/animate-number/animate-number.d.ts +12 -7
  11. package/lib/animate-number/index.d.ts +97 -0
  12. package/lib/animate-number/index.js +1 -1
  13. package/lib/backtop/backtop.d.ts +27 -13
  14. package/lib/backtop/backtop.variable.css +33 -0
  15. package/lib/backtop/index.d.ts +166 -0
  16. package/lib/backtop/index.js +1 -1
  17. package/lib/badge/badge.css +5 -5
  18. package/lib/badge/badge.d.ts +64 -22
  19. package/lib/badge/badge.less +5 -6
  20. package/lib/badge/badge.variable.css +38 -5
  21. package/lib/badge/index.d.ts +267 -0
  22. package/lib/badge/index.js +1 -1
  23. package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
  24. package/lib/breadcrumb/breadcrumb.css +18 -1
  25. package/lib/breadcrumb/breadcrumb.d.ts +37 -9
  26. package/lib/breadcrumb/breadcrumb.less +13 -2
  27. package/lib/breadcrumb/breadcrumb.variable.css +51 -1
  28. package/lib/breadcrumb/index.d.ts +194 -0
  29. package/lib/breadcrumb/index.js +1 -1
  30. package/lib/button/button-group.d.ts +3 -5
  31. package/lib/button/button.css +41 -21
  32. package/lib/button/button.d.ts +66 -30
  33. package/lib/button/button.less +44 -28
  34. package/lib/button/button.variable.css +74 -21
  35. package/lib/button/index.d.ts +237 -0
  36. package/lib/button/index.js +1 -1
  37. package/lib/card/card.css +53 -1
  38. package/lib/card/card.d.ts +74 -18
  39. package/lib/card/card.less +50 -2
  40. package/lib/card/card.variable.css +86 -1
  41. package/lib/card/index.d.ts +283 -0
  42. package/lib/card/index.js +1 -1
  43. package/lib/checkbox/checkbox-group.d.ts +13 -9
  44. package/lib/checkbox/checkbox.css +12 -0
  45. package/lib/checkbox/checkbox.d.ts +33 -30
  46. package/lib/checkbox/checkbox.less +17 -0
  47. package/lib/checkbox/checkbox.variable.css +45 -0
  48. package/lib/checkbox/common.d.ts +3 -3
  49. package/lib/checkbox/index.d.ts +253 -0
  50. package/lib/checkbox/index.js +1 -1
  51. package/lib/checkbox/type.d.ts +9 -12
  52. package/lib/code-diff/code-diff.css +186 -0
  53. package/lib/code-diff/code-diff.d.ts +80 -0
  54. package/lib/code-diff/code-diff.less +238 -0
  55. package/lib/code-diff/code-diff.variable.css +280 -0
  56. package/lib/code-diff/index.d.ts +154 -0
  57. package/lib/code-diff/index.js +1 -0
  58. package/lib/collapse/collapse.css +8 -0
  59. package/lib/collapse/collapse.d.ts +50 -18
  60. package/lib/collapse/collapse.less +10 -0
  61. package/lib/collapse/collapse.variable.css +8 -0
  62. package/lib/collapse/index.d.ts +166 -0
  63. package/lib/collapse/index.js +1 -1
  64. package/lib/components.d.ts +42 -0
  65. package/lib/components.js +1 -0
  66. package/lib/container/col.d.ts +51 -0
  67. package/lib/container/container.css +48 -0
  68. package/lib/container/container.d.ts +83 -0
  69. package/lib/container/container.less +20 -0
  70. package/lib/container/container.variable.css +142 -0
  71. package/lib/container/index.d.ts +223 -0
  72. package/lib/container/index.js +1 -0
  73. package/lib/container/row.d.ts +4 -0
  74. package/lib/date-picker/date-picker.css +407 -0
  75. package/lib/date-picker/date-picker.d.ts +294 -0
  76. package/lib/date-picker/date-picker.less +526 -0
  77. package/lib/date-picker/date-picker.variable.css +501 -0
  78. package/lib/date-picker/fecha.d.ts +6 -0
  79. package/lib/date-picker/index.d.ts +713 -0
  80. package/lib/date-picker/index.js +1 -0
  81. package/lib/date-picker/interface.d.ts +22 -0
  82. package/lib/date-picker/props.d.ts +111 -0
  83. package/lib/date-picker/utils.d.ts +97 -0
  84. package/lib/dialog/dialog.css +40 -0
  85. package/lib/dialog/dialog.d.ts +226 -51
  86. package/lib/dialog/dialog.less +16 -0
  87. package/lib/dialog/dialog.variable.css +40 -0
  88. package/lib/dialog/index.d.ts +608 -0
  89. package/lib/dialog/index.js +1 -1
  90. package/lib/directives/clickoutside.d.ts +3 -0
  91. package/lib/directives/index.d.ts +3 -0
  92. package/lib/directives/index.js +2 -15
  93. package/lib/directives/index.js.LICENSE.txt +14 -0
  94. package/lib/directives/tooltips.d.ts +17 -0
  95. package/lib/dist.index.js +1 -0
  96. package/lib/divider/divider.css +38 -0
  97. package/lib/divider/divider.d.ts +48 -0
  98. package/lib/divider/divider.less +53 -0
  99. package/lib/divider/divider.variable.css +132 -0
  100. package/lib/divider/index.d.ts +142 -0
  101. package/lib/divider/index.js +1 -0
  102. package/lib/divider/props.d.ts +21 -0
  103. package/lib/dropdown/dropdown-item.d.ts +19 -0
  104. package/lib/dropdown/dropdown-menu.d.ts +16 -0
  105. package/lib/dropdown/dropdown.css +43 -0
  106. package/lib/dropdown/dropdown.d.ts +63 -0
  107. package/lib/dropdown/dropdown.less +54 -0
  108. package/lib/dropdown/dropdown.variable.css +137 -0
  109. package/lib/dropdown/index.d.ts +200 -0
  110. package/lib/dropdown/index.js +1 -0
  111. package/lib/exception/exception.d.ts +11 -9
  112. package/lib/exception/exception.variable.css +33 -0
  113. package/lib/exception/index.d.ts +96 -0
  114. package/lib/exception/index.js +1 -1
  115. package/lib/fixed-navbar/fixed-navbar.d.ts +15 -9
  116. package/lib/fixed-navbar/fixed-navbar.variable.css +33 -0
  117. package/lib/fixed-navbar/index.d.ts +112 -0
  118. package/lib/fixed-navbar/index.js +1 -1
  119. package/lib/form/common.d.ts +3 -0
  120. package/lib/form/compose-form-item.d.ts +16 -0
  121. package/lib/form/form-item.d.ts +145 -0
  122. package/lib/form/form.css +113 -0
  123. package/lib/form/form.d.ts +64 -0
  124. package/lib/form/form.less +141 -0
  125. package/lib/form/form.variable.css +207 -0
  126. package/lib/form/index.d.ts +262 -0
  127. package/lib/form/index.js +1 -0
  128. package/lib/form/type.d.ts +21 -0
  129. package/lib/form/validator.d.ts +8 -0
  130. package/lib/icon/angle-double-down-line.d.ts +4 -0
  131. package/lib/icon/angle-double-down-line.js +1 -0
  132. package/lib/icon/angle-double-left-line.d.ts +4 -0
  133. package/lib/icon/angle-double-left-line.js +1 -0
  134. package/lib/icon/angle-double-left.d.ts +4 -0
  135. package/lib/icon/angle-double-left.js +1 -0
  136. package/lib/icon/angle-double-right-line.d.ts +4 -0
  137. package/lib/icon/angle-double-right-line.js +1 -0
  138. package/lib/icon/angle-double-right.d.ts +4 -0
  139. package/lib/icon/angle-double-right.js +1 -0
  140. package/lib/icon/angle-double-up-line.d.ts +4 -0
  141. package/lib/icon/angle-double-up-line.js +1 -0
  142. package/lib/icon/angle-down-fill.d.ts +4 -0
  143. package/lib/icon/angle-down-fill.js +1 -0
  144. package/lib/icon/angle-down-line.d.ts +4 -0
  145. package/lib/icon/angle-down-line.js +1 -0
  146. package/lib/icon/angle-down.d.ts +4 -0
  147. package/lib/icon/angle-down.js +1 -0
  148. package/lib/icon/angle-left.d.ts +4 -0
  149. package/lib/icon/angle-left.js +1 -0
  150. package/lib/icon/angle-right.d.ts +4 -0
  151. package/lib/icon/angle-right.js +1 -0
  152. package/lib/icon/angle-up-fill.d.ts +4 -0
  153. package/lib/icon/angle-up-fill.js +1 -0
  154. package/lib/icon/angle-up.d.ts +4 -0
  155. package/lib/icon/angle-up.js +1 -0
  156. package/lib/icon/arrows-left.d.ts +4 -0
  157. package/lib/icon/arrows-left.js +1 -0
  158. package/lib/icon/arrows-right.d.ts +4 -0
  159. package/lib/icon/arrows-right.js +1 -0
  160. package/lib/icon/bk.d.ts +4 -0
  161. package/lib/icon/bk.js +1 -0
  162. package/lib/icon/circle.d.ts +4 -0
  163. package/lib/icon/circle.js +1 -0
  164. package/lib/icon/close-line.d.ts +4 -0
  165. package/lib/icon/close-line.js +1 -0
  166. package/lib/icon/close.d.ts +4 -0
  167. package/lib/icon/close.js +1 -0
  168. package/lib/icon/code.d.ts +4 -0
  169. package/lib/icon/code.js +1 -0
  170. package/lib/icon/cog-shape.d.ts +4 -0
  171. package/lib/icon/cog-shape.js +1 -0
  172. package/lib/icon/collapse-left.d.ts +4 -0
  173. package/lib/icon/collapse-left.js +1 -0
  174. package/lib/icon/copy.d.ts +4 -0
  175. package/lib/icon/copy.js +1 -0
  176. package/lib/icon/data-shape.d.ts +4 -0
  177. package/lib/icon/data-shape.js +1 -0
  178. package/lib/icon/done.d.ts +4 -0
  179. package/lib/icon/done.js +1 -0
  180. package/lib/icon/down-shape.d.ts +4 -0
  181. package/lib/icon/down-shape.js +1 -0
  182. package/lib/icon/down-small.d.ts +4 -0
  183. package/lib/icon/down-small.js +1 -0
  184. package/lib/icon/edit-line.d.ts +4 -0
  185. package/lib/icon/edit-line.js +1 -0
  186. package/lib/icon/ellipsis.d.ts +4 -0
  187. package/lib/icon/ellipsis.js +1 -0
  188. package/lib/icon/error.d.ts +4 -0
  189. package/lib/icon/error.js +1 -0
  190. package/lib/icon/eye.d.ts +4 -0
  191. package/lib/icon/eye.js +1 -0
  192. package/lib/icon/folder-open.d.ts +4 -0
  193. package/lib/icon/folder-open.js +1 -0
  194. package/lib/icon/folder-shape-open.d.ts +4 -0
  195. package/lib/icon/folder-shape-open.js +1 -0
  196. package/lib/icon/folder-shape.d.ts +4 -0
  197. package/lib/icon/folder-shape.js +1 -0
  198. package/lib/icon/folder.d.ts +4 -0
  199. package/lib/icon/folder.js +1 -0
  200. package/lib/icon/funnel.d.ts +4 -0
  201. package/lib/icon/help-document-fill.d.ts +4 -0
  202. package/lib/icon/help-document-fill.js +1 -0
  203. package/lib/icon/help-fill.d.ts +4 -0
  204. package/lib/icon/help-fill.js +1 -0
  205. package/lib/icon/help.d.ts +4 -0
  206. package/lib/icon/help.js +1 -0
  207. package/lib/icon/icon.d.ts +12 -0
  208. package/lib/icon/index.d.ts +57 -0
  209. package/lib/icon/index.js +1 -15
  210. package/lib/icon/info-line.d.ts +4 -0
  211. package/lib/icon/info-line.js +1 -0
  212. package/lib/icon/info.d.ts +4 -0
  213. package/lib/icon/info.js +1 -0
  214. package/lib/icon/left-shape.d.ts +4 -0
  215. package/lib/icon/left-shape.js +1 -0
  216. package/lib/icon/play-shape.d.ts +4 -0
  217. package/lib/icon/play-shape.js +1 -0
  218. package/lib/icon/plus.d.ts +4 -0
  219. package/lib/icon/plus.js +1 -0
  220. package/lib/icon/qq.d.ts +4 -0
  221. package/lib/icon/qq.js +1 -0
  222. package/lib/icon/right-shape.d.ts +4 -0
  223. package/lib/icon/right-shape.js +1 -0
  224. package/lib/icon/search.d.ts +4 -0
  225. package/lib/icon/search.js +1 -0
  226. package/lib/icon/share.d.ts +4 -0
  227. package/lib/icon/share.js +1 -0
  228. package/lib/icon/spinner.d.ts +4 -0
  229. package/lib/icon/spinner.js +1 -0
  230. package/lib/icon/success.d.ts +4 -0
  231. package/lib/icon/success.js +1 -0
  232. package/lib/icon/switcher-loading.d.ts +4 -0
  233. package/lib/icon/switcher-loading.js +1 -0
  234. package/lib/icon/text-file.d.ts +4 -0
  235. package/lib/icon/text-file.js +1 -0
  236. package/lib/icon/tree-application-shape.d.ts +4 -0
  237. package/lib/icon/tree-application-shape.js +1 -0
  238. package/lib/icon/unvisible.d.ts +4 -0
  239. package/lib/icon/unvisible.js +1 -0
  240. package/lib/icon/up-shape.d.ts +4 -0
  241. package/lib/icon/up-shape.js +1 -0
  242. package/lib/icon/warn.d.ts +4 -0
  243. package/lib/icon/warn.js +1 -0
  244. package/lib/icon/weixin.d.ts +4 -0
  245. package/lib/icon/weixin.js +1 -0
  246. package/lib/index.d.ts +3 -0
  247. package/lib/index.js +1 -0
  248. package/lib/input/index.d.ts +451 -0
  249. package/lib/input/index.js +1 -15
  250. package/lib/input/input.css +75 -4
  251. package/lib/input/input.d.ts +118 -43
  252. package/lib/input/input.less +86 -8
  253. package/lib/input/input.variable.css +109 -4
  254. package/lib/link/index.d.ts +164 -0
  255. package/lib/link/index.js +1 -1
  256. package/lib/link/link.d.ts +25 -13
  257. package/lib/link/link.variable.css +33 -0
  258. package/lib/loading/index.d.ts +172 -0
  259. package/lib/loading/index.js +1 -1
  260. package/lib/loading/loading.css +118 -73
  261. package/lib/loading/loading.d.ts +67 -20
  262. package/lib/loading/loading.less +75 -58
  263. package/lib/loading/loading.variable.css +151 -73
  264. package/lib/menu/index.d.ts +188 -0
  265. package/lib/menu/index.js +1 -0
  266. package/lib/menu/menu-group.d.ts +14 -0
  267. package/lib/menu/menu-item.d.ts +16 -0
  268. package/lib/menu/menu.css +190 -0
  269. package/lib/menu/menu.d.ts +64 -0
  270. package/lib/menu/menu.less +180 -0
  271. package/lib/menu/menu.variable.css +284 -0
  272. package/lib/menu/submenu.css +3 -0
  273. package/lib/menu/submenu.d.ts +22 -0
  274. package/lib/menu/submenu.less +5 -0
  275. package/lib/menu/submenu.variable.css +97 -0
  276. package/lib/menu/utils.d.ts +41 -0
  277. package/lib/message/index.d.ts +2 -0
  278. package/lib/message/index.js +1 -0
  279. package/lib/message/message.css +62 -0
  280. package/lib/message/message.less +72 -0
  281. package/lib/message/message.variable.css +156 -0
  282. package/lib/message/messageConstructor.d.ts +106 -0
  283. package/lib/modal/index.d.ts +374 -0
  284. package/lib/modal/index.js +1 -1
  285. package/lib/modal/modal.css +20 -0
  286. package/lib/modal/modal.d.ts +108 -27
  287. package/lib/modal/modal.less +27 -0
  288. package/lib/modal/modal.variable.css +20 -0
  289. package/lib/modal/props.mixin.d.ts +44 -11
  290. package/lib/navigation/index.d.ts +2 -0
  291. package/lib/navigation/index.js +1 -0
  292. package/lib/navigation/navigation-title.d.ts +25 -0
  293. package/lib/navigation/navigation.css +184 -0
  294. package/lib/navigation/navigation.d.ts +111 -0
  295. package/lib/navigation/navigation.less +210 -0
  296. package/lib/navigation/navigation.variable.css +278 -0
  297. package/lib/notify/index.d.ts +2 -0
  298. package/lib/notify/index.js +1 -0
  299. package/lib/notify/notify.css +49 -0
  300. package/lib/notify/notify.less +58 -0
  301. package/lib/notify/notify.variable.css +143 -0
  302. package/lib/notify/notifyConstructor.d.ts +91 -0
  303. package/lib/pagination/index.d.ts +395 -0
  304. package/lib/pagination/index.js +1 -0
  305. package/lib/pagination/pagination.css +179 -0
  306. package/lib/pagination/pagination.d.ts +220 -0
  307. package/lib/pagination/pagination.less +201 -0
  308. package/lib/pagination/pagination.variable.css +273 -0
  309. package/lib/pagination/type.d.ts +6 -0
  310. package/lib/pagination/use-limit.d.ts +8 -0
  311. package/lib/pagination/use-list.d.ts +8 -0
  312. package/lib/pagination/use-small-list.d.ts +5 -0
  313. package/lib/pagination/use-total.d.ts +5 -0
  314. package/lib/popover/index.d.ts +318 -0
  315. package/lib/popover/index.js +1 -1
  316. package/lib/popover/popover.css +23 -14
  317. package/lib/popover/popover.d.ts +90 -46
  318. package/lib/popover/popover.less +57 -46
  319. package/lib/popover/popover.variable.css +56 -14
  320. package/lib/popover/props.d.ts +89 -0
  321. package/lib/preset.d.ts +7 -0
  322. package/lib/preset.js +1 -0
  323. package/lib/process/index.d.ts +205 -0
  324. package/lib/process/index.js +1 -0
  325. package/lib/process/process.css +138 -0
  326. package/lib/process/process.d.ts +131 -0
  327. package/lib/process/process.less +178 -0
  328. package/lib/process/process.variable.css +232 -0
  329. package/lib/progress/index.d.ts +398 -0
  330. package/lib/progress/index.js +1 -1
  331. package/lib/progress/progress.css +8 -3
  332. package/lib/progress/progress.d.ts +88 -35
  333. package/lib/progress/progress.less +0 -4
  334. package/lib/progress/progress.variable.css +41 -3
  335. package/lib/radio/common.d.ts +5 -5
  336. package/lib/radio/index.d.ts +278 -0
  337. package/lib/radio/index.js +1 -1
  338. package/lib/radio/radio-button.d.ts +29 -20
  339. package/lib/radio/radio-group.d.ts +11 -10
  340. package/lib/radio/radio.css +8 -2
  341. package/lib/radio/radio.d.ts +27 -17
  342. package/lib/radio/radio.less +9 -2
  343. package/lib/radio/radio.variable.css +41 -2
  344. package/lib/radio/type.d.ts +10 -5
  345. package/lib/rate/index.d.ts +113 -0
  346. package/lib/rate/index.js +1 -1
  347. package/lib/rate/rate.d.ts +13 -10
  348. package/lib/rate/star.d.ts +33 -16
  349. package/lib/resize-layout/index.d.ts +336 -0
  350. package/lib/resize-layout/index.js +1 -0
  351. package/lib/resize-layout/resize-layout.css +189 -0
  352. package/lib/resize-layout/resize-layout.d.ts +127 -0
  353. package/lib/resize-layout/resize-layout.less +233 -0
  354. package/lib/resize-layout/resize-layout.variable.css +283 -0
  355. package/lib/select/common.d.ts +23 -17
  356. package/lib/select/index.d.ts +1377 -0
  357. package/lib/select/index.js +1 -1
  358. package/lib/select/option.d.ts +12 -19
  359. package/lib/select/optionGroup.d.ts +54 -0
  360. package/lib/select/select.css +248 -17
  361. package/lib/select/select.d.ts +282 -156
  362. package/lib/select/select.less +251 -46
  363. package/lib/select/select.variable.css +281 -17
  364. package/lib/select/type.d.ts +31 -0
  365. package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
  366. package/lib/shared/index.d.ts +52 -0
  367. package/lib/shared/index.js +1 -1
  368. package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +32 -3
  369. package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +8 -1
  370. package/lib/shared/{bk-popover.d.ts → popover.d.ts} +57 -6
  371. package/lib/shared/utils.d.ts +6 -0
  372. package/lib/shared/vue-types.d.ts +8 -7
  373. package/lib/shared/z-index-manager.d.ts +6 -1
  374. package/lib/sideslider/index.d.ts +337 -0
  375. package/lib/sideslider/index.js +1 -1
  376. package/lib/sideslider/sideslider.d.ts +114 -30
  377. package/lib/sideslider/sideslider.variable.css +33 -0
  378. package/lib/slider/index.d.ts +27 -0
  379. package/lib/slider/index.js +1 -0
  380. package/lib/slider/slider-button.d.ts +80 -0
  381. package/lib/slider/slider.css +149 -0
  382. package/lib/slider/slider.d.ts +201 -0
  383. package/lib/slider/slider.less +179 -0
  384. package/lib/slider/slider.variable.css +243 -0
  385. package/lib/steps/index.d.ts +250 -0
  386. package/lib/steps/index.js +1 -0
  387. package/lib/steps/steps.css +288 -0
  388. package/lib/steps/steps.d.ts +161 -0
  389. package/lib/steps/steps.less +324 -0
  390. package/lib/steps/steps.variable.css +382 -0
  391. package/lib/styles/index.d.ts +48 -0
  392. package/lib/styles/mixins/clearfix.css +8 -0
  393. package/lib/styles/mixins/clearfix.less +10 -0
  394. package/lib/styles/mixins/clearfix.variable.css +8 -0
  395. package/lib/styles/mixins/mixins.css +8 -0
  396. package/lib/styles/mixins/mixins.less +1 -0
  397. package/lib/styles/mixins/mixins.variable.css +8 -0
  398. package/lib/styles/mixins/popper.css +43 -0
  399. package/lib/styles/mixins/popper.less +52 -0
  400. package/lib/styles/mixins/popper.variable.css +43 -0
  401. package/lib/styles/mixins/size.less +9 -0
  402. package/lib/styles/reset.css +273 -0
  403. package/lib/styles/reset.less +313 -0
  404. package/lib/styles/reset.variable.css +273 -0
  405. package/lib/styles/themes/themes.less +53 -2
  406. package/lib/swiper/index.d.ts +181 -0
  407. package/lib/swiper/index.js +1 -0
  408. package/lib/swiper/swiper.css +91 -0
  409. package/lib/swiper/swiper.d.ts +65 -0
  410. package/lib/swiper/swiper.less +107 -0
  411. package/lib/swiper/swiper.variable.css +91 -0
  412. package/lib/switcher/index.d.ts +286 -0
  413. package/lib/switcher/index.js +1 -1
  414. package/lib/switcher/switcher.css +157 -135
  415. package/lib/switcher/switcher.d.ts +48 -32
  416. package/lib/switcher/switcher.less +211 -153
  417. package/lib/switcher/switcher.variable.css +190 -135
  418. package/lib/tab/index.d.ts +443 -0
  419. package/lib/tab/index.js +1 -0
  420. package/lib/tab/props.d.ts +191 -0
  421. package/lib/tab/tab-nav.d.ts +165 -0
  422. package/lib/tab/tab-panel.d.ts +73 -0
  423. package/lib/tab/tab.css +148 -0
  424. package/lib/tab/tab.d.ts +140 -0
  425. package/lib/tab/tab.less +222 -0
  426. package/lib/tab/tab.variable.css +242 -0
  427. package/lib/table/const.d.ts +4 -0
  428. package/lib/table/index.d.ts +359 -0
  429. package/lib/table/index.js +1 -1
  430. package/lib/table/plugins/head-filter.css +68 -0
  431. package/lib/table/plugins/head-filter.less +83 -0
  432. package/lib/table/plugins/head-filter.variable.css +162 -0
  433. package/lib/table/plugins/head-sort.css +22 -0
  434. package/lib/table/plugins/head-sort.less +28 -0
  435. package/lib/table/plugins/head-sort.variable.css +116 -0
  436. package/lib/table/plugins/settings.css +110 -0
  437. package/lib/table/plugins/settings.less +136 -0
  438. package/lib/table/plugins/settings.variable.css +204 -0
  439. package/lib/table/props.d.ts +184 -0
  440. package/lib/table/render.d.ts +120 -0
  441. package/lib/table/table.css +321 -0
  442. package/lib/table/table.d.ts +114 -36
  443. package/lib/table/table.less +160 -1
  444. package/lib/table/table.variable.css +354 -0
  445. package/lib/table/use-common.d.ts +20 -0
  446. package/lib/table/utils.d.ts +83 -0
  447. package/lib/tag/index.d.ts +229 -0
  448. package/lib/tag/index.js +1 -1
  449. package/lib/tag/tag.css +97 -0
  450. package/lib/tag/tag.d.ts +83 -53
  451. package/lib/tag/tag.less +110 -2
  452. package/lib/tag/tag.variable.css +130 -0
  453. package/lib/tag-input/common.d.ts +24 -0
  454. package/lib/tag-input/index.d.ts +2 -0
  455. package/lib/tag-input/index.js +1 -0
  456. package/lib/tag-input/list-tag-render.d.ts +47 -0
  457. package/lib/tag-input/tag-input.css +208 -0
  458. package/lib/tag-input/tag-input.d.ts +374 -0
  459. package/lib/tag-input/tag-input.less +250 -0
  460. package/lib/tag-input/tag-input.variable.css +302 -0
  461. package/lib/tag-input/tag-props.d.ts +131 -0
  462. package/lib/tag-input/tag-render.d.ts +38 -0
  463. package/lib/timeline/index.d.ts +129 -0
  464. package/lib/timeline/index.js +1 -0
  465. package/lib/timeline/timeline.css +235 -0
  466. package/lib/timeline/timeline.d.ts +81 -0
  467. package/lib/timeline/timeline.less +239 -0
  468. package/lib/timeline/timeline.variable.css +329 -0
  469. package/lib/transfer/index.d.ts +351 -0
  470. package/lib/transfer/index.js +1 -0
  471. package/lib/transfer/transfer.css +158 -0
  472. package/lib/transfer/transfer.d.ts +185 -0
  473. package/lib/transfer/transfer.less +171 -0
  474. package/lib/transfer/transfer.variable.css +252 -0
  475. package/lib/tree/index.d.ts +266 -0
  476. package/lib/tree/index.js +1 -0
  477. package/lib/tree/props.d.ts +99 -0
  478. package/lib/tree/tree.css +50 -0
  479. package/lib/tree/tree.d.ts +110 -0
  480. package/lib/tree/tree.less +63 -0
  481. package/lib/tree/tree.variable.css +144 -0
  482. package/lib/tree/use-async.d.ts +5 -0
  483. package/lib/tree/use-node-action.d.ts +6 -0
  484. package/lib/tree/use-node-attribute.d.ts +13 -0
  485. package/lib/tree/util.d.ts +70 -0
  486. package/lib/use-form.d.ts +3 -0
  487. package/lib/use-message.d.ts +2 -0
  488. package/lib/virtual-render/index.d.ts +556 -0
  489. package/lib/virtual-render/index.js +1 -0
  490. package/lib/virtual-render/props.d.ts +157 -0
  491. package/lib/virtual-render/v-virtual-render.d.ts +7 -0
  492. package/lib/virtual-render/virtual-render.css +33 -0
  493. package/lib/virtual-render/virtual-render.d.ts +244 -0
  494. package/lib/virtual-render/virtual-render.less +43 -0
  495. package/lib/virtual-render/virtual-render.variable.css +33 -0
  496. package/package.json +108 -79
  497. package/dist/bkui-vue.cjs.js +0 -4887
  498. package/dist/bkui-vue.esm.js +0 -4883
  499. package/dist/bkui-vue.umd.js +0 -4890
  500. package/lib/checkbox-group/index.js +0 -1
  501. package/lib/radio-button/index.js +0 -1
  502. package/lib/radio-group/index.js +0 -1
  503. package/lib/styles/index.js +0 -1
  504. package/lib/table/common.d.ts +0 -3
  505. package/lib/table/table-layout.d.ts +0 -14
  506. package/lib/table/type.d.ts +0 -12
@@ -0,0 +1 @@
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../icon/"),require("../input"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon/","../input"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon/"),require("../input")):t(e["../shared"],e.vue,e["../icon/"],e["../input"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,((e,t,r,n)=>(()=>{"use strict";var a={7685:e=>{e.exports=r},8133:e=>{e.exports=n},4212:t=>{t.exports=e},748:e=>{e.exports=t}},o={};function l(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return a[e](r,r.exports,l),r.exports}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return(()=>{l.r(u),l.d(u,{default:()=>v});var e=l(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function r(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],l=!0,u=!1;try{for(r=r.call(e);!(l=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{l||null==r.return||r.return()}finally{if(u)throw a}}return o}}(e,t)||r(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o=l(748),i=l(7685),s=l(8133),c=l.n(s);e.PropTypes.string,e.PropTypes.string,e.PropTypes.string,e.PropTypes.string,e.PropTypes.bool,e.PropTypes.bool,e.PropTypes.string,e.PropTypes.bool;const f=(0,o.defineComponent)({name:"Transfer",props:{title:{type:Array,default:function(){return[]}},extCls:{type:String,default:""},searchPlaceholder:{type:String,default:""},settingKey:{type:String,default:"id"},displayKey:{type:String,default:"value"},sortKey:{type:String,default:""},showOverflowTips:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},sortable:{type:Boolean,default:!1},sourceList:{type:Array,default:function(){return[]}},targetList:{type:Array,default:function(){return[]}},emptyContent:{type:Array,default:function(){return[]}}},emits:["change"],slots:["left-header","right-header","source-option","target-option","left-empty-content","right-empty-content"],setup:function(t,r){var l=r.emit,u=[],i=t.sortKey,s=t.sortable,c=(0,o.ref)(""),f=(0,o.ref)(null),v=(0,o.ref)([]),d=(0,o.ref)([]),p=(0,o.ref)(-1),h=(0,o.ref)(-1),y=(0,o.computed)((function(){return t.sourceList&&Array.isArray(t.sourceList)?-1!==t.sourceList.toString().indexOf("[object Object]"):"empty"})),g=(0,o.computed)((function(){return y.value?t.settingKey:"index"})),m=(0,o.computed)((function(){return y.value?t.displayKey:"value"})),b=(0,o.computed)((function(){return c.value?v.value.filter((function(t){return!(0,e.isEmpty)(t[m.value])&&String(t[m.value]).indexOf(c.value)>-1})):v.value}));(0,o.watch)((function(){return t.sourceList}),(function(){"empty"!==y.value&&(L(),w())}),{deep:!0}),(0,o.watch)((function(){return t.targetList}),(function(){L(),w()}),{deep:!0}),(0,o.watch)((function(){return[m.value,g.value]}),(function(){L()})),(0,o.watch)((function(){return t.sortKey}),(function(e){i=e,w()})),(0,o.watch)((function(){return t.sortable}),(function(e){s=e,w()}));var L=function(){"empty"!==y.value&&(y.value?S():x())},x=function(){if(!t.targetList.length||t.targetList.length>t.sourceList.length){for(var e,r=[],n=0;n<t.sourceList.length;n++)r.push({index:n,value:t.sourceList[n]});v.value=[].concat(r),(e=d.value).splice.apply(e,[0,d.value.length].concat([])),l("change",v.value,[],[])}else{for(var o=[],u=[],i=0;i<t.sourceList.length;i++)o.push({index:i,value:t.sourceList[i]});t.targetList.forEach((function(e){var t=o.find((function(t){return t.value===e}));t&&u.push(t)})),d.value=[].concat(u);var s=o.filter((function(e){return u.every((function(t){return t.index!==e.index}))}));v.value=a(s),l("change",v.value,a(N(d.value,!1)),[])}},S=function(){if(!t.targetList.length||t.targetList.length>t.sourceList.length){var e;(e=v.value).splice.apply(e,[0,v.value.length].concat(a(t.sourceList))),d.value=[],l("change",v.value,[],[])}else{var r=t.sourceList.filter((function(e){return t.targetList.every((function(t){return t!==e[g.value]}))})),n=[];t.sourceList.forEach((function(e){t.targetList.forEach((function(t){e[g.value]===t&&n.push(e)}))})),d.value=[].concat(n),v.value=a(r);var o=a(N(d.value));l("change",v.value,d.value,o)}},w=function(){var e=[];if(y.value)s||(i=""),e=a(t.sourceList);else{i=s?"index":"";for(var r=0;r<t.sourceList.length;r++)e.push({index:r,value:t.sourceList[r]})}if(i){var n=[];if(e.forEach((function(e){n.push(e[i])})),(u=[].concat(n)).length===t.sourceList.length){var o=a(v.value);v.value=a(T(o,i,u))}}},V=function(){var e=v.value,t=y.value?d.value:a(N(d.value,!1)),r=y.value?a(N(d.value)):[];l("change",e,t,r)},N=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=[];if(!e.length)return[];var o=a(e);return o.forEach((function(e){if(t)for(var a=0,o=Object.entries(e);a<o.length;a++){var l=n(o[a],2),u=l[0],i=l[1];u===g.value&&r.push(i)}else r.push(e.value)})),r},T=function(e,t,r){var n=r;return e.sort((function(e,r){return n.indexOf(e[t])-n.indexOf(r[t])>=0}))},A=function(e){v.value=v.value.filter((function(t){return t[g.value]!==e[g.value]}))};return"empty"!==y.value&&(y.value?S():x(),w()),{keyword:c,transferRef:f,dataList:v,allToRight:function(){p.value=-1;var e=b.value,r=d.value;e.forEach((function(e){r.push(e),A(e)})),u.length===t.sourceList.length?d.value=a(T(r,i,u)):d.value=a(r),V()},allToLeft:function(){h.value=-1;for(var e=d.value,r=v.value;e.length;){var n=e.shift();r.push(n),u.length===t.sourceList.length?v.value=a(T(r,i,u)):v.value=a(r)}V()},displayDataList:b,displayCode:m,leftHoverIndex:p,rightHoverIndex:h,handleItemMouseEvent:function(e,t,r,n){t.preventDefault(),t.stopPropagation();var a="over"===e?n:-1;r?p.value=a:h.value=a},handleItemClick:function(e,r,n){e.preventDefault(),e.stopPropagation(),n?p.value=-1:h.value=-1;var o=n?b.value[r]:d.value.splice(r,1)[0],l=n?d.value:v.value;l.push(o),n&&A(o);var s=u.length===t.sourceList.length?a(T(l,i,u)):a(l);n?d.value=a(s):v.value=a(s),V()},hasSelectedList:d}},render:function(){var e=this,t=this.$props,r=t.extCls,n=t.title,a=t.emptyContent,l=t.searchable,u=t.searchPlaceholder,s=function(t){var r,a,l="left-header"===t,u="".concat(l?null!==(r=n[0])&&void 0!==r?r:"左侧列表":null!==(a=n[1])&&void 0!==a?a:"右侧列表"),i=l?!e.dataList.length:!e.hasSelectedList.length;return e.$slots[t]?(0,o.createVNode)("div",{class:"slot-header"},[(0,o.createVNode)("div",{class:"slot-content"},[e.$slots[t]()])]):(0,o.createVNode)("div",{class:"header"},["".concat(u,"(共").concat(e.dataList.length,"条)"),(0,o.createVNode)("span",{class:{disabled:i},onClick:function(){return l&&e.dataList.length&&e.allToRight(),void(!l&&e.hasSelectedList.length&&e.allToLeft())}},[l?"全部添加":"清空"])])},f=function(t,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=n?e.leftHoverIndex:e.rightHoverIndex;return(0,o.createVNode)("div",{class:"item-content"},[(0,o.createVNode)("span",{class:"content-text",title:t[e.displayCode]},[t[e.displayCode]]),(0,o.createVNode)("span",{class:["icon-wrapper",r===a?"hover":""]},[n?(0,o.createVNode)(i.ArrowsRight,{class:"bk-icon"},null):(0,o.createVNode)(i.Error,{class:"bk-icon"},null)])])},v=function(t){var r="left"===t,n=r?e.displayDataList:e.hasSelectedList,u=r?"source-option":"target-option",i=r?"left-empty-content":"right-empty-content";return n.length?(0,o.createVNode)("ul",{class:["content",l&&r?"is-search":""]},[n.map((function(t,n){var a,l,i;return(0,o.createVNode)("li",{key:n,class:[e.$slots[u]?"custom-item":""],onClick:function(t){return e.handleItemClick(t,n,r)},onMouseover:function(t){return e.handleItemMouseEvent("over",t,r,n)},onMouseleave:function(t){return e.handleItemMouseEvent("leave",t,r,n)}},[null!==(i=null===(l=(a=e.$slots)[u])||void 0===l?void 0:l.call(a,t))&&void 0!==i?i:f(t,n,r)])}))]):function(t){var r,n="left-empty-content"===t,l=null!==(r=n?a[0]:a[1])&&void 0!==r?r:n?"无数据":"未选择任何项";return e.$slots[t]?(0,o.createVNode)("div",null,[e.$slots[t]()]):(0,o.createVNode)("div",{class:"empty"},[l])}(i)};return(0,o.createVNode)("div",{class:["bk-transfer",r],ref:"transferRef"},[(0,o.createVNode)("div",{class:"source-list"},[s("left-header"),l&&(0,o.createVNode)(c(),{modelValue:e.keyword,"onUpdate:modelValue":function(t){return e.keyword=t},class:"transfer-search-input",clearable:!0,placeholder:u||"请输入搜索关键字",type:"search","left-icon":"bk-icon icon-search"},null),v("left")]),(0,o.createVNode)("div",{class:"transfer"},null),(0,o.createVNode)("div",{class:"target-list"},[s("right-header"),v("right")])])}}),v=(0,e.withInstall)(f)})(),u})()));
@@ -0,0 +1,158 @@
1
+ /* 边框色 */
2
+ /* 按钮、表单边框颜色、禁用时文本颜色 */
3
+ /* 表格头部背景色、禁用底色 */
4
+ /* 大面积背景色 */
5
+ /* 重点表示、强调、链接以及带有明确指示性 */
6
+ /* 正常尺寸图标 */
7
+ .bk-transfer {
8
+ position: relative;
9
+ display: flex;
10
+ font-size: 14px;
11
+ flex-direction: row;
12
+ justify-content: center;
13
+ }
14
+ .bk-transfer .transfer {
15
+ position: absolute;
16
+ top: 50%;
17
+ left: 50%;
18
+ width: 30px;
19
+ height: 30px;
20
+ background: url('@bkui-vue/styles/images/transfer.png') no-repeat center center;
21
+ transform: translate(-50%, -50%);
22
+ }
23
+ .bk-transfer .source-list,
24
+ .bk-transfer .target-list {
25
+ height: 400px;
26
+ min-width: 200px;
27
+ overflow: hidden;
28
+ background-color: #fff;
29
+ border: 1px solid #dde4eb;
30
+ border-radius: 2px;
31
+ flex: 1;
32
+ }
33
+ .bk-transfer .source-list .slot-header,
34
+ .bk-transfer .target-list .slot-header {
35
+ position: relative;
36
+ height: 43px;
37
+ padding: 0 20px;
38
+ line-height: 43px;
39
+ background-color: #fafbfd;
40
+ border-bottom: 1px solid #dde4eb;
41
+ }
42
+ .bk-transfer .source-list .slot-header .slot-content,
43
+ .bk-transfer .target-list .slot-header .slot-content {
44
+ position: relative;
45
+ }
46
+ .bk-transfer .source-list .header,
47
+ .bk-transfer .target-list .header {
48
+ position: relative;
49
+ height: 43px;
50
+ padding: 0 20px;
51
+ line-height: 43px;
52
+ background-color: #fafbfd;
53
+ border-bottom: 1px solid #dde4eb;
54
+ }
55
+ .bk-transfer .source-list .header span,
56
+ .bk-transfer .target-list .header span {
57
+ position: absolute;
58
+ right: 10px;
59
+ font-size: 12px;
60
+ color: #3a84ff;
61
+ cursor: pointer;
62
+ }
63
+ .bk-transfer .source-list .header span.disabled,
64
+ .bk-transfer .target-list .header span.disabled {
65
+ color: #c4c6cc;
66
+ cursor: not-allowed;
67
+ }
68
+ .bk-transfer .source-list .empty,
69
+ .bk-transfer .target-list .empty {
70
+ position: relative;
71
+ top: 40%;
72
+ width: 100%;
73
+ color: #c4c6cc;
74
+ text-align: center;
75
+ cursor: default;
76
+ }
77
+ .bk-transfer .source-list .content,
78
+ .bk-transfer .target-list .content {
79
+ position: relative;
80
+ max-height: calc(100% - 50px);
81
+ padding: 0;
82
+ margin: 6px 0;
83
+ overflow-y: auto;
84
+ }
85
+ .bk-transfer .source-list .content.is-search,
86
+ .bk-transfer .target-list .content.is-search {
87
+ max-height: calc(100% - 86px);
88
+ }
89
+ .bk-transfer .source-list .content li.custom-item,
90
+ .bk-transfer .target-list .content li.custom-item,
91
+ .bk-transfer .source-list .content li .item-content,
92
+ .bk-transfer .target-list .content li .item-content {
93
+ position: relative;
94
+ display: flex;
95
+ height: 40px;
96
+ padding: 0 20px;
97
+ line-height: 40px;
98
+ list-style: none;
99
+ cursor: pointer;
100
+ align-items: center;
101
+ }
102
+ .bk-transfer .source-list .content li.custom-item:hover,
103
+ .bk-transfer .target-list .content li.custom-item:hover,
104
+ .bk-transfer .source-list .content li .item-content:hover,
105
+ .bk-transfer .target-list .content li .item-content:hover {
106
+ color: #3a84ff;
107
+ background-color: #eef6fe;
108
+ }
109
+ .bk-transfer .source-list .content li.custom-item .content-text,
110
+ .bk-transfer .target-list .content li.custom-item .content-text,
111
+ .bk-transfer .source-list .content li .item-content .content-text,
112
+ .bk-transfer .target-list .content li .item-content .content-text {
113
+ overflow: hidden;
114
+ text-overflow: ellipsis;
115
+ white-space: nowrap;
116
+ flex: 1;
117
+ }
118
+ .bk-transfer .source-list .content li.custom-item .icon-wrapper,
119
+ .bk-transfer .target-list .content li.custom-item .icon-wrapper,
120
+ .bk-transfer .source-list .content li .item-content .icon-wrapper,
121
+ .bk-transfer .target-list .content li .item-content .icon-wrapper {
122
+ display: none;
123
+ flex: 22px 0 0;
124
+ }
125
+ .bk-transfer .source-list .content li.custom-item .icon-wrapper.hover,
126
+ .bk-transfer .target-list .content li.custom-item .icon-wrapper.hover,
127
+ .bk-transfer .source-list .content li .item-content .icon-wrapper.hover,
128
+ .bk-transfer .target-list .content li .item-content .icon-wrapper.hover {
129
+ display: inline-block;
130
+ }
131
+ .bk-transfer .source-list .content::-webkit-scrollbar,
132
+ .bk-transfer .target-list .content::-webkit-scrollbar {
133
+ width: 4px;
134
+ }
135
+ .bk-transfer .source-list .content::-webkit-scrollbar-thumb,
136
+ .bk-transfer .target-list .content::-webkit-scrollbar-thumb {
137
+ height: 5px;
138
+ background-color: #e6e9ea;
139
+ border-radius: 2px;
140
+ }
141
+ .bk-transfer .source-list .content .bk-icon,
142
+ .bk-transfer .target-list .content .bk-icon {
143
+ font-size: 22px;
144
+ }
145
+ .bk-transfer .target-list {
146
+ margin-left: 33px;
147
+ }
148
+ .bk-transfer .transfer-search-input {
149
+ height: 36px;
150
+ line-height: 34px;
151
+ border: none;
152
+ border-bottom: 1px solid #f0f1f5;
153
+ outline: none;
154
+ }
155
+ .bk-transfer .transfer-search-input.is-focused {
156
+ border-color: #f0f1f5;
157
+ box-shadow: 0px 0px 3px 0px transparent;
158
+ }
@@ -0,0 +1,185 @@
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 { ExtractPropTypes, PropType } from 'vue';
27
+ declare const transferProps: {
28
+ title: PropType<string[]>;
29
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
30
+ default: string;
31
+ };
32
+ settingKey: import("vue-types").VueTypeValidableDef<string> & {
33
+ default: string;
34
+ };
35
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
36
+ default: string;
37
+ };
38
+ searchPlaceholder: import("vue-types").VueTypeValidableDef<string> & {
39
+ default: string;
40
+ };
41
+ showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
42
+ default: boolean;
43
+ };
44
+ searchable: import("vue-types").VueTypeValidableDef<boolean> & {
45
+ default: boolean;
46
+ };
47
+ sortKey: import("vue-types").VueTypeValidableDef<string> & {
48
+ default: string;
49
+ };
50
+ sortable: import("vue-types").VueTypeValidableDef<boolean> & {
51
+ default: boolean;
52
+ };
53
+ sourceList: ArrayConstructor;
54
+ targetList: ArrayConstructor;
55
+ emptyContent: PropType<string[]>;
56
+ };
57
+ export declare type TransferPropType = ExtractPropTypes<typeof transferProps>;
58
+ declare const _default: import("vue").DefineComponent<{
59
+ title: {
60
+ type: PropType<string[]>;
61
+ default: () => any[];
62
+ };
63
+ extCls: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ };
67
+ searchPlaceholder: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
71
+ settingKey: {
72
+ type: StringConstructor;
73
+ default: string;
74
+ };
75
+ displayKey: {
76
+ type: StringConstructor;
77
+ default: string;
78
+ };
79
+ sortKey: {
80
+ type: StringConstructor;
81
+ default: string;
82
+ };
83
+ showOverflowTips: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ searchable: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
91
+ sortable: {
92
+ type: BooleanConstructor;
93
+ default: boolean;
94
+ };
95
+ sourceList: {
96
+ type: ArrayConstructor;
97
+ default: () => any[];
98
+ };
99
+ targetList: {
100
+ type: ArrayConstructor;
101
+ default: () => any[];
102
+ };
103
+ emptyContent: {
104
+ type: PropType<string[]>;
105
+ default: () => any[];
106
+ };
107
+ }, {
108
+ keyword: import("vue").Ref<string>;
109
+ transferRef: any;
110
+ dataList: import("vue").Ref<any[]>;
111
+ allToRight: () => void;
112
+ allToLeft: () => void;
113
+ displayDataList: import("vue").ComputedRef<any[]>;
114
+ displayCode: import("vue").ComputedRef<string>;
115
+ leftHoverIndex: import("vue").Ref<number>;
116
+ rightHoverIndex: import("vue").Ref<number>;
117
+ handleItemMouseEvent: (type: any, event: any, isLeft: any, index: any) => void;
118
+ handleItemClick: (event: any, index: any, isLeft: any) => void;
119
+ hasSelectedList: import("vue").Ref<any[]>;
120
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
121
+ title: {
122
+ type: PropType<string[]>;
123
+ default: () => any[];
124
+ };
125
+ extCls: {
126
+ type: StringConstructor;
127
+ default: string;
128
+ };
129
+ searchPlaceholder: {
130
+ type: StringConstructor;
131
+ default: string;
132
+ };
133
+ settingKey: {
134
+ type: StringConstructor;
135
+ default: string;
136
+ };
137
+ displayKey: {
138
+ type: StringConstructor;
139
+ default: string;
140
+ };
141
+ sortKey: {
142
+ type: StringConstructor;
143
+ default: string;
144
+ };
145
+ showOverflowTips: {
146
+ type: BooleanConstructor;
147
+ default: boolean;
148
+ };
149
+ searchable: {
150
+ type: BooleanConstructor;
151
+ default: boolean;
152
+ };
153
+ sortable: {
154
+ type: BooleanConstructor;
155
+ default: boolean;
156
+ };
157
+ sourceList: {
158
+ type: ArrayConstructor;
159
+ default: () => any[];
160
+ };
161
+ targetList: {
162
+ type: ArrayConstructor;
163
+ default: () => any[];
164
+ };
165
+ emptyContent: {
166
+ type: PropType<string[]>;
167
+ default: () => any[];
168
+ };
169
+ }>> & {
170
+ onChange?: (...args: any[]) => any;
171
+ }, {
172
+ title: string[];
173
+ extCls: string;
174
+ displayKey: string;
175
+ sortable: boolean;
176
+ settingKey: string;
177
+ searchPlaceholder: string;
178
+ showOverflowTips: boolean;
179
+ searchable: boolean;
180
+ sortKey: string;
181
+ sourceList: unknown[];
182
+ targetList: unknown[];
183
+ emptyContent: string[];
184
+ }>;
185
+ export default _default;
@@ -0,0 +1,171 @@
1
+ @import '../styles/themes/themes.less';
2
+
3
+ /* 边框色 */
4
+ @borderInlineColor: #dde4eb;
5
+
6
+ /* 按钮、表单边框颜色、禁用时文本颜色 */
7
+ @newGreyColor: #c4c6cc;
8
+
9
+ /* 表格头部背景色、禁用底色 */
10
+ @newGreyColor2: #f0f1f5;
11
+
12
+ /* 大面积背景色 */
13
+ @newGreyColor3: #fafbfd;
14
+
15
+ /* 重点表示、强调、链接以及带有明确指示性 */
16
+ @newMainColor: #3a84ff;
17
+
18
+ /* 正常尺寸图标 */
19
+ @iconNormalSize: 22px;
20
+
21
+ .@{bk-prefix}-transfer {
22
+ position: relative;
23
+ display: flex;
24
+ font-size: 14px;
25
+ flex-direction: row;
26
+ justify-content: center;
27
+
28
+ .transfer {
29
+ position: absolute;
30
+ top: 50%;
31
+ left: 50%;
32
+ width: 30px;
33
+ height: 30px;
34
+ background: url('@bkui-vue/styles/images/transfer.png') no-repeat center center;
35
+ transform: translate(-50%, -50%);
36
+ }
37
+
38
+ .source-list,
39
+ .target-list {
40
+ height: 400px;
41
+ min-width: 200px;
42
+ overflow: hidden;
43
+ background-color: #fff;
44
+ border: 1px solid @borderInlineColor;
45
+ border-radius: 2px;
46
+ flex: 1;
47
+
48
+ .slot-header {
49
+ position: relative;
50
+ height: 43px;
51
+ padding: 0 20px;
52
+ line-height: 43px;
53
+ background-color: @newGreyColor3;
54
+ border-bottom: 1px solid @borderInlineColor;
55
+
56
+ .slot-content {
57
+ position: relative;
58
+ }
59
+ }
60
+
61
+ .header {
62
+ position: relative;
63
+ height: 43px;
64
+ padding: 0 20px;
65
+ line-height: 43px;
66
+ background-color: @newGreyColor3;
67
+ border-bottom: 1px solid @borderInlineColor;
68
+
69
+ span {
70
+ position: absolute;
71
+ right: 10px;
72
+ font-size: 12px;
73
+ color: @newMainColor;
74
+ cursor: pointer;
75
+
76
+ &.disabled {
77
+ color: @newGreyColor;
78
+ cursor: not-allowed;
79
+ }
80
+ }
81
+ }
82
+
83
+ .empty {
84
+ position: relative;
85
+ top: 40%;
86
+ width: 100%;
87
+ color: @newGreyColor;
88
+ text-align: center;
89
+ cursor: default;
90
+ }
91
+
92
+ .content {
93
+ position: relative;
94
+ max-height: calc(100% - 50px);
95
+ padding: 0;
96
+ margin: 6px 0;
97
+ overflow-y: auto;
98
+
99
+ &.is-search {
100
+ max-height: calc(100% - 86px);
101
+ }
102
+
103
+ li {
104
+ &.custom-item,
105
+ .item-content {
106
+ position: relative;
107
+ display: flex;
108
+ height: 40px;
109
+ padding: 0 20px;
110
+ line-height: 40px;
111
+ list-style: none;
112
+ cursor: pointer;
113
+ align-items: center;
114
+
115
+ &:hover {
116
+ color: @newMainColor;
117
+ background-color: #eef6fe;
118
+ }
119
+
120
+ .content-text {
121
+ overflow: hidden;
122
+ text-overflow: ellipsis;
123
+ white-space: nowrap;
124
+ flex: 1;
125
+ }
126
+
127
+ .icon-wrapper {
128
+ display: none;
129
+ flex: 22px 0 0;
130
+
131
+ &.hover {
132
+ display: inline-block;
133
+ }
134
+ }
135
+ }
136
+ }
137
+
138
+ &::-webkit-scrollbar {
139
+ width: 4px;
140
+ // background-color: color(transparent lightness(80%));
141
+ }
142
+
143
+ &::-webkit-scrollbar-thumb {
144
+ height: 5px;
145
+ background-color: #e6e9ea;
146
+ border-radius: 2px;
147
+ }
148
+
149
+ .bk-icon {
150
+ font-size: @iconNormalSize;
151
+ }
152
+ }
153
+ }
154
+
155
+ .target-list {
156
+ margin-left: 33px;
157
+ }
158
+
159
+ .transfer-search-input {
160
+ height: 36px;
161
+ line-height: 34px;
162
+ border: none;
163
+ border-bottom: 1px solid @newGreyColor2;
164
+ outline: none;
165
+
166
+ &.is-focused {
167
+ border-color: @newGreyColor2;
168
+ box-shadow: 0px 0px 3px 0px transparent;
169
+ }
170
+ }
171
+ }