bkui-vue 0.0.1-beta.43 → 0.0.1-beta.430

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 (700) hide show
  1. package/License.txt +14 -0
  2. package/dist/index.cjs.js +160 -35
  3. package/dist/index.esm.js +35269 -14370
  4. package/dist/index.umd.js +160 -35
  5. package/dist/locale/en.esm.js +2 -0
  6. package/dist/locale/en.esm.js.map +1 -0
  7. package/dist/locale/en.umd.js +2 -0
  8. package/dist/locale/en.umd.js.map +1 -0
  9. package/dist/locale/zh-cn.esm.js +2 -0
  10. package/dist/locale/zh-cn.esm.js.map +1 -0
  11. package/dist/locale/zh-cn.umd.js +2 -0
  12. package/dist/locale/zh-cn.umd.js.map +1 -0
  13. package/dist/style.css +1 -1
  14. package/dist/style.variable.css +1 -0
  15. package/lib/affix/affix.css +3 -0
  16. package/lib/affix/affix.d.ts +47 -0
  17. package/lib/affix/affix.less +5 -0
  18. package/lib/affix/affix.variable.css +125 -0
  19. package/lib/affix/index.d.ts +143 -0
  20. package/lib/affix/index.js +1 -0
  21. package/lib/alert/alert.css +9 -3
  22. package/lib/alert/alert.d.ts +5 -5
  23. package/lib/alert/alert.less +29 -20
  24. package/lib/alert/alert.variable.css +41 -6
  25. package/lib/alert/index.d.ts +11 -11
  26. package/lib/alert/index.js +1 -0
  27. package/lib/animate-number/animate-number.d.ts +1 -1
  28. package/lib/animate-number/index.d.ts +4 -4
  29. package/lib/animate-number/{animate-number.js → index.js} +1 -1
  30. package/lib/backtop/backtop.css +8 -0
  31. package/lib/backtop/backtop.d.ts +3 -3
  32. package/lib/backtop/backtop.less +8 -0
  33. package/lib/backtop/backtop.variable.css +40 -3
  34. package/lib/backtop/index.d.ts +10 -10
  35. package/lib/backtop/index.js +1 -0
  36. package/lib/badge/badge.css +7 -10
  37. package/lib/badge/badge.d.ts +28 -7
  38. package/lib/badge/badge.less +9 -11
  39. package/lib/badge/badge.variable.css +39 -13
  40. package/lib/badge/index.d.ts +68 -18
  41. package/lib/badge/index.js +1 -0
  42. package/lib/breadcrumb/breadcrumb-item.d.ts +4 -2
  43. package/lib/breadcrumb/breadcrumb.css +51 -0
  44. package/lib/breadcrumb/breadcrumb.variable.css +88 -8
  45. package/lib/breadcrumb/index.d.ts +4 -2
  46. package/lib/breadcrumb/index.js +1 -0
  47. package/lib/button/button-group.d.ts +2 -2
  48. package/lib/button/button.css +85 -50
  49. package/lib/button/button.d.ts +44 -24
  50. package/lib/button/button.less +72 -42
  51. package/lib/button/button.variable.css +117 -53
  52. package/lib/button/index.d.ts +74 -44
  53. package/lib/button/index.js +1 -0
  54. package/lib/card/card.css +96 -1
  55. package/lib/card/card.d.ts +47 -6
  56. package/lib/card/card.less +50 -2
  57. package/lib/card/card.variable.css +132 -8
  58. package/lib/card/index.d.ts +113 -17
  59. package/lib/card/index.js +1 -0
  60. package/lib/cascader/cascader-panel.d.ts +100 -0
  61. package/lib/cascader/cascader.css +309 -0
  62. package/lib/cascader/cascader.d.ts +341 -0
  63. package/lib/cascader/cascader.less +276 -0
  64. package/lib/cascader/cascader.variable.css +431 -0
  65. package/lib/cascader/index.d.ts +957 -0
  66. package/lib/cascader/index.js +1 -0
  67. package/lib/cascader/interface.d.ts +51 -0
  68. package/lib/cascader/node.d.ts +31 -0
  69. package/lib/cascader/store.d.ts +25 -0
  70. package/lib/checkbox/checkbox-group.d.ts +16 -0
  71. package/lib/checkbox/checkbox.css +51 -11
  72. package/lib/checkbox/checkbox.d.ts +36 -24
  73. package/lib/checkbox/checkbox.less +85 -32
  74. package/lib/checkbox/checkbox.variable.css +83 -14
  75. package/lib/checkbox/common.d.ts +4 -3
  76. package/lib/checkbox/index.d.ts +70 -38
  77. package/lib/checkbox/index.js +1 -0
  78. package/lib/checkbox/type.d.ts +2 -6
  79. package/lib/code-diff/code-diff.css +27 -7
  80. package/lib/code-diff/code-diff.d.ts +1 -1
  81. package/lib/code-diff/code-diff.less +42 -7
  82. package/lib/code-diff/code-diff.variable.css +59 -10
  83. package/lib/code-diff/index.js +1 -0
  84. package/lib/collapse/collapse-panel.d.ts +103 -0
  85. package/lib/collapse/collapse.css +69 -14
  86. package/lib/collapse/collapse.d.ts +66 -52
  87. package/lib/collapse/collapse.less +112 -30
  88. package/lib/collapse/collapse.variable.css +191 -14
  89. package/lib/collapse/index.d.ts +266 -20
  90. package/lib/collapse/index.js +1 -0
  91. package/lib/collapse/props.d.ts +131 -0
  92. package/lib/collapse/utils.d.ts +11 -0
  93. package/lib/collapse-transition/collapse-transition.css +93 -0
  94. package/lib/collapse-transition/collapse-transition.d.ts +15 -0
  95. package/lib/collapse-transition/collapse-transition.less +111 -0
  96. package/lib/collapse-transition/collapse-transition.variable.css +215 -0
  97. package/lib/collapse-transition/index.d.ts +2 -0
  98. package/lib/collapse-transition/index.js +1 -0
  99. package/lib/color-picker/color-picker.css +275 -0
  100. package/lib/color-picker/color-picker.d.ts +144 -0
  101. package/lib/color-picker/color-picker.less +325 -0
  102. package/lib/color-picker/color-picker.variable.css +397 -0
  103. package/lib/color-picker/components/color-input.d.ts +42 -0
  104. package/lib/color-picker/components/hue-slider.d.ts +41 -0
  105. package/lib/color-picker/components/input-container.d.ts +42 -0
  106. package/lib/color-picker/components/recommend-colors.d.ts +51 -0
  107. package/lib/color-picker/components/saturation-panel.d.ts +41 -0
  108. package/lib/color-picker/index.d.ts +254 -0
  109. package/lib/color-picker/index.js +1 -0
  110. package/lib/color-picker/utils.d.ts +37 -0
  111. package/lib/components.d.ts +30 -8
  112. package/lib/components.js +1 -0
  113. package/lib/config-provider/config-provider.css +0 -0
  114. package/lib/config-provider/config-provider.d.ts +259 -0
  115. package/lib/config-provider/config-provider.less +1 -0
  116. package/lib/config-provider/config-provider.variable.css +122 -0
  117. package/lib/config-provider/index.d.ts +562 -0
  118. package/lib/config-provider/index.js +1 -0
  119. package/lib/config-provider/type.d.ts +125 -0
  120. package/lib/container/col.d.ts +51 -0
  121. package/lib/container/container.css +91 -0
  122. package/lib/container/container.d.ts +83 -0
  123. package/lib/container/container.less +20 -0
  124. package/lib/container/container.variable.css +213 -0
  125. package/lib/container/index.d.ts +223 -0
  126. package/lib/container/index.js +1 -0
  127. package/lib/container/row.d.ts +4 -0
  128. package/lib/date-picker/base/confirm.d.ts +74 -0
  129. package/lib/date-picker/base/date-table.d.ts +96 -0
  130. package/lib/date-picker/base/month-table.d.ts +117 -0
  131. package/lib/date-picker/base/picker-dropdown.d.ts +74 -0
  132. package/lib/date-picker/base/time-spinner.d.ts +170 -0
  133. package/lib/date-picker/base/year-table.d.ts +117 -0
  134. package/lib/date-picker/date-picker.css +28 -1
  135. package/lib/date-picker/date-picker.d.ts +49 -20
  136. package/lib/date-picker/date-picker.less +106 -74
  137. package/lib/date-picker/date-picker.variable.css +60 -4
  138. package/lib/date-picker/index.d.ts +121 -54
  139. package/lib/date-picker/index.js +1 -0
  140. package/lib/date-picker/interface.d.ts +11 -1
  141. package/lib/date-picker/panel/date-range.d.ts +328 -0
  142. package/lib/date-picker/panel/date.d.ts +206 -0
  143. package/lib/date-picker/panel/time-range.d.ts +489 -0
  144. package/lib/date-picker/panel/time.d.ts +448 -0
  145. package/lib/date-picker/props.d.ts +55 -5
  146. package/lib/date-picker/time-picker.d.ts +381 -0
  147. package/lib/date-picker/utils.d.ts +22 -2
  148. package/lib/dialog/dialog.css +136 -24
  149. package/lib/dialog/dialog.d.ts +249 -58
  150. package/lib/dialog/dialog.less +100 -38
  151. package/lib/dialog/dialog.variable.css +258 -24
  152. package/lib/dialog/index.d.ts +553 -126
  153. package/lib/dialog/index.js +1 -0
  154. package/lib/dialog/props.d.ts +124 -0
  155. package/lib/directives/ellipsis.d.ts +7 -0
  156. package/lib/directives/index.d.ts +2 -0
  157. package/lib/directives/index.js +2 -0
  158. package/lib/directives/tooltips.d.ts +2 -1
  159. package/lib/dist.index.js +1 -0
  160. package/lib/divider/divider.d.ts +15 -15
  161. package/lib/divider/divider.variable.css +32 -3
  162. package/lib/divider/index.d.ts +34 -34
  163. package/lib/divider/index.js +1 -0
  164. package/lib/divider/props.d.ts +6 -6
  165. package/lib/dropdown/dropdown.css +13 -7
  166. package/lib/dropdown/dropdown.d.ts +46 -14
  167. package/lib/dropdown/dropdown.less +47 -34
  168. package/lib/dropdown/dropdown.variable.css +45 -10
  169. package/lib/dropdown/index.d.ts +99 -35
  170. package/lib/dropdown/index.js +1 -0
  171. package/lib/exception/exception.css +40 -14
  172. package/lib/exception/exception.d.ts +31 -11
  173. package/lib/exception/exception.less +59 -22
  174. package/lib/exception/exception.variable.css +72 -17
  175. package/lib/exception/index.d.ts +43 -26
  176. package/lib/exception/index.js +1 -0
  177. package/lib/exception/typings/index.d.ts +4 -0
  178. package/lib/fixed-navbar/fixed-navbar.d.ts +16 -2
  179. package/lib/fixed-navbar/fixed-navbar.variable.css +32 -3
  180. package/lib/fixed-navbar/index.d.ts +40 -5
  181. package/lib/fixed-navbar/{fixed-navbar.js → index.js} +1 -1
  182. package/lib/form/compose-form-item.d.ts +16 -0
  183. package/lib/form/form-item.d.ts +22 -7
  184. package/lib/form/form.css +103 -15
  185. package/lib/form/form.d.ts +47 -14
  186. package/lib/form/form.less +152 -46
  187. package/lib/form/form.variable.css +225 -15
  188. package/lib/form/index.d.ts +118 -35
  189. package/lib/form/index.js +1 -0
  190. package/lib/form/type.d.ts +11 -8
  191. package/lib/form/utils.d.ts +2 -0
  192. package/lib/form/validator.d.ts +1 -0
  193. package/lib/icon/angle-double-down-line.js +1 -1
  194. package/lib/icon/angle-double-left-line.js +1 -1
  195. package/lib/icon/angle-double-left.js +1 -1
  196. package/lib/icon/angle-double-right-line.js +1 -1
  197. package/lib/icon/angle-double-right.js +1 -1
  198. package/lib/icon/angle-double-up-line.js +1 -1
  199. package/lib/icon/angle-down-fill.js +1 -1
  200. package/lib/icon/angle-down-line.js +1 -1
  201. package/lib/icon/angle-down.js +1 -1
  202. package/lib/icon/angle-left.js +1 -1
  203. package/lib/icon/angle-right.js +1 -1
  204. package/lib/icon/angle-up-fill.js +1 -1
  205. package/lib/icon/angle-up.js +1 -1
  206. package/lib/icon/archive-fill.d.ts +4 -0
  207. package/lib/icon/archive-fill.js +1 -0
  208. package/lib/icon/arrows-left.js +1 -1
  209. package/lib/icon/arrows-right.js +1 -1
  210. package/lib/icon/audio-fill.d.ts +4 -0
  211. package/lib/icon/audio-fill.js +1 -0
  212. package/lib/icon/bk.js +1 -1
  213. package/lib/icon/circle.js +1 -1
  214. package/lib/icon/close-line.d.ts +4 -0
  215. package/lib/icon/close-line.js +1 -0
  216. package/lib/icon/close.js +1 -1
  217. package/lib/icon/code.js +1 -1
  218. package/lib/icon/cog-shape.js +1 -1
  219. package/lib/icon/collapse-left.js +1 -1
  220. package/lib/icon/copy.js +1 -1
  221. package/lib/icon/data-shape.d.ts +4 -0
  222. package/lib/icon/data-shape.js +1 -0
  223. package/lib/icon/del.d.ts +4 -0
  224. package/lib/icon/del.js +1 -0
  225. package/lib/icon/doc-fill.d.ts +4 -0
  226. package/lib/icon/doc-fill.js +1 -0
  227. package/lib/icon/done.js +1 -1
  228. package/lib/icon/down-shape.js +1 -1
  229. package/lib/icon/down-small.js +1 -1
  230. package/lib/icon/edit-line.d.ts +4 -0
  231. package/lib/icon/edit-line.js +1 -0
  232. package/lib/icon/ellipsis.js +1 -1
  233. package/lib/icon/enlarge-line.d.ts +4 -0
  234. package/lib/icon/enlarge-line.js +1 -0
  235. package/lib/icon/error.js +1 -1
  236. package/lib/icon/excel-fill.d.ts +4 -0
  237. package/lib/icon/excel-fill.js +1 -0
  238. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  239. package/lib/icon/exclamation-circle-shape.js +1 -0
  240. package/lib/icon/eye.js +1 -1
  241. package/lib/icon/filliscreen-line.d.ts +4 -0
  242. package/lib/icon/filliscreen-line.js +1 -0
  243. package/lib/icon/folder-open.js +1 -1
  244. package/lib/icon/folder-shape-open.js +1 -1
  245. package/lib/icon/folder-shape.js +1 -1
  246. package/lib/icon/folder.js +1 -1
  247. package/lib/icon/funnel.d.ts +4 -0
  248. package/lib/icon/funnel.js +1 -0
  249. package/lib/icon/help-document-fill.js +1 -1
  250. package/lib/icon/help-fill.js +1 -1
  251. package/lib/icon/help.js +1 -1
  252. package/lib/icon/image-fill.d.ts +4 -0
  253. package/lib/icon/image-fill.js +1 -0
  254. package/lib/icon/img-error.d.ts +4 -0
  255. package/lib/icon/img-placehoulder.d.ts +4 -0
  256. package/lib/icon/img-placehoulder.js +1 -0
  257. package/lib/icon/index.d.ts +79 -53
  258. package/lib/icon/index.js +1 -0
  259. package/lib/icon/info-line.js +1 -1
  260. package/lib/icon/info.js +1 -1
  261. package/lib/icon/left-shape.js +1 -1
  262. package/lib/icon/left-turn-line.d.ts +4 -0
  263. package/lib/icon/left-turn-line.js +1 -0
  264. package/lib/icon/narrow-line.d.ts +4 -0
  265. package/lib/icon/narrow-line.js +1 -0
  266. package/lib/icon/original.d.ts +4 -0
  267. package/lib/icon/original.js +1 -0
  268. package/lib/icon/pdf-fill.d.ts +4 -0
  269. package/lib/icon/pdf-fill.js +1 -0
  270. package/lib/icon/play-shape.js +1 -1
  271. package/lib/icon/plus.js +1 -1
  272. package/lib/icon/ppt-fill.d.ts +4 -0
  273. package/lib/icon/ppt-fill.js +1 -0
  274. package/lib/icon/qq.js +1 -1
  275. package/lib/icon/right-shape.js +1 -1
  276. package/lib/icon/right-turn-line.d.ts +4 -0
  277. package/lib/icon/right-turn-line.js +1 -0
  278. package/lib/icon/search.js +1 -1
  279. package/lib/icon/share.js +1 -1
  280. package/lib/icon/spinner.js +1 -1
  281. package/lib/icon/success.js +1 -1
  282. package/lib/icon/switcher-loading.js +1 -1
  283. package/lib/icon/text-file.js +1 -1
  284. package/lib/icon/text-fill.d.ts +4 -0
  285. package/lib/icon/text-fill.js +1 -0
  286. package/lib/icon/transfer.d.ts +4 -0
  287. package/lib/icon/transfer.js +1 -0
  288. package/lib/icon/tree-application-shape.js +1 -1
  289. package/lib/icon/unfull-screen.d.ts +4 -0
  290. package/lib/icon/unfull-screen.js +1 -0
  291. package/lib/icon/unvisible.js +1 -1
  292. package/lib/icon/up-shape.js +1 -1
  293. package/lib/icon/upload.d.ts +4 -0
  294. package/lib/icon/upload.js +1 -0
  295. package/lib/icon/video-fill.d.ts +4 -0
  296. package/lib/icon/video-fill.js +1 -0
  297. package/lib/icon/warn.js +1 -1
  298. package/lib/icon/weixin.js +1 -1
  299. package/lib/image/image-viewer.css +142 -0
  300. package/lib/image/image-viewer.d.ts +73 -0
  301. package/lib/image/image-viewer.less +168 -0
  302. package/lib/image/image-viewer.variable.css +142 -0
  303. package/lib/image/image.css +37 -0
  304. package/lib/image/image.d.ts +93 -0
  305. package/lib/image/image.less +44 -0
  306. package/lib/image/image.variable.css +37 -0
  307. package/lib/image/index.d.ts +246 -0
  308. package/lib/image/index.js +1 -0
  309. package/lib/image/props.d.ts +71 -0
  310. package/lib/index.d.ts +2 -1
  311. package/lib/index.js +1 -0
  312. package/lib/info-box/index.d.ts +7 -0
  313. package/lib/info-box/index.js +1 -0
  314. package/lib/info-box/info-box.css +37 -0
  315. package/lib/info-box/info-box.d.ts +28 -0
  316. package/lib/info-box/info-box.less +51 -0
  317. package/lib/info-box/info-box.variable.css +159 -0
  318. package/lib/input/index.d.ts +175 -90
  319. package/lib/input/index.js +1 -0
  320. package/lib/input/input.css +183 -19
  321. package/lib/input/input.d.ts +119 -36
  322. package/lib/input/input.less +112 -18
  323. package/lib/input/input.variable.css +246 -54
  324. package/lib/link/index.d.ts +29 -21
  325. package/lib/link/index.js +1 -0
  326. package/lib/link/link.css +12 -12
  327. package/lib/link/link.d.ts +10 -8
  328. package/lib/link/link.less +16 -14
  329. package/lib/link/link.variable.css +44 -15
  330. package/lib/loading/directive.d.ts +14 -0
  331. package/lib/loading/index.d.ts +135 -19
  332. package/lib/loading/index.js +1 -0
  333. package/lib/loading/loading.css +86 -33
  334. package/lib/loading/loading.d.ts +94 -12
  335. package/lib/loading/loading.less +27 -23
  336. package/lib/loading/loading.variable.css +134 -52
  337. package/lib/locale/index.d.ts +3 -0
  338. package/lib/locale/index.js +1 -0
  339. package/lib/locale/lang/en.d.ts +120 -0
  340. package/lib/locale/lang/zh-cn.d.ts +3 -0
  341. package/lib/menu/index.d.ts +16 -24
  342. package/lib/menu/index.js +1 -0
  343. package/lib/menu/menu.css +51 -0
  344. package/lib/menu/menu.d.ts +7 -16
  345. package/lib/menu/menu.variable.css +101 -21
  346. package/lib/menu/submenu.variable.css +32 -3
  347. package/lib/message/index.js +1 -0
  348. package/lib/message/message.css +17 -5
  349. package/lib/message/message.less +21 -6
  350. package/lib/message/message.variable.css +49 -8
  351. package/lib/message/messageConstructor.d.ts +14 -11
  352. package/lib/modal/index.d.ts +469 -78
  353. package/lib/modal/index.js +1 -0
  354. package/lib/modal/modal.css +63 -1
  355. package/lib/modal/modal.d.ts +179 -30
  356. package/lib/modal/modal.less +39 -3
  357. package/lib/modal/modal.variable.css +185 -1
  358. package/lib/modal/props.mixin.d.ts +76 -13
  359. package/lib/navigation/index.d.ts +310 -1
  360. package/lib/navigation/index.js +1 -0
  361. package/lib/navigation/navigation.css +1 -1
  362. package/lib/navigation/navigation.d.ts +11 -2
  363. package/lib/navigation/navigation.less +1 -1
  364. package/lib/navigation/navigation.variable.css +33 -4
  365. package/lib/notify/index.js +1 -0
  366. package/lib/notify/notify.css +25 -5
  367. package/lib/notify/notify.less +29 -6
  368. package/lib/notify/notify.variable.css +57 -8
  369. package/lib/notify/notifyConstructor.d.ts +62 -21
  370. package/lib/overflow-title/components/overflow-title.d.ts +38 -0
  371. package/lib/overflow-title/directive/overflow-title.d.ts +3 -0
  372. package/lib/overflow-title/index.d.ts +129 -0
  373. package/lib/overflow-title/index.js +1 -0
  374. package/lib/overflow-title/overflow.css +11 -0
  375. package/lib/overflow-title/overflow.less +13 -0
  376. package/lib/overflow-title/overflow.variable.css +11 -0
  377. package/lib/overflow-title/props.d.ts +16 -0
  378. package/lib/overflow-title/utils/getActualWidthByCanvas.d.ts +3 -0
  379. package/lib/overflow-title/utils/getActualWidthByDom.d.ts +3 -0
  380. package/lib/pagination/index.d.ts +35 -20
  381. package/lib/pagination/index.js +1 -0
  382. package/lib/pagination/pagination.css +54 -28
  383. package/lib/pagination/pagination.d.ts +18 -8
  384. package/lib/pagination/pagination.less +59 -30
  385. package/lib/pagination/pagination.variable.css +86 -31
  386. package/lib/pagination/use-limit.d.ts +3 -1
  387. package/lib/pagination/use-total.d.ts +3 -1
  388. package/lib/plugin-popover/index.d.ts +27 -0
  389. package/lib/plugin-popover/index.js +1 -0
  390. package/lib/plugins/index.d.ts +1 -0
  391. package/lib/plugins/index.js +1 -0
  392. package/lib/pop-confirm/index.d.ts +246 -0
  393. package/lib/pop-confirm/index.js +1 -0
  394. package/lib/pop-confirm/pop-confirm.css +28 -0
  395. package/lib/pop-confirm/pop-confirm.d.ts +95 -0
  396. package/lib/pop-confirm/pop-confirm.less +34 -0
  397. package/lib/pop-confirm/pop-confirm.variable.css +150 -0
  398. package/lib/pop-confirm/props.d.ts +67 -0
  399. package/lib/popover/arrow.d.ts +2 -0
  400. package/lib/popover/const.d.ts +16 -0
  401. package/lib/popover/content.d.ts +43 -0
  402. package/lib/popover/index.d.ts +504 -97
  403. package/lib/popover/index.js +1 -0
  404. package/lib/popover/plugin-popover.d.ts +12 -0
  405. package/lib/popover/popover.css +10 -50
  406. package/lib/popover/popover.d.ts +222 -43
  407. package/lib/popover/popover.less +19 -66
  408. package/lib/popover/popover.variable.css +42 -53
  409. package/lib/popover/props.d.ts +110 -30
  410. package/lib/popover/reference.d.ts +2 -0
  411. package/lib/popover/root.d.ts +16 -0
  412. package/lib/popover/use-floating.d.ts +34 -0
  413. package/lib/popover/use-platform.d.ts +30 -0
  414. package/lib/popover/use-popover-init.d.ts +23 -0
  415. package/lib/popover/use-popper-id.d.ts +6 -0
  416. package/lib/popover/utils.d.ts +3 -0
  417. package/lib/popover2/index.d.ts +44 -0
  418. package/lib/popover2/index.js +1 -0
  419. package/lib/popover2/popover.d.ts +2 -0
  420. package/lib/preset.d.ts +244 -2
  421. package/lib/preset.js +1 -0
  422. package/lib/process/index.d.ts +9 -9
  423. package/lib/process/index.js +1 -0
  424. package/lib/process/process.css +22 -0
  425. package/lib/process/process.d.ts +2 -2
  426. package/lib/process/process.less +30 -2
  427. package/lib/process/process.variable.css +54 -3
  428. package/lib/progress/index.d.ts +31 -31
  429. package/lib/progress/index.js +1 -0
  430. package/lib/progress/progress.css +51 -0
  431. package/lib/progress/progress.d.ts +12 -12
  432. package/lib/progress/progress.variable.css +87 -7
  433. package/lib/radio/common.d.ts +5 -5
  434. package/lib/radio/index.d.ts +36 -18
  435. package/lib/radio/index.js +1 -0
  436. package/lib/radio/radio-button.d.ts +7 -8
  437. package/lib/radio/radio-group.d.ts +26 -0
  438. package/lib/radio/radio.css +119 -66
  439. package/lib/radio/radio.d.ts +4 -4
  440. package/lib/radio/radio.less +253 -173
  441. package/lib/radio/radio.variable.css +154 -72
  442. package/lib/radio/type.d.ts +9 -4
  443. package/lib/rate/index.d.ts +28 -5
  444. package/lib/rate/index.js +1 -0
  445. package/lib/rate/rate.d.ts +13 -2
  446. package/lib/rate/star.d.ts +1 -1
  447. package/lib/resize-layout/index.d.ts +18 -18
  448. package/lib/resize-layout/index.js +1 -0
  449. package/lib/resize-layout/resize-layout.css +6 -15
  450. package/lib/resize-layout/resize-layout.d.ts +7 -7
  451. package/lib/resize-layout/resize-layout.less +10 -19
  452. package/lib/resize-layout/resize-layout.variable.css +38 -18
  453. package/lib/search-select/index.d.ts +841 -0
  454. package/lib/search-select/index.js +1 -0
  455. package/lib/search-select/input.d.ts +98 -0
  456. package/lib/search-select/menu.d.ts +76 -0
  457. package/lib/search-select/search-select.css +424 -0
  458. package/lib/search-select/search-select.d.ts +343 -0
  459. package/lib/search-select/search-select.less +380 -0
  460. package/lib/search-select/search-select.variable.css +546 -0
  461. package/lib/search-select/selected.d.ts +152 -0
  462. package/lib/search-select/utils.d.ts +88 -0
  463. package/lib/select/common.d.ts +5 -12
  464. package/lib/select/index.d.ts +1792 -688
  465. package/lib/select/index.js +1 -0
  466. package/lib/select/option.d.ts +12 -4
  467. package/lib/select/optionGroup.d.ts +1 -1
  468. package/lib/select/select.css +186 -113
  469. package/lib/select/select.d.ts +707 -146
  470. package/lib/select/select.less +320 -202
  471. package/lib/select/select.variable.css +218 -116
  472. package/lib/select/selectTagInput.d.ts +94 -0
  473. package/lib/select/type.d.ts +21 -13
  474. package/lib/shared/dom.d.ts +3 -0
  475. package/lib/shared/helper.d.ts +9 -0
  476. package/lib/shared/hooks/use-form-item.d.ts +2 -0
  477. package/lib/shared/hooks/use-form.d.ts +2 -0
  478. package/lib/shared/index.d.ts +32 -7
  479. package/lib/shared/index.js +1 -0
  480. package/lib/shared/mask-manager.d.ts +6 -2
  481. package/lib/shared/pop-manager.d.ts +16 -4
  482. package/lib/shared/popover.d.ts +6 -2
  483. package/lib/shared/token.d.ts +4 -0
  484. package/lib/shared/utils.d.ts +19 -0
  485. package/lib/shared/vue-types.d.ts +107 -7
  486. package/lib/sideslider/index.d.ts +351 -69
  487. package/lib/sideslider/index.js +1 -0
  488. package/lib/sideslider/sideslider.css +55 -10
  489. package/lib/sideslider/sideslider.d.ts +164 -31
  490. package/lib/sideslider/sideslider.less +72 -13
  491. package/lib/sideslider/sideslider.variable.css +87 -13
  492. package/lib/slider/index.d.ts +414 -1
  493. package/lib/slider/index.js +1 -0
  494. package/lib/slider/slider-button.d.ts +2 -1
  495. package/lib/slider/slider.d.ts +4 -4
  496. package/lib/slider/slider.variable.css +32 -3
  497. package/lib/steps/index.d.ts +52 -52
  498. package/lib/steps/index.js +1 -0
  499. package/lib/steps/steps.css +15 -3
  500. package/lib/steps/steps.d.ts +32 -32
  501. package/lib/steps/steps.less +24 -3
  502. package/lib/steps/steps.variable.css +47 -6
  503. package/lib/styles/index.d.ts +10 -1
  504. package/lib/styles/mixins/clearfix.css +8 -0
  505. package/lib/styles/mixins/clearfix.less +10 -0
  506. package/lib/styles/mixins/clearfix.variable.css +8 -0
  507. package/lib/styles/mixins/mixins.css +51 -0
  508. package/lib/styles/mixins/mixins.less +2 -0
  509. package/lib/styles/mixins/mixins.variable.css +51 -0
  510. package/lib/styles/mixins/popper.css +1 -1
  511. package/lib/styles/mixins/popper.less +12 -11
  512. package/lib/styles/mixins/popper.variable.css +123 -1
  513. package/lib/styles/mixins/scroll.css +17 -0
  514. package/lib/styles/mixins/scroll.less +22 -0
  515. package/lib/styles/mixins/scroll.variable.css +139 -0
  516. package/lib/styles/reset.css +36 -0
  517. package/lib/styles/reset.less +26 -2
  518. package/lib/styles/reset.variable.css +36 -0
  519. package/lib/styles/themes/themes.less +42 -3
  520. package/lib/swiper/index.js +1 -0
  521. package/lib/switcher/index.d.ts +42 -30
  522. package/lib/switcher/index.js +1 -0
  523. package/lib/switcher/switcher.css +57 -6
  524. package/lib/switcher/switcher.d.ts +19 -13
  525. package/lib/switcher/switcher.less +5 -26
  526. package/lib/switcher/switcher.variable.css +106 -26
  527. package/lib/tab/index.d.ts +111 -64
  528. package/lib/tab/index.js +1 -0
  529. package/lib/tab/props.d.ts +58 -10
  530. package/lib/tab/tab-nav.d.ts +49 -13
  531. package/lib/tab/tab-panel.d.ts +7 -7
  532. package/lib/tab/tab.css +151 -55
  533. package/lib/tab/tab.d.ts +41 -20
  534. package/lib/tab/tab.less +179 -86
  535. package/lib/tab/tab.variable.css +183 -58
  536. package/lib/table/cache.d.ts +6 -0
  537. package/lib/table/components/index.d.ts +3 -0
  538. package/lib/table/components/table-cell.d.ts +51 -0
  539. package/lib/table/components/table-column.d.ts +202 -0
  540. package/lib/table/components/table-row.d.ts +2 -0
  541. package/lib/table/const.d.ts +123 -1
  542. package/lib/table/index.d.ts +1080 -44
  543. package/lib/table/index.js +1 -0
  544. package/lib/table/plugins/body-empty.d.ts +36 -0
  545. package/lib/table/plugins/col-group.d.ts +38 -0
  546. package/lib/table/plugins/common.d.ts +6 -0
  547. package/lib/table/plugins/head-filter.css +84 -0
  548. package/lib/table/plugins/head-filter.d.ts +26 -0
  549. package/lib/table/plugins/head-filter.less +110 -0
  550. package/lib/table/plugins/head-filter.variable.css +206 -0
  551. package/lib/table/plugins/head-sort.css +26 -0
  552. package/lib/table/plugins/head-sort.d.ts +22 -0
  553. package/lib/table/plugins/head-sort.less +32 -0
  554. package/lib/table/plugins/head-sort.variable.css +148 -0
  555. package/lib/table/plugins/index.d.ts +5 -0
  556. package/lib/table/plugins/settings.css +147 -0
  557. package/lib/table/plugins/settings.d.ts +37 -0
  558. package/lib/table/plugins/settings.less +181 -0
  559. package/lib/table/plugins/settings.variable.css +269 -0
  560. package/lib/table/plugins/use-active-columns.d.ts +16 -0
  561. package/lib/table/plugins/use-column-resize.d.ts +15 -0
  562. package/lib/table/plugins/use-fixed-column.d.ts +26 -0
  563. package/lib/table/plugins/use-pagination.d.ts +16 -0
  564. package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
  565. package/lib/table/props.d.ts +358 -10
  566. package/lib/table/render.d.ts +48 -4
  567. package/lib/table/table.css +1214 -12
  568. package/lib/table/table.d.ts +256 -18
  569. package/lib/table/table.less +277 -16
  570. package/lib/table/table.variable.css +1256 -25
  571. package/lib/table/use-column.d.ts +12 -0
  572. package/lib/table/use-common.d.ts +112 -0
  573. package/lib/table/utils.d.ts +71 -11
  574. package/lib/table-column/index.d.ts +507 -0
  575. package/lib/table-column/index.js +1 -0
  576. package/lib/tag/index.d.ts +29 -29
  577. package/lib/tag/index.js +1 -0
  578. package/lib/tag/tag.css +46 -13
  579. package/lib/tag/tag.d.ts +12 -12
  580. package/lib/tag/tag.less +46 -10
  581. package/lib/tag/tag.variable.css +78 -16
  582. package/lib/tag-input/common.d.ts +13 -1
  583. package/lib/tag-input/index.d.ts +1406 -1
  584. package/lib/tag-input/index.js +1 -0
  585. package/lib/tag-input/list-tag-render.d.ts +0 -3
  586. package/lib/tag-input/tag-input.css +23 -26
  587. package/lib/tag-input/tag-input.d.ts +303 -44
  588. package/lib/tag-input/tag-input.less +102 -104
  589. package/lib/tag-input/tag-input.variable.css +55 -29
  590. package/lib/tag-input/tag-props.d.ts +141 -7
  591. package/lib/tag-input/tag-render.d.ts +30 -4
  592. package/lib/time-picker/index.d.ts +904 -0
  593. package/lib/time-picker/index.js +1 -0
  594. package/lib/time-picker/time-picker.css +215 -0
  595. package/lib/time-picker/time-picker.less +260 -0
  596. package/lib/time-picker/time-picker.variable.css +337 -0
  597. package/lib/timeline/index.d.ts +6 -6
  598. package/lib/timeline/index.js +1 -0
  599. package/lib/timeline/timeline.css +16 -9
  600. package/lib/timeline/timeline.d.ts +1 -1
  601. package/lib/timeline/timeline.less +22 -9
  602. package/lib/timeline/timeline.variable.css +48 -12
  603. package/lib/transfer/const.d.ts +5 -0
  604. package/lib/transfer/index.d.ts +247 -150
  605. package/lib/transfer/index.js +1 -0
  606. package/lib/transfer/props.d.ts +59 -0
  607. package/lib/transfer/transfer.css +153 -92
  608. package/lib/transfer/transfer.d.ts +101 -95
  609. package/lib/transfer/transfer.less +142 -112
  610. package/lib/transfer/transfer.variable.css +191 -101
  611. package/lib/tree/constant.d.ts +62 -0
  612. package/lib/tree/index.d.ts +379 -60
  613. package/lib/tree/index.js +1 -0
  614. package/lib/tree/props.d.ts +124 -0
  615. package/lib/tree/tree.css +181 -9
  616. package/lib/tree/tree.d.ts +172 -19
  617. package/lib/tree/tree.less +54 -3
  618. package/lib/tree/tree.variable.css +213 -12
  619. package/lib/tree/use-empty.d.ts +6 -0
  620. package/lib/tree/use-node-action.d.ts +12 -0
  621. package/lib/tree/use-node-async.d.ts +5 -0
  622. package/lib/tree/use-node-attribute.d.ts +33 -0
  623. package/lib/tree/use-node-drag.d.ts +3 -0
  624. package/lib/tree/use-search.d.ts +11 -0
  625. package/lib/tree/use-tree-init.d.ts +15 -0
  626. package/lib/tree/util.d.ts +4 -6
  627. package/lib/upload/index.d.ts +566 -0
  628. package/lib/upload/index.js +1 -0
  629. package/lib/upload/props.d.ts +111 -0
  630. package/lib/upload/upload-list.d.ts +47 -0
  631. package/lib/upload/upload-trigger.d.ts +51 -0
  632. package/lib/upload/upload.css +427 -0
  633. package/lib/upload/upload.d.ts +246 -0
  634. package/lib/upload/upload.less +466 -0
  635. package/lib/upload/upload.type.d.ts +78 -0
  636. package/lib/upload/upload.variable.css +549 -0
  637. package/lib/upload/use-ajax-upload.d.ts +3 -0
  638. package/lib/upload/use-file-handler.d.ts +44 -0
  639. package/lib/virtual-render/index.d.ts +50 -4
  640. package/lib/virtual-render/index.js +1 -0
  641. package/lib/virtual-render/props.d.ts +15 -0
  642. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  643. package/lib/virtual-render/v-virtual-render.d.ts +0 -1
  644. package/lib/virtual-render/virtual-render.css +17 -17
  645. package/lib/virtual-render/virtual-render.d.ts +23 -1
  646. package/lib/virtual-render/virtual-render.less +2 -23
  647. package/lib/virtual-render/virtual-render.variable.css +139 -17
  648. package/lib/volar.components.d.ts +102 -0
  649. package/package.json +59 -26
  650. package/LICENSE.txt +0 -22
  651. package/lib/alert/alert.js +0 -1
  652. package/lib/backtop/backtop.js +0 -1
  653. package/lib/badge/badge.js +0 -1
  654. package/lib/breadcrumb/breadcrumb.js +0 -1
  655. package/lib/button/button.js +0 -1
  656. package/lib/card/card.js +0 -1
  657. package/lib/checkbox/checkbox.js +0 -1
  658. package/lib/code-diff/code-diff.js +0 -1
  659. package/lib/collapse/collapse.js +0 -1
  660. package/lib/date-picker/date-picker.js +0 -1
  661. package/lib/dialog/dialog.js +0 -1
  662. package/lib/directives/directives.js +0 -2
  663. package/lib/divider/divider.js +0 -1
  664. package/lib/dropdown/dropdown.js +0 -1
  665. package/lib/exception/exception.js +0 -1
  666. package/lib/form/common.d.ts +0 -3
  667. package/lib/form/form.js +0 -1
  668. package/lib/icon/icon.js +0 -1
  669. package/lib/input/input.js +0 -1
  670. package/lib/link/link.js +0 -1
  671. package/lib/loading/loading.js +0 -1
  672. package/lib/menu/menu.js +0 -1
  673. package/lib/message/message.js +0 -1
  674. package/lib/modal/modal.js +0 -1
  675. package/lib/navigation/navigation.js +0 -1
  676. package/lib/notify/notify.js +0 -1
  677. package/lib/pagination/pagination.js +0 -1
  678. package/lib/popover/popover.js +0 -1
  679. package/lib/process/process.js +0 -1
  680. package/lib/progress/progress.js +0 -1
  681. package/lib/radio/radio.js +0 -1
  682. package/lib/rate/rate.js +0 -1
  683. package/lib/resize-layout/resize-layout.js +0 -1
  684. package/lib/select/select.js +0 -1
  685. package/lib/shared/shared.js +0 -1
  686. package/lib/sideslider/sideslider.js +0 -1
  687. package/lib/slider/slider.js +0 -1
  688. package/lib/steps/steps.js +0 -1
  689. package/lib/swiper/swiper.js +0 -1
  690. package/lib/switcher/switcher.js +0 -1
  691. package/lib/tab/tab.js +0 -1
  692. package/lib/table/table.js +0 -1
  693. package/lib/tag/tag.js +0 -1
  694. package/lib/tag-input/tag-input.js +0 -1
  695. package/lib/timeline/timeline.js +0 -1
  696. package/lib/transfer/transfer.js +0 -1
  697. package/lib/tree/tree.js +0 -1
  698. package/lib/use-form.d.ts +0 -3
  699. package/lib/virtual-render/virtual-render.js +0 -1
  700. /package/lib/directives/{directives.js.LICENSE.txt → index.js.LICENSE.txt} +0 -0
