bkui-vue 0.0.1-beta.1 → 0.0.1-beta.101

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 (605) hide show
  1. package/LICENSE.txt +22 -0
  2. package/README.md +68 -1
  3. package/dist/index.cjs.js +57 -0
  4. package/dist/index.esm.js +26747 -0
  5. package/dist/index.umd.js +57 -0
  6. package/dist/style.css +1 -469
  7. package/lib/affix/affix.css +3 -0
  8. package/lib/affix/affix.d.ts +47 -0
  9. package/lib/affix/affix.less +5 -0
  10. package/lib/affix/affix.variable.css +102 -0
  11. package/lib/affix/index.d.ts +143 -0
  12. package/lib/affix/index.js +1 -0
  13. package/lib/alert/alert.css +77 -0
  14. package/lib/alert/alert.d.ts +62 -0
  15. package/lib/alert/alert.less +114 -0
  16. package/lib/alert/alert.variable.css +176 -0
  17. package/lib/alert/index.d.ts +180 -0
  18. package/lib/alert/index.js +1 -0
  19. package/lib/animate-number/animate-number.d.ts +27 -0
  20. package/lib/animate-number/index.d.ts +97 -0
  21. package/lib/animate-number/index.js +1 -0
  22. package/lib/backtop/backtop.css +42 -0
  23. package/lib/backtop/backtop.d.ts +60 -0
  24. package/lib/backtop/backtop.less +18 -0
  25. package/lib/backtop/backtop.variable.css +141 -0
  26. package/lib/backtop/index.d.ts +166 -0
  27. package/lib/backtop/index.js +1 -0
  28. package/lib/badge/badge.css +121 -0
  29. package/lib/badge/badge.d.ts +112 -0
  30. package/lib/badge/badge.less +136 -0
  31. package/lib/badge/badge.variable.css +220 -0
  32. package/lib/badge/index.d.ts +267 -0
  33. package/lib/badge/index.js +1 -0
  34. package/lib/breadcrumb/breadcrumb-item.d.ts +36 -0
  35. package/lib/breadcrumb/breadcrumb.css +76 -0
  36. package/lib/breadcrumb/breadcrumb.d.ts +54 -0
  37. package/lib/breadcrumb/breadcrumb.less +65 -0
  38. package/lib/breadcrumb/breadcrumb.variable.css +175 -0
  39. package/lib/breadcrumb/index.d.ts +194 -0
  40. package/lib/breadcrumb/index.js +1 -0
  41. package/lib/breadcrumb/props.d.ts +4 -0
  42. package/lib/button/button-group.d.ts +6 -0
  43. package/lib/button/button.css +270 -21
  44. package/lib/button/button.d.ts +150 -0
  45. package/lib/button/button.less +195 -30
  46. package/lib/button/button.variable.css +381 -0
  47. package/lib/button/index.d.ts +237 -0
  48. package/lib/button/index.js +1 -206
  49. package/lib/card/card.css +115 -0
  50. package/lib/card/card.d.ts +110 -0
  51. package/lib/card/card.less +92 -0
  52. package/lib/card/card.variable.css +214 -0
  53. package/lib/card/index.d.ts +283 -0
  54. package/lib/card/index.js +1 -0
  55. package/lib/cascader/cascader-panel.d.ts +48 -0
  56. package/lib/cascader/cascader.css +130 -0
  57. package/lib/cascader/cascader.d.ts +271 -0
  58. package/lib/cascader/cascader.less +146 -0
  59. package/lib/cascader/cascader.variable.css +229 -0
  60. package/lib/cascader/index.d.ts +721 -0
  61. package/lib/cascader/index.js +1 -0
  62. package/lib/cascader/interface.d.ts +44 -0
  63. package/lib/cascader/node.d.ts +24 -0
  64. package/lib/cascader/store.d.ts +15 -0
  65. package/lib/checkbox/checkbox-group.d.ts +48 -0
  66. package/lib/checkbox/checkbox.css +67 -125
  67. package/lib/checkbox/checkbox.d.ts +108 -0
  68. package/lib/checkbox/checkbox.less +84 -6
  69. package/lib/checkbox/checkbox.variable.css +176 -0
  70. package/lib/checkbox/common.d.ts +13 -0
  71. package/lib/checkbox/index.d.ts +253 -0
  72. package/lib/checkbox/index.js +1 -64
  73. package/lib/checkbox/type.d.ts +15 -0
  74. package/lib/code-diff/code-diff.css +186 -0
  75. package/lib/code-diff/code-diff.d.ts +80 -0
  76. package/lib/code-diff/code-diff.less +238 -0
  77. package/lib/code-diff/code-diff.variable.css +285 -0
  78. package/lib/code-diff/index.d.ts +154 -0
  79. package/lib/code-diff/index.js +1 -0
  80. package/lib/collapse/collapse.css +46 -0
  81. package/lib/collapse/collapse.d.ts +103 -0
  82. package/lib/collapse/collapse.less +59 -0
  83. package/lib/collapse/collapse.variable.css +145 -0
  84. package/lib/collapse/index.d.ts +182 -0
  85. package/lib/collapse/index.js +1 -0
  86. package/lib/collapse/utils.d.ts +11 -0
  87. package/lib/components.d.ts +50 -0
  88. package/lib/components.js +1 -0
  89. package/lib/container/col.d.ts +51 -0
  90. package/lib/container/container.css +48 -0
  91. package/lib/container/container.d.ts +83 -0
  92. package/lib/container/container.less +20 -0
  93. package/lib/container/container.variable.css +147 -0
  94. package/lib/container/index.d.ts +223 -0
  95. package/lib/container/index.js +1 -0
  96. package/lib/container/row.d.ts +4 -0
  97. package/lib/date-picker/date-picker.css +408 -0
  98. package/lib/date-picker/date-picker.d.ts +312 -0
  99. package/lib/date-picker/date-picker.less +527 -0
  100. package/lib/date-picker/date-picker.variable.css +507 -0
  101. package/lib/date-picker/fecha.d.ts +6 -0
  102. package/lib/date-picker/index.d.ts +753 -0
  103. package/lib/date-picker/index.js +1 -0
  104. package/lib/date-picker/interface.d.ts +22 -0
  105. package/lib/date-picker/props.d.ts +118 -0
  106. package/lib/date-picker/utils.d.ts +97 -0
  107. package/lib/dialog/dialog.css +120 -0
  108. package/lib/dialog/dialog.d.ts +336 -0
  109. package/lib/dialog/dialog.less +100 -0
  110. package/lib/dialog/dialog.variable.css +120 -0
  111. package/lib/dialog/index.d.ts +772 -0
  112. package/lib/dialog/index.js +1 -0
  113. package/lib/directives/clickoutside.d.ts +3 -0
  114. package/lib/directives/index.d.ts +3 -0
  115. package/lib/directives/index.js +2 -0
  116. package/lib/directives/index.js.LICENSE.txt +14 -0
  117. package/lib/directives/mousewheel.d.ts +3 -0
  118. package/lib/directives/tooltips.d.ts +17 -0
  119. package/lib/dist.index.js +1 -0
  120. package/lib/divider/divider.css +38 -0
  121. package/lib/divider/divider.d.ts +48 -0
  122. package/lib/divider/divider.less +53 -0
  123. package/lib/divider/divider.variable.css +137 -0
  124. package/lib/divider/index.d.ts +142 -0
  125. package/lib/divider/index.js +1 -0
  126. package/lib/divider/props.d.ts +21 -0
  127. package/lib/dropdown/dropdown-item.d.ts +19 -0
  128. package/lib/dropdown/dropdown-menu.d.ts +16 -0
  129. package/lib/dropdown/dropdown.css +47 -0
  130. package/lib/dropdown/dropdown.d.ts +63 -0
  131. package/lib/dropdown/dropdown.less +59 -0
  132. package/lib/dropdown/dropdown.variable.css +146 -0
  133. package/lib/dropdown/index.d.ts +200 -0
  134. package/lib/dropdown/index.js +1 -0
  135. package/lib/exception/exception.css +32 -0
  136. package/lib/exception/exception.d.ts +26 -0
  137. package/lib/exception/exception.less +39 -0
  138. package/lib/exception/exception.variable.css +131 -0
  139. package/lib/exception/index.d.ts +96 -0
  140. package/lib/exception/index.js +1 -0
  141. package/lib/fixed-navbar/fixed-navbar.css +42 -0
  142. package/lib/fixed-navbar/fixed-navbar.d.ts +48 -0
  143. package/lib/fixed-navbar/fixed-navbar.less +53 -0
  144. package/lib/fixed-navbar/fixed-navbar.variable.css +141 -0
  145. package/lib/fixed-navbar/index.d.ts +147 -0
  146. package/lib/fixed-navbar/index.js +1 -0
  147. package/lib/form/compose-form-item.d.ts +16 -0
  148. package/lib/form/form-item.d.ts +155 -0
  149. package/lib/form/form.css +125 -0
  150. package/lib/form/form.d.ts +81 -0
  151. package/lib/form/form.less +152 -0
  152. package/lib/form/form.variable.css +224 -0
  153. package/lib/form/index.d.ts +303 -0
  154. package/lib/form/index.js +1 -0
  155. package/lib/form/type.d.ts +23 -0
  156. package/lib/form/validator.d.ts +9 -0
  157. package/lib/icon/angle-double-down-line.d.ts +4 -0
  158. package/lib/icon/angle-double-down-line.js +1 -0
  159. package/lib/icon/angle-double-left-line.d.ts +4 -0
  160. package/lib/icon/angle-double-left-line.js +1 -0
  161. package/lib/icon/angle-double-left.d.ts +4 -0
  162. package/lib/icon/angle-double-left.js +1 -0
  163. package/lib/icon/angle-double-right-line.d.ts +4 -0
  164. package/lib/icon/angle-double-right-line.js +1 -0
  165. package/lib/icon/angle-double-right.d.ts +4 -0
  166. package/lib/icon/angle-double-right.js +1 -0
  167. package/lib/icon/angle-double-up-line.d.ts +4 -0
  168. package/lib/icon/angle-double-up-line.js +1 -0
  169. package/lib/icon/angle-down-fill.d.ts +4 -0
  170. package/lib/icon/angle-down-fill.js +1 -0
  171. package/lib/icon/angle-down-line.d.ts +4 -0
  172. package/lib/icon/angle-down-line.js +1 -0
  173. package/lib/icon/angle-down.d.ts +4 -0
  174. package/lib/icon/angle-down.js +1 -0
  175. package/lib/icon/angle-left.d.ts +4 -0
  176. package/lib/icon/angle-left.js +1 -0
  177. package/lib/icon/angle-right.d.ts +4 -0
  178. package/lib/icon/angle-right.js +1 -0
  179. package/lib/icon/angle-up-fill.d.ts +4 -0
  180. package/lib/icon/angle-up-fill.js +1 -0
  181. package/lib/icon/angle-up.d.ts +4 -0
  182. package/lib/icon/angle-up.js +1 -0
  183. package/lib/icon/archive-fill.d.ts +4 -0
  184. package/lib/icon/archive-fill.js +1 -0
  185. package/lib/icon/arrows-left.d.ts +4 -0
  186. package/lib/icon/arrows-left.js +1 -0
  187. package/lib/icon/arrows-right.d.ts +4 -0
  188. package/lib/icon/arrows-right.js +1 -0
  189. package/lib/icon/audio-fill.d.ts +4 -0
  190. package/lib/icon/audio-fill.js +1 -0
  191. package/lib/icon/bk.d.ts +4 -0
  192. package/lib/icon/bk.js +1 -0
  193. package/lib/icon/circle.d.ts +4 -0
  194. package/lib/icon/circle.js +1 -0
  195. package/lib/icon/close-line.d.ts +4 -0
  196. package/lib/icon/close-line.js +1 -0
  197. package/lib/icon/close.d.ts +4 -0
  198. package/lib/icon/close.js +1 -0
  199. package/lib/icon/code.d.ts +4 -0
  200. package/lib/icon/code.js +1 -0
  201. package/lib/icon/cog-shape.d.ts +4 -0
  202. package/lib/icon/cog-shape.js +1 -0
  203. package/lib/icon/collapse-left.d.ts +4 -0
  204. package/lib/icon/collapse-left.js +1 -0
  205. package/lib/icon/copy.d.ts +4 -0
  206. package/lib/icon/copy.js +1 -0
  207. package/lib/icon/data-shape.d.ts +4 -0
  208. package/lib/icon/data-shape.js +1 -0
  209. package/lib/icon/del.d.ts +4 -0
  210. package/lib/icon/del.js +1 -0
  211. package/lib/icon/doc-fill.d.ts +4 -0
  212. package/lib/icon/doc-fill.js +1 -0
  213. package/lib/icon/done.d.ts +4 -0
  214. package/lib/icon/done.js +1 -0
  215. package/lib/icon/down-shape.d.ts +4 -0
  216. package/lib/icon/down-shape.js +1 -0
  217. package/lib/icon/down-small.d.ts +4 -0
  218. package/lib/icon/down-small.js +1 -0
  219. package/lib/icon/edit-line.d.ts +4 -0
  220. package/lib/icon/edit-line.js +1 -0
  221. package/lib/icon/ellipsis.d.ts +4 -0
  222. package/lib/icon/ellipsis.js +1 -0
  223. package/lib/icon/error.d.ts +4 -0
  224. package/lib/icon/error.js +1 -0
  225. package/lib/icon/excel-fill.d.ts +4 -0
  226. package/lib/icon/excel-fill.js +1 -0
  227. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  228. package/lib/icon/exclamation-circle-shape.js +1 -0
  229. package/lib/icon/eye.d.ts +4 -0
  230. package/lib/icon/eye.js +1 -0
  231. package/lib/icon/folder-open.d.ts +4 -0
  232. package/lib/icon/folder-open.js +1 -0
  233. package/lib/icon/folder-shape-open.d.ts +4 -0
  234. package/lib/icon/folder-shape-open.js +1 -0
  235. package/lib/icon/folder-shape.d.ts +4 -0
  236. package/lib/icon/folder-shape.js +1 -0
  237. package/lib/icon/folder.d.ts +4 -0
  238. package/lib/icon/folder.js +1 -0
  239. package/lib/icon/funnel.d.ts +4 -0
  240. package/lib/icon/help-document-fill.d.ts +4 -0
  241. package/lib/icon/help-document-fill.js +1 -0
  242. package/lib/icon/help-fill.d.ts +4 -0
  243. package/lib/icon/help-fill.js +1 -0
  244. package/lib/icon/help.d.ts +4 -0
  245. package/lib/icon/help.js +1 -0
  246. package/lib/icon/icon.d.ts +12 -0
  247. package/lib/icon/image-fill.d.ts +4 -0
  248. package/lib/icon/image-fill.js +1 -0
  249. package/lib/icon/index.d.ts +69 -0
  250. package/lib/icon/index.js +1 -0
  251. package/lib/icon/info-line.d.ts +4 -0
  252. package/lib/icon/info-line.js +1 -0
  253. package/lib/icon/info.d.ts +4 -0
  254. package/lib/icon/info.js +1 -0
  255. package/lib/icon/left-shape.d.ts +4 -0
  256. package/lib/icon/left-shape.js +1 -0
  257. package/lib/icon/pdf-fill.d.ts +4 -0
  258. package/lib/icon/pdf-fill.js +1 -0
  259. package/lib/icon/play-shape.d.ts +4 -0
  260. package/lib/icon/play-shape.js +1 -0
  261. package/lib/icon/plus.d.ts +4 -0
  262. package/lib/icon/plus.js +1 -0
  263. package/lib/icon/ppt-fill.d.ts +4 -0
  264. package/lib/icon/ppt-fill.js +1 -0
  265. package/lib/icon/qq.d.ts +4 -0
  266. package/lib/icon/qq.js +1 -0
  267. package/lib/icon/right-shape.d.ts +4 -0
  268. package/lib/icon/right-shape.js +1 -0
  269. package/lib/icon/search.d.ts +4 -0
  270. package/lib/icon/search.js +1 -0
  271. package/lib/icon/share.d.ts +4 -0
  272. package/lib/icon/share.js +1 -0
  273. package/lib/icon/spinner.d.ts +4 -0
  274. package/lib/icon/spinner.js +1 -0
  275. package/lib/icon/success.d.ts +4 -0
  276. package/lib/icon/success.js +1 -0
  277. package/lib/icon/switcher-loading.d.ts +4 -0
  278. package/lib/icon/switcher-loading.js +1 -0
  279. package/lib/icon/text-file.d.ts +4 -0
  280. package/lib/icon/text-file.js +1 -0
  281. package/lib/icon/text-fill.d.ts +4 -0
  282. package/lib/icon/text-fill.js +1 -0
  283. package/lib/icon/tree-application-shape.d.ts +4 -0
  284. package/lib/icon/tree-application-shape.js +1 -0
  285. package/lib/icon/unvisible.d.ts +4 -0
  286. package/lib/icon/unvisible.js +1 -0
  287. package/lib/icon/up-shape.d.ts +4 -0
  288. package/lib/icon/up-shape.js +1 -0
  289. package/lib/icon/upload.d.ts +4 -0
  290. package/lib/icon/upload.js +1 -0
  291. package/lib/icon/video-fill.d.ts +4 -0
  292. package/lib/icon/video-fill.js +1 -0
  293. package/lib/icon/warn.d.ts +4 -0
  294. package/lib/icon/warn.js +1 -0
  295. package/lib/icon/weixin.d.ts +4 -0
  296. package/lib/icon/weixin.js +1 -0
  297. package/lib/index.d.ts +3 -0
  298. package/lib/index.js +1 -0
  299. package/lib/input/index.d.ts +541 -0
  300. package/lib/input/index.js +1 -60
  301. package/lib/input/input.css +193 -147
  302. package/lib/input/input.d.ts +315 -0
  303. package/lib/input/input.less +193 -39
  304. package/lib/input/input.variable.css +312 -0
  305. package/lib/link/index.d.ts +164 -0
  306. package/lib/link/index.js +1 -0
  307. package/lib/link/link.css +55 -0
  308. package/lib/link/link.d.ts +58 -0
  309. package/lib/link/link.less +74 -0
  310. package/lib/link/link.variable.css +154 -0
  311. package/lib/loading/index.d.ts +241 -0
  312. package/lib/loading/index.js +1 -0
  313. package/lib/loading/loading.css +259 -0
  314. package/lib/loading/loading.d.ts +148 -0
  315. package/lib/loading/loading.less +186 -0
  316. package/lib/loading/loading.variable.css +358 -0
  317. package/lib/menu/index.d.ts +176 -0
  318. package/lib/menu/index.js +1 -0
  319. package/lib/menu/menu-group.d.ts +14 -0
  320. package/lib/menu/menu-item.d.ts +16 -0
  321. package/lib/menu/menu.css +190 -0
  322. package/lib/menu/menu.d.ts +55 -0
  323. package/lib/menu/menu.less +180 -0
  324. package/lib/menu/menu.variable.css +289 -0
  325. package/lib/menu/submenu.css +3 -0
  326. package/lib/menu/submenu.d.ts +22 -0
  327. package/lib/menu/submenu.less +5 -0
  328. package/lib/menu/submenu.variable.css +102 -0
  329. package/lib/menu/utils.d.ts +41 -0
  330. package/lib/message/index.d.ts +2 -0
  331. package/lib/message/index.js +1 -0
  332. package/lib/message/message.css +62 -0
  333. package/lib/message/message.less +72 -0
  334. package/lib/message/message.variable.css +161 -0
  335. package/lib/message/messageConstructor.d.ts +106 -0
  336. package/lib/modal/index.d.ts +605 -0
  337. package/lib/modal/index.js +1 -0
  338. package/lib/modal/modal.css +40 -0
  339. package/lib/modal/modal.d.ts +218 -0
  340. package/lib/modal/modal.less +50 -0
  341. package/lib/modal/modal.variable.css +40 -0
  342. package/lib/modal/props.mixin.d.ts +94 -0
  343. package/lib/navigation/index.d.ts +311 -0
  344. package/lib/navigation/index.js +1 -0
  345. package/lib/navigation/navigation-title.d.ts +25 -0
  346. package/lib/navigation/navigation.css +184 -0
  347. package/lib/navigation/navigation.d.ts +120 -0
  348. package/lib/navigation/navigation.less +210 -0
  349. package/lib/navigation/navigation.variable.css +283 -0
  350. package/lib/notify/index.d.ts +2 -0
  351. package/lib/notify/index.js +1 -0
  352. package/lib/notify/notify.css +65 -0
  353. package/lib/notify/notify.less +76 -0
  354. package/lib/notify/notify.variable.css +164 -0
  355. package/lib/notify/notifyConstructor.d.ts +135 -0
  356. package/lib/pagination/index.d.ts +395 -0
  357. package/lib/pagination/index.js +1 -0
  358. package/lib/pagination/pagination.css +179 -0
  359. package/lib/pagination/pagination.d.ts +220 -0
  360. package/lib/pagination/pagination.less +201 -0
  361. package/lib/pagination/pagination.variable.css +278 -0
  362. package/lib/pagination/type.d.ts +6 -0
  363. package/lib/pagination/use-limit.d.ts +8 -0
  364. package/lib/pagination/use-list.d.ts +8 -0
  365. package/lib/pagination/use-small-list.d.ts +5 -0
  366. package/lib/pagination/use-total.d.ts +5 -0
  367. package/lib/popover/index.d.ts +387 -0
  368. package/lib/popover/index.js +1 -0
  369. package/lib/popover/popover.css +68 -0
  370. package/lib/popover/popover.d.ts +165 -0
  371. package/lib/popover/popover.less +84 -0
  372. package/lib/popover/popover.variable.css +167 -0
  373. package/lib/popover/props.d.ts +104 -0
  374. package/lib/popover2/arrow.d.ts +2 -0
  375. package/lib/popover2/const.d.ts +10 -0
  376. package/lib/popover2/content.d.ts +24 -0
  377. package/lib/popover2/index.d.ts +478 -0
  378. package/lib/popover2/index.js +1 -0
  379. package/lib/popover2/popover2.css +25 -0
  380. package/lib/popover2/popover2.d.ts +200 -0
  381. package/lib/popover2/popover2.less +35 -0
  382. package/lib/popover2/popover2.variable.css +124 -0
  383. package/lib/popover2/props.d.ts +100 -0
  384. package/lib/popover2/reference.d.ts +2 -0
  385. package/lib/popover2/use-floating.d.ts +15 -0
  386. package/lib/popover2/use-popper-id.d.ts +5 -0
  387. package/lib/preset.d.ts +7 -0
  388. package/lib/preset.js +1 -0
  389. package/lib/process/index.d.ts +205 -0
  390. package/lib/process/index.js +1 -0
  391. package/lib/process/process.css +138 -0
  392. package/lib/process/process.d.ts +131 -0
  393. package/lib/process/process.less +178 -0
  394. package/lib/process/process.variable.css +237 -0
  395. package/lib/progress/circle.d.ts +6 -0
  396. package/lib/progress/index.d.ts +398 -0
  397. package/lib/progress/index.js +1 -0
  398. package/lib/progress/line.d.ts +6 -0
  399. package/lib/progress/progress.css +102 -0
  400. package/lib/progress/progress.d.ts +171 -0
  401. package/lib/progress/progress.less +90 -0
  402. package/lib/progress/progress.variable.css +201 -0
  403. package/lib/radio/common.d.ts +13 -0
  404. package/lib/radio/index.d.ts +277 -0
  405. package/lib/radio/index.js +1 -61
  406. package/lib/radio/radio-button.d.ts +91 -0
  407. package/lib/radio/radio-group.d.ts +41 -0
  408. package/lib/radio/radio.css +127 -124
  409. package/lib/radio/radio.d.ts +87 -0
  410. package/lib/radio/radio.less +173 -20
  411. package/lib/radio/radio.variable.css +237 -0
  412. package/lib/radio/type.d.ts +14 -0
  413. package/lib/rate/index.d.ts +113 -0
  414. package/lib/rate/index.js +1 -0
  415. package/lib/rate/rate.css +10 -0
  416. package/lib/rate/rate.d.ts +32 -0
  417. package/lib/rate/rate.less +11 -0
  418. package/lib/rate/rate.variable.css +10 -0
  419. package/lib/rate/star.css +24 -0
  420. package/lib/rate/star.d.ts +74 -0
  421. package/lib/rate/star.less +29 -0
  422. package/lib/rate/star.variable.css +24 -0
  423. package/lib/resize-layout/index.d.ts +336 -0
  424. package/lib/resize-layout/index.js +1 -0
  425. package/lib/resize-layout/resize-layout.css +189 -0
  426. package/lib/resize-layout/resize-layout.d.ts +127 -0
  427. package/lib/resize-layout/resize-layout.less +233 -0
  428. package/lib/resize-layout/resize-layout.variable.css +288 -0
  429. package/lib/select/common.d.ts +33 -0
  430. package/lib/select/index.d.ts +1751 -0
  431. package/lib/select/index.js +1 -0
  432. package/lib/select/option.d.ts +27 -0
  433. package/lib/select/optionGroup.d.ts +54 -0
  434. package/lib/select/select.css +350 -0
  435. package/lib/select/select.d.ts +542 -0
  436. package/lib/select/select.less +327 -0
  437. package/lib/select/select.variable.css +449 -0
  438. package/lib/select/selectTagInput.d.ts +71 -0
  439. package/lib/select/type.d.ts +35 -0
  440. package/lib/shared/helper.d.ts +92 -0
  441. package/lib/shared/index.d.ts +73 -0
  442. package/lib/shared/index.js +1 -13
  443. package/lib/shared/mask-manager.d.ts +77 -0
  444. package/lib/shared/pop-manager.d.ts +27 -0
  445. package/lib/shared/popover.d.ts +131 -0
  446. package/lib/shared/scrollbar-width.d.ts +1 -0
  447. package/lib/shared/token.d.ts +4 -0
  448. package/lib/shared/utils.d.ts +6 -0
  449. package/lib/shared/vue-types.d.ts +119 -0
  450. package/lib/shared/z-index-manager.d.ts +93 -0
  451. package/lib/sideslider/index.d.ts +533 -0
  452. package/lib/sideslider/index.js +1 -0
  453. package/lib/sideslider/sideslider.css +114 -0
  454. package/lib/sideslider/sideslider.d.ts +229 -0
  455. package/lib/sideslider/sideslider.less +145 -0
  456. package/lib/sideslider/sideslider.variable.css +213 -0
  457. package/lib/slider/index.d.ts +440 -0
  458. package/lib/slider/index.js +1 -0
  459. package/lib/slider/slider-button.d.ts +80 -0
  460. package/lib/slider/slider.css +149 -0
  461. package/lib/slider/slider.d.ts +201 -0
  462. package/lib/slider/slider.less +179 -0
  463. package/lib/slider/slider.variable.css +248 -0
  464. package/lib/steps/index.d.ts +250 -0
  465. package/lib/steps/index.js +1 -0
  466. package/lib/steps/steps.css +299 -0
  467. package/lib/steps/steps.d.ts +161 -0
  468. package/lib/steps/steps.less +344 -0
  469. package/lib/steps/steps.variable.css +398 -0
  470. package/lib/styles/index.d.ts +52 -0
  471. package/lib/styles/mixins/animate.css +21 -0
  472. package/lib/styles/mixins/animate.less +27 -0
  473. package/lib/styles/mixins/animate.variable.css +21 -0
  474. package/lib/styles/mixins/clearfix.css +8 -0
  475. package/lib/styles/mixins/clearfix.less +10 -0
  476. package/lib/styles/mixins/clearfix.variable.css +8 -0
  477. package/lib/styles/mixins/ellipsis.less +8 -0
  478. package/lib/styles/mixins/mixins.css +29 -0
  479. package/lib/styles/mixins/mixins.less +3 -0
  480. package/lib/styles/mixins/mixins.variable.css +29 -0
  481. package/lib/styles/mixins/popper.css +43 -0
  482. package/lib/styles/mixins/popper.less +52 -0
  483. package/lib/styles/mixins/popper.variable.css +43 -0
  484. package/lib/styles/mixins/size.less +10 -1
  485. package/lib/styles/reset.css +273 -0
  486. package/lib/styles/reset.less +313 -0
  487. package/lib/styles/reset.variable.css +273 -0
  488. package/lib/styles/themes/themes.less +103 -284
  489. package/lib/swiper/index.d.ts +181 -0
  490. package/lib/swiper/index.js +1 -0
  491. package/lib/swiper/swiper.css +91 -0
  492. package/lib/swiper/swiper.d.ts +65 -0
  493. package/lib/swiper/swiper.less +107 -0
  494. package/lib/swiper/swiper.variable.css +91 -0
  495. package/lib/switcher/index.d.ts +286 -0
  496. package/lib/switcher/index.js +1 -0
  497. package/lib/switcher/switcher.css +280 -0
  498. package/lib/switcher/switcher.d.ts +113 -0
  499. package/lib/switcher/switcher.less +360 -0
  500. package/lib/switcher/switcher.variable.css +379 -0
  501. package/lib/tab/index.d.ts +440 -0
  502. package/lib/tab/index.js +1 -0
  503. package/lib/tab/props.d.ts +194 -0
  504. package/lib/tab/tab-nav.d.ts +169 -0
  505. package/lib/tab/tab-panel.d.ts +73 -0
  506. package/lib/tab/tab.css +167 -0
  507. package/lib/tab/tab.d.ts +139 -0
  508. package/lib/tab/tab.less +228 -0
  509. package/lib/tab/tab.variable.css +266 -0
  510. package/lib/table/const.d.ts +49 -0
  511. package/lib/table/index.d.ts +547 -0
  512. package/lib/table/index.js +1 -0
  513. package/lib/table/plugins/head-filter.css +68 -0
  514. package/lib/table/plugins/head-filter.less +83 -0
  515. package/lib/table/plugins/head-filter.variable.css +167 -0
  516. package/lib/table/plugins/head-sort.css +22 -0
  517. package/lib/table/plugins/head-sort.less +28 -0
  518. package/lib/table/plugins/head-sort.variable.css +121 -0
  519. package/lib/table/plugins/settings.css +110 -0
  520. package/lib/table/plugins/settings.less +136 -0
  521. package/lib/table/plugins/settings.variable.css +209 -0
  522. package/lib/table/props.d.ts +243 -0
  523. package/lib/table/render.d.ts +118 -0
  524. package/lib/table/table.css +441 -0
  525. package/lib/table/table.d.ts +229 -0
  526. package/lib/table/table.less +292 -0
  527. package/lib/table/table.variable.css +540 -0
  528. package/lib/table/use-common.d.ts +54 -0
  529. package/lib/table/utils.d.ts +104 -0
  530. package/lib/tag/index.d.ts +229 -0
  531. package/lib/tag/index.js +1 -0
  532. package/lib/tag/tag.css +97 -0
  533. package/lib/tag/tag.d.ts +84 -0
  534. package/lib/tag/tag.less +113 -0
  535. package/lib/tag/tag.variable.css +196 -0
  536. package/lib/tag-input/common.d.ts +24 -0
  537. package/lib/tag-input/index.d.ts +894 -0
  538. package/lib/tag-input/index.js +1 -0
  539. package/lib/tag-input/list-tag-render.d.ts +47 -0
  540. package/lib/tag-input/tag-input.css +209 -0
  541. package/lib/tag-input/tag-input.d.ts +374 -0
  542. package/lib/tag-input/tag-input.less +251 -0
  543. package/lib/tag-input/tag-input.variable.css +308 -0
  544. package/lib/tag-input/tag-props.d.ts +131 -0
  545. package/lib/tag-input/tag-render.d.ts +38 -0
  546. package/lib/timeline/index.d.ts +129 -0
  547. package/lib/timeline/index.js +1 -0
  548. package/lib/timeline/timeline.css +235 -0
  549. package/lib/timeline/timeline.d.ts +81 -0
  550. package/lib/timeline/timeline.less +240 -0
  551. package/lib/timeline/timeline.variable.css +334 -0
  552. package/lib/transfer/const.d.ts +5 -0
  553. package/lib/transfer/index.d.ts +365 -0
  554. package/lib/transfer/index.js +1 -0
  555. package/lib/transfer/props.d.ts +54 -0
  556. package/lib/transfer/transfer.css +139 -0
  557. package/lib/transfer/transfer.d.ts +160 -0
  558. package/lib/transfer/transfer.less +144 -0
  559. package/lib/transfer/transfer.variable.css +238 -0
  560. package/lib/tree/constant.d.ts +43 -0
  561. package/lib/tree/index.d.ts +472 -0
  562. package/lib/tree/index.js +1 -0
  563. package/lib/tree/props.d.ts +168 -0
  564. package/lib/tree/tree.css +53 -0
  565. package/lib/tree/tree.d.ts +204 -0
  566. package/lib/tree/tree.less +66 -0
  567. package/lib/tree/tree.variable.css +152 -0
  568. package/lib/tree/use-empty.d.ts +6 -0
  569. package/lib/tree/use-node-action.d.ts +11 -0
  570. package/lib/tree/use-node-async.d.ts +5 -0
  571. package/lib/tree/use-node-attribute.d.ts +31 -0
  572. package/lib/tree/use-node-drag.d.ts +3 -0
  573. package/lib/tree/use-search.d.ts +11 -0
  574. package/lib/tree/use-tree-init.d.ts +15 -0
  575. package/lib/tree/util.d.ts +66 -0
  576. package/lib/upload/index.d.ts +2 -0
  577. package/lib/upload/index.js +1 -0
  578. package/lib/upload/props.d.ts +113 -0
  579. package/lib/upload/upload-list.d.ts +46 -0
  580. package/lib/upload/upload-trigger.d.ts +54 -0
  581. package/lib/upload/upload.css +374 -0
  582. package/lib/upload/upload.d.ts +252 -0
  583. package/lib/upload/upload.less +455 -0
  584. package/lib/upload/upload.type.d.ts +78 -0
  585. package/lib/upload/upload.variable.css +473 -0
  586. package/lib/upload/use-ajax-upload.d.ts +3 -0
  587. package/lib/upload/use-file-handler.d.ts +44 -0
  588. package/lib/use-message.d.ts +2 -0
  589. package/lib/virtual-render/index.d.ts +579 -0
  590. package/lib/virtual-render/index.js +1 -0
  591. package/lib/virtual-render/props.d.ts +167 -0
  592. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  593. package/lib/virtual-render/v-virtual-render.d.ts +6 -0
  594. package/lib/virtual-render/virtual-render.css +33 -0
  595. package/lib/virtual-render/virtual-render.d.ts +255 -0
  596. package/lib/virtual-render/virtual-render.less +43 -0
  597. package/lib/virtual-render/virtual-render.variable.css +33 -0
  598. package/package.json +128 -54
  599. package/dist/bkui-vue.cjs.js +0 -299
  600. package/dist/bkui-vue.esm.js +0 -296
  601. package/dist/bkui-vue.umd.js +0 -302
  602. package/lib/styles/mixins/size.css +0 -0
  603. package/lib/styles/themes/themes.css +0 -119
  604. package/lib/styles/themes/variables.css +0 -27
  605. package/lib/styles/themes/variables.less +0 -36
