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
@@ -1,8 +1,125 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { ExtractPropTypes, Slot } from 'vue';
2
+ import { ROW_HOVER, SORT_OPTION } from './const';
2
3
  export declare enum SortScope {
3
4
  CURRENT = "current",
4
5
  ALL = "all"
5
6
  }
7
+ export declare type ColumnFilterListItem = {
8
+ text?: string;
9
+ value?: string;
10
+ };
11
+ export declare enum OverflowModeEnum {
12
+ STATIC = "static",
13
+ AUTO = "auto"
14
+ }
15
+ export declare const overflowModeType: import("vue-types").VueTypeDef<"auto" | "static">;
16
+ export declare enum ColumnTypeEnum {
17
+ SELECTION = "selection",
18
+ INDEX = "index",
19
+ EXPAND = "expand",
20
+ NONE = "none"
21
+ }
22
+ export declare enum TableAlignEnum {
23
+ LEFT = "left",
24
+ RIGHT = "right",
25
+ CENTER = "center",
26
+ NONE = ""
27
+ }
28
+ export declare const columnType: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
29
+ export declare const TableAlign: import("vue-types").VueTypeDef<"" | "left" | "center" | "right">;
30
+ export declare enum FullEnum {
31
+ FULL = "full",
32
+ FUZZY = "fuzzy"
33
+ }
34
+ export declare const fullType: import("vue-types").VueTypeDef<"full" | "fuzzy">;
35
+ export declare enum SettingSizeEnum {
36
+ SMALL = "small",
37
+ MEDIUM = "medium",
38
+ LARGE = "large"
39
+ }
40
+ export declare const settingSizeType: import("vue-types").VueTypeDef<"small" | "medium" | "large">;
41
+ export declare enum FixedEnum {
42
+ LEFT = "left",
43
+ RIGHT = "right"
44
+ }
45
+ export declare const fixedType: import("vue-types").VueTypeValidableDef<"left" | "right">;
46
+ export declare type IOverflowTooltip = {
47
+ content: string | Function;
48
+ disabled?: boolean;
49
+ watchCellResize?: boolean;
50
+ mode?: `${OverflowModeEnum}`;
51
+ };
52
+ export declare type ISortOption = {
53
+ [key: string]: SORT_OPTION;
54
+ };
55
+ export declare enum ColumnPickEnum {
56
+ MULTI = "multi",
57
+ SINGLE = "single",
58
+ DISABLED = "disabled"
59
+ }
60
+ export declare enum ResizerWay {
61
+ DEBOUNCE = "debounce",
62
+ THROTTLE = "throttle"
63
+ }
64
+ export declare const IColumnType: {
65
+ label: import("vue-types").VueTypeDef<any>;
66
+ field: import("vue-types").VueTypeDef<any>;
67
+ render: import("vue-types").VueTypeDef<any>;
68
+ width: import("vue-types").VueTypeDef<string | number>;
69
+ minWidth: import("vue-types").VueTypeDef<string | number> & {
70
+ default: string | number;
71
+ };
72
+ columnKey: import("vue-types").VueTypeValidableDef<string> & {
73
+ default: string;
74
+ } & {
75
+ default: string;
76
+ };
77
+ showOverflowTooltip: import("vue-types").VueTypeDef<boolean | IOverflowTooltip> & {
78
+ default: boolean | (() => IOverflowTooltip);
79
+ };
80
+ type: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
81
+ resizable: import("vue-types").VueTypeValidableDef<boolean> & {
82
+ default: boolean;
83
+ } & {
84
+ default: boolean;
85
+ };
86
+ fixed: import("vue-types").VueTypeDef<boolean | "left" | "right"> & {
87
+ default: boolean | "left" | "right";
88
+ };
89
+ sort: import("vue-types").VueTypeDef<string | boolean | {
90
+ sortFn: any;
91
+ sortScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
92
+ value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
93
+ }> & {
94
+ default: string | boolean | (() => {
95
+ sortFn: any;
96
+ sortScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
97
+ value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
98
+ });
99
+ };
100
+ filter: import("vue-types").VueTypeDef<string | boolean | {
101
+ list: any[] | (object & (() => any[]));
102
+ filterFn: any;
103
+ match: "full" | "fuzzy";
104
+ filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
105
+ btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
106
+ btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
107
+ }> & {
108
+ default: string | boolean | (() => {
109
+ list: any[] | (object & (() => any[]));
110
+ filterFn: any;
111
+ match: "full" | "fuzzy";
112
+ filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
113
+ btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
114
+ btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
115
+ });
116
+ };
117
+ colspan: import("vue-types").VueTypeDef<any>;
118
+ rowspan: import("vue-types").VueTypeDef<any>;
119
+ align: import("vue-types").VueTypeDef<"" | "left" | "center" | "right">;
120
+ className: import("vue-types").VueTypeDef<any>;
121
+ };
122
+ export declare type TableColumnProps = Partial<ExtractPropTypes<typeof IColumnType>>;
6
123
  export declare const tableProps: {
7
124
  /**
8
125
  * 渲染列表
@@ -13,7 +130,9 @@ export declare const tableProps: {
13
130
  /**
14
131
  * Table 列渲染
15
132
  */
16
- columns: import("vue-types").VueTypeDef<Column[]>;
133
+ columns: import("vue-types").VueTypeDef<Column[]> & {
134
+ default: () => Column[];
135
+ };
17
136
  /**
18
137
  * 当前选中列
19
138
  * 当设置选中多列时(columnPick = multi),配置为数组[index1, index2, index3],只能选中单列时,可以为数值或者数组[index]
@@ -24,23 +143,31 @@ export declare const tableProps: {
24
143
  * 支持:单列(single),多列(multi),禁用(disabled)
25
144
  * 默认:disabled
26
145
  */
27
- columnPick: import("vue-types").VueTypeDef<string> & {
28
- default: string;
146
+ columnPick: import("vue-types").VueTypeDef<"disabled" | "single" | "multi"> & {
147
+ default: "disabled" | "single" | "multi";
29
148
  };
30
149
  /**
31
150
  * 设置表格高度
32
- * 默认:auto,依赖外层高度
151
+ * 默认:auto 根据行数自动填充高度
152
+ * 100%,依赖初始化时父级容器高度
33
153
  */
34
154
  height: import("vue-types").VueTypeDef<string | number> & {
35
155
  default: string | number;
36
156
  };
37
157
  /**
38
158
  * 设置表格最小高度
39
- * 默认:auto,依赖外层高度
159
+ * 默认:300
40
160
  */
41
161
  minHeight: import("vue-types").VueTypeDef<string | number> & {
42
162
  default: string | number;
43
163
  };
164
+ /**
165
+ * 设置表格最d大高度
166
+ * 默认:auto,依赖外层高度
167
+ */
168
+ maxHeight: import("vue-types").VueTypeDef<string | number> & {
169
+ default: string | number;
170
+ };
44
171
  /**
45
172
  * 行高,可以为固定数值类型
46
173
  * 可以是函数,返回当前行的高度,返回值为数值类型
@@ -81,8 +208,8 @@ export declare const tableProps: {
81
208
  * 表格边框显示设置,可以是一个组合
82
209
  * 生效规则: 除非单独设置 none,否则会追加每个设置
83
210
  */
84
- border: import("vue-types").VueTypeDef<string[]> & {
85
- default: () => string[];
211
+ border: import("vue-types").VueTypeDef<string | ("col" | "none" | "horizontal" | "row" | "outer")[]> & {
212
+ default: string | (() => ("col" | "none" | "horizontal" | "row" | "outer")[]);
86
213
  };
87
214
  /**
88
215
  * 分页配置
@@ -96,6 +223,17 @@ export declare const tableProps: {
96
223
  [key: string]: any;
97
224
  });
98
225
  };
226
+ /**
227
+ * 分页组件高度
228
+ * 在设置了分页配置之后才会生效
229
+ * 用于配置分页组件的高度,在不同项目中,分页组件高度会影响表格高度计算
230
+ * 这里设置为可配置项,避免自计算导致的性能问题以及不确定性样式问题
231
+ */
232
+ paginationHeight: import("vue-types").VueTypeValidableDef<number> & {
233
+ default: number;
234
+ } & {
235
+ default: number;
236
+ };
99
237
  /**
100
238
  * 是否启用远程分页
101
239
  */
@@ -104,18 +242,208 @@ export declare const tableProps: {
104
242
  } & {
105
243
  default: boolean;
106
244
  };
245
+ /**
246
+ * 空数据展示
247
+ */
248
+ emptyText: import("vue-types").VueTypeValidableDef<string> & {
249
+ default: string;
250
+ };
251
+ /**
252
+ * bk-table-setting-content
253
+ */
254
+ settings: import("vue-types").VueTypeDef<boolean | {
255
+ fields: Field[] | (() => Field[]);
256
+ checked: string[] | (() => string[]);
257
+ limit: (number | object | (() => number) | ((props: Record<string, unknown>) => number)) & number;
258
+ size: "small" | "medium" | "large";
259
+ sizeList: SizeItem[] | (object & (() => SizeItem[]));
260
+ showLineHeight: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
261
+ }> & {
262
+ default: boolean | (() => {
263
+ fields: Field[] | (() => Field[]);
264
+ checked: string[] | (() => string[]);
265
+ limit: (number | object | (() => number) | ((props: Record<string, unknown>) => number)) & number;
266
+ size: "small" | "medium" | "large";
267
+ sizeList: SizeItem[] | (object & (() => SizeItem[]));
268
+ showLineHeight: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
269
+ });
270
+ };
271
+ /**
272
+ * 行的 class 的回调方法,也可以使用一个固定的 Object 为所有行设置一样的 Style
273
+ */
274
+ rowClass: import("vue-types").VueTypeDef<any> & {
275
+ default: any;
276
+ };
277
+ /**
278
+ * 行的 style 的回调方法,也可以使用一个固定的 Object 为所有行设置一样的 Style
279
+ */
280
+ rowStyle: import("vue-types").VueTypeDef<any> & {
281
+ default: any;
282
+ };
283
+ /**
284
+ * 单元格的 style 的回调方法,也可以使用一个固定的 Object 为所有单元格设置一样的 Style
285
+ */
286
+ cellStyle: import("vue-types").VueTypeDef<any> & {
287
+ default: any;
288
+ };
289
+ /**
290
+ * 单元格的 className 的回调方法,也可以使用字符串为所有单元格设置一个固定的 className
291
+ */
292
+ cellClass: import("vue-types").VueTypeDef<any> & {
293
+ default: any;
294
+ };
295
+ /**
296
+ * 表格底部loading加载效果,可以配合表格scroll-bottom事件使用
297
+ * 详细配置可参考bk-loading组件
298
+ */
299
+ scrollLoading: import("vue-types").VueTypeDef<boolean | {
300
+ [key: string]: any;
301
+ }> & {
302
+ default: boolean | (() => {
303
+ [key: string]: any;
304
+ });
305
+ };
306
+ /**
307
+ * 仅对 type=selection 的列有效,类型为 Boolean,为 true 则会在数据更新之后保留之前选中的展开收起操作(需指定 row-key)
308
+ */
309
+ reserveExpand: import("vue-types").VueTypeValidableDef<boolean> & {
310
+ default: boolean;
311
+ } & {
312
+ default: boolean;
313
+ };
314
+ /**
315
+ * 仅对设置了selection的情况下生效
316
+ * 用于初始化或者更新row已选中状态
317
+ * 内部使用逻辑为:row[selectionKey],可以为多级选择,但是多级选择只支持 row.child.child
318
+ */
319
+ selectionKey: import("vue-types").VueTypeValidableDef<string> & {
320
+ default: string;
321
+ } & {
322
+ default: string;
323
+ };
324
+ /**
325
+ * 提供自定义判定当前行是否选中
326
+ * 如果设置了此属性,其他判定均不生效
327
+ * ({ row, cell, data }) => bool
328
+ */
329
+ isSelectedFn: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
330
+ default: (...args: any[]) => any;
331
+ } & {
332
+ default: (...args: any[]) => any;
333
+ };
334
+ /**
335
+ * 行数据的 Key,用来优化 Table 的渲染
336
+ * 此key用于渲染table row的key,便于大数据渲染时的性能优化
337
+ * 在使用 reserve-selection, reserve-expand 功能的情况下,该属性是必填的。
338
+ * 类型为 String 时,支持多层访问:user.info.id,同时支持 user.info[0].id
339
+ */
340
+ rowKey: import("vue-types").VueTypeDef<any> & {
341
+ default: any;
342
+ };
343
+ /**
344
+ * 当内容过长被隐藏时显示 tooltip, 此处为全局配置, 如果只配置此处,整个table都启用
345
+ * column内部可以单个配置覆盖此配置
346
+ */
347
+ showOverflowTooltip: import("vue-types").VueTypeDef<boolean | IOverflowTooltip> & {
348
+ default: boolean | (() => IOverflowTooltip);
349
+ };
350
+ /**
351
+ * 为避免不必要的数据修改导致的不可控组件更新
352
+ * 默认组件不会对传入组件的data进行任何修改
353
+ * 设置此属性为true则会对源数据进行同步(如:启用selection,勾选时想要自动同步到源数据)
354
+ * 目前只会对指定了selectionKey的情况下才会对指定的字段数据进行更新,同时需要指定 rowKey,保证匹配到的row是正确的目标对象
355
+ */
356
+ asyncData: import("vue-types").VueTypeValidableDef<boolean> & {
357
+ default: boolean;
358
+ } & {
359
+ default: boolean;
360
+ };
361
+ /**
362
+ * 鼠标划过行样式行为
363
+ * @param { ROW_HOVER.AUTO }
364
+ * @param { ROW_HOVER.HIGHLIGHT }
365
+ */
366
+ rowHover: import("vue-types").VueTypeDef<ROW_HOVER> & {
367
+ default: ROW_HOVER;
368
+ };
369
+ /**
370
+ * 默认的排序列的 prop 和顺序。它的 prop 属性指定默认的排序的列,order指定默认排序的顺序
371
+ */
372
+ defaultSort: import("vue-types").VueTypeShape<ISortOption> & {
373
+ default: () => Partial<ISortOption>;
374
+ };
375
+ /**
376
+ * 配合 column selection 使用
377
+ * 用于配置渲染行数据的勾选框是否可用
378
+ * 可以直接为 true|false,全部启用或者禁用
379
+ * 如果是函数,则返回 true|false
380
+ * ({ row, index, isCheckAll }) => boolean
381
+ */
382
+ isRowSelectEnable: import("vue-types").VueTypeDef<any> & {
383
+ default: any;
384
+ };
385
+ /**
386
+ * 当外层容器尺寸改变时,当前组件用什么方式进行重新计算
387
+ * 默认为 throttle,按照指定频率重新计算
388
+ * 可选值:debounce,在指定时间范围内只执行一次重新计算
389
+ */
390
+ resizerWay: import("vue-types").VueTypeDef<"debounce" | "throttle">;
391
+ /**
392
+ * 是否监表格尺寸变化而响应式重新计算渲染
393
+ */
394
+ observerResize: import("vue-types").VueTypeValidableDef<boolean> & {
395
+ default: boolean;
396
+ } & {
397
+ default: boolean;
398
+ };
399
+ align: import("vue-types").VueTypeDef<"" | "left" | "center" | "right">;
400
+ headerAlign: import("vue-types").VueTypeDef<"" | "left" | "center" | "right">;
401
+ };
402
+ /**
403
+ * 配置自定义行高选项
404
+ */
405
+ export declare type SizeItem = {
406
+ value?: string;
407
+ label?: string;
408
+ height?: number;
409
+ };
410
+ export declare type Settings = {
411
+ fields?: Field[];
412
+ checked?: string[];
413
+ limit?: number;
414
+ size?: string;
415
+ sizeList?: SizeItem[];
416
+ showLineHeight?: boolean;
417
+ };
418
+ export declare type Field = {
419
+ label: string;
420
+ field?: string;
421
+ disabled?: boolean;
107
422
  };
108
423
  export declare type Column = {
109
424
  label: Function | string;
110
425
  field?: Function | string;
111
- render?: Function | string;
426
+ render?: Function | string | Slot;
112
427
  width?: number | string;
428
+ minWidth?: number | string;
429
+ columnKey?: string;
430
+ showOverflowTooltip?: boolean | IOverflowTooltip;
113
431
  type?: string;
432
+ fixed?: string | boolean;
433
+ resizable?: boolean;
114
434
  sort?: {
115
- sortby?: string;
116
435
  sortFn?: Function;
117
436
  sortScope?: string;
118
- } | boolean;
437
+ value?: string;
438
+ } | boolean | string;
439
+ filter?: {
440
+ list?: any;
441
+ filterFn?: Function;
442
+ } | boolean | string;
443
+ colspan?: Function | Number;
444
+ rowspan?: Function | Number;
445
+ className?: string | Function;
446
+ align?: string;
119
447
  };
