bkui-vue 2.0.1-beta.3 → 2.0.1-beta.30

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 (405) hide show
  1. package/dist/index.cjs.js +166 -166
  2. package/dist/index.esm.js +31939 -31805
  3. package/dist/index.umd.js +166 -166
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/affix.css +130 -0
  7. package/lib/affix/affix.variable.css +262 -1
  8. package/lib/affix/index.js +7 -7
  9. package/lib/alert/alert.css +133 -3
  10. package/lib/alert/alert.d.ts +5 -12
  11. package/lib/alert/alert.variable.css +262 -1
  12. package/lib/alert/index.d.ts +11 -26
  13. package/lib/alert/index.js +0 -1
  14. package/lib/backtop/backtop.css +133 -3
  15. package/lib/backtop/backtop.d.ts +1 -1
  16. package/lib/backtop/backtop.variable.css +395 -4
  17. package/lib/backtop/index.d.ts +3 -3
  18. package/lib/backtop/index.js +6 -6
  19. package/lib/badge/badge.css +156 -26
  20. package/lib/badge/badge.variable.css +262 -1
  21. package/lib/badge/index.js +1 -1
  22. package/lib/breadcrumb/breadcrumb.css +135 -5
  23. package/lib/breadcrumb/breadcrumb.variable.css +397 -6
  24. package/lib/button/button.css +273 -143
  25. package/lib/button/button.d.ts +7 -7
  26. package/lib/button/button.variable.css +262 -1
  27. package/lib/button/index.d.ts +8 -8
  28. package/lib/button/index.js +6 -7
  29. package/lib/card/card.css +134 -4
  30. package/lib/card/card.variable.css +396 -5
  31. package/lib/cascader/cascader-panel.d.ts +1 -1
  32. package/lib/cascader/cascader.css +156 -26
  33. package/lib/cascader/cascader.d.ts +1 -1
  34. package/lib/cascader/cascader.less +4 -4
  35. package/lib/cascader/cascader.variable.css +418 -27
  36. package/lib/cascader/index.js +36 -36
  37. package/lib/cascader/interface.d.ts +1 -1
  38. package/lib/checkbox/checkbox-group.d.ts +0 -16
  39. package/lib/checkbox/checkbox.css +139 -9
  40. package/lib/checkbox/checkbox.d.ts +7 -7
  41. package/lib/checkbox/checkbox.variable.css +262 -1
  42. package/lib/checkbox/index.d.ts +11 -22
  43. package/lib/checkbox/index.js +12 -5
  44. package/lib/checkbox/type.d.ts +1 -1
  45. package/lib/code-diff/code-diff.css +130 -0
  46. package/lib/code-diff/code-diff.variable.css +262 -1
  47. package/lib/code-diff/index.js +8 -8
  48. package/lib/collapse/collapse.css +131 -1
  49. package/lib/collapse/collapse.variable.css +262 -1
  50. package/lib/collapse/index.js +2 -2
  51. package/lib/collapse/utils.d.ts +2 -2
  52. package/lib/collapse-transition/collapse-transition.css +130 -0
  53. package/lib/collapse-transition/collapse-transition.variable.css +262 -1
  54. package/lib/color-picker/color-picker.css +133 -3
  55. package/lib/color-picker/color-picker.less +3 -3
  56. package/lib/color-picker/color-picker.variable.css +265 -4
  57. package/lib/color-picker/index.js +45 -45
  58. package/lib/components.d.ts +32 -32
  59. package/lib/components.js +31 -31
  60. package/lib/config-provider/config-provider.css +130 -0
  61. package/lib/config-provider/config-provider.variable.css +262 -1
  62. package/lib/config-provider/index.d.ts +1 -1
  63. package/lib/container/container.css +130 -0
  64. package/lib/container/container.variable.css +392 -1
  65. package/lib/container/index.js +6 -7
  66. package/lib/date-picker/base/date-table.d.ts +1 -1
  67. package/lib/date-picker/base/month-table.d.ts +1 -1
  68. package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
  69. package/lib/date-picker/base/year-table.d.ts +3 -3
  70. package/lib/date-picker/date-picker.css +147 -17
  71. package/lib/date-picker/date-picker.d.ts +0 -10
  72. package/lib/date-picker/date-picker.variable.css +262 -1
  73. package/lib/date-picker/index.d.ts +0 -22
  74. package/lib/date-picker/index.js +320 -223
  75. package/lib/date-picker/interface.d.ts +9 -9
  76. package/lib/date-picker/panel/date-range.d.ts +6 -68
  77. package/lib/date-picker/panel/date.d.ts +1 -1
  78. package/lib/date-picker/panel/time-range.d.ts +1 -10
  79. package/lib/date-picker/panel/time.d.ts +1 -10
  80. package/lib/date-picker/props.d.ts +1 -5
  81. package/lib/date-picker/time-picker.d.ts +0 -9
  82. package/lib/date-picker/utils.d.ts +5 -1
  83. package/lib/dialog/dialog.css +138 -12
  84. package/lib/dialog/dialog.d.ts +36 -20
  85. package/lib/dialog/dialog.variable.css +400 -13
  86. package/lib/dialog/index.d.ts +78 -44
  87. package/lib/dialog/index.js +22 -22
  88. package/lib/dialog/props.d.ts +15 -8
  89. package/lib/directives/index.d.ts +3 -3
  90. package/lib/directives/index.js +166 -166
  91. package/lib/directives/tooltips.d.ts +1 -1
  92. package/lib/dist.index.js +2 -4
  93. package/lib/divider/divider.css +133 -3
  94. package/lib/divider/divider.d.ts +5 -5
  95. package/lib/divider/divider.variable.css +262 -1
  96. package/lib/divider/index.d.ts +11 -11
  97. package/lib/divider/index.js +2 -2
  98. package/lib/divider/props.d.ts +2 -2
  99. package/lib/dropdown/dropdown-item.d.ts +1 -1
  100. package/lib/dropdown/dropdown-menu.d.ts +1 -1
  101. package/lib/dropdown/dropdown.css +130 -0
  102. package/lib/dropdown/dropdown.d.ts +5 -5
  103. package/lib/dropdown/dropdown.variable.css +392 -1
  104. package/lib/dropdown/index.d.ts +13 -13
  105. package/lib/dropdown/index.js +7 -7
  106. package/lib/exception/exception.css +130 -0
  107. package/lib/exception/exception.d.ts +9 -9
  108. package/lib/exception/exception.variable.css +262 -1
  109. package/lib/exception/index.d.ts +11 -11
  110. package/lib/exception/index.js +10 -10
  111. package/lib/exception/typings/index.d.ts +1 -1
  112. package/lib/fixed-navbar/fixed-navbar.css +134 -4
  113. package/lib/fixed-navbar/fixed-navbar.variable.css +262 -1
  114. package/lib/fixed-navbar/index.js +2 -2
  115. package/lib/form/form-item.d.ts +0 -16
  116. package/lib/form/form.css +130 -0
  117. package/lib/form/form.d.ts +2 -2
  118. package/lib/form/form.variable.css +262 -1
  119. package/lib/form/index.d.ts +0 -11
  120. package/lib/form/index.js +14 -16
  121. package/lib/form/type.d.ts +2 -2
  122. package/lib/icon/index.d.ts +11 -11
  123. package/lib/icon/index.js +11 -11
  124. package/lib/image/image-viewer.css +130 -0
  125. package/lib/image/image-viewer.d.ts +1 -1
  126. package/lib/image/image-viewer.variable.css +262 -1
  127. package/lib/image/image.css +130 -0
  128. package/lib/image/image.variable.css +392 -1
  129. package/lib/image/index.js +20 -21
  130. package/lib/index.d.ts +9 -3
  131. package/lib/index.js +5 -29
  132. package/lib/info-box/index.js +13 -13
  133. package/lib/info-box/info-box.css +134 -4
  134. package/lib/info-box/info-box.d.ts +15 -15
  135. package/lib/info-box/info-box.variable.css +262 -1
  136. package/lib/input/index.d.ts +15 -15
  137. package/lib/input/index.js +16 -17
  138. package/lib/input/input.css +202 -72
  139. package/lib/input/input.d.ts +15 -15
  140. package/lib/input/input.variable.css +464 -73
  141. package/lib/link/index.d.ts +11 -11
  142. package/lib/link/index.js +3 -3
  143. package/lib/link/link.css +146 -16
  144. package/lib/link/link.d.ts +5 -5
  145. package/lib/link/link.variable.css +262 -1
  146. package/lib/loading/index.d.ts +4 -4
  147. package/lib/loading/index.js +6 -6
  148. package/lib/loading/loading.css +146 -16
  149. package/lib/loading/loading.d.ts +6 -6
  150. package/lib/loading/loading.variable.css +408 -17
  151. package/lib/locale/index.d.ts +1 -1
  152. package/lib/menu/index.js +0 -1
  153. package/lib/menu/menu.css +148 -18
  154. package/lib/menu/menu.variable.css +410 -19
  155. package/lib/menu/submenu.css +130 -0
  156. package/lib/menu/submenu.variable.css +262 -1
  157. package/lib/menu/utils.d.ts +3 -3
  158. package/lib/message/index.js +18 -18
  159. package/lib/message/message.css +151 -21
  160. package/lib/message/message.variable.css +262 -1
  161. package/lib/message/messageConstructor.d.ts +11 -11
  162. package/lib/modal/index.d.ts +49 -8
  163. package/lib/modal/index.js +46 -25
  164. package/lib/modal/modal.css +134 -8
  165. package/lib/modal/modal.d.ts +19 -3
  166. package/lib/modal/modal.less +0 -5
  167. package/lib/modal/modal.variable.css +396 -9
  168. package/lib/modal/props.mixin.d.ts +8 -1
  169. package/lib/navigation/index.js +20 -20
  170. package/lib/navigation/navigation.css +132 -2
  171. package/lib/navigation/navigation.d.ts +1 -1
  172. package/lib/navigation/navigation.variable.css +262 -1
  173. package/lib/notify/index.js +4 -4
  174. package/lib/notify/notify.css +137 -7
  175. package/lib/notify/notify.variable.css +262 -1
  176. package/lib/overflow-title/components/overflow-title.d.ts +9 -9
  177. package/lib/overflow-title/index.d.ts +19 -19
  178. package/lib/overflow-title/index.js +61 -11
  179. package/lib/overflow-title/props.d.ts +18 -18
  180. package/lib/pagination/index.d.ts +0 -19
  181. package/lib/pagination/index.js +44 -23
  182. package/lib/pagination/pagination.css +139 -9
  183. package/lib/pagination/pagination.d.ts +0 -13
  184. package/lib/pagination/pagination.less +14 -13
  185. package/lib/pagination/pagination.variable.css +270 -9
  186. package/lib/pagination/type.d.ts +1 -1
  187. package/lib/pagination/use-limit.d.ts +1 -1
  188. package/lib/pagination/use-total.d.ts +1 -1
  189. package/lib/plugin-popover/index.js +18 -20
  190. package/lib/pop-confirm/index.d.ts +11 -43
  191. package/lib/pop-confirm/index.js +27 -28
  192. package/lib/pop-confirm/pop-confirm.css +133 -1
  193. package/lib/pop-confirm/pop-confirm.d.ts +5 -19
  194. package/lib/pop-confirm/pop-confirm.less +3 -1
  195. package/lib/pop-confirm/pop-confirm.variable.css +265 -2
  196. package/lib/pop-confirm/props.d.ts +5 -11
  197. package/lib/popover/const.d.ts +3 -3
  198. package/lib/popover/index.d.ts +19 -19
  199. package/lib/popover/index.js +18 -20
  200. package/lib/popover/plugin-popover.d.ts +1 -1
  201. package/lib/popover/popover.css +130 -0
  202. package/lib/popover/popover.d.ts +7 -7
  203. package/lib/popover/popover.variable.css +262 -1
  204. package/lib/popover/props.d.ts +4 -4
  205. package/lib/preset.d.ts +0 -1
  206. package/lib/preset.js +0 -1
  207. package/lib/process/index.js +3 -3
  208. package/lib/process/process.css +143 -13
  209. package/lib/process/process.variable.css +262 -1
  210. package/lib/progress/index.d.ts +11 -11
  211. package/lib/progress/index.js +10 -11
  212. package/lib/progress/progress.css +134 -4
  213. package/lib/progress/progress.d.ts +7 -7
  214. package/lib/progress/progress.variable.css +396 -5
  215. package/lib/radio/index.d.ts +21 -21
  216. package/lib/radio/index.js +28 -17
  217. package/lib/radio/radio-button.d.ts +7 -7
  218. package/lib/radio/radio-group.d.ts +7 -7
  219. package/lib/radio/radio.css +172 -42
  220. package/lib/radio/radio.d.ts +7 -7
  221. package/lib/radio/radio.variable.css +262 -1
  222. package/lib/radio/type.d.ts +1 -1
  223. package/lib/rate/index.js +8 -8
  224. package/lib/rate/rate.css +157 -0
  225. package/lib/rate/rate.less +33 -0
  226. package/lib/rate/rate.variable.css +289 -1
  227. package/lib/resize-layout/index.d.ts +11 -11
  228. package/lib/resize-layout/index.js +7 -8
  229. package/lib/resize-layout/resize-layout.css +130 -0
  230. package/lib/resize-layout/resize-layout.d.ts +5 -5
  231. package/lib/resize-layout/resize-layout.variable.css +262 -1
  232. package/lib/scrollbar/index.js +63 -11
  233. package/lib/scrollbar/scrollbar-core/index.d.ts +21 -20
  234. package/lib/scrollbar/scrollbar.css +157 -8
  235. package/lib/scrollbar/scrollbar.less +35 -10
  236. package/lib/scrollbar/scrollbar.variable.css +289 -9
  237. package/lib/search-select/index.js +66 -66
  238. package/lib/search-select/menu.d.ts +1 -1
  239. package/lib/search-select/search-select.css +163 -33
  240. package/lib/search-select/search-select.variable.css +425 -34
  241. package/lib/search-select/selected.d.ts +1 -1
  242. package/lib/search-select/utils.d.ts +3 -3
  243. package/lib/select/common.d.ts +4 -4
  244. package/lib/select/index.d.ts +94 -70
  245. package/lib/select/index.js +176 -150
  246. package/lib/select/option.d.ts +1 -1
  247. package/lib/select/select.css +172 -43
  248. package/lib/select/select.d.ts +37 -27
  249. package/lib/select/select.less +3 -4
  250. package/lib/select/select.variable.css +434 -44
  251. package/lib/select/selectTagInput.d.ts +6 -6
  252. package/lib/select/type.d.ts +2 -2
  253. package/lib/shared/frame-throttle.d.ts +15 -0
  254. package/lib/shared/index.d.ts +2 -1
  255. package/lib/shared/index.js +110 -47
  256. package/lib/shared/popover.d.ts +3 -3
  257. package/lib/shared/token.d.ts +1 -1
  258. package/lib/shared/vue-types.d.ts +46 -46
  259. package/lib/shared/z-index-manager.d.ts +6 -6
  260. package/lib/sideslider/index.d.ts +41 -7
  261. package/lib/sideslider/index.js +12 -11
  262. package/lib/sideslider/sideslider.css +138 -9
  263. package/lib/sideslider/sideslider.d.ts +19 -3
  264. package/lib/sideslider/sideslider.less +7 -8
  265. package/lib/sideslider/sideslider.variable.css +269 -9
  266. package/lib/slider/index.js +21 -23
  267. package/lib/slider/slider.css +135 -5
  268. package/lib/slider/slider.variable.css +262 -1
  269. package/lib/steps/index.d.ts +14 -29
  270. package/lib/steps/index.js +3 -4
  271. package/lib/steps/steps.css +168 -38
  272. package/lib/steps/steps.d.ts +8 -18
  273. package/lib/steps/steps.variable.css +262 -1
  274. package/lib/styles/index.d.ts +0 -1
  275. package/lib/styles/mixins/animate.css +130 -0
  276. package/lib/styles/mixins/animate.variable.css +262 -1
  277. package/lib/styles/mixins/mixins.css +130 -0
  278. package/lib/styles/mixins/mixins.variable.css +130 -0
  279. package/lib/styles/mixins/popper.css +130 -0
  280. package/lib/styles/mixins/popper.variable.css +262 -1
  281. package/lib/styles/mixins/scroll.css +130 -0
  282. package/lib/styles/mixins/scroll.variable.css +262 -1
  283. package/lib/styles/reset.css +130 -0
  284. package/lib/styles/reset.variable.css +262 -1
  285. package/lib/{rate/star.variable.css → styles/themes/themes.css} +2 -28
  286. package/lib/styles/themes/themes.less +299 -129
  287. package/lib/styles/themes/themes.variable.css +130 -0
  288. package/lib/swiper/index.js +5 -5
  289. package/lib/swiper/swiper.css +130 -0
  290. package/lib/swiper/swiper.variable.css +262 -1
  291. package/lib/switcher/index.js +2 -2
  292. package/lib/switcher/switcher.css +147 -17
  293. package/lib/switcher/switcher.d.ts +2 -2
  294. package/lib/switcher/switcher.variable.css +409 -18
  295. package/lib/tab/index.d.ts +22 -22
  296. package/lib/tab/index.js +15 -15
  297. package/lib/tab/props.d.ts +15 -15
  298. package/lib/tab/tab-nav.d.ts +10 -10
  299. package/lib/tab/tab.css +147 -17
  300. package/lib/tab/tab.d.ts +10 -10
  301. package/lib/tab/tab.variable.css +262 -1
  302. package/lib/table/components/ghost-body.d.ts +2 -0
  303. package/lib/table/components/table-column.d.ts +25 -126
  304. package/lib/table/const.d.ts +22 -10
  305. package/lib/table/events.d.ts +16 -112
  306. package/lib/table/hooks/use-cell.d.ts +20 -0
  307. package/lib/table/hooks/use-column-resize.d.ts +7 -0
  308. package/lib/table/hooks/use-column-template.d.ts +5 -0
  309. package/lib/table/hooks/use-columns.d.ts +66 -0
  310. package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
  311. package/lib/table/hooks/use-fixed-column.d.ts +10 -0
  312. package/lib/table/hooks/use-head.d.ts +16 -0
  313. package/lib/table/hooks/use-layout.d.ts +23 -0
  314. package/lib/table/hooks/use-pagination.d.ts +16 -0
  315. package/lib/table/hooks/use-render.d.ts +23 -0
  316. package/lib/table/hooks/use-rows.d.ts +27 -0
  317. package/lib/table/hooks/use-settings.d.ts +24 -0
  318. package/lib/table/hooks/use-shift-key.d.ts +15 -0
  319. package/lib/table/index.d.ts +72 -634
  320. package/lib/table/index.js +3477 -3410
  321. package/lib/table/plugins/head-filter.css +130 -0
  322. package/lib/table/plugins/head-filter.d.ts +2 -1
  323. package/lib/table/plugins/head-filter.variable.css +262 -1
  324. package/lib/table/plugins/head-sort.css +130 -0
  325. package/lib/table/plugins/head-sort.variable.css +262 -1
  326. package/lib/table/plugins/settings.css +131 -0
  327. package/lib/table/plugins/settings.less +1 -0
  328. package/lib/table/plugins/settings.variable.css +263 -1
  329. package/lib/table/props.d.ts +93 -62
  330. package/lib/table/table.css +433 -260
  331. package/lib/table/table.d.ts +31 -185
  332. package/lib/table/table.less +120 -99
  333. package/lib/table/table.variable.css +695 -261
  334. package/lib/table/utils.d.ts +36 -10
  335. package/lib/table-column/index.d.ts +36 -289
  336. package/lib/table-column/index.js +17335 -45
  337. package/lib/tag/index.d.ts +11 -11
  338. package/lib/tag/index.js +2 -2
  339. package/lib/tag/tag.css +135 -5
  340. package/lib/tag/tag.d.ts +5 -5
  341. package/lib/tag/tag.variable.css +262 -1
  342. package/lib/tag-input/common.d.ts +1 -1
  343. package/lib/tag-input/index.d.ts +8 -8
  344. package/lib/tag-input/index.js +30 -30
  345. package/lib/tag-input/tag-input.css +148 -18
  346. package/lib/tag-input/tag-input.d.ts +4 -4
  347. package/lib/tag-input/tag-input.variable.css +262 -1
  348. package/lib/tag-input/tag-props.d.ts +2 -2
  349. package/lib/time-picker/index.d.ts +0 -19
  350. package/lib/time-picker/time-picker.css +130 -0
  351. package/lib/time-picker/time-picker.variable.css +262 -1
  352. package/lib/timeline/index.js +2 -2
  353. package/lib/timeline/timeline.css +149 -19
  354. package/lib/timeline/timeline.variable.css +262 -1
  355. package/lib/transfer/const.d.ts +2 -2
  356. package/lib/transfer/index.js +19 -19
  357. package/lib/transfer/transfer.css +158 -28
  358. package/lib/transfer/transfer.less +3 -3
  359. package/lib/transfer/transfer.variable.css +271 -10
  360. package/lib/tree/constant.d.ts +20 -20
  361. package/lib/tree/index.d.ts +32 -24
  362. package/lib/tree/index.js +66 -52
  363. package/lib/tree/props.d.ts +18 -11
  364. package/lib/tree/tree.css +166 -17
  365. package/lib/tree/tree.d.ts +14 -16
  366. package/lib/tree/tree.less +1 -1
  367. package/lib/tree/tree.variable.css +428 -18
  368. package/lib/tree/use-empty.d.ts +1 -1
  369. package/lib/tree/use-node-action.d.ts +8 -8
  370. package/lib/tree/use-node-attribute.d.ts +42 -34
  371. package/lib/tree/use-search.d.ts +1 -1
  372. package/lib/tree/util.d.ts +1 -1
  373. package/lib/upload/index.js +41 -35
  374. package/lib/upload/props.d.ts +1 -1
  375. package/lib/upload/upload.css +157 -27
  376. package/lib/upload/upload.type.d.ts +7 -7
  377. package/lib/upload/upload.variable.css +419 -28
  378. package/lib/upload/use-file-handler.d.ts +1 -1
  379. package/lib/virtual-render/index.d.ts +12 -23
  380. package/lib/virtual-render/index.js +17290 -24
  381. package/lib/virtual-render/props.d.ts +2 -3
  382. package/lib/virtual-render/use-fix-top.d.ts +1 -1
  383. package/lib/virtual-render/v-virtual-render.d.ts +1 -1
  384. package/lib/virtual-render/virtual-render.css +157 -8
  385. package/lib/virtual-render/virtual-render.d.ts +6 -11
  386. package/lib/virtual-render/virtual-render.variable.css +419 -9
  387. package/package.json +17 -55
  388. package/lib/rate/star.css +0 -27
  389. package/lib/rate/star.less +0 -34
  390. package/lib/table/plugins/col-group.d.ts +0 -38
  391. package/lib/table/plugins/settings.d.ts +0 -16
  392. package/lib/table/plugins/use-active-columns.d.ts +0 -16
  393. package/lib/table/plugins/use-column-resize.d.ts +0 -35
  394. package/lib/table/plugins/use-column-template.d.ts +0 -7
  395. package/lib/table/plugins/use-fixed-column.d.ts +0 -27
  396. package/lib/table/plugins/use-head-cell.d.ts +0 -7
  397. package/lib/table/plugins/use-pagination.d.ts +0 -23
  398. package/lib/table/plugins/use-shift-key.d.ts +0 -11
  399. package/lib/table/use-attributes.d.ts +0 -62
  400. package/lib/table/use-column.d.ts +0 -275
  401. package/lib/table/use-common.d.ts +0 -1679
  402. package/lib/table/use-render.d.ts +0 -11
  403. /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
  404. /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
  405. /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
