bkui-vue 0.0.1-beta.47 → 0.0.1-beta.470

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 (686) hide show
  1. package/License.txt +14 -0
  2. package/dist/index.cjs.js +360 -36
  3. package/dist/index.esm.js +31133 -19791
  4. package/dist/index.umd.js +360 -36
  5. package/dist/locale/en.esm.js +2 -0
  6. package/dist/locale/en.esm.js.map +1 -0
  7. package/dist/locale/en.umd.js +2 -0
  8. package/dist/locale/en.umd.js.map +1 -0
  9. package/dist/locale/zh-cn.esm.js +2 -0
  10. package/dist/locale/zh-cn.esm.js.map +1 -0
  11. package/dist/locale/zh-cn.umd.js +2 -0
  12. package/dist/locale/zh-cn.umd.js.map +1 -0
  13. package/dist/style.css +1 -1
  14. package/dist/style.variable.css +1 -0
  15. package/lib/affix/affix.css +3 -0
  16. package/lib/affix/affix.d.ts +47 -0
  17. package/lib/affix/affix.less +5 -0
  18. package/lib/affix/affix.variable.css +125 -0
  19. package/lib/affix/index.d.ts +167 -0
  20. package/lib/affix/index.js +1 -0
  21. package/lib/alert/alert.css +9 -3
  22. package/lib/alert/alert.d.ts +6 -6
  23. package/lib/alert/alert.less +29 -20
  24. package/lib/alert/alert.variable.css +41 -7
  25. package/lib/alert/index.d.ts +68 -48
  26. package/lib/alert/index.js +1 -1
  27. package/lib/animate-number/animate-number.d.ts +2 -2
  28. package/lib/animate-number/index.d.ts +58 -25
  29. package/lib/backtop/backtop.css +8 -0
  30. package/lib/backtop/backtop.d.ts +5 -5
  31. package/lib/backtop/backtop.less +8 -0
  32. package/lib/backtop/backtop.variable.css +40 -4
  33. package/lib/backtop/index.d.ts +67 -49
  34. package/lib/backtop/index.js +1 -1
  35. package/lib/badge/badge.css +7 -10
  36. package/lib/badge/badge.d.ts +29 -8
  37. package/lib/badge/badge.less +9 -11
  38. package/lib/badge/badge.variable.css +39 -14
  39. package/lib/badge/index.d.ts +120 -67
  40. package/lib/badge/index.js +1 -1
  41. package/lib/breadcrumb/breadcrumb-item.d.ts +5 -3
  42. package/lib/breadcrumb/breadcrumb.css +51 -0
  43. package/lib/breadcrumb/breadcrumb.d.ts +2 -2
  44. package/lib/breadcrumb/breadcrumb.variable.css +88 -9
  45. package/lib/breadcrumb/index.d.ts +65 -41
  46. package/lib/breadcrumb/index.js +1 -1
  47. package/lib/button/button-group.d.ts +4 -4
  48. package/lib/button/button.css +85 -50
  49. package/lib/button/button.d.ts +47 -27
  50. package/lib/button/button.less +72 -42
  51. package/lib/button/button.variable.css +117 -54
  52. package/lib/button/index.d.ts +123 -87
  53. package/lib/button/index.js +1 -1
  54. package/lib/card/card.css +97 -2
  55. package/lib/card/card.d.ts +48 -7
  56. package/lib/card/card.less +50 -2
  57. package/lib/card/card.variable.css +133 -10
  58. package/lib/card/index.d.ts +153 -58
  59. package/lib/card/index.js +1 -1
  60. package/lib/cascader/cascader-panel.d.ts +102 -0
  61. package/lib/cascader/cascader.css +316 -0
  62. package/lib/cascader/cascader.d.ts +354 -0
  63. package/lib/cascader/cascader.less +283 -0
  64. package/lib/cascader/cascader.variable.css +438 -0
  65. package/lib/cascader/index.d.ts +923 -0
  66. package/lib/cascader/index.js +2 -0
  67. package/lib/cascader/index.js.LICENSE.txt +1 -0
  68. package/lib/cascader/interface.d.ts +51 -0
  69. package/lib/cascader/node.d.ts +31 -0
  70. package/lib/cascader/store.d.ts +27 -0
  71. package/lib/checkbox/checkbox-group.d.ts +18 -2
  72. package/lib/checkbox/checkbox.css +40 -12
  73. package/lib/checkbox/checkbox.d.ts +33 -15
  74. package/lib/checkbox/checkbox.less +70 -34
  75. package/lib/checkbox/checkbox.variable.css +72 -16
  76. package/lib/checkbox/common.d.ts +1 -0
  77. package/lib/checkbox/index.d.ts +113 -61
  78. package/lib/checkbox/index.js +1 -1
  79. package/lib/checkbox/type.d.ts +1 -1
  80. package/lib/code-diff/code-diff.css +27 -7
  81. package/lib/code-diff/code-diff.d.ts +7 -7
  82. package/lib/code-diff/code-diff.less +42 -7
  83. package/lib/code-diff/code-diff.variable.css +59 -11
  84. package/lib/code-diff/index.d.ts +30 -43
  85. package/lib/code-diff/index.js +1 -1
  86. package/lib/collapse/collapse-panel.d.ts +103 -0
  87. package/lib/collapse/collapse.css +69 -14
  88. package/lib/collapse/collapse.d.ts +67 -53
  89. package/lib/collapse/collapse.less +112 -30
  90. package/lib/collapse/collapse.variable.css +191 -14
  91. package/lib/collapse/index.d.ts +292 -52
  92. package/lib/collapse/index.js +1 -1
  93. package/lib/collapse/props.d.ts +131 -0
  94. package/lib/collapse/utils.d.ts +11 -0
  95. package/lib/collapse-transition/collapse-transition.css +93 -0
  96. package/lib/collapse-transition/collapse-transition.d.ts +15 -0
  97. package/lib/collapse-transition/collapse-transition.less +111 -0
  98. package/lib/collapse-transition/collapse-transition.variable.css +215 -0
  99. package/lib/collapse-transition/index.d.ts +2 -0
  100. package/lib/collapse-transition/index.js +1 -0
  101. package/lib/color-picker/color-picker.css +275 -0
  102. package/lib/color-picker/color-picker.d.ts +144 -0
  103. package/lib/color-picker/color-picker.less +325 -0
  104. package/lib/color-picker/color-picker.variable.css +397 -0
  105. package/lib/color-picker/components/color-input.d.ts +42 -0
  106. package/lib/color-picker/components/hue-slider.d.ts +41 -0
  107. package/lib/color-picker/components/input-container.d.ts +42 -0
  108. package/lib/color-picker/components/recommend-colors.d.ts +51 -0
  109. package/lib/color-picker/components/saturation-panel.d.ts +41 -0
  110. package/lib/color-picker/index.d.ts +255 -0
  111. package/lib/color-picker/index.js +1 -0
  112. package/lib/color-picker/utils.d.ts +37 -0
  113. package/lib/components.d.ts +31 -8
  114. package/lib/components.js +1 -0
  115. package/lib/config-provider/config-provider.css +0 -0
  116. package/lib/config-provider/config-provider.d.ts +402 -0
  117. package/lib/config-provider/config-provider.less +1 -0
  118. package/lib/config-provider/config-provider.variable.css +122 -0
  119. package/lib/config-provider/index.d.ts +646 -0
  120. package/lib/config-provider/index.js +1 -0
  121. package/lib/config-provider/token.d.ts +128 -0
  122. package/lib/config-provider/use-global-config.d.ts +5 -0
  123. package/lib/config-provider/use-locale.d.ts +3 -0
  124. package/lib/config-provider/use-prefix.d.ts +9 -0
  125. package/lib/container/col.d.ts +51 -0
  126. package/lib/container/container.css +91 -0
  127. package/lib/container/container.d.ts +83 -0
  128. package/lib/container/container.less +20 -0
  129. package/lib/container/container.variable.css +213 -0
  130. package/lib/container/index.d.ts +204 -0
  131. package/lib/container/index.js +1 -0
  132. package/lib/container/interface.d.ts +7 -0
  133. package/lib/container/row.d.ts +4 -0
  134. package/lib/date-picker/base/confirm.d.ts +74 -0
  135. package/lib/date-picker/base/date-table.d.ts +96 -0
  136. package/lib/date-picker/base/month-table.d.ts +117 -0
  137. package/lib/date-picker/base/picker-dropdown.d.ts +74 -0
  138. package/lib/date-picker/base/time-spinner.d.ts +170 -0
  139. package/lib/date-picker/base/year-table.d.ts +117 -0
  140. package/lib/date-picker/date-picker.css +31 -1
  141. package/lib/date-picker/date-picker.d.ts +73 -35
  142. package/lib/date-picker/date-picker.less +110 -74
  143. package/lib/date-picker/date-picker.variable.css +63 -5
  144. package/lib/date-picker/index.d.ts +231 -211
  145. package/lib/date-picker/index.js +1 -1
  146. package/lib/date-picker/interface.d.ts +20 -10
  147. package/lib/date-picker/panel/date-range.d.ts +345 -0
  148. package/lib/date-picker/panel/date.d.ts +206 -0
  149. package/lib/date-picker/panel/time-range.d.ts +495 -0
  150. package/lib/date-picker/panel/time.d.ts +451 -0
  151. package/lib/date-picker/props.d.ts +55 -5
  152. package/lib/date-picker/time-picker.d.ts +390 -0
  153. package/lib/date-picker/utils.d.ts +22 -2
  154. package/lib/dialog/dialog.css +135 -26
  155. package/lib/dialog/dialog.d.ts +219 -104
  156. package/lib/dialog/dialog.less +99 -41
  157. package/lib/dialog/dialog.variable.css +257 -26
  158. package/lib/dialog/index.d.ts +467 -276
  159. package/lib/dialog/index.js +2 -1
  160. package/lib/dialog/index.js.LICENSE.txt +1 -0
  161. package/lib/dialog/props.d.ts +122 -0
  162. package/lib/directives/ellipsis.d.ts +7 -0
  163. package/lib/directives/index.d.ts +2 -0
  164. package/lib/directives/index.js +1 -1
  165. package/lib/directives/tooltips.d.ts +2 -1
  166. package/lib/dist.index.js +1 -0
  167. package/lib/divider/divider.d.ts +17 -17
  168. package/lib/divider/divider.variable.css +32 -4
  169. package/lib/divider/index.d.ts +85 -61
  170. package/lib/divider/index.js +1 -1
  171. package/lib/divider/props.d.ts +6 -6
  172. package/lib/dropdown/dropdown-item.d.ts +1 -1
  173. package/lib/dropdown/dropdown-menu.d.ts +2 -2
  174. package/lib/dropdown/dropdown.css +38 -7
  175. package/lib/dropdown/dropdown.d.ts +47 -15
  176. package/lib/dropdown/dropdown.less +48 -34
  177. package/lib/dropdown/dropdown.variable.css +70 -11
  178. package/lib/dropdown/index.d.ts +141 -65
  179. package/lib/dropdown/index.js +1 -1
  180. package/lib/exception/exception.css +40 -14
  181. package/lib/exception/exception.d.ts +33 -13
  182. package/lib/exception/exception.less +59 -22
  183. package/lib/exception/exception.variable.css +72 -18
  184. package/lib/exception/index.d.ts +91 -43
  185. package/lib/exception/index.js +1 -1
  186. package/lib/exception/typings/index.d.ts +4 -0
  187. package/lib/fixed-navbar/fixed-navbar.d.ts +17 -3
  188. package/lib/fixed-navbar/fixed-navbar.variable.css +32 -4
  189. package/lib/fixed-navbar/index.d.ts +89 -30
  190. package/lib/fixed-navbar/index.js +1 -1
  191. package/lib/form/compose-form-item.d.ts +2 -2
  192. package/lib/form/form-item.d.ts +25 -10
  193. package/lib/form/form.css +34 -7
  194. package/lib/form/form.d.ts +50 -16
  195. package/lib/form/form.less +83 -51
  196. package/lib/form/form.variable.css +66 -11
  197. package/lib/form/index.d.ts +154 -61
  198. package/lib/form/index.js +1 -1
  199. package/lib/form/type.d.ts +11 -8
  200. package/lib/form/utils.d.ts +2 -0
  201. package/lib/form/validator.d.ts +1 -0
  202. package/lib/hooks.d.ts +1 -0
  203. package/lib/hooks.js +1 -0
  204. package/lib/icon/angle-double-down-line.js +1 -1
  205. package/lib/icon/angle-double-left-line.js +1 -1
  206. package/lib/icon/angle-double-left.js +1 -1
  207. package/lib/icon/angle-double-right-line.js +1 -1
  208. package/lib/icon/angle-double-right.js +1 -1
  209. package/lib/icon/angle-double-up-line.js +1 -1
  210. package/lib/icon/angle-down-fill.js +1 -1
  211. package/lib/icon/angle-down-line.js +1 -1
  212. package/lib/icon/angle-down.js +1 -1
  213. package/lib/icon/angle-left.js +1 -1
  214. package/lib/icon/angle-right.js +1 -1
  215. package/lib/icon/angle-up-fill.js +1 -1
  216. package/lib/icon/angle-up.js +1 -1
  217. package/lib/icon/archive-fill.d.ts +4 -0
  218. package/lib/icon/archive-fill.js +1 -0
  219. package/lib/icon/arrows-left.js +1 -1
  220. package/lib/icon/arrows-right.js +1 -1
  221. package/lib/icon/audio-fill.d.ts +4 -0
  222. package/lib/icon/audio-fill.js +1 -0
  223. package/lib/icon/bk.js +1 -1
  224. package/lib/icon/circle.js +1 -1
  225. package/lib/icon/close-line.d.ts +4 -0
  226. package/lib/icon/close-line.js +1 -0
  227. package/lib/icon/close.js +1 -1
  228. package/lib/icon/code.js +1 -1
  229. package/lib/icon/cog-shape.js +1 -1
  230. package/lib/icon/collapse-left.js +1 -1
  231. package/lib/icon/copy-shape.d.ts +4 -0
  232. package/lib/icon/copy-shape.js +1 -0
  233. package/lib/icon/copy.js +1 -1
  234. package/lib/icon/data-shape.d.ts +4 -0
  235. package/lib/icon/data-shape.js +1 -0
  236. package/lib/icon/del.d.ts +4 -0
  237. package/lib/icon/del.js +1 -0
  238. package/lib/icon/doc-fill.d.ts +4 -0
  239. package/lib/icon/doc-fill.js +1 -0
  240. package/lib/icon/done.js +1 -1
  241. package/lib/icon/down-shape.js +1 -1
  242. package/lib/icon/down-small.js +1 -1
  243. package/lib/icon/edit-line.d.ts +4 -0
  244. package/lib/icon/edit-line.js +1 -0
  245. package/lib/icon/ellipsis.js +1 -1
  246. package/lib/icon/enlarge-line.d.ts +4 -0
  247. package/lib/icon/enlarge-line.js +1 -0
  248. package/lib/icon/error.js +1 -1
  249. package/lib/icon/excel-fill.d.ts +4 -0
  250. package/lib/icon/excel-fill.js +1 -0
  251. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  252. package/lib/icon/exclamation-circle-shape.js +1 -0
  253. package/lib/icon/eye.js +1 -1
  254. package/lib/icon/filliscreen-line.d.ts +4 -0
  255. package/lib/icon/filliscreen-line.js +1 -0
  256. package/lib/icon/fix-line.d.ts +4 -0
  257. package/lib/icon/fix-line.js +1 -0
  258. package/lib/icon/fix-shape.d.ts +4 -0
  259. package/lib/icon/fix-shape.js +1 -0
  260. package/lib/icon/folder-open.js +1 -1
  261. package/lib/icon/folder-shape-open.js +1 -1
  262. package/lib/icon/folder-shape.js +1 -1
  263. package/lib/icon/folder.js +1 -1
  264. package/lib/icon/funnel.js +1 -1
  265. package/lib/icon/help-document-fill.js +1 -1
  266. package/lib/icon/help-fill.js +1 -1
  267. package/lib/icon/help.js +1 -1
  268. package/lib/icon/image-fill.d.ts +4 -0
  269. package/lib/icon/image-fill.js +1 -0
  270. package/lib/icon/img-error.d.ts +4 -0
  271. package/lib/icon/img-error.js +1 -0
  272. package/lib/icon/img-placehoulder.d.ts +4 -0
  273. package/lib/icon/img-placehoulder.js +1 -0
  274. package/lib/icon/index.d.ts +83 -54
  275. package/lib/icon/index.js +1 -1
  276. package/lib/icon/info-line.js +1 -1
  277. package/lib/icon/info.js +1 -1
  278. package/lib/icon/left-shape.js +1 -1
  279. package/lib/icon/left-turn-line.d.ts +4 -0
  280. package/lib/icon/left-turn-line.js +1 -0
  281. package/lib/icon/narrow-line.d.ts +4 -0
  282. package/lib/icon/narrow-line.js +1 -0
  283. package/lib/icon/original.d.ts +4 -0
  284. package/lib/icon/original.js +1 -0
  285. package/lib/icon/pdf-fill.d.ts +4 -0
  286. package/lib/icon/pdf-fill.js +1 -0
  287. package/lib/icon/play-shape.js +1 -1
  288. package/lib/icon/plus.js +1 -1
  289. package/lib/icon/ppt-fill.d.ts +4 -0
  290. package/lib/icon/ppt-fill.js +1 -0
  291. package/lib/icon/qq.js +1 -1
  292. package/lib/icon/right-shape.js +1 -1
  293. package/lib/icon/right-turn-line.d.ts +4 -0
  294. package/lib/icon/right-turn-line.js +1 -0
  295. package/lib/icon/search.js +1 -1
  296. package/lib/icon/share.js +1 -1
  297. package/lib/icon/spinner.js +1 -1
  298. package/lib/icon/success.js +1 -1
  299. package/lib/icon/switcher-loading.js +1 -1
  300. package/lib/icon/text-file.js +1 -1
  301. package/lib/icon/text-fill.d.ts +4 -0
  302. package/lib/icon/text-fill.js +1 -0
  303. package/lib/icon/transfer.d.ts +4 -0
  304. package/lib/icon/transfer.js +1 -0
  305. package/lib/icon/tree-application-shape.js +1 -1
  306. package/lib/icon/unfull-screen.d.ts +4 -0
  307. package/lib/icon/unfull-screen.js +1 -0
  308. package/lib/icon/unvisible.js +1 -1
  309. package/lib/icon/up-shape.js +1 -1
  310. package/lib/icon/upload.d.ts +4 -0
  311. package/lib/icon/upload.js +1 -0
  312. package/lib/icon/video-fill.d.ts +4 -0
  313. package/lib/icon/video-fill.js +1 -0
  314. package/lib/icon/warn.js +1 -1
  315. package/lib/icon/weixin-pro.d.ts +4 -0
  316. package/lib/icon/weixin-pro.js +1 -0
  317. package/lib/icon/weixin.js +1 -1
  318. package/lib/image/image-viewer.css +142 -0
  319. package/lib/image/image-viewer.d.ts +73 -0
  320. package/lib/image/image-viewer.less +168 -0
  321. package/lib/image/image-viewer.variable.css +142 -0
  322. package/lib/image/image.css +37 -0
  323. package/lib/image/image.d.ts +93 -0
  324. package/lib/image/image.less +44 -0
  325. package/lib/image/image.variable.css +37 -0
  326. package/lib/image/index.d.ts +252 -0
  327. package/lib/image/index.js +1 -0
  328. package/lib/image/props.d.ts +71 -0
  329. package/lib/index.d.ts +3 -1
  330. package/lib/index.js +1 -0
  331. package/lib/info-box/index.d.ts +7 -0
  332. package/lib/info-box/index.js +2 -0
  333. package/lib/info-box/index.js.LICENSE.txt +1 -0
  334. package/lib/info-box/info-box.css +37 -0
  335. package/lib/info-box/info-box.d.ts +29 -0
  336. package/lib/info-box/info-box.less +51 -0
  337. package/lib/info-box/info-box.variable.css +159 -0
  338. package/lib/input/index.d.ts +228 -180
  339. package/lib/input/index.js +1 -1
  340. package/lib/input/input.css +183 -19
  341. package/lib/input/input.d.ts +121 -38
  342. package/lib/input/input.less +112 -18
  343. package/lib/input/input.variable.css +246 -55
  344. package/lib/link/index.d.ts +82 -55
  345. package/lib/link/index.js +1 -1
  346. package/lib/link/link.css +12 -12
  347. package/lib/link/link.d.ts +11 -9
  348. package/lib/link/link.less +16 -14
  349. package/lib/link/link.variable.css +44 -16
  350. package/lib/loading/directive.d.ts +14 -0
  351. package/lib/loading/index.d.ts +166 -54
  352. package/lib/loading/index.js +1 -1
  353. package/lib/loading/loading.css +86 -33
  354. package/lib/loading/loading.d.ts +97 -15
  355. package/lib/loading/loading.less +27 -23
  356. package/lib/loading/loading.variable.css +134 -53
  357. package/lib/locale/index.d.ts +3 -0
  358. package/lib/locale/index.js +1 -0
  359. package/lib/locale/lang/en.d.ts +126 -0
  360. package/lib/locale/lang/zh-cn.d.ts +3 -0
  361. package/lib/menu/index.d.ts +81 -52
  362. package/lib/menu/index.js +1 -1
  363. package/lib/menu/menu-group.d.ts +2 -2
  364. package/lib/menu/menu-item.d.ts +5 -1
  365. package/lib/menu/menu.css +51 -0
  366. package/lib/menu/menu.d.ts +8 -17
  367. package/lib/menu/menu.variable.css +101 -22
  368. package/lib/menu/submenu.d.ts +5 -1
  369. package/lib/menu/submenu.variable.css +32 -4
  370. package/lib/menu/utils.d.ts +1 -1
  371. package/lib/message/index.js +2 -1
  372. package/lib/message/index.js.LICENSE.txt +6 -0
  373. package/lib/message/message.css +170 -6
  374. package/lib/message/message.less +222 -7
  375. package/lib/message/message.variable.css +202 -10
  376. package/lib/message/messageConstructor.d.ts +136 -27
  377. package/lib/modal/index.d.ts +399 -201
  378. package/lib/modal/index.js +1 -1
  379. package/lib/modal/modal.css +52 -10
  380. package/lib/modal/modal.d.ts +152 -64
  381. package/lib/modal/modal.less +36 -25
  382. package/lib/modal/modal.variable.css +174 -10
  383. package/lib/modal/props.mixin.d.ts +63 -28
  384. package/lib/navigation/index.d.ts +329 -1
  385. package/lib/navigation/index.js +1 -1
  386. package/lib/navigation/navigation-title.d.ts +6 -3
  387. package/lib/navigation/navigation.css +1 -1
  388. package/lib/navigation/navigation.d.ts +21 -5
  389. package/lib/navigation/navigation.less +1 -1
  390. package/lib/navigation/navigation.variable.css +33 -5
  391. package/lib/notify/index.js +1 -1
  392. package/lib/notify/notify.css +25 -5
  393. package/lib/notify/notify.less +29 -6
  394. package/lib/notify/notify.variable.css +57 -9
  395. package/lib/notify/notifyConstructor.d.ts +63 -22
  396. package/lib/overflow-title/components/overflow-title.d.ts +57 -0
  397. package/lib/overflow-title/directive/overflow-title.d.ts +3 -0
  398. package/lib/overflow-title/index.d.ts +195 -0
  399. package/lib/overflow-title/index.js +1 -0
  400. package/lib/overflow-title/overflow.css +11 -0
  401. package/lib/overflow-title/overflow.less +13 -0
  402. package/lib/overflow-title/overflow.variable.css +11 -0
  403. package/lib/overflow-title/props.d.ts +43 -0
  404. package/lib/overflow-title/utils/getActualWidthByCanvas.d.ts +3 -0
  405. package/lib/overflow-title/utils/getActualWidthByDom.d.ts +3 -0
  406. package/lib/pagination/index.d.ts +92 -96
  407. package/lib/pagination/index.js +1 -1
  408. package/lib/pagination/pagination.css +54 -28
  409. package/lib/pagination/pagination.d.ts +19 -9
  410. package/lib/pagination/pagination.less +59 -30
  411. package/lib/pagination/pagination.variable.css +86 -32
  412. package/lib/pagination/type.d.ts +1 -1
  413. package/lib/pagination/use-limit.d.ts +3 -1
  414. package/lib/pagination/use-total.d.ts +3 -1
  415. package/lib/plugin-popover/index.d.ts +27 -0
  416. package/lib/plugin-popover/index.js +1 -0
  417. package/lib/plugins/index.d.ts +1 -0
  418. package/lib/plugins/index.js +1 -0
  419. package/lib/pop-confirm/index.d.ts +249 -0
  420. package/lib/pop-confirm/index.js +1 -0
  421. package/lib/pop-confirm/pop-confirm.css +28 -0
  422. package/lib/pop-confirm/pop-confirm.d.ts +95 -0
  423. package/lib/pop-confirm/pop-confirm.less +34 -0
  424. package/lib/pop-confirm/pop-confirm.variable.css +150 -0
  425. package/lib/pop-confirm/props.d.ts +67 -0
  426. package/lib/popover/arrow.d.ts +2 -0
  427. package/lib/popover/const.d.ts +16 -0
  428. package/lib/popover/content.d.ts +43 -0
  429. package/lib/popover/index.d.ts +453 -148
  430. package/lib/popover/index.js +1 -1
  431. package/lib/popover/plugin-popover.d.ts +12 -0
  432. package/lib/popover/popover.css +10 -50
  433. package/lib/popover/popover.d.ts +212 -48
  434. package/lib/popover/popover.less +19 -66
  435. package/lib/popover/popover.variable.css +42 -54
  436. package/lib/popover/props.d.ts +103 -35
  437. package/lib/popover/reference.d.ts +2 -0
  438. package/lib/popover/root.d.ts +27 -0
  439. package/lib/popover/use-floating.d.ts +34 -0
  440. package/lib/popover/use-platform.d.ts +30 -0
  441. package/lib/popover/use-popover-init.d.ts +23 -0
  442. package/lib/popover/use-popper-id.d.ts +6 -0
  443. package/lib/popover/utils.d.ts +8 -0
  444. package/lib/popover2/index.d.ts +89 -0
  445. package/lib/popover2/index.js +1 -0
  446. package/lib/popover2/popover.d.ts +2 -0
  447. package/lib/preset.d.ts +264 -2
  448. package/lib/preset.js +1 -0
  449. package/lib/process/index.d.ts +66 -52
  450. package/lib/process/index.js +2 -1
  451. package/lib/process/index.js.LICENSE.txt +1 -0
  452. package/lib/process/process.css +22 -0
  453. package/lib/process/process.d.ts +4 -4
  454. package/lib/process/process.less +30 -2
  455. package/lib/process/process.variable.css +54 -4
  456. package/lib/progress/index.d.ts +92 -119
  457. package/lib/progress/index.js +1 -1
  458. package/lib/progress/progress.css +51 -0
  459. package/lib/progress/progress.d.ts +14 -14
  460. package/lib/progress/progress.variable.css +87 -8
  461. package/lib/radio/index.d.ts +81 -42
  462. package/lib/radio/index.js +1 -1
  463. package/lib/radio/radio-button.d.ts +5 -7
  464. package/lib/radio/radio-group.d.ts +28 -2
  465. package/lib/radio/radio.css +136 -65
  466. package/lib/radio/radio.d.ts +2 -2
  467. package/lib/radio/radio.less +262 -173
  468. package/lib/radio/radio.variable.css +171 -72
  469. package/lib/radio/type.d.ts +1 -1
  470. package/lib/rate/index.d.ts +78 -28
  471. package/lib/rate/index.js +1 -1
  472. package/lib/rate/rate.d.ts +14 -3
  473. package/lib/rate/star.d.ts +2 -2
  474. package/lib/resize-layout/index.d.ts +77 -78
  475. package/lib/resize-layout/index.js +1 -1
  476. package/lib/resize-layout/resize-layout.css +6 -15
  477. package/lib/resize-layout/resize-layout.d.ts +8 -8
  478. package/lib/resize-layout/resize-layout.less +10 -19
  479. package/lib/resize-layout/resize-layout.variable.css +38 -19
  480. package/lib/search-select/index.d.ts +892 -0
  481. package/lib/search-select/index.js +2 -0
  482. package/lib/search-select/index.js.LICENSE.txt +1 -0
  483. package/lib/search-select/input.d.ts +101 -0
  484. package/lib/search-select/menu.d.ts +77 -0
  485. package/lib/search-select/search-select.css +427 -0
  486. package/lib/search-select/search-select.d.ts +361 -0
  487. package/lib/search-select/search-select.less +384 -0
  488. package/lib/search-select/search-select.variable.css +549 -0
  489. package/lib/search-select/selected.d.ts +155 -0
  490. package/lib/search-select/utils.d.ts +88 -0
  491. package/lib/select/common.d.ts +5 -12
  492. package/lib/select/index.d.ts +1697 -760
  493. package/lib/select/index.js +2 -1
  494. package/lib/select/index.js.LICENSE.txt +1 -0
  495. package/lib/select/option.d.ts +22 -6
  496. package/lib/select/optionGroup.d.ts +3 -3
  497. package/lib/select/select.css +209 -113
  498. package/lib/select/select.d.ts +747 -162
  499. package/lib/select/select.less +342 -197
  500. package/lib/select/select.variable.css +241 -117
  501. package/lib/select/selectTagInput.d.ts +94 -0
  502. package/lib/select/type.d.ts +25 -15
  503. package/lib/shared/dom.d.ts +3 -0
  504. package/lib/shared/helper.d.ts +9 -0
  505. package/lib/shared/hooks/use-form-item.d.ts +2 -0
  506. package/lib/shared/hooks/use-form.d.ts +2 -0
  507. package/lib/shared/index.d.ts +33 -8
  508. package/lib/shared/index.js +1 -1
  509. package/lib/shared/mask-manager.d.ts +21 -7
  510. package/lib/shared/pop-manager.d.ts +16 -5
  511. package/lib/shared/popover.d.ts +7 -3
  512. package/lib/shared/token.d.ts +4 -0
  513. package/lib/shared/utils.d.ts +19 -0
  514. package/lib/shared/vue-types.d.ts +116 -9
  515. package/lib/sideslider/index.d.ts +294 -183
  516. package/lib/sideslider/index.js +2 -1
  517. package/lib/sideslider/index.js.LICENSE.txt +1 -0
  518. package/lib/sideslider/sideslider.css +58 -11
  519. package/lib/sideslider/sideslider.d.ts +136 -65
  520. package/lib/sideslider/sideslider.less +75 -14
  521. package/lib/sideslider/sideslider.variable.css +90 -15
  522. package/lib/slider/index.d.ts +384 -1
  523. package/lib/slider/index.js +2 -1
  524. package/lib/slider/index.js.LICENSE.txt +1 -0
  525. package/lib/slider/slider-button.d.ts +3 -2
  526. package/lib/slider/slider.d.ts +7 -7
  527. package/lib/slider/slider.variable.css +32 -4
  528. package/lib/steps/index.d.ts +102 -96
  529. package/lib/steps/index.js +2 -1
  530. package/lib/steps/index.js.LICENSE.txt +1 -0
  531. package/lib/steps/steps.css +15 -3
  532. package/lib/steps/steps.d.ts +34 -34
  533. package/lib/steps/steps.less +24 -3
  534. package/lib/steps/steps.variable.css +47 -7
  535. package/lib/styles/index.d.ts +10 -1
  536. package/lib/styles/mixins/clearfix.css +8 -0
  537. package/lib/styles/mixins/clearfix.less +10 -0
  538. package/lib/styles/mixins/clearfix.variable.css +8 -0
  539. package/lib/styles/mixins/mixins.css +51 -0
  540. package/lib/styles/mixins/mixins.less +2 -0
  541. package/lib/styles/mixins/mixins.variable.css +51 -0
  542. package/lib/styles/mixins/popper.css +1 -1
  543. package/lib/styles/mixins/popper.less +12 -11
  544. package/lib/styles/mixins/popper.variable.css +123 -1
  545. package/lib/styles/mixins/scroll.css +17 -0
  546. package/lib/styles/mixins/scroll.less +22 -0
  547. package/lib/styles/mixins/scroll.variable.css +139 -0
  548. package/lib/styles/reset.css +36 -0
  549. package/lib/styles/reset.less +26 -2
  550. package/lib/styles/reset.variable.css +36 -0
  551. package/lib/styles/themes/themes.less +42 -4
  552. package/lib/swiper/index.d.ts +60 -44
  553. package/lib/swiper/swiper.d.ts +1 -1
  554. package/lib/switcher/index.d.ts +99 -92
  555. package/lib/switcher/index.js +1 -1
  556. package/lib/switcher/switcher.css +57 -6
  557. package/lib/switcher/switcher.d.ts +20 -14
  558. package/lib/switcher/switcher.less +3 -26
  559. package/lib/switcher/switcher.variable.css +106 -27
  560. package/lib/tab/index.d.ts +170 -134
  561. package/lib/tab/index.js +1 -1
  562. package/lib/tab/props.d.ts +93 -41
  563. package/lib/tab/tab-nav.d.ts +51 -15
  564. package/lib/tab/tab-panel.d.ts +16 -9
  565. package/lib/tab/tab.css +151 -55
  566. package/lib/tab/tab.d.ts +44 -23
  567. package/lib/tab/tab.less +179 -86
  568. package/lib/tab/tab.variable.css +183 -59
  569. package/lib/table/cache.d.ts +6 -0
  570. package/lib/table/components/index.d.ts +3 -0
  571. package/lib/table/components/table-cell.d.ts +51 -0
  572. package/lib/table/components/table-column.d.ts +305 -0
  573. package/lib/table/components/table-row.d.ts +2 -0
  574. package/lib/table/const.d.ts +128 -1
  575. package/lib/table/index.d.ts +1364 -99
  576. package/lib/table/index.js +1 -1
  577. package/lib/table/plugins/body-empty.d.ts +36 -0
  578. package/lib/table/plugins/col-group.d.ts +38 -0
  579. package/lib/table/plugins/common.d.ts +6 -0
  580. package/lib/table/plugins/head-filter.css +30 -14
  581. package/lib/table/plugins/head-filter.d.ts +26 -0
  582. package/lib/table/plugins/head-filter.less +79 -52
  583. package/lib/table/plugins/head-filter.variable.css +62 -18
  584. package/lib/table/plugins/head-sort.css +7 -3
  585. package/lib/table/plugins/head-sort.d.ts +29 -0
  586. package/lib/table/plugins/head-sort.less +8 -4
  587. package/lib/table/plugins/head-sort.variable.css +39 -7
  588. package/lib/table/plugins/index.d.ts +5 -0
  589. package/lib/table/plugins/settings.css +147 -0
  590. package/lib/table/plugins/settings.d.ts +37 -0
  591. package/lib/table/plugins/settings.less +181 -0
  592. package/lib/table/plugins/settings.variable.css +269 -0
  593. package/lib/table/plugins/use-active-columns.d.ts +16 -0
  594. package/lib/table/plugins/use-column-resize.d.ts +15 -0
  595. package/lib/table/plugins/use-fixed-column.d.ts +26 -0
  596. package/lib/table/plugins/use-pagination.d.ts +16 -0
  597. package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
  598. package/lib/table/props.d.ts +367 -19
  599. package/lib/table/render.d.ts +46 -18
  600. package/lib/table/table.css +1181 -33
  601. package/lib/table/table.d.ts +270 -19
  602. package/lib/table/table.less +314 -18
  603. package/lib/table/table.variable.css +1213 -37
  604. package/lib/table/use-column.d.ts +12 -0
  605. package/lib/table/use-common.d.ts +113 -0
  606. package/lib/table/utils.d.ts +52 -12
  607. package/lib/table-column/index.d.ts +797 -0
  608. package/lib/table-column/index.js +1 -0
  609. package/lib/tag/index.d.ts +89 -71
  610. package/lib/tag/index.js +1 -1
  611. package/lib/tag/tag.css +46 -13
  612. package/lib/tag/tag.d.ts +17 -13
  613. package/lib/tag/tag.less +46 -10
  614. package/lib/tag/tag.variable.css +78 -17
  615. package/lib/tag-input/common.d.ts +13 -1
  616. package/lib/tag-input/index.d.ts +1194 -1
  617. package/lib/tag-input/index.js +1 -1
  618. package/lib/tag-input/list-tag-render.d.ts +2 -5
  619. package/lib/tag-input/tag-input.css +23 -26
  620. package/lib/tag-input/tag-input.d.ts +303 -44
  621. package/lib/tag-input/tag-input.less +103 -105
  622. package/lib/tag-input/tag-input.variable.css +55 -30
  623. package/lib/tag-input/tag-props.d.ts +142 -8
  624. package/lib/tag-input/tag-render.d.ts +31 -5
  625. package/lib/time-picker/index.d.ts +833 -0
  626. package/lib/time-picker/index.js +1 -0
  627. package/lib/time-picker/time-picker.css +215 -0
  628. package/lib/time-picker/time-picker.less +260 -0
  629. package/lib/time-picker/time-picker.variable.css +337 -0
  630. package/lib/timeline/index.d.ts +61 -32
  631. package/lib/timeline/index.js +1 -1
  632. package/lib/timeline/timeline.css +16 -9
  633. package/lib/timeline/timeline.d.ts +3 -3
  634. package/lib/timeline/timeline.less +22 -9
  635. package/lib/timeline/timeline.variable.css +48 -13
  636. package/lib/transfer/const.d.ts +5 -0
  637. package/lib/transfer/index.d.ts +273 -191
  638. package/lib/transfer/index.js +1 -1
  639. package/lib/transfer/props.d.ts +59 -0
  640. package/lib/transfer/transfer.css +153 -92
  641. package/lib/transfer/transfer.d.ts +102 -96
  642. package/lib/transfer/transfer.less +142 -112
  643. package/lib/transfer/transfer.variable.css +191 -102
  644. package/lib/tree/constant.d.ts +63 -0
  645. package/lib/tree/index.d.ts +387 -107
  646. package/lib/tree/index.js +1 -1
  647. package/lib/tree/props.d.ts +138 -3
  648. package/lib/tree/tree.css +181 -9
  649. package/lib/tree/tree.d.ts +185 -21
  650. package/lib/tree/tree.less +54 -3
  651. package/lib/tree/tree.variable.css +213 -13
  652. package/lib/tree/use-empty.d.ts +6 -0
  653. package/lib/tree/use-node-action.d.ts +12 -0
  654. package/lib/tree/use-node-async.d.ts +5 -0
  655. package/lib/tree/use-node-attribute.d.ts +42 -0
  656. package/lib/tree/use-node-drag.d.ts +3 -0
  657. package/lib/tree/use-search.d.ts +11 -0
  658. package/lib/tree/use-tree-init.d.ts +15 -0
  659. package/lib/tree/util.d.ts +4 -6
  660. package/lib/upload/index.d.ts +509 -0
  661. package/lib/upload/index.js +2 -0
  662. package/lib/upload/index.js.LICENSE.txt +1 -0
  663. package/lib/upload/props.d.ts +111 -0
  664. package/lib/upload/upload-list.d.ts +47 -0
  665. package/lib/upload/upload-trigger.d.ts +51 -0
  666. package/lib/upload/upload.css +427 -0
  667. package/lib/upload/upload.d.ts +246 -0
  668. package/lib/upload/upload.less +466 -0
  669. package/lib/upload/upload.type.d.ts +78 -0
  670. package/lib/upload/upload.variable.css +549 -0
  671. package/lib/upload/use-ajax-upload.d.ts +3 -0
  672. package/lib/upload/use-file-handler.d.ts +21 -0
  673. package/lib/virtual-render/index.d.ts +117 -144
  674. package/lib/virtual-render/index.js +1 -1
  675. package/lib/virtual-render/props.d.ts +25 -1
  676. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  677. package/lib/virtual-render/v-virtual-render.d.ts +0 -1
  678. package/lib/virtual-render/virtual-render.css +17 -17
  679. package/lib/virtual-render/virtual-render.d.ts +50 -4
  680. package/lib/virtual-render/virtual-render.less +2 -23
  681. package/lib/virtual-render/virtual-render.variable.css +139 -17
  682. package/lib/volar.components.d.ts +102 -0
  683. package/package.json +64 -43
  684. package/LICENSE.txt +0 -22
  685. package/lib/form/common.d.ts +0 -3
  686. package/lib/use-form.d.ts +0 -3