120
448
  export declare type Thead = {
121
449
  height?: Number;
@@ -124,6 +452,9 @@ export declare type Thead = {
124
452
  };
125
453
  export declare type GroupColumn = {
126
454
  calcWidth?: number;
455
+ resizeWidth?: number;
456
+ isHidden?: boolean;
457
+ listeners?: Map<string, any>;
127
458
  } & Column;
128
459
  export declare type Columns = ReadonlyArray<Column>;
129
460
  export declare type TablePropTypes = Readonly<ExtractPropTypes<typeof tableProps>>;
@@ -133,4 +464,16 @@ export declare type IColumnActive = {
133
464
  };
134
465
  export declare type IReactiveProp = {
135
466
  activeColumns: IColumnActive[];
467
+ rowActions: Record<string, any>;
468
+ scrollTranslateY: Number;
469
+ scrollTranslateX: Number;
470
+ pos: Record<string, any>;
471
+ settings: any;
472
+ setting: any;
473
+ defaultSort: Record<string, any>;
474
+ };
475
+ export declare type Colgroups = Column & {
476
+ calcWidth: number;
477
+ resizeWidth: number;
478
+ listeners: Map<string, Function>;
136
479
  };
@@ -1,14 +1,7 @@
1
- import { TablePlugins } from './plugins/index';
1
+ import { ComputedRef, Ref } from 'vue';
2
+ import type { Language } from '../locale';
3
+ import { TablePlugins } from './plugins';
2
4
  import { GroupColumn, IColumnActive, IReactiveProp, TablePropTypes } from './props';
3
- export declare const enum EVENTS {
4
- /** 点击排序事件 */
5
- ON_SORT_BY_CLICK = "onSortByClick"
6
- }
7
- /** 排序方式 */
8
- export declare const enum SortType {
9
- ASC = "asc",
10
- DESC = "desc"
11
- }
12
5
  export default class TableRender {
13
6
  props: TablePropTypes;
14
7
  context: any;
@@ -16,28 +9,32 @@ export default class TableRender {
16
9
  colgroups: GroupColumn[];
17
10
  uuid: string;
18
11
  events: Map<string, any[]>;
12
+ styleRef: ComputedRef<{
13
+ hasScrollY: boolean;
14
+ }>;
15
+ t: ComputedRef<Language['table']>;
16
+ activeSortIndex: Ref<number>;
19
17
  plugins: TablePlugins;
20
- constructor(props: any, ctx: any, reactiveProp: IReactiveProp, colgroups: GroupColumn[]);
18
+ constructor(props: any, ctx: any, reactiveProp: IReactiveProp, colgroups: GroupColumn[], styleRef: any, t: ComputedRef<Language['table']>);
21
19
  get propActiveCols(): IColumnActive[];
22
20
  /**
23
21
  * 渲染Table Head
24
- * @param activeColumns 当前选中的列
25
- * @returns
26
22
  */
27
- renderTableHeadSchema(): JSX.Element;
23
+ renderTableHeadSchema(): (string | JSX.Element)[];
28
24
  /**
29
25
  * 渲染Table主体
30
- * @param activeColumns 当前选中的列
26
+ * @param rows 表格数据
31
27
  * @returns
32
28
  */
33
- renderTableBodySchema(rows: any[]): JSX.Element;
29
+ renderTableBodySchema(rows: any[]): any;
34
30
  renderTableFooter(options: any): JSX.Element;
31
+ getRowHeight: (row?: any, rowIndex?: number) => any;
35
32
  /**
36
33
  * 注册监听事件
37
34
  * @param eventName
38
- * @param wartcher
35
+ * @param watcher
39
36
  */
40
- on(eventName: string, wartcher: Function): this;
37
+ on(eventName: string, watcher: Function): this;
41
38
  destroy(): void;
42
39
  /**
43
40
  * 派发事件
@@ -46,7 +43,7 @@ export default class TableRender {
46
43
  */
47
44
  private emitEvent;
48
45
  private handlePageLimitChange;
49
- private hanlePageChange;
46
+ private handlePageChange;
50
47
  /**
51
48
  * 指定列选中状态
52
49
  * @param index 指定选中的列Index
@@ -56,19 +53,37 @@ export default class TableRender {
56
53
  /**
57
54
  * 点击选中一列事件
58
55
  * @param index 当前选中列Index
56
+ * @param column 当前选中列
59
57
  */
60
58
  private handleColumnHeadClick;
59
+ /**
60
+ * 获取排序设置表头
61
+ * @param column 当前渲染排序列
62
+ * @param index 排序列所在index
63
+ * @returns
64
+ */
65
+ private getSortCell;
66
+ private getFilterCell;
61
67
  /**
62
68
  * 渲染Table Header
63
69
  * @returns
64
70
  */
65
71
  private renderHeader;
72
+ /**
73
+ * 获取用户自定义class
74
+ * @param column
75
+ * @param row
76
+ * @private
77
+ */
78
+ private getColumnCustomClass;
66
79
  /**
67
80
  * 渲染Table Body
68
81
  * @returns
69
82
  */
70
83
  private renderTBody;
84
+ private renderExpandRow;
71
85
  private getColumnClass;
86
+ private getHeadColumnClass;
72
87
  /**
73
88
  * table row click handle
74
89
  * @param e
@@ -85,19 +100,19 @@ export default class TableRender {
85
100
  * @param rows
86
101
  */
87
102
  private handleRowDblClick;
88
- /**
89
- * 获取当前行指定列的内容
90
- * @param row 当前行
91
- * @param key 指定列名
92
- * @param column 列配置
93
- * @param index 当前行Index
94
- * @returns
95
- */
96
- private getRowText;
103
+ private handleRowEnter;
104
+ private handleRowLeave;
105
+ private getExpandCell;
106
+ private handleRowExpandClick;
107
+ private renderCellCallbackFn;
108
+ private renderCheckboxColumn;
109
+ private renderExpandColumn;
97
110
  /**
98
111
  * 渲染表格Cell内容
99
112
  * @param row 当前行
100
113
  * @param column 当前列
114
+ * @param index 当前列
115
+ * @param rows 当前列
101
116
  * @returns
102
117
  */
103
118
  private renderCell;
@@ -108,8 +123,16 @@ export default class TableRender {
108
123
  */
109
124
  private isColActive;
110
125
  /**
111
- * 渲染表格Col分组
112
- * @returns
113
- */
126
+ * 渲染表格Col分组
127
+ * @returns
128
+ */
114
129
  private renderColGroup;
130
+ /**
131
+ * 过滤当前可渲染的列
132
+ */
133
+ private get filterColGroups();
134
+ /**
135
+ * 当前Table Setting
136
+ */
137
+ private get setting();
115
138
  }