@@ -1,296 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __hasOwnProp = Object.prototype.hasOwnProperty;
3
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
4
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {enumerable: true, configurable: true, writable: true, value}) : obj[key] = value;
6
- var __assign = (a, b) => {
7
- for (var prop in b || (b = {}))
8
- if (__hasOwnProp.call(b, prop))
9
- __defNormalProp(a, prop, b[prop]);
10
- if (__getOwnPropSymbols)
11
- for (var prop of __getOwnPropSymbols(b)) {
12
- if (__propIsEnum.call(b, prop))
13
- __defNormalProp(a, prop, b[prop]);
14
- }
15
- return a;
16
- };
17
- import {defineComponent, createVNode, mergeProps, Fragment, resolveComponent, createTextVNode} from "vue";
18
- var button = ".bk-button {\n font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n font-weight: 700;\n border: 0;\n border-radius: 3em;\n cursor: pointer;\n display: inline-block;\n line-height: 1;\n}\n.bk-button .test {\n color: red;\n}\n.bk-button-primary {\n color: white;\n background-color: #1ea7fd;\n}\n.bk-button-secondary {\n color: #333;\n background-color: transparent;\n box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px inset;\n}\n.bk-button-small {\n font-size: 12px;\n padding: 10px 16px;\n}\n.bk-button-normal {\n font-size: 14px;\n padding: 11px 20px;\n}\n.bk-button-large {\n font-size: 16px;\n padding: 12px 24px;\n}\n";
19
- var input = ":root {\n --primary-color: #3a84ff;\n --success-color: #2dcb56;\n --warning-color: #ff9c01;\n --danger-color: #ea3636;\n --default-color: #63656e;\n --font-size-base: 12px;\n --font-size-medium: 14px;\n --font-size-large: 16px;\n --line-height-base: 16px;\n --line-height-medium: 16px;\n --line-height-large: 18px;\n --component-size-small: 26px;\n --component-size-base: 32px;\n --component-size-large: 38px;\n --border-color-base: #dcdee5;\n --border-color-disable: #dcdee5;\n --border-width-base: 1px;\n --border-style-base: solid;\n --border-radius-base: 2px;\n --input-disabled-bg: #fafbfd;\n --input-disabled-border: #dcdee5;\n --input-height-base: var(--component-size-base);\n --input-color: var(--default-color);\n --input-bg: white;\n --input-border-color: var(--border-color-base);\n}\n/* \u5B58\u653E\u5E38\u7528\u53D8\u91CF */\n/********************** \u5B57\u4F53 **********************/\n/********************** \u4E3B\u9898\u8272 **********************/\n/* \u91CD\u70B9\u8868\u793A\u3001\u5F3A\u8C03\u3001\u94FE\u63A5\u4EE5\u53CA\u5E26\u6709\u660E\u786E\u6307\u793A\u6027 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/********************** \u8F85\u52A9\u8272 **********************/\n/* \u9000\u51FA\u3001\u5220\u9664\u3001\u9519\u8BEF\u3001\u4E25\u91CD\u8B66\u544A\u7B49\u5426\u5B9A\u7C7B\u6807\u8BC6 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/* \u8B66\u793A\u706F\u5F15\u8D77\u6CE8\u610F\u7C7B\u6807\u8BC6 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/* \u6210\u529F\u3001\u5B8C\u6210\u3001\u8FDB\u884C\u7B49\u80AF\u5B9A\u7C7B\u6807\u8BC6 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/********************** \u4E2D\u6027\u8272 **********************/\n/* \u91CD\u8981\u7EA7\u6587\u5B57\u4FE1\u606F\u3001\u5185\u5BB9\u6807\u9898\u4FE1\u606F */\n/* \u6B21\u7EA7\u6807\u9898\u3001\u5185\u5BB9\u6587\u5B57 \u4E3B\u8981\u6587\u5B57\u4F7F\u7528\u989C\u8272 */\n/* \u4E09\u7EA7\u6587\u5B57\u6807\u9898\u3001\u5185\u5BB9\u6587\u5B57 */\n/* \u8FB9\u6846\u5185\u8BF4\u660E\u6587\u5B57 */\n/* \u6309\u94AE\u3001\u8868\u5355\u8FB9\u6846\u989C\u8272\u3001\u7981\u7528\u65F6\u6587\u672C\u989C\u8272 */\n/* \u8868\u683C\u7EBF\u989C\u8272\u533A\u522B\u8868\u5355\uFF0C\u5927\u63CF\u8FB9\u989C\u8272\u3001\u7EBF\u6027\u8272 */\n/* \u8868\u683C\u5934\u90E8\u80CC\u666F\u8272\u3001\u7981\u7528\u5E95\u8272 */\n/* \u5927\u9762\u79EF\u80CC\u666F\u8272 */\n/********************** \u57FA\u7840\u989C\u8272 **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u57FA\u7840\u989C\u8272-\u9F20\u6807\u79FB\u4E0A **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u57FA\u7840\u989C\u8272-\u6FC0\u6D3B **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u57FA\u7840\u989C\u8272-\u76F8\u5E94\u8C08\u8272 **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u56FE\u6807\u5927\u5C0F **********************/\n/* \u6700\u5C0F\u5C3A\u5BF8\u56FE\u6807 */\n/* \u66F4\u5C0F\u5C3A\u5BF8\u56FE\u6807 */\n/* \u5C0F\u5C3A\u5BF8\u56FE\u6807 */\n/* \u6B63\u5E38\u5C3A\u5BF8\u56FE\u6807 */\n/* \u5927\u5C3A\u5BF8\u56FE\u6807 */\n/* \u6700\u5927\u5C3A\u5BF8\u56FE\u6807 */\n/********************** \u6587\u6848 **********************/\n/* \u5B57\u4F53 */\n/* \u6B63\u5E38\u5C3A\u5BF8 */\n/* \u5C0F\u5C3A\u5BF8 */\n/* \u5927\u5C3A\u5BF8 */\n/* \u4E3B\u8981\u989C\u8272 */\n/* \u6B21\u8981\u989C\u8272 \u7528\u4E8E plaeholder \u7B49 */\n/********************** \u8FB9\u6846 **********************/\n/* \u8FB9\u6846\u8272 */\n/* \u8868\u5355\u8F93\u5165\u6846\u8272 */\n/* \u8868\u5355\u8F93\u5165\u6846\u6FC0\u6D3B\u8272 */\n/********************** \u5176\u5B83 **********************/\n/* \u6EDA\u52A8\u6761\u80CC\u666F\u8272 */\n/********************** \u5C42\u7EA7\u7BA1\u7406 **********************/\n/* \u4E0B\u62C9\u83DC\u5355\u5C42 */\n/* @dropdownMenuZIndex: 50; */\n/* \u4E0B\u62C9\u9009\u6846\u5C42 */\n/* @selectorZIndex: 100; */\n/* \u65E5\u671F\u9009\u6846\u5C42 */\n/* @dateZIndex: 200; */\n/* \u6587\u5B57\u63D0\u793A\u5C42 */\n/* @tooltipZIndex: 500; */\n/* \u786E\u8BA4\u63D0\u793A\u5C42 */\n/* @toolboxZIndex: 700; */\n/* \u52A0\u8F7D\u5C42 */\n/* @loadingZIndex: 1000; */\n/* \u6D88\u606F\u63D0\u793A\u5C42 */\n/* @messageZIndex: 2000; */\n/* \u4FA7\u5F39\u5C42 */\n/* @sideSliderZIndex: 1500; */\n/* \u5BF9\u8BDD\u6846\u5C42 */\n/* @dialogZIndex: 2000; */\n.bk-input {\n display: flex;\n align-items: center;\n font-size: 12px;\n}\n.bk-input-text {\n line-height: normal;\n outline: none;\n resize: none;\n box-sizing: border-box;\n position: relative;\n display: flex;\n align-items: center;\n flex: 1;\n height: 32px;\n padding: 0 10px;\n color: #63656e;\n font-size: 12px;\n line-height: 16px;\n background-color: white;\n background-image: none;\n border: 1px solid #dcdee5;\n border-radius: 2px;\n transition: all 0.3s;\n}\n.bk-input-text:focus {\n border-color: var(--primary-color);\n outline: 0;\n}\n.bk-input-text-disabled {\n background-color: #fafbfd;\n cursor: not-allowed;\n opacity: 1;\n}\n.bk-input-text[disabled] {\n background-color: #fafbfd;\n cursor: not-allowed;\n opacity: 1;\n}\n.bk-input-text-lg {\n font-size: 16px;\n height: 38px;\n}\n.bk-input-text-sm {\n font-size: 12px;\n height: 26px;\n}\n";
20
- var radio = ":root {\n --primary-color: #3a84ff;\n --success-color: #2dcb56;\n --warning-color: #ff9c01;\n --danger-color: #ea3636;\n --default-color: #63656e;\n --font-size-base: 12px;\n --font-size-medium: 14px;\n --font-size-large: 16px;\n --line-height-base: 16px;\n --line-height-medium: 16px;\n --line-height-large: 18px;\n --component-size-small: 26px;\n --component-size-base: 32px;\n --component-size-large: 38px;\n --border-color-base: #dcdee5;\n --border-color-disable: #dcdee5;\n --border-width-base: 1px;\n --border-style-base: solid;\n --border-radius-base: 2px;\n --input-disabled-bg: #fafbfd;\n --input-disabled-border: #dcdee5;\n --input-height-base: var(--component-size-base);\n --input-color: var(--default-color);\n --input-bg: white;\n --input-border-color: var(--border-color-base);\n}\n/* \u5B58\u653E\u5E38\u7528\u53D8\u91CF */\n/********************** \u5B57\u4F53 **********************/\n/********************** \u4E3B\u9898\u8272 **********************/\n/* \u91CD\u70B9\u8868\u793A\u3001\u5F3A\u8C03\u3001\u94FE\u63A5\u4EE5\u53CA\u5E26\u6709\u660E\u786E\u6307\u793A\u6027 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/********************** \u8F85\u52A9\u8272 **********************/\n/* \u9000\u51FA\u3001\u5220\u9664\u3001\u9519\u8BEF\u3001\u4E25\u91CD\u8B66\u544A\u7B49\u5426\u5B9A\u7C7B\u6807\u8BC6 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/* \u8B66\u793A\u706F\u5F15\u8D77\u6CE8\u610F\u7C7B\u6807\u8BC6 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/* \u6210\u529F\u3001\u5B8C\u6210\u3001\u8FDB\u884C\u7B49\u80AF\u5B9A\u7C7B\u6807\u8BC6 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/********************** \u4E2D\u6027\u8272 **********************/\n/* \u91CD\u8981\u7EA7\u6587\u5B57\u4FE1\u606F\u3001\u5185\u5BB9\u6807\u9898\u4FE1\u606F */\n/* \u6B21\u7EA7\u6807\u9898\u3001\u5185\u5BB9\u6587\u5B57 \u4E3B\u8981\u6587\u5B57\u4F7F\u7528\u989C\u8272 */\n/* \u4E09\u7EA7\u6587\u5B57\u6807\u9898\u3001\u5185\u5BB9\u6587\u5B57 */\n/* \u8FB9\u6846\u5185\u8BF4\u660E\u6587\u5B57 */\n/* \u6309\u94AE\u3001\u8868\u5355\u8FB9\u6846\u989C\u8272\u3001\u7981\u7528\u65F6\u6587\u672C\u989C\u8272 */\n/* \u8868\u683C\u7EBF\u989C\u8272\u533A\u522B\u8868\u5355\uFF0C\u5927\u63CF\u8FB9\u989C\u8272\u3001\u7EBF\u6027\u8272 */\n/* \u8868\u683C\u5934\u90E8\u80CC\u666F\u8272\u3001\u7981\u7528\u5E95\u8272 */\n/* \u5927\u9762\u79EF\u80CC\u666F\u8272 */\n/********************** \u57FA\u7840\u989C\u8272 **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u57FA\u7840\u989C\u8272-\u9F20\u6807\u79FB\u4E0A **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u57FA\u7840\u989C\u8272-\u6FC0\u6D3B **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u57FA\u7840\u989C\u8272-\u76F8\u5E94\u8C08\u8272 **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u56FE\u6807\u5927\u5C0F **********************/\n/* \u6700\u5C0F\u5C3A\u5BF8\u56FE\u6807 */\n/* \u66F4\u5C0F\u5C3A\u5BF8\u56FE\u6807 */\n/* \u5C0F\u5C3A\u5BF8\u56FE\u6807 */\n/* \u6B63\u5E38\u5C3A\u5BF8\u56FE\u6807 */\n/* \u5927\u5C3A\u5BF8\u56FE\u6807 */\n/* \u6700\u5927\u5C3A\u5BF8\u56FE\u6807 */\n/********************** \u6587\u6848 **********************/\n/* \u5B57\u4F53 */\n/* \u6B63\u5E38\u5C3A\u5BF8 */\n/* \u5C0F\u5C3A\u5BF8 */\n/* \u5927\u5C3A\u5BF8 */\n/* \u4E3B\u8981\u989C\u8272 */\n/* \u6B21\u8981\u989C\u8272 \u7528\u4E8E plaeholder \u7B49 */\n/********************** \u8FB9\u6846 **********************/\n/* \u8FB9\u6846\u8272 */\n/* \u8868\u5355\u8F93\u5165\u6846\u8272 */\n/* \u8868\u5355\u8F93\u5165\u6846\u6FC0\u6D3B\u8272 */\n/********************** \u5176\u5B83 **********************/\n/* \u6EDA\u52A8\u6761\u80CC\u666F\u8272 */\n/********************** \u5C42\u7EA7\u7BA1\u7406 **********************/\n/* \u4E0B\u62C9\u83DC\u5355\u5C42 */\n/* @dropdownMenuZIndex: 50; */\n/* \u4E0B\u62C9\u9009\u6846\u5C42 */\n/* @selectorZIndex: 100; */\n/* \u65E5\u671F\u9009\u6846\u5C42 */\n/* @dateZIndex: 200; */\n/* \u6587\u5B57\u63D0\u793A\u5C42 */\n/* @tooltipZIndex: 500; */\n/* \u786E\u8BA4\u63D0\u793A\u5C42 */\n/* @toolboxZIndex: 700; */\n/* \u52A0\u8F7D\u5C42 */\n/* @loadingZIndex: 1000; */\n/* \u6D88\u606F\u63D0\u793A\u5C42 */\n/* @messageZIndex: 2000; */\n/* \u4FA7\u5F39\u5C42 */\n/* @sideSliderZIndex: 1500; */\n/* \u5BF9\u8BDD\u6846\u5C42 */\n/* @dialogZIndex: 2000; */\n.bk-radio {\n margin-right: 30px;\n}\n.bk-radio-input {\n position: relative;\n display: inline-block;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n border: 1px solid #979ba5;\n background-color: #fff;\n bottom: -2px;\n}\n.bk-radio-text {\n padding-left: 5px;\n}\n";
21
- var checkbox = ":root {\n --primary-color: #3a84ff;\n --success-color: #2dcb56;\n --warning-color: #ff9c01;\n --danger-color: #ea3636;\n --default-color: #63656e;\n --font-size-base: 12px;\n --font-size-medium: 14px;\n --font-size-large: 16px;\n --line-height-base: 16px;\n --line-height-medium: 16px;\n --line-height-large: 18px;\n --component-size-small: 26px;\n --component-size-base: 32px;\n --component-size-large: 38px;\n --border-color-base: #dcdee5;\n --border-color-disable: #dcdee5;\n --border-width-base: 1px;\n --border-style-base: solid;\n --border-radius-base: 2px;\n --input-disabled-bg: #fafbfd;\n --input-disabled-border: #dcdee5;\n --input-height-base: var(--component-size-base);\n --input-color: var(--default-color);\n --input-bg: white;\n --input-border-color: var(--border-color-base);\n}\n/* \u5B58\u653E\u5E38\u7528\u53D8\u91CF */\n/********************** \u5B57\u4F53 **********************/\n/********************** \u4E3B\u9898\u8272 **********************/\n/* \u91CD\u70B9\u8868\u793A\u3001\u5F3A\u8C03\u3001\u94FE\u63A5\u4EE5\u53CA\u5E26\u6709\u660E\u786E\u6307\u793A\u6027 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/********************** \u8F85\u52A9\u8272 **********************/\n/* \u9000\u51FA\u3001\u5220\u9664\u3001\u9519\u8BEF\u3001\u4E25\u91CD\u8B66\u544A\u7B49\u5426\u5B9A\u7C7B\u6807\u8BC6 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/* \u8B66\u793A\u706F\u5F15\u8D77\u6CE8\u610F\u7C7B\u6807\u8BC6 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/* \u6210\u529F\u3001\u5B8C\u6210\u3001\u8FDB\u884C\u7B49\u80AF\u5B9A\u7C7B\u6807\u8BC6 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/********************** \u4E2D\u6027\u8272 **********************/\n/* \u91CD\u8981\u7EA7\u6587\u5B57\u4FE1\u606F\u3001\u5185\u5BB9\u6807\u9898\u4FE1\u606F */\n/* \u6B21\u7EA7\u6807\u9898\u3001\u5185\u5BB9\u6587\u5B57 \u4E3B\u8981\u6587\u5B57\u4F7F\u7528\u989C\u8272 */\n/* \u4E09\u7EA7\u6587\u5B57\u6807\u9898\u3001\u5185\u5BB9\u6587\u5B57 */\n/* \u8FB9\u6846\u5185\u8BF4\u660E\u6587\u5B57 */\n/* \u6309\u94AE\u3001\u8868\u5355\u8FB9\u6846\u989C\u8272\u3001\u7981\u7528\u65F6\u6587\u672C\u989C\u8272 */\n/* \u8868\u683C\u7EBF\u989C\u8272\u533A\u522B\u8868\u5355\uFF0C\u5927\u63CF\u8FB9\u989C\u8272\u3001\u7EBF\u6027\u8272 */\n/* \u8868\u683C\u5934\u90E8\u80CC\u666F\u8272\u3001\u7981\u7528\u5E95\u8272 */\n/* \u5927\u9762\u79EF\u80CC\u666F\u8272 */\n/********************** \u57FA\u7840\u989C\u8272 **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u57FA\u7840\u989C\u8272-\u9F20\u6807\u79FB\u4E0A **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u57FA\u7840\u989C\u8272-\u6FC0\u6D3B **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u57FA\u7840\u989C\u8272-\u76F8\u5E94\u8C08\u8272 **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u56FE\u6807\u5927\u5C0F **********************/\n/* \u6700\u5C0F\u5C3A\u5BF8\u56FE\u6807 */\n/* \u66F4\u5C0F\u5C3A\u5BF8\u56FE\u6807 */\n/* \u5C0F\u5C3A\u5BF8\u56FE\u6807 */\n/* \u6B63\u5E38\u5C3A\u5BF8\u56FE\u6807 */\n/* \u5927\u5C3A\u5BF8\u56FE\u6807 */\n/* \u6700\u5927\u5C3A\u5BF8\u56FE\u6807 */\n/********************** \u6587\u6848 **********************/\n/* \u5B57\u4F53 */\n/* \u6B63\u5E38\u5C3A\u5BF8 */\n/* \u5C0F\u5C3A\u5BF8 */\n/* \u5927\u5C3A\u5BF8 */\n/* \u4E3B\u8981\u989C\u8272 */\n/* \u6B21\u8981\u989C\u8272 \u7528\u4E8E plaeholder \u7B49 */\n/********************** \u8FB9\u6846 **********************/\n/* \u8FB9\u6846\u8272 */\n/* \u8868\u5355\u8F93\u5165\u6846\u8272 */\n/* \u8868\u5355\u8F93\u5165\u6846\u6FC0\u6D3B\u8272 */\n/********************** \u5176\u5B83 **********************/\n/* \u6EDA\u52A8\u6761\u80CC\u666F\u8272 */\n/********************** \u5C42\u7EA7\u7BA1\u7406 **********************/\n/* \u4E0B\u62C9\u83DC\u5355\u5C42 */\n/* @dropdownMenuZIndex: 50; */\n/* \u4E0B\u62C9\u9009\u6846\u5C42 */\n/* @selectorZIndex: 100; */\n/* \u65E5\u671F\u9009\u6846\u5C42 */\n/* @dateZIndex: 200; */\n/* \u6587\u5B57\u63D0\u793A\u5C42 */\n/* @tooltipZIndex: 500; */\n/* \u786E\u8BA4\u63D0\u793A\u5C42 */\n/* @toolboxZIndex: 700; */\n/* \u52A0\u8F7D\u5C42 */\n/* @loadingZIndex: 1000; */\n/* \u6D88\u606F\u63D0\u793A\u5C42 */\n/* @messageZIndex: 2000; */\n/* \u4FA7\u5F39\u5C42 */\n/* @sideSliderZIndex: 1500; */\n/* \u5BF9\u8BDD\u6846\u5C42 */\n/* @dialogZIndex: 2000; */\n.bk-checkbox {\n margin-right: 30px;\n}\n.bk-checkbox-input {\n position: relative;\n display: inline-block;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n border: 1px solid #979ba5;\n background-color: #fff;\n bottom: -2px;\n}\n.bk-checkbox-text {\n padding-left: 5px;\n}\n";
22
- function classes(dynamicCls, constCls = "") {
23
- return Object.entries(dynamicCls).filter((entry) => entry[1]).map((entry) => entry[0]).join(" ").concat(constCls ? ` ${constCls}` : "");
24
- }
25
- var Button = defineComponent({
26
- name: "BkButton",
27
- props: {
28
- theme: {
29
- type: String,
30
- default: "default",
31
- validator: (value) => {
32
- const themes = ["default", "primary", "warning", "success", "danger"];
33
- if (themes.indexOf(value) < 0) {
34
- console.error(`theme property is not valid: '${value}',\u3010${themes.join(" | ")}\u3011`);
35
- return false;
36
- }
37
- return true;
38
- }
39
- },
40
- hoverTheme: {
41
- type: String,
42
- default: "",
43
- validator: (value) => {
44
- const hoverThemes = ["", "primary", "warning", "success", "danger"];
45
- if (hoverThemes.indexOf(value) < 0) {
46
- console.error(`hoverTheme property is not valid: '${value}', \u3010${hoverThemes.join(" | ")}\u3011`);
47
- return false;
48
- }
49
- return true;
50
- }
51
- },
52
- size: {
53
- type: String,
54
- default: "normal",
55
- validator: (value) => {
56
- const sizes = ["small", "normal", "large"];
57
- if (sizes.indexOf(value) < 0) {
58
- console.error(`size property is not valid: '${value}', \u3010${sizes.join(" | ")}\u3011`);
59
- return false;
60
- }
61
- return true;
62
- }
63
- },
64
- title: {
65
- type: String,
66
- default: ""
67
- },
68
- extCls: {
69
- type: String,
70
- default: ""
71
- },
72
- icon: String,
73
- iconRight: String,
74
- disabled: Boolean,
75
- loading: Boolean,
76
- outline: Boolean,
77
- text: Boolean
78
- },
79
- emits: ["click"],
80
- methods: {
81
- onClick() {
82
- this.$emit("click");
83
- }
84
- },
85
- setup(props, {
86
- slots
87
- }) {
88
- var _a;
89
- const showSlot = (_a = slots.default) != null ? _a : false;
90
- const btnClsPrefix = "bk-button";
91
- const isText = props.text ? `${btnClsPrefix}-text` : btnClsPrefix;
92
- const hoverTheme = props.hoverTheme ? `${btnClsPrefix}-hover bk-${props.hoverTheme}` : "";
93
- const themeCls = `${btnClsPrefix}-${props.theme}`;
94
- const sizeCls = `${btnClsPrefix}-${props.size}`;
95
- const classs = classes({
96
- "is-disabled": props.disabled,
97
- "is-loading": props.loading,
98
- "is-outline": props.outline,
99
- "no-slot": !showSlot
100
- }, `${themeCls} ${isText} ${hoverTheme} ${sizeCls}`);
101
- function isLoadingIcon(icon) {
102
- return icon === "loading";
103
- }
104
- const loadingSpan = createVNode("span", {
105
- class: "loading"
106
- }, null);
107
- const isRightIconLoading = isLoadingIcon(props.iconRight);
108
- const isLeftIconLoading = isLoadingIcon(props.icon);
109
- const bkLoadingCls = `${btnClsPrefix}-loading`;
110
- const iconClsPrefix = "bk-icon";
111
- const btnIconLoadingCls = `${btnClsPrefix}-icon-loading`;
112
- const iconLeftCls = classes({
113
- [btnIconLoadingCls]: isLeftIconLoading
114
- }, `${iconClsPrefix} left-icon icon-${props.icon}`);
115
- const iconRightCls = classes({
116
- [btnIconLoadingCls]: isRightIconLoading
117
- }, `${iconClsPrefix} right-icon icon-${props.iconRight}`);
118
- return {
119
- bkLoadingCls,
120
- btnClsPrefix,
121
- loadingSpan,
122
- classs,
123
- iconLeftCls,
124
- iconRightCls,
125
- isLeftIconLoading,
126
- isRightIconLoading
127
- };
128
- },
129
- render() {
130
- var _a, _b, _c;
131
- return createVNode("button", mergeProps({
132
- title: this.$props.title,
133
- disabled: this.$props.disabled,
134
- class: this.classs
135
- }, this.$attrs), [this.$props.loading ? createVNode("div", {
136
- class: this.bkLoadingCls
137
- }, [[1, 2, 3, 4].map((i) => createVNode("div", {
138
- class: `bounce${i}`
139
- }, null))]) : createVNode("div", {
140
- class: "bk-button-content-wrapper"
141
- }, [this.$props.icon && createVNode("i", {
142
- class: this.iconLeftCls
143
- }, [this.isLeftIconLoading && this.loadingSpan]), createVNode("span", null, [(_c = (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) != null ? _c : "default"]), this.$props.iconRight && createVNode("i", {
144
- class: this.iconRightCls
145
- }, [this.isRightIconLoading && this.loadingSpan])])]);
146
- }
147
- });
148
- Button.install = (Vue) => {
149
- Vue.component(Button.name, Button);
150
- };
151
- var Checkbox = defineComponent({
152
- name: "BkCheckbox",
153
- props: {
154
- disabled: {
155
- type: Boolean,
156
- default: false
157
- },
158
- value: {
159
- type: Boolean,
160
- default: false
161
- }
162
- },
163
- emits: ["update:value"],
164
- setup() {
165
- },
166
- methods: {
167
- handleChange(e) {
168
- const target = e.target;
169
- this.$emit("update:value", target.checked);
170
- }
171
- },
172
- render() {
173
- var _a, _b, _c;
174
- const inputClass = [{
175
- "bk-checkbox-input": true,
176
- "is-checked": this.value
177
- }];
178
- const wrapperProps = {
179
- class: inputClass
180
- };
181
- return createVNode("label", {
182
- class: "bk-checkbox"
183
- }, [createVNode("input", mergeProps({
184
- type: "checkbox"
185
- }, wrapperProps, {
186
- checked: this.$props.value,
187
- disabled: this.$props.disabled,
188
- onChange: this.handleChange
189
- }), null), createVNode("span", {
190
- class: "bk-checkbox-text"
191
- }, [(_c = (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) != null ? _c : "default"])]);
192
- }
193
- });
194
- Checkbox.install = (Vue) => {
195
- Vue.component(Checkbox.name, Checkbox);
196
- };
197
- var Input = defineComponent({
198
- name: "BkInput",
199
- components: {
200
- Button,
201
- Checkbox
202
- },
203
- props: {
204
- type: {
205
- type: String,
206
- default: "text"
207
- },
208
- size: {
209
- type: String,
210
- default: "normal",
211
- validator: (val) => ["small", "normal", "large"].includes(val)
212
- }
213
- },
214
- render() {
215
- return createVNode("div", {
216
- class: "bk-input"
217
- }, [this.type === "textarea" ? createVNode("textarea", {
218
- class: "bk-input-textarea"
219
- }, null) : createVNode(Fragment, null, [this.$slots.prepend ? createVNode("div", {
220
- class: "bk-input-prepend"
221
- }, [this.$slots.prepend()]) : void 0, createVNode("input", {
222
- class: "bk-input-text",
223
- type: this.type
224
- }, null), this.$slots.append ? createVNode("div", {
225
- class: "bk-input-append"
226
- }, [createVNode(resolveComponent("bk-checkbox"), null, null), createVNode(resolveComponent("bk-button"), {
227
- theme: "primary",
228
- size: "small"
229
- }, {
230
- default: () => [createTextVNode("ss")]
231
- }), this.$slots.append()]) : void 0])]);
232
- }
233
- });
234
- Input.install = (Vue) => {
235
- Vue.component(Input.name, Input);
236
- };
237
- var Radio = defineComponent({
238
- name: "BkRadio",
239
- props: {
240
- disabled: {
241
- type: Boolean,
242
- default: false
243
- },
244
- value: {
245
- type: Boolean,
246
- default: false
247
- }
248
- },
249
- emits: ["update:value"],
250
- methods: {
251
- handleChange(e) {
252
- const target = e.target;
253
- this.$emit("update:value", target.checked);
254
- }
255
- },
256
- render() {
257
- var _a, _b, _c;
258
- const inputClass = [{
259
- "bk-radio-input": true,
260
- "is-checked": this.value
261
- }];
262
- const wrapperProps = {
263
- class: inputClass
264
- };
265
- return createVNode("label", {
266
- class: "bk-radio"
267
- }, [createVNode("input", mergeProps({
268
- type: "radio"
269
- }, wrapperProps, {
270
- checked: this.value,
271
- disabled: this.disabled,
272
- onChange: this.handleChange
273
- }), null), createVNode("span", {
274
- class: "bk-radio-text"
275
- }, [(_c = (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) != null ? _c : "default"])]);
276
- }
277
- });
278
- Radio.install = (Vue) => {
279
- Vue.component(Radio.name, Radio);
280
- };
281
- const components = {
282
- Input,
283
- Button,
284
- Checkbox,
285
- Radio
286
- };
287
- function install(Vue) {
288
- for (const component in components) {
289
- Vue.component(components[component].name, components[component]);
290
- }
291
- }
292
- const bkuiVue = __assign(__assign({}, components), {
293
- install
294
- });
295
- export default bkuiVue;
296
- export {components};
@@ -1,302 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __hasOwnProp = Object.prototype.hasOwnProperty;
3
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
4
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {enumerable: true, configurable: true, writable: true, value}) : obj[key] = value;
6
- var __assign = (a, b) => {
7
- for (var prop in b || (b = {}))
8
- if (__hasOwnProp.call(b, prop))
9
- __defNormalProp(a, prop, b[prop]);
10
- if (__getOwnPropSymbols)
11
- for (var prop of __getOwnPropSymbols(b)) {
12
- if (__propIsEnum.call(b, prop))
13
- __defNormalProp(a, prop, b[prop]);
14
- }
15
- return a;
16
- };
17
- (function(global, factory) {
18
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue")) : typeof define === "function" && define.amd ? define(["exports", "vue"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.bkuiVue = {}, global.Vue));
19
- })(this, function(exports2, vue) {
20
- "use strict";
21
- var button = ".bk-button {\n font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n font-weight: 700;\n border: 0;\n border-radius: 3em;\n cursor: pointer;\n display: inline-block;\n line-height: 1;\n}\n.bk-button .test {\n color: red;\n}\n.bk-button-primary {\n color: white;\n background-color: #1ea7fd;\n}\n.bk-button-secondary {\n color: #333;\n background-color: transparent;\n box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px inset;\n}\n.bk-button-small {\n font-size: 12px;\n padding: 10px 16px;\n}\n.bk-button-normal {\n font-size: 14px;\n padding: 11px 20px;\n}\n.bk-button-large {\n font-size: 16px;\n padding: 12px 24px;\n}\n";
22
- var input = ":root {\n --primary-color: #3a84ff;\n --success-color: #2dcb56;\n --warning-color: #ff9c01;\n --danger-color: #ea3636;\n --default-color: #63656e;\n --font-size-base: 12px;\n --font-size-medium: 14px;\n --font-size-large: 16px;\n --line-height-base: 16px;\n --line-height-medium: 16px;\n --line-height-large: 18px;\n --component-size-small: 26px;\n --component-size-base: 32px;\n --component-size-large: 38px;\n --border-color-base: #dcdee5;\n --border-color-disable: #dcdee5;\n --border-width-base: 1px;\n --border-style-base: solid;\n --border-radius-base: 2px;\n --input-disabled-bg: #fafbfd;\n --input-disabled-border: #dcdee5;\n --input-height-base: var(--component-size-base);\n --input-color: var(--default-color);\n --input-bg: white;\n --input-border-color: var(--border-color-base);\n}\n/* \u5B58\u653E\u5E38\u7528\u53D8\u91CF */\n/********************** \u5B57\u4F53 **********************/\n/********************** \u4E3B\u9898\u8272 **********************/\n/* \u91CD\u70B9\u8868\u793A\u3001\u5F3A\u8C03\u3001\u94FE\u63A5\u4EE5\u53CA\u5E26\u6709\u660E\u786E\u6307\u793A\u6027 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/********************** \u8F85\u52A9\u8272 **********************/\n/* \u9000\u51FA\u3001\u5220\u9664\u3001\u9519\u8BEF\u3001\u4E25\u91CD\u8B66\u544A\u7B49\u5426\u5B9A\u7C7B\u6807\u8BC6 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/* \u8B66\u793A\u706F\u5F15\u8D77\u6CE8\u610F\u7C7B\u6807\u8BC6 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/* \u6210\u529F\u3001\u5B8C\u6210\u3001\u8FDB\u884C\u7B49\u80AF\u5B9A\u7C7B\u6807\u8BC6 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/********************** \u4E2D\u6027\u8272 **********************/\n/* \u91CD\u8981\u7EA7\u6587\u5B57\u4FE1\u606F\u3001\u5185\u5BB9\u6807\u9898\u4FE1\u606F */\n/* \u6B21\u7EA7\u6807\u9898\u3001\u5185\u5BB9\u6587\u5B57 \u4E3B\u8981\u6587\u5B57\u4F7F\u7528\u989C\u8272 */\n/* \u4E09\u7EA7\u6587\u5B57\u6807\u9898\u3001\u5185\u5BB9\u6587\u5B57 */\n/* \u8FB9\u6846\u5185\u8BF4\u660E\u6587\u5B57 */\n/* \u6309\u94AE\u3001\u8868\u5355\u8FB9\u6846\u989C\u8272\u3001\u7981\u7528\u65F6\u6587\u672C\u989C\u8272 */\n/* \u8868\u683C\u7EBF\u989C\u8272\u533A\u522B\u8868\u5355\uFF0C\u5927\u63CF\u8FB9\u989C\u8272\u3001\u7EBF\u6027\u8272 */\n/* \u8868\u683C\u5934\u90E8\u80CC\u666F\u8272\u3001\u7981\u7528\u5E95\u8272 */\n/* \u5927\u9762\u79EF\u80CC\u666F\u8272 */\n/********************** \u57FA\u7840\u989C\u8272 **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u57FA\u7840\u989C\u8272-\u9F20\u6807\u79FB\u4E0A **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u57FA\u7840\u989C\u8272-\u6FC0\u6D3B **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u57FA\u7840\u989C\u8272-\u76F8\u5E94\u8C08\u8272 **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u56FE\u6807\u5927\u5C0F **********************/\n/* \u6700\u5C0F\u5C3A\u5BF8\u56FE\u6807 */\n/* \u66F4\u5C0F\u5C3A\u5BF8\u56FE\u6807 */\n/* \u5C0F\u5C3A\u5BF8\u56FE\u6807 */\n/* \u6B63\u5E38\u5C3A\u5BF8\u56FE\u6807 */\n/* \u5927\u5C3A\u5BF8\u56FE\u6807 */\n/* \u6700\u5927\u5C3A\u5BF8\u56FE\u6807 */\n/********************** \u6587\u6848 **********************/\n/* \u5B57\u4F53 */\n/* \u6B63\u5E38\u5C3A\u5BF8 */\n/* \u5C0F\u5C3A\u5BF8 */\n/* \u5927\u5C3A\u5BF8 */\n/* \u4E3B\u8981\u989C\u8272 */\n/* \u6B21\u8981\u989C\u8272 \u7528\u4E8E plaeholder \u7B49 */\n/********************** \u8FB9\u6846 **********************/\n/* \u8FB9\u6846\u8272 */\n/* \u8868\u5355\u8F93\u5165\u6846\u8272 */\n/* \u8868\u5355\u8F93\u5165\u6846\u6FC0\u6D3B\u8272 */\n/********************** \u5176\u5B83 **********************/\n/* \u6EDA\u52A8\u6761\u80CC\u666F\u8272 */\n/********************** \u5C42\u7EA7\u7BA1\u7406 **********************/\n/* \u4E0B\u62C9\u83DC\u5355\u5C42 */\n/* @dropdownMenuZIndex: 50; */\n/* \u4E0B\u62C9\u9009\u6846\u5C42 */\n/* @selectorZIndex: 100; */\n/* \u65E5\u671F\u9009\u6846\u5C42 */\n/* @dateZIndex: 200; */\n/* \u6587\u5B57\u63D0\u793A\u5C42 */\n/* @tooltipZIndex: 500; */\n/* \u786E\u8BA4\u63D0\u793A\u5C42 */\n/* @toolboxZIndex: 700; */\n/* \u52A0\u8F7D\u5C42 */\n/* @loadingZIndex: 1000; */\n/* \u6D88\u606F\u63D0\u793A\u5C42 */\n/* @messageZIndex: 2000; */\n/* \u4FA7\u5F39\u5C42 */\n/* @sideSliderZIndex: 1500; */\n/* \u5BF9\u8BDD\u6846\u5C42 */\n/* @dialogZIndex: 2000; */\n.bk-input {\n display: flex;\n align-items: center;\n font-size: 12px;\n}\n.bk-input-text {\n line-height: normal;\n outline: none;\n resize: none;\n box-sizing: border-box;\n position: relative;\n display: flex;\n align-items: center;\n flex: 1;\n height: 32px;\n padding: 0 10px;\n color: #63656e;\n font-size: 12px;\n line-height: 16px;\n background-color: white;\n background-image: none;\n border: 1px solid #dcdee5;\n border-radius: 2px;\n transition: all 0.3s;\n}\n.bk-input-text:focus {\n border-color: var(--primary-color);\n outline: 0;\n}\n.bk-input-text-disabled {\n background-color: #fafbfd;\n cursor: not-allowed;\n opacity: 1;\n}\n.bk-input-text[disabled] {\n background-color: #fafbfd;\n cursor: not-allowed;\n opacity: 1;\n}\n.bk-input-text-lg {\n font-size: 16px;\n height: 38px;\n}\n.bk-input-text-sm {\n font-size: 12px;\n height: 26px;\n}\n";
23
- var radio = ":root {\n --primary-color: #3a84ff;\n --success-color: #2dcb56;\n --warning-color: #ff9c01;\n --danger-color: #ea3636;\n --default-color: #63656e;\n --font-size-base: 12px;\n --font-size-medium: 14px;\n --font-size-large: 16px;\n --line-height-base: 16px;\n --line-height-medium: 16px;\n --line-height-large: 18px;\n --component-size-small: 26px;\n --component-size-base: 32px;\n --component-size-large: 38px;\n --border-color-base: #dcdee5;\n --border-color-disable: #dcdee5;\n --border-width-base: 1px;\n --border-style-base: solid;\n --border-radius-base: 2px;\n --input-disabled-bg: #fafbfd;\n --input-disabled-border: #dcdee5;\n --input-height-base: var(--component-size-base);\n --input-color: var(--default-color);\n --input-bg: white;\n --input-border-color: var(--border-color-base);\n}\n/* \u5B58\u653E\u5E38\u7528\u53D8\u91CF */\n/********************** \u5B57\u4F53 **********************/\n/********************** \u4E3B\u9898\u8272 **********************/\n/* \u91CD\u70B9\u8868\u793A\u3001\u5F3A\u8C03\u3001\u94FE\u63A5\u4EE5\u53CA\u5E26\u6709\u660E\u786E\u6307\u793A\u6027 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/********************** \u8F85\u52A9\u8272 **********************/\n/* \u9000\u51FA\u3001\u5220\u9664\u3001\u9519\u8BEF\u3001\u4E25\u91CD\u8B66\u544A\u7B49\u5426\u5B9A\u7C7B\u6807\u8BC6 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/* \u8B66\u793A\u706F\u5F15\u8D77\u6CE8\u610F\u7C7B\u6807\u8BC6 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/* \u6210\u529F\u3001\u5B8C\u6210\u3001\u8FDB\u884C\u7B49\u80AF\u5B9A\u7C7B\u6807\u8BC6 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/********************** \u4E2D\u6027\u8272 **********************/\n/* \u91CD\u8981\u7EA7\u6587\u5B57\u4FE1\u606F\u3001\u5185\u5BB9\u6807\u9898\u4FE1\u606F */\n/* \u6B21\u7EA7\u6807\u9898\u3001\u5185\u5BB9\u6587\u5B57 \u4E3B\u8981\u6587\u5B57\u4F7F\u7528\u989C\u8272 */\n/* \u4E09\u7EA7\u6587\u5B57\u6807\u9898\u3001\u5185\u5BB9\u6587\u5B57 */\n/* \u8FB9\u6846\u5185\u8BF4\u660E\u6587\u5B57 */\n/* \u6309\u94AE\u3001\u8868\u5355\u8FB9\u6846\u989C\u8272\u3001\u7981\u7528\u65F6\u6587\u672C\u989C\u8272 */\n/* \u8868\u683C\u7EBF\u989C\u8272\u533A\u522B\u8868\u5355\uFF0C\u5927\u63CF\u8FB9\u989C\u8272\u3001\u7EBF\u6027\u8272 */\n/* \u8868\u683C\u5934\u90E8\u80CC\u666F\u8272\u3001\u7981\u7528\u5E95\u8272 */\n/* \u5927\u9762\u79EF\u80CC\u666F\u8272 */\n/********************** \u57FA\u7840\u989C\u8272 **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u57FA\u7840\u989C\u8272-\u9F20\u6807\u79FB\u4E0A **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u57FA\u7840\u989C\u8272-\u6FC0\u6D3B **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u57FA\u7840\u989C\u8272-\u76F8\u5E94\u8C08\u8272 **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u56FE\u6807\u5927\u5C0F **********************/\n/* \u6700\u5C0F\u5C3A\u5BF8\u56FE\u6807 */\n/* \u66F4\u5C0F\u5C3A\u5BF8\u56FE\u6807 */\n/* \u5C0F\u5C3A\u5BF8\u56FE\u6807 */\n/* \u6B63\u5E38\u5C3A\u5BF8\u56FE\u6807 */\n/* \u5927\u5C3A\u5BF8\u56FE\u6807 */\n/* \u6700\u5927\u5C3A\u5BF8\u56FE\u6807 */\n/********************** \u6587\u6848 **********************/\n/* \u5B57\u4F53 */\n/* \u6B63\u5E38\u5C3A\u5BF8 */\n/* \u5C0F\u5C3A\u5BF8 */\n/* \u5927\u5C3A\u5BF8 */\n/* \u4E3B\u8981\u989C\u8272 */\n/* \u6B21\u8981\u989C\u8272 \u7528\u4E8E plaeholder \u7B49 */\n/********************** \u8FB9\u6846 **********************/\n/* \u8FB9\u6846\u8272 */\n/* \u8868\u5355\u8F93\u5165\u6846\u8272 */\n/* \u8868\u5355\u8F93\u5165\u6846\u6FC0\u6D3B\u8272 */\n/********************** \u5176\u5B83 **********************/\n/* \u6EDA\u52A8\u6761\u80CC\u666F\u8272 */\n/********************** \u5C42\u7EA7\u7BA1\u7406 **********************/\n/* \u4E0B\u62C9\u83DC\u5355\u5C42 */\n/* @dropdownMenuZIndex: 50; */\n/* \u4E0B\u62C9\u9009\u6846\u5C42 */\n/* @selectorZIndex: 100; */\n/* \u65E5\u671F\u9009\u6846\u5C42 */\n/* @dateZIndex: 200; */\n/* \u6587\u5B57\u63D0\u793A\u5C42 */\n/* @tooltipZIndex: 500; */\n/* \u786E\u8BA4\u63D0\u793A\u5C42 */\n/* @toolboxZIndex: 700; */\n/* \u52A0\u8F7D\u5C42 */\n/* @loadingZIndex: 1000; */\n/* \u6D88\u606F\u63D0\u793A\u5C42 */\n/* @messageZIndex: 2000; */\n/* \u4FA7\u5F39\u5C42 */\n/* @sideSliderZIndex: 1500; */\n/* \u5BF9\u8BDD\u6846\u5C42 */\n/* @dialogZIndex: 2000; */\n.bk-radio {\n margin-right: 30px;\n}\n.bk-radio-input {\n position: relative;\n display: inline-block;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n border: 1px solid #979ba5;\n background-color: #fff;\n bottom: -2px;\n}\n.bk-radio-text {\n padding-left: 5px;\n}\n";
24
- var checkbox = ":root {\n --primary-color: #3a84ff;\n --success-color: #2dcb56;\n --warning-color: #ff9c01;\n --danger-color: #ea3636;\n --default-color: #63656e;\n --font-size-base: 12px;\n --font-size-medium: 14px;\n --font-size-large: 16px;\n --line-height-base: 16px;\n --line-height-medium: 16px;\n --line-height-large: 18px;\n --component-size-small: 26px;\n --component-size-base: 32px;\n --component-size-large: 38px;\n --border-color-base: #dcdee5;\n --border-color-disable: #dcdee5;\n --border-width-base: 1px;\n --border-style-base: solid;\n --border-radius-base: 2px;\n --input-disabled-bg: #fafbfd;\n --input-disabled-border: #dcdee5;\n --input-height-base: var(--component-size-base);\n --input-color: var(--default-color);\n --input-bg: white;\n --input-border-color: var(--border-color-base);\n}\n/* \u5B58\u653E\u5E38\u7528\u53D8\u91CF */\n/********************** \u5B57\u4F53 **********************/\n/********************** \u4E3B\u9898\u8272 **********************/\n/* \u91CD\u70B9\u8868\u793A\u3001\u5F3A\u8C03\u3001\u94FE\u63A5\u4EE5\u53CA\u5E26\u6709\u660E\u786E\u6307\u793A\u6027 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/********************** \u8F85\u52A9\u8272 **********************/\n/* \u9000\u51FA\u3001\u5220\u9664\u3001\u9519\u8BEF\u3001\u4E25\u91CD\u8B66\u544A\u7B49\u5426\u5B9A\u7C7B\u6807\u8BC6 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/* \u8B66\u793A\u706F\u5F15\u8D77\u6CE8\u610F\u7C7B\u6807\u8BC6 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/* \u6210\u529F\u3001\u5B8C\u6210\u3001\u8FDB\u884C\u7B49\u80AF\u5B9A\u7C7B\u6807\u8BC6 */\n/* \u63CF\u8FB9\u4F7F\u7528 */\n/* \u80CC\u666F\u8272 */\n/********************** \u4E2D\u6027\u8272 **********************/\n/* \u91CD\u8981\u7EA7\u6587\u5B57\u4FE1\u606F\u3001\u5185\u5BB9\u6807\u9898\u4FE1\u606F */\n/* \u6B21\u7EA7\u6807\u9898\u3001\u5185\u5BB9\u6587\u5B57 \u4E3B\u8981\u6587\u5B57\u4F7F\u7528\u989C\u8272 */\n/* \u4E09\u7EA7\u6587\u5B57\u6807\u9898\u3001\u5185\u5BB9\u6587\u5B57 */\n/* \u8FB9\u6846\u5185\u8BF4\u660E\u6587\u5B57 */\n/* \u6309\u94AE\u3001\u8868\u5355\u8FB9\u6846\u989C\u8272\u3001\u7981\u7528\u65F6\u6587\u672C\u989C\u8272 */\n/* \u8868\u683C\u7EBF\u989C\u8272\u533A\u522B\u8868\u5355\uFF0C\u5927\u63CF\u8FB9\u989C\u8272\u3001\u7EBF\u6027\u8272 */\n/* \u8868\u683C\u5934\u90E8\u80CC\u666F\u8272\u3001\u7981\u7528\u5E95\u8272 */\n/* \u5927\u9762\u79EF\u80CC\u666F\u8272 */\n/********************** \u57FA\u7840\u989C\u8272 **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u57FA\u7840\u989C\u8272-\u9F20\u6807\u79FB\u4E0A **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u57FA\u7840\u989C\u8272-\u6FC0\u6D3B **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u57FA\u7840\u989C\u8272-\u76F8\u5E94\u8C08\u8272 **********************/\n/* \u9ED8\u8BA4 */\n/* \u4E3B\u8981 */\n/* \u4FE1\u606F */\n/* \u6210\u529F */\n/* \u8B66\u544A */\n/* \u5371\u9669 */\n/********************** \u56FE\u6807\u5927\u5C0F **********************/\n/* \u6700\u5C0F\u5C3A\u5BF8\u56FE\u6807 */\n/* \u66F4\u5C0F\u5C3A\u5BF8\u56FE\u6807 */\n/* \u5C0F\u5C3A\u5BF8\u56FE\u6807 */\n/* \u6B63\u5E38\u5C3A\u5BF8\u56FE\u6807 */\n/* \u5927\u5C3A\u5BF8\u56FE\u6807 */\n/* \u6700\u5927\u5C3A\u5BF8\u56FE\u6807 */\n/********************** \u6587\u6848 **********************/\n/* \u5B57\u4F53 */\n/* \u6B63\u5E38\u5C3A\u5BF8 */\n/* \u5C0F\u5C3A\u5BF8 */\n/* \u5927\u5C3A\u5BF8 */\n/* \u4E3B\u8981\u989C\u8272 */\n/* \u6B21\u8981\u989C\u8272 \u7528\u4E8E plaeholder \u7B49 */\n/********************** \u8FB9\u6846 **********************/\n/* \u8FB9\u6846\u8272 */\n/* \u8868\u5355\u8F93\u5165\u6846\u8272 */\n/* \u8868\u5355\u8F93\u5165\u6846\u6FC0\u6D3B\u8272 */\n/********************** \u5176\u5B83 **********************/\n/* \u6EDA\u52A8\u6761\u80CC\u666F\u8272 */\n/********************** \u5C42\u7EA7\u7BA1\u7406 **********************/\n/* \u4E0B\u62C9\u83DC\u5355\u5C42 */\n/* @dropdownMenuZIndex: 50; */\n/* \u4E0B\u62C9\u9009\u6846\u5C42 */\n/* @selectorZIndex: 100; */\n/* \u65E5\u671F\u9009\u6846\u5C42 */\n/* @dateZIndex: 200; */\n/* \u6587\u5B57\u63D0\u793A\u5C42 */\n/* @tooltipZIndex: 500; */\n/* \u786E\u8BA4\u63D0\u793A\u5C42 */\n/* @toolboxZIndex: 700; */\n/* \u52A0\u8F7D\u5C42 */\n/* @loadingZIndex: 1000; */\n/* \u6D88\u606F\u63D0\u793A\u5C42 */\n/* @messageZIndex: 2000; */\n/* \u4FA7\u5F39\u5C42 */\n/* @sideSliderZIndex: 1500; */\n/* \u5BF9\u8BDD\u6846\u5C42 */\n/* @dialogZIndex: 2000; */\n.bk-checkbox {\n margin-right: 30px;\n}\n.bk-checkbox-input {\n position: relative;\n display: inline-block;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n border: 1px solid #979ba5;\n background-color: #fff;\n bottom: -2px;\n}\n.bk-checkbox-text {\n padding-left: 5px;\n}\n";
25
- function classes(dynamicCls, constCls = "") {
26
- return Object.entries(dynamicCls).filter((entry) => entry[1]).map((entry) => entry[0]).join(" ").concat(constCls ? ` ${constCls}` : "");
27
- }
28
- var Button = vue.defineComponent({
29
- name: "BkButton",
30
- props: {
31
- theme: {
32
- type: String,
33
- default: "default",
34
- validator: (value) => {
35
- const themes = ["default", "primary", "warning", "success", "danger"];
36
- if (themes.indexOf(value) < 0) {
37
- console.error(`theme property is not valid: '${value}',\u3010${themes.join(" | ")}\u3011`);
38
- return false;
39
- }
40
- return true;
41
- }
42
- },
43
- hoverTheme: {
44
- type: String,
45
- default: "",
46
- validator: (value) => {
47
- const hoverThemes = ["", "primary", "warning", "success", "danger"];
48
- if (hoverThemes.indexOf(value) < 0) {
49
- console.error(`hoverTheme property is not valid: '${value}', \u3010${hoverThemes.join(" | ")}\u3011`);
50
- return false;
51
- }
52
- return true;
53
- }
54
- },
55
- size: {
56
- type: String,
57
- default: "normal",
58
- validator: (value) => {
59
- const sizes = ["small", "normal", "large"];
60
- if (sizes.indexOf(value) < 0) {
61
- console.error(`size property is not valid: '${value}', \u3010${sizes.join(" | ")}\u3011`);
62
- return false;
63
- }
64
- return true;
65
- }
66
- },
67
- title: {
68
- type: String,
69
- default: ""
70
- },
71
- extCls: {
72
- type: String,
73
- default: ""
74
- },
75
- icon: String,
76
- iconRight: String,
77
- disabled: Boolean,
78
- loading: Boolean,
79
- outline: Boolean,
80
- text: Boolean
81
- },
82
- emits: ["click"],
83
- methods: {
84
- onClick() {
85
- this.$emit("click");
86
- }
87
- },
88
- setup(props, {
89
- slots
90
- }) {
91
- var _a;
92
- const showSlot = (_a = slots.default) != null ? _a : false;
93
- const btnClsPrefix = "bk-button";
94
- const isText = props.text ? `${btnClsPrefix}-text` : btnClsPrefix;
95
- const hoverTheme = props.hoverTheme ? `${btnClsPrefix}-hover bk-${props.hoverTheme}` : "";
96
- const themeCls = `${btnClsPrefix}-${props.theme}`;
97
- const sizeCls = `${btnClsPrefix}-${props.size}`;
98
- const classs = classes({
99
- "is-disabled": props.disabled,
100
- "is-loading": props.loading,
101
- "is-outline": props.outline,
102
- "no-slot": !showSlot
103
- }, `${themeCls} ${isText} ${hoverTheme} ${sizeCls}`);
104
- function isLoadingIcon(icon) {
105
- return icon === "loading";
106
- }
107
- const loadingSpan = vue.createVNode("span", {
108
- class: "loading"
109
- }, null);
110
- const isRightIconLoading = isLoadingIcon(props.iconRight);
111
- const isLeftIconLoading = isLoadingIcon(props.icon);
112
- const bkLoadingCls = `${btnClsPrefix}-loading`;
113
- const iconClsPrefix = "bk-icon";
114
- const btnIconLoadingCls = `${btnClsPrefix}-icon-loading`;
115
- const iconLeftCls = classes({
116
- [btnIconLoadingCls]: isLeftIconLoading
117
- }, `${iconClsPrefix} left-icon icon-${props.icon}`);
118
- const iconRightCls = classes({
119
- [btnIconLoadingCls]: isRightIconLoading
120
- }, `${iconClsPrefix} right-icon icon-${props.iconRight}`);
121
- return {
122
- bkLoadingCls,
123
- btnClsPrefix,
124
- loadingSpan,
125
- classs,
126
- iconLeftCls,
127
- iconRightCls,
128
- isLeftIconLoading,
129
- isRightIconLoading
130
- };
131
- },
132
- render() {
133
- var _a, _b, _c;
134
- return vue.createVNode("button", vue.mergeProps({
135
- title: this.$props.title,
136
- disabled: this.$props.disabled,
137
- class: this.classs
138
- }, this.$attrs), [this.$props.loading ? vue.createVNode("div", {
139
- class: this.bkLoadingCls
140
- }, [[1, 2, 3, 4].map((i) => vue.createVNode("div", {
141
- class: `bounce${i}`
142
- }, null))]) : vue.createVNode("div", {
143
- class: "bk-button-content-wrapper"
144
- }, [this.$props.icon && vue.createVNode("i", {
145
- class: this.iconLeftCls
146
- }, [this.isLeftIconLoading && this.loadingSpan]), vue.createVNode("span", null, [(_c = (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) != null ? _c : "default"]), this.$props.iconRight && vue.createVNode("i", {
147
- class: this.iconRightCls
148
- }, [this.isRightIconLoading && this.loadingSpan])])]);
149
- }
150
- });
151
- Button.install = (Vue) => {
152
- Vue.component(Button.name, Button);
153
- };
154
- var Checkbox = vue.defineComponent({
155
- name: "BkCheckbox",
156
- props: {
157
- disabled: {
158
- type: Boolean,
159
- default: false
160
- },
161
- value: {
162
- type: Boolean,
163
- default: false
164
- }
165
- },
166
- emits: ["update:value"],
167
- setup() {
168
- },
169
- methods: {
170
- handleChange(e) {
171
- const target = e.target;
172
- this.$emit("update:value", target.checked);
173
- }
174
- },
175
- render() {
176
- var _a, _b, _c;
177
- const inputClass = [{
178
- "bk-checkbox-input": true,
179
- "is-checked": this.value
180
- }];
181
- const wrapperProps = {
182
- class: inputClass
183
- };
184
- return vue.createVNode("label", {
185
- class: "bk-checkbox"
186
- }, [vue.createVNode("input", vue.mergeProps({
187
- type: "checkbox"
188
- }, wrapperProps, {
189
- checked: this.$props.value,
190
- disabled: this.$props.disabled,
191
- onChange: this.handleChange
192
- }), null), vue.createVNode("span", {
193
- class: "bk-checkbox-text"
194
- }, [(_c = (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) != null ? _c : "default"])]);
195
- }
196
- });
197
- Checkbox.install = (Vue) => {
198
- Vue.component(Checkbox.name, Checkbox);
199
- };
200
- var Input = vue.defineComponent({
201
- name: "BkInput",
202
- components: {
203
- Button,
204
- Checkbox
205
- },
206
- props: {
207
- type: {
208
- type: String,
209
- default: "text"
210
- },
211
- size: {
212
- type: String,
213
- default: "normal",
214
- validator: (val) => ["small", "normal", "large"].includes(val)
215
- }
216
- },
217
- render() {
218
- return vue.createVNode("div", {
219
- class: "bk-input"
220
- }, [this.type === "textarea" ? vue.createVNode("textarea", {
221
- class: "bk-input-textarea"
222
- }, null) : vue.createVNode(vue.Fragment, null, [this.$slots.prepend ? vue.createVNode("div", {
223
- class: "bk-input-prepend"
224
- }, [this.$slots.prepend()]) : void 0, vue.createVNode("input", {
225
- class: "bk-input-text",
226
- type: this.type
227
- }, null), this.$slots.append ? vue.createVNode("div", {
228
- class: "bk-input-append"
229
- }, [vue.createVNode(vue.resolveComponent("bk-checkbox"), null, null), vue.createVNode(vue.resolveComponent("bk-button"), {
230
- theme: "primary",
231
- size: "small"
232
- }, {
233
- default: () => [vue.createTextVNode("ss")]
234
- }), this.$slots.append()]) : void 0])]);
235
- }
236
- });
237
- Input.install = (Vue) => {
238
- Vue.component(Input.name, Input);
239
- };
240
- var Radio = vue.defineComponent({
241
- name: "BkRadio",
242
- props: {
243
- disabled: {
244
- type: Boolean,
245
- default: false
246
- },
247
- value: {
248
- type: Boolean,
249
- default: false
250
- }
251
- },
252
- emits: ["update:value"],
253
- methods: {
254
- handleChange(e) {
255
- const target = e.target;
256
- this.$emit("update:value", target.checked);
257
- }
258
- },
259
- render() {
260
- var _a, _b, _c;
261
- const inputClass = [{
262
- "bk-radio-input": true,
263
- "is-checked": this.value
264
- }];
265
- const wrapperProps = {
266
- class: inputClass
267
- };
268
- return vue.createVNode("label", {
269
- class: "bk-radio"
270
- }, [vue.createVNode("input", vue.mergeProps({
271
- type: "radio"
272
- }, wrapperProps, {
273
- checked: this.value,
274
- disabled: this.disabled,
275
- onChange: this.handleChange
276
- }), null), vue.createVNode("span", {
277
- class: "bk-radio-text"
278
- }, [(_c = (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) != null ? _c : "default"])]);
279
- }
280
- });
281
- Radio.install = (Vue) => {
282
- Vue.component(Radio.name, Radio);
283
- };
284
- const components = {
285
- Input,
286
- Button,
287
- Checkbox,
288
- Radio
289
- };
290
- function install(Vue) {
291
- for (const component in components) {
292
- Vue.component(components[component].name, components[component]);
293
- }
294
- }
295
- const bkuiVue = __assign(__assign({}, components), {
296
- install
297
- });
298
- exports2.components = components;
299
- exports2.default = bkuiVue;
300
- Object.defineProperty(exports2, "__esModule", {value: true});
301
- exports2[Symbol.toStringTag] = "Module";
302
- });
File without changes