@@ -2,140 +2,43 @@ declare const BkVirtualRender: {
2
2
  new (...args: any[]): {
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
- $props: Partial<{
6
- width: string | number;
7
- height: string | number;
8
- list: unknown[];
9
- enabled: boolean;
10
- lineHeight: any;
11
- minHeight: number;
12
- className: string | {
13
- [key: string]: any;
14
- };
15
- contentClassName: string | {
16
- [key: string]: any;
17
- };
18
- contentStyle: {
19
- [key: string]: any;
20
- };
21
- scrollXName: string;
22
- scrollYName: string;
23
- groupItemCount: number;
24
- preloadItemCount: number;
25
- renderAs: string;
26
- contentAs: string;
27
- scrollOffsetTop: number;
28
- scrollPosition: string;
29
- abosuteHeight: string | number;
30
- throttleDelay: number;
31
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
32
- onContentScroll: FunctionConstructor;
33
- list: import("vue-types").VueTypeValidableDef<unknown[]> & {
34
- default: () => unknown[];
35
- } & {
36
- default: () => unknown[];
37
- };
38
- enabled: import("vue-types").VueTypeValidableDef<boolean> & {
39
- default: boolean;
40
- } & {
41
- default: boolean;
42
- };
43
- lineHeight: import("vue-types").VueTypeDef<any> & {
44
- default: any;
45
- };
46
- minHeight: import("vue-types").VueTypeValidableDef<number> & {
47
- default: number;
48
- } & {
49
- default: number;
50
- };
51
- height: import("vue-types").VueTypeDef<string | number> & {
52
- default: string | number;
53
- };
54
- width: import("vue-types").VueTypeDef<string | number> & {
55
- default: string | number;
56
- };
57
- className: import("vue-types").VueTypeDef<string | string[] | {
58
- [key: string]: any;
59
- } | {
5
+ $props: {
6
+ [x: `on${Capitalize<string>}`]: (...args: any[]) => any;
7
+ width?: string | number;
8
+ height?: string | number;
9
+ enabled?: boolean;
10
+ list?: unknown[];
11
+ lineHeight?: any;
12
+ minHeight?: number;
13
+ className?: string | {
60
14
  [key: string]: any;
61
- }[]> & {
62
- default: string | (() => {
63
- [key: string]: any;
64
- }) | (() => string[]) | (() => {
65
- [key: string]: any;
66
- }[]);
67
15
  };
68
- contentClassName: import("vue-types").VueTypeDef<string | string[] | {
16
+ scrollEvent?: boolean;
17
+ contentClassName?: string | {
69
18
  [key: string]: any;
70
- } | {
71
- [key: string]: any;
72
- }[]> & {
73
- default: string | (() => {
74
- [key: string]: any;
75
- }) | (() => string[]) | (() => {
76
- [key: string]: any;
77
- }[]);
78
19
  };
79
- contentStyle: import("vue-types").VueTypeValidableDef<{
20
+ contentStyle?: {
80
21
  [key: string]: any;
81
- }> & {
82
- default: () => {
83
- [key: string]: any;
84
- };
85
- } & {
86
- default: () => {
87
- [key: string]: any;
88
- };
89
- };
90
- scrollXName: import("vue-types").VueTypeValidableDef<string> & {
91
- default: string;
92
- } & {
93
- default: string;
94
22
  };
95
- scrollYName: import("vue-types").VueTypeValidableDef<string> & {
96
- default: string;
97
- } & {
98
- default: string;
99
- };
100
- groupItemCount: import("vue-types").VueTypeValidableDef<number> & {
101
- default: number;
102
- } & {
103
- default: number;
104
- };
105
- preloadItemCount: import("vue-types").VueTypeValidableDef<number> & {
106
- default: number;
107
- } & {
108
- default: number;
109
- };
110
- renderAs: import("vue-types").VueTypeValidableDef<string> & {
111
- default: string;
112
- } & {
113
- default: string;
114
- };
115
- contentAs: import("vue-types").VueTypeValidableDef<string> & {
116
- default: string;
117
- } & {
118
- default: string;
119
- };
120
- scrollOffsetTop: import("vue-types").VueTypeValidableDef<number> & {
121
- default: number;
122
- } & {
123
- default: number;
124
- };
125
- scrollPosition: import("vue-types").VueTypeValidableDef<string> & {
126
- default: string;
127
- } & {
128
- default: string;
129
- };
130
- abosuteHeight: import("vue-types").VueTypeDef<string | number> & {
131
- default: string | number;
132
- };
133
- throttleDelay: import("vue-types").VueTypeValidableDef<number> & {
134
- default: number;
135
- } & {
136
- default: number;
137
- };
138
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "height" | "list" | "enabled" | "lineHeight" | "minHeight" | "className" | "contentClassName" | "contentStyle" | "scrollXName" | "scrollYName" | "groupItemCount" | "preloadItemCount" | "renderAs" | "contentAs" | "scrollOffsetTop" | "scrollPosition" | "abosuteHeight" | "throttleDelay">;
23
+ scrollXName?: string;
24
+ scrollYName?: string;
25
+ groupItemCount?: number;
26
+ preloadItemCount?: number;
27
+ renderAs?: string;
28
+ contentAs?: string;
29
+ scrollOffsetTop?: number;
30
+ scrollPosition?: string;
31
+ abosuteHeight?: string | number;
32
+ throttleDelay?: number;
33
+ rowKey?: string;
34
+ keepAlive?: boolean;
35
+ class?: unknown;
36
+ style?: unknown;
37
+ key?: string | number | symbol;
38
+ ref?: import("vue").VNodeRef;
39
+ ref_for?: boolean;
40
+ ref_key?: string;
41
+ };
139
42
  $attrs: {
140
43
  [x: string]: unknown;
141
44
  };
@@ -143,11 +46,14 @@ declare const BkVirtualRender: {
143
46
  [x: string]: unknown;
144
47
  };
145
48
  $slots: Readonly<{
146
- [name: string]: import("vue").Slot;
49
+ default?: any;
50
+ beforeContent?: any;
51
+ afterContent?: any;
52
+ afterSection?: any;
147
53
  }>;
148
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
149
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
150
- $emit: ((event: string, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
54
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
55
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
56
+ $emit: (event: string, ...args: any[]) => void;
151
57
  $el: any;
152
58
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
153
59
  onContentScroll: FunctionConstructor;
@@ -161,6 +67,11 @@ declare const BkVirtualRender: {
161
67
  } & {
162
68
  default: boolean;
163
69
  };
70
+ scrollEvent: import("vue-types").VueTypeValidableDef<boolean> & {
71
+ default: boolean;
72
+ } & {
73
+ default: boolean;
74
+ };
164
75
  lineHeight: import("vue-types").VueTypeDef<any> & {
165
76
  default: any;
166
77
  };
@@ -256,18 +167,31 @@ declare const BkVirtualRender: {
256
167
  } & {
257
168
  default: number;
258
169
  };
259
- }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
170
+ rowKey: import("vue-types").VueTypeValidableDef<string> & {
171
+ default: string;
172
+ } & {
173
+ default: string;
174
+ };
175
+ keepAlive: import("vue-types").VueTypeValidableDef<boolean> & {
176
+ default: boolean;
177
+ } & {
178
+ default: boolean;
179
+ };
180
+ }>> & {
181
+ [x: `on${Capitalize<string>}`]: (...args: any[]) => any;
182
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
260
183
  [key: string]: any;
261
- }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, {
184
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, {
262
185
  width: string | number;
263
186
  height: string | number;
264
- list: unknown[];
265
187
  enabled: boolean;
188
+ list: unknown[];
266
189
  lineHeight: any;
267
190
  minHeight: number;
268
191
  className: string | {
269
192
  [key: string]: any;
270
193
  };
194
+ scrollEvent: boolean;
271
195
  contentClassName: string | {
272
196
  [key: string]: any;
273
197
  };
@@ -284,7 +208,14 @@ declare const BkVirtualRender: {
284
208
  scrollPosition: string;
285
209
  abosuteHeight: string | number;
286
210
  throttleDelay: number;
287
- }> & {
211
+ rowKey: string;
212
+ keepAlive: boolean;
213
+ }, {}, string, import("vue").SlotsType<{
214
+ default?: any;
215
+ beforeContent?: any;
216
+ afterContent?: any;
217
+ afterSection?: any;
218
+ }>> & {
288
219
  beforeCreate?: (() => void) | (() => void)[];
289
220
  created?: (() => void) | (() => void)[];
290
221
  beforeMount?: (() => void) | (() => void)[];
@@ -299,11 +230,11 @@ declare const BkVirtualRender: {
299
230
  unmounted?: (() => void) | (() => void)[];
300
231
  renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
301
232
  renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
302
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
233
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
303
234
  };
304
235
  $forceUpdate: () => void;
305
236
  $nextTick: typeof import("vue").nextTick;
306
- $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
237
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
307
238
  } & Readonly<import("vue").ExtractPropTypes<{
308
239
  onContentScroll: FunctionConstructor;
309
240
  list: import("vue-types").VueTypeValidableDef<unknown[]> & {
@@ -316,6 +247,11 @@ declare const BkVirtualRender: {
316
247
  } & {
317
248
  default: boolean;
318
249
  };
250
+ scrollEvent: import("vue-types").VueTypeValidableDef<boolean> & {
251
+ default: boolean;
252
+ } & {
253
+ default: boolean;
254
+ };
319
255
  lineHeight: import("vue-types").VueTypeDef<any> & {
320
256
  default: any;
321
257
  };
@@ -411,9 +347,21 @@ declare const BkVirtualRender: {
411
347
  } & {
412
348
  default: number;
413
349
  };
414
- }>> & import("vue").ShallowUnwrapRef<() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
350
+ rowKey: import("vue-types").VueTypeValidableDef<string> & {
351
+ default: string;
352
+ } & {
353
+ default: string;
354
+ };
355
+ keepAlive: import("vue-types").VueTypeValidableDef<boolean> & {
356
+ default: boolean;
357
+ } & {
358
+ default: boolean;
359
+ };
360
+ }>> & {
361
+ [x: `on${Capitalize<string>}`]: (...args: any[]) => any;
362
+ } & import("vue").ShallowUnwrapRef<() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
415
363
  [key: string]: any;
416
- }>> & {} & {} & import("vue").ComponentCustomProperties;
364
+ }>> & {} & import("vue").ComponentCustomProperties & {};
417
365
  __isFragment?: never;
418
366
  __isTeleport?: never;
419
367
  __isSuspense?: never;
@@ -429,6 +377,11 @@ declare const BkVirtualRender: {
429
377
  } & {
430
378
  default: boolean;
431
379
  };
380
+ scrollEvent: import("vue-types").VueTypeValidableDef<boolean> & {
381
+ default: boolean;
382
+ } & {
383
+ default: boolean;
384
+ };
432
385
  lineHeight: import("vue-types").VueTypeDef<any> & {
433
386
  default: any;
434
387
  };
@@ -524,18 +477,31 @@ declare const BkVirtualRender: {
524
477
  } & {
525
478
  default: number;
526
479
  };
527
- }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
480
+ rowKey: import("vue-types").VueTypeValidableDef<string> & {
481
+ default: string;
482
+ } & {
483
+ default: string;
484
+ };
485
+ keepAlive: import("vue-types").VueTypeValidableDef<boolean> & {
486
+ default: boolean;
487
+ } & {
488
+ default: boolean;
489
+ };
490
+ }>> & {
491
+ [x: `on${Capitalize<string>}`]: (...args: any[]) => any;
492
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
528
493
  [key: string]: any;
529
- }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "content-scroll", {
494
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, {
530
495
  width: string | number;
531
496
  height: string | number;
532
- list: unknown[];
533
497
  enabled: boolean;
498
+ list: unknown[];
534
499
  lineHeight: any;
535
500
  minHeight: number;
536
501
  className: string | {
537
502
  [key: string]: any;
538
503
  };
504
+ scrollEvent: boolean;
539
505
  contentClassName: string | {
540
506
  [key: string]: any;
541
507
  };
@@ -552,5 +518,12 @@ declare const BkVirtualRender: {
552
518
  scrollPosition: string;
553
519
  abosuteHeight: string | number;
554
520
  throttleDelay: number;
555
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
521
+ rowKey: string;
522
+ keepAlive: boolean;
523
+ }, {}, string, import("vue").SlotsType<{
524
+ default?: any;
525
+ beforeContent?: any;
526
+ afterContent?: any;
527
+ afterSection?: any;
528
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
556
529
  export default BkVirtualRender;
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("lodash"));else if("function"==typeof define&&define.amd)define(["../shared","vue","lodash"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("lodash")):t(e["../shared"],e.vue,e.lodash);for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,((e,t,o)=>(()=>{"use strict";var n={4212:t=>{t.exports=e},467:e=>{e.exports=o},748:e=>{e.exports=t}},r={};function l(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e](o,o.exports,l),o.exports}l.d=(e,t)=>{for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{l.r(i),l.d(i,{default:()=>g});var e=l(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function o(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,o){if(e){if("string"==typeof e)return t(e,o);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)?t(e,o):void 0}}(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 n(e){return n="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},n(e)}var r=l(748),a={onContentScroll:Function},s=Object.assign({list:e.PropTypes.array.def([]),enabled:e.PropTypes.bool.def(!0),lineHeight:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.func]).def(30),minHeight:e.PropTypes.number.def(30),height:e.PropTypes.oneOfType([e.PropTypes.string.def("100%"),e.PropTypes.number]).def("100%"),width:e.PropTypes.oneOfType([e.PropTypes.string.def("100%"),e.PropTypes.number]).def("100%"),className:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.string),e.PropTypes.object,e.PropTypes.arrayOf(e.PropTypes.object),e.PropTypes.string]).def(""),contentClassName:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.string),e.PropTypes.object,e.PropTypes.arrayOf(e.PropTypes.object),e.PropTypes.string]).def(""),contentStyle:e.PropTypes.object.def({}),scrollXName:e.PropTypes.string.def("bk-scroll-x"),scrollYName:e.PropTypes.string.def("bk-scroll-y"),groupItemCount:e.PropTypes.number.def(1),preloadItemCount:e.PropTypes.number.def(1),renderAs:e.PropTypes.string.def("div"),contentAs:e.PropTypes.string.def("div"),scrollOffsetTop:e.PropTypes.number.def(0),scrollPosition:e.PropTypes.string.def("content"),abosuteHeight:e.PropTypes.oneOfType([e.PropTypes.string.def("auto"),e.PropTypes.number]).def("auto"),throttleDelay:e.PropTypes.number.def(60)},a),u=l(467),c=void 0;function p(e,t,o,n){for(var r=0,l=0,i=0,a=0;r<e;r++){if(l+(a=n(r,[r*o,(r+1)*o]))>t){i=t-l;break}l+=a}return{startIndex:r,height:l,diffHeight:i}}function f(e,t,o,n,r){if(n){var l=n.scrollTop,i=o.scrollTop,a=o.count,s=o.groupItemCount,u=o.startIndex,c=o.endIndex,f=n.offsetHeight,d=0,y=0,v=0;if("number"==typeof e&&(d=Math.floor(l/e),y=Math.ceil(f/e)+d,v=l%e),"function"==typeof e){var m=p(a,l,s,e);d=m.startIndex>0?m.startIndex:0,v=m.diffHeight,y=p(a,f,s,e).startIndex+d+1}l===i&&d===u&&y===c||"function"==typeof t&&t(r,d,y,l,v)}}function d(e,t,o){var n=o.value,r=n.lineHeight,l=void 0===r?30:r,i=n.handleScrollCallback,a=n.pagination,s=void 0===a?{}:a,u=s.startIndex,c=s.endIndex,p=s.groupItemCount,d=s.count;f(l,i,{scrollTop:s.scrollTop,startIndex:u,endIndex:c,groupItemCount:p,count:d},t,e)}var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:60;return(0,u.throttle)((function(e,t,o){return d(e,t,o)}),e)},v=null,m=function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:60;v||(v=y(n)),"function"==typeof v&&v.call(c,e,t,o)};const b={mounted:function(e,t){var o=e.parentNode,n=t.value.throttleDelay;o.addEventListener("scroll",(function(e){m(e,o,t,n)}))},updated:function(e,t){var o=e.parentNode,n=t.value.throttleDelay;m(null,o,t,n)},unbind:function(e){if(e){var t=e.parentNode;if(!t)return;t.removeEventListener("scroll",y)}}},h=(0,r.defineComponent)({name:"VirtualRender",directives:{bkVirtualRender:b},props:s,emits:["content-scroll"],setup:function(e,t){var l=this,i=e.renderAs,a=e.contentAs,s=function(e){return"string"==typeof e?[e]:"object"!==n(e)||Array.isArray(e)?e:[e]};if(!e.enabled)return function(){var o,n,l,u,c,p,f,d,y;return(0,r.h)(i,{class:s(e.className)},[null!==(l=null===(n=(o=t.slots).beforeContent)||void 0===n?void 0:n.call(o))&&void 0!==l?l:"",(0,r.h)(a,{class:s(e.contentClassName),style:e.contentStyle},[null!==(p=null===(c=(u=t.slots).default)||void 0===c?void 0:c.call(u,{data:e.list}))&&void 0!==p?p:""]),null!==(y=null===(d=(f=t.slots).afterContent)||void 0===d?void 0:d.call(f))&&void 0!==y?y:""])};var u=(0,r.ref)(null),c=(0,r.reactive)({startIndex:0,endIndex:0,scrollTop:1,translateY:0,count:0,groupItemCount:e.groupItemCount}),p=function(e,o,n,r,l){c.startIndex=o,c.endIndex=n,c.scrollTop=r,c.translateY=l,t.emit("content-scroll",[e,c])};(0,r.onMounted)((function(){(0,r.nextTick)((function(){m(e.list),b()}))})),(0,r.watch)((function(){return e.list}),(function(){d(),b()}),{deep:!0}),(0,r.watch)((function(){return e.lineHeight}),(function(){d(),b()}));var d=function(){m(e.list)},y=(0,r.ref)(0),v=(0,r.ref)(0),m=function(t){if(y.value=Math.ceil((t||[]).length/e.groupItemCount),c.count=y.value,c.startIndex=0,c.endIndex=0,c.translateY=0,c.scrollTop=0,"string"==typeof e.abosuteHeight&&"auto"===e.abosuteHeight)if("function"==typeof e.lineHeight){v.value=0;for(var o=0,n=0;n<y.value;n++){var r=e.lineHeight.call(l,n,t.slice(n*e.groupItemCount,e.groupItemCount));o+="number"==typeof r?r:0}v.value=o}else v.value=e.lineHeight*y.value;else v.value=e.abosuteHeight},b=function(){var t,o=null===(t=u.value)||void 0===t?void 0:t.parentNode;f(e.lineHeight,p,c,o,null)},h=(0,r.computed)((function(){return(e.list||[]).map((function(e,t){return Object.assign(Object.assign({},e),{$index:t})}))})),g=(0,r.computed)((function(){return h.value.slice(c.startIndex*e.groupItemCount,(c.endIndex+e.preloadItemCount)*e.groupItemCount)})),T=(0,r.computed)((function(){return"content"===e.scrollPosition?{top:"".concat(c.scrollTop+e.scrollOffsetTop,"px"),transform:"translateY(-".concat(c.translateY,"px)")}:{}})),P=(0,r.computed)((function(){return Object.assign({height:"number"==typeof e.height?"".concat(e.height,"px"):e.height,width:"number"==typeof e.width?"".concat(e.width,"px"):e.width,display:"inline-block"},"container"===e.scrollPosition?T.value:{})})),x=(0,r.computed)((function(){var t="number"==typeof e.abosuteHeight&&0===e.abosuteHeight;return{height:"".concat(v.value<e.minHeight?e.minHeight:v.value,"px"),display:t?"none":"block"}})),I=(0,r.computed)((function(){return["bk-virtual-render",e.scrollXName,e.scrollYName].concat(o(s(e.className)),["container"===e.scrollPosition?"bk-virtual-content":""])})),C=(0,r.computed)((function(){return["content"===e.scrollPosition?"bk-virtual-content":""].concat(o(s(e.contentClassName)))})),O=(0,r.resolveDirective)("bkVirtualRender"),j={lineHeight:e.lineHeight,handleScrollCallback:p,pagination:c,throttleDelay:e.throttleDelay};return function(){var o,n,l,s,c,p,f,d,y;return(0,r.h)(i||"div",{ref:u,class:I.value,style:P.value},[null!==(l=null===(n=(o=t.slots).beforeContent)||void 0===n?void 0:n.call(o))&&void 0!==l?l:"",(0,r.withDirectives)((0,r.h)(a||"div",{class:C.value,style:Object.assign(Object.assign({},T.value),e.contentStyle)},[null!==(p=null===(c=(s=t.slots).default)||void 0===c?void 0:c.call(s,{data:g.value}))&&void 0!==p?p:""]),[[O,j]]),null!==(y=null===(d=(f=t.slots).afterContent)||void 0===d?void 0:d.call(f))&&void 0!==y?y:"",(0,r.h)("div",{class:["bk-virtual-section"],style:x.value})])}}}),g=(0,e.withInstall)(h)})(),i})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("lodash"));else if("function"==typeof define&&define.amd)define(["../shared","vue","lodash"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("lodash")):t(e["../shared"],e.vue,e.lodash);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t,o)=>(()=>{"use strict";var r={4212:t=>{t.exports=e},467:e=>{e.exports=o},748:e=>{e.exports=t}},n={};function l(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e](o,o.exports,l),o.exports}l.d=(e,t)=>{for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{l.r(s),l.d(s,{default:()=>y});var e=l(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function o(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,o){if(e){if("string"==typeof e)return t(e,o);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,o):void 0}}(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 r(e){return r="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},r(e)}var n=l(748),i={onContentScroll:Function},a=Object.assign({list:e.PropTypes.array.def([]),enabled:e.PropTypes.bool.def(!0),scrollEvent:e.PropTypes.bool.def(!1),lineHeight:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.func]).def(30),minHeight:e.PropTypes.number.def(30),height:e.PropTypes.oneOfType([e.PropTypes.string.def("100%"),e.PropTypes.number]).def("100%"),width:e.PropTypes.oneOfType([e.PropTypes.string.def("100%"),e.PropTypes.number]).def("100%"),className:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.string),e.PropTypes.object,e.PropTypes.arrayOf(e.PropTypes.object),e.PropTypes.string]).def(""),contentClassName:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.string),e.PropTypes.object,e.PropTypes.arrayOf(e.PropTypes.object),e.PropTypes.string]).def(""),contentStyle:e.PropTypes.object.def({}),scrollXName:e.PropTypes.string.def((0,e.resolveClassName)("F-scroll-x")),scrollYName:e.PropTypes.string.def((0,e.resolveClassName)("F-scroll-y")),groupItemCount:e.PropTypes.number.def(1),preloadItemCount:e.PropTypes.number.def(1),renderAs:e.PropTypes.string.def("div"),contentAs:e.PropTypes.string.def("div"),scrollOffsetTop:e.PropTypes.number.def(0),scrollPosition:e.PropTypes.string.def("content"),abosuteHeight:e.PropTypes.oneOfType([e.PropTypes.string.def("auto"),e.PropTypes.number]).def("auto"),throttleDelay:e.PropTypes.number.def(60),rowKey:e.PropTypes.string.def(void 0),keepAlive:e.PropTypes.bool.def(!1)},i),u=l(467);function c(e,t,o,r){for(var n=0,l=0,s=0,i=0;n<e;n++){if(l+(i=r(n,[n*o,(n+1)*o,"virtual"]))>t){s=t-l;break}l+=i}return{startIndex:n,height:l,diffHeight:s}}function p(e,t,o,r,n){if(r){var l=r.scrollTop,s=r.scrollLeft,i=o.scrollTop,a=o.count,u=o.groupItemCount,p=o.startIndex,f=o.endIndex,d=o.scrollLeft,v=r.offsetHeight,y=0,h=0,m=0;if("number"==typeof e&&(y=Math.floor(l/e),h=Math.ceil(v/e)+y,m=l%e),"function"==typeof e){var g=c(a,l,u,e);y=g.startIndex>0?g.startIndex:0,m=g.diffHeight,h=c(a,v,u,e).startIndex+y+1}if(l!==i||y!==p||h!==f||d!==s){var b=r.scrollHeight-r.offsetHeight-r.scrollTop;"function"==typeof t&&t(n,y,h,l,m,s,{bottom:b>=0?b:0})}}}var f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:60;return(0,u.throttle)((function(e,t,o){return function(e,t,o){var r=o.value,n=r.lineHeight,l=void 0===n?30:n,s=r.handleScrollCallback,i=r.pagination,a=void 0===i?{}:i;if(r.onlyScroll){var u=t.scrollTop,c=t.scrollLeft,f=t.scrollHeight-t.offsetHeight-t.scrollTop;s(e,null,null,u,u,c,{bottom:f>=0?f:0})}else{var d=a.startIndex,v=a.endIndex,y=a.groupItemCount,h=a.count;p(l,s,{scrollTop:a.scrollTop,startIndex:d,endIndex:v,groupItemCount:y,count:h,scrollLeft:a.scrollLeft},t,e)}}(e,t,o)}),e)};const d={mounted:function(e,t){var o=e.parentNode,r=t.value.throttleDelay;o.addEventListener("scroll",(function(e){!function(e,t,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:60;Reflect.apply(f(r),void 0,[e,t,o])}(e,o,t,r)}))},unbind:function(e){if(e){var t=e.parentNode;if(!t)return;t.removeEventListener("scroll",f)}}},v=(0,n.defineComponent)({name:"VirtualRender",directives:{bkVirtualRender:d},props:a,emits:["content-scroll"],slots:Object,setup:function(t,l){var s=this,i=t.renderAs,a=t.contentAs,u=function(e){return"string"==typeof e?[e]:"object"!==r(e)||Array.isArray(e)?e:[e]};if(!t.enabled){var c=function(e,t){var o=e.renderAs,r=e.contentAs,l=(0,n.resolveDirective)("bkVirtualRender"),s={lineHeight:e.lineHeight,handleScrollCallback:function(e,o,r,n,l,s,i){t.emit("content-scroll",[e,{translateY:l,translateX:s,pos:i}])},pagination:{},throttleDelay:e.throttleDelay,onlyScroll:e.scrollEvent},i=(0,n.ref)(null);return t.expose({scrollTo:function(e){var t=e.left,o=void 0===t?0:t,r=e.top,n=void 0===r?0:r;i.value.scrollTo(o,n)}}),{rendAsTag:function(){var a,u,c,p,f,d,v,y,h,m,g,b;return(0,n.h)(o,{class:e.className,ref:i},[null!==(c=null===(u=(a=t.slots).beforeContent)||void 0===u?void 0:u.call(a))&&void 0!==c?c:"",(0,n.withDirectives)((0,n.h)(r,{class:e.contentClassName,style:e.contentStyle},[null!==(d=null===(f=(p=t.slots).default)||void 0===f?void 0:f.call(p,{data:e.list}))&&void 0!==d?d:""]),[[l,s]]),null!==(h=null===(y=(v=t.slots).afterContent)||void 0===y?void 0:y.call(v))&&void 0!==h?h:"",null!==(b=null===(g=(m=t.slots).afterSection)||void 0===g?void 0:g.call(m))&&void 0!==b?b:""])}}}(t,l);return c.rendAsTag}var f=(0,n.ref)(null),d=(0,n.reactive)({startIndex:0,endIndex:0,scrollTop:1,scrollLeft:0,translateY:0,translateX:0,count:0,pos:{},groupItemCount:t.groupItemCount}),v=function(e,t,o,r,n,s,i){d.startIndex=t,d.endIndex=o,d.scrollTop=r,d.translateY=n,d.translateX=s,d.scrollLeft=s,d.pos=i,l.emit("content-scroll",[e,d])};(0,n.onMounted)((function(){(0,n.nextTick)((function(){g(t.list),b()}))})),(0,n.watch)((function(){return t.list}),(function(){var e;e={left:d.scrollLeft,top:d.scrollTop},y(),b(),t.keepAlive&&A(e)}),{deep:!0}),(0,n.watch)((function(){return t.lineHeight}),(function(){y(),b()}));var y=function(){g(t.list)},h=(0,n.ref)(0),m=(0,n.ref)(0),g=function(e){if(h.value=Math.ceil((e||[]).length/t.groupItemCount),d.count=h.value,d.startIndex=0,d.endIndex=0,d.translateY=0,d.scrollTop=0,"string"==typeof t.abosuteHeight&&"auto"===t.abosuteHeight)if("function"==typeof t.lineHeight){m.value=0;for(var o=0,r=0;r<h.value;r++){var n=t.lineHeight.call(s,r,e.slice(r*t.groupItemCount,t.groupItemCount));o+="number"==typeof n?n:0}m.value=o}else m.value=t.lineHeight*h.value;else m.value=t.abosuteHeight},b=function(){var e,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{left:0,top:0},r=null===(e=f.value)||void 0===e?void 0:e.parentNode;p(t.lineHeight,v,d,r,null),o&&f.value&&A(o)},T=(0,n.computed)((function(){return void 0!==t.rowKey?t.list:(t.list||[]).map((function(e,t){return Object.assign(Object.assign({},e),{$index:t})}))})),P=(0,n.computed)((function(){return T.value.slice(d.startIndex*t.groupItemCount,(d.endIndex+t.preloadItemCount)*t.groupItemCount)})),x=(0,n.computed)((function(){return"content"===t.scrollPosition?{top:"".concat(d.scrollTop+t.scrollOffsetTop,"px"),transform:"translateY(-".concat(d.translateY,"px)")}:{}})),I=(0,n.computed)((function(){return Object.assign({height:"number"==typeof t.height?"".concat(t.height,"px"):t.height,width:"number"==typeof t.width?"".concat(t.width,"px"):t.width,display:"inline-block"},"container"===t.scrollPosition?x.value:{})})),C=(0,n.computed)((function(){var e="number"==typeof t.abosuteHeight&&0===t.abosuteHeight;return{height:"".concat(m.value<t.minHeight?t.minHeight:m.value,"px"),display:e?"none":"block"}})),H=(0,n.computed)((function(){return[(0,e.resolveClassName)("virtual-render"),t.scrollXName,t.scrollYName].concat(o(u(t.className)),["container"===t.scrollPosition?(0,e.resolveClassName)("virtual-content"):""])})),O=(0,n.computed)((function(){return["content"===t.scrollPosition?(0,e.resolveClassName)("virtual-content"):""].concat(o(u(t.contentClassName)))})),S=(0,n.resolveDirective)("bkVirtualRender"),j={lineHeight:t.lineHeight,handleScrollCallback:v,pagination:d,throttleDelay:t.throttleDelay},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{left:0,top:0},t=e.left,o=e.top;f.value.scrollTo(t,o)};return l.expose({reset:function(){y(),b()},scrollTo:A}),function(){var o,r,s,u,c,p,d,v,y,h,m,g;return(0,n.h)(i||"div",{ref:f,class:H.value,style:I.value},[null!==(s=null===(r=(o=l.slots).beforeContent)||void 0===r?void 0:r.call(o))&&void 0!==s?s:"",(0,n.withDirectives)((0,n.h)(a||"div",{class:O.value,style:Object.assign(Object.assign({},x.value),t.contentStyle)},[null!==(p=null===(c=(u=l.slots).default)||void 0===c?void 0:c.call(u,{data:P.value}))&&void 0!==p?p:""]),[[S,j]]),null!==(y=null===(v=(d=l.slots).afterContent)||void 0===v?void 0:v.call(d))&&void 0!==y?y:"",(0,n.h)("div",{class:[(0,e.resolveClassName)("virtual-section")],style:C.value}),null!==(g=null===(m=(h=l.slots).afterSection)||void 0===m?void 0:m.call(h))&&void 0!==g?g:""])}}}),y=(0,e.withInstall)(v)})(),s})()));
@@ -19,6 +19,16 @@ export declare const virtualRenderProps: {
19
19
  } & {
20
20
  default: boolean;
21
21
  };