@@ -9,6 +9,7 @@
9
9
  --gray-color: #979ba5;
10
10
  --light-gray: #c4c6cc;
11
11
  --white-color: white;
12
+ --whitesmoke-color: #fafbfd;
12
13
  --disable-color: #dcdee5;
13
14
  --font-size-base: 12px;
14
15
  --font-size-medium: 14px;
@@ -18,10 +19,11 @@
18
19
  --line-height-large: 18px;
19
20
  --component-size-small: 26px;
20
21
  --component-size-base: 32px;
21
- --component-size-large: 38px;
22
+ --component-size-large: 40px;
22
23
  --border-width-base: 1px;
23
24
  --border-style-base: solid;
24
25
  --border-radius-base: 2px;
26
+ --border-style-color: var(--light-gray);
25
27
  --input-disabled-bg: #fafbfd;
26
28
  --input-disabled-border: var(--disable-color);
27
29
  --input-height-base: var(--component-size-base);
@@ -31,8 +33,9 @@
31
33
  --input-broder-radius: 3px;
32
34
  --input-shadow-color: #a3c5fd;
33
35
  --input-horizontal-padding: 10px;
34
- --input-block-color: #f4f6fa;
35
- --input-icon-size: var(--font-size-large);
36
+ --input-block-color: #f5f7fa;
37
+ --input-block-hover-color: #eaebf0;
38
+ --input-icon-size: var(--font-size-medium);
36
39
  --input-maxlength-color: #979ba5;