@@ -1,35 +1,27 @@
1
1
  import { SORT_OPTION } from './const';
2
2
  import { Column, IColumnActive } from './props';
3
- export declare const enum EVENTS {
4
- /** 点击排序事件 */
5
- ON_SORT_BY_CLICK = "onSortByClick",
6
- ON_FILTER_CLICK = "onFilterClick",
7
- ON_SETTING_CHANGE = "onSettingChange",
8
- ON_ROW_EXPAND_CLICK = "onRowExpandClick",
9
- ON_ROW_CHECK = "onRowCheck"
10
- }
11
3
  export declare const enum EMIT_EVENTS {
12
- COLUMN_PICK = "columnPick",
13
- COLUMN_SORT = "columnSort",
4
+ CELL_CLICK = "cellClick",
5
+ CELL_DBL_CLICK = "cellDblclick",
14
6
  COLUMN_FILTER = "columnFilter",
15
7
  COLUMN_FILTER_SAVE = "colFilterSave",
8
+ COLUMN_PICK = "columnPick",
9
+ COLUMN_SORT = "columnSort",
10
+ DRAG_END = "dragend",
11
+ NATIVE_CLICK = "click",
12
+ NATIVE_DBL_CLICK = "dblclick",
13
+ PAGE_LIMIT_CHANGE = "pageLimitChange",
14
+ PAGE_VALUE_CHANGE = "pageValueChange",
16
15
  ROW_CLICK = "rowClick",
17
16
  ROW_DBL_CLICK = "rowDblclick",
18
17
  ROW_EXPAND_CLICK = "rowExpand",
19
18
  ROW_MOUSE_ENTER = "rowMouseEnter",
20
19
  ROW_MOUSE_LEAVE = "rowMouseLeave",
21
- PAGE_LIMIT_CHANGE = "pageLimitChange",
22
- PAGE_VALUE_CHANGE = "pageValueChange",
23
- SETTING_CHANGE = "settingChange",
24
- SCROLL_BOTTOM = "scrollBottom",
25
20
  ROW_SELECT = "select",
26
21
  ROW_SELECT_ALL = "selectAll",
27
22
  ROW_SELECT_CHANGE = "selectionChange",
28
- CELL_CLICK = "cellClick",
29
- CELL_DBL_CLICK = "cellDblclick",
30
- NATIVE_CLICK = "click",
31
- NATIVE_DBL_CLICK = "dblclick",
32
- DRAG_END = "dragend"
23
+ SCROLL_BOTTOM = "scrollBottom",
24
+ SETTING_CHANGE = "settingChange"
33
25
  }
