bkui-vue 2.0.1-beta.107 → 2.0.1-beta.108

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 (392) hide show
  1. package/dist/index.cjs.js +71 -71
  2. package/dist/index.esm.js +18590 -18752
  3. package/dist/index.umd.js +70 -70
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/affix.css +130 -0
  7. package/lib/affix/affix.variable.css +261 -1
  8. package/lib/affix/index.d.ts +111 -57
  9. package/lib/affix/index.js +17 -17
  10. package/lib/alert/alert.css +133 -3
  11. package/lib/alert/alert.variable.css +261 -1
  12. package/lib/alert/index.d.ts +126 -73
  13. package/lib/alert/index.js +20 -20
  14. package/lib/animate-number/index.d.ts +96 -33
  15. package/lib/animate-number/index.js +7 -8
  16. package/lib/backtop/backtop.css +133 -3
  17. package/lib/backtop/backtop.variable.css +394 -4
  18. package/lib/backtop/index.d.ts +117 -69
  19. package/lib/backtop/index.js +10 -11
  20. package/lib/badge/badge.css +156 -26
  21. package/lib/badge/badge.variable.css +261 -1
  22. package/lib/badge/index.d.ts +152 -119
  23. package/lib/badge/index.js +19 -19
  24. package/lib/breadcrumb/breadcrumb.css +135 -5
  25. package/lib/breadcrumb/breadcrumb.variable.css +396 -6
  26. package/lib/breadcrumb/index.d.ts +119 -67
  27. package/lib/breadcrumb/index.js +17 -17
  28. package/lib/button/button.css +273 -143
  29. package/lib/button/button.d.ts +2 -2
  30. package/lib/button/button.variable.css +261 -1
  31. package/lib/button/index.d.ts +155 -119
  32. package/lib/button/index.js +20 -19
  33. package/lib/card/card.css +134 -4
  34. package/lib/card/card.variable.css +395 -5
  35. package/lib/card/index.d.ts +157 -128
  36. package/lib/card/index.js +22 -20
  37. package/lib/cascader/cascader.css +153 -23
  38. package/lib/cascader/cascader.d.ts +3 -3
  39. package/lib/cascader/cascader.variable.css +414 -24
  40. package/lib/cascader/index.d.ts +354 -393
  41. package/lib/cascader/index.js +268 -270
  42. package/lib/checkbox/checkbox.css +140 -10
  43. package/lib/checkbox/checkbox.d.ts +1 -1
  44. package/lib/checkbox/checkbox.variable.css +261 -1
  45. package/lib/checkbox/index.d.ts +175 -143
  46. package/lib/checkbox/index.js +45 -45
  47. package/lib/code-diff/code-diff.css +130 -0
  48. package/lib/code-diff/code-diff.variable.css +261 -1
  49. package/lib/code-diff/index.d.ts +82 -65
  50. package/lib/code-diff/index.js +438 -381
  51. package/lib/collapse/collapse.css +131 -1
  52. package/lib/collapse/collapse.variable.css +261 -1
  53. package/lib/collapse/index.d.ts +175 -156
  54. package/lib/collapse/index.js +27 -28
  55. package/lib/collapse-transition/collapse-transition.css +130 -0
  56. package/lib/collapse-transition/collapse-transition.variable.css +261 -1
  57. package/lib/collapse-transition/index.d.ts +94 -19
  58. package/lib/collapse-transition/index.js +3 -4
  59. package/lib/color-picker/color-picker.css +130 -0
  60. package/lib/color-picker/color-picker.d.ts +1 -1
  61. package/lib/color-picker/color-picker.variable.css +261 -1
  62. package/lib/color-picker/index.d.ts +165 -144
  63. package/lib/color-picker/index.js +41 -43
  64. package/lib/config-provider/config-provider.css +130 -0
  65. package/lib/config-provider/config-provider.variable.css +261 -1
  66. package/lib/config-provider/index.d.ts +227 -160
  67. package/lib/config-provider/index.js +17 -17
  68. package/lib/container/container.css +130 -0
  69. package/lib/container/container.d.ts +1 -1
  70. package/lib/container/container.variable.css +391 -1
  71. package/lib/container/index.d.ts +85 -74
  72. package/lib/container/index.js +26 -28
  73. package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
  74. package/lib/date-picker/base/time-spinner.d.ts +3 -3
  75. package/lib/date-picker/date-picker.css +147 -17
  76. package/lib/date-picker/date-picker.d.ts +4 -4
  77. package/lib/date-picker/date-picker.variable.css +261 -1
  78. package/lib/date-picker/index.d.ts +351 -380
  79. package/lib/date-picker/index.js +79 -80
  80. package/lib/date-picker/panel/date-range.d.ts +1 -1
  81. package/lib/date-picker/panel/date.d.ts +1 -1
  82. package/lib/date-picker/panel/time-range.d.ts +2 -2
  83. package/lib/date-picker/panel/time.d.ts +2 -2
  84. package/lib/date-picker/time-picker.d.ts +4 -4
  85. package/lib/dialog/dialog.css +138 -8
  86. package/lib/dialog/dialog.variable.css +399 -9
  87. package/lib/dialog/index.d.ts +269 -299
  88. package/lib/dialog/index.js +228 -227
  89. package/lib/directives/index.js +29 -29
  90. package/lib/divider/divider.css +133 -3
  91. package/lib/divider/divider.variable.css +261 -1
  92. package/lib/divider/index.d.ts +111 -57
  93. package/lib/divider/index.js +2 -3
  94. package/lib/dropdown/dropdown.css +130 -0
  95. package/lib/dropdown/dropdown.d.ts +1 -1
  96. package/lib/dropdown/dropdown.variable.css +391 -1
  97. package/lib/dropdown/index.d.ts +136 -94
  98. package/lib/dropdown/index.js +22 -24
  99. package/lib/exception/exception.css +130 -0
  100. package/lib/exception/exception.variable.css +261 -1
  101. package/lib/exception/index.d.ts +102 -41
  102. package/lib/exception/index.js +21 -21
  103. package/lib/fixed-navbar/fixed-navbar.css +134 -4
  104. package/lib/fixed-navbar/fixed-navbar.variable.css +261 -1
  105. package/lib/fixed-navbar/index.d.ts +113 -59
  106. package/lib/fixed-navbar/index.js +2 -3
  107. package/lib/form/form.css +130 -0
  108. package/lib/form/form.d.ts +1 -1
  109. package/lib/form/form.variable.css +261 -1
  110. package/lib/form/index.d.ts +132 -80
  111. package/lib/form/index.js +22 -21
  112. package/lib/icon/angle-double-down-line.js +17 -17
  113. package/lib/icon/angle-double-left-line.js +17 -17
  114. package/lib/icon/angle-double-left.js +17 -17
  115. package/lib/icon/angle-double-right-line.js +17 -17
  116. package/lib/icon/angle-double-right.js +17 -17
  117. package/lib/icon/angle-double-up-line.js +17 -17
  118. package/lib/icon/angle-down-fill.js +17 -17
  119. package/lib/icon/angle-down-line.js +17 -17
  120. package/lib/icon/angle-down.js +17 -17
  121. package/lib/icon/angle-left.js +17 -17
  122. package/lib/icon/angle-right.js +17 -17
  123. package/lib/icon/angle-up-fill.js +17 -17
  124. package/lib/icon/angle-up.js +17 -17
  125. package/lib/icon/archive-fill.js +17 -17
  126. package/lib/icon/arrows-left.js +17 -17
  127. package/lib/icon/arrows-right.js +17 -17
  128. package/lib/icon/assistant.js +17 -17
  129. package/lib/icon/audio-fill.js +17 -17
  130. package/lib/icon/bk.js +17 -17
  131. package/lib/icon/circle.js +17 -17
  132. package/lib/icon/close-line.js +17 -17
  133. package/lib/icon/close.js +17 -17
  134. package/lib/icon/code.js +17 -17
  135. package/lib/icon/cog-shape.js +17 -17
  136. package/lib/icon/collapse-left.js +17 -17
  137. package/lib/icon/copy-shape.js +17 -17
  138. package/lib/icon/copy.js +17 -17
  139. package/lib/icon/data-shape.js +17 -17
  140. package/lib/icon/del.js +17 -17
  141. package/lib/icon/doc-fill.js +17 -17
  142. package/lib/icon/done.js +17 -17
  143. package/lib/icon/down-shape.js +17 -17
  144. package/lib/icon/down-small.js +17 -17
  145. package/lib/icon/edit-line.js +17 -17
  146. package/lib/icon/ellipsis.js +17 -17
  147. package/lib/icon/enlarge-line.js +17 -17
  148. package/lib/icon/error.js +17 -17
  149. package/lib/icon/excel-fill.js +17 -17
  150. package/lib/icon/exclamation-circle-shape.js +17 -17
  151. package/lib/icon/eye.js +17 -17
  152. package/lib/icon/filliscreen-line.js +17 -17
  153. package/lib/icon/fix-line.js +17 -17
  154. package/lib/icon/fix-shape.js +17 -17
  155. package/lib/icon/folder-open.js +17 -17
  156. package/lib/icon/folder-shape-open.js +17 -17
  157. package/lib/icon/folder-shape.js +17 -17
  158. package/lib/icon/folder.js +17 -17
  159. package/lib/icon/funnel.js +17 -17
  160. package/lib/icon/grag-fill.js +17 -17
  161. package/lib/icon/help-document-fill.js +17 -17
  162. package/lib/icon/help-fill.js +17 -17
  163. package/lib/icon/help.js +17 -17
  164. package/lib/icon/image-fill.js +17 -17
  165. package/lib/icon/img-error.js +17 -17
  166. package/lib/icon/img-placehoulder.js +17 -17
  167. package/lib/icon/info-line.js +17 -17
  168. package/lib/icon/info.js +17 -17
  169. package/lib/icon/left-shape.js +17 -17
  170. package/lib/icon/left-turn-line.js +17 -17
  171. package/lib/icon/loading.js +17 -17
  172. package/lib/icon/narrow-line.js +17 -17
  173. package/lib/icon/original.js +17 -17
  174. package/lib/icon/pdf-fill.js +17 -17
  175. package/lib/icon/play-shape.js +17 -17
  176. package/lib/icon/plus.js +17 -17
  177. package/lib/icon/ppt-fill.js +17 -17
  178. package/lib/icon/qq.js +17 -17
  179. package/lib/icon/right-shape.js +17 -17
  180. package/lib/icon/right-turn-line.js +17 -17
  181. package/lib/icon/search.js +17 -17
  182. package/lib/icon/share.js +17 -17
  183. package/lib/icon/spinner.js +17 -17
  184. package/lib/icon/success.js +17 -17
  185. package/lib/icon/switcher-loading.js +17 -17
  186. package/lib/icon/text-all.js +17 -17
  187. package/lib/icon/text-file.js +17 -17
  188. package/lib/icon/text-fill.js +17 -17
  189. package/lib/icon/transfer.js +17 -17
  190. package/lib/icon/tree-application-shape.js +17 -17
  191. package/lib/icon/unfull-screen.js +17 -17
  192. package/lib/icon/unvisible.js +17 -17
  193. package/lib/icon/up-shape.js +17 -17
  194. package/lib/icon/upload.js +17 -17
  195. package/lib/icon/video-fill.js +17 -17
  196. package/lib/icon/warn.js +17 -17
  197. package/lib/icon/weixin-pro.js +17 -17
  198. package/lib/icon/weixin.js +17 -17
  199. package/lib/image/image-viewer.css +130 -0
  200. package/lib/image/image-viewer.variable.css +261 -1
  201. package/lib/image/image.css +130 -0
  202. package/lib/image/image.variable.css +391 -1
  203. package/lib/image/index.d.ts +149 -113
  204. package/lib/image/index.js +26 -27
  205. package/lib/index.js +1 -1
  206. package/lib/info-box/index.js +233 -232
  207. package/lib/info-box/info-box.css +134 -4
  208. package/lib/info-box/info-box.variable.css +261 -1
  209. package/lib/input/index.d.ts +293 -326
  210. package/lib/input/index.js +48 -46
  211. package/lib/input/input.css +205 -75
  212. package/lib/input/input.variable.css +466 -76
  213. package/lib/link/index.d.ts +122 -73
  214. package/lib/link/index.js +2 -2
  215. package/lib/link/link.css +146 -16
  216. package/lib/link/link.variable.css +261 -1
  217. package/lib/loading/index.d.ts +156 -130
  218. package/lib/loading/index.js +33 -32
  219. package/lib/loading/loading.css +146 -16
  220. package/lib/loading/loading.d.ts +1 -1
  221. package/lib/loading/loading.variable.css +407 -17
  222. package/lib/menu/index.d.ts +116 -55
  223. package/lib/menu/index.js +25 -26
  224. package/lib/menu/menu.css +150 -20
  225. package/lib/menu/menu.variable.css +411 -21
  226. package/lib/menu/submenu.css +130 -0
  227. package/lib/menu/submenu.variable.css +261 -1
  228. package/lib/message/index.js +25 -24
  229. package/lib/message/message.css +151 -21
  230. package/lib/message/message.variable.css +261 -1
  231. package/lib/message/messageConstructor.d.ts +5 -5
  232. package/lib/modal/index.d.ts +185 -171
  233. package/lib/modal/index.js +19 -19
  234. package/lib/modal/modal.css +134 -4
  235. package/lib/modal/modal.variable.css +395 -5
  236. package/lib/navigation/index.d.ts +188 -152
  237. package/lib/navigation/index.js +7 -9
  238. package/lib/navigation/navigation.css +132 -2
  239. package/lib/navigation/navigation.variable.css +261 -1
  240. package/lib/notify/index.js +21 -20
  241. package/lib/notify/notify.css +137 -7
  242. package/lib/notify/notify.variable.css +261 -1
  243. package/lib/overflow-title/index.d.ts +256 -343
  244. package/lib/overflow-title/index.js +10 -11
  245. package/lib/pagination/index.d.ts +198 -184
  246. package/lib/pagination/index.js +56 -49
  247. package/lib/pagination/pagination.css +131 -1
  248. package/lib/pagination/pagination.variable.css +261 -1
  249. package/lib/plugin-popover/index.js +135 -233
  250. package/lib/pop-confirm/index.d.ts +153 -115
  251. package/lib/pop-confirm/index.js +4 -5
  252. package/lib/pop-confirm/pop-confirm.css +130 -0
  253. package/lib/pop-confirm/pop-confirm.d.ts +1 -1
  254. package/lib/pop-confirm/pop-confirm.variable.css +261 -1
  255. package/lib/popover/content.d.ts +1 -1
  256. package/lib/popover/index.d.ts +361 -423
  257. package/lib/popover/index.js +135 -233
  258. package/lib/popover/popover.css +130 -0
  259. package/lib/popover/popover.d.ts +1 -1
  260. package/lib/popover/popover.variable.css +261 -1
  261. package/lib/popover/use-popover-init.d.ts +1 -2
  262. package/lib/popover2/index.d.ts +83 -8
  263. package/lib/popover2/index.js +2 -2
  264. package/lib/process/index.d.ts +137 -93
  265. package/lib/process/index.js +226 -226
  266. package/lib/process/process.css +143 -13
  267. package/lib/process/process.variable.css +261 -1
  268. package/lib/progress/index.d.ts +187 -178
  269. package/lib/progress/index.js +21 -22
  270. package/lib/progress/progress.css +134 -4
  271. package/lib/progress/progress.d.ts +2 -2
  272. package/lib/progress/progress.variable.css +395 -5
  273. package/lib/radio/index.d.ts +140 -91
  274. package/lib/radio/index.js +48 -46
  275. package/lib/radio/radio.css +172 -42
  276. package/lib/radio/radio.variable.css +261 -1
  277. package/lib/rate/index.d.ts +112 -55
  278. package/lib/rate/index.js +20 -19
  279. package/lib/rate/rate.css +130 -0
  280. package/lib/rate/rate.variable.css +261 -1
  281. package/lib/resize-layout/index.d.ts +192 -168
  282. package/lib/resize-layout/index.js +21 -20
  283. package/lib/resize-layout/resize-layout.css +130 -0
  284. package/lib/resize-layout/resize-layout.d.ts +2 -2
  285. package/lib/resize-layout/resize-layout.variable.css +261 -1
  286. package/lib/scrollbar/css/scrollbar.css +130 -0
  287. package/lib/scrollbar/css/scrollbar.variable.css +261 -1
  288. package/lib/scrollbar/index.js +38 -38
  289. package/lib/search-select/index.d.ts +901 -684
  290. package/lib/search-select/index.js +274 -274
  291. package/lib/search-select/input.d.ts +2 -2
  292. package/lib/search-select/search-select.css +163 -33
  293. package/lib/search-select/search-select.d.ts +188 -133
  294. package/lib/search-select/search-select.variable.css +424 -34
  295. package/lib/search-select/selected.d.ts +188 -133
  296. package/lib/select/index.d.ts +1333 -1491
  297. package/lib/select/index.js +280 -279
  298. package/lib/select/select.css +169 -39
  299. package/lib/select/select.d.ts +169 -132
  300. package/lib/select/select.variable.css +430 -40
  301. package/lib/select/selectTagInput.d.ts +2 -2
  302. package/lib/shared/index.js +56 -54
  303. package/lib/sideslider/index.d.ts +201 -197
  304. package/lib/sideslider/index.js +228 -227
  305. package/lib/sideslider/sideslider.css +131 -1
  306. package/lib/sideslider/sideslider.variable.css +261 -1
  307. package/lib/slider/index.d.ts +210 -214
  308. package/lib/slider/index.js +225 -226
  309. package/lib/slider/slider.css +135 -5
  310. package/lib/slider/slider.variable.css +261 -1
  311. package/lib/steps/index.d.ts +149 -110
  312. package/lib/steps/index.js +231 -230
  313. package/lib/steps/steps.css +168 -38
  314. package/lib/steps/steps.variable.css +261 -1
  315. package/lib/styles/mixins/animate.css +130 -0
  316. package/lib/styles/mixins/animate.variable.css +261 -1
  317. package/lib/styles/mixins/mixins.css +130 -0
  318. package/lib/styles/mixins/mixins.variable.css +130 -0
  319. package/lib/styles/mixins/popper.css +130 -0
  320. package/lib/styles/mixins/popper.variable.css +261 -1
  321. package/lib/styles/mixins/scroll.css +130 -0
  322. package/lib/styles/mixins/scroll.variable.css +261 -1
  323. package/lib/styles/reset.css +130 -0
  324. package/lib/styles/reset.variable.css +261 -1
  325. package/lib/styles/themes/themes.css +130 -0
  326. package/lib/styles/themes/themes.less +299 -130
  327. package/lib/styles/themes/themes.variable.css +130 -0
  328. package/lib/swiper/index.d.ts +127 -81
  329. package/lib/swiper/index.js +18 -18
  330. package/lib/swiper/swiper.css +130 -0
  331. package/lib/swiper/swiper.variable.css +261 -1
  332. package/lib/switcher/index.d.ts +174 -152
  333. package/lib/switcher/index.js +22 -20
  334. package/lib/switcher/switcher.css +147 -17
  335. package/lib/switcher/switcher.variable.css +408 -18
  336. package/lib/tab/index.d.ts +183 -151
  337. package/lib/tab/index.js +19 -20
  338. package/lib/tab/tab.css +156 -26
  339. package/lib/tab/tab.variable.css +261 -1
  340. package/lib/table/components/table-column.d.ts +1 -1
  341. package/lib/table/hooks/use-columns.d.ts +1 -1
  342. package/lib/table/hooks/use-layout.d.ts +2 -2
  343. package/lib/table/hooks/use-rows.d.ts +1 -1
  344. package/lib/table/index.d.ts +362 -457
  345. package/lib/table/index.js +350 -338
  346. package/lib/table/plugins/head-filter.css +130 -0
  347. package/lib/table/plugins/head-filter.variable.css +261 -1
  348. package/lib/table/plugins/head-sort.css +130 -0
  349. package/lib/table/plugins/head-sort.variable.css +261 -1
  350. package/lib/table/plugins/settings.css +130 -0
  351. package/lib/table/plugins/settings.variable.css +261 -1
  352. package/lib/table/table.css +319 -189
  353. package/lib/table/table.d.ts +1 -1
  354. package/lib/table/table.variable.css +580 -190
  355. package/lib/table-column/index.d.ts +150 -104
  356. package/lib/table-column/index.js +19 -18
  357. package/lib/tag/index.d.ts +142 -95
  358. package/lib/tag/index.js +19 -19
  359. package/lib/tag/tag.css +135 -5
  360. package/lib/tag/tag.variable.css +261 -1
  361. package/lib/tag-input/index.d.ts +540 -755
  362. package/lib/tag-input/index.js +58 -52
  363. package/lib/tag-input/tag-input.css +148 -18
  364. package/lib/tag-input/tag-input.d.ts +5 -5
  365. package/lib/tag-input/tag-input.variable.css +261 -1
  366. package/lib/time-picker/index.d.ts +386 -439
  367. package/lib/time-picker/time-picker.css +130 -0
  368. package/lib/time-picker/time-picker.variable.css +261 -1
  369. package/lib/timeline/index.d.ts +131 -64
  370. package/lib/timeline/index.js +6 -6
  371. package/lib/timeline/timeline.css +149 -19
  372. package/lib/timeline/timeline.variable.css +261 -1
  373. package/lib/transfer/index.d.ts +206 -191
  374. package/lib/transfer/transfer.css +149 -19
  375. package/lib/transfer/transfer.variable.css +261 -1
  376. package/lib/tree/index.d.ts +308 -350
  377. package/lib/tree/index.js +74 -71
  378. package/lib/tree/tree.css +140 -10
  379. package/lib/tree/tree.d.ts +1 -1
  380. package/lib/tree/tree.variable.css +401 -11
  381. package/lib/tree/use-tree-init.d.ts +1 -1
  382. package/lib/upload/index.d.ts +273 -311
  383. package/lib/upload/index.js +264 -261
  384. package/lib/upload/upload.css +157 -27
  385. package/lib/upload/upload.d.ts +2 -2
  386. package/lib/upload/upload.variable.css +418 -28
  387. package/lib/virtual-render/index.d.ts +241 -333
  388. package/lib/virtual-render/index.js +29 -29
  389. package/lib/virtual-render/virtual-render.css +130 -0
  390. package/lib/virtual-render/virtual-render.d.ts +1 -1
  391. package/lib/virtual-render/virtual-render.variable.css +391 -1
  392. package/package.json +1 -1