37
40
  --button-primary-hover-color: #5594fa;
38
41
  --button-danger-hover-color: #ff5656;
@@ -43,6 +46,17 @@
43
46
  --button-danger-active-color: #db2626;
44
47
  --button-success-active-color: #1ab943;
45
48
  --button-warning-active-color: #eb9000;
49
+ --button-selected-bg-color: #e1ecff;
50
+ --button-disabled-selected-bg-color: #f0f1f5;
51
+ --radio-font-color: #63656e;
52
+ --radio-active-color: #5594fa;
53
+ --radio-hover-border-color: #979ba5;
54
+ --radio-disabled-border: #dcdee5;
55
+ --radio-disabled-font-color: #c4c6cc;
56
+ --radio-disabled-checked-bg: #a3c5fd;
57
+ --radio-button-checked-bg: #e1ecff;
58
+ --radio-button-disabled-checked-bg: #fafbfd;
59
+ --checkbox-disabled-checked-bg: #a3c5fd;
46
60
  --fixed-navbar-background: #fff;
47
61
  --fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
48
62
  --switch-default-color: #fff;
@@ -63,12 +77,16 @@
63
77
  --message-color: var(--default-color);
64
78
  --message-primary-bg-color: #f0f8ff;
65
79
  --message-primary-border-color: #e1ecff;
