bkui-vue 0.0.1-beta.44 → 0.0.1-beta.440

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 +35377 -14551
  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 -7
  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 -4
  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 -14
  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 -9
  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 -54
  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 -9
  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 +101 -0
  61. package/lib/cascader/cascader.css +316 -0
  62. package/lib/cascader/cascader.d.ts +342 -0
  63. package/lib/cascader/cascader.less +283 -0
  64. package/lib/cascader/cascader.variable.css +438 -0
  65. package/lib/cascader/index.d.ts +961 -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 -15
  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 -11
  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 +31 -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 -5
  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 -4
  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 -11
  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 -18
  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 -4
  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 +48 -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 +121 -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 -55
  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 -16
  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 -53
  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 -22
  346. package/lib/menu/submenu.variable.css +32 -4
  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 -9
  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 -5
  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 -9
  369. package/lib/notify/notifyConstructor.d.ts +62 -21
  370. package/lib/overflow-title/components/overflow-title.d.ts +47 -0
  371. package/lib/overflow-title/directive/overflow-title.d.ts +3 -0
  372. package/lib/overflow-title/index.d.ts +148 -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 +40 -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 -32
  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 -54
  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 -4
  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 -8
  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 +137 -66
  439. package/lib/radio/radio.d.ts +4 -4
  440. package/lib/radio/radio.less +262 -173
  441. package/lib/radio/radio.variable.css +172 -73
  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 -19
  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 +1795 -691
  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 +708 -147
  470. package/lib/select/select.less +320 -202
  471. package/lib/select/select.variable.css +218 -117
  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 -14
  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 -4
  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 -7
  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 -4
  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 -27
  527. package/lib/tab/index.d.ts +121 -67
  528. package/lib/tab/index.js +1 -0
  529. package/lib/tab/props.d.ts +93 -41
  530. package/lib/tab/tab-nav.d.ts +50 -14
  531. package/lib/tab/tab-panel.d.ts +14 -7
  532. package/lib/tab/tab.css +151 -55
  533. package/lib/tab/tab.d.ts +42 -21
  534. package/lib/tab/tab.less +179 -86
  535. package/lib/tab/tab.variable.css +183 -59
  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 +208 -0
  540. package/lib/table/components/table-row.d.ts +2 -0
  541. package/lib/table/const.d.ts +125 -1
  542. package/lib/table/index.d.ts +1106 -48
  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 +29 -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 +354 -11
  566. package/lib/table/render.d.ts +54 -31
  567. package/lib/table/table.css +1250 -38
  568. package/lib/table/table.d.ts +258 -18
  569. package/lib/table/table.less +314 -42
  570. package/lib/table/table.variable.css +1291 -51
  571. package/lib/table/use-column.d.ts +12 -0
  572. package/lib/table/use-common.d.ts +113 -0
  573. package/lib/table/utils.d.ts +60 -13
  574. package/lib/table-column/index.d.ts +521 -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 -17
  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 -30
  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 -13
  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 -102
  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 -13
  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;
@@ -88,9 +106,19 @@
88
106
  --table-border-color: #dcdee5;
89
107
  --table-head-bg-color: #fafbfd;
90
108
  --table-head-font-color: #313238;
91
- --table-body-font-color: #575961;
109
+ --table-body-font-color: #63656E;
92
110
  --table-row-hover-bg-color: #f5f7fa;
93
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);
94
122
  }
95
123
  .bk-notify {
96
124
  position: fixed;
@@ -107,7 +135,7 @@
107
135
  }
