vue-devui 1.0.0-beta.2 → 1.0.0-beta.20220808

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 (455) hide show
  1. package/README.md +163 -172
  2. package/alert/index.d.ts +7 -0
  3. package/alert/index.es.js +79 -51
  4. package/alert/index.umd.js +1 -1
  5. package/alert/style.css +1 -1
  6. package/auto-complete/index.d.ts +7 -0
  7. package/auto-complete/index.es.js +9053 -0
  8. package/auto-complete/index.umd.js +40 -0
  9. package/auto-complete/package.json +7 -0
  10. package/auto-complete/style.css +1 -0
  11. package/avatar/index.d.ts +7 -0
  12. package/avatar/index.es.js +154 -147
  13. package/avatar/index.umd.js +1 -1
  14. package/avatar/style.css +1 -1
  15. package/badge/index.d.ts +7 -0
  16. package/badge/index.es.js +46 -21
  17. package/badge/index.umd.js +1 -1
  18. package/badge/style.css +1 -1
  19. package/button/index.d.ts +7 -0
  20. package/button/index.es.js +5921 -146
  21. package/button/index.umd.js +27 -1
  22. package/button/style.css +1 -1
  23. package/card/index.d.ts +7 -0
  24. package/card/index.es.js +64 -36
  25. package/card/index.umd.js +1 -1
  26. package/card/style.css +1 -1
  27. package/checkbox/index.d.ts +7 -0
  28. package/checkbox/index.es.js +8122 -255
  29. package/checkbox/index.umd.js +38 -1
  30. package/checkbox/style.css +1 -1
  31. package/collapse/index.d.ts +7 -0
  32. package/collapse/index.es.js +195 -0
  33. package/collapse/index.umd.js +1 -0
  34. package/{cascader → collapse}/package.json +1 -1
  35. package/collapse/style.css +1 -0
  36. package/countdown/index.d.ts +7 -0
  37. package/countdown/index.es.js +217 -0
  38. package/countdown/index.umd.js +1 -0
  39. package/{accordion → countdown}/package.json +1 -1
  40. package/countdown/style.css +1 -0
  41. package/date-picker-pro/index.d.ts +7 -0
  42. package/date-picker-pro/index.es.js +12035 -0
  43. package/date-picker-pro/index.umd.js +38 -0
  44. package/date-picker-pro/package.json +7 -0
  45. package/date-picker-pro/style.css +1 -0
  46. package/drawer/index.d.ts +7 -0
  47. package/drawer/index.es.js +205 -154
  48. package/drawer/index.umd.js +1 -1
  49. package/drawer/style.css +1 -1
  50. package/dropdown/index.d.ts +7 -0
  51. package/dropdown/index.es.js +736 -0
  52. package/dropdown/index.umd.js +1 -0
  53. package/{carousel → dropdown}/package.json +1 -1
  54. package/dropdown/style.css +1 -0
  55. package/editable-select/index.d.ts +7 -0
  56. package/editable-select/index.es.js +908 -461
  57. package/editable-select/index.umd.js +1 -1
  58. package/editable-select/style.css +1 -1
  59. package/form/index.d.ts +7 -0
  60. package/form/index.es.js +2439 -1995
  61. package/form/index.umd.js +29 -18
  62. package/form/style.css +1 -1
  63. package/fullscreen/index.d.ts +7 -0
  64. package/fullscreen/index.es.js +138 -125
  65. package/fullscreen/index.umd.js +1 -1
  66. package/fullscreen/style.css +1 -1
  67. package/grid/index.d.ts +7 -0
  68. package/grid/index.es.js +271 -0
  69. package/grid/index.umd.js +1 -0
  70. package/{toast → grid}/package.json +1 -1
  71. package/grid/style.css +1 -0
  72. package/icon/index.d.ts +7 -0
  73. package/icon/index.es.js +200 -56
  74. package/icon/index.umd.js +1 -1
  75. package/icon/style.css +1 -0
  76. package/image-preview/index.d.ts +7 -0
  77. package/image-preview/index.es.js +154 -62
  78. package/image-preview/index.umd.js +1 -1
  79. package/image-preview/style.css +1 -1
  80. package/index.d.ts +7 -0
  81. package/input/index.d.ts +7 -0
  82. package/input/index.es.js +8269 -145
  83. package/input/index.umd.js +38 -1
  84. package/input/style.css +1 -1
  85. package/input-number/index.d.ts +7 -0
  86. package/input-number/index.es.js +260 -191
  87. package/input-number/index.umd.js +1 -1
  88. package/input-number/style.css +1 -1
  89. package/layout/index.d.ts +7 -0
  90. package/layout/index.es.js +41 -26
  91. package/layout/index.umd.js +1 -1
  92. package/layout/style.css +1 -1
  93. package/loading/index.d.ts +7 -0
  94. package/loading/index.es.js +89 -73
  95. package/loading/index.umd.js +1 -1
  96. package/loading/style.css +1 -1
  97. package/mention/index.d.ts +7 -0
  98. package/mention/index.es.js +8326 -0
  99. package/mention/index.umd.js +47 -0
  100. package/mention/package.json +7 -0
  101. package/mention/style.css +1 -0
  102. package/menu/index.d.ts +7 -0
  103. package/menu/index.es.js +891 -0
  104. package/menu/index.umd.js +1 -0
  105. package/{anchor → menu}/package.json +1 -1
  106. package/menu/style.css +1 -0
  107. package/message/index.d.ts +7 -0
  108. package/message/index.es.js +533 -0
  109. package/message/index.umd.js +1 -0
  110. package/message/package.json +7 -0
  111. package/message/style.css +1 -0
  112. package/modal/index.d.ts +7 -0
  113. package/modal/index.es.js +611 -877
  114. package/modal/index.umd.js +1 -1
  115. package/modal/style.css +1 -1
  116. package/notification/index.d.ts +7 -0
  117. package/notification/index.es.js +528 -0
  118. package/notification/index.umd.js +1 -0
  119. package/notification/package.json +7 -0
  120. package/notification/style.css +1 -0
  121. package/nuxt/components/Alert.js +3 -0
  122. package/nuxt/components/Aside.js +3 -0
  123. package/nuxt/components/AutoComplete.js +3 -0
  124. package/nuxt/components/Avatar.js +3 -0
  125. package/nuxt/components/Badge.js +3 -0
  126. package/nuxt/components/Button.js +3 -0
  127. package/nuxt/components/ButtonGroup.js +3 -0
  128. package/nuxt/components/Card.js +3 -0
  129. package/nuxt/components/Checkbox.js +3 -0
  130. package/nuxt/components/CheckboxButton.js +3 -0
  131. package/nuxt/components/CheckboxGroup.js +3 -0
  132. package/nuxt/components/Col.js +3 -0
  133. package/nuxt/components/Collapse.js +3 -0
  134. package/nuxt/components/CollapseItem.js +3 -0
  135. package/nuxt/components/Column.js +3 -0
  136. package/nuxt/components/Content.js +3 -0
  137. package/nuxt/components/Countdown.js +3 -0
  138. package/nuxt/components/DRangeDatePickerPro.js +3 -0
  139. package/nuxt/components/DatePickerPro.js +3 -0
  140. package/nuxt/components/Drawer.js +3 -0
  141. package/nuxt/components/DrawerService.js +3 -0
  142. package/nuxt/components/Dropdown.js +3 -0
  143. package/nuxt/components/DropdownMenu.js +3 -0
  144. package/nuxt/components/DropdownPropsKey.js +3 -0
  145. package/nuxt/components/EditableSelect.js +3 -0
  146. package/nuxt/components/FORM_ITEM_TOKEN.js +3 -0
  147. package/nuxt/components/FORM_TOKEN.js +3 -0
  148. package/nuxt/components/FixedOverlay.js +3 -0
  149. package/nuxt/components/FlexibleOverlay.js +3 -0
  150. package/nuxt/components/Footer.js +3 -0
  151. package/nuxt/components/Form.js +3 -0
  152. package/nuxt/components/FormItem.js +3 -0
  153. package/nuxt/components/FormOperation.js +3 -0
  154. package/nuxt/components/Fullscreen.js +3 -0
  155. package/nuxt/components/Header.js +3 -0
  156. package/nuxt/components/IFileOptions.js +3 -0
  157. package/nuxt/components/IUploadOptions.js +3 -0
  158. package/nuxt/components/Icon.js +3 -0
  159. package/nuxt/components/IconGroup.js +3 -0
  160. package/nuxt/components/ImagePreviewService.js +3 -0
  161. package/nuxt/components/Input.js +3 -0
  162. package/nuxt/components/InputNumber.js +3 -0
  163. package/nuxt/components/LABEL_DATA.js +3 -0
  164. package/nuxt/components/Layout.js +3 -0
  165. package/nuxt/components/Loading.js +3 -0
  166. package/nuxt/components/LoadingOptions.js +3 -0
  167. package/nuxt/components/LoadingService.js +3 -0
  168. package/nuxt/components/Mention.js +3 -0
  169. package/nuxt/components/Menu.js +3 -0
  170. package/nuxt/components/MenuItem.js +3 -0
  171. package/nuxt/components/Message.js +3 -0
  172. package/nuxt/components/Modal.js +3 -0
  173. package/nuxt/components/Notification.js +3 -0
  174. package/nuxt/components/NotificationService.js +3 -0
  175. package/nuxt/components/Option.js +3 -0
  176. package/nuxt/components/OptionGroup.js +3 -0
  177. package/nuxt/components/Pagination.js +3 -0
  178. package/nuxt/components/Panel.js +3 -0
  179. package/nuxt/components/PanelBody.js +3 -0
  180. package/nuxt/components/PanelFooter.js +3 -0
  181. package/nuxt/components/PanelHeader.js +3 -0
  182. package/nuxt/components/Popover.js +3 -0
  183. package/nuxt/components/Progress.js +3 -0
  184. package/nuxt/components/Radio.js +3 -0
  185. package/nuxt/components/RadioButton.js +3 -0
  186. package/nuxt/components/RadioGroup.js +3 -0
  187. package/nuxt/components/Rate.js +3 -0
  188. package/nuxt/components/Result.js +3 -0
  189. package/nuxt/components/Row.js +3 -0
  190. package/nuxt/components/Search.js +3 -0
  191. package/nuxt/components/Select.js +3 -0
  192. package/nuxt/components/Skeleton.js +3 -0
  193. package/nuxt/components/SkeletonItem.js +3 -0
  194. package/nuxt/components/Slider.js +3 -0
  195. package/nuxt/components/Splitter.js +3 -0
  196. package/nuxt/components/Statistic.js +3 -0
  197. package/nuxt/components/Status.js +3 -0
  198. package/nuxt/components/Step.js +3 -0
  199. package/nuxt/components/Steps.js +3 -0
  200. package/nuxt/components/SubMenu.js +3 -0
  201. package/nuxt/components/Switch.js +3 -0
  202. package/nuxt/components/TABLE_TOKEN.js +3 -0
  203. package/nuxt/components/Tab.js +3 -0
  204. package/nuxt/components/Table.js +3 -0
  205. package/nuxt/components/Tabs.js +3 -0
  206. package/nuxt/components/Tag.js +3 -0
  207. package/nuxt/components/Textarea.js +3 -0
  208. package/nuxt/components/TimePicker.js +3 -0
  209. package/nuxt/components/TimeSelect.js +3 -0
  210. package/nuxt/components/Timeline.js +3 -0
  211. package/nuxt/components/TimelineItem.js +3 -0
  212. package/nuxt/components/Tooltip.js +3 -0
  213. package/nuxt/components/Tree.js +3 -0
  214. package/nuxt/components/Upload.js +3 -0
  215. package/nuxt/components/UploadStatus.js +3 -0
  216. package/nuxt/components/alertProps.js +3 -0
  217. package/nuxt/components/animationInjectionKey.js +3 -0
  218. package/nuxt/components/autoCompleteProps.js +3 -0
  219. package/nuxt/components/avatarProps.js +3 -0
  220. package/nuxt/components/badgeProps.js +3 -0
  221. package/nuxt/components/buttonGroupInjectionKey.js +3 -0
  222. package/nuxt/components/buttonGroupProps.js +3 -0
  223. package/nuxt/components/buttonProps.js +3 -0
  224. package/nuxt/components/cardProps.js +3 -0
  225. package/nuxt/components/checkboxGroupInjectionKey.js +3 -0
  226. package/nuxt/components/checkboxGroupProps.js +3 -0
  227. package/nuxt/components/checkboxProps.js +3 -0
  228. package/nuxt/components/colProps.js +3 -0
  229. package/nuxt/components/colPropsBaseClass.js +3 -0
  230. package/nuxt/components/colPropsBaseStyle.js +3 -0
  231. package/nuxt/components/collapseItemProps.js +3 -0
  232. package/nuxt/components/collapseProps.js +3 -0
  233. package/nuxt/components/countdownProps.js +3 -0
  234. package/nuxt/components/datePickerProCommonProps.js +3 -0
  235. package/nuxt/components/datePickerProPanelProps.js +3 -0
  236. package/nuxt/components/datePickerProProps.js +3 -0
  237. package/nuxt/components/dropdownMenuProps.js +3 -0
  238. package/nuxt/components/editableSelectProps.js +3 -0
  239. package/nuxt/components/fixedOverlayProps.js +3 -0
  240. package/nuxt/components/flexibleOverlayProps.js +3 -0
  241. package/nuxt/components/formItemProps.js +3 -0
  242. package/nuxt/components/formProps.js +3 -0
  243. package/nuxt/components/fullscreenProps.js +3 -0
  244. package/nuxt/components/iconProps.js +3 -0
  245. package/nuxt/components/imagePreviewProps.js +3 -0
  246. package/nuxt/components/inputProps.js +3 -0
  247. package/nuxt/components/loadingProps.js +3 -0
  248. package/nuxt/components/mentionProps.js +3 -0
  249. package/nuxt/components/messageProps.js +3 -0
  250. package/nuxt/components/modalProps.js +3 -0
  251. package/nuxt/components/notificationProps.js +3 -0
  252. package/nuxt/components/paginationProps.js +3 -0
  253. package/nuxt/components/panelProps.js +3 -0
  254. package/nuxt/components/popoverProps.js +3 -0
  255. package/nuxt/components/progressProps.js +3 -0
  256. package/nuxt/components/rateProps.js +3 -0
  257. package/nuxt/components/resultProps.js +3 -0
  258. package/nuxt/components/roundInjectionKey.js +3 -0
  259. package/nuxt/components/rowProps.js +3 -0
  260. package/nuxt/components/screenSizes.js +3 -0
  261. package/nuxt/components/searchProps.js +3 -0
  262. package/nuxt/components/skeletonItemProps.js +3 -0
  263. package/nuxt/components/skeletonProps.js +3 -0
  264. package/nuxt/components/sliderProps.js +3 -0
  265. package/nuxt/components/splitterProps.js +3 -0
  266. package/nuxt/components/statisticProps.js +3 -0
  267. package/nuxt/components/stepProps.js +3 -0
  268. package/nuxt/components/stepsProps.js +3 -0
  269. package/nuxt/components/svgIconProps.js +3 -0
  270. package/nuxt/components/switchProps.js +3 -0
  271. package/nuxt/components/tableProps.js +3 -0
  272. package/nuxt/components/tabsProps.js +3 -0
  273. package/nuxt/components/tagProps.js +3 -0
  274. package/nuxt/components/textareaProps.js +3 -0
  275. package/nuxt/components/timeAxisProps.js +3 -0
  276. package/nuxt/components/timerPickerPanelProps.js +3 -0
  277. package/nuxt/components/tooltipProps.js +3 -0
  278. package/nuxt/components/treeNodeProps.js +3 -0
  279. package/nuxt/components/treeProps.js +3 -0
  280. package/nuxt/components/uploadProps.js +3 -0
  281. package/nuxt/index.js +13 -0
  282. package/overlay/index.d.ts +7 -0
  283. package/overlay/index.es.js +245 -303
  284. package/overlay/index.umd.js +1 -1
  285. package/overlay/style.css +1 -1
  286. package/package.json +16 -84
  287. package/pagination/index.d.ts +7 -0
  288. package/pagination/index.es.js +333 -155
  289. package/pagination/index.umd.js +1 -1
  290. package/pagination/style.css +1 -1
  291. package/panel/index.d.ts +7 -0
  292. package/panel/index.es.js +48 -35
  293. package/panel/index.umd.js +1 -1
  294. package/panel/style.css +1 -1
  295. package/popover/index.d.ts +7 -0
  296. package/popover/index.es.js +6035 -204
  297. package/popover/index.umd.js +27 -1
  298. package/popover/style.css +1 -1
  299. package/progress/index.d.ts +7 -0
  300. package/progress/index.es.js +111 -57
  301. package/progress/index.umd.js +3 -3
  302. package/progress/style.css +1 -1
  303. package/radio/index.d.ts +7 -0
  304. package/radio/index.es.js +8015 -182
  305. package/radio/index.umd.js +38 -1
  306. package/radio/style.css +1 -1
  307. package/rate/index.d.ts +7 -0
  308. package/rate/index.es.js +78 -56
  309. package/rate/index.umd.js +1 -1
  310. package/rate/style.css +1 -1
  311. package/result/index.d.ts +7 -0
  312. package/result/index.es.js +248 -0
  313. package/result/index.umd.js +1 -0
  314. package/{sticky → result}/package.json +1 -1
  315. package/result/style.css +1 -0
  316. package/ripple/index.d.ts +7 -0
  317. package/ripple/index.es.js +56 -61
  318. package/ripple/index.umd.js +1 -1
  319. package/search/index.d.ts +7 -0
  320. package/search/index.es.js +8381 -406
  321. package/search/index.umd.js +38 -1
  322. package/search/style.css +1 -1
  323. package/select/index.d.ts +7 -0
  324. package/select/index.es.js +9331 -576
  325. package/select/index.umd.js +38 -1
  326. package/select/style.css +1 -1
  327. package/skeleton/index.d.ts +7 -0
  328. package/skeleton/index.es.js +115 -145
  329. package/skeleton/index.umd.js +1 -1
  330. package/skeleton/style.css +1 -1
  331. package/slider/index.d.ts +7 -0
  332. package/slider/index.es.js +148 -142
  333. package/slider/index.umd.js +1 -1
  334. package/slider/style.css +1 -1
  335. package/splitter/index.d.ts +7 -0
  336. package/splitter/index.es.js +6308 -181
  337. package/splitter/index.umd.js +27 -1
  338. package/splitter/style.css +1 -1
  339. package/statistic/index.d.ts +7 -0
  340. package/statistic/index.es.js +253 -0
  341. package/statistic/index.umd.js +1 -0
  342. package/statistic/package.json +7 -0
  343. package/statistic/style.css +1 -0
  344. package/status/index.d.ts +7 -0
  345. package/status/index.es.js +29 -8
  346. package/status/index.umd.js +1 -1
  347. package/status/style.css +1 -1
  348. package/steps/index.d.ts +7 -0
  349. package/steps/index.es.js +386 -0
  350. package/steps/index.umd.js +1 -0
  351. package/steps/package.json +7 -0
  352. package/steps/style.css +1 -0
  353. package/style.css +1 -1
  354. package/switch/index.d.ts +7 -0
  355. package/switch/index.es.js +7819 -65
  356. package/switch/index.umd.js +38 -1
  357. package/switch/style.css +1 -1
  358. package/table/index.d.ts +7 -0
  359. package/table/index.es.js +11435 -204
  360. package/table/index.umd.js +38 -1
  361. package/table/style.css +1 -1
  362. package/tabs/index.d.ts +7 -0
  363. package/tabs/index.es.js +356 -143
  364. package/tabs/index.umd.js +1 -1
  365. package/tabs/style.css +1 -1
  366. package/tag/index.d.ts +7 -0
  367. package/tag/index.es.js +156 -0
  368. package/tag/index.umd.js +1 -0
  369. package/tag/package.json +7 -0
  370. package/tag/style.css +1 -0
  371. package/textarea/index.d.ts +7 -0
  372. package/textarea/index.es.js +7989 -0
  373. package/textarea/index.umd.js +46 -0
  374. package/textarea/package.json +7 -0
  375. package/textarea/style.css +1 -0
  376. package/{theme → theme/theme.scss} +0 -0
  377. package/time-picker/index.d.ts +7 -0
  378. package/time-picker/index.es.js +9126 -597
  379. package/time-picker/index.umd.js +38 -1
  380. package/time-picker/style.css +1 -1
  381. package/time-select/index.d.ts +7 -0
  382. package/time-select/index.es.js +9606 -0
  383. package/time-select/index.umd.js +38 -0
  384. package/{breadcrumb → time-select}/package.json +1 -1
  385. package/time-select/style.css +1 -0
  386. package/timeline/index.d.ts +7 -0
  387. package/timeline/index.es.js +427 -0
  388. package/timeline/index.umd.js +1 -0
  389. package/timeline/package.json +7 -0
  390. package/timeline/style.css +1 -0
  391. package/tooltip/index.d.ts +7 -0
  392. package/tooltip/index.es.js +5870 -141
  393. package/tooltip/index.umd.js +27 -1
  394. package/tooltip/style.css +1 -1
  395. package/tree/index.d.ts +7 -0
  396. package/tree/index.es.js +11504 -692
  397. package/tree/index.umd.js +38 -1
  398. package/tree/style.css +1 -1
  399. package/upload/index.d.ts +7 -0
  400. package/upload/index.es.js +968 -2748
  401. package/upload/index.umd.js +1 -1
  402. package/upload/style.css +1 -1
  403. package/vue-devui.es.js +22816 -16568
  404. package/vue-devui.umd.js +42 -20
  405. package/accordion/index.es.js +0 -190
  406. package/accordion/index.umd.js +0 -1
  407. package/accordion/style.css +0 -1
  408. package/anchor/index.es.js +0 -263
  409. package/anchor/index.umd.js +0 -1
  410. package/anchor/style.css +0 -1
  411. package/breadcrumb/index.es.js +0 -127
  412. package/breadcrumb/index.umd.js +0 -1
  413. package/breadcrumb/style.css +0 -1
  414. package/carousel/index.es.js +0 -328
  415. package/carousel/index.umd.js +0 -1
  416. package/carousel/style.css +0 -1
  417. package/cascader/index.es.js +0 -187
  418. package/cascader/index.umd.js +0 -1
  419. package/cascader/style.css +0 -1
  420. package/date-picker/index.es.js +0 -1171
  421. package/date-picker/index.umd.js +0 -1
  422. package/date-picker/package.json +0 -7
  423. package/date-picker/style.css +0 -1
  424. package/nav-sprite/index.es.js +0 -742
  425. package/nav-sprite/index.umd.js +0 -1
  426. package/nav-sprite/package.json +0 -7
  427. package/quadrant-diagram/index.es.js +0 -489
  428. package/quadrant-diagram/index.umd.js +0 -1
  429. package/quadrant-diagram/package.json +0 -7
  430. package/quadrant-diagram/style.css +0 -1
  431. package/steps-guide/index.es.js +0 -211
  432. package/steps-guide/index.umd.js +0 -1
  433. package/steps-guide/package.json +0 -7
  434. package/steps-guide/style.css +0 -1
  435. package/sticky/index.es.js +0 -197
  436. package/sticky/index.umd.js +0 -1
  437. package/tag-input/index.es.js +0 -341
  438. package/tag-input/index.umd.js +0 -1
  439. package/tag-input/package.json +0 -7
  440. package/tag-input/style.css +0 -1
  441. package/time-axis/index.es.js +0 -79
  442. package/time-axis/index.umd.js +0 -1
  443. package/time-axis/package.json +0 -7
  444. package/time-axis/style.css +0 -1
  445. package/toast/index.es.js +0 -2059
  446. package/toast/index.umd.js +0 -1
  447. package/toast/style.css +0 -1
  448. package/transfer/index.es.js +0 -1446
  449. package/transfer/index.umd.js +0 -1
  450. package/transfer/package.json +0 -7
  451. package/transfer/style.css +0 -1
  452. package/tree-select/index.es.js +0 -203
  453. package/tree-select/index.umd.js +0 -1
  454. package/tree-select/package.json +0 -7
  455. package/tree-select/style.css +0 -1