80
+ --message-primary-shadow-color: #e1e8f4;
66
81
  --message-warning-bg-color: #fff4e2;
67
82
  --message-warning-border-color: #ffe8c3;
83
+ --message-warning-shadow-color: #ede6db;
68
84
  --message-success-bg-color: #f2fff4;
69
85
  --message-success-border-color: #dcffe2;
86
+ --message-success-shadow-color: #cef0d7;
70
87
  --message-danger-bg-color: #ffeded;
71
88
  --message-danger-border-color: #ffdddd;
89
+ --message-danger-shadow-color: #f6dada;
72
90
  --slider-default-bg: #dcdee5;
73
91
  --slider-disable-bar-bg: #979ba5;
74
92
  --menu-bg-color: #182132;
@@ -90,6 +108,17 @@
90
108
  --table-head-font-color: #313238;
91
109
  --table-body-font-color: #575961;
92
110
  --table-row-hover-bg-color: #f5f7fa;
111
+ --table-row-active-bg-color: #f0f1f5;
112
+ --cascader-panel-border-color: #dcdee5;
113
+ --cascader-panel-hover: #f5f7fa;
114
+ --cascader-panel-active: #e1ecff;
115
+ --cascader-panel-disabled-bg: #fff;
116
+ --search-select-focus-border-color: var(--primary-color);
117
+ --search-select-focus-color: #3c96ff;
118
+ --search-select-font-color: var(--default-color);
119
+ --search-select-placeholder-color: var(--light-gray);
120
+ --search-select-message-color: var(--danger-color);
121
+ --search-select-menu-border-color: var(--disable-color);
93
122
  }