34
26
  export declare const EVENT_COL_PICK: (_cols: IColumnActive[]) => boolean;
35
27
  export declare const EVENT_COL_FILTER: (_args: {
@@ -50,13 +42,13 @@ export declare const EVENT_MOUSE_FN: (_e: MouseEvent, _row: any, _index: number,
50
42
  export declare const EVENT_EXPAND_FN: (_args: {
51
43
  row: any;
52
44
  column: Column;
53
- index: Number;
45
+ index: number;
54
46
  rows: any[];
55
47
  e: MouseEvent;
56
48
  }) => boolean;
57
49
  export declare const EVENT_ROW_SELECT_FN: (_args: {
58
50
  row: any;
59
- index: Number;
51
+ index: number;
60
52
  checked: string;
61
53
  data: any[];
62
54
  }) => boolean;
@@ -66,18 +58,13 @@ export declare const EVENT_ROW_SELECT_ALL_FN: (_args: {
66
58
  }) => boolean;
67
59
  export declare const EVENT_ROW_SELECT_CHANGE_FN: (_args: {
68
60
  row: any;
69
- index: Number;
61
+ index: number;
70
62
  checked: string;
71
63
  data: any[];
72
64
  isAll: boolean;
73
65
  }) => boolean;
74
66
  export declare const EVENT_PAGE_FN: (_arg: number) => boolean;
75
- export declare const EVENT_SETTING_FN: (_args: {
76
- checked: string[];
77
- size: string;
78
- height: number;
79
- fields: Array<Record<string, any>>;
80
- }) => boolean;
67
+ export declare const EVENT_SETTING_FN: (_args: any) => boolean;
81
68
  export declare const EVENT_CELL_FN: (_args: {
82
69
  event: MouseEvent;
83
70
  row: any;
@@ -99,90 +86,7 @@ export declare const EVENT_DRAGEND_FN: (_args: {
99
86
  sourceEvent: DragEvent;
100
87
  data: any[];
101
88
  }) => boolean;
102
- export declare const EMIT_EVENT_TYPES: {
103
- columnPick: (_cols: IColumnActive[]) => boolean;
104
- columnFilter: (_args: {
105
- checked: string[];
106
- column: Column;
107
- index: number;
108
- }) => boolean;
109
- columnSort: (_args: {
110
- column: Column;
111
- index: number;
112
- type: SORT_OPTION;
113
- }) => boolean;
114
- colFilterSave: (_args: {
115
- column: Column;
116
- values: any[];
117
- }) => boolean;
118
- rowClick: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
119
- rowDblclick: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
120
- rowExpand: (_args: {
121
- row: any;
122
- column: Column;
123
- index: Number;
124
- rows: any[];
125
- e: MouseEvent;
126
- }) => boolean;
127
- select: (_args: {
128
- row: any;
129
- index: Number;
130
- checked: string;
131
- data: any[];
132
- }) => boolean;
133
- selectAll: (_args: {
134
- checked: string;
135
- data: any[];
136
- }) => boolean;
137
- selectionChange: (_args: {
138
- row: any;
139
- index: Number;
140
- checked: string;
141
- data: any[];
142
- isAll: boolean;
143
- }) => boolean;
144
- pageLimitChange: (_arg: number) => boolean;
145
- pageValueChange: (_arg: number) => boolean;
146
- settingChange: (_args: {
147
- checked: string[];
148
- size: string;
149
- height: number;
150
- fields: Array<Record<string, any>>;
151
- }) => boolean;
152
- scrollBottom: (_args: {
153
- translateX: number;
154
- translateY: number;
155
- scrollTop: number;
156
- scrollLeft: number;
157
- bottom: number;
158
- }) => boolean;
159
- cellClick: (_args: {
160
- event: MouseEvent;
161
- row: any;
162
- column: Column;
163
- cell: {
164
- getValue: () => string;
165
- };
166
- rowIndex: number;
167
- columnIndex: number;
168
- }) => boolean;
169
- cellDblclick: (_args: {
170
- event: MouseEvent;
171
- row: any;
172
- column: Column;
173
- cell: {
174
- getValue: () => string;
175
- };
176
- rowIndex: number;
177
- columnIndex: number;
178
- }) => boolean;
179
- rowMouseEnter: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
180
- rowMouseLeave: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
181
- dragend: (_args: {
182
- sourceEvent: DragEvent;
183
- data: any[];
184
- }) => boolean;
185
- };
89
+ export declare const EMIT_EVENT_TYPES: Record<string, (...args: any[]) => boolean>;
186
90
  export declare const CELL_EVENT_TYPES: {
187
91
  click: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
188
92
  dblclick: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
@@ -0,0 +1,20 @@
1
+ import { SetupContext } from 'vue';
2
+ import { Column, TablePropTypes } from '../props';
3
+ import { UseColumns } from './use-columns';
4
+ import { UseRows } from './use-rows';
5
+ import { UseMultiShiftKey } from './use-shift-key';
6
+ type CellRenderArgsType = {
7
+ props: TablePropTypes;
8
+ rows: UseRows;
9
+ ctx: SetupContext;
10
+ columns: UseColumns;
11
+ row: Record<string, object>;
12
+ index: number;
13
+ column: Column;
14
+ isChild: boolean;
15
+ multiShiftKey: UseMultiShiftKey;
16
+ };
17
+ declare const _default: ({ props, rows, ctx, columns, row, index, column, isChild, multiShiftKey, }: CellRenderArgsType) => {
18
+ renderCell: () => any;
19
+ };
20
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { UseColumns } from './use-columns';
2
+ declare const _default: (columns: UseColumns, { afterResize }: {
3
+ afterResize: any;
4
+ }) => {
5
+ dragOffsetX: import("vue").Ref<number>;
6
+ };
7
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { VNode, VNodeNormalizedChildren } from 'vue';
2
+ declare const _default: () => {
3
+ resolveColumns: (children: VNode[] | VNodeNormalizedChildren) => any[];
4
+ };
5
+ export default _default;
@@ -0,0 +1,66 @@
1
+ import { IEmptyObject } from '../const';
2
+ import { Column, IHeadGroup, Settings, TablePropTypes } from '../props';
3
+ declare const useColumns: (props: TablePropTypes) => {
4
+ needColSpan: import("vue").ComputedRef<boolean>;
5
+ needRowSpan: import("vue").ComputedRef<boolean>;
6
+ tableColumnSchema: WeakMap<object, any> & Omit<WeakMap<object, any>, keyof WeakMap<any, any>>;
7
+ tableColumnList: any[];
8
+ visibleColumns: Column[];
9
+ debounceUpdateColumns: import("lodash").DebouncedFunc<(columns: any, onComplete?: any) => void>;
10
+ sortColumns: any[];
11
+ filterColumns: any[];
12
+ columnGroup: Column[][];
13
+ columnGroupMap: WeakMap<Column, IHeadGroup>;
14
+ clearColumnSort: () => void;
15
+ clearSelectionAll: () => void;
16
+ formatColumns: () => void;
17
+ flatColumnTemplate: (cols: Column[]) => any[];
18
+ isHiddenColumn: (col: Column) => any;
19
+ getColumnId: (col: Column) => any;
20
+ getColumnOrderWidth: (col: Column, orders?: string[]) => number;
21
+ getColumnAttribute: (col: Column | IEmptyObject, attributeName: string) => any;
22
+ getHeadColumnClass: (column: Column, colIndex: number) => {
23
+ [x: string]: boolean;
24
+ column_fixed: boolean;
25
+ column_fixed_left: boolean;
26
+ column_fixed_right: boolean;
27
+ };
28
+ getColumnClass: (column: Column, colIndex: number) => {
29
+ [x: string]: boolean;
30
+ column_fixed: boolean;
31
+ column_fixed_left: boolean;
32
+ column_fixed_right: boolean;
33
+ };
34
+ getFixedStlye: (column: Column) => any;
35
+ getColumnRect: (column: Column) => any;
36
+ getColumnCustomClass: (column: any, row?: Record<string, object>) => any;
37
+ getColumnRefAttribute: (col: Column | IEmptyObject, attributeName: string) => any;
38
+ getColumnCalcWidth: (column: Column) => any;
39
+ getColumnWidth: (column: Column) => any;
40
+ getGroupAttribute: (group: Column) => IHeadGroup;
41
+ resolveEventListener: (col: Column) => Record<string, (...args: any[]) => void> & {
42
+ [x: string]: (e: MouseEvent) => void;
43
+ };
44
+ setColumnIsHidden: (column: Column, value?: boolean) => void;
45
+ setColumnResizeWidth: (column: Column, value: number) => void;
46
+ setColumnSortOption: (column: Column, option: Record<string, object>) => void;
47
+ setColumnFilterOption: (column: Column, option: Record<string, object>) => void;
48
+ setColumnAttributeBySettings: (settings: Settings, checkedVal?: string[]) => void;
49
+ setColumnAttribute: (col: Column, attrName: string, attrValue: string | number | boolean | object | Record<string, object> | Record<string, object>[] | ((...args: any[]) => boolean | number | string | void)) => void;
50
+ setColumnSortActive: (column: Column, active: boolean) => void;
51
+ setFixedStyle: (column: Column, style: {
52
+ left?: string;
53
+ right?: string;
54
+ }) => void;
55
+ setColumnRect: (col: any, { left, right, width, height }: {
56
+ left?: number;
57
+ right?: number;
58
+ width?: number;
59
+ height?: number;
60
+ }) => void;
61
+ setVisibleColumns: () => void;
62
+ setNextColumnWidth: (col: Column, newWidth: number) => void;
63
+ resolveColsCalcWidth: (width: number) => void;
64
+ };
65
+ export type UseColumns = ReturnType<typeof useColumns>;
66
+ export default useColumns;
@@ -1,7 +1,7 @@
1
1
  import { SetupContext } from 'vue';
2
2
  import { TablePropTypes } from '../props';
3
- import { ITableResponse } from '../use-attributes';
4
- declare const _default: (props: TablePropTypes, resp: ITableResponse, ctx: SetupContext<any>) => {
3
+ import { UseRows } from './use-rows';
4
+ declare const _default: (props: TablePropTypes, rows: UseRows, ctx: SetupContext<any>) => {
5
5
  onDragenter?: undefined;
6
6
  onDragleave?: undefined;
7
7
  onDragstart?: undefined;
@@ -0,0 +1,10 @@
1
+ import { TablePropTypes } from '../props';
2
+ import { UseColumns } from './use-columns';
3
+ /**
4
+ * 固定列Hooks
5
+ */
6
+ declare const _default: (_props: TablePropTypes, columns: UseColumns) => {
7
+ renderFixedRows: () => JSX.Element[];
8
+ resolveFixedColumnStyle: () => void;
9
+ };
10
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import { SetupContext } from 'vue';
2
+ import { Column, TablePropTypes } from '../props';
3
+ import { UseColumns } from './use-columns';
4
+ import { UseRows } from './use-rows';
5
+ declare const _default: ({ props, columns, rows, ctx, column, index, }: {
6
+ props: TablePropTypes;
7
+ columns: UseColumns;
8
+ ctx: SetupContext;
9
+ column: Column;
10
+ index: number;
11
+ rows: UseRows;
12
+ rowIndex: number;
13
+ }) => {
14
+ getTH: () => JSX.Element;
15
+ };
16
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import { Ref } from 'vue';
2
+ import { Column, TablePropTypes } from '../props';
3
+ declare const _default: (props: TablePropTypes, ctx: any) => {
4
+ renderContainer: (childrend: any) => JSX.Element;
5
+ renderHeader: (childrend?: any, settings?: any, fixedRows?: any) => JSX.Element;
6
+ renderBody: (list: any, childrend?: any, fixedRows?: any) => JSX.Element;
7
+ renderFooter: (childrend?: any) => JSX.Element;
8
+ renderFixedBottom: () => JSX.Element;
9
+ setBodyHeight: (height: number) => void;
10
+ setFootHeight: (height: number) => void;
11
+ setTranslateX: (val: number) => void;
12
+ setDragOffsetX: (val: number) => void;
13
+ setFixedColumns: (values: Column[]) => void;
14
+ setOffsetRight: () => void;
15
+ setLineHeight: (val: number) => void;
16
+ setHeaderRowCount: (val: number) => void;
17
+ initRootStyleVars: () => void;
18
+ refRoot: Ref<HTMLElement>;
19
+ refHead: Ref<HTMLElement>;
20
+ refBody: Ref<any>;
21
+ refFooter: Ref<any>;
22
+ };
23
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import { TablePropTypes } from '../props';
2
+ declare const usePagination: (props: TablePropTypes) => {
3
+ options: {
4
+ enabled: boolean;
5
+ count: number;
6
+ limit: number;
7
+ current: number;
8
+ align: string;
9
+ layout: string[];
10
+ };
11
+ isShowPagination: import("vue").ComputedRef<boolean>;
12
+ setPagination: (option: Record<string, any>) => void;
13
+ disabledPagination: (disable?: boolean) => void;
14
+ };
15
+ export type UsePagination = ReturnType<typeof usePagination>;
16
+ export default usePagination;
@@ -0,0 +1,23 @@
1
+ import { SetupContext } from 'vue';
2
+ import { TablePropTypes } from '../props';
3
+ import { UseColumns } from './use-columns';
4
+ import { UsePagination } from './use-pagination';
5
+ import { UseRows } from './use-rows';
6
+ import { UseSettings } from './use-settings';
7
+ type RenderType = {
8
+ props: TablePropTypes;
9
+ ctx: SetupContext;
10
+ columns: UseColumns;
11
+ rows: UseRows;
12
+ pagination: UsePagination;
13
+ settings: UseSettings;
14
+ };
15
+ declare const _default: ({ props, ctx, columns, rows, pagination, settings }: RenderType) => {
16
+ renderColumns: () => JSX.Element;
17
+ renderTBody: (list?: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
18
+ [key: string]: any;
19
+ }>[] | JSX.Element;
20
+ renderTFoot: () => JSX.Element;
21
+ setDragEvents: (events: Record<string, () => void>) => void;
22
+ };
23
+ export default _default;
@@ -0,0 +1,27 @@
1
+ import { IEmptyObject } from '../const';
2
+ import { TablePropTypes } from '../props';
3
+ declare const useRows: (props: TablePropTypes) => {
4
+ setRowIndex: (row: Record<string, unknown>, index: number) => void;
5
+ setRowExpand: (row: Record<string, unknown>, isExpand: boolean) => void;
6
+ isRowChecked: (row: Record<string, unknown>, index: number) => any;
7
+ setPageRowList: (rowList: Record<string, unknown>[]) => void;
8
+ setTableRowList: (data: unknown[]) => void;
9
+ clearSelection: () => void;
10
+ formatDataSchema: () => void;
11
+ toggleRowSelection: (row: Record<string, unknown>) => void;
12
+ setRowSelectionAll: (val: boolean) => void;
13
+ setRowSelection: (row: Record<string, unknown>, isSelected: boolean, index?: number) => void;
14
+ setAllRowExpand: (value?: boolean) => void;
15
+ setTableIsNeedRowSpan: (val: boolean) => void;
16
+ getRowAttribute: (item: IEmptyObject | object, attrName: string) => any;
17
+ getRowSelection: () => any[];
18
+ getRowIndeterminate: () => any;
19
+ getRowCheckedAllValue: () => any;
20
+ changePageRowIndex: (sourceIndex: any, targetIndex: any) => void;
21
+ toggleAllSelection: (value?: boolean) => void;
22
+ tableRowList: import("vue").Ref<any[]>;
23
+ tableRowSchema: WeakMap<object, any> & Omit<WeakMap<object, any>, keyof WeakMap<any, any>>;
24
+ pageRowList: any[];
25
+ };
26
+ export type UseRows = ReturnType<typeof useRows>;
27
+ export default useRows;
@@ -0,0 +1,24 @@
1
+ import { SetupContext } from 'vue';
2
+ import { TablePropTypes } from '../props';
3
+ import { UseColumns } from './use-columns';
4
+ declare const useSettings: (props: TablePropTypes, ctx: SetupContext, columns: UseColumns, afterSetting: any) => {
5
+ options: {
6
+ enabled: boolean;
7
+ fields: any[];
8
+ checked: any[];
9
+ limit: number;
10
+ size: string;
11
+ sizeList: {
12
+ value?: string;
13
+ label?: string;
14
+ height?: number;
15
+ }[];
16
+ showLineHeight: boolean;
17
+ extCls: string;
18
+ trigger: string;
19
+ height: number;
20
+ };
21
+ renderSettings: () => JSX.Element;
22
+ };
23
+ export type UseSettings = ReturnType<typeof useSettings>;
24
+ export default useSettings;
@@ -0,0 +1,15 @@
1
+ import { TablePropTypes } from '../props';
2
+ declare const multiShiftKey: (props: TablePropTypes) => {
3
+ isShiftKeyDown: import("vue").Ref<boolean>;
4
+ setStore: (row: any, index: number) => boolean;
5
+ getStore: () => {
6
+ start: any;
7
+ end: any;
8
+ };
9
+ clearStore: () => void;
10
+ setStoreStart: (row?: any, index?: any) => void;
11
+ clearStoreStart: () => void;
12
+ removeMultiCheckedEvents: () => void;
13
+ };
14
+ export type UseMultiShiftKey = ReturnType<typeof multiShiftKey>;
15
+ export default multiShiftKey;