108
136
  .bk-notify .bk-notify-icon {
109
137
  position: absolute;
110
- top: 22px;
138
+ top: 24px;
111
139
  margin-right: 5px;
112
140
  font-size: 18px;
113
141
  color: var(--primary-color);
@@ -118,7 +146,7 @@
118
146
  .bk-notify.bk-notify-success .bk-notify-icon {
119
147
  color: var(--success-color);
120
148
  }
121
- .bk-notify.bk-notify-danger .bk-notify-icon {
149
+ .bk-notify.bk-notify-error .bk-notify-icon {
122
150
  color: var(--danger-color);
123
151
  }
124
152
  .bk-notify .bk-notify-icon.bk-notify-close {
@@ -126,18 +154,38 @@
126
154
  right: 12px;
127
155
  margin-right: 0;
128
156
  font-size: 18px;
129
- color: var(--gray-color);
157
+ color: var(--light-gray);
130
158
  cursor: pointer;
131
159
  }
160
+ .bk-notify .bk-notify-icon.bk-notify-close:hover {
161
+ color: var(--gray-color);
162
+ }
132
163
  .bk-notify .bk-notify-content-header {
133
164
  display: inline-block;
134
165
  padding-left: 23px;
135
166
  margin-top: 0;
136
- margin-bottom: 4px;
137
- font-size: 14px;
167
+ margin-bottom: 7px;
168
+ font-size: 16px;
138
169
  font-weight: 700;
170
+ color: #313238;
139
171
  }
140
172
  .bk-notify .bk-notify-content-text {
141
173
  display: inline-block;
142
174
  padding-left: 23px;
143
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,47 @@
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
+ placement: {
14
+ type: import("vue").PropType<import("../props").PlacementEnum>;
15
+ default: import("../props").PlacementEnum;
16
+ };
17
+ resizeable: BooleanConstructor;
18
+ }, {
19
+ boxRef: import("vue").Ref<HTMLElement>;
20
+ textRef: import("vue").Ref<HTMLElement>;
21
+ isShowTips: import("vue").Ref<boolean>;
22
+ contentText: import("vue").ComputedRef<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
23
+ [key: string]: any;
24
+ }>[]>;
25
+ textProps: import("vue").ShallowRef<HTMLAttributes>;
26
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
27
+ content: StringConstructor;
28
+ type: {
29
+ type: import("vue").PropType<import("../props").TipsType>;
30
+ default: string;
31
+ };
32
+ calType: {
33
+ type: import("vue").PropType<import("../props").CalType>;
34
+ default: string;
35
+ };
36
+ placement: {
37
+ type: import("vue").PropType<import("../props").PlacementEnum>;
38
+ default: import("../props").PlacementEnum;
39
+ };
40
+ resizeable: BooleanConstructor;
41
+ }>>, {
42
+ type: import("../props").TipsType;
43
+ placement: import("../props").PlacementEnum;
44
+ calType: import("../props").CalType;
45
+ resizeable: boolean;
46
+ }>;
47
+ 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,148 @@
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
+ placement: import("./props").PlacementEnum;
12
+ calType: import("./props").CalType;
13
+ resizeable: boolean;
14
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<{
15
+ content: StringConstructor;
16
+ type: {
17
+ type: import("vue").PropType<import("./props").TipsType>;
18
+ default: string;
19
+ };
20
+ calType: {
21
+ type: import("vue").PropType<import("./props").CalType>;
22
+ default: string;
23
+ };
24
+ placement: {
25
+ type: import("vue").PropType<import("./props").PlacementEnum>;
26
+ default: import("./props").PlacementEnum;
27
+ };
28
+ resizeable: BooleanConstructor;
29
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "placement" | "calType" | "resizeable">;
30
+ $attrs: {
31
+ [x: string]: unknown;
32
+ };
33
+ $refs: {
34
+ [x: string]: unknown;
35
+ };
36
+ $slots: Readonly<{
37
+ [name: string]: import("vue").Slot;
38
+ }>;
39
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
40
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
41
+ $emit: (event: string, ...args: any[]) => void;
42
+ $el: any;
43
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
44
+ content: StringConstructor;
45
+ type: {
46
+ type: import("vue").PropType<import("./props").TipsType>;
47
+ default: string;
48
+ };
49
+ calType: {
50
+ type: import("vue").PropType<import("./props").CalType>;
51
+ default: string;
52
+ };
53
+ placement: {
54
+ type: import("vue").PropType<import("./props").PlacementEnum>;
55
+ default: import("./props").PlacementEnum;
56
+ };
57
+ resizeable: BooleanConstructor;
58
+ }>>, {
59
+ boxRef: import("vue").Ref<HTMLElement>;
60
+ textRef: import("vue").Ref<HTMLElement>;
61
+ isShowTips: import("vue").Ref<boolean>;
62
+ contentText: import("vue").ComputedRef<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
63
+ [key: string]: any;
64
+ }>[]>;
65
+ textProps: import("vue").ShallowRef<import("vue").HTMLAttributes>;
66
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
67
+ type: import("./props").TipsType;
68
+ placement: import("./props").PlacementEnum;
69
+ calType: import("./props").CalType;
70
+ resizeable: boolean;
71
+ }> & {
72
+ beforeCreate?: (() => void) | (() => void)[];
73
+ created?: (() => void) | (() => void)[];
74
+ beforeMount?: (() => void) | (() => void)[];
75
+ mounted?: (() => void) | (() => void)[];
76
+ beforeUpdate?: (() => void) | (() => void)[];
77
+ updated?: (() => void) | (() => void)[];
78
+ activated?: (() => void) | (() => void)[];
79
+ deactivated?: (() => void) | (() => void)[];
80
+ beforeDestroy?: (() => void) | (() => void)[];
81
+ beforeUnmount?: (() => void) | (() => void)[];
82
+ destroyed?: (() => void) | (() => void)[];
83
+ unmounted?: (() => void) | (() => void)[];
84
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
85
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
86
+ 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)[];
87
+ };
88
+ $forceUpdate: () => void;
89
+ $nextTick: typeof import("vue").nextTick;
90
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
91
+ } & Readonly<import("vue").ExtractPropTypes<{
92
+ content: StringConstructor;
93
+ type: {
94
+ type: import("vue").PropType<import("./props").TipsType>;
95
+ default: string;
96
+ };
97
+ calType: {
98
+ type: import("vue").PropType<import("./props").CalType>;
99
+ default: string;
100
+ };
101
+ placement: {
102
+ type: import("vue").PropType<import("./props").PlacementEnum>;
103
+ default: import("./props").PlacementEnum;
104
+ };
105
+ resizeable: BooleanConstructor;
106
+ }>> & import("vue").ShallowUnwrapRef<{
107
+ boxRef: import("vue").Ref<HTMLElement>;
108
+ textRef: import("vue").Ref<HTMLElement>;
109
+ isShowTips: import("vue").Ref<boolean>;
110
+ contentText: import("vue").ComputedRef<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
111
+ [key: string]: any;
112
+ }>[]>;
113
+ textProps: import("vue").ShallowRef<import("vue").HTMLAttributes>;
114
+ }> & {} & {} & import("vue").ComponentCustomProperties;
115
+ __isFragment?: never;
116
+ __isTeleport?: never;
117
+ __isSuspense?: never;
118
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
119
+ content: StringConstructor;
120
+ type: {
121
+ type: import("vue").PropType<import("./props").TipsType>;
122
+ default: string;
123
+ };
124
+ calType: {
125
+ type: import("vue").PropType<import("./props").CalType>;
126
+ default: string;
127
+ };
128
+ placement: {
129
+ type: import("vue").PropType<import("./props").PlacementEnum>;
130
+ default: import("./props").PlacementEnum;
131
+ };
132
+ resizeable: BooleanConstructor;
133
+ }>>, {
134
+ boxRef: import("vue").Ref<HTMLElement>;
135
+ textRef: import("vue").Ref<HTMLElement>;
136
+ isShowTips: import("vue").Ref<boolean>;
137
+ contentText: import("vue").ComputedRef<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
138
+ [key: string]: any;
139
+ }>[]>;
140
+ textProps: import("vue").ShallowRef<import("vue").HTMLAttributes>;
141
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
142
+ type: import("./props").TipsType;
143
+ placement: import("./props").PlacementEnum;
144
+ calType: import("./props").CalType;
145
+ resizeable: boolean;
146
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
147
+ export { getActualWidthByDom, getActualWidthByCanvas, overflowTitle, OverflowTitle, };
148
+ 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"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../popover","vue-types"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../popover"),require("vue-types")):t(e["../shared"],e.vue,e["../popover"],e["vue-types"]);for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,((e,t,o,n)=>(()=>{"use strict";var r={35:(e,t,o)=>{var n=o(9601),r=o.n(n),i=o(2609);o.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 o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,r,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)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 s=[].concat(e[c]);n&&a[s[0]]||(void 0!==i&&(void 0===s[5]||(s[1]="@layer".concat(s[5].length>0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=i),o&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=o):s[2]=o),r&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=r):s[4]="".concat(r)),t.push(s))}},t}},9601:e=>{e.exports=function(e){return e[1]}},5537:e=>{e.exports=o},4212:t=>{t.exports=e},748:e=>{e.exports=t},210:e=>{e.exports=n}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var o=i[e]={id:e,exports:{}};return r[e](o,o.exports,a),o.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var o in t)a.o(t,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{a.r(l),a.d(l,{OverflowTitle:()=>s,default:()=>d,getActualWidthByCanvas:()=>u,getActualWidthByDom:()=>c,overflowTitle:()=>v});var e,t=a(4212),o=a(748),n=a(5537),r=a.n(n);a(210),function(e){e.AUTO="auto",e.AUTO_START="auto-start",e.AUTO_END="auto-end",e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left",e.TOP_START="top-start",e.TOP_END="top-end",e.BOTTOM_START="bottom-start",e.BOTTOM_END="bottom-end",e.RIGHT_START="right-start",e.RIGHT_END="right-end",e.LEFT_START="left-start",e.LEFT_END="left-end"}(e||(e={}));const i={content:String,type:{type:String,default:"title"},calType:{type:String,default:"dom"},placement:{type:String,default:e.TOP},resizeable:Boolean},u=function(e,t){var o=t.fontSize,n=void 0===o?14:o,r=t.fontFamily,i=void 0===r?"Microsoft YaHei":r,a=document.createElement("canvas").getContext("2d");a.font="".concat(n,"px ").concat(i);var l=a.measureText(e),u=Math.abs(l.actualBoundingBoxLeft)+Math.abs(l.actualBoundingBoxRight);return Math.max(l.width,u)},c=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.body;if(!o)return 0;var n=t||{},r=n.fontSize,i=n.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,o.append(a);var l=a.clientWidth;return o.removeChild(a),l};a(35);const s=(0,o.defineComponent)({name:"OverflowTitle",props:i,setup:function(e,n){var r=n.slots,i=(0,o.ref)(null),a=(0,o.ref)(null),l=(0,o.ref)(!1),s=(0,o.shallowRef)(),v=(0,o.computed)((function(){var t;return e.content?e.content:null===(t=null==r?void 0:r.default)||void 0===t?void 0:t.call(r)}));return(0,o.onMounted)((function(){var n=i.value.clientWidth,r=(0,t.debounce)(500,(function(){var t,o,r;l.value=!1,s.value={};var d=0;if("dom"===e.calType)d=c(null===(t=a.value)||void 0===t?void 0:t.textContent,null,i.value);else{var f=getComputedStyle(i.value),p=f.fontSize,m=f.fontFamily;d=u(v.value,{fontSize:p,fontFamily:m})}d>n&&(l.value=!0,"title"===e.type&&(s.value={title:null!==(r=null===(o=null==a?void 0:a.value)||void 0===o?void 0:o.innerText)&&void 0!==r?r:e.content}))}));if(r(),e.resizeable){var d=new ResizeObserver(r);d.observe(i.value),(0,o.onBeforeUnmount)((function(){i.value&&(null==d||d.unobserve(i.value)),null==d||d.disconnect()}))}})),{boxRef:i,textRef:a,isShowTips:l,contentText:v,textProps:s}},render:function(){var e=this;return(0,o.createVNode)("div",{ref:"boxRef",class:"position-relative"},[(0,o.createVNode)(r(),{disabled:"title"===this.type||!this.isShowTips,placement:this.placement},{default:function(){return(0,o.createVNode)("div",(0,o.mergeProps)({ref:"textRef",class:"text-ov"},e.textProps),[e.contentText])},content:function(){return e.contentText}})])}}),v={mounted:function(e,t){var o=t.value,n=void 0===o?{}:o,r=e.parentElement.clientWidth;if(r){var i=n.content,a=n.calType,l=void 0===a?"dom":a,s=i||e.innerText,v=0;if("dom"===l)v=c(e.textContent,null,e.parentElement);else{var d=getComputedStyle(e),f=d.fontSize,p=d.fontFamily;v=u(s,{fontSize:f,fontFamily:p})}v>r&&e.setAttribute("title",s)}}},d=(0,t.withInstall)(s)})(),l})()));
@@ -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,40 @@
1
+ import { PropType } from 'vue';
2
+ export declare type TipsType = 'tips' | 'title';
3
+ export declare type CalType = 'dom' | 'canvas';
4
+ export declare enum PlacementEnum {
5
+ AUTO = "auto",
6
+ AUTO_START = "auto-start",
7
+ AUTO_END = "auto-end",
8
+ TOP = "top",
9
+ RIGHT = "right",
10
+ BOTTOM = "bottom",
11
+ LEFT = "left",
12
+ TOP_START = "top-start",
13
+ TOP_END = "top-end",
14
+ BOTTOM_START = "bottom-start",
15
+ BOTTOM_END = "bottom-end",
16
+ RIGHT_START = "right-start",
17
+ RIGHT_END = "right-end",
18
+ LEFT_START = "left-start",
19
+ LEFT_END = "left-end"
20
+ }
21
+ export declare function placementType(): import("vue-types").VueTypeValidableDef<"auto" | "left" | "right" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end"> & {
22
+ default: "auto" | "left" | "right" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
23
+ };
24
+ declare const _default: {
25
+ content: StringConstructor;
26
+ type: {
27
+ type: PropType<TipsType>;
28
+ default: string;
29
+ };
30
+ calType: {
31
+ type: PropType<CalType>;
32
+ default: string;
33
+ };
34
+ placement: {
35
+ type: PropType<PlacementEnum>;
36
+ default: PlacementEnum;
37
+ };
38
+ resizeable: BooleanConstructor;
39
+ };
40
+ 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;