@@ -43,31 +43,31 @@ function _arrayWithHoles(arr) {
43
43
  if (Array.isArray(arr)) return arr;
44
44
  }
45
45
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
46
- function _iterableToArrayLimit(r, l) {
47
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
48
- if (null != t) {
49
- var e,
50
- n,
51
- i,
52
- u,
53
- a = [],
54
- f = !0,
55
- o = !1;
46
+ function _iterableToArrayLimit(arr, i) {
47
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
48
+ if (null != _i) {
49
+ var _s,
50
+ _e,
51
+ _x,
52
+ _r,
53
+ _arr = [],
54
+ _n = !0,
55
+ _d = !1;
56
56
  try {
57
- if (i = (t = t.call(r)).next, 0 === l) {
58
- if (Object(t) !== t) return;
59
- f = !1;
60
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
61
- } catch (r) {
62
- o = !0, n = r;
57
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
58
+ if (Object(_i) !== _i) return;
59
+ _n = !1;
60
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
61
+ } catch (err) {
62
+ _d = !0, _e = err;
63
63
  } finally {
64
64
  try {
65
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
65
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
66
66
  } finally {
67
- if (o) throw n;
67
+ if (_d) throw _e;
68
68
  }
69
69
  }
70
- return a;
70
+ return _arr;
71
71
  }
72
72
  }
73
73
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
@@ -129,38 +129,38 @@ function _objectWithoutProperties(source, excluded) {
129
129
  return target;
130
130
  }
131
131
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
132
- function _typeof(o) {
132
+ function _typeof(obj) {
133
133
  "@babel/helpers - typeof";
134
134
 
135
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
136
- return typeof o;
137
- } : function (o) {
138
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
139
- }, _typeof(o);
135
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
136
+ return typeof obj;
137
+ } : function (obj) {
138
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
139
+ }, _typeof(obj);
140
140
  }
141
141
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
142
142
 
143
- function toPrimitive(t, r) {
144
- if ("object" != _typeof(t) || !t) return t;
145
- var e = t[Symbol.toPrimitive];
146
- if (void 0 !== e) {
147
- var i = e.call(t, r || "default");
148
- if ("object" != _typeof(i)) return i;
143
+ function _toPrimitive(input, hint) {
144
+ if (_typeof(input) !== "object" || input === null) return input;
145
+ var prim = input[Symbol.toPrimitive];
146
+ if (prim !== undefined) {
147
+ var res = prim.call(input, hint || "default");
148
+ if (_typeof(res) !== "object") return res;
149
149
  throw new TypeError("@@toPrimitive must return a primitive value.");
150
150
  }
151
- return ("string" === r ? String : Number)(t);
151
+ return (hint === "string" ? String : Number)(input);
152
152
  }
153
153
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
154
154
 
155
155
 
156
- function toPropertyKey(t) {
157
- var i = toPrimitive(t, "string");
158
- return "symbol" == _typeof(i) ? i : String(i);
156
+ function _toPropertyKey(arg) {
157
+ var key = _toPrimitive(arg, "string");
158
+ return _typeof(key) === "symbol" ? key : String(key);
159
159
  }
160
160
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
161
161
 
162
162
  function _defineProperty(obj, key, value) {
163
- key = toPropertyKey(key);
163
+ key = _toPropertyKey(key);
164
164
  if (key in obj) {
165
165
  Object.defineProperty(obj, key, {
166
166
  value: value,
@@ -274,7 +274,7 @@ function calcTextareaHeight(targetElement) {
274
274
  height = Math.min(maxHeight, height);
275
275
  }
276
276
  result.height = "".concat(height, "px");
277
- (_hiddenTextarea$paren = hiddenTextarea.parentNode) === null || _hiddenTextarea$paren === void 0 || _hiddenTextarea$paren.removeChild(hiddenTextarea);
277
+ (_hiddenTextarea$paren = hiddenTextarea.parentNode) === null || _hiddenTextarea$paren === void 0 ? void 0 : _hiddenTextarea$paren.removeChild(hiddenTextarea);
278
278
  hiddenTextarea = undefined;
279
279
  return result;
280
280
  }
@@ -379,13 +379,13 @@ function PastEventFunction(_value, _e) {
379
379
  function CompositionEventFunction(evt) {
380
380
  return evt;
381
381
  }
382
- var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_inputEmitEventsType, EVENTS.UPDATE, EventFunction), EVENTS.FOCUS, function (evt) {
382
+ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_inputEmitEventsType, EVENTS.UPDATE, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.FOCUS, function (evt) {
383
383
  return evt;
384
- }), EVENTS.BLUR, function (evt) {
384
+ }), _defineProperty(_inputEmitEventsType, EVENTS.BLUR, function (evt) {
385
385
  return evt;
386
- }), EVENTS.CHANGE, EventFunction), EVENTS.CLEAR, function () {
386
+ }), _defineProperty(_inputEmitEventsType, EVENTS.CHANGE, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.CLEAR, function () {
387
387
  return true;
388
- }), EVENTS.INPUT, EventFunction), EVENTS.KEYPRESS, EventFunction), EVENTS.KEYDOWN, EventFunction), EVENTS.KEYUP, EventFunction), EVENTS.ENTER, EventFunction), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_inputEmitEventsType, EVENTS.PASTE, PastEventFunction), EVENTS.COMPOSITIONSTART, CompositionEventFunction), EVENTS.COMPOSITIONUPDATE, CompositionEventFunction), EVENTS.COMPOSITIONEND, CompositionEventFunction));
388
+ }), _defineProperty(_inputEmitEventsType, EVENTS.INPUT, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.KEYPRESS, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.KEYDOWN, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.KEYUP, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.ENTER, EventFunction), _defineProperty(_inputEmitEventsType, EVENTS.PASTE, PastEventFunction), _defineProperty(_inputEmitEventsType, EVENTS.COMPOSITIONSTART, CompositionEventFunction), _defineProperty(_inputEmitEventsType, EVENTS.COMPOSITIONUPDATE, CompositionEventFunction), _defineProperty(_inputEmitEventsType, EVENTS.COMPOSITIONEND, CompositionEventFunction), _inputEmitEventsType);
389
389
  /* harmony default export */ const input = ((0,external_vue_namespaceObject.defineComponent)({
390
390
  name: 'Input',
391
391
  directives: {
@@ -416,7 +416,8 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
416
416
  value: props.modelValue
417
417
  });
418
418
  var inputCls = (0,external_vue_namespaceObject.computed)(function () {
419
- return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(inputClsPrefix.value, "--").concat(props.size), !!props.size), "resizable", props.resize), 'is-focused', isFocused.value), 'is-readonly', props.readonly && !props.selectReadonly), 'is-disabled', props.disabled), 'is-simplicity', props.behavior === 'simplicity'), "".concat(ctx.attrs["class"]), !!ctx.attrs["class"]), inputClsPrefix.value);
419
+ var _classes;
420
+ return (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(inputClsPrefix.value, "--").concat(props.size), !!props.size), _defineProperty(_classes, "resizable", props.resize), _defineProperty(_classes, 'is-focused', isFocused.value), _defineProperty(_classes, 'is-readonly', props.readonly && !props.selectReadonly), _defineProperty(_classes, 'is-disabled', props.disabled), _defineProperty(_classes, 'is-simplicity', props.behavior === 'simplicity'), _defineProperty(_classes, "".concat(ctx.attrs["class"]), !!ctx.attrs["class"]), _classes), inputClsPrefix.value);
420
421
  });