@@ -1,5 +1,5 @@
1
- import { defineComponent, ref, onMounted, onUnmounted, withDirectives, createVNode, createTextVNode, resolveDirective, toRefs, watch, resolveComponent, computed, Fragment, mergeProps, nextTick } from "vue";
2
- const componentProps = {
1
+ import { defineComponent, ref, onMounted, onUnmounted, withDirectives, createVNode, createTextVNode, resolveDirective, toRefs, watch, resolveComponent, computed, Fragment, reactive, getCurrentInstance, mergeProps, nextTick } from "vue";
2
+ const paginationProps = {
3
3
  pageSize: {
4
4
  type: Number,
5
5
  default: 10
@@ -49,12 +49,10 @@ const componentProps = {
49
49
  default: false
50
50
  },
51
51
  totalItemText: {
52
- type: String,
53
- default: "\u6240\u6709\u6761\u76EE"
52
+ type: String
54
53
  },
55
54
  goToText: {
56
- type: String,
57
- default: "\u8DF3\u81F3"
55
+ type: String
58
56
  },
59
57
  showJumpButton: {
60
58
  type: Boolean,
@@ -148,7 +146,7 @@ function off(element, eventName, handler) {
148
146
  }
149
147
  const inBrowser = typeof window !== "undefined";
150
148
  const ctx = Symbol("@@clickoutside");
151
- const nodeList = new Map();
149
+ const nodeList = /* @__PURE__ */ new Map();
152
150
  let startClick;
153
151
  let nid = 0;
154
152
  let isFirst = true;
@@ -190,6 +188,29 @@ const clickoutsideDirective = {
190
188
  delete el[ctx];
191
189
  }
192
190
  };
191
+ function createBem(namespace, element, modifier) {
192
+ let cls = namespace;
193
+ if (element) {
194
+ cls += `__${element}`;
195
+ }
196
+ if (modifier) {
197
+ cls += `--${modifier}`;
198
+ }
199
+ return cls;
200
+ }
201
+ function useNamespace(block, needDot = false) {
202
+ const namespace = needDot ? `.devui-${block}` : `devui-${block}`;
203
+ const b = () => createBem(namespace);
204
+ const e = (element) => element ? createBem(namespace, element) : "";
205
+ const m = (modifier) => modifier ? createBem(namespace, "", modifier) : "";
206
+ const em = (element, modifier) => element && modifier ? createBem(namespace, element, modifier) : "";
207
+ return {
208
+ b,
209
+ e,
210
+ m,
211
+ em
212
+ };
213
+ }
193
214
  var ConfigMenu = defineComponent({
194
215
  directives: {
195
216
  clickoutside: clickoutsideDirective
@@ -202,15 +223,15 @@ var ConfigMenu = defineComponent({
202
223
  setup() {
203
224
  const paginationConfig = ref(null);
204
225
  const isShowConfig = ref(false);
226
+ const closeConfigMenu = (e) => {
227
+ isShowConfig.value = isShowConfig.value ? false : !!e;
228
+ };
205
229
  onMounted(() => {
206
230
  on(paginationConfig.value, "click", closeConfigMenu);
207
231
  });
208
232
  onUnmounted(() => {
209
233
  off(paginationConfig.value, "click", closeConfigMenu);
210
234
  });
211
- const closeConfigMenu = (e) => {
212
- isShowConfig.value = isShowConfig.value ? false : !!e;
213
- };
214
235
  return {
215
236
  paginationConfig,
216
237
  isShowConfig,
@@ -227,22 +248,23 @@ var ConfigMenu = defineComponent({
227
248
  isShowConfig,
228
249
  $slots
229
250
  } = this;
251
+ const ns = useNamespace("pagination");
230
252
  return withDirectives(createVNode("div", {
231
- "class": "devui-pagination-config",
253
+ "class": ns.e("config"),
232
254
  "ref": "paginationConfig"
233
255
  }, [createVNode("div", {
234
- "class": "devui-setup-icon"
256
+ "class": ns.e("setup-icon")
235
257
  }, [createVNode("i", {
236
258
  "class": "icon-setting",
237
259
  "style": "font-weight: bold;"
238
260
  }, null)]), isShowConfig && createVNode("div", {
239
- "class": "devui-config-container"
261
+ "class": ns.e("config-container")
240
262
  }, [(_a = $slots.default) == null ? void 0 : _a.call($slots), createVNode("div", {
241
- "class": "pagination-config-item"
263
+ "class": ns.e("config-item")
242
264
  }, [createVNode("div", {
243
265
  "class": "config-item-title"
244
266
  }, [createTextVNode("\u6BCF\u9875\u6761\u6570")]), createVNode("div", {
245
- "class": "devui-page-number"
267
+ "class": ns.e("number")
246
268
  }, [pageSizeOptions.map((v) => {
247
269
  return createVNode("div", {
248
270
  "class": {
@@ -279,25 +301,25 @@ var JumpPage = defineComponent({
279
301
  totalPages,
280
302
  cursor
281
303
  } = toRefs(props);
282
- const inputNum = ref(pageIndex.value);
283
- watch(() => pageIndex.value, (val) => {
304
+ const inputNum = ref(pageIndex == null ? void 0 : pageIndex.value);
305
+ watch(() => pageIndex == null ? void 0 : pageIndex.value, (val) => {
284
306
  inputNum.value = val;
285
307
  });
286
- let curPage = pageIndex.value;
308
+ let curPage = pageIndex == null ? void 0 : pageIndex.value;
287
309
  const jumpPageChange = (currentPage) => {
288
310
  curPage = +currentPage;
289
311
  inputNum.value = currentPage;
290
312
  if (isNaN(currentPage)) {
291
313
  setTimeout(() => {
292
- inputNum.value = pageIndex.value;
314
+ inputNum.value = pageIndex == null ? void 0 : pageIndex.value;
293
315
  }, 300);
294
316
  }
295
317
  };
296
318
  const jump = (e) => {
297
- if (curPage > totalPages.value) {
319
+ if (curPage > (totalPages == null ? void 0 : totalPages.value)) {
298
320
  return;
299
321
  }
300
- if ((e === "btn" || e.key === "Enter") && cursor.value !== curPage) {
322
+ if ((e === "btn" || e.key === "Enter") && (cursor == null ? void 0 : cursor.value) !== curPage) {
301
323
  emit("changeCursorEmit", curPage);
302
324
  }
303
325
  };
@@ -316,24 +338,26 @@ var JumpPage = defineComponent({
316
338
  jump,
317
339
  showJumpButton
318
340
  } = this;
341
+ const ns = useNamespace("pagination");
342
+ const inputProps = {
343
+ class: [ns.e("input"), size ? ns.em("input", size) : ""],
344
+ size,
345
+ modelValue: String(inputNum),
346
+ "onUpdate:modelValue": jumpPageChange,
347
+ onKeydown: jump
348
+ };
319
349
  return createVNode("div", {
320
- "class": "devui-jump-container"
350
+ "class": ns.e("jump-container")
321
351
  }, [
322
352
  goToText,
323
- createVNode(resolveComponent("d-input"), {
324
- "class": ["devui-pagination-input", size ? "devui-pagination-input-" + size : ""],
325
- "size": size,
326
- "value": String(inputNum),
327
- "onUpdate:value": jumpPageChange,
328
- "onKeydown": jump
329
- }, null),
353
+ createVNode(resolveComponent("d-input"), inputProps, null),
330
354
  goToText === "\u8DF3\u81F3" && "\u9875",
331
355
  showJumpButton && createVNode("div", {
332
- "class": ["devui-jump-button", size ? "devui-jump-size-" + size : "devui-jump-size-default"],
356
+ "class": [ns.e("jump-button"), size ? ns.em("jump-size", size) : ns.em("jump-size", "default")],
333
357
  "onClick": jump.bind(null, "btn"),
334
358
  "title": goToText
335
359
  }, [createVNode("div", {
336
- "class": "devui-pagination-go"
360
+ "class": ns.e("go")
337
361
  }, null)])
338
362
  ]);
339
363
  }
@@ -360,8 +384,9 @@ var PageNumBtn = defineComponent({
360
384
  }) {
361
385
  const showPageNum = computed(() => handlePages(props.cursor, props.maxItems, props.totalPages));
362
386
  const changeCursor = (pageSize) => {
363
- if (isNaN(pageSize))
387
+ if (isNaN(pageSize)) {
364
388
  return;
389
+ }
365
390
  const page = pageSize < 1 ? 1 : pageSize > props.totalPages ? props.totalPages : pageSize | 0;
366
391
  emit("changeCursorEmit", page);
367
392
  };
@@ -398,32 +423,33 @@ var PageNumBtn = defineComponent({
398
423
  nextChange,
399
424
  showTruePageIndex
400
425
  } = this;
426
+ const ns = useNamespace("pagination");
401
427
  return createVNode("ul", {
402
- "class": ["devui-pagination-list", size ? "devui-pagination-" + size : ""]
428
+ "class": [ns.e("list"), size ? ns.m(size) : ""]
403
429
  }, [createVNode("li", {
404
430
  "onClick": prevChange.bind(null, -1),
405
431
  "class": {
406
- "devui-pagination-item": true,
432
+ [ns.e("item")]: true,
407
433
  disabled: cursor <= 1
408
434
  }
409
435
  }, [createVNode("a", {
410
436
  "innerHTML": preLink,
411
- "class": "devui-pagination-link"
437
+ "class": ns.e("link")
412
438
  }, null)]), !lite && createVNode(Fragment, null, [
413
439
  createVNode("li", {
414
440
  "onClick": changeCursor.bind(null, 1),
415
441
  "class": {
416
- "devui-pagination-item": true,
442
+ [ns.e("item")]: true,
417
443
  active: cursor === 1
418
444
  }
419
445
  }, [createVNode("a", {
420
- "class": "devui-pagination-link"
446
+ "class": ns.e("link")
421
447
  }, [createTextVNode("1")])]),
422
448
  showPageNum[0] > 2 && createVNode("li", {
423
449
  "onClick": prevChange.bind(null, showPageNum[0] - 1),
424
- "class": "devui-pagination-item"
450
+ "class": ns.e("item")
425
451
  }, [createVNode("a", {
426
- "class": "devui-pagination-link"
452
+ "class": ns.e("link")
427
453
  }, [createTextVNode("...")])]),
428
454
  (() => {
429
455
  const list = [];
@@ -432,51 +458,219 @@ var PageNumBtn = defineComponent({
432
458
  "onClick": changeCursor.bind(null, i),
433
459
  "key": i,
434
460
  "class": {
435
- "devui-pagination-item": true,
461
+ [ns.e("item")]: true,
436
462
  active: cursor === i
437
463
  }
438
464
  }, [createVNode("a", {
439
- "class": "devui-pagination-link"
465
+ "class": ns.e("link")
440
466
  }, [i])]));
441
467
  }
442
468
  return list;
443
469
  })(),
444
470
  showPageNum[1] < totalPages - 1 && createVNode("li", {
445
471
  "onClick": nextChange.bind(null, showPageNum[1] + 1),
446
- "class": "devui-pagination-item"
472
+ "class": ns.e("item")
447
473
  }, [createVNode("a", {
448
- "class": "devui-pagination-link"
474
+ "class": ns.e("link")
449
475
  }, [createTextVNode("...")])]),
450
476
  showPageNum[1] < totalPages && createVNode("li", {
451
477
  "onClick": changeCursor.bind(null, totalPages),
452
478
  "class": {
453
- "devui-pagination-item": true,
479
+ [ns.e("item")]: true,
454
480
  active: cursor === totalPages
455
481
  }
456
482
  }, [createVNode("a", {
457
- "class": "devui-pagination-link"
483
+ "class": ns.e("link")
458
484
  }, [totalPages])]),
459
485
  showTruePageIndex && cursor > totalPages && totalPages > 0 && createVNode(Fragment, null, [cursor > totalPages + 1 && createVNode("li", {
460
- "class": "devui-pagination-item disabled"
486
+ "class": [ns.e("item"), "disabled"]
461
487
  }, [createVNode("a", {
462
- "class": "devui-pagination-link"
488
+ "class": ns.e("link")
463
489
  }, [createTextVNode("...")])]), createVNode("li", {
464
- "class": "devui-pagination-item disabled active"
490
+ "class": [ns.e("item"), "disabled", "active"]
465
491
  }, [createVNode("a", {
466
- "class": "devui-pagination-link"
492
+ "class": ns.e("link")
467
493
  }, [cursor])])])
468
494
  ]), createVNode("li", {
469
495
  "onClick": nextChange.bind(null, -1),
470
496
  "class": {
471
- "devui-pagination-item": true,
497
+ [ns.e("item")]: true,
472
498
  disabled: cursor >= totalPages
473
499
  }
474
500
  }, [createVNode("a", {
475
501
  "innerHTML": nextLink,
476
- "class": "devui-pagination-link"
502
+ "class": ns.e("link")
477
503
  }, null)])]);
478
504
  }
479
505
  });
506
+ function deepAssign(...objects) {
507
+ const isObject = (obj) => obj && typeof obj === "object";
508
+ return objects.reduce((prev, from) => {
509
+ Object.keys(from).forEach((key) => {
510
+ const pVal = prev[key];
511
+ const oVal = from[key];
512
+ if (Array.isArray(pVal) && Array.isArray(oVal)) {
513
+ prev[key] = Array.from(/* @__PURE__ */ new Set([...oVal, ...pVal]));
514
+ } else if (isObject(pVal) && isObject(oVal)) {
515
+ prev[key] = deepAssign(pVal, oVal);
516
+ } else {
517
+ prev[key] = oVal;
518
+ }
519
+ });
520
+ return prev;
521
+ }, {});
522
+ }
523
+ var zhCN = {
524
+ pagination: {
525
+ totalItemText: "\u6240\u6709\u6761\u76EE",
526
+ goToText: "\u8DF3\u81F3"
527
+ },
528
+ accordion: {
529
+ loading: "\u52A0\u8F7D\u4E2D",
530
+ noData: "\u6CA1\u6709\u6570\u636E"
531
+ },
532
+ autoCompleteDropdown: {
533
+ latestInput: "\u6700\u8FD1\u8F93\u5165"
534
+ },
535
+ cascaderList: {
536
+ noData: "\u6CA1\u6709\u6570\u636E"
537
+ },
538
+ colorPicker: {
539
+ foundationPanel: "\u57FA\u7840\u9762\u677F",
540
+ advancedPanel: "\u9AD8\u7EA7\u9762\u677F"
541
+ },
542
+ datePickerPro: {
543
+ ok: "\u786E\u5B9A",
544
+ placeholder: "\u8BF7\u9009\u62E9\u65E5\u671F",
545
+ month1: "1\u6708",
546
+ month2: "2\u6708",
547
+ month3: "3\u6708",
548
+ month4: "4\u6708",
549
+ month5: "5\u6708",
550
+ month6: "6\u6708",
551
+ month7: "7\u6708",
552
+ month8: "8\u6708",
553
+ month9: "9\u6708",
554
+ month10: "10\u6708",
555
+ month11: "11\u6708",
556
+ month12: "12\u6708",
557
+ year: "\u5E74",
558
+ startPlaceholder: "\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",
559
+ endPlaceholder: "\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",
560
+ getWeekDays() {
561
+ return ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"];
562
+ },
563
+ getTimeArr() {
564
+ return ["\u65F6", "\u5206", "\u79D2"];
565
+ },
566
+ getYearMonthStr(year, month) {
567
+ return `${year}\u5E74${month}\u6708`;
568
+ }
569
+ },
570
+ editableSelect: {
571
+ noRelatedRecords: "\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",
572
+ noData: "\u6CA1\u6709\u6570\u636E"
573
+ },
574
+ input: {
575
+ placeholder: "\u8BF7\u8F93\u5165"
576
+ },
577
+ splitterBar: {
578
+ collapse: "\u6536\u8D77",
579
+ expand: "\u5C55\u5F00"
580
+ },
581
+ stepsGuide: {
582
+ previous: "\u4E0A\u4E00\u6B65",
583
+ continue: "\u6211\u77E5\u9053\u5566\uFF0C\u7EE7\u7EED",
584
+ ok: "\u6211\u77E5\u9053\u5566"
585
+ },
586
+ table: {
587
+ selectAll: "\u5168\u9009",
588
+ ok: "\u786E\u5B9A"
589
+ },
590
+ timePopup: {
591
+ ok: "\u786E\u5B9A"
592
+ },
593
+ transfer: {
594
+ unit: "\u9879",
595
+ panelUnit: "\u9879",
596
+ headerUnit: "\u9879",
597
+ noData: "\u6682\u65E0\u6570\u636E",
598
+ placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"
599
+ },
600
+ tree: {
601
+ loading: "\u52A0\u8F7D\u4E2D",
602
+ newNode: "\u65B0\u8282\u70B9",
603
+ selectPlaceholder: "\u8BF7\u9009\u62E9"
604
+ },
605
+ upload: {
606
+ placeholder: "\u9009\u62E9\u6587\u4EF6",
607
+ getExistSameNameFilesMsg(sameNames) {
608
+ return `\u60A8\u4E0A\u4F20\u7684 "${sameNames}" \u5B58\u5728\u91CD\u540D\u6587\u4EF6, \u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`;
609
+ },
610
+ getAllFilesBeyondMaximalFileSizeMsg(maximalSize) {
611
+ return `\u6700\u5927\u652F\u6301\u4E0A\u4F20${maximalSize}MB\u7684\u6587\u4EF6, \u60A8\u672C\u6B21\u4E0A\u4F20\u7684\u6240\u6709\u6587\u4EF6\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`;
612
+ },
613
+ getBeyondMaximalFileSizeMsg(filename, maximalSize) {
614
+ return `\u6700\u5927\u652F\u6301\u4E0A\u4F20${maximalSize}MB\u7684\u6587\u4EF6, \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${filename}"\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`;
615
+ },
616
+ getNotAllowedFileTypeMsg(filename, scope) {
617
+ return `\u652F\u6301\u7684\u6587\u4EF6\u7C7B\u578B: "${scope}", \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${filename}"\u4E0D\u5728\u5141\u8BB8\u8303\u56F4\u5185\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`;
618
+ }
619
+ },
620
+ search: {
621
+ placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u5B57"
622
+ },
623
+ select: {
624
+ placeholder: "\u8BF7\u9009\u62E9",
625
+ noDataText: "\u65E0\u6570\u636E",
626
+ noMatchText: "\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",
627
+ loadingText: "\u52A0\u8F7D\u4E2D..."
628
+ },
629
+ tagInput: {
630
+ maxTagsText: "\u5DF2\u8FBE\u5230\u6700\u5927\u4E2A\u6570\uFF1A"
631
+ },
632
+ timeSelect: {
633
+ placeholder: "\u8BF7\u9009\u62E9\u65F6\u95F4"
634
+ }
635
+ };
636
+ const lang = ref("zh-CN");
637
+ let langMessages = reactive({
638
+ [lang.value]: zhCN
639
+ });
640
+ const Locale = {
641
+ messages() {
642
+ return langMessages[lang.value];
643
+ },
644
+ lang() {
645
+ return lang.value;
646
+ },
647
+ use(newLang, newMessages) {
648
+ lang.value = newLang;
649
+ this.add({ [newLang]: newMessages });
650
+ },
651
+ add(newMessages = {}) {
652
+ langMessages = deepAssign(langMessages, newMessages);
653
+ }
654
+ };
655
+ const camelize = (name) => name.substring(1).replace(/^\S/, (s) => s.toLocaleLowerCase());
656
+ function get(object, path) {
657
+ const keys = path.split(".");
658
+ let result = object;
659
+ keys.forEach((key) => {
660
+ var _a;
661
+ result = (_a = result[key]) != null ? _a : "";
662
+ });
663
+ return result;
664
+ }
665
+ function createI18nTranslate(name, app, newPrefix) {
666
+ const prefix = newPrefix || camelize(name) + ".";
667
+ return (path) => {
668
+ var _a;
669
+ const messages = ((_a = app == null ? void 0 : app.appContext.config.globalProperties.langMessages) == null ? void 0 : _a.value) || Locale.messages();
670
+ const message = get(messages, prefix + path) || get(messages, path);
671
+ return message;
672
+ };
673
+ }
480
674
  var pagination = "";
481
675
  var Pagination = defineComponent({
482
676
  name: "DPagination",
@@ -485,11 +679,37 @@ var Pagination = defineComponent({
485
679
  JumpPage,
486
680
  PageNumBtn
487
681
  },
488
- props: componentProps,
682
+ props: paginationProps,
489
683
  emits: ["pageIndexChange", "pageSizeChange", "update:pageSize", "update:pageIndex"],
490
684
  setup(props, {
491
- emit
685
+ emit,
686
+ slots
492
687
  }) {
688
+ const app = getCurrentInstance();
689
+ const t = createI18nTranslate("DPagination", app);
690
+ const {
691
+ autoHide,
692
+ pageSizeOptions,
693
+ total,
694
+ canChangePageSize,
695
+ lite,
696
+ size,
697
+ pageSizeDirection,
698
+ showPageSelector,
699
+ canViewTotal,
700
+ totalItemText,
701
+ maxItems,
702
+ preLink,
703
+ nextLink,
704
+ showTruePageIndex,
705
+ canJumpPage,
706
+ goToText,
707
+ pageIndex,
708
+ showJumpButton,
709
+ haveConfigMenu
710
+ } = toRefs(props);
711
+ const ns = useNamespace("pagination");
712
+ const totalPages = computed(() => Math.ceil(props.total / props.pageSize));
493
713
  const litePageOptions = computed(() => liteSelectOptions(totalPages.value));
494
714
  const cursor = computed({
495
715
  get() {
@@ -511,7 +731,6 @@ var Pagination = defineComponent({
511
731
  emit("update:pageSize", val);
512
732
  }
513
733
  });
514
- const totalPages = computed(() => Math.ceil(props.total / props.pageSize));
515
734
  const changeCursorEmit = (val) => {
516
735
  cursor.value = val;
517
736
  emit("pageIndexChange", val);
@@ -530,113 +749,72 @@ var Pagination = defineComponent({
530
749
  const litePageIndexChange = (page) => {
531
750
  changeCursorEmit(page.value);
532
751
  };
533
- return {
534
- cursor,
535
- totalPages,
536
- changeCursorEmit,
537
- currentPageSize,
538
- pageSizeChange,
539
- litePageOptions,
540
- litePageIndexChange
752
+ return () => {
753
+ return autoHide.value && Math.min(...pageSizeOptions.value) > total.value ? null : createVNode("div", {
754
+ "class": ns.b()
755
+ }, [
756
+ canChangePageSize.value && !lite.value && createVNode("div", {
757
+ "class": [ns.e("size"), size.value ? ns.em("size", size.value) : ""]
758
+ }, [createVNode(resolveComponent("d-select"), {
759
+ "options": pageSizeOptions.value,
760
+ "modelValue": currentPageSize.value,
761
+ "onValueChange": pageSizeChange,
762
+ "pageSizeDirection": pageSizeDirection.value
763
+ }, null)]),
764
+ (!lite.value || lite.value && showPageSelector.value) && canViewTotal.value && createVNode("div", {
765
+ "class": ns.e("total-size")
766
+ }, [totalItemText.value || t("totalItemText"), createTextVNode(": "), total.value]),
767
+ lite.value && showPageSelector.value && createVNode("div", {
768
+ "class": ns.e("size")
769
+ }, [createVNode(resolveComponent("d-select"), {
770
+ "options": litePageOptions.value,
771
+ "disabled": total.value === 0,
772
+ "modelValue": cursor.value,
773
+ "onValueChange": litePageIndexChange,
774
+ "pageSizeDirection": pageSizeDirection.value
775
+ }, null)]),
776
+ createVNode(resolveComponent("page-num-btn"), mergeProps({
777
+ cursor: cursor.value,
778
+ totalPages: totalPages.value,
779
+ size: size.value,
780
+ lite: lite.value,
781
+ maxItems: maxItems.value,
782
+ preLink: preLink.value,
783
+ nextLink: nextLink.value,
784
+ showTruePageIndex: showTruePageIndex.value
785
+ }, {
786
+ "onChangeCursorEmit": changeCursorEmit
787
+ }), null),
788
+ canJumpPage.value && !lite.value && createVNode(resolveComponent("jump-page"), mergeProps({
789
+ goToText: goToText.value || t("goToText"),
790
+ size: size.value,
791
+ pageIndex: pageIndex.value,
792
+ totalPages: totalPages.value,
793
+ cursor: cursor.value,
794
+ showJumpButton: showJumpButton.value
795
+ }, {
796
+ "onChangeCursorEmit": changeCursorEmit
797
+ }), null),
798
+ lite.value && haveConfigMenu.value && createVNode(resolveComponent("config-menu"), {
799
+ currentPageSize: currentPageSize.value,
800
+ pageSizeChange,
801
+ pageSizeOptions: pageSizeOptions.value
802
+ }, {
803
+ default: () => {
804
+ var _a;
805
+ return [(_a = slots.default) == null ? void 0 : _a.call(slots)];
806
+ }
807
+ })
808
+ ]);
541
809
  };
542
- },
543
- render() {
544
- const {
545
- total,
546
- pageIndex,
547
- pageSizeOptions,
548
- pageSizeDirection,
549
- preLink,
550
- nextLink,
551
- size,
552
- canJumpPage,
553
- canChangePageSize,
554
- canViewTotal,
555
- totalItemText,
556
- goToText,
557
- maxItems,
558
- showJumpButton,
559
- showTruePageIndex,
560
- lite,
561
- showPageSelector,
562
- haveConfigMenu,
563
- autoHide,
564
- $slots,
565
- cursor,
566
- totalPages,
567
- currentPageSize,
568
- pageSizeChange,
569
- changeCursorEmit,
570
- litePageOptions,
571
- litePageIndexChange
572
- } = this;
573
- return autoHide && Math.min(...pageSizeOptions) > total ? null : createVNode("div", {
574
- "class": "devui-pagination"
575
- }, [
576
- canChangePageSize && !lite && createVNode("div", {
577
- "class": ["devui-page-size", size ? "devui-page-size-" + size : ""]
578
- }, [createVNode(resolveComponent("d-select"), {
579
- "options": pageSizeOptions,
580
- "modelValue": currentPageSize,
581
- "onValueChange": pageSizeChange,
582
- "pageSizeDirection": pageSizeDirection
583
- }, null)]),
584
- (!lite || lite && showPageSelector) && canViewTotal && createVNode("div", {
585
- "class": "devui-total-size"
586
- }, [totalItemText, createTextVNode(": "), total]),
587
- lite && showPageSelector && createVNode("div", {
588
- "class": "devui-page-size"
589
- }, [createVNode(resolveComponent("d-select"), {
590
- "options": litePageOptions,
591
- "disabled": total === 0,
592
- "modelValue": cursor,
593
- "onValueChange": litePageIndexChange,
594
- "pageSizeDirection": pageSizeDirection
595
- }, null)]),
596
- createVNode(resolveComponent("page-num-btn"), mergeProps({
597
- cursor,
598
- totalPages,
599
- size,
600
- lite,
601
- maxItems,
602
- preLink,
603
- nextLink,
604
- showTruePageIndex
605
- }, {
606
- "onChangeCursorEmit": changeCursorEmit
607
- }), null),
608
- canJumpPage && !lite && createVNode(resolveComponent("jump-page"), mergeProps({
609
- goToText,
610
- size,
611
- pageIndex,
612
- totalPages,
613
- cursor,
614
- showJumpButton
615
- }, {
616
- "onChangeCursorEmit": changeCursorEmit
617
- }), null),
618
- lite && haveConfigMenu && createVNode(resolveComponent("config-menu"), {
619
- currentPageSize,
620
- pageSizeChange,
621
- pageSizeOptions
622
- }, {
623
- default: () => {
624
- var _a;
625
- return [(_a = $slots.default) == null ? void 0 : _a.call($slots)];
626
- }
627
- })
628
- ]);
629
810
  }
630
811
  });
631
- Pagination.install = (app) => {
632
- app.component(Pagination.name, Pagination);
633
- };
634
812
  var index = {
635
813
  title: "Pagination \u5206\u9875",
636
814
  category: "\u5BFC\u822A",
637
- status: "\u5DF2\u5B8C\u6210",
815
+ status: "100%",
638
816
  install(app) {
639
- app.use(Pagination);
817
+ app.component(Pagination.name, Pagination);
640
818
  }
641
819
  };
642
- export { Pagination, index as default };
820
+ export { Pagination, index as default, paginationProps };