22
+ /**
23
+ * 是否启用内置的Scroll Listener
24
+ * 当启用虚拟滚动时(enabled = true),滚动监听为内置生效
25
+ * 只有当(enabled = false)时此配置项才生效
26
+ */
27
+ scrollEvent: import("vue-types").VueTypeValidableDef<boolean> & {
28
+ default: boolean;
29
+ } & {
30
+ default: boolean;
31
+ };
22
32
  /**
23
33
  * 每行数据高度
24
34
  * 默认为数值类型,默认高度 30px
@@ -153,5 +163,19 @@ export declare const virtualRenderProps: {
153
163
  } & {
154
164
  default: number;
155
165
  };
166
+ rowKey: import("vue-types").VueTypeValidableDef<string> & {
167
+ default: string;
168
+ } & {
169
+ default: string;
170
+ };
171
+ /**
172
+ * 数据改变时是否保持之前的状态
173
+ * 保持滚动条位置、当前渲染区间
174
+ */
175
+ keepAlive: import("vue-types").VueTypeValidableDef<boolean> & {
176
+ default: boolean;
177
+ } & {
178
+ default: boolean;
179
+ };
156
180
  };
157
- export declare type VirtualRenderProps = Readonly<ExtractPropTypes<typeof virtualRenderProps>>;
181
+ export type VirtualRenderProps = Readonly<ExtractPropTypes<typeof virtualRenderProps>>;
@@ -0,0 +1,7 @@
1
+ import { VirtualRenderProps } from './props';
2
+ declare const _default: (props: VirtualRenderProps, ctx: any) => {
3
+ rendAsTag: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
4
+ [key: string]: any;
5
+ }>;
6
+ };
7
+ export default _default;
@@ -1,7 +1,6 @@
1
1
  export declare function computedVirtualIndex(lineHeight: any, callback: any, pagination: any, el: any, event: any): void;