94
123
  .bk-notify {
95
124
  position: fixed;
@@ -106,7 +135,7 @@
106
135
  }
107
136
  .bk-notify .bk-notify-icon {
108
137
  position: absolute;
109
- top: 22px;
138
+ top: 24px;
110
139
  margin-right: 5px;
111
140
  font-size: 18px;
112
141
  color: var(--primary-color);
@@ -117,7 +146,7 @@
117
146
  .bk-notify.bk-notify-success .bk-notify-icon {
118
147
  color: var(--success-color);
119
148
  }
120
- .bk-notify.bk-notify-danger .bk-notify-icon {
149
+ .bk-notify.bk-notify-error .bk-notify-icon {
121
150
  color: var(--danger-color);
122
151
  }
123
152
  .bk-notify .bk-notify-icon.bk-notify-close {
@@ -125,18 +154,38 @@
125
154
  right: 12px;
126
155
  margin-right: 0;
127
156
  font-size: 18px;
128
- color: var(--gray-color);
157
+ color: var(--light-gray);
129
158
  cursor: pointer;
130
159
  }
160
+ .bk-notify .bk-notify-icon.bk-notify-close:hover {
161
+ color: var(--gray-color);
162
+ }
131
163
  .bk-notify .bk-notify-content-header {
132
164
  display: inline-block;
133
165
  padding-left: 23px;
134
166
  margin-top: 0;
135
- margin-bottom: 4px;
136
- font-size: 14px;
167
+ margin-bottom: 7px;
168
+ font-size: 16px;
137
169
  font-weight: 700;
170
+ color: #313238;
138
171
  }
139
172
  .bk-notify .bk-notify-content-text {
140
173
  display: inline-block;
141
174
  padding-left: 23px;
142
175
  }
176
+ .bk-notify-fade-enter-active,
177
+ .bk-notify-fade-leave-active {
178
+ transition: transform 0.3s linear, opacity 0.2s linear;
179
+ }
180
+ .bk-notify-fade-enter-from,
181
+ .bk-notify-fade-leave-to {
182
+ opacity: 0;
183
+ }
184
+ .bk-notify-fade-enter-from.right,
185
+ .bk-notify-fade-leave-to.right {
186
+ transform: translateX(100%);
187
+ }
188
+ .bk-notify-fade-enter-from.left,
189
+ .bk-notify-fade-leave-to.left {
190
+ transform: translateX(-100%);
191
+ }
@@ -9,13 +9,11 @@ declare const _default: import("vue").DefineComponent<{
9
9
  } & {
10
10
  default: string;
11
11
  };
12
- message: import("vue-types").VueTypeValidableDef<string> & {
13
- default: string;
14
- } & {
15
- default: string;
12
+ message: import("vue-types").VueTypeDef<any> & {
13
+ default: any;
16
14
  };
17
- theme: import("vue-types").VueTypeDef<string> & {
18
- default: string;
15
+ theme: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "primary"> & {
16
+ default: "error" | "success" | "warning" | "primary";
19
17
  };
20
18
  position: import("vue-types").VueTypeDef<string> & {
21
19
  default: string;
@@ -25,11 +23,31 @@ declare const _default: import("vue").DefineComponent<{
25
23
  } & {
26
24
  default: number;
27
25
  };
28
- offset: import("vue-types").VueTypeValidableDef<number> & {
26
+ dismissable: import("vue-types").VueTypeValidableDef<boolean> & {
27
+ default: boolean;
28
+ } & {
29
+ default: boolean;
30
+ };
31
+ offsetX: import("vue-types").VueTypeValidableDef<number> & {
32
+ default: number;
33
+ } & {
34
+ default: number;
35
+ };
36
+ offsetY: import("vue-types").VueTypeValidableDef<number> & {
29
37
  default: number;
30
38
  } & {
31
39
  default: number;
32
40
  };
41
+ spacing: import("vue-types").VueTypeValidableDef<number> & {
42
+ default: number;
43
+ } & {
44
+ default: number;
45
+ };
46
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
47
+ default: string;
48
+ } & {
49
+ default: string;
50
+ };
33
51
  onClose: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
34
52
  default: (...args: any[]) => any;
35
53
  };
@@ -40,8 +58,9 @@ declare const _default: import("vue").DefineComponent<{
40
58
  zIndex: number;
41
59
  }>;
42
60
  visible: import("vue").Ref<boolean>;
61
+ renderMessage: import("vue").ComputedRef<any>;
43
62
  handleClose: () => void;
44
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "destory"[], "destory", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
63
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "destroy"[], "destroy", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
45
64
  id: import("vue-types").VueTypeValidableDef<string> & {
46
65
  default: string;
47
66
  } & {
@@ -52,13 +71,11 @@ declare const _default: import("vue").DefineComponent<{
52
71
  } & {
53
72
  default: string;
54
73
  };
55
- message: import("vue-types").VueTypeValidableDef<string> & {
56
- default: string;
57
- } & {
58
- default: string;
74
+ message: import("vue-types").VueTypeDef<any> & {
75
+ default: any;
59
76
  };
60
- theme: import("vue-types").VueTypeDef<string> & {
61
- default: string;
77
+ theme: import("vue-types").VueTypeDef<"error" | "success" | "warning" | "primary"> & {
78
+ default: "error" | "success" | "warning" | "primary";
62
79
  };
63
80
  position: import("vue-types").VueTypeDef<string> & {
64
81
  default: string;
@@ -68,24 +85,48 @@ declare const _default: import("vue").DefineComponent<{
68
85
  } & {
69
86
  default: number;
70
87
  };
71
- offset: import("vue-types").VueTypeValidableDef<number> & {
88
+ dismissable: import("vue-types").VueTypeValidableDef<boolean> & {
89
+ default: boolean;
90
+ } & {
91
+ default: boolean;
92
+ };
93
+ offsetX: import("vue-types").VueTypeValidableDef<number> & {
94
+ default: number;
95
+ } & {
96
+ default: number;
97
+ };
98
+ offsetY: import("vue-types").VueTypeValidableDef<number> & {
99
+ default: number;
100
+ } & {
101
+ default: number;
102
+ };
103
+ spacing: import("vue-types").VueTypeValidableDef<number> & {
72
104
  default: number;
73
105
  } & {
74
106
  default: number;
75
107
  };
108
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
109
+ default: string;
110
+ } & {
111
+ default: string;
112
+ };
76
113
  onClose: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
77
114
  default: (...args: any[]) => any;
78
115
  };
79
116
  }>> & {
80
- onDestory?: (...args: any[]) => any;
117
+ onDestroy?: (...args: any[]) => any;
81
118
  }, {
82
- id: string;
83
119
  title: string;
84
- offset: number;
85
- onClose: (...args: any[]) => any;
86
- theme: string;
120
+ extCls: string;
121
+ theme: "error" | "success" | "warning" | "primary";
122
+ id: string;
87
123
  position: string;
88
- message: string;
124
+ onClose: (...args: any[]) => any;
89
125
  delay: number;
126
+ message: any;
127
+ offsetX: number;
128
+ offsetY: number;
129
+ spacing: number;
130
+ dismissable: boolean;
90
131
  }>;
91
132
  export default _default;
@@ -0,0 +1,38 @@
1
+ import { HTMLAttributes } from '@vue/runtime-dom';
2
+ import '../overflow.less';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ content: StringConstructor;
5
+ type: {
6
+ type: import("vue").PropType<import("../props").TipsType>;
7
+ default: string;
8
+ };
9
+ calType: {
10
+ type: import("vue").PropType<import("../props").CalType>;
11
+ default: string;
12
+ };
13
+ resizeable: BooleanConstructor;
14
+ }, {
15
+ boxRef: import("vue").Ref<HTMLElement>;
16
+ textRef: import("vue").Ref<HTMLElement>;
17
+ isShowTips: import("vue").Ref<boolean>;
18
+ contentText: import("vue").ComputedRef<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
19
+ [key: string]: any;
20
+ }>[]>;
21
+ textProps: import("vue").ShallowRef<HTMLAttributes>;
22
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
23
+ content: StringConstructor;
24
+ type: {
25
+ type: import("vue").PropType<import("../props").TipsType>;
26
+ default: string;
27
+ };
28
+ calType: {
29
+ type: import("vue").PropType<import("../props").CalType>;
30
+ default: string;
31
+ };
32
+ resizeable: BooleanConstructor;
33
+ }>>, {
34
+ type: import("../props").TipsType;
35
+ calType: import("../props").CalType;
36
+ resizeable: boolean;
37
+ }>;
38
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ObjectDirective } from 'vue';
2
+ declare const overflowTitle: ObjectDirective<HTMLElement>;
3
+ export default overflowTitle;
@@ -0,0 +1,129 @@
1
+ import OverflowTitle from './components/overflow-title';
2
+ import overflowTitle from './directive/overflow-title';
3
+ import getActualWidthByCanvas from './utils/getActualWidthByCanvas';
4
+ import getActualWidthByDom from './utils/getActualWidthByDom';
5
+ declare const BkOverflowTitle: {
6
+ new (...args: any[]): {
7
+ $: import("vue").ComponentInternalInstance;
8
+ $data: {};
9
+ $props: Partial<{
10
+ type: import("./props").TipsType;
11
+ calType: import("./props").CalType;
12
+ resizeable: boolean;
13
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<{
14
+ content: StringConstructor;
15
+ type: {
16
+ type: import("vue").PropType<import("./props").TipsType>;
17
+ default: string;
18
+ };
19
+ calType: {
20
+ type: import("vue").PropType<import("./props").CalType>;
21
+ default: string;
22
+ };
23
+ resizeable: BooleanConstructor;
24
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "calType" | "resizeable">;
25
+ $attrs: {
26
+ [x: string]: unknown;
27
+ };
28
+ $refs: {
29
+ [x: string]: unknown;
30
+ };
31
+ $slots: Readonly<{
32
+ [name: string]: import("vue").Slot;
33
+ }>;
34
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
35
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
36
+ $emit: (event: string, ...args: any[]) => void;
37
+ $el: any;
38
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
39
+ content: StringConstructor;
40
+ type: {
41
+ type: import("vue").PropType<import("./props").TipsType>;
42
+ default: string;
43
+ };
44
+ calType: {
45
+ type: import("vue").PropType<import("./props").CalType>;
46
+ default: string;
47
+ };
48
+ resizeable: BooleanConstructor;
49
+ }>>, {
50
+ boxRef: import("vue").Ref<HTMLElement>;
51
+ textRef: import("vue").Ref<HTMLElement>;
52
+ isShowTips: import("vue").Ref<boolean>;
53
+ contentText: import("vue").ComputedRef<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
54
+ [key: string]: any;
55
+ }>[]>;
56
+ textProps: import("vue").ShallowRef<import("vue").HTMLAttributes>;
57
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
58
+ type: import("./props").TipsType;
59
+ calType: import("./props").CalType;
60
+ resizeable: boolean;
61
+ }> & {
62
+ beforeCreate?: (() => void) | (() => void)[];
63
+ created?: (() => void) | (() => void)[];
64
+ beforeMount?: (() => void) | (() => void)[];
65
+ mounted?: (() => void) | (() => void)[];
66
+ beforeUpdate?: (() => void) | (() => void)[];
67
+ updated?: (() => void) | (() => void)[];
68
+ activated?: (() => void) | (() => void)[];
69
+ deactivated?: (() => void) | (() => void)[];
70
+ beforeDestroy?: (() => void) | (() => void)[];
71
+ beforeUnmount?: (() => void) | (() => void)[];
72
+ destroyed?: (() => void) | (() => void)[];
73
+ unmounted?: (() => void) | (() => void)[];
74
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
75
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
76
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
77
+ };
78
+ $forceUpdate: () => void;
79
+ $nextTick: typeof import("vue").nextTick;
80
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
81
+ } & Readonly<import("vue").ExtractPropTypes<{
82
+ content: StringConstructor;
83
+ type: {
84
+ type: import("vue").PropType<import("./props").TipsType>;
85
+ default: string;
86
+ };
87
+ calType: {
88
+ type: import("vue").PropType<import("./props").CalType>;
89
+ default: string;
90
+ };
91
+ resizeable: BooleanConstructor;
92
+ }>> & import("vue").ShallowUnwrapRef<{
93
+ boxRef: import("vue").Ref<HTMLElement>;
94
+ textRef: import("vue").Ref<HTMLElement>;
95
+ isShowTips: import("vue").Ref<boolean>;
96
+ contentText: import("vue").ComputedRef<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
97
+ [key: string]: any;
98
+ }>[]>;
99
+ textProps: import("vue").ShallowRef<import("vue").HTMLAttributes>;
100
+ }> & {} & {} & import("vue").ComponentCustomProperties;
101
+ __isFragment?: never;
102
+ __isTeleport?: never;
103
+ __isSuspense?: never;
104
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
105
+ content: StringConstructor;
106
+ type: {
107
+ type: import("vue").PropType<import("./props").TipsType>;
108
+ default: string;
109
+ };
110
+ calType: {
111
+ type: import("vue").PropType<import("./props").CalType>;
112
+ default: string;
113
+ };
114
+ resizeable: BooleanConstructor;
115
+ }>>, {
116
+ boxRef: import("vue").Ref<HTMLElement>;
117
+ textRef: import("vue").Ref<HTMLElement>;
118
+ isShowTips: import("vue").Ref<boolean>;
119
+ contentText: import("vue").ComputedRef<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
120
+ [key: string]: any;
121
+ }>[]>;
122
+ textProps: import("vue").ShallowRef<import("vue").HTMLAttributes>;
123
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
124
+ type: import("./props").TipsType;
125
+ calType: import("./props").CalType;
126
+ resizeable: boolean;
127
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
128
+ export { getActualWidthByDom, getActualWidthByCanvas, overflowTitle, OverflowTitle, };
129
+ export default BkOverflowTitle;
@@ -0,0 +1 @@
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../popover"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../popover"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../popover")):t(e["../shared"],e.vue,e["../popover"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n)=>(()=>{"use strict";var o={35:(e,t,n)=>{var o=n(9601),r=n.n(o),i=n(2609);n.n(i)()(r()).push([e.id,".text-ov {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.position-relative {\n position: relative;\n}\n.position-absolute {\n position: absolute;\n}\n",""])},2609:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(o)for(var l=0;l<this.length;l++){var u=this[l][0];null!=u&&(a[u]=!0)}for(var c=0;c<e.length;c++){var v=[].concat(e[c]);o&&a[v[0]]||(void 0!==i&&(void 0===v[5]||(v[1]="@layer".concat(v[5].length>0?" ".concat(v[5]):""," {").concat(v[1],"}")),v[5]=i),n&&(v[2]?(v[1]="@media ".concat(v[2]," {").concat(v[1],"}"),v[2]=n):v[2]=n),r&&(v[4]?(v[1]="@supports (".concat(v[4],") {").concat(v[1],"}"),v[4]=r):v[4]="".concat(r)),t.push(v))}},t}},9601:e=>{e.exports=function(e){return e[1]}},5537:e=>{e.exports=n},4212:t=>{t.exports=e},748:e=>{e.exports=t}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={id:e,exports:{}};return o[e](n,n.exports,i),n.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{i.r(a),i.d(a,{OverflowTitle:()=>c,default:()=>s,getActualWidthByCanvas:()=>l,getActualWidthByDom:()=>u,overflowTitle:()=>v});var e=i(4212),t=i(748),n=i(5537),o=i.n(n);const r={content:String,type:{type:String,default:"title"},calType:{type:String,default:"dom"},resizeable:Boolean},l=function(e,t){var n=t.fontSize,o=void 0===n?14:n,r=t.fontFamily,i=void 0===r?"Microsoft YaHei":r,a=document.createElement("canvas").getContext("2d");a.font="".concat(o,"px ").concat(i);var l=a.measureText(e),u=Math.abs(l.actualBoundingBoxLeft)+Math.abs(l.actualBoundingBoxRight);return Math.max(l.width,u)},u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.body;if(!n)return 0;var o=t||{},r=o.fontSize,i=o.fontFamily,a=document.createElement("div");a.style.cssText="position: absolute;left: -999em;top:-999em;z-index: -1;text-overflow: initial;\n ".concat(r?"font-size:".concat(r," ;"):"","\n ").concat(i?"font-family:".concat(i," "):"","\n "),a.innerText=e,n.append(a);var l=a.clientWidth;return n.removeChild(a),l};i(35);const c=(0,t.defineComponent)({name:"OverflowTitle",props:r,setup:function(n,o){var r=o.slots,i=(0,t.ref)(null),a=(0,t.ref)(null),c=(0,t.ref)(!1),v=(0,t.shallowRef)(),s=(0,t.computed)((function(){var e;return n.content?n.content:null===(e=null==r?void 0:r.default)||void 0===e?void 0:e.call(r)}));return(0,t.onMounted)((function(){var o=i.value.clientWidth,r=(0,e.debounce)(500,(function(){var e,t,r;c.value=!1,v.value={};var d=0;if("dom"===n.calType)d=u(null===(e=a.value)||void 0===e?void 0:e.textContent,null,i.value);else{var f=getComputedStyle(i.value),p=f.fontSize,m=f.fontFamily;d=l(s.value,{fontSize:p,fontFamily:m})}d>o&&(c.value=!0,"title"===n.type&&(v.value={title:null!==(r=null===(t=null==a?void 0:a.value)||void 0===t?void 0:t.innerText)&&void 0!==r?r:n.content}))}));if(r(),n.resizeable){var d=new ResizeObserver(r);d.observe(i.value),(0,t.onUnmounted)((function(){d.unobserve(i.value),d.disconnect()}))}})),{boxRef:i,textRef:a,isShowTips:c,contentText:s,textProps:v}},render:function(){var e=this;return(0,t.createVNode)("div",{ref:"boxRef",class:"position-relative"},[(0,t.createVNode)(o(),{disabled:"title"===this.type||!this.isShowTips},{default:function(){return(0,t.createVNode)("div",(0,t.mergeProps)({ref:"textRef",class:"text-ov"},e.textProps),[e.contentText])},content:function(){return e.contentText}})])}}),v={mounted:function(e,t){var n=t.value,o=void 0===n?{}:n,r=e.parentElement.clientWidth;if(r){var i=o.content,a=o.calType,c=void 0===a?"dom":a,v=i||e.innerText,s=0;if("dom"===c)s=u(e.textContent,null,e.parentElement);else{var d=getComputedStyle(e),f=d.fontSize,p=d.fontFamily;s=l(v,{fontSize:f,fontFamily:p})}s>r&&e.setAttribute("title",v)}}},s=(0,e.withInstall)(c)})(),a})()));
@@ -0,0 +1,11 @@
1
+ .text-ov {
2
+ overflow: hidden;
3
+ text-overflow: ellipsis;
4
+ white-space: nowrap;
5
+ }
6
+ .position-relative {
7
+ position: relative;
8
+ }
9
+ .position-absolute {
10
+ position: absolute;
11
+ }
@@ -0,0 +1,13 @@
1
+ .text-ov {
2
+ overflow: hidden;
3
+ text-overflow: ellipsis;
4
+ white-space: nowrap;
5
+ }
6
+
7
+ .position-relative {
8
+ position: relative;
9
+ }
10
+
11
+ .position-absolute {
12
+ position: absolute;
13
+ }
@@ -0,0 +1,11 @@
1
+ .text-ov {
2
+ overflow: hidden;
3
+ text-overflow: ellipsis;
4
+ white-space: nowrap;
5
+ }
6
+ .position-relative {
7
+ position: relative;
8
+ }
9
+ .position-absolute {
10
+ position: absolute;
11
+ }
@@ -0,0 +1,16 @@
1
+ import { PropType } from 'vue';
2
+ export declare type TipsType = 'tips' | 'title';
3
+ export declare type CalType = 'dom' | 'canvas';
4
+ declare const _default: {
5
+ content: StringConstructor;
6
+ type: {
7
+ type: PropType<TipsType>;
8
+ default: string;
9
+ };
10
+ calType: {
11
+ type: PropType<CalType>;
12
+ default: string;
13
+ };
14
+ resizeable: BooleanConstructor;
15
+ };
16
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { CSSProperties } from 'vue';
2
+ declare function getActualWidthByCanvas(text: string, options: CSSProperties): number;
3
+ export default getActualWidthByCanvas;
@@ -0,0 +1,3 @@
1
+ import { CSSProperties } from 'vue';
2
+ declare function getActualWidthByDom(text: string, options: CSSProperties, dom?: HTMLElement): number;
3
+ export default getActualWidthByDom;