421
422
  var isOverflow = (0,external_vue_namespaceObject.ref)(false);
422
423
  var textareaCalcStyle = (0,external_vue_namespaceObject.ref)();
@@ -458,7 +459,8 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
458
459
  }, "".concat(inputClsPrefix.value, "--clear-icon"), true), suffixCls);
459
460
  });
460
461
  var maxLengthCls = (0,external_vue_namespaceObject.computed)(function () {
461
- return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty({}, getCls('max-length'), true), 'is-over-limit', ceilMaxLength.value - modelValueLength.value < 0));
462
+ var _classes3;
463
+ return (0,shared_namespaceObject.classes)((_classes3 = {}, _defineProperty(_classes3, getCls('max-length'), true), _defineProperty(_classes3, 'is-over-limit', ceilMaxLength.value - modelValueLength.value < 0), _classes3));
462
464
  });
463
465
  var getValueLimits = function getValueLimits(val) {
464
466
  if (typeof props.maxcharacter === 'number') {
@@ -520,7 +522,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
520
522
  }, function (val) {
521
523
  if (props.withValidate) {
522
524
  var _formItem$validate;
523
- formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 || _formItem$validate.call(formItem, 'change');
525
+ formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 ? void 0 : _formItem$validate.call(formItem, 'change');
524
526
  }
525
527
  innerInputValue.value = {
526
528
  value: val
@@ -532,7 +534,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
532
534
  // Hack: 修复autofocus属性失效问题 原生autofocus属性只在页面加载时生效
533
535
  if (Object.prototype.hasOwnProperty.call(ctx.attrs, 'autofocus')) {
534
536
  var _inputRef$value, _inputRef$value$focus;
535
- (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || (_inputRef$value$focus = _inputRef$value.focus) === null || _inputRef$value$focus === void 0 || _inputRef$value$focus.call(_inputRef$value);
537
+ (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || (_inputRef$value$focus = _inputRef$value.focus) === null || _inputRef$value$focus === void 0 ? void 0 : _inputRef$value$focus.call(_inputRef$value);
536
538
  }
537
539
  });
538
540
  ctx.expose({
@@ -595,7 +597,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
595
597
  ctx.emit(EVENTS.BLUR, e);
596
598
  if (props.withValidate) {
597
599
  var _formItem$validate2;
598
- formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0 || _formItem$validate2.call(formItem, 'blur');
600
+ formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0 ? void 0 : _formItem$validate2.call(formItem, 'blur');
599
601
  }
600
602
  }
601
603
  // 事件句柄生成器
@@ -1,3 +1,133 @@
1
+ :root {
2
+ --bk-prefix: bk;
3
+ --popover-max-height: 216px;
4
+ --primary-color: #3a84ff;
5
+ --success-color: #2dcb56;
6
+ --warning-color: #ff9c01;
7
+ --danger-color: #ea3636;
8
+ --default-color: #63656e;
9
+ --gray-color: #979ba5;
10
+ --light-gray: #c4c6cc;
11
+ --white-color: white;
12
+ --whitesmoke-color: #fafbfd;
13
+ --disable-color: #dcdee5;
14
+ --disable-bg-color: #f9fafd;
15
+ --border-color: #dcdee5;
16
+ --font-size-base: 12px;
17
+ --font-size-medium: 14px;
18
+ --font-size-large: 16px;
19
+ --line-height-base: 16px;
20
+ --line-height-medium: 16px;
21
+ --line-height-large: 18px;
22
+ --component-size-small: 26px;
23
+ --component-size-base: 32px;
24
+ --component-size-large: 40px;
25
+ --component-size-small-padding: 0 12px;
26
+ --component-size-base-padding: 0 14px;
27
+ --component-size-large-padding: 0 16px;
28
+ --border-width-base: 1px;
29
+ --border-style-base: solid;
30
+ --border-radius-base: 2px;
31
+ --border-style-color: var(--light-gray);
32
+ --input-disabled-bg: #fafbfd;
33
+ --input-disabled-border: var(--disable-color);
34
+ --input-height-base: var(--component-size-base);
35
+ --input-color: var(--default-color);
36
+ --input-bg: white;
37
+ --input-border-color: var(--light-gray);
38
+ --input-broder-radius: 3px;
39
+ --input-shadow-color: #a3c5fd;
40
+ --input-horizontal-padding: 8px;
41
+ --input-block-color: #f5f7fa;
42
+ --input-block-hover-color: #eaebf0;
43
+ --input-icon-size: var(--font-size-medium);
44
+ --input-maxlength-color: #979ba5;
45
+ --button-primary-hover-color: #5594fa;
46
+ --button-danger-hover-color: #ff5656;
47
+ --button-success-hover-color: #45e35f;
48
+ --button-warning-hover-color: #ffb848;
49
+ --button-default-hover-border-color: #979ba5;
50
+ --button-primary-active-color: #2c77f4;
51
+ --button-danger-active-color: #db2626;
52
+ --button-success-active-color: #1ab943;
53
+ --button-warning-active-color: #eb9000;
54
+ --button-selected-bg-color: #e1ecff;
55
+ --button-disabled-selected-bg-color: #f0f1f5;
56
+ --radio-font-color: #63656e;
57
+ --radio-active-color: #3a84ff;
58
+ --radio-hover-border-color: #979ba5;
59
+ --radio-disabled-border: #dcdee5;
60
+ --radio-disabled-font-color: #c4c6cc;
61
+ --radio-disabled-checked-bg: #a3c5fd;
62
+ --radio-button-checked-bg: #e1ecff;
63
+ --radio-button-disabled-checked-bg: #fafbfd;
64
+ --checkbox-disabled-checked-bg: #a3c5fd;
65
+ --fixed-navbar-background: #fff;
66
+ --fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
67
+ --switch-default-color: #fff;
68
+ --switch-grey-color: #c4c6cc;
69
+ --breadcrumb-black-color: #979ba5;
70
+ --breadcrumb-primary-hover-color: #0082ff;
71
+ --breadcrumb-fn-main-color: #63656e;
72
+ --link-default-hover-color: #979ba5;
73
+ --link-primary-hover-color: #699df4;
74
+ --link-success-hover-color: #45e35f;
75
+ --link-warning-hover-color: #ffb848;
76
+ --link-danger-hover-color: #ff5656;
77
+ --link-default-disabled-color: #dcdee5;
78
+ --link-primary-disabled-color: #a3c5fd;
79
+ --link-success-disabled-color: #94f5a4;
80
+ --link-warning-disabled-color: #ffd695;
81
+ --link-danger-disabled-color: #fd9c9c;
82
+ --message-color: var(--default-color);
83
+ --message-primary-bg-color: #f0f8ff;
84
+ --message-primary-border-color: #e1ecff;
85
+ --message-primary-shadow-color: #e1e8f4;
86
+ --message-warning-bg-color: #fff4e2;
87
+ --message-warning-border-color: #ffe8c3;
88
+ --message-warning-shadow-color: #ede6db;
89
+ --message-success-bg-color: #f2fff4;
90
+ --message-success-border-color: #dcffe2;
91
+ --message-success-shadow-color: #cef0d7;
92
+ --message-danger-bg-color: #ffeded;
93
+ --message-danger-border-color: #ffdddd;
94
+ --message-danger-shadow-color: #f6dada;
95
+ --slider-default-bg: #dcdee5;
96
+ --slider-disable-bar-bg: #979ba5;
97
+ --menu-bg-color: #182132;
98
+ --submenu-bg-color: #151d2c;
99
+ --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
100
+ --menu-color: #96a2b9;
101
+ --menu-group-color: var(--default-color);
102
+ --menu-width: 260px;
103
+ --menu-collapse-width: 60px;
104
+ --menu-active-color: white;
105
+ --nav-header-bg-color: #182132;
106
+ --nav-bg-color: #182132;
107
+ --date-picker-disabled-bg: #fafbfd;
108
+ --date-picker-dropdown-mb: 4px;
109
+ --date-picker-dropdown-bg: #fff;
110
+ --table-bg-color: var(--white-color);
111
+ --table-border-color: #dcdee5;
112
+ --table-strip-color: #fafbfd;
113
+ --table-head-bg-color: #fafbfd;
114
+ --table-head-font-color: #313238;
115
+ --table-body-font-color: #63656e;
116
+ --table-row-hover-bg-color: #f5f7fa;
117
+ --table-row-active-bg-color: #f0f1f5;
118
+ --cascader-panel-border-color: #dcdee5;
119
+ --cascader-panel-hover: #f5f7fa;
120
+ --cascader-panel-active: #e1ecff;
121
+ --cascader-panel-disabled-bg: #fff;
122
+ --search-select-focus-border-color: var(--primary-color);
123
+ --search-select-focus-color: #3c96ff;
124
+ --search-select-font-color: var(--default-color);
125
+ --search-select-placeholder-color: var(--light-gray);
126
+ --search-select-message-color: var(--danger-color);
127
+ --search-select-menu-border-color: var(--disable-color);
128
+ --select-active-color: #e1ecff;
129
+ --select-hover-color: #f5f7fa;
130
+ }
1
131
  @keyframes loading-scale-animate {
2
132
  0% {
3
133
  transform: scale(1);
@@ -75,19 +205,19 @@
75
205
  display: inline-flex;
76
206
  width: 100%;
77
207
  overflow: hidden;
78
- font-size: 12px;
208
+ font-size: var(--font-size-base);
79
209
  line-height: var(--textarea-line-height);
80
- color: #63656e;
210
+ color: var(--input-color);
81
211
  background-color: white;
82
- border: 1px solid #c4c6cc;
83
- border-radius: 2px;
212
+ border: var(--border-width-base) var(--border-style-base) var(--input-border-color);
213
+ border-radius: var(--border-radius-base);
84
214
  box-sizing: border-box;
85
215
  transition: all 0.3s;
86
216
  flex-direction: column;
87
217
  }
88
218
  .bk-textarea ::placeholder {
89
- font-size: 12px;
90
- color: #c4c6cc;
219
+ font-size: var(--font-size-base);
220
+ color: var(--light-gray);
91
221
  }
92
222
  .bk-textarea.resizable {
93
223
  resize: vertical;
@@ -105,8 +235,8 @@
105
235
  }
106
236
  .bk-textarea.is-disabled,
107
237
  .bk-textarea.is-readonly {
108
- background-color: #fafbfd;
109
- border-color: #dcdee5;
238
+ background-color: var(--input-disabled-bg);
239
+ border-color: var(--disable-color);
110
240
  }
111
241
  .bk-textarea.is-disabled .bk-input--prefix-area,
112
242
  .bk-textarea.is-readonly .bk-input--prefix-area,
@@ -115,14 +245,14 @@
115
245
  .bk-textarea.is-disabled .bk-input--suffix-icon,
116
246
  .bk-textarea.is-readonly .bk-input--suffix-icon {
117
247
  cursor: not-allowed;
118
- background-color: #fafbfd;
248
+ background-color: var(--input-disabled-bg);
119
249
  }
120
250
  .bk-textarea.is-disabled input,
121
251
  .bk-textarea.is-readonly input,
122
252
  .bk-textarea.is-disabled textarea,
123
253
  .bk-textarea.is-readonly textarea {
124
254
  cursor: not-allowed;
125
- background-color: #fafbfd;
255
+ background-color: var(--input-disabled-bg);
126
256
  opacity: 1;
127
257
  }
128
258
  .bk-textarea.is-readonly input,
@@ -135,34 +265,34 @@
135
265
  line-height: 1.5;
136
266
  text-align: left;
137
267
  border: 0;
138
- border-radius: 2px;
268
+ border-radius: var(--border-radius-base);
139
269
  outline: none;
140
270
  resize: none;
141
271
  }
142
272
  .bk-textarea--max-length {
143
- padding-right: 8px;
273
+ padding-right: var(--input-horizontal-padding);
144
274
  margin: 0;
145
275
  margin-left: auto;
146
- font-size: 12px;
276
+ font-size: var(--font-size-base);
147
277
  text-align: right;
148
278
  transform: scale(0.8);
149
279
  justify-content: flex-end;
150
280
  }
151
281
  .bk-textarea--max-length.is-over-limit {
152
- color: #ea3636;
282
+ color: var(--danger-color);
153
283
  }
154
284
  .bk-textarea--max-length span {
155
- color: #979ba5;
285
+ color: var(--input-maxlength-color);
156
286
  }
157
287
  .bk-textarea.is-focused:not(.is-readonly) {
158
- border-color: #3a84ff;
288
+ border-color: var(--primary-color);
159
289
  outline: 0;
160
- box-shadow: 0px 0px 3px 0px #a3c5fd;
290
+ box-shadow: 0px 0px 3px 0px var(--input-shadow-color);
161
291
  }
162
292
  .bk-textarea--suffix-icon {
163
- color: #979ba5;
164
- padding-right: 8px;
165
- font-size: 14px;
293
+ color: var(--gray-color);
294
+ padding-right: var(--input-horizontal-padding);
295
+ font-size: var(--font-size-medium);
166
296
  margin: 0;
167
297
  margin-left: auto;
168
298
  text-align: right;
@@ -182,20 +312,20 @@
182
312
  display: inline-flex;
183
313
  align-items: stretch;
184
314
  width: 100%;
185
- height: 32px;
186
- font-size: 12px;
187
- border: 1px solid #c4c6cc;
188
- border-radius: 2px;
315
+ height: var(--input-height-base);
316
+ font-size: var(--font-size-base);
317
+ border: var(--border-width-base) var(--border-style-base) var(--input-border-color);
318
+ border-radius: var(--border-radius-base);
189
319
  transition: all 0.3s;
190
320
  }
191
321
  .bk-input ::placeholder {
192
- font-size: 12px;
193
- color: #c4c6cc;
322
+ font-size: var(--font-size-base);
323
+ color: var(--light-gray);
194
324
  }
195
325
  .bk-input.is-disabled,
196
326
  .bk-input.is-readonly {
197
- background-color: #fafbfd;
198
- border-color: #dcdee5;
327
+ background-color: var(--input-disabled-bg);
328
+ border-color: var(--disable-color);
199
329
  }
200
330
  .bk-input.is-disabled .bk-input--prefix-area,
201
331
  .bk-input.is-readonly .bk-input--prefix-area,
@@ -204,14 +334,14 @@
204
334
  .bk-input.is-disabled .bk-input--suffix-icon,
205
335
  .bk-input.is-readonly .bk-input--suffix-icon {
206
336
  cursor: not-allowed;
207
- background-color: #fafbfd;
337
+ background-color: var(--input-disabled-bg);
208
338
  }
209
339
  .bk-input.is-disabled input,
210
340
  .bk-input.is-readonly input,
211
341
  .bk-input.is-disabled textarea,
212
342
  .bk-input.is-readonly textarea {
213
343
  cursor: not-allowed;
214
- background-color: #fafbfd;
344
+ background-color: var(--input-disabled-bg);
215
345
  opacity: 1;
216
346
  }
217
347
  .bk-input.is-readonly input,
@@ -219,7 +349,7 @@
219
349
  cursor: auto;
220
350
  }
221
351
  .bk-input:hover:not(.is-disabled) {
222
- border-color: #979ba5;
352
+ border-color: var(--gray-color);
223
353
  }
224
354
  .bk-input:hover:not(.is-disabled) .show-clear-only-hover {
225
355
  display: flex;
@@ -227,25 +357,25 @@
227
357
  .bk-input.is-simplicity {
228
358
  background-color: transparent;
229
359
  border-color: transparent;
230
- border-bottom-color: #c4c6cc;
360
+ border-bottom-color: var(--input-border-color);
231
361
  }
232
362
  .bk-input.is-simplicity:hover:not(.is-disabled) {
233
- background-color: #f5f7fa;
363
+ background-color: var(--input-block-color);
234
364
  border-color: transparent;
235
- border-bottom-color: #c4c6cc;
365
+ border-bottom-color: var(--light-gray);
236
366
  box-shadow: none;
237
367
  }
238
368
  .bk-input.is-simplicity:hover:not(.is-disabled) .bk-input--text,
239
369
  .bk-input.is-simplicity:hover:not(.is-disabled) .bk-input--suffix-icon {
240
- background-color: #f5f7fa;
370
+ background-color: var(--input-block-color);
241
371
  }
242
372
  .bk-input--suffix-icon {
243
373
  display: flex;
244
374
  height: 100%;
245
- padding-right: 8px;
246
- font-size: 14px;
247
- color: #c4c6cc;
248
- background-color: white;
375
+ padding-right: var(--input-horizontal-padding);
376
+ font-size: var(--input-icon-size);
377
+ color: var(--light-gray);
378
+ background-color: var(--input-bg);
249
379
  align-items: center;
250
380
  align-self: center;
251
381
  flex-shrink: 0;
@@ -262,86 +392,86 @@
262
392
  flex-shrink: 0;
263
393
  }
264
394
  .bk-input--clear-icon:hover {
265
- color: #979ba5;
395
+ color: var(--gray-color);
266
396
  }
267
397
  .bk-input--large {
268
- height: 40px;
269
- font-size: 14px;
398
+ height: var(--component-size-large);
399
+ font-size: var(--font-size-medium);
270
400
  }
271
401
  .bk-input--large ::placeholder {
272
- font-size: 14px;
273
- color: #c4c6cc;
402
+ font-size: var(--font-size-medium);
403
+ color: var(--light-gray);
274
404
  }
275
405
  .bk-input--large .bk-input--max-length {
276
- font-size: 16px;
406
+ font-size: var(--font-size-large);
277
407
  }
278
408
  .bk-input--large .bk-input--number-control span:first-child {
279
409
  margin-bottom: 4px;
280
410
  }
281
411
  .bk-input--small {
282
- height: 26px;
283
- font-size: 12px;
412
+ height: var(--component-size-small);
413
+ font-size: var(--font-size-base);
284
414
  }
285
415
  .bk-input--small .bk-input--max-length {
286
- font-size: 12px;
416
+ font-size: var(--font-size-base);
287
417
  }
288
418
  .bk-input--default {
289
- font-size: 12px;
419
+ font-size: var(--font-size-base);
290
420
  }
291
421
  .bk-input--default .bk-input--max-length {
292
- font-size: 12px;
422
+ font-size: var(--font-size-base);
293
423
  }
294
424
  .bk-input.is-focused:not(.is-readonly) {
295
- border-color: #3a84ff;
425
+ border-color: var(--primary-color);
296
426
  outline: 0;
297
- box-shadow: 0px 0px 3px 0px #a3c5fd;
427
+ box-shadow: 0px 0px 3px 0px var(--input-shadow-color);
298
428
  }
299
429
  .bk-input.is-focused:not(.is-readonly).is-simplicity {
300
430
  border-color: transparent;
301
- border-bottom-color: #3a84ff;
431
+ border-bottom-color: var(--primary-color);
302
432
  box-shadow: none;
303
433
  }
304
434
  .bk-input.is-focused:not(.is-readonly).is-simplicity .bk-input--text,
305
435
  .bk-input.is-focused:not(.is-readonly).is-simplicity .bk-input--suffix-icon {
306
- background-color: #f5f7fa;
436
+ background-color: var(--input-block-color);
307
437
  }
308
438
  .bk-input--prefix-area,
309
439
  .bk-input--suffix-area {
310
440
  display: flex;
311
- padding: 0 8px;
312
- color: #63656e;
313
- background-color: #f5f7fa;
314
- border-right: 1px solid #c4c6cc;
441
+ padding: 0 var(--input-horizontal-padding);
442
+ color: var(--default-color);
443
+ background-color: var(--input-block-color);
444
+ border-right: 1px solid var(--input-border-color);
315
445
  align-items: center;
316
446
  }
317
447
  .bk-input--suffix-area {
318
448
  border: 0;
319
- border-left: 1px solid #c4c6cc;
449
+ border-left: 1px solid var(--input-border-color);
320
450
  }
321
451
  .bk-input--max-length {
322
452
  align-self: center;
323
- padding-right: 8px;
453
+ padding-right: var(--input-horizontal-padding);
324
454
  font-size: 12px;
325
455
  transform: scale(0.8);
326
456
  }
327
457
  .bk-input--max-length.is-over-limit {
328
- color: #ea3636;
458
+ color: var(--danger-color);
329
459
  }
330
460
  .bk-input--max-length span {
331
- color: #979ba5;
461
+ color: var(--input-maxlength-color);
332
462
  }
333
463
  .bk-input--text {
334
464
  width: 100%;
335
- padding: 0 8px;
465
+ padding: 0 var(--input-horizontal-padding);
336
466
  overflow: hidden;
337
467
  line-height: 1;
338
- color: #63656e;
468
+ color: var(--input-color);
339
469
  text-overflow: ellipsis;
340
470
  white-space: nowrap;
341
- background-color: white;
471
+ background-color: var(--input-bg);
342
472
  background-image: none;
343
473
  border: none;
344
- border-radius: 2px;
474
+ border-radius: var(--border-radius-base);
345
475
  outline: none;
346
476
  box-sizing: border-box;
347
477
  transition: all 0.3s;
@@ -382,39 +512,39 @@
382
512
  display: flex;
383
513
  overflow: hidden;
384
514
  line-height: 1;
385
- color: #979ba5;
515
+ color: var(--gray-color);
386
516
  text-align: center;
387
517
  cursor: pointer;
388
- background-color: #f5f7fa;
518
+ background-color: var(--input-block-color);
389
519
  flex: 1;
390
520
  align-items: center;
391
521
  }
392
522
  .bk-input--number-control span.is-disabled {
393
- color: #c4c6cc;
523
+ color: var(--light-gray);
394
524
  cursor: not-allowed;
395
525
  }
396
526
  .bk-input--number-control svg {
397
- font-size: 14px;
527
+ font-size: var(--input-icon-size);
398
528
  }
399
529
  .bk-input--number-control span:first-child {
400
530
  transform: rotate(180deg);
401
531
  }
402
532
  .bk-input--number-control span:not(.is-disabled):hover {
403
- background-color: #eaebf0;
533
+ background-color: var(--input-block-hover-color);
404
534
  }
405
535
  /* 针对 Chrome、Safari 和新版 Edge 的样式 */
406
536
  input:-webkit-autofill,
407
537
  input:-webkit-autofill:hover,
408
538
  input:-webkit-autofill:focus,
409
539
  input:-webkit-autofill:active {
410
- -webkit-box-shadow: 0 0 0 100px white inset !important;
411
- box-shadow: 0 0 0 100px white inset !important;
540
+ -webkit-box-shadow: 0 0 0 100px var(--input-bg) inset !important;
541
+ box-shadow: 0 0 0 100px var(--input-bg) inset !important;
412
542
  }
413
543
  /* 针对 Firefox 的样式 */
414
544
  input:-moz-autofill,
415
545
  input:-moz-autofill:hover,
416
546
  input:-moz-autofill:focus,
417
547
  input:-moz-autofill:active {
418
- -moz-box-shadow: 0 0 0 100px white inset !important;
419
- box-shadow: 0 0 0 100px white inset !important;
548
+ -moz-box-shadow: 0 0 0 100px var(--input-bg) inset !important;
549
+ box-shadow: 0 0 0 100px var(--input-bg) inset !important;
420
550
  }