2
2
  declare const _default: {
3
3
  mounted(el: any, binding: any): void;
4
- updated(el: any, binding: any): void;
5
4
  unbind(el: any): void;
6
5
  };
7
6
  export default _default;
@@ -1,3 +1,20 @@
1
+ .bk-F-scroll-x {
2
+ overflow-x: auto;
3
+ scrollbar-color: #a0a0a0 transparent;
4
+ scrollbar-width: thin;
5
+ }
6
+ .bk-F-scroll-x::-webkit-scrollbar {
7
+ height: 6px;
8
+ }
9
+ .bk-F-scroll-y {
10
+ overflow-y: auto;
11
+ }
12
+ .bk-F-scroll-y::-webkit-scrollbar {
13
+ width: 4px;
14
+ }
15
+ .bk-F-scroll-y::-webkit-scrollbar-thumb {
16
+ border-radius: 4px;
17
+ }
1
18
  .bk-virtual-render {
2
19
  position: relative;
3
20
  }
@@ -14,20 +31,3 @@
14
31
  width: 1px;
15
32
  background: transparent;
16
33
  }
17
- .bk-virtual-render.bk-scroll-x {
18
- overflow-x: auto;
19
- scrollbar-color: #a0a0a0 transparent;
20
- scrollbar-width: thin;
21
- }
22
- .bk-virtual-render.bk-scroll-x::-webkit-scrollbar {
23
- height: 6px;
24
- }
25
- .bk-virtual-render.bk-scroll-y {
26
- overflow-y: auto;
27
- }
28
- .bk-virtual-render.bk-scroll-y::-webkit-scrollbar {
29
- width: 4px;
30
- }
31
- .bk-virtual-render.bk-scroll-y::-webkit-scrollbar-thumb {
32
- border-radius: 4px;
33
- }
@@ -1,3 +1,9 @@
1
+ /**
2
+ * @file virtual-render
3
+ *
4
+ * Copyright © 2012-2019 Tencent BlueKing. All Rights Reserved. 蓝鲸智云 版权所有
5
+ */
6
+ import { SlotsType } from 'vue';
1
7
  declare const _default: import("vue").DefineComponent<{
2
8
  onContentScroll: FunctionConstructor;
3
9
  list: import("vue-types").VueTypeValidableDef<unknown[]> & {
@@ -10,6 +16,11 @@ declare const _default: import("vue").DefineComponent<{
10
16
  } & {
11
17
  default: boolean;
12
18
  };
19
+ scrollEvent: import("vue-types").VueTypeValidableDef<boolean> & {
20
+ default: boolean;
21
+ } & {
22
+ default: boolean;
23
+ };
13
24
  lineHeight: import("vue-types").VueTypeDef<any> & {
14
25
  default: any;
15
26
  };
@@ -105,9 +116,19 @@ declare const _default: import("vue").DefineComponent<{
105
116
  } & {
106
117
  default: number;
107
118
  };
119
+ rowKey: import("vue-types").VueTypeValidableDef<string> & {
120
+ default: string;
121
+ } & {
122
+ default: string;
123
+ };
124
+ keepAlive: import("vue-types").VueTypeValidableDef<boolean> & {
125
+ default: boolean;
126
+ } & {
127
+ default: boolean;
128
+ };
108
129
  }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
109
130
  [key: string]: any;
110
- }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "content-scroll", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
131
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
111
132
  onContentScroll: FunctionConstructor;
