bkui-vue 0.0.1-beta.40 → 0.0.1-beta.400

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 (661) hide show
  1. package/License.txt +14 -0
  2. package/dist/index.cjs.js +160 -35
  3. package/dist/index.esm.js +32335 -13017
  4. package/dist/index.umd.js +160 -35
  5. package/dist/style.css +1 -1
  6. package/dist/style.variable.css +1 -0
  7. package/lib/affix/affix.css +3 -0
  8. package/lib/affix/affix.d.ts +47 -0
  9. package/lib/affix/affix.less +5 -0
  10. package/lib/affix/affix.variable.css +123 -0
  11. package/lib/affix/index.d.ts +143 -0
  12. package/lib/affix/index.js +1 -0
  13. package/lib/alert/alert.css +9 -3
  14. package/lib/alert/alert.d.ts +5 -5
  15. package/lib/alert/alert.less +29 -20
  16. package/lib/alert/alert.variable.css +39 -6
  17. package/lib/alert/index.d.ts +11 -11
  18. package/lib/alert/index.js +1 -0
  19. package/lib/animate-number/animate-number.d.ts +1 -1
  20. package/lib/animate-number/index.d.ts +4 -4
  21. package/lib/animate-number/{animate-number.js → index.js} +1 -1
  22. package/lib/backtop/backtop.css +8 -0
  23. package/lib/backtop/backtop.d.ts +1 -1
  24. package/lib/backtop/backtop.less +8 -0
  25. package/lib/backtop/backtop.variable.css +38 -3
  26. package/lib/backtop/index.d.ts +4 -4
  27. package/lib/backtop/index.js +1 -0
  28. package/lib/badge/badge.css +7 -10
  29. package/lib/badge/badge.d.ts +28 -7
  30. package/lib/badge/badge.less +9 -11
  31. package/lib/badge/badge.variable.css +37 -13
  32. package/lib/badge/index.d.ts +68 -18
  33. package/lib/badge/index.js +1 -0
  34. package/lib/breadcrumb/breadcrumb-item.d.ts +5 -3
  35. package/lib/breadcrumb/breadcrumb.css +51 -0
  36. package/lib/breadcrumb/breadcrumb.d.ts +1 -1
  37. package/lib/breadcrumb/breadcrumb.variable.css +86 -8
  38. package/lib/breadcrumb/index.d.ts +9 -7
  39. package/lib/breadcrumb/index.js +1 -0
  40. package/lib/button/button-group.d.ts +2 -2
  41. package/lib/button/button.css +85 -50
  42. package/lib/button/button.d.ts +44 -24
  43. package/lib/button/button.less +72 -42
  44. package/lib/button/button.variable.css +115 -53
  45. package/lib/button/index.d.ts +70 -40
  46. package/lib/button/index.js +1 -0
  47. package/lib/card/card.css +96 -1
  48. package/lib/card/card.d.ts +47 -6
  49. package/lib/card/card.less +50 -2
  50. package/lib/card/card.variable.css +130 -8
  51. package/lib/card/index.d.ts +113 -17
  52. package/lib/card/index.js +1 -0
  53. package/lib/cascader/cascader-panel.d.ts +100 -0
  54. package/lib/cascader/cascader.css +173 -0
  55. package/lib/cascader/cascader.d.ts +303 -0
  56. package/lib/cascader/cascader.less +196 -0
  57. package/lib/cascader/cascader.variable.css +293 -0
  58. package/lib/cascader/index.d.ts +868 -0
  59. package/lib/cascader/index.js +1 -0
  60. package/lib/cascader/interface.d.ts +51 -0
  61. package/lib/cascader/node.d.ts +31 -0
  62. package/lib/cascader/store.d.ts +23 -0
  63. package/lib/checkbox/checkbox-group.d.ts +16 -0
  64. package/lib/checkbox/checkbox.css +46 -10
  65. package/lib/checkbox/checkbox.d.ts +36 -24
  66. package/lib/checkbox/checkbox.less +79 -31
  67. package/lib/checkbox/checkbox.variable.css +76 -13
  68. package/lib/checkbox/common.d.ts +4 -3
  69. package/lib/checkbox/index.d.ts +70 -38
  70. package/lib/checkbox/index.js +1 -0
  71. package/lib/checkbox/type.d.ts +2 -6
  72. package/lib/code-diff/code-diff.css +27 -7
  73. package/lib/code-diff/code-diff.d.ts +1 -1
  74. package/lib/code-diff/code-diff.less +42 -7
  75. package/lib/code-diff/code-diff.variable.css +57 -10
  76. package/lib/code-diff/index.js +1 -0
  77. package/lib/collapse/collapse-panel.d.ts +78 -0
  78. package/lib/collapse/collapse.css +28 -12
  79. package/lib/collapse/collapse.d.ts +11 -52
  80. package/lib/collapse/collapse.less +54 -29
  81. package/lib/collapse/collapse.variable.css +148 -12
  82. package/lib/collapse/index.d.ts +127 -20
  83. package/lib/collapse/index.js +1 -0
  84. package/lib/collapse/props.d.ts +84 -0
  85. package/lib/collapse/utils.d.ts +11 -0
  86. package/lib/color-picker/color-picker.css +275 -0
  87. package/lib/color-picker/color-picker.d.ts +144 -0
  88. package/lib/color-picker/color-picker.less +325 -0
  89. package/lib/color-picker/color-picker.variable.css +395 -0
  90. package/lib/color-picker/components/color-input.d.ts +42 -0
  91. package/lib/color-picker/components/hue-slider.d.ts +41 -0
  92. package/lib/color-picker/components/input-container.d.ts +42 -0
  93. package/lib/color-picker/components/recommend-colors.d.ts +51 -0
  94. package/lib/color-picker/components/saturation-panel.d.ts +41 -0
  95. package/lib/color-picker/index.d.ts +254 -0
  96. package/lib/color-picker/index.js +1 -0
  97. package/lib/color-picker/utils.d.ts +37 -0
  98. package/lib/components.d.ts +28 -8
  99. package/lib/components.js +1 -0
  100. package/lib/container/col.d.ts +51 -0
  101. package/lib/container/container.css +91 -0
  102. package/lib/container/container.d.ts +83 -0
  103. package/lib/container/container.less +20 -0
  104. package/lib/container/container.variable.css +211 -0
  105. package/lib/container/index.d.ts +223 -0
  106. package/lib/container/index.js +1 -0
  107. package/lib/container/row.d.ts +4 -0
  108. package/lib/date-picker/base/confirm.d.ts +74 -0
  109. package/lib/date-picker/base/date-table.d.ts +96 -0
  110. package/lib/date-picker/base/picker-dropdown.d.ts +74 -0
  111. package/lib/date-picker/base/time-spinner.d.ts +151 -0
  112. package/lib/date-picker/date-picker.css +28 -1
  113. package/lib/date-picker/date-picker.d.ts +49 -20
  114. package/lib/date-picker/date-picker.less +106 -74
  115. package/lib/date-picker/date-picker.variable.css +58 -4
  116. package/lib/date-picker/index.d.ts +121 -54
  117. package/lib/date-picker/index.js +1 -0
  118. package/lib/date-picker/interface.d.ts +11 -1
  119. package/lib/date-picker/panel/date-range.d.ts +309 -0
  120. package/lib/date-picker/panel/date.d.ts +206 -0
  121. package/lib/date-picker/panel/time-range.d.ts +489 -0
  122. package/lib/date-picker/panel/time.d.ts +448 -0
  123. package/lib/date-picker/props.d.ts +55 -5
  124. package/lib/date-picker/time-picker.d.ts +381 -0
  125. package/lib/date-picker/utils.d.ts +22 -2
  126. package/lib/dialog/dialog.css +144 -22
  127. package/lib/dialog/dialog.d.ts +256 -58
  128. package/lib/dialog/dialog.less +105 -32
  129. package/lib/dialog/dialog.variable.css +264 -22
  130. package/lib/dialog/index.d.ts +562 -126
  131. package/lib/dialog/index.js +1 -0
  132. package/lib/dialog/props.d.ts +130 -0
  133. package/lib/directives/ellipsis.d.ts +7 -0
  134. package/lib/directives/index.d.ts +2 -0
  135. package/lib/directives/index.js +2 -0
  136. package/lib/directives/tooltips.d.ts +2 -1
  137. package/lib/dist.index.js +1 -0
  138. package/lib/divider/divider.d.ts +15 -15
  139. package/lib/divider/divider.variable.css +30 -3
  140. package/lib/divider/index.d.ts +34 -34
  141. package/lib/divider/index.js +1 -0
  142. package/lib/divider/props.d.ts +6 -6
  143. package/lib/dropdown/dropdown.css +13 -7
  144. package/lib/dropdown/dropdown.d.ts +47 -15
  145. package/lib/dropdown/dropdown.less +47 -34
  146. package/lib/dropdown/dropdown.variable.css +43 -10
  147. package/lib/dropdown/index.d.ts +102 -38
  148. package/lib/dropdown/index.js +1 -0
  149. package/lib/exception/exception.css +40 -14
  150. package/lib/exception/exception.d.ts +31 -11
  151. package/lib/exception/exception.less +59 -22
  152. package/lib/exception/exception.variable.css +70 -17
  153. package/lib/exception/index.d.ts +43 -26
  154. package/lib/exception/index.js +1 -0
  155. package/lib/exception/typings/index.d.ts +4 -0
  156. package/lib/fixed-navbar/fixed-navbar.d.ts +17 -3
  157. package/lib/fixed-navbar/fixed-navbar.variable.css +30 -3
  158. package/lib/fixed-navbar/index.d.ts +43 -8
  159. package/lib/fixed-navbar/{fixed-navbar.js → index.js} +1 -1
  160. package/lib/form/compose-form-item.d.ts +16 -0
  161. package/lib/form/form-item.d.ts +21 -6
  162. package/lib/form/form.css +104 -15
  163. package/lib/form/form.d.ts +38 -14
  164. package/lib/form/form.less +152 -45
  165. package/lib/form/form.variable.css +224 -15
  166. package/lib/form/index.d.ts +108 -35
  167. package/lib/form/index.js +1 -0
  168. package/lib/form/type.d.ts +8 -7
  169. package/lib/form/utils.d.ts +2 -0
  170. package/lib/form/validator.d.ts +1 -0
  171. package/lib/icon/angle-double-down-line.js +1 -1
  172. package/lib/icon/angle-double-left-line.js +1 -1
  173. package/lib/icon/angle-double-left.js +1 -1
  174. package/lib/icon/angle-double-right-line.js +1 -1
  175. package/lib/icon/angle-double-right.js +1 -1
  176. package/lib/icon/angle-double-up-line.js +1 -1
  177. package/lib/icon/angle-down-fill.js +1 -1
  178. package/lib/icon/angle-down-line.js +1 -1
  179. package/lib/icon/angle-down.js +1 -1
  180. package/lib/icon/angle-left.js +1 -1
  181. package/lib/icon/angle-right.js +1 -1
  182. package/lib/icon/angle-up-fill.js +1 -1
  183. package/lib/icon/angle-up.js +1 -1
  184. package/lib/icon/archive-fill.d.ts +4 -0
  185. package/lib/icon/archive-fill.js +1 -0
  186. package/lib/icon/arrows-left.js +1 -1
  187. package/lib/icon/arrows-right.js +1 -1
  188. package/lib/icon/audio-fill.d.ts +4 -0
  189. package/lib/icon/audio-fill.js +1 -0
  190. package/lib/icon/bk.js +1 -1
  191. package/lib/icon/circle.js +1 -1
  192. package/lib/icon/close-line.d.ts +4 -0
  193. package/lib/icon/close-line.js +1 -0
  194. package/lib/icon/close.js +1 -1
  195. package/lib/icon/code.js +1 -1
  196. package/lib/icon/cog-shape.js +1 -1
  197. package/lib/icon/collapse-left.js +1 -1
  198. package/lib/icon/copy.js +1 -1
  199. package/lib/icon/data-shape.d.ts +4 -0
  200. package/lib/icon/data-shape.js +1 -0
  201. package/lib/icon/del.d.ts +4 -0
  202. package/lib/icon/del.js +1 -0
  203. package/lib/icon/doc-fill.d.ts +4 -0
  204. package/lib/icon/doc-fill.js +1 -0
  205. package/lib/icon/done.js +1 -1
  206. package/lib/icon/down-shape.js +1 -1
  207. package/lib/icon/down-small.js +1 -1
  208. package/lib/icon/edit-line.d.ts +4 -0
  209. package/lib/icon/edit-line.js +1 -0
  210. package/lib/icon/ellipsis.js +1 -1
  211. package/lib/icon/enlarge-line.d.ts +4 -0
  212. package/lib/icon/enlarge-line.js +1 -0
  213. package/lib/icon/error.js +1 -1
  214. package/lib/icon/excel-fill.d.ts +4 -0
  215. package/lib/icon/excel-fill.js +1 -0
  216. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  217. package/lib/icon/exclamation-circle-shape.js +1 -0
  218. package/lib/icon/eye.js +1 -1
  219. package/lib/icon/filliscreen-line.d.ts +4 -0
  220. package/lib/icon/filliscreen-line.js +1 -0
  221. package/lib/icon/folder-open.js +1 -1
  222. package/lib/icon/folder-shape-open.js +1 -1
  223. package/lib/icon/folder-shape.js +1 -1
  224. package/lib/icon/folder.js +1 -1
  225. package/lib/icon/funnel.d.ts +4 -0
  226. package/lib/icon/funnel.js +1 -0
  227. package/lib/icon/help-document-fill.js +1 -1
  228. package/lib/icon/help-fill.js +1 -1
  229. package/lib/icon/help.js +1 -1
  230. package/lib/icon/image-fill.d.ts +4 -0
  231. package/lib/icon/image-fill.js +1 -0
  232. package/lib/icon/img-error.d.ts +4 -0
  233. package/lib/icon/img-placehoulder.d.ts +4 -0
  234. package/lib/icon/img-placehoulder.js +1 -0
  235. package/lib/icon/index.d.ts +27 -1
  236. package/lib/icon/index.js +1 -0
  237. package/lib/icon/info-line.js +1 -1
  238. package/lib/icon/info.js +1 -1
  239. package/lib/icon/left-shape.js +1 -1
  240. package/lib/icon/left-turn-line.d.ts +4 -0
  241. package/lib/icon/left-turn-line.js +1 -0
  242. package/lib/icon/narrow-line.d.ts +4 -0
  243. package/lib/icon/narrow-line.js +1 -0
  244. package/lib/icon/original.d.ts +4 -0
  245. package/lib/icon/original.js +1 -0
  246. package/lib/icon/pdf-fill.d.ts +4 -0
  247. package/lib/icon/pdf-fill.js +1 -0
  248. package/lib/icon/play-shape.js +1 -1
  249. package/lib/icon/plus.js +1 -1
  250. package/lib/icon/ppt-fill.d.ts +4 -0
  251. package/lib/icon/ppt-fill.js +1 -0
  252. package/lib/icon/qq.js +1 -1
  253. package/lib/icon/right-shape.js +1 -1
  254. package/lib/icon/right-turn-line.d.ts +4 -0
  255. package/lib/icon/right-turn-line.js +1 -0
  256. package/lib/icon/search.js +1 -1
  257. package/lib/icon/share.js +1 -1
  258. package/lib/icon/spinner.js +1 -1
  259. package/lib/icon/success.js +1 -1
  260. package/lib/icon/switcher-loading.js +1 -1
  261. package/lib/icon/text-file.js +1 -1
  262. package/lib/icon/text-fill.d.ts +4 -0
  263. package/lib/icon/text-fill.js +1 -0
  264. package/lib/icon/transfer.d.ts +4 -0
  265. package/lib/icon/transfer.js +1 -0
  266. package/lib/icon/tree-application-shape.js +1 -1
  267. package/lib/icon/unfull-screen.d.ts +4 -0
  268. package/lib/icon/unfull-screen.js +1 -0
  269. package/lib/icon/unvisible.js +1 -1
  270. package/lib/icon/up-shape.js +1 -1
  271. package/lib/icon/upload.d.ts +4 -0
  272. package/lib/icon/upload.js +1 -0
  273. package/lib/icon/video-fill.d.ts +4 -0
  274. package/lib/icon/video-fill.js +1 -0
  275. package/lib/icon/warn.js +1 -1
  276. package/lib/icon/weixin.js +1 -1
  277. package/lib/image/image-viewer.css +142 -0
  278. package/lib/image/image-viewer.d.ts +73 -0
  279. package/lib/image/image-viewer.less +168 -0
  280. package/lib/image/image-viewer.variable.css +142 -0
  281. package/lib/image/image.css +37 -0
  282. package/lib/image/image.d.ts +93 -0
  283. package/lib/image/image.less +44 -0
  284. package/lib/image/image.variable.css +37 -0
  285. package/lib/image/index.d.ts +246 -0
  286. package/lib/image/index.js +1 -0
  287. package/lib/image/props.d.ts +71 -0
  288. package/lib/index.d.ts +1 -1
  289. package/lib/index.js +1 -0
  290. package/lib/info-box/index.d.ts +6 -0
  291. package/lib/info-box/index.js +1 -0
  292. package/lib/info-box/info-box.css +37 -0
  293. package/lib/info-box/info-box.d.ts +26 -0
  294. package/lib/info-box/info-box.less +51 -0
  295. package/lib/info-box/info-box.variable.css +157 -0
  296. package/lib/input/index.d.ts +175 -90
  297. package/lib/input/index.js +1 -0
  298. package/lib/input/input.css +183 -22
  299. package/lib/input/input.d.ts +119 -36
  300. package/lib/input/input.less +112 -20
  301. package/lib/input/input.variable.css +244 -57
  302. package/lib/link/index.d.ts +29 -21
  303. package/lib/link/index.js +1 -0
  304. package/lib/link/link.css +12 -12
  305. package/lib/link/link.d.ts +10 -8
  306. package/lib/link/link.less +16 -14
  307. package/lib/link/link.variable.css +42 -15
  308. package/lib/loading/index.d.ts +112 -19
  309. package/lib/loading/index.js +1 -0
  310. package/lib/loading/loading.css +78 -34
  311. package/lib/loading/loading.d.ts +78 -12
  312. package/lib/loading/loading.less +18 -22
  313. package/lib/loading/loading.variable.css +124 -53
  314. package/lib/menu/index.d.ts +16 -24
  315. package/lib/menu/index.js +1 -0
  316. package/lib/menu/menu.css +51 -0
  317. package/lib/menu/menu.d.ts +7 -16
  318. package/lib/menu/menu.variable.css +99 -21
  319. package/lib/menu/submenu.variable.css +30 -3
  320. package/lib/message/index.js +1 -0
  321. package/lib/message/message.css +25 -4
  322. package/lib/message/message.less +30 -4
  323. package/lib/message/message.variable.css +55 -7
  324. package/lib/message/messageConstructor.d.ts +47 -11
  325. package/lib/modal/index.d.ts +456 -78
  326. package/lib/modal/index.js +1 -0
  327. package/lib/modal/modal.css +63 -1
  328. package/lib/modal/modal.d.ts +174 -30
  329. package/lib/modal/modal.less +39 -3
  330. package/lib/modal/modal.variable.css +183 -1
  331. package/lib/modal/props.mixin.d.ts +74 -13
  332. package/lib/navigation/index.d.ts +310 -1
  333. package/lib/navigation/index.js +1 -0
  334. package/lib/navigation/navigation.css +1 -1
  335. package/lib/navigation/navigation.d.ts +10 -1
  336. package/lib/navigation/navigation.less +1 -1
  337. package/lib/navigation/navigation.variable.css +31 -4
  338. package/lib/notify/index.js +1 -0
  339. package/lib/notify/notify.css +24 -4
  340. package/lib/notify/notify.less +27 -4
  341. package/lib/notify/notify.variable.css +54 -7
  342. package/lib/notify/notifyConstructor.d.ts +62 -21
  343. package/lib/overflow-title/components/OverflowTitle.d.ts +38 -0
  344. package/lib/overflow-title/directive/overflowTitle.d.ts +3 -0
  345. package/lib/overflow-title/index.d.ts +129 -0
  346. package/lib/overflow-title/index.js +1 -0
  347. package/lib/overflow-title/overflow.css +11 -0
  348. package/lib/overflow-title/overflow.less +13 -0
  349. package/lib/overflow-title/overflow.variable.css +11 -0
  350. package/lib/overflow-title/props.d.ts +16 -0
  351. package/lib/overflow-title/utils/getActualWidthByCanvas.d.ts +3 -0
  352. package/lib/overflow-title/utils/getActualWidthByDom.d.ts +3 -0
  353. package/lib/pagination/index.d.ts +38 -23
  354. package/lib/pagination/index.js +1 -0
  355. package/lib/pagination/pagination.css +54 -28
  356. package/lib/pagination/pagination.d.ts +19 -9
  357. package/lib/pagination/pagination.less +59 -30
  358. package/lib/pagination/pagination.variable.css +84 -31
  359. package/lib/plugin-popover/index.d.ts +27 -0
  360. package/lib/plugin-popover/index.js +1 -0
  361. package/lib/plugins/index.d.ts +1 -0
  362. package/lib/plugins/index.js +1 -0
  363. package/lib/popover/arrow.d.ts +2 -0
  364. package/lib/popover/const.d.ts +16 -0
  365. package/lib/popover/content.d.ts +32 -0
  366. package/lib/popover/index.d.ts +453 -87
  367. package/lib/popover/index.js +1 -0
  368. package/lib/popover/plugin-popover.d.ts +12 -0
  369. package/lib/popover/popover.css +10 -50
  370. package/lib/popover/popover.d.ts +199 -39
  371. package/lib/popover/popover.less +19 -66
  372. package/lib/popover/popover.variable.css +40 -53
  373. package/lib/popover/props.d.ts +97 -28
  374. package/lib/popover/reference.d.ts +2 -0
  375. package/lib/popover/root.d.ts +16 -0
  376. package/lib/popover/use-floating.d.ts +31 -0
  377. package/lib/popover/use-platform.d.ts +30 -0
  378. package/lib/popover/use-popover-init.d.ts +23 -0
  379. package/lib/popover/use-popper-id.d.ts +6 -0
  380. package/lib/popover/utils.d.ts +2 -0
  381. package/lib/popover2/index.d.ts +44 -0
  382. package/lib/popover2/index.js +1 -0
  383. package/lib/popover2/popover.d.ts +2 -0
  384. package/lib/preset.js +1 -0
  385. package/lib/process/index.d.ts +6 -6
  386. package/lib/process/index.js +1 -0
  387. package/lib/process/process.css +13 -0
  388. package/lib/process/process.d.ts +1 -1
  389. package/lib/process/process.less +17 -0
  390. package/lib/process/process.variable.css +43 -3
  391. package/lib/progress/index.d.ts +22 -22
  392. package/lib/progress/index.js +1 -0
  393. package/lib/progress/progress.css +51 -0
  394. package/lib/progress/progress.d.ts +9 -9
  395. package/lib/progress/progress.variable.css +85 -7
  396. package/lib/radio/common.d.ts +5 -5
  397. package/lib/radio/index.d.ts +29 -18
  398. package/lib/radio/index.js +1 -0
  399. package/lib/radio/radio-button.d.ts +7 -8
  400. package/lib/radio/radio-group.d.ts +16 -0
  401. package/lib/radio/radio.css +47 -46
  402. package/lib/radio/radio.d.ts +4 -4
  403. package/lib/radio/radio.less +177 -173
  404. package/lib/radio/radio.variable.css +81 -53
  405. package/lib/radio/type.d.ts +9 -4
  406. package/lib/rate/index.d.ts +28 -5
  407. package/lib/rate/index.js +1 -0
  408. package/lib/rate/rate.d.ts +13 -2
  409. package/lib/rate/star.d.ts +1 -1
  410. package/lib/resize-layout/index.d.ts +18 -18
  411. package/lib/resize-layout/index.js +1 -0
  412. package/lib/resize-layout/resize-layout.css +3 -15
  413. package/lib/resize-layout/resize-layout.d.ts +7 -7
  414. package/lib/resize-layout/resize-layout.less +3 -19
  415. package/lib/resize-layout/resize-layout.variable.css +33 -18
  416. package/lib/search-select/index.d.ts +823 -0
  417. package/lib/search-select/index.js +1 -0
  418. package/lib/search-select/input.d.ts +89 -0
  419. package/lib/search-select/menu.d.ts +83 -0
  420. package/lib/search-select/search-select.css +424 -0
  421. package/lib/search-select/search-select.d.ts +342 -0
  422. package/lib/search-select/search-select.less +380 -0
  423. package/lib/search-select/search-select.variable.css +544 -0
  424. package/lib/search-select/selected.d.ts +143 -0
  425. package/lib/search-select/utils.d.ts +88 -0
  426. package/lib/select/common.d.ts +5 -12
  427. package/lib/select/index.d.ts +1283 -595
  428. package/lib/select/index.js +1 -0
  429. package/lib/select/option.d.ts +12 -4
  430. package/lib/select/optionGroup.d.ts +1 -1
  431. package/lib/select/select.css +186 -113
  432. package/lib/select/select.d.ts +488 -130
  433. package/lib/select/select.less +320 -202
  434. package/lib/select/select.variable.css +216 -116
  435. package/lib/select/selectTagInput.d.ts +93 -0
  436. package/lib/select/type.d.ts +21 -13
  437. package/lib/shared/dom.d.ts +3 -0
  438. package/lib/shared/helper.d.ts +9 -0
  439. package/lib/shared/hooks/use-form-item.d.ts +2 -0
  440. package/lib/shared/hooks/use-form.d.ts +2 -0
  441. package/lib/shared/index.d.ts +22 -0
  442. package/lib/shared/index.js +1 -0
  443. package/lib/shared/mask-manager.d.ts +6 -2
  444. package/lib/shared/pop-manager.d.ts +16 -4
  445. package/lib/shared/popover.d.ts +6 -2
  446. package/lib/shared/token.d.ts +4 -0
  447. package/lib/shared/utils.d.ts +19 -0
  448. package/lib/shared/vue-types.d.ts +105 -7
  449. package/lib/sideslider/index.d.ts +343 -72
  450. package/lib/sideslider/index.js +1 -0
  451. package/lib/sideslider/sideslider.css +55 -10
  452. package/lib/sideslider/sideslider.d.ts +160 -32
  453. package/lib/sideslider/sideslider.less +72 -13
  454. package/lib/sideslider/sideslider.variable.css +85 -13
  455. package/lib/slider/index.d.ts +414 -1
  456. package/lib/slider/index.js +1 -0
  457. package/lib/slider/slider-button.d.ts +2 -1
  458. package/lib/slider/slider.d.ts +4 -4
  459. package/lib/slider/slider.variable.css +30 -3
  460. package/lib/steps/index.d.ts +52 -52
  461. package/lib/steps/index.js +1 -0
  462. package/lib/steps/steps.css +15 -3
  463. package/lib/steps/steps.d.ts +32 -32
  464. package/lib/steps/steps.less +24 -3
  465. package/lib/steps/steps.variable.css +45 -6
  466. package/lib/styles/index.d.ts +7 -1
  467. package/lib/styles/mixins/clearfix.css +8 -0
  468. package/lib/styles/mixins/clearfix.less +10 -0
  469. package/lib/styles/mixins/clearfix.variable.css +8 -0
  470. package/lib/styles/mixins/mixins.css +51 -0
  471. package/lib/styles/mixins/mixins.less +2 -0
  472. package/lib/styles/mixins/mixins.variable.css +51 -0
  473. package/lib/styles/mixins/popper.css +1 -1
  474. package/lib/styles/mixins/popper.less +12 -11
  475. package/lib/styles/mixins/popper.variable.css +121 -1
  476. package/lib/styles/mixins/scroll.css +17 -0
  477. package/lib/styles/mixins/scroll.less +22 -0
  478. package/lib/styles/mixins/scroll.variable.css +137 -0
  479. package/lib/styles/reset.css +36 -0
  480. package/lib/styles/reset.less +26 -2
  481. package/lib/styles/reset.variable.css +36 -0
  482. package/lib/styles/themes/themes.less +39 -3
  483. package/lib/swiper/index.js +1 -0
  484. package/lib/switcher/index.d.ts +42 -30
  485. package/lib/switcher/index.js +1 -0
  486. package/lib/switcher/switcher.css +57 -6
  487. package/lib/switcher/switcher.d.ts +19 -13
  488. package/lib/switcher/switcher.less +5 -26
  489. package/lib/switcher/switcher.variable.css +104 -26
  490. package/lib/tab/index.d.ts +66 -70
  491. package/lib/tab/index.js +1 -0
  492. package/lib/tab/props.d.ts +33 -11
  493. package/lib/tab/tab-nav.d.ts +17 -13
  494. package/lib/tab/tab-panel.d.ts +5 -10
  495. package/lib/tab/tab.css +87 -12
  496. package/lib/tab/tab.d.ts +20 -21
  497. package/lib/tab/tab.less +112 -49
  498. package/lib/tab/tab.variable.css +117 -15
  499. package/lib/table/components/index.d.ts +3 -0
  500. package/lib/table/components/table-cell.d.ts +38 -0
  501. package/lib/table/components/table-column.d.ts +137 -0
  502. package/lib/table/components/table-row.d.ts +2 -0
  503. package/lib/table/const.d.ts +119 -1
  504. package/lib/table/index.d.ts +880 -41
  505. package/lib/table/index.js +1 -0
  506. package/lib/table/plugins/body-empty.d.ts +40 -0
  507. package/lib/table/plugins/col-group.d.ts +38 -0
  508. package/lib/table/plugins/common.d.ts +6 -0
  509. package/lib/table/plugins/head-filter.css +84 -0
  510. package/lib/table/plugins/head-filter.d.ts +26 -0
  511. package/lib/table/plugins/head-filter.less +110 -0
  512. package/lib/table/plugins/head-filter.variable.css +204 -0
  513. package/lib/table/plugins/head-sort.css +25 -0
  514. package/lib/table/plugins/head-sort.d.ts +22 -0
  515. package/lib/table/plugins/head-sort.less +31 -0
  516. package/lib/table/plugins/head-sort.variable.css +145 -0
  517. package/lib/table/plugins/index.d.ts +5 -0
  518. package/lib/table/plugins/settings.css +145 -0
  519. package/lib/table/plugins/settings.d.ts +37 -0
  520. package/lib/table/plugins/settings.less +179 -0
  521. package/lib/table/plugins/settings.variable.css +265 -0
  522. package/lib/table/plugins/use-active-columns.d.ts +16 -0
  523. package/lib/table/plugins/use-column-resize.d.ts +15 -0
  524. package/lib/table/plugins/use-fixed-column.d.ts +12 -0
  525. package/lib/table/plugins/use-pagination.d.ts +16 -0
  526. package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
  527. package/lib/table/props.d.ts +325 -8
  528. package/lib/table/render.d.ts +46 -4
  529. package/lib/table/table.css +1192 -11
  530. package/lib/table/table.d.ts +248 -17
  531. package/lib/table/table.less +265 -15
  532. package/lib/table/table.variable.css +1232 -24
  533. package/lib/table/use-column.d.ts +11 -0
  534. package/lib/table/use-common.d.ts +98 -0
  535. package/lib/table/utils.d.ts +71 -11
  536. package/lib/table-column/index.d.ts +325 -0
  537. package/lib/table-column/index.js +1 -0
  538. package/lib/tag/index.d.ts +29 -29
  539. package/lib/tag/index.js +1 -0
  540. package/lib/tag/tag.css +46 -13
  541. package/lib/tag/tag.d.ts +12 -12
  542. package/lib/tag/tag.less +46 -10
  543. package/lib/tag/tag.variable.css +76 -16
  544. package/lib/tag-input/common.d.ts +13 -1
  545. package/lib/tag-input/index.d.ts +1348 -1
  546. package/lib/tag-input/index.js +1 -0
  547. package/lib/tag-input/list-tag-render.d.ts +0 -3
  548. package/lib/tag-input/tag-input.css +23 -26
  549. package/lib/tag-input/tag-input.d.ts +288 -43
  550. package/lib/tag-input/tag-input.less +102 -104
  551. package/lib/tag-input/tag-input.variable.css +53 -29
  552. package/lib/tag-input/tag-props.d.ts +128 -7
  553. package/lib/tag-input/tag-render.d.ts +30 -4
  554. package/lib/time-picker/index.d.ts +904 -0
  555. package/lib/time-picker/index.js +1 -0
  556. package/lib/time-picker/time-picker.css +215 -0
  557. package/lib/time-picker/time-picker.less +260 -0
  558. package/lib/time-picker/time-picker.variable.css +335 -0
  559. package/lib/timeline/index.d.ts +2 -2
  560. package/lib/timeline/index.js +1 -0
  561. package/lib/timeline/timeline.css +16 -9
  562. package/lib/timeline/timeline.less +22 -9
  563. package/lib/timeline/timeline.variable.css +46 -12
  564. package/lib/transfer/const.d.ts +5 -0
  565. package/lib/transfer/index.d.ts +164 -150
  566. package/lib/transfer/index.js +1 -0
  567. package/lib/transfer/props.d.ts +54 -0
  568. package/lib/transfer/transfer.css +89 -86
  569. package/lib/transfer/transfer.d.ts +70 -95
  570. package/lib/transfer/transfer.less +93 -113
  571. package/lib/transfer/transfer.variable.css +124 -94
  572. package/lib/tree/constant.d.ts +62 -0
  573. package/lib/tree/index.d.ts +417 -57
  574. package/lib/tree/index.js +1 -0
  575. package/lib/tree/props.d.ts +124 -0
  576. package/lib/tree/tree.css +177 -9
  577. package/lib/tree/tree.d.ts +190 -18
  578. package/lib/tree/tree.less +54 -3
  579. package/lib/tree/tree.variable.css +207 -12
  580. package/lib/tree/use-empty.d.ts +6 -0
  581. package/lib/tree/use-node-action.d.ts +12 -0
  582. package/lib/tree/use-node-async.d.ts +5 -0
  583. package/lib/tree/use-node-attribute.d.ts +33 -0
  584. package/lib/tree/use-node-drag.d.ts +3 -0
  585. package/lib/tree/use-search.d.ts +11 -0
  586. package/lib/tree/use-tree-init.d.ts +15 -0
  587. package/lib/tree/util.d.ts +4 -6
  588. package/lib/upload/index.d.ts +566 -0
  589. package/lib/upload/index.js +1 -0
  590. package/lib/upload/props.d.ts +111 -0
  591. package/lib/upload/upload-list.d.ts +47 -0
  592. package/lib/upload/upload-trigger.d.ts +51 -0
  593. package/lib/upload/upload.css +427 -0
  594. package/lib/upload/upload.d.ts +246 -0
  595. package/lib/upload/upload.less +466 -0
  596. package/lib/upload/upload.type.d.ts +78 -0
  597. package/lib/upload/upload.variable.css +547 -0
  598. package/lib/upload/use-ajax-upload.d.ts +3 -0
  599. package/lib/upload/use-file-handler.d.ts +44 -0
  600. package/lib/virtual-render/index.d.ts +50 -4
  601. package/lib/virtual-render/index.js +1 -0
  602. package/lib/virtual-render/props.d.ts +15 -0
  603. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  604. package/lib/virtual-render/v-virtual-render.d.ts +0 -1
  605. package/lib/virtual-render/virtual-render.css +17 -17
  606. package/lib/virtual-render/virtual-render.d.ts +23 -1
  607. package/lib/virtual-render/virtual-render.less +2 -23
  608. package/lib/virtual-render/virtual-render.variable.css +137 -17
  609. package/lib/volar.components.d.ts +101 -0
  610. package/package.json +54 -24
  611. package/LICENSE.txt +0 -22
  612. package/lib/alert/alert.js +0 -1
  613. package/lib/backtop/backtop.js +0 -1
  614. package/lib/badge/badge.js +0 -1
  615. package/lib/breadcrumb/breadcrumb.js +0 -1
  616. package/lib/button/button.js +0 -1
  617. package/lib/card/card.js +0 -1
  618. package/lib/checkbox/checkbox.js +0 -1
  619. package/lib/code-diff/code-diff.js +0 -1
  620. package/lib/collapse/collapse.js +0 -1
  621. package/lib/date-picker/date-picker.js +0 -1
  622. package/lib/dialog/dialog.js +0 -1
  623. package/lib/directives/directives.js +0 -2
  624. package/lib/divider/divider.js +0 -1
  625. package/lib/dropdown/dropdown.js +0 -1
  626. package/lib/exception/exception.js +0 -1
  627. package/lib/form/common.d.ts +0 -3
  628. package/lib/form/form.js +0 -1
  629. package/lib/icon/icon.js +0 -1
  630. package/lib/input/input.js +0 -1
  631. package/lib/link/link.js +0 -1
  632. package/lib/loading/loading.js +0 -1
  633. package/lib/menu/menu.js +0 -1
  634. package/lib/message/message.js +0 -1
  635. package/lib/modal/modal.js +0 -1
  636. package/lib/navigation/navigation.js +0 -1
  637. package/lib/notify/notify.js +0 -1
  638. package/lib/pagination/pagination.js +0 -1
  639. package/lib/popover/popover.js +0 -1
  640. package/lib/process/process.js +0 -1
  641. package/lib/progress/progress.js +0 -1
  642. package/lib/radio/radio.js +0 -1
  643. package/lib/rate/rate.js +0 -1
  644. package/lib/resize-layout/resize-layout.js +0 -1
  645. package/lib/select/select.js +0 -1
  646. package/lib/shared/shared.js +0 -1
  647. package/lib/sideslider/sideslider.js +0 -1
  648. package/lib/slider/slider.js +0 -1
  649. package/lib/steps/steps.js +0 -1
  650. package/lib/swiper/swiper.js +0 -1
  651. package/lib/switcher/switcher.js +0 -1
  652. package/lib/tab/tab.js +0 -1
  653. package/lib/table/table.js +0 -1
  654. package/lib/tag/tag.js +0 -1
  655. package/lib/tag-input/tag-input.js +0 -1
  656. package/lib/timeline/timeline.js +0 -1
  657. package/lib/transfer/transfer.js +0 -1
  658. package/lib/tree/tree.js +0 -1
  659. package/lib/use-form.d.ts +0 -3
  660. package/lib/virtual-render/virtual-render.js +0 -1
  661. /package/lib/directives/{directives.js.LICENSE.txt → index.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("vue-types"),require("../virtual-render"),require("../loading"),require("../checkbox"),require("../icon"),require("../pagination"),require("../directives"),require("lodash"),require("../exception"),require("../popover"),require("../icon/"),require("../button"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types","../virtual-render","../loading","../checkbox","../icon","../pagination","../directives","lodash","../exception","../popover","../icon/","../button"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("vue-types"),require("../virtual-render"),require("../loading"),require("../checkbox"),require("../icon"),require("../pagination"),require("../directives"),require("lodash"),require("../exception"),require("../popover"),require("../icon/"),require("../button")):t(e["../shared"],e.vue,e["vue-types"],e["../virtual-render"],e["../loading"],e["../checkbox"],e["../icon"],e["../pagination"],e["../directives"],e.lodash,e["../exception"],e["../popover"],e["../icon/"],e["../button"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n,o,r,i,a,l,s,c,u,d,f,p)=>(()=>{var v={8022:(e,t,n)=>{var o=n(4481),r=n(6426),i=r;i.v1=o,i.v4=r,e.exports=i},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var o=n||0,r=t;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},4481:(e,t,n)=>{var o,r,i=n(9157),a=n(8725),l=0,s=0;e.exports=function(e,t,n){var c=t&&n||0,u=t||[],d=(e=e||{}).node||o,f=void 0!==e.clockseq?e.clockseq:r;if(null==d||null==f){var p=i();null==d&&(d=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==f&&(f=r=16383&(p[6]<<8|p[7]))}var v=void 0!==e.msecs?e.msecs:(new Date).getTime(),h=void 0!==e.nsecs?e.nsecs:s+1,y=v-l+(h-s)/1e4;if(y<0&&void 0===e.clockseq&&(f=f+1&16383),(y<0||v>l)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=v,s=h,r=f;var g=(1e4*(268435455&(v+=122192928e5))+h)%4294967296;u[c++]=g>>>24&255,u[c++]=g>>>16&255,u[c++]=g>>>8&255,u[c++]=255&g;var m=v/4294967296*1e4&268435455;u[c++]=m>>>8&255,u[c++]=255&m,u[c++]=m>>>24&15|16,u[c++]=m>>>16&255,u[c++]=f>>>8|128,u[c++]=255&f;for(var b=0;b<6;++b)u[c+b]=d[b];return t||a(u)}},6426:(e,t,n)=>{var o=n(9157),r=n(8725);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||o)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var l=0;l<16;++l)t[i+l]=a[l];return t||r(a)}},4976:e=>{"use strict";e.exports=p},5800:e=>{"use strict";e.exports=i},4061:e=>{"use strict";e.exports=s},9911:e=>{"use strict";e.exports=u},6870:e=>{"use strict";e.exports=a},7685:e=>{"use strict";e.exports=f},4870:e=>{"use strict";e.exports=r},5801:e=>{"use strict";e.exports=l},5537:e=>{"use strict";e.exports=d},4212:t=>{"use strict";t.exports=e},3511:e=>{"use strict";e.exports=o},467:e=>{"use strict";e.exports=c},748:e=>{"use strict";e.exports=t},210:e=>{"use strict";e.exports=n}},h={};function y(e){var t=h[e];if(void 0!==t)return t.exports;var n=h[e]={exports:{}};return v[e](n,n.exports,y),n.exports}y.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return y.d(t,{a:t}),t},y.d=(e,t)=>{for(var n in t)y.o(t,n)&&!y.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},y.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),y.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var g={};return(()=>{"use strict";y.r(g),y.d(g,{BkColumn:()=>Lt,default:()=>St});var e,t,n,o,r=y(4212),i=y(748);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.NONE="none",e.ROW="row",e.COL="col",e.OUTER="outer",e.HORIZONTAL="horizontal"}(n||(n={})),function(e){e.HIGHLIGHT="highlight",e.AUTO="auto"}(o||(o={}));var l,s,c=[o.AUTO,o.HIGHLIGHT],u=[n.NONE,n.ROW,n.COL,n.OUTER,n.HORIZONTAL];!function(e){e.ON_SORT_BY_CLICK="onSortByClick",e.ON_FILTER_CLICK="onFilterClick",e.ON_SETTING_CHANGE="onSettingChange",e.ON_ROW_EXPAND_CLICK="onRowExpandClick",e.ON_ROW_CHECK="onRowCheck"}(l||(l={})),function(e){e.COLUMN_PICK="columnPick",e.COLUMN_SORT="columnSort",e.COLUMN_FILTER="columnFilter",e.COLUMN_FILTER_SAVE="colFilterSave",e.ROW_CLICK="rowClick",e.ROW_DBL_CLICK="rowDblclick",e.ROW_EXPAND_CLICK="rowExpand",e.PAGE_LIMIT_CHANGE="pageLimitChange",e.PAGE_VALUE_CHANGE="pageValueChange",e.SETTING_CHANGE="settingChange",e.SCROLL_BOTTOM="scrollBottom",e.ROW_SELECT="select",e.ROW_SELECT_ALL="selectAll",e.ROW_SELECT_CHANGE="selectionChange",e.CELL_CLICK="cellClick",e.CELL_DBL_CLICK="cellDblclick",e.NATIVE_CLICK="click",e.NATIVE_DBL_CLICK="dblclick"}(s||(s={}));var d,f=function(){return!0},p=(a(e={},s.COLUMN_PICK,f),a(e,s.COLUMN_FILTER,f),a(e,s.COLUMN_SORT,f),a(e,s.COLUMN_FILTER_SAVE,f),a(e,s.ROW_CLICK,f),a(e,s.ROW_DBL_CLICK,f),a(e,s.ROW_EXPAND_CLICK,f),a(e,s.ROW_SELECT,f),a(e,s.ROW_SELECT_ALL,f),a(e,s.ROW_SELECT_CHANGE,f),a(e,s.PAGE_LIMIT_CHANGE,f),a(e,s.PAGE_VALUE_CHANGE,f),a(e,s.SETTING_CHANGE,f),a(e,s.SCROLL_BOTTOM,f),a(e,s.CELL_CLICK,f),a(e,s.CELL_DBL_CLICK,f),e),v=(a(t={},s.NATIVE_CLICK,f),a(t,s.NATIVE_DBL_CLICK,f),"__$table_row_index"),h="__$uuid",m="__row_expand",b="__row_selection",T="__row_selection_all",_="__row_selection_indeterminate",C="__row_source_data",w="__row_skip_config",O="__col_$uuid",P="__col_source_data",x=42,E={large:78,medium:60,small:42},N=[{value:"small",label:"小",height:E.small},{value:"medium",label:"中",height:E.medium},{value:"large",label:"大",height:E.large}],S="InitColumns";!function(e){e.ASC="asc",e.DESC="desc",e.NULL="null",e.CUSTOM="custom"}(d||(d={}));var L,k,A=[d.ASC,d.DESC,d.NULL,d.CUSTOM],R=80,V=y(210);!function(e){e.CURRENT="current",e.ALL="all"}(L||(L={})),function(e){e.STATIC="static",e.AUTO="auto"}(k||(k={}));var j,H=(0,V.toType)("showOverflowTooltipMode",{default:k.AUTO});!function(e){e.SELECTION="selection",e.INDEX="index",e.EXPAND="expand",e.NONE="none"}(j||(j={}));var I,M=(0,V.toType)("columnType",{default:j.NONE});!function(e){e.FULL="full",e.FUZZY="fuzzy"}(I||(I={}));var W,F=(0,V.toType)("full",{default:I.FULL});!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(W||(W={}));var D,z=(0,V.toType)("columnSize",{default:W.SMALL});!function(e){e.LEFT="left",e.RIGHT="right"}(D||(D={}));var U,K,G=(0,V.toType)("columnSize",{}),B=(0,V.toType)("sortScope",{}).def(L.CURRENT);!function(e){e.MULTI="multi",e.SINGLE="single",e.DISABLED="disabled"}(U||(U={})),function(e){e.DEBOUNCE="debounce",e.THROTTLE="throttle"}(K||(K={}));var q={label:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return""})),r.PropTypes.string.def("")]),field:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return""})),r.PropTypes.string.def("")]),render:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return""})),r.PropTypes.string.def("")]),width:r.PropTypes.oneOfType([r.PropTypes.number.def(void 0),r.PropTypes.string.def("auto")]),minWidth:r.PropTypes.oneOfType([r.PropTypes.number.def(void 0),r.PropTypes.string.def("auto")]).def(80),columnKey:r.PropTypes.string.def(""),showOverflowTooltip:r.PropTypes.oneOfType([r.PropTypes.bool,r.PropTypes.shape({content:r.PropTypes.string.def(""),disabled:r.PropTypes.bool.def(!1),watchCellResize:r.PropTypes.bool.def(!0),mode:H})]).def(void 0),type:M,resizable:r.PropTypes.bool.def(!0),fixed:r.PropTypes.oneOfType([r.PropTypes.bool,G]).def(!1),sort:r.PropTypes.oneOfType([r.PropTypes.shape({sortFn:r.PropTypes.func.def(void 0),sortScope:B,value:r.PropTypes.string.def(d.NULL)}),r.PropTypes.bool,r.PropTypes.string]).def(!1),filter:r.PropTypes.oneOfType([r.PropTypes.shape({list:r.PropTypes.arrayOf(r.PropTypes.any).def([]),filterFn:r.PropTypes.func.def(void 0),match:F,filterScope:B,btnSave:r.PropTypes.oneOfType([r.PropTypes.bool,r.PropTypes.string]).def("确定"),btnReset:r.PropTypes.oneOfType([r.PropTypes.bool,r.PropTypes.string]).def("重置")}),r.PropTypes.bool,r.PropTypes.string]).def(!1),colspan:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return 1})),r.PropTypes.number.def(1)]),rowspan:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return 1})),r.PropTypes.number.def(1)])},$={data:r.PropTypes.arrayOf(r.PropTypes.any).def([]),columns:r.PropTypes.arrayOf(r.PropTypes.shape(q)).def([]),activeColumn:r.PropTypes.oneOfType([r.PropTypes.number.def(-1),r.PropTypes.arrayOf(r.PropTypes.number.def(-1))]),columnPick:(0,V.toType)("columnPick",{}).def(U.DISABLED),height:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]).def("auto"),minHeight:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]).def(84),maxHeight:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]).def("auto"),rowHeight:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.func]).def(x),headHeight:r.PropTypes.number.def(x),showHead:r.PropTypes.bool.def(!0),thead:r.PropTypes.shape({height:r.PropTypes.number.def(x),isShow:r.PropTypes.bool.def(!0),cellFn:r.PropTypes.func.def(void 0)}),virtualEnabled:r.PropTypes.bool.def(!1),border:r.PropTypes.oneOfType([r.PropTypes.arrayOf((0,V.toType)("boderType",{})),r.PropTypes.string]).def([n.ROW]),pagination:r.PropTypes.oneOfType([r.PropTypes.bool.def(!1),r.PropTypes.object.def({})]).def(!1),paginationHeihgt:r.PropTypes.number.def(x),remotePagination:r.PropTypes.bool.def(!1),emptyText:r.PropTypes.string.def("暂无数据"),settings:r.PropTypes.oneOfType([r.PropTypes.shape({fields:r.PropTypes.arrayOf(r.PropTypes.shape({label:r.PropTypes.string,field:r.PropTypes.string,disabled:r.PropTypes.bool})),checked:r.PropTypes.arrayOf(r.PropTypes.string),limit:r.PropTypes.number.def(0),size:z,sizeList:r.PropTypes.shape([]),showLineHeight:r.PropTypes.bool.def(!0)}),r.PropTypes.bool]).def(!1),rowClass:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.object,r.PropTypes.func]).def({}),rowStyle:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.object,r.PropTypes.func]).def({}),cellStyle:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.object,r.PropTypes.func]).def({}),cellClass:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.object,r.PropTypes.func]).def({}),scrollLoading:r.PropTypes.oneOfType([r.PropTypes.object,r.PropTypes.bool]).def(void 0),reserveExpand:r.PropTypes.bool.def(!1),selectionKey:r.PropTypes.string.def(""),isSelectedFn:r.PropTypes.func.def(void 0),rowKey:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.func]).def(v),showOverflowTooltip:r.PropTypes.oneOfType([r.PropTypes.bool,r.PropTypes.shape({content:r.PropTypes.string.def(""),disabled:r.PropTypes.bool.def(!1),watchCellResize:r.PropTypes.bool.def(!0),mode:H})]).def(!1),asyncData:r.PropTypes.bool.def(!1),rowHover:r.PropTypes.oneOf(c).def(o.HIGHLIGHT),defaultSort:r.PropTypes.shape({}).def({}),isRowSelectEnable:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return!0})),r.PropTypes.bool.def(!0)]).def(!0),resizerWay:(0,V.toType)("ResizerWay",{default:K.THROTTLE})};const X=(0,i.defineComponent)({name:"TableColumn",props:Object.assign(Object.assign({},q),{prop:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return""})),r.PropTypes.string.def("")])}),setup:function(e,t){var n=t.slots,o=(0,i.inject)(S,(function(e){}),!1);return(0,i.onBeforeMount)((function(){var t=(0,i.reactive)(Object.assign(Object.assign({},e),{field:e.prop||e.field}));o(t),t.render=n.default?function(e){var t;return null===(t=n.default)||void 0===t?void 0:t.call(n,e)}:void 0})),function(){var e;return(0,i.createVNode)(i.Fragment,null,[null===(e=n.default)||void 0===e?void 0:e.call(n,{row:{}})])}}});var Y=y(3511),Z=y.n(Y);function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Q(e,t){if(e){if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J(e,t):void 0}}function ee(e){return function(e){if(Array.isArray(e))return J(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e){return te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},te(e)}var ne=function(e,t){if(e){if("object"===te(e)){var n=Object.prototype.hasOwnProperty.call(e,"current")?e.current:e.value;return/\d+/.test(n)||(n=1),Object.assign(Object.assign(Object.assign({},t),e),{current:n})}return t}return{}};const oe=function(e,t){var n=(0,i.ref)(0),o=(0,i.ref)(0),r=(0,i.reactive)({count:0,limit:10,current:1,align:"right",layout:["total","limit","list"]});r=ne(e.pagination,r);var a=(0,i.ref)(null),l=(0,i.reactive)([]),s=function(e,t){"function"==typeof t&&e.sort(t)},c=function(r,i,a){var c,u=t.slice();(null!==(c=null==a?void 0:a.sort)&&void 0!==c?c:{}).sortScope===L.ALL&&s(u,i),l.length=0,l.push.apply(l,ee(u.slice(n.value,o.value))),function(t,n){if("function"==typeof n){var o=t.filter((function(t,o){return n(t,o,e.data)}));t.length=0,t.push.apply(t,ee(o))}}(l,r),s(l,i)};return{pageData:l,localPagination:a,resolvePageData:c,watchEffectFn:function(t,i,l){r=ne(e.pagination,r),e.pagination&&(a.value=e.remotePagination?r:Object.assign(Object.assign({},r),{count:e.data.length})),function(){if(!e.pagination||e.remotePagination)return n.value=0,void(o.value=e.data.length);n.value=(r.current-1)*r.limit,o.value=r.current*r.limit}(),c(t,i,l)}}};var re=y(4870),ie=y.n(re);function ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function le(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function se(e,t,n){return t&&le(e.prototype,t),n&&le(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var ce=y(8022),ue=y(5800),de=y.n(ue),fe=y(6870),pe=y(5801),ve=y.n(pe),he=y(4061),ye=y(467),ge=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),me="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,be=void 0!==y.g&&y.g.Math===Math?y.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Te="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(be):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},_e=["top","right","bottom","left","width","height","size","weight"],Ce="undefined"!=typeof MutationObserver,we=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,r=0;function i(){n&&(n=!1,e()),o&&l()}function a(){Te(i)}function l(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(a,20);r=e}return l}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){me&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ce?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){me&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;_e.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Oe=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},Pe=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||be},xe=ke(0,0,0,0);function Ee(e){return parseFloat(e)||0}function Ne(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Ee(e["border-"+n+"-width"])}),0)}var Se="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Pe(e).SVGGraphicsElement}:function(e){return e instanceof Pe(e).SVGElement&&"function"==typeof e.getBBox};function Le(e){return me?Se(e)?function(e){var t=e.getBBox();return ke(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return xe;var o=Pe(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=Ee(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,l=Ee(o.width),s=Ee(o.height);if("border-box"===o.boxSizing&&(Math.round(l+i)!==t&&(l-=Ne(o,"left","right")+i),Math.round(s+a)!==n&&(s-=Ne(o,"top","bottom")+a)),!function(e){return e===Pe(e).document.documentElement}(e)){var c=Math.round(l+i)-t,u=Math.round(s+a)-n;1!==Math.abs(c)&&(l-=c),1!==Math.abs(u)&&(s-=u)}return ke(r.left,r.top,l,s)}(e):xe}function ke(e,t,n,o){return{x:e,y:t,width:n,height:o}}var Ae=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ke(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Le(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Re=function(e,t){var n,o,r,i,a,l,s,c=(o=(n=t).x,r=n.y,i=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(l.prototype),Oe(s,{x:o,y:r,width:i,height:a,top:r,right:o+i,bottom:a+r,left:o}),s);Oe(this,{target:e,contentRect:c})},Ve=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new ge,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Pe(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Ae(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Pe(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new Re(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),je="undefined"!=typeof WeakMap?new WeakMap:new ge,He=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=we.getInstance(),o=new Ve(t,n,this);je.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){He.prototype[e]=function(){var t;return(t=je.get(this))[e].apply(t,arguments)}}));const Ie=void 0!==be.ResizeObserver?be.ResizeObserver:He;var Me=void 0,We=function e(t,n,o){var r;return"string"==typeof n?Object.prototype.hasOwnProperty.call(t,n)?"function"==typeof t[n]?(r=t[n]).call.apply(r,[Me].concat(ee(o))):t[n]:void 0:Array.isArray(n)?n.map((function(n){return e(t,n,o)})).filter((function(e){return void 0!==e})).at(0):void 0},Fe=function(e){return/^\d+$/.test("".concat(e))?[parseInt("".concat(e),10)]:[]},De=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"100%",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o="";return o=/^auto|null|undefined$/gi.test("".concat(e))?t:/^\d+\.?\d+$/.test("".concat(e))?"".concat(e,"px"):e,n&&(o="calc(".concat(o," - ").concat(n,")")),o},ze=function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["resizeWidth","calcWidth","width"];return null!==(n=null!==(t=e[o[0]])&&void 0!==t?t:e[o[1]])&&void 0!==n?n:e[o[2]]},Ue=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=e.getBoundingClientRect()||{},i=r.width,a=i-o,l=a,s=[],c=function(e,t){var n=e.minWidth,o=void 0===n?void 0:n;if(void 0===o)return t<R?R:t;var r=t;return/^\d+\.?\d*$/.test("".concat(o))&&(r=Number(o)),/^\d+\.?\d*%$/.test("".concat(o))&&(r=Number(o)*a/100),/^\d+\.?\d*px$/i.test("".concat(o))&&(r=Number("".concat(o).replace(/px/i,""))),r},u=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=c(e,t),r=t<o?o:t;Object.assign(e,{calcWidth:r}),n&&(l-=r)<0&&(l=0)};if(t.forEach((function(e,t){if(!e.isHidden){var o=String(ze(e,["resizeWidth","width"])),r=!0;if(/^\d+\.?\d*(px)?$/.test(o)){var i=Number(o.replace("px",""));u(e,i),r=!1}if(/^\d+\.?\d*%$/.test(o)){var a=n;if(l>0){var c=Number(o.replace("%",""));a=l*c/100}u(e,a),r=!1}r&&s.push(t)}})),s.length>0){var d=n;l>0?s.forEach((function(e,n){d=l/(s.length-n),u(t[e],d,!1);var o=t[e].calcWidth;l-=o})):s.forEach((function(e){var n=c(t[e],R);Object.assign(t[e],{calcWidth:n})}))}},Ke=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"throttle",i=function(){"function"==typeof t&&t()},a="debounce"===r?(0,ye.debounce)(i,n):(0,ye.throttle)(i,n),l=function(){return Reflect.apply(a,Me,[])},s=new Ie((function(){l()}));return o&&"function"==typeof t&&t(),{start:function(){s.observe(e)},disconnect:function(){s.unobserve(e),s.disconnect()}}},Ge=function(e){var t=e.showHead,n=e.headHeight,o=e.thead,r=void 0===o?{}:o;return Object.assign({},{isShow:t,height:n},Object.assign({},r))},Be=function(e,t,n){return"index"===n.type?e[v]+1:(0,ye.get)(e,t)},qe=function e(t,n){return Array.isArray(t)?t:"string"==typeof t||"object"===te(t)?[t]:"function"==typeof t?e(Reflect.apply(t,Me,n),n):[]},$e=function(e,t,n){return"string"==typeof t.rowKey?t.rowKey===v?"__ROW_INDEX_".concat(n):(0,ye.get)(e,t.rowKey):"function"==typeof t.rowKey?Reflect.apply(t.rowKey,Me,[e]):(0,ce.v4)()},Xe=function(e,t,n){var o;return o=t,e.some((function(e){return e.field===We(o,["field","type"],[o])}))&&n.length&&!n.includes(We(t,["field","type"],[t]))},Ye=function(e,t,n,o,r){return"function"==typeof e[r]?Reflect.apply(e[r],Me,[{column:e,colIndex:t,row:n,rowIndex:o}]):"number"==typeof e[r]?e[r]:1},Ze=function(e,t,n,o){return{colspan:Ye(e,t,n,o,"colspan"),rowspan:Ye(e,t,n,o,"rowspan")}},Je=function(e,t){var n,o,r=e.field,i=function(t){return Be(t,r,e)},a="function"==typeof(null===(n=e.sort)||void 0===n?void 0:n.sortFn)?null===(o=e.sort)||void 0===o?void 0:o.sortFn:function(e,t){var n=i(e)||"",o=i(t)||"";return"number"==typeof n&&"number"==typeof o?n-o:String.prototype.localeCompare.call(n,o)};return t===d.NULL?function(){return!0}:function(e,n){return a(e,n)*(t===d.DESC?-1:1)}},Qe=function(e){var t,n=(a(t={},d.NULL,0),a(t,d.ASC,1),a(t,d.DESC,2),t);return void 0===e?d.NULL:Object.keys(n)[(n[e]+1)%3]},et=function(e){return"string"==typeof e?{value:e}:"boolean"==typeof e&&e?{value:d.NULL}:"object"===te(e)&&null!==e?te(e.sortFn)?Object.assign({value:"custom"},e):e:null},tt=function(e,t){var n=t.row,o=t.index,r=t.isCheckAll;return"boolean"==typeof e.isRowSelectEnable?!1!==e.isRowSelectEnable:"function"!=typeof e.isRowSelectEnable||e.isRowSelectEnable({row:n,index:o,isCheckAll:r})},nt=function(e,t,n){if(void 0!==e.__$uuid)return e.__$uuid;var o=$e(e,n,t);return void 0!==o&&void 0!==e[o]?e[o]:t},ot=function(e){return(0,i.unref)(e.__row_source_data||e)},rt=function(e){return(0,i.unref)(e.__col_source_data||e)};const it=(0,i.defineComponent)({name:"TableCell",props:{column:r.PropTypes.any.def({}),row:r.PropTypes.any.def({}),parentSetting:r.PropTypes.oneOfType([r.PropTypes.bool,r.PropTypes.shape({content:r.PropTypes.string.def(""),disabled:r.PropTypes.bool.def(!1),watchCellResize:r.PropTypes.bool.def(!0),mode:H})]).def(void 0),title:r.PropTypes.string.def(void 0)},setup:function(e,t){var n=this,o=t.slots,a=(0,i.ref)(),l=(0,i.ref)(!1),s=(/boolean|object/.test(te(e.column.showOverflowTooltip))&&null!==e.column.showOverflowTooltip?e.column:{showOverflowTooltip:e.parentSetting}).showOverflowTooltip,c=void 0!==s&&s,u=null,d=function(){var t=!0,o=a.value.innerText,r="auto";return"boolean"==typeof c&&(t=!c),"object"===te(c)&&(t=c.disabled,o=c.content||a.value.innerText,"function"==typeof c.content&&(o=c.content(e.column,e.row)),r=c.mode||"auto"),"function"==typeof t&&(t=Reflect.apply(t,n,[e.column,e.row])),{disabled:t,content:o,mode:r}},f=function(){if(a.value&&(0,r.isElement)(a.value)){var e=d(),t=e.mode,n=e.disabled;if(l.value=!n,"auto"===t&&(l.value=(0,r.hasOverflowEllipsis)(a.value)),"static"===t&&(l.value=!0),l.value){var o=(0,i.ref)(d());null===u&&(u=(0,he.bkEllipsisInstance)(a.value,o))}else null==u||u.destroyInstance(a.value),u=null}};return(0,i.onMounted)((function(){var t;d().disabled||(f(),!1!==(null===(t=e.column.showOverflowTooltip)||void 0===t?void 0:t.watchCellResize)&&Ke(a.value,(function(){f()}),60,!0).start())})),(0,i.onBeforeUnmount)((function(){null==u||u.destroyInstance(a.value)})),function(){var t;return(0,i.createVNode)("div",{class:["cell",e.column.type],ref:a,title:e.title},[null===(t=o.default)||void 0===t?void 0:t.call(o)])}}}),at=(0,i.defineComponent)({name:"TableRow",render:function(){var e,t;return(0,i.createVNode)(i.Fragment,null,[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])}});var lt=y(9911),st=y.n(lt);const ct=(0,i.defineComponent)({name:"BodyEmpty",props:{list:r.PropTypes.array.def([]),filterList:r.PropTypes.array.def([]),emptyText:r.PropTypes.string.def("暂无数据")},emits:["change"],setup:function(e){var t=(0,i.computed)((function(){return 0===e.list.length?"empty":"search-empty"}));return function(){return(0,i.createVNode)(st(),{scene:"part",type:t.value,description:e.emptyText},null)}}});var ut=y(5537),dt=y.n(ut);const ft=(0,i.defineComponent)({name:"HeadFilter",props:{column:r.PropTypes.any.def({}),height:r.PropTypes.number.def(x)},emits:["change","filterSave"],setup:function(e,t){var n=t.emit,o=e.column,l=(0,i.reactive)({isOpen:!1,checked:[]}),s=(0,i.computed)((function(){var t;return(0,r.classes)((a(t={},(0,r.resolveClassName)("table-head-action"),!0),a(t,"column-filter",!0),a(t,"--row-height","".concat(e.height,"px")),a(t,"active",l.checked.length),a(t,"opened",l.isOpen),t))})),c=(0,r.classes)(a({},(0,r.resolveClassName)("table-head-filter"),!0)),u=(0,i.ref)(null),d=function(e){l.isOpen=e,e&&setTimeout((function(){u.value.reset()}))},f="light ".concat((0,r.resolveClassName)("table-head-filter")),p=(0,i.computed)((function(){var e=o.filter.list;return void 0===e?[]:e})),v="function"==typeof o.filter.filterFn?function(t,n,r,i){return o.filter.filterFn(t,n,e.column,r,i)}:function(e,t){return!e.length||function(e,t){var n=o.filter.match,r=Be(t,We(o,"field",[o,t]),o);return"full"===n&&e.includes(r),e.some((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ig";return new RegExp("".concat(e).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),t)}(e,"img").test(r)}))}(e,t)},h=function(){y(!0),n("filterSave",ee(l.checked)),l.isOpen=!1},y=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=m(T,"确定"),r=o.disabled;if(r||t){if("custom"===e.column.filter)return n("change",ee(l.checked),null),void(l.isOpen=!1);n("change",ee(l.checked),v)}},g=function(){l.checked.length&&(l.checked.length=0,l.isOpen=!1,(0,i.nextTick)((function(){return n("change",l.checked,v)})))},m=function(e,t){return{disabled:"disabled"===e||!1===e,text:"string"==typeof e?e:t}},b=o.filter,T=b.btnSave,_=b.btnReset,C=function(){var e=m(_,"重置"),t=e.disabled,n=e.text;return t?"":(0,i.createVNode)("span",{class:["btn-filter-reset",l.checked.length?"":"disable"],onClick:g},[n])},w=function(e){return e.data.length?e.data.map((function(e){return(0,i.createVNode)("div",{class:"list-item"},[(0,i.createVNode)(de(),{label:e.value,key:e.$index,immediateEmitChange:!1,checked:l.checked.includes(e.value),modelValue:l.checked.includes(e.value),onChange:function(t){return function(e,t){var n,o=new Set(l.checked);e?o.add(t.value):o.delete(t.value),l.checked.length=0,(n=l.checked).push.apply(n,ee(Array.from(o))),y()}(t,e)}},{default:function(){return["".concat(e.text)]}})])})):(0,i.createVNode)("div",{class:"list-item is-empty"},[(0,i.createTextVNode)("暂无数据")])};return function(){return(0,i.createVNode)(dt(),(0,i.mergeProps)({trigger:"click",isShow:l.isOpen,placement:"bottom-start",renderType:r.RenderType.SHOWN,arrow:!1,offset:0},{theme:f},{onAfterShow:function(){return d(!0)},onAfterHidden:function(){return d(!1)}}),{default:function(){return(0,i.createVNode)(fe.Funnel,{class:s.value},null)},content:function(){return(0,i.createVNode)("div",{class:c},[(0,i.createVNode)(ue.BkCheckboxGroup,{class:"content-list"},{default:function(){return[(0,i.createVNode)(Z(),{lineHeight:32,list:p.value,throttleDelay:0,scrollEvent:!0,ref:u,className:"content-items"},{default:w})]}}),(0,i.createVNode)("div",{class:"content-footer"},[(e=m(T,"确定"),t=e.disabled,n=e.text,t?(0,i.createVNode)("span",{class:"btn-filter-save disabled"},[n]):(0,i.createVNode)("span",{class:"btn-filter-save",onClick:h},[n])),(0,i.createVNode)("span",{class:"btn-filter-split"},null),C()])]);var e,t,n}})}}});var pt=y(7685);const vt=(0,i.defineComponent)({name:"HeadSort",props:{column:r.PropTypes.any.def({}),defaultSort:r.PropTypes.oneOf(A).def(d.NULL)},emits:["change"],setup:function(e,t){var n,o,a=t.emit,l=(null===(o=null===(n=e.column)||void 0===n?void 0:n.sort)||void 0===o?void 0:o.value)||e.defaultSort||d.NULL,s=(0,i.ref)(l);(0,i.watch)((function(){return[e.defaultSort]}),(function(e){var t,n,o=(t=e,n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw r}}return i}}(t,n)||Q(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];s.value=o}));var c=function(t,n){t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault();var o=n;n===d.NULL&&(o=Qe(n)),s.value===n&&(o=d.NULL);var r=et(e.column.sort);if("custom"!==(null==r?void 0:r.value)){var i=Je(e.column,o);a("change",i,o)}else a("change",null==r?void 0:r.sortFn,o)};return function(){return(0,i.createVNode)("span",{class:(0,r.resolveClassName)("head-cell-sort"),onClick:function(e){return c(e,d.NULL)}},[(0,i.createVNode)(pt.AngleDownFill,{class:["sort-action","sort-asc",s.value===d.ASC?"active":""],onClick:function(e){return c(e,d.ASC)}},null),(0,i.createVNode)(pt.AngleUpFill,{class:["sort-action","sort-desc",s.value===d.DESC?"active":""],onClick:function(e){return c(e,d.DESC)}},null)])}}});var ht=se((function e(t,n){ae(this,e),this.props=null,this.ctx=null,this.props=t,this.ctx=n})),yt=y(4976),gt=y.n(yt);function mt(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,i.isVNode)(e)}const bt=(0,i.defineComponent)({name:"Settings",props:{settings:r.PropTypes.oneOfType([r.PropTypes.shape({fields:r.PropTypes.arrayOf(r.PropTypes.shape({label:r.PropTypes.string,field:r.PropTypes.string,disabled:r.PropTypes.bool})),checked:r.PropTypes.arrayOf(r.PropTypes.string),limit:r.PropTypes.number.def(0),size:z.def(W.SMALL),sizeList:r.PropTypes.shape([]),showLineHeight:r.PropTypes.bool.def(!0)}),r.PropTypes.bool]).def(!1),columns:r.PropTypes.array.def([]),rowHeight:r.PropTypes.number.def(x)},emits:["change"],setup:function(e,t){var n=t.emit,o=N,a=function(e,t){return We(e,["field","type"],[e,t])},l=(0,i.ref)(!1),s=(0,i.ref)(!1),c="boolean"==typeof e.settings?(0,i.ref)({fields:e.columns.map((function(e){return Object.assign(Object.assign({},e),{field:e.field||e.type})})),checked:[],limit:0,size:"small",sizeList:o,showLineHeight:!0}):(0,i.ref)(e.settings),u=(0,i.ref)(c.value.size||"small"),d=(0,i.ref)(e.rowHeight),f=(0,i.ref)(c.value.checked||[]),p=(0,r.resolveClassName)("table-settings"),v="light ".concat(p),h=(0,i.computed)((function(){return c.value.fields||e.columns||[]})),y={checkAll:l.value,activeSize:u.value,activeHeight:d.value,checkedFields:c.value.checked||[]},g=function(){Object.assign(y,{checkAll:l.value,activeSize:u.value,activeHeight:d.value,checkedFields:f.value}),n("change",{checked:f.value,size:u.value,height:d.value,fields:(0,i.unref)(h)}),s.value=!1},m=function(){l.value=y.checkAll,u.value=y.activeSize,d.value=y.activeHeight,f.value=y.checkedFields,s.value=!1},b=function(){s.value=!0},T=function(t){t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),l.value=!l.value;var n=c.value.fields||e.columns||[],o=n.filter((function(e,t){return e.disabled&&f.value.includes(a(e,t))})).map((function(e,t){return a(e,t)}));if(l.value){var r,i=n.filter((function(e){return!e.disabled})).map((function(e,t){return a(e,t)}));(r=f.value).splice.apply(r,[0,f.value.length].concat(ee(i),ee(o)))}else{var s;(s=f.value).splice.apply(s,[0,f.value.length].concat(ee(o)))}},_=(0,i.computed)((function(){var e;return(null!==(e=c.value.limit)&&void 0!==e?e:0)>0})),C=c.value.sizeList||o,w=(0,i.computed)((function(){return _.value&&(c.value.limit?c.value.limit:0)<=f.value.length})),O=function(e,t){return e.disabled||w.value&&!f.value.includes(a(e,t))},P=function(e){return{"line-size":!0,"is-medium":"medium"===u.value,active:e.value===u.value}},x={marginRight:"12px"},E=(0,i.computed)((function(){return f.value.length>0&&!h.value.every((function(e,t){return f.value.includes(We(e,"field",[e,t]))}))})),S=(0,i.computed)((function(){return"boolean"!=typeof c.value.showLineHeight||c.value.showLineHeight}));return(0,i.watch)((function(){return[f.value]}),(function(){f.value.length||(l.value=!1),f.value.length&&h.value.every((function(e,t){return f.value.includes(a(e,t))}))&&(l.value=!0)}),{immediate:!0,deep:!0}),(0,i.watch)((function(){return[e.settings.checked]}),(function(){var e;(e=f.value).splice.apply(e,[0,f.value.length].concat(ee(c.value.checked)))}),{immediate:!0,deep:!0}),function(){return e.settings?(0,i.createVNode)(dt(),(0,i.mergeProps)({trigger:"manual",isShow:s.value,placement:"bottom-end",arrow:!0},{theme:v}),{default:function(){return(0,i.createVNode)("span",{class:"table-head-settings",onClick:b},[(0,i.createVNode)(pt.CogShape,{style:"color: #c4c6cc;"},null)])},content:function(){var e;return(0,i.createVNode)("div",{class:"setting-content"},[(0,i.createVNode)("div",{class:"setting-head"},[(0,i.createVNode)("span",{class:"head-title"},[(0,i.createTextVNode)("表格设置")]),(0,i.createVNode)(pt.CloseLine,{class:"icon-close-action",onClick:m},null)]),(0,i.createVNode)("div",{class:"setting-body"},[(0,i.createVNode)("div",{class:"setting-body-title"},[(0,i.createVNode)("div",null,[(0,i.createVNode)("span",{class:"field-setting-label"},[(0,i.createTextVNode)("字段显示设置")]),_.value?(0,i.createVNode)("span",{class:"limit"},[(0,i.createTextVNode)("(最多"),c.value.limit,(0,i.createTextVNode)("项)")]):""]),_.value?"":(0,i.createVNode)("span",{class:"check-all",onClick:T},[(0,i.createVNode)(de(),{label:"全选",indeterminate:Boolean(E.value),modelValue:f.value.length>0},{default:function(){return[(0,i.createTextVNode)("全选")]}})])]),(0,i.createVNode)(ue.BkCheckboxGroup,{class:"setting-body-fields",modelValue:f.value,"onUpdate:modelValue":function(e){return f.value=e}},mt(e=h.value.map((function(e,t){var n;return(0,i.createVNode)("div",{class:"field-item"},[(0,i.createVNode)(de(),{checked:f.value.includes(a(e,t)),label:a(e,t),disabled:O(e,t)},mt(n=We(e,"label",[e,t]))?n:{default:function(){return[n]}})])})))?e:{default:function(){return[e]}}),S.value?(0,i.createVNode)("div",{class:"setting-body-line-height"},[(0,i.createTextVNode)("表格行高:"),C.map((function(e){return(0,i.createVNode)("span",{class:P(e),onClick:function(){return function(e){u.value=e.value,d.value=e.height}(e)}},[e.label])}))]):""]),(0,i.createVNode)("div",{class:"setting-footer"},[(0,i.createVNode)(gt(),{theme:"primary",style:x,onClick:g},{default:function(){return[(0,i.createTextVNode)("确定")]}}),(0,i.createVNode)(gt(),{style:x,onClick:m},{default:function(){return[(0,i.createTextVNode)("取消")]}})])])}}):""}}}),Tt=function(e,t,n){var o=function(e,t,n){return{column_fixed:!!e.fixed,column_fixed_left:"right"!==e.fixed,column_fixed_right:"right"===e.fixed,shadow:"right"===e.fixed?t<n:t>0}},l=function(e){return"right"===e.fixed?"right":"left"},s={left:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t.filter((function(e){return e.fixed&&"right"!==e.fixed})).reduce((function(t,n,o){return e&&0===o?t:t+ze(n)}),0)},right:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t.filter((function(e){return"right"===e.fixed})).reduce((function(t,n,o){return e&&0===o?t:t+ze(n)}),n?6:0)}},c=function(e,n){for(var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=n.__col_$uuid,i="right"===e?-1:1,a=t.filter((function(e){return!e.isHidden})),s=a.length,c="right"===e?s*i:1,u=0;;){c+=-1*i;var d=Math.abs(c),f=a[d],p=l(f),v=f.__col_$uuid;if(p===e&&r!==v){var h=ze(f);u+=h}if(r===v)break}return u+o},u=function(e){return{width:"".concat(s[e](!1),"px"),bottom:"0px"}},d={left:!1,right:!1},f=(0,i.computed)((function(){return t.filter((function(e){return!e.isHidden&&e.fixed})).map((function(e){var t=l(e),n=d[t];return d[t]=!0,{isExist:n,colPos:t,column:e}}))}));return{renderFixedColumns:function(e,t){return f.value.map((function(n){var r=n.isExist,a=n.colPos,l=n.column;return r?"":(0,i.createVNode)("div",{class:o(l,e,t),style:u(a)},null)}))},fixedWrapperClass:(0,r.resolveClassName)("table-fixed"),resolveFixedColumnStyle:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.fixed)return{};var n={left:0,right:t?6:-1},o=l(e);return n[o]=c(o,e,n[o]),a({},o,"".concat(n[o],"px"))}}};function _t(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,i.isVNode)(e)}var Ct=function(){function e(t,n,o,r,i){var l=this;ae(this,e),this.getRowHeight=function(e,t){var n=l.setting,o=n.size;return null!=n.height?We(l.setting,"height",["tbody",e,t,o]):We(l.props,"rowHeight",["tbody",e,t])},this.getColumnClass=function(e,t){var n;return a(n={},"".concat(l.uuid,"-column-").concat(t),!0),a(n,"column_fixed",!!e.fixed),a(n,"column_fixed_left",!!e.fixed),a(n,"column_fixed_right","right"===e.fixed),n},this.getHeadColumnClass=function(e,t){return Object.assign(Object.assign({},l.getColumnClass(e,t)),{active:l.isColActive(t)})},this.props=t,this.context=n,this.reactiveProp=o,this.colgroups=r,this.plugins=new ht(t,n),this.uuid=(0,ce.v4)(),this.events=new Map,this.styleRef=i}return se(e,[{key:"propActiveCols",get:function(){return this.reactiveProp.activeColumns}},{key:"renderTableHeadSchema",value:function(){var e=this,t=Ge(this.props).isShow;return void 0===t||t?[this.props.settings?(0,i.createVNode)(bt,{class:"table-head-settings",settings:this.reactiveProp.settings,columns:this.colgroups,rowHeight:this.props.rowHeight,onChange:function(t){var n,o=t.checked,r=void 0===o?[]:o,i=t.size,a=t.height;e.reactiveProp.setting.size=i,e.reactiveProp.setting.height=a;var s=(null===(n=e.props.settings)||void 0===n?void 0:n.fields)||[];r.length&&e.colgroups.forEach((function(e){e.isHidden=Xe(s,e,r)})),e.emitEvent(l.ON_SETTING_CHANGE,[t])}},null):"",(0,i.createVNode)("table",{cellpadding:0,cellspacing:0},[this.renderColGroup(),this.renderHeader()])]:null}},{key:"renderTableBodySchema",value:function(e){var t,n,o;return e.length?(0,i.createVNode)("table",{cellpadding:0,cellspacing:0,"data-table-uuid":this.uuid},[this.renderColGroup(),this.renderTBody(e)]):null!==(o=null===(n=(t=this.context.slots).empty)||void 0===n?void 0:n.call(t))&&void 0!==o?o:(0,i.createVNode)(ct,{filterList:e,list:this.props.data,emptyText:this.props.emptyText},null)}},{key:"renderTableFooter",value:function(e){var t=this;return(0,i.createVNode)(ve(),(0,i.mergeProps)(e,{modelValue:e.current,onLimitChange:function(e){return t.handlePageLimitChange(e)},onChange:function(e){return t.handlePageChange(e)}}),null)}},{key:"on",value:function(e,t){return this.events.has(e)||this.events.set(e,[]),this.events.get(e).push(t),this}},{key:"destroy",value:function(){this.events.clear(),this.events=null}},{key:"emitEvent",value:function(e,t){var n=this;this.events.has(e)&&this.events.get(e).forEach((function(e){"function"==typeof e&&Reflect.apply(e,n,t)}))}},{key:"handlePageLimitChange",value:function(e){Object.assign(this.props.pagination,{limit:e}),this.context.emit(s.PAGE_LIMIT_CHANGE,e)}},{key:"handlePageChange",value:function(e){Object.assign(this.props.pagination,{current:e,value:e}),this.context.emit(s.PAGE_VALUE_CHANGE,e)}},{key:"setColumnActive",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.propActiveCols.find((function(t){return t.index===e}));Object.assign(n,{active:!n.active}),t&&this.propActiveCols.filter((function(t){return t.index!==e&&t.active})).forEach((function(e){Object.assign(e,{active:!1})}))}},{key:"handleColumnHeadClick",value:function(e,t){if("disabled"!==this.props.columnPick&&(this.setColumnActive(e,"single"===this.props.columnPick),this.context.emit(s.COLUMN_PICK,this.propActiveCols)),t.sort&&!t.filter){var n=We(t,["field","type"],[t,e]),o=Qe(this.reactiveProp.defaultSort[n]);Object.assign(this.reactiveProp.defaultSort,a({},n,o));var r=Je(t,o);this.emitEvent(l.ON_SORT_BY_CLICK,[{sortFn:r,column:t,index:e,type:o}])}}},{key:"getSortCell",value:function(e,t){var n=this,o=We(e,["field","type"],[e,t]),r=this.reactiveProp.defaultSort[o];return(0,i.createVNode)(vt,{column:e,defaultSort:r,onChange:function(r,i){Object.assign(n.reactiveProp.defaultSort,a({},o,i)),n.emitEvent(l.ON_SORT_BY_CLICK,[{sortFn:r,column:e,index:t,type:i}])}},null)}},{key:"getFilterCell",value:function(e,t){var n=this;return(0,i.createVNode)(ft,{column:e,height:this.props.headHeight,onChange:function(o,r){n.emitEvent(l.ON_FILTER_CLICK,[{filterFn:function(e,t){return r(o,e,t)},checked:o,column:e,index:t}])},onFilterSave:function(t){n.context.emit(s.COLUMN_FILTER_SAVE,{column:e,values:t})}},null)}},{key:"renderHeader",value:function(){var e=this,t=Ge(this.props),n=t.cellFn,o={"--row-height":"".concat(We(t,"height",["thead"]),"px")},r=function(t,o){if("selection"===t.type){var r=e.reactiveProp.rowActions.get(T);return e.renderCheckboxColumn(a({},b,!!r),0,!0)}var l=[];t.sort&&l.push(e.getSortCell(t,o)),t.filter&&l.push(e.getFilterCell(t,o));var s=function(e,t){return"function"==typeof n?n(e,t):We(e,"label",[e,t])}(t,o);l.unshift(s);var c="string"==typeof s?s:void 0;return(0,i.createVNode)(it,{title:c},_t(l)?l:{default:function(){return[l]}})},l=Tt(this.props,this.colgroups).resolveFixedColumnStyle,s=function(){if(e.styleRef.value.hasScrollY){var t={width:"".concat(8,"px"),right:"-1px"};return(0,i.createVNode)("th",{style:t,class:"column_fixed"},null)}};return(0,i.createVNode)("thead",{style:o},[(0,i.createVNode)(at,null,{default:function(){return[(0,i.createVNode)("tr",null,[e.filterColgroups.map((function(t,n){return(0,i.createVNode)("th",(0,i.mergeProps)({colspan:1,rowspan:1,class:e.getHeadColumnClass(t,n),style:l(t,e.styleRef.value.hasScrollY),onClick:function(){return e.handleColumnHeadClick(n,t)}},(o=t,Array.from(o.listeners.keys()).reduce((function(t,n){var r=n.split("_").slice(-1)[0];return Object.assign(t,a({},r,(function(t){o.listeners.get(n).forEach((function(n){return Reflect.apply(n,e,[t,o,e])}))})))}),{}))),[r(t,n)]);var o})),s()])]}})])}},{key:"renderTBody",value:function(e){var t=this,n=Tt(this.props,this.colgroups).resolveFixedColumnStyle,o=e.length;return(0,i.createVNode)("tbody",null,[e.map((function(r,a){var l=[].concat(ee(qe(t.props.rowStyle,[r,a,t])),[{"--row-height":"".concat(t.getRowHeight(r,a),"px")}]),c=[].concat(ee(qe(t.props.rowClass,[r,a,t])),["hover-".concat(t.props.rowHover)]),u=nt(r,a,t.props);return[(0,i.createVNode)(at,{key:u},{default:function(){return[(0,i.createVNode)("tr",{style:l,class:c,onClick:function(n){return t.handleRowClick(n,r,a,e)},onDblclick:function(n){return t.handleRowDblClick(n,r,a,e)}},[t.filterColgroups.map((function(l,c){var u,d,f=[n(l)].concat(ee(qe(t.props.cellStyle,[l,c,r,a,t]))),p={"expand-cell":"expand"===l.type},v="__CELL_".concat(a,"_").concat(c),h=Ze(l,c,r,a),y=h.colspan,g=h.rowspan,m=l.__col_$uuid,b=null!==(d=null===(u=r.__row_skip_config)||void 0===u?void 0:u[m])&&void 0!==d?d:{},T=b.skipRow,_=void 0!==T&&T,C=b.skipCol;if(!(_||void 0!==C&&C)){var w,O=[t.getColumnClass(l,c)].concat(ee(qe(t.props.cellClass,[l,c,r,a,t])),[{"expand-row":r.__row_expand,"is-last":a+g>=o}]),P=function(n,o){var i={event:n,row:ot(r),column:rt(l),cell:{getValue:function(){return t.renderCell(r,l,a,e)}},rowIndex:a,columnIndex:c};t.context.emit(o,i)};return(0,i.createVNode)("td",{class:O,style:f,key:v,colspan:y,rowspan:g,onClick:function(e){return P(e,s.CELL_CLICK)},onDblclick:function(e){return P(e,s.CELL_DBL_CLICK)}},[(0,i.createVNode)(it,{class:p,column:l,row:r,parentSetting:t.props.showOverflowTooltip},_t(w=t.renderCell(r,l,a,e))?w:{default:function(){return[w]}})])}return null}))])]}}),t.renderExpandRow(r,c,a)]}))])}},{key:"renderExpandRow",value:function(e,t,n){var o,r,a,l=this;if(e.__row_expand){var s=[].concat(ee(t),[{row_expend:!0}]),c=nt(e,n,this.props),u="".concat(c,"_expand");return(0,i.createVNode)(at,{key:u},{default:function(){return[(0,i.createVNode)("tr",{class:s},[(0,i.createVNode)("td",{colspan:l.filterColgroups.length,rowspan:1},[null!==(a=null===(r=(o=l.context.slots).expandRow)||void 0===r?void 0:r.call(o,ot(e)))&&void 0!==a?a:(0,i.createVNode)("div",{class:"expand-cell-ctx"},[(0,i.createTextVNode)("Expand Row")])])])]}})}}},{key:"handleRowClick",value:function(e,t,n,o){this.context.emit(s.ROW_CLICK,e,t,n,o,this)}},{key:"handleRowDblClick",value:function(e,t,n,o){this.context.emit(s.ROW_DBL_CLICK,e,t,n,o,this)}},{key:"getExpandCell",value:function(e){return e.__row_expand?(0,i.createVNode)(fe.DownShape,null,null):(0,i.createVNode)(fe.RightShape,null,null)}},{key:"handleRowExpandClick",value:function(e,t,n,o,r){this.emitEvent(l.ON_ROW_EXPAND_CLICK,[{row:e,column:t,index:n,rows:o,e:r}])}},{key:"renderCellCallbackFn",value:function(e,t,n,o){var r=Be(e,We(t,"field",[t,e]),t),i=e[v],a="number"==typeof i?i:n,l=this.props.data[a];return t.render({cell:r,data:l,row:e,column:t,index:n,rows:o})}},{key:"renderCheckboxColumn",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=function(r){n.emitEvent(l.ON_ROW_CHECK,[{row:e,index:t,isAll:o,value:r}])},a=o&&!!this.reactiveProp.rowActions.get(_),s=tt(this.props,{row:e,index:t,isCheckAll:o});return(0,i.createVNode)(de(),{onChange:r,disabled:!s,modelValue:e.__row_selection,indeterminate:a},null)}},{key:"renderExpandColumn",value:function(e,t,n,o){var r,a,l,s=this;return(0,i.createVNode)("span",{class:"expand-btn-action",onClick:function(r){return s.handleRowExpandClick(e,t,n,o,r)}},["function"==typeof t.render?s.renderCellCallbackFn(e,t,n,o):null!==(l=null===(a=(r=s.context.slots).expandCell)||void 0===a?void 0:a.call(r,{row:e,column:t,index:n,rows:o}))&&void 0!==l?l:s.getExpandCell(e)])}},{key:"renderCell",value:function(e,t,n,o){var r,i,a,l=this,s={expand:function(e,t,n,o){return l.renderExpandColumn(e,t,n,o)},selection:function(e,t,n,o){return l.renderCheckboxColumn(e,n)}};return null!==(i=null===(r=s[t.type])||void 0===r?void 0:r.call(s,e,t,n,o))&&void 0!==i?i:(a=Be(e,We(t,"field",[t,e]),t),"function"==typeof t.render?l.renderCellCallbackFn(e,t,n,o):a)}},{key:"isColActive",value:function(e){return"disabled"!==this.props.columnPick&&this.propActiveCols.some((function(t){return t.index===e&&t.active}))}},{key:"renderColGroup",value:function(){var e=this;return(0,i.createVNode)("colgroup",null,[(this.filterColgroups||[]).map((function(t,n){var o,a=(0,r.classes)({active:e.isColActive(n)}),l="".concat((o=ze(t),De(o,"auto"))).replace(/px$/i,"");return(0,i.createVNode)("col",{class:a,width:l},null)}))])}},{key:"filterColgroups",get:function(){return this.colgroups.filter((function(e){return!e.isHidden}))}},{key:"setting",get:function(){return this.reactiveProp.setting}}]),e}();const wt=function(e,t){return{initColumns:function(e){(Array.isArray(e)?e:[e]).forEach((function(e){if(!t.find((function(t){return t.label===e.label&&t.field===e.field}))){var n=(0,i.unref)(e);t.push(n)}}))},getColumns:function(){var n;return(null==t?void 0:t.length)?t:(null===(n=e.columns)||void 0===n?void 0:n.length)?e.columns:[]}}};var Ot=function(e){return"disabled"!==e.columnPick?"multi"===e.columnPick?Array.isArray(e.activeColumn)?e.activeColumn:Fe(e.activeColumn):Array.isArray(e.activeColumn)?Fe(e.activeColumn[0]):Fe(e.activeColumn):[]};var Pt=void 0,xt=function(e,t,o,l,s){var c,d=wt(e,t).getColumns,f=(0,i.ref)(200),p=(0,i.ref)(!1),v=(0,i.computed)((function(){return e.pagination&&e.data.length})),h=(0,i.computed)((function(){return p.value})),y=(0,i.computed)((function(){var t,n,o;return(0,r.classes)((a(t={},(0,r.resolveClassName)("table"),!0),a(t,"has-footer",v.value),a(t,"has-scroll-y",p.value||e.virtualEnabled),t),(o=["row"],"string"==typeof(n=e.border)&&o.push(n),Array.isArray(n)&&o.push.apply(o,ee(n.filter((function(e){return u.includes(e)})))),ee(new Set(o)).map((function(e){return"bordered-".concat(e)})).join(" ")))})),g=(0,r.classes)((a(c={},(0,r.resolveClassName)("table-head"),!0),a(c,"has-settings",!!e.settings),c)),m=Ge(e),b=(0,i.computed)((function(){return{"--row-height":"".concat(We(m,"height",["thead"]),"px"),"--scroll-head-left":"-".concat(l.scrollTranslateX,"px"),"--scroll-left":"".concat(l.scrollTranslateX,"px")}})),T=a({},(0,r.resolveClassName)("table-body"),!0),_=(0,i.computed)((function(){var t;return(0,r.classes)((a(t={},(0,r.resolveClassName)("table-footer"),!0),a(t,"is-hidden",!e.pagination||!e.data.length),t))})),C=function(){var e=d();if(e.every((function(e){return/^\d+\.?\d*(px)?$/gi.test("".concat(e.width))}))){var t=e.reduce((function(e,t){return e+Number("".concat(t.width).replace(/px/gi,""))}),0),n=p.value?6:0;return"".concat(t+n,"px")}return"100%"},w=(0,i.computed)((function(){return{minHeight:De(e.minHeight,"auto"),width:C(),maxWidth:"100%"}})),O=function(e,t){var n=String(e);return/^\d+\.?\d*$/.test(n)?Number(n):/^\d+\.?\d*px$/gi.test(n)?Number(n.replace("px","")):/^\d+\.?\d*%$/gi.test(n)&&"number"==typeof t?t*Number(n.replace("%",""))/100:t},P=(0,i.reactive)({display:"","min-height":"",height:"",maxHeight:""});(0,i.onMounted)((function(){E(null==o?void 0:o.value)}));var E=function(t){if(t){var n=t.parentElement.getBoundingClientRect().height;f.value=n,function(){var t=O(e.height,f.value),n=e.showHead?O(e.headHeight,x):0,o=O(e.minHeight,f.value),r=e.pagination&&e.data.length?e.paginationHeihgt:0,i=t-n-r,a="auto"!==e.height&&"".concat(i,"px"),l=o-n-r,c=O(e.maxHeight,void 0),u="number"==typeof c&&"".concat(c-n-r,"px");Object.assign(P,{display:!!(null==s?void 0:s.length)&&"block","min-height":"".concat(l,"px"),height:a,maxHeight:u})}(),N(t)}},N=function(t){if(t){var n=e.virtualEnabled?".".concat((0,r.resolveClassName)("virtual-section")):".".concat((0,r.resolveClassName)("table-body-content")),o=t.querySelector(".bk-table-body");p.value=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e){var o=e.querySelector(t);if(o)return o.offsetHeight>e.offsetHeight-n}return!1}(o,n,0)}};return{tableClass:y,headClass:g,contentClass:T,footerClass:_,wrapperStyle:w,contentStyle:P,headStyle:b,resetTableHeight:E,updateBorderClass:N,getColumnsWidthOffsetWidth:function(){var t=0;return p.value&&(t+=6),e.border.includes(n.OUTER)&&!e.border.includes(n.NONE)&&(t+=2),t},hasFooter:v,hasScrollY:p,hasScrollYRef:h}},Et=function(e,t){var n,o,r=(0,i.reactive)([]),l=wt(e,t).getColumns,s=function(e){if(/^\d+/.test("".concat(e.minWidth)))return e.minWidth;var t=R;return e.sort&&(t+=18),e.filter&&(t+=28),t},c=function(t){var n,o,i=(null==t?void 0:t.checked)||(null===(n=e.settings)||void 0===n?void 0:n.checked)||[],c=(null==t?void 0:t.fields)||(null===(o=e.settings)||void 0===o?void 0:o.fields)||[];r.length=0,r.push.apply(r,ee(l().map((function(e){var t;return Object.assign(Object.assign({},e),(a(t={calcWidth:null,resizeWidth:null,minWidth:s(e),listeners:new Map,isHidden:Xe(c,e,i)},O,(0,ce.v4)()),a(t,P,e),t))}))))},u=function(e){var t,n,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r="HeadColumnResize";!function(e){e.MOUSE_MOVE="onMousemove",e.MOUSE_OUT="onMouseout",e.MOUSE_DOWN="onMousedown"}(n||(n={}));var l=!1,s=!1,c=!1,u=0,d=null,f=0,p=(0,i.ref)(-1e3),v=function e(t){var n;s=!1,c=!1,document.body.style.cursor="";var o=t.clientX-u,r=(null!==(n=d.resizeWidth)&&void 0!==n?n:d.calcWidth)+o,i=Number(d.minWidth);d.resizeWidth=r>i?r:i,document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",y),u=0,p.value=-1e3,d=null,t.target.closest("table").querySelectorAll("th").forEach((function(e){return e.style.setProperty("user-select","inherit")}))},h=function(e){return(0,ye.throttle)((function(){var t,n=e.clientX-u,o=(null!==(t=d.resizeWidth)&&void 0!==t?t:d.calcWidth)+n;Number(d.minWidth)<o&&(p.value=e.clientX-u+f)}),60)},y=function(e){document.body.style.setProperty("cursor",""),h(e)()},g=(a(t={},n.MOUSE_DOWN,(function(e,t){if(l){s=!0,document.body.style.setProperty("cursor","col-resize"),d=t,u=e.clientX;var n=e.target.closest("table");f=u-n.getBoundingClientRect().left,document.addEventListener("mouseup",v),document.addEventListener("mousemove",y)}})),a(t,n.MOUSE_MOVE,(function(e,t){s&&!c&&(c=!0);var n=e.target.closest("th");if(c&&n.style.setProperty("user-select","none"),!c){if(!n)return;var o=n.getBoundingClientRect();o.width>12&&o.right-e.pageX<8?(l=!0,n.style.setProperty("cursor","col-resize")):(n.style.setProperty("cursor",""),l=!1)}})),a(t,n.MOUSE_OUT,(function(e,t){var n=e.target;c||n.style.setProperty("cursor","")})),t),m=function(e){return"".concat(r,"_").concat(e)},b=function(){e.forEach((function(e){!1!==e.resizable&&Object.keys(g).forEach((function(t){var n=m(t);e.listeners.has(n)||e.listeners.set(n,[]),e.listeners.get(n).push(g[t])}))}))},T=function(){e.forEach((function(e){Object.keys(g).forEach((function(t){var n=m(t);e.listeners.has(n)&&(e.listeners.get(n).length=0)}))}))};o&&b();var _=(0,i.computed)((function(){return{position:"absolute",top:0,bottom:0,left:0,width:"1px","background-color":"#ebeef5"}}));return{registerResizeEvent:b,resetResizeEvents:T,dragOffsetX:p,dragOffsetXStyle:_}}(r,!0),d=u.dragOffsetXStyle,f=u.dragOffsetX,p=u.resetResizeEvents,y=u.registerResizeEvent,g=function(e,t){var n=(0,i.reactive)([]),o=wt(e,t).getColumns;if("disabled"===e.columnPick)return{activeColumns:n};var r=(0,i.reactive)(Ot(e));return(0,i.watchEffect)((function(){n=o().map((function(e,t){return{index:t,active:r.some((function(e){return e===t})),_column:e}}));var t=Ot(e);n.forEach((function(e,n){Object.assign(e,{active:t.some((function(e){return e===n}))})}))})),{activeColumns:n}}(e,t).activeColumns;(0,i.watch)((function(){return[e.settings]}),(function(){var t;((null===(t=e.settings)||void 0===t?void 0:t.checked)||[]).length&&c()}));var x=(0,ye.debounce)((function(){c(),p(),y()}),120);(0,i.watch)((function(){return[e.columns,t]}),(function(){x()}),{immediate:!0,deep:!0});var N=e.columns.reduce((function(e,t,n){var o=We(t,["field","type"],[t,n]),r=et(t.sort);return r?Object.assign(Object.assign({},e||{}),a({},o,null==r?void 0:r.value)):e}),null),S=(0,i.reactive)({rowActions:new Map,scrollTranslateY:0,scrollTranslateX:0,pos:{bottom:1},activeColumns:g,settings:e.settings,setting:{size:null===(n=e.settings)||void 0===n?void 0:n.size,height:E[null===(o=e.settings)||void 0===o?void 0:o.size]},defaultSort:N||e.defaultSort}),L=function(e){var t;return!!S.rowActions.has(e)&&(null===(t=S.rowActions.get(e))||void 0===t?void 0:t.isExpand)},k=function(){return S.rowActions.has(T)?S.rowActions.get(T):!!e.selectionKey&&W.every((function(e){return I(e)}))},A=function(e){var t=e.__$uuid,n=(S.rowActions.get(t)||{}).isSelected;return void 0!==n&&n},V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,t=!1,n=!1;W.forEach((function(o){var r=e(o);t||r||(t=!0),!n&&r&&(n=!0)})),S.rowActions.set(_,n&&t),S.rowActions.set(T,n&&!t)},j=function(){e.columns.some((function(e){return"selection"===e.type}))&&V((function(e){return I(e)}))},H=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n="boolean"==typeof t?t:!k();S.rowActions.set(T,n),S.rowActions.set(_,!1),W.forEach((function(t,o){var r;if(tt(e,{row:t,index:o,isCheckAll:!1})){var i=t.__$uuid,a=Object.assign({},null!==(r=S.rowActions.get(i))&&void 0!==r?r:{},{isSelected:n});S.rowActions.set(i,a)}})),V(),K(n),q(null,t,!0)},I=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return A(e)};return"function"==typeof e.isSelectedFn?Reflect.apply(e.isSelectedFn,Pt,[{row:t,data:e.data}]):"string"==typeof e.selectionKey&&e.selectionKey.length?(0,ye.get)(t,e.selectionKey):n(t)},M=function(t,n,o){return I(t,(function(){var r,i=void 0===n?t.__$uuid:n;return!(!tt(e,{row:t,index:o,isCheckAll:!1})||!k())||!!S.rowActions.has(i)&&(null===(r=S.rowActions.get(i))||void 0===r?void 0:r.isSelected)}))},W=(0,i.reactive)([]),F=(0,i.computed)((function(){return r.some((function(e){return"function"==typeof e.rowspan||/^\d$/.test("".concat(e.rowspan))||"function"==typeof e.colspan||/^\d$/.test("".concat(e.colspan))}))})),D=(0,i.computed)((function(){return r.some((function(e){return"selection"===e.type}))})),z=(0,i.computed)((function(){return r.some((function(e){return"expand"===e.type}))})),U=(0,i.computed)((function(){return r.some((function(e){return"index"===e.type}))})),K=function(t){if(F.value||D.value||z.value||U.value){var n=null,o={};return W.forEach((function(r,i){var l=r.__$uuid;if(z.value&&Object.assign(r,a({},m,L(r.__$uuid))),F.value){var s=G(r,l,i,o,n);n=r.__$uuid,Object.assign(r,a({},w,s))}if(U.value&&Object.assign(r,a({},v,i)),D.value){var c=tt(e,{row:r,index:i,isCheckAll:!1});Object.assign(r,a({},b,function(e,t,n,o){var r=M(n,n.__$uuid,o);return e&&"boolean"==typeof t?t:r}(c,t,r,i)))}})),void(D.value&&"boolean"!=typeof t&&j())}},G=function(e,t,n,o,i){var l,s=0,c=null!==(l=o[i])&&void 0!==l?l:{};return o[t]||(o[t]={}),r.forEach((function(r,i){var l,u,d=Ze(r,i,e,n),f=d.colspan,p=d.rowspan,v=r.__col_$uuid,h=null!==(u=null===(l=c[v])||void 0===l?void 0:l.skipRowLen)&&void 0!==u?u:0,y=a({},v,{skipRowLen:0,skipRow:!1,skipCol:!1,skipColLen:0});s>0&&(y[v].skipColLen=s,y[v].skipCol=!0,s-=1),h>1?(y[v].skipRowLen=h-1,y[v].skipRow=!0):p>1&&(y[v].skipRowLen=p,y[v].skipRow=!1),f>1&&(y[v].skipColLen=f,s=f-1),Object.assign(o[t],Object.assign({},y))})),o[t]},B=(0,ye.debounce)(K,120);(0,i.watch)([F,D,z,U],(function(){B()}));var q=function(t,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.asyncData&&e.rowKey)if(o)e.data.forEach((function(t){(0,ye.has)(t,e.selectionKey)&&(0,ye.set)(t,e.selectionKey,!!n)}));else if((0,ye.has)(t,e.selectionKey)){var r=e.data.find((function(n){return(0,ye.get)(n,e.rowKey)===(0,ye.get)(t,e.rowKey)}));(0,ye.set)(r,e.selectionKey,!!n)}},$=Tt(0,r,!1),X=$.renderFixedColumns,Y=$.fixedWrapperClass;return{colgroups:r,dragOffsetXStyle:d,dragOffsetX:f,reactiveSchema:S,indexData:W,fixedWrapperClass:Y,initIndexData:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=null,o={};if(F.value||D.value||z.value||U.value){var r=e.data.map((function(r,i){var l,s=$e(r,e,i);n=s;var c=Object.assign(Object.assign({},r),(a(l={},h,s),a(l,C,Object.assign({},r)),l));if(F.value){var u=G(r,s,i,o,n);Object.assign(c,a({},w,u))}return D.value&&Object.assign(c,a({},b,M(r,s,i))),U.value&&Object.assign(c,a({},v,i)),z.value&&Object.assign(c,a({},m,!!t&&L(s))),c}));return W.length=0,W.push.apply(W,ee(r)),void(D.value&&j())}W.length=0,W.push.apply(W,ee(e.data))},updateIndexData:K,renderFixedColumns:X,setRowExpand:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,o=e.__$uuid,r="boolean"==typeof n?n:!L(o);S.rowActions.set(o,Object.assign({},null!==(t=S.rowActions.get(o))&&void 0!==t?t:{},{isExpand:r})),K()},updateColGroups:c,clearSelection:function(){H(!1)},toggleAllSelection:H,toggleRowSelection:function(e,t){var n,o=e.__$uuid;if(o){var r="boolean"==typeof t?t:!M(e,o),i=Object.assign({},null!==(n=S.rowActions.get(o))&&void 0!==n?n:{},{isSelected:r});S.rowActions.set(o,i),t||S.rowActions.set(T,!1),V(),K(),q(e,t,!1)}},getSelection:function(){return W.filter((function(e){return M(e)}))},clearSort:function(){Array.isArray(S.defaultSort)&&S.defaultSort.splice(0),S.defaultSort=N||e.defaultSort}}};const Nt=(0,i.defineComponent)({name:"Table",props:$,emits:p,setup:function(e,t){var n=null,o=null,c=null,u=null,d=(0,i.reactive)([]),f=wt(e,d).initColumns;(0,i.provide)(S,f);var p=(0,i.ref)(),v=(0,i.ref)(),h=(0,i.ref)(0),y=Et(e,d),g=y.colgroups,m=y.dragOffsetXStyle,b=y.dragOffsetX,T=y.reactiveSchema,_=y.indexData,C=y.renderFixedColumns,w=y.setRowExpand,O=y.initIndexData,P=y.fixedWrapperClass,x=y.clearSelection,E=y.toggleAllSelection,N=y.toggleRowSelection,L=y.getSelection,k=y.clearSort,A=y.updateColGroups,V=oe(e,_),j=V.pageData,H=V.localPagination,I=V.resolvePageData,M=V.watchEffectFn,W=xt(e,d,p,T,j),F=W.tableClass,D=W.headClass,z=W.contentClass,U=W.footerClass,K=W.wrapperStyle,G=W.contentStyle,B=W.headStyle,q=W.hasScrollYRef,$=W.updateBorderClass,X=W.resetTableHeight,Y=W.getColumnsWidthOffsetWidth,J=W.hasFooter,Q=(0,i.computed)((function(){return{hasScrollY:q.value}})),ee=new Ct(e,t,T,g,Q),ne=function(){var e=p.value.querySelector(".bk-table-body-content"),t=e.querySelector("table");if(t){var n=t.scrollWidth,o=e.clientWidth;h.value=n-o}};(0,i.watch)((function(){return[e.data,e.pagination,e.height,e.maxHeight,e.minHeight]}),(function(){O(e.reserveExpand),M(c,n,o),(0,i.nextTick)((function(){X(p.value),$(p.value)}))}),{immediate:!0,deep:!0}),(0,i.watchEffect)((function(){if((null==p?void 0:p.value)instanceof HTMLElement){var e=Y();Ue(p.value,g,20,e),ne()}})),ee.on(l.ON_SORT_BY_CLICK,(function(e){var r,a,l=e.sortFn,u=e.column,d=e.index,f=e.type;"function"==typeof l&&(I(c,n=l,o=u),null===(a=null===(r=v.value)||void 0===r?void 0:r.reset)||void 0===a||a.call(r)),t.emit(s.COLUMN_SORT,{column:(0,i.unref)(u.__col_source_data),index:d,type:f})})).on(l.ON_FILTER_CLICK,(function(e){var r,a,l=e.filterFn,u=e.checked,d=e.column,f=e.index;"function"==typeof l&&(I(c=l,n,o),null===(a=null===(r=v.value)||void 0===r?void 0:r.reset)||void 0===a||a.call(r)),t.emit(s.COLUMN_FILTER,{checked:u,column:(0,i.unref)(d.__col_source_data),index:f})})).on(l.ON_SETTING_CHANGE,(function(e){var n=e.checked,o=void 0===n?[]:n,r=e.size,a=e.height,l=e.fields;(0,i.nextTick)((function(){var e,n;A({checked:o,fields:l}),$(p.value);var i=Y();o.length&&Ue(p.value,g,R,i),null===(n=null===(e=v.value)||void 0===e?void 0:e.reset)||void 0===n||n.call(e),t.emit(s.SETTING_CHANGE,{checked:o,size:r,height:a,fields:l})}))})).on(l.ON_ROW_EXPAND_CLICK,(function(e){var n=e.row,o=e.column,r=e.index,i=e.rows,a=e.e;t.emit(s.ROW_EXPAND_CLICK,{row:ot(n),column:rt(o),index:r,rows:i,e:a}),w(n,!n.__row_expand)})).on(l.ON_ROW_CHECK,(function(n){var o=n.row,r=n.isAll,i=n.index,a=n.value;r?(E(a),t.emit(s.ROW_SELECT_ALL,{checked:a,data:e.data})):(N(o,a),t.emit(s.ROW_SELECT,{row:ot(o),index:i,checked:a,data:e.data})),t.emit(s.ROW_SELECT_CHANGE,{row:ot(o),isAll:r,index:i,checked:a,data:e.data})}));var ae=function(e){var n,o=null!==(n=T.pos.bottom)&&void 0!==n?n:0,i=e[1],a=i.translateX,l=i.translateY,c=i.pos,u=void 0===c?{}:c;T.scrollTranslateY=l,T.scrollTranslateX=a,T.pos=u;var d=u.bottom;d<=2&&o>d&&(0,r.debounce)(60,(function(){t.emit(s.SCROLL_BOTTOM,Object.assign(Object.assign({},u),{translateX:a,translateY:l}))}),!0)(),ne()};(0,i.onMounted)((function(){(u=Ke(p.value,(function(){if(p.value){"100%"!==e.height&&"auto"!==e.height||X(p.value),$(p.value);var t=Y();Ue(p.value,g,20,t)}}),180,!0,e.resizerWay)).start()})),(0,i.onBeforeUnmount)((function(){u.disconnect(),u=null,ee.destroy()})),t.expose({setRowExpand:w,clearSelection:x,toggleAllSelection:E,toggleRowSelection:N,getSelection:L,clearSort:k,scrollTo:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{left:0,top:0};null===(t=null===(e=v.value)||void 0===e?void 0:e.scrollTo)||void 0===t||t.call(e,n)}});var le=(0,i.computed)((function(){return Object.assign(Object.assign({},z),{"__is-empty":!j.length})})),se=(0,i.computed)((function(){var t;return a(t={},(0,r.resolveClassName)("table-body-content"),!0),a(t,"with-virtual-render",e.virtualEnabled),t})),ce={column_drag_line:!0,"offset-x":!0},ue=(0,i.computed)((function(){return Object.assign(Object.assign({},m.value),{left:"".concat(b.value-T.scrollTranslateX,"px")})})),de={"scroll-loading":!0,_bottom:!0},fe=(0,i.computed)((function(){var t;return a(t={},(0,r.resolveClassName)("fixed-bottom-border"),!0),a(t,"_is-empty",!e.data.length),t})),pe={zIndex:-1,width:0,height:0,display:"none"},ve=(0,i.computed)((function(){return{"--footer-height":J.value?"".concat(e.paginationHeihgt,"px"):"0"}})),he=(0,i.computed)((function(){return Object.assign({right:q.value?"".concat(6,"px"):0},ve.value)})),ye=function(e,t){var n=(0,i.toRef)(e,"scrollLoading"),o=(0,i.computed)((function(){return null!==n.value&&("boolean"==typeof n.value&&n.value||"object"===te(n.value))}));return{renderScrollLoading:function(){var e,r,a;if(o.value){var l="boolean"==typeof n.value?{loading:!!n.value,inline:!0,title:"",size:re.BkLoadingSize.Normal,mode:re.BkLoadingMode.Default,indicator:null}:n.value,s=l.loading,c=l.size,u=l.mode,d=l.title,f=l.inline,p=l.indicator;return null!==(a=null===(r=(e=t.slots).fixedBottom)||void 0===r?void 0:r.call(e))&&void 0!==a?a:(0,i.createVNode)(ie(),{loading:s,size:c,mode:u,title:d,inline:f,indicator:p},null)}}}}(e,t).renderScrollLoading,ge=(0,i.computed)((function(){return e.virtualEnabled?{}:{scrollXName:"",scrollYName:""}}));return function(){var n,o;return(0,i.createVNode)("div",{class:F.value,style:K.value,ref:p},[(0,i.createVNode)("div",{class:D,style:B.value},[ee.renderTableHeadSchema()]),(0,i.createVNode)(Z(),(0,i.mergeProps)({ref:v,lineHeight:ee.getRowHeight,class:le.value,style:G,list:j},ge.value,{contentClassName:se.value,onContentScroll:ae,throttleDelay:0,scrollEvent:!0,rowKey:e.rowKey,enabled:e.virtualEnabled}),{default:function(t){return ee.renderTableBodySchema(t.data||e.data)},afterSection:function(){return(0,i.createVNode)("div",{class:fe.value},null)}}),(0,i.createVNode)("div",{class:P,style:he.value},[C(T.scrollTranslateX,h.value),(0,i.createVNode)("div",{class:ce,style:ue.value},null),(0,i.createVNode)("div",{class:de},[ye()])]),(0,i.createVNode)("div",{class:U.value,style:ve.value},[J.value&&ee.renderTableFooter(H.value)]),(0,i.createVNode)("div",{style:pe},[null===(o=(n=t.slots).default)||void 0===o?void 0:o.call(n)])])}}}),St=(0,r.withInstall)(Nt);var Lt=(0,r.withInstall)(X)})(),g})()));
@@ -0,0 +1,40 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
3
+ default: () => unknown[];
4
+ } & {
5
+ default: () => unknown[];
6
+ };
7
+ filterList: import("vue-types").VueTypeValidableDef<unknown[]> & {
8
+ default: () => unknown[];
9
+ } & {
10
+ default: () => unknown[];
11
+ };
12
+ emptyText: import("vue-types").VueTypeValidableDef<string> & {
13
+ default: string;
14
+ } & {
15
+ default: string;
16
+ };
17
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
19
+ default: () => unknown[];
20
+ } & {
21
+ default: () => unknown[];
22
+ };
23
+ filterList: import("vue-types").VueTypeValidableDef<unknown[]> & {
24
+ default: () => unknown[];
25
+ } & {
26
+ default: () => unknown[];
27
+ };
28
+ emptyText: import("vue-types").VueTypeValidableDef<string> & {
29
+ default: string;
30
+ } & {
31
+ default: string;
32
+ };
33
+ }>> & {
34
+ onChange?: (...args: any[]) => any;
35
+ }, {
36
+ list: unknown[];
37
+ filterList: unknown[];
38
+ emptyText: string;
39
+ }>;
40
+ export default _default;
@@ -0,0 +1,38 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ colgroups: import("vue-types").VueTypeValidableDef<unknown[]> & {
3
+ default: () => unknown[];
4
+ } & {
5
+ default: () => unknown[];
6
+ };
7
+ columnPick: import("vue-types").VueTypeValidableDef<string> & {
8
+ default: string;
9
+ } & {
10
+ default: string;
11
+ };
12
+ propActiveCols: import("vue-types").VueTypeValidableDef<unknown[]> & {
13
+ default: () => unknown[];
14
+ } & {
15
+ default: () => unknown[];
16
+ };
17
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
+ colgroups: import("vue-types").VueTypeValidableDef<unknown[]> & {
19
+ default: () => unknown[];
20
+ } & {
21
+ default: () => unknown[];
22
+ };
23
+ columnPick: import("vue-types").VueTypeValidableDef<string> & {
24
+ default: string;
25
+ } & {
26
+ default: string;
27
+ };
28
+ propActiveCols: import("vue-types").VueTypeValidableDef<unknown[]> & {
29
+ default: () => unknown[];
30
+ } & {
31
+ default: () => unknown[];
32
+ };
33
+ }>>, {
34
+ columnPick: string;
35
+ colgroups: unknown[];
36
+ propActiveCols: unknown[];
37
+ }>;
38
+ export default _default;
@@ -0,0 +1,6 @@
1
+ /** 排序方式 */
2
+ export declare const enum SortType {
3
+ ASC = "asc",
4
+ DESC = "desc",
5
+ NULL = "null"
6
+ }
@@ -0,0 +1,84 @@
1
+ .bk-table-head-action {
2
+ display: flex;
3
+ height: var(--row-height);
4
+ padding: 0 10px 0 6px;
5
+ font-size: 12px;
6
+ color: #c4c6cc;
7
+ cursor: pointer;
8
+ align-items: center;
9
+ }
10
+ .bk-table-head-action.active {
11
+ color: #3a84ff;
12
+ }
13
+ .bk-table-head-action.opened {
14
+ color: inherit;
15
+ }
16
+ .bk-popover.bk-pop2-content.bk-table-head-filter {
17
+ padding: 5px 0 0 0;
18
+ background-color: #fff;
19
+ border-radius: 2px;
20
+ box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.1);
21
+ }
22
+ .bk-popover.bk-pop2-content.bk-table-head-filter .content-list {
23
+ display: inline-block;
24
+ max-width: 300px;
25
+ min-width: 200px;
26
+ }
27
+ .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items {
28
+ max-height: 200px;
29
+ min-height: 40px;
30
+ }
31
+ .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item {
32
+ width: 100%;
33
+ height: 32px;
34
+ padding: 0 10px;
35
+ font-size: 12px;
36
+ line-height: 32px;
37
+ color: #63656e;
38
+ text-align: left;
39
+ }
40
+ .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item:hover {
41
+ background: #f0f1f5;
42
+ }
43
+ .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label:hover {
44
+ background: #f0f1f5;
45
+ }
46
+ .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox-label {
47
+ white-space: nowrap;
48
+ }
49
+ .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox {
50
+ margin-left: 0;
51
+ }
52
+ .bk-popover.bk-pop2-content.bk-table-head-filter .content-footer {
53
+ display: flex;
54
+ height: 42px;
55
+ padding: 0 10px;
56
+ border-top: solid 1px #dcdee5;
57
+ justify-content: center;
58
+ align-items: center;
59
+ }
60
+ .bk-popover.bk-pop2-content.bk-table-head-filter .content-footer span {
61
+ display: inline-flex;
62
+ height: 100%;
63
+ padding: 6px 12px;
64
+ font-size: 14px;
65
+ line-height: 22px;
66
+ color: #3a84ff;
67
+ cursor: pointer;
68
+ align-items: center;
69
+ }
70
+ .bk-popover.bk-pop2-content.bk-table-head-filter .content-footer span.disabled {
71
+ color: transparent;
72
+ cursor: auto;
73
+ }
74
+ .bk-popover.bk-pop2-content.bk-table-head-filter .content-footer span.btn-filter-split {
75
+ width: 1px;
76
+ height: calc(100% - 12px);
77
+ padding: 6px 0;
78
+ cursor: default;
79
+ background: #f0f1f5;
80
+ }
81
+ .bk-popover.bk-pop2-content.bk-table-head-filter .content-footer span.btn-filter-reset.disable {
82
+ color: #979ba5;
83
+ cursor: not-allowed;
84
+ }
@@ -0,0 +1,26 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ column: import("vue-types").VueTypeValidableDef<any> & {
3
+ default: any;
4
+ };
5
+ height: import("vue-types").VueTypeValidableDef<number> & {
6
+ default: number;
7
+ } & {
8
+ default: number;
9
+ };
10
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "filterSave")[], "change" | "filterSave", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
11
+ column: import("vue-types").VueTypeValidableDef<any> & {
12
+ default: any;
13
+ };
14
+ height: import("vue-types").VueTypeValidableDef<number> & {
15
+ default: number;
16
+ } & {
17
+ default: number;
18
+ };
19
+ }>> & {
20
+ onChange?: (...args: any[]) => any;
21
+ onFilterSave?: (...args: any[]) => any;
22
+ }, {
23
+ height: number;
24
+ column: any;
25
+ }>;
26
+ export default _default;
@@ -0,0 +1,110 @@
1
+ @import '../../styles/themes/themes.less';
2
+ .@{bk-prefix}-table-head-action {
3
+ display: flex;
4
+ height: var(--row-height);
5
+ padding: 0 10px 0 6px;
6
+ font-size: 12px;
7
+ color: #c4c6cc;
8
+ cursor: pointer;
9
+ align-items: center;
10
+
11
+ &.active {
12
+ color: #3a84ff;
13
+ }
14
+
15
+ &.opened {
16
+ color: inherit;
17
+ }
18
+ }
19
+
20
+ .@{bk-prefix}-popover {
21
+ &.@{bk-prefix}-pop2-content {
22
+ &.@{bk-prefix}-table-head-filter {
23
+ padding: 5px 0 0 0;
24
+ background-color: #fff;
25
+ border-radius: 2px;
26
+ box-shadow: 0 3px 6px 0 rgba(0,0,0,.10);
27
+
28
+ .content-list {
29
+ display: inline-block;
30
+ max-width: 300px;
31
+ min-width: 200px;
32
+
33
+ .content-items {
34
+ max-height: 200px;
35
+ min-height: 40px;
36
+
37
+ .list-item {
38
+ width: 100%;
39
+ height: 32px;
40
+ padding: 0 10px;
41
+ font-size: 12px;
42
+ line-height: 32px;
43
+ color: #63656e;
44
+ text-align: left;
45
+
46
+ &:hover {
47
+ background: #f0f1f5;
48
+ }
49
+
50
+ label {
51
+ &:hover {
52
+ background: #f0f1f5;
53
+ }
54
+ }
55
+
56
+ .bk-checkbox-label {
57
+ white-space: nowrap;
58
+ }
59
+
60
+ .bk-checkbox {
61
+ margin-left: 0;
62
+ }
63
+ }
64
+ }
65
+ }
66
+
67
+ .content-footer {
68
+ display: flex;
69
+ height: 42px;
70
+ padding: 0 10px;
71
+ border-top: solid 1px #dcdee5;
72
+ justify-content: center;
73
+ align-items: center;
74
+
75
+ span {
76
+ display: inline-flex;
77
+ height: 100%;
78
+ padding: 6px 12px;
79
+ font-size: 14px;
80
+ line-height: 22px;
81
+ color: @primary-color;
82
+ cursor: pointer;
83
+ align-items: center;
84
+
85
+ &.disabled {
86
+ color: transparent;
87
+ cursor: auto;
88
+ }
89
+
90
+ &.btn-filter-split {
91
+ width: 1px;
92
+ height: calc(100% - 12px);
93
+ padding: 6px 0;
94
+ cursor: default;
95
+ background: #f0f1f5;
96
+ }
97
+
98
+ &.btn-filter-reset {
99
+ &.disable {
100
+ color: @gray-color;
101
+ cursor: not-allowed;
102
+ }
103
+ }
104
+ }
105
+ }
106
+ }
107
+ }
108
+ }
109
+
110
+