112
133
  list: import("vue-types").VueTypeValidableDef<unknown[]> & {
113
134
  default: () => unknown[];
@@ -119,6 +140,11 @@ declare const _default: import("vue").DefineComponent<{
119
140
  } & {
120
141
  default: boolean;
121
142
  };
143
+ scrollEvent: import("vue-types").VueTypeValidableDef<boolean> & {
144
+ default: boolean;
145
+ } & {
146
+ default: boolean;
147
+ };
122
148
  lineHeight: import("vue-types").VueTypeDef<any> & {
123
149
  default: any;
124
150
  };
@@ -214,16 +240,29 @@ declare const _default: import("vue").DefineComponent<{
214
240
  } & {
215
241
  default: number;
216
242
  };
217
- }>>, {
243
+ rowKey: import("vue-types").VueTypeValidableDef<string> & {
244
+ default: string;
245
+ } & {
246
+ default: string;
247
+ };
248
+ keepAlive: import("vue-types").VueTypeValidableDef<boolean> & {
249
+ default: boolean;
250
+ } & {
251
+ default: boolean;
252
+ };
253
+ }>> & {
254
+ [x: `on${Capitalize<string>}`]: (...args: any[]) => any;
255
+ }, {
218
256
  width: string | number;
219
257
  height: string | number;
220
- list: unknown[];
221
258
  enabled: boolean;
259
+ list: unknown[];
222
260
  lineHeight: any;
223
261
  minHeight: number;
224
262
  className: string | {
225
263
  [key: string]: any;
226
264
  };
265
+ scrollEvent: boolean;
227
266
  contentClassName: string | {
228
267
  [key: string]: any;
229
268
  };
@@ -240,5 +279,12 @@ declare const _default: import("vue").DefineComponent<{
240
279
  scrollPosition: string;
241
280
  abosuteHeight: string | number;
242
281
  throttleDelay: number;
243
- }>;
282
+ rowKey: string;
283
+ keepAlive: boolean;
284
+ }, SlotsType<{
285
+ default?: any;
286
+ beforeContent?: any;
287
+ afterContent?: any;
288
+ afterSection?: any;
289
+ }>>;
244
290
  export default _default;
@@ -1,3 +1,5 @@
1
+ @import '../styles/themes/themes.less';
2
+ @import '../styles/mixins/scroll.less';
1
3
 
2
4
  .bk-virtual-render {
3
5
  position: relative;
@@ -16,28 +18,5 @@
16
18
  width: 1px;
17
19
  background: transparent;
18
20
  }
19
-
20
-
21
- &.bk-scroll-x {
22
- overflow-x: auto;
23
- scrollbar-color: #a0a0a0 transparent;
24
- scrollbar-width: thin;
25
-
26
- &::-webkit-scrollbar {
27
- height: 6px;
28
- }
29
- }
30
-
31
- &.bk-scroll-y {
32
- overflow-y: auto;
33
-
34
- &::-webkit-scrollbar {
35
- width: 4px;
36
- }
37
-
38
- &::-webkit-scrollbar-thumb {
39
- border-radius: 4px;
40
- }
41
- }
42
21
  }
43
22