@dt-frames/ui 2.0.24 → 4.0.1

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 (667) hide show
  1. package/dist/es/_virtual/preload-helper.mjs +1 -0
  2. package/dist/es/assets/node_modules/.pnpm/nprogress@0.2.0/node_modules/nprogress/nprogress-BgDCIyLK.css +1 -0
  3. package/dist/es/components/drawer/index.d.ts +5 -0
  4. package/dist/es/components/drawer/index.mjs +1 -0
  5. package/dist/es/components/drawer/src/hooks/useDrawer.d.ts +3 -0
  6. package/dist/es/components/drawer/src/index.d.ts +20 -0
  7. package/dist/es/components/drawer/src/types/index.d.ts +208 -0
  8. package/dist/es/components/drawer/src/types/index.ts +223 -0
  9. package/dist/es/components/drawer/styles/index.scss +0 -0
  10. package/dist/es/components/form/index.d.ts +9 -0
  11. package/dist/es/components/form/index.mjs +1 -0
  12. package/dist/es/components/form/src/conponents/FormButtons.d.ts +29 -0
  13. package/dist/es/components/form/src/conponents/FormItems.d.ts +19 -0
  14. package/dist/es/components/form/src/conponents/RadioGroup.d.ts +10 -0
  15. package/dist/es/components/form/src/conponents/componentMap.d.ts +4 -0
  16. package/dist/es/components/form/src/hooks/useForm.d.ts +8 -0
  17. package/dist/es/components/form/src/hooks/useFormActions.d.ts +32 -0
  18. package/dist/es/components/form/src/hooks/useFormEvent.d.ts +29 -0
  19. package/dist/es/components/form/src/hooks/useFormValues.d.ts +13 -0
  20. package/dist/es/components/form/src/index.d.ts +493 -0
  21. package/dist/es/components/form/src/types/form.d.ts +355 -0
  22. package/dist/es/components/form/src/types/form.ts +391 -0
  23. package/dist/es/components/form/src/types/item.d.ts +3036 -0
  24. package/dist/es/components/form/src/types/item.ts +3169 -0
  25. package/{es/components/form/src/hooks/helper.d.ts → dist/es/components/form/src/utils/index.d.ts} +7 -5
  26. package/dist/es/components/form/styles/index.scss +10 -0
  27. package/dist/es/components/hover-card/index.d.ts +7 -0
  28. package/dist/es/components/hover-card/index.mjs +1 -0
  29. package/dist/es/components/hover-card/src/hover-card-content.d.ts +24 -0
  30. package/dist/es/components/hover-card/src/hover-card-trigger.d.ts +18 -0
  31. package/dist/es/components/hover-card/src/hover-card.d.ts +22 -0
  32. package/dist/es/components/icon/index.d.ts +4 -0
  33. package/dist/es/components/icon/index.mjs +1 -0
  34. package/dist/es/components/icon/src/index.d.ts +31 -0
  35. package/dist/es/components/icon/src/types/index.d.ts +6 -0
  36. package/dist/es/components/icon-picker/index.d.ts +4 -0
  37. package/dist/es/components/icon-picker/index.mjs +9 -0
  38. package/dist/es/components/icon-picker/src/components/IconPicker.d.ts +23 -0
  39. package/dist/es/components/icon-picker/src/components/SelectIcon.d.ts +39 -0
  40. package/dist/es/components/icon-picker/src/icon.d.ts +13 -0
  41. package/dist/es/components/icon-picker/src/index.d.ts +27 -0
  42. package/dist/es/components/icon-picker/styles/index.scss +0 -0
  43. package/dist/es/components/iframe/index.d.ts +4 -0
  44. package/dist/es/components/iframe/index.mjs +1 -0
  45. package/dist/es/components/iframe/src/index.d.ts +46 -0
  46. package/dist/es/components/modal/index.d.ts +7 -0
  47. package/dist/es/components/modal/index.mjs +1 -0
  48. package/dist/es/components/modal/src/components/Header.d.ts +8 -0
  49. package/dist/es/components/modal/src/hooks/useModal.d.ts +24 -0
  50. package/dist/es/components/modal/src/index.d.ts +822 -0
  51. package/dist/es/components/modal/src/types/modal.d.ts +246 -0
  52. package/dist/es/components/modal/src/types/modal.ts +265 -0
  53. package/dist/es/components/modal/styles/index.scss +8 -0
  54. package/dist/es/components/table/index.d.ts +9 -0
  55. package/dist/es/components/table/index.mjs +1 -0
  56. package/dist/es/components/table/src/components/Pagination.d.ts +15 -0
  57. package/dist/es/components/table/src/components/TableAction.d.ts +18 -0
  58. package/dist/es/components/table/src/components/TableHeader.d.ts +28 -0
  59. package/dist/es/components/table/src/components/TableLoading.d.ts +2 -0
  60. package/dist/es/components/table/src/components/tableSetting/Column.d.ts +222 -0
  61. package/dist/es/components/table/src/components/tableSetting/Download.d.ts +6 -0
  62. package/dist/es/components/table/src/components/tableSetting/DownloadCtrl.d.ts +2 -0
  63. package/dist/es/components/table/src/components/tableSetting/Fullscreen.d.ts +2 -0
  64. package/dist/es/components/table/src/components/tableSetting/Search.d.ts +5 -0
  65. package/dist/es/components/table/src/components/tableSetting/index.d.ts +7 -0
  66. package/dist/es/components/table/src/hooks/useColumns.d.ts +18 -0
  67. package/dist/es/components/table/src/hooks/useDataSource.d.ts +17 -0
  68. package/dist/es/components/table/src/hooks/useLoading.d.ts +7 -0
  69. package/dist/es/components/table/src/hooks/usePagination.d.ts +9 -0
  70. package/dist/es/components/table/src/hooks/useRowSelection.d.ts +7 -0
  71. package/dist/es/components/table/src/hooks/useTable.d.ts +3 -0
  72. package/dist/es/components/table/src/hooks/useTableIns.d.ts +12 -0
  73. package/dist/es/components/table/src/index.d.ts +775 -0
  74. package/dist/es/components/table/src/types/pagination.d.ts +100 -0
  75. package/dist/es/components/table/src/types/pagination.ts +102 -0
  76. package/dist/es/components/table/src/types/table.d.ts +632 -0
  77. package/dist/es/components/table/src/types/table.ts +668 -0
  78. package/dist/es/components/table/styles/index.scss +66 -0
  79. package/dist/es/components/tree/index.d.ts +7 -0
  80. package/dist/es/components/tree/index.mjs +1 -0
  81. package/dist/es/components/tree/src/components/ContextMenu.d.ts +80 -0
  82. package/dist/es/components/tree/src/components/TreeHeader.d.ts +31 -0
  83. package/dist/es/components/tree/src/hooks/useContextMenu.d.ts +11 -0
  84. package/dist/es/components/tree/src/hooks/useTree.d.ts +2 -0
  85. package/dist/es/components/tree/src/index.d.ts +116 -0
  86. package/dist/es/components/tree/src/types/index.d.ts +758 -0
  87. package/dist/es/components/tree/src/types/index.ts +788 -0
  88. package/dist/es/components/tree/styles/index.scss +15 -0
  89. package/dist/es/components/upload/assets/docx-preview-BLYEK_jf.js +38 -0
  90. package/dist/es/components/upload/assets/index-CUsgWuYW.css +1 -0
  91. package/dist/es/components/upload/assets/nprogress-BgDCIyLK.css +1 -0
  92. package/dist/es/components/upload/index.d.ts +6 -0
  93. package/dist/es/components/upload/index.mjs +1 -0
  94. package/dist/es/components/upload/src/components/PdfView.d.ts +2 -0
  95. package/dist/es/components/upload/src/components/WordView.d.ts +4 -0
  96. package/dist/es/components/upload/src/hooks/useFile.d.ts +14 -0
  97. package/dist/es/components/upload/src/index.d.ts +23 -0
  98. package/dist/es/components/upload/src/types/index.d.ts +229 -0
  99. package/dist/es/components/upload/src/utils/index.d.ts +15 -0
  100. package/dist/es/components/upload/styles/index.scss +0 -0
  101. package/dist/es/components/virtual-list/index.d.ts +4 -0
  102. package/dist/es/components/virtual-list/index.mjs +1 -0
  103. package/dist/es/components/virtual-list/src/index.d.ts +32 -0
  104. package/dist/es/components/virtual-list/src/types/index.d.ts +26 -0
  105. package/dist/es/components/virtual-list/styles/index.scss +0 -0
  106. package/dist/es/components/vxe-table/index.d.ts +7 -0
  107. package/dist/es/components/vxe-table/index.mjs +1 -0
  108. package/dist/es/components/vxe-table/src/components/Header.d.ts +28 -0
  109. package/dist/es/components/vxe-table/src/components/Pagination.d.ts +15 -0
  110. package/dist/es/components/vxe-table/src/components/RenderCell.d.ts +10 -0
  111. package/dist/es/components/vxe-table/src/components/TableAction.d.ts +18 -0
  112. package/dist/es/components/vxe-table/src/components/tableSetting/Column.d.ts +222 -0
  113. package/dist/es/components/vxe-table/src/components/tableSetting/Download.d.ts +6 -0
  114. package/dist/es/components/vxe-table/src/components/tableSetting/DownloadCtrl.d.ts +2 -0
  115. package/dist/es/components/vxe-table/src/components/tableSetting/Fullscreen.d.ts +2 -0
  116. package/dist/es/components/vxe-table/src/components/tableSetting/index.d.ts +7 -0
  117. package/dist/es/components/vxe-table/src/helper/index.d.ts +7 -0
  118. package/dist/es/components/vxe-table/src/hooks/useColumns.d.ts +5 -0
  119. package/dist/es/components/vxe-table/src/hooks/usePagination.d.ts +7 -0
  120. package/dist/es/components/vxe-table/src/hooks/useTableIns.d.ts +15 -0
  121. package/dist/es/components/vxe-table/src/hooks/useVxeTable.d.ts +2 -0
  122. package/dist/es/components/vxe-table/src/index.d.ts +155 -0
  123. package/dist/es/components/vxe-table/src/types/index.d.ts +181 -0
  124. package/dist/es/components/vxe-table/src/types/pagination.d.ts +100 -0
  125. package/dist/es/components/vxe-table/src/types/table.d.ts +25 -0
  126. package/dist/es/components/vxe-table/src/utils/index.d.ts +5 -0
  127. package/dist/es/components/vxe-table/styles/index.scss +6 -0
  128. package/dist/es/hooks/useCurd.d.ts +4 -0
  129. package/dist/es/hooks/useCurd.mjs +1 -0
  130. package/dist/es/hooks/useDownload.d.ts +9 -0
  131. package/dist/es/hooks/useDownload.mjs +1 -0
  132. package/dist/es/hooks/useSource.d.ts +10 -0
  133. package/dist/es/hooks/useSource.mjs +1 -0
  134. package/dist/es/index.d.ts +11 -0
  135. package/dist/es/index.mjs +1 -0
  136. package/dist/es/init/config.d.ts +6 -0
  137. package/dist/es/init/config.mjs +1 -0
  138. package/dist/es/init/index.d.ts +11 -0
  139. package/dist/es/init/index.mjs +1 -0
  140. package/dist/es/init/types/appConf.d.ts +331 -0
  141. package/dist/es/init/vxeTable.d.ts +5 -0
  142. package/dist/es/layout/assets/avator-uscRzRXF.png +0 -0
  143. package/dist/es/layout/index.d.ts +11 -0
  144. package/dist/es/layout/index.mjs +3 -0
  145. package/dist/es/layout/src/components/LayoutContent.d.ts +22 -0
  146. package/dist/es/layout/src/components/LayoutFooter.d.ts +23 -0
  147. package/dist/es/layout/src/components/LayoutHeader.d.ts +49 -0
  148. package/dist/es/layout/src/components/LayoutSidebar.d.ts +116 -0
  149. package/dist/es/layout/src/components/LayoutTabbar.d.ts +20 -0
  150. package/dist/es/layout/src/components/content/Content.d.ts +2 -0
  151. package/dist/es/layout/src/components/footer/CopyRight.d.ts +15 -0
  152. package/dist/es/layout/src/components/header/ArrowRight.d.ts +2 -0
  153. package/dist/es/layout/src/components/header/Breadcrumb.d.ts +13 -0
  154. package/dist/es/layout/src/components/header/FullScreen.d.ts +2 -0
  155. package/dist/es/layout/src/components/header/GlobalSearch.d.ts +417 -0
  156. package/dist/es/layout/src/components/header/Header.d.ts +22 -0
  157. package/dist/es/layout/src/components/header/IconButton.d.ts +29 -0
  158. package/dist/es/layout/src/components/header/LanguageToggle.d.ts +8 -0
  159. package/dist/es/layout/src/components/header/Logo.d.ts +54 -0
  160. package/dist/es/layout/src/components/header/User.d.ts +2 -0
  161. package/dist/es/layout/src/components/header/perferences/block/block.d.ts +22 -0
  162. package/dist/es/layout/src/components/header/perferences/block/component/CheckboxItem.d.ts +38 -0
  163. package/dist/es/layout/src/components/header/perferences/block/component/InputItem.d.ts +35 -0
  164. package/dist/es/layout/src/components/header/perferences/block/component/NumberItem.d.ts +36 -0
  165. package/dist/es/layout/src/components/header/perferences/block/component/SelectItem.d.ts +35 -0
  166. package/dist/es/layout/src/components/header/perferences/block/component/SwitchItem.d.ts +33 -0
  167. package/dist/es/layout/src/components/header/perferences/block/component/ToggleItem.d.ts +32 -0
  168. package/dist/es/layout/src/components/header/perferences/block/general/Animation.d.ts +18 -0
  169. package/dist/es/layout/src/components/header/perferences/block/general/General.d.ts +18 -0
  170. package/dist/es/layout/src/components/header/perferences/block/layout/Breadcrumb.d.ts +24 -0
  171. package/dist/es/layout/src/components/header/perferences/block/layout/Content.d.ts +9 -0
  172. package/dist/es/layout/src/components/header/perferences/block/layout/Copyright.d.ts +27 -0
  173. package/dist/es/layout/src/components/header/perferences/block/layout/Footer.d.ts +12 -0
  174. package/dist/es/layout/src/components/header/perferences/block/layout/Header.d.ts +19 -0
  175. package/dist/es/layout/src/components/header/perferences/block/layout/Layout.d.ts +10 -0
  176. package/dist/es/layout/src/components/header/perferences/block/layout/Navigation.d.ts +19 -0
  177. package/dist/es/layout/src/components/header/perferences/block/layout/Sidebar.d.ts +35 -0
  178. package/dist/es/layout/src/components/header/perferences/block/layout/Tabbar.d.ts +39 -0
  179. package/dist/es/layout/src/components/header/perferences/block/layout/Widget.d.ts +33 -0
  180. package/dist/es/layout/src/components/header/perferences/block/shortcut-keys/Global.d.ts +18 -0
  181. package/dist/es/layout/src/components/header/perferences/block/theme/BuiltinTheme.d.ts +16 -0
  182. package/dist/es/layout/src/components/header/perferences/block/theme/ColorMode.d.ts +12 -0
  183. package/dist/es/layout/src/components/header/perferences/block/theme/Radius.d.ts +9 -0
  184. package/dist/es/layout/src/components/header/perferences/block/theme/Theme.d.ts +15 -0
  185. package/dist/es/layout/src/components/header/perferences/icons/content-compact.d.ts +2 -0
  186. package/dist/es/layout/src/components/header/perferences/icons/full-content.d.ts +2 -0
  187. package/dist/es/layout/src/components/header/perferences/icons/header-mixed-nav.d.ts +2 -0
  188. package/dist/es/layout/src/components/header/perferences/icons/header-nav.d.ts +2 -0
  189. package/dist/es/layout/src/components/header/perferences/icons/header-sidebar-nav.d.ts +2 -0
  190. package/dist/es/layout/src/components/header/perferences/icons/index.d.ts +10 -0
  191. package/dist/es/layout/src/components/header/perferences/icons/mixed-nav.d.ts +2 -0
  192. package/dist/es/layout/src/components/header/perferences/icons/sidebar-mixed-nav.d.ts +2 -0
  193. package/dist/es/layout/src/components/header/perferences/icons/sidebar-nav.d.ts +2 -0
  194. package/dist/es/layout/src/components/header/perferences/preferences-button.d.ts +6 -0
  195. package/dist/es/layout/src/components/header/perferences/preferences-drawer.d.ts +223 -0
  196. package/dist/es/layout/src/components/header/perferences/preferences.d.ts +27 -0
  197. package/dist/es/layout/src/components/lockscreen/Lockscreen.d.ts +2 -0
  198. package/{es/theme/src/components/header/components/lock → dist/es/layout/src/components/lockscreen}/Recharge.d.ts +4 -6
  199. package/dist/es/layout/src/components/lockscreen/lockscreen.store.d.ts +9 -0
  200. package/dist/es/layout/src/components/lockscreen/useBattery.d.ts +16 -0
  201. package/dist/es/layout/src/components/lockscreen/useTime.d.ts +3 -0
  202. package/dist/es/layout/src/components/menu/ExtraMenu.d.ts +11 -0
  203. package/dist/es/layout/src/components/menu/Menu.d.ts +12 -0
  204. package/dist/es/layout/src/components/menu/MixedMenu.d.ts +11 -0
  205. package/dist/es/layout/src/components/menu/SidebarCollapseButton.d.ts +9 -0
  206. package/dist/es/layout/src/components/menu/SidebarFixedButton.d.ts +9 -0
  207. package/dist/es/layout/src/components/menu/basic-menu/BasicMenu.d.ts +37 -0
  208. package/dist/es/layout/src/components/menu/basic-menu/CollapseTransition.d.ts +17 -0
  209. package/dist/es/layout/src/components/menu/basic-menu/HoverCard.d.ts +29 -0
  210. package/dist/es/layout/src/components/menu/basic-menu/Menu.d.ts +5 -0
  211. package/dist/es/layout/src/components/menu/basic-menu/MenuBadge.d.ts +6 -0
  212. package/dist/es/layout/src/components/menu/basic-menu/MenuBadgeDot.d.ts +10 -0
  213. package/dist/es/layout/src/components/menu/basic-menu/MenuItem.d.ts +28 -0
  214. package/dist/es/layout/src/components/menu/basic-menu/NoramalMenu.d.ts +14 -0
  215. package/dist/es/layout/src/components/menu/basic-menu/SubMenu.d.ts +6 -0
  216. package/dist/es/layout/src/components/menu/basic-menu/SubMenuCom.d.ts +25 -0
  217. package/dist/es/layout/src/components/menu/basic-menu/SubMenuContent.d.ts +27 -0
  218. package/dist/es/layout/src/components/menu/basic-menu/index.d.ts +2 -0
  219. package/dist/es/layout/src/components/menu/basic-menu/type.d.ts +127 -0
  220. package/dist/es/layout/src/components/menu/hooks/useMenu.d.ts +9 -0
  221. package/dist/es/layout/src/components/menu/hooks/useMenuScroll.d.ts +9 -0
  222. package/dist/es/layout/src/components/tabbar/Tabbar.d.ts +6 -0
  223. package/dist/es/layout/src/components/tabbar/hooks/useTab.d.ts +25 -0
  224. package/dist/es/layout/src/components/tabbar/hooks/useTabbar.d.ts +15 -0
  225. package/dist/es/layout/src/components/tabbar/hooks/useTabsDrag.d.ts +8 -0
  226. package/dist/es/layout/src/components/tabbar/hooks/useTabsViewScroll.d.ts +11 -0
  227. package/dist/es/layout/src/components/tabbar/tabsView/TabsContent.d.ts +959 -0
  228. package/dist/es/layout/src/components/tabbar/tabsView/ToolScreen.d.ts +9 -0
  229. package/dist/es/layout/src/components/tabbar/tabsView/ToolsMore.d.ts +6 -0
  230. package/dist/es/layout/src/components/tabbar/tabsView/types.d.ts +68 -0
  231. package/dist/es/layout/src/const/constants.d.ts +13 -0
  232. package/dist/es/layout/src/const/preferences.config.d.ts +8 -0
  233. package/dist/es/layout/src/hooks/useContext.d.ts +6 -0
  234. package/dist/es/layout/src/hooks/useDesignTokens.d.ts +1 -0
  235. package/dist/es/layout/src/hooks/useExtraMenu.d.ts +12 -0
  236. package/dist/es/layout/src/hooks/useLayoutStyle.d.ts +36 -0
  237. package/dist/es/layout/src/hooks/useMenu.d.ts +4 -0
  238. package/dist/es/layout/src/hooks/useMixedMenu.d.ts +13 -0
  239. package/dist/es/layout/src/hooks/useNavigation.d.ts +5 -0
  240. package/dist/es/layout/src/hooks/useTheme.d.ts +34 -0
  241. package/dist/es/layout/src/index.d.ts +28 -0
  242. package/dist/es/layout/src/layout.d.ts +71 -0
  243. package/dist/es/layout/src/stores/preferences.store.d.ts +66 -0
  244. package/dist/es/layout/src/stores/useTabbar.store.d.ts +185 -0
  245. package/dist/es/layout/src/types/basic.type.d.ts +5 -0
  246. package/dist/es/layout/src/types/menu.type.d.ts +102 -0
  247. package/dist/es/layout/src/types/perferences.type.d.ts +287 -0
  248. package/dist/es/layout/src/types/route.type.d.ts +109 -0
  249. package/dist/es/layout/src/utils/color.d.ts +19 -0
  250. package/dist/es/layout/src/utils/css.d.ts +14 -0
  251. package/dist/es/layout/src/utils/diff.d.ts +6 -0
  252. package/dist/es/layout/src/utils/dom.d.ts +6 -0
  253. package/dist/es/layout/src/utils/letter.d.ts +20 -0
  254. package/dist/es/layout/src/utils/menu.d.ts +20 -0
  255. package/dist/es/layout/styles/css/animation.css +299 -0
  256. package/dist/es/layout/styles/css/dark.css +232 -0
  257. package/dist/es/layout/styles/css/default.css +174 -0
  258. package/dist/es/layout/styles/css/uncss.css +109 -0
  259. package/dist/es/layout/styles/index.scss +871 -0
  260. package/dist/es/lib/components/drawer/index.d.ts +5 -0
  261. package/dist/es/lib/components/drawer/src/hooks/useDrawer.d.ts +3 -0
  262. package/dist/es/lib/components/drawer/src/types/index.d.ts +208 -0
  263. package/dist/es/lib/components/form/index.d.ts +9 -0
  264. package/dist/es/lib/components/form/src/conponents/componentMap.d.ts +4 -0
  265. package/dist/es/lib/components/form/src/hooks/useForm.d.ts +8 -0
  266. package/dist/es/lib/components/form/src/hooks/useFormActions.d.ts +32 -0
  267. package/dist/es/lib/components/form/src/hooks/useFormEvent.d.ts +29 -0
  268. package/dist/es/lib/components/form/src/hooks/useFormValues.d.ts +13 -0
  269. package/dist/es/lib/components/form/src/types/form.d.ts +355 -0
  270. package/dist/es/lib/components/form/src/types/item.d.ts +3170 -0
  271. package/dist/es/lib/components/form/src/utils/index.d.ts +16 -0
  272. package/dist/es/lib/components/hover-card/index.d.ts +7 -0
  273. package/dist/es/lib/components/icon/index.d.ts +4 -0
  274. package/dist/es/lib/components/icon-picker/index.d.ts +4 -0
  275. package/dist/es/lib/components/icon-picker/src/icon.d.ts +13 -0
  276. package/dist/es/lib/components/iframe/index.d.ts +4 -0
  277. package/dist/es/lib/components/modal/index.d.ts +7 -0
  278. package/dist/es/lib/components/modal/src/hooks/useModal.d.ts +24 -0
  279. package/dist/es/lib/components/modal/src/types/modal.d.ts +246 -0
  280. package/dist/es/lib/components/table/index.d.ts +9 -0
  281. package/dist/es/lib/components/table/src/hooks/useColumns.d.ts +18 -0
  282. package/dist/es/lib/components/table/src/hooks/useDataSource.d.ts +17 -0
  283. package/dist/es/lib/components/table/src/hooks/useLoading.d.ts +7 -0
  284. package/dist/es/lib/components/table/src/hooks/usePagination.d.ts +9 -0
  285. package/dist/es/lib/components/table/src/hooks/useRowSelection.d.ts +7 -0
  286. package/dist/es/lib/components/table/src/hooks/useTable.d.ts +3 -0
  287. package/dist/es/lib/components/table/src/hooks/useTableIns.d.ts +12 -0
  288. package/dist/es/lib/components/table/src/types/pagination.d.ts +100 -0
  289. package/dist/es/lib/components/table/src/types/table.d.ts +632 -0
  290. package/dist/es/lib/components/tree/index.d.ts +7 -0
  291. package/dist/es/lib/components/tree/src/enums/index.d.ts +6 -0
  292. package/dist/es/lib/components/tree/src/hooks/useContextMenu.d.ts +11 -0
  293. package/dist/es/lib/components/tree/src/hooks/useTree.d.ts +2 -0
  294. package/dist/es/lib/components/tree/src/types/index.d.ts +758 -0
  295. package/dist/es/lib/components/upload/index.d.ts +4 -0
  296. package/dist/es/lib/components/upload/src/hooks/useFile.d.ts +14 -0
  297. package/dist/es/lib/components/upload/src/types/index.d.ts +88 -0
  298. package/dist/es/lib/components/upload/src/utils/index.d.ts +15 -0
  299. package/dist/es/lib/components/virtual-list/index.d.ts +4 -0
  300. package/dist/es/lib/components/virtual-list/src/types/index.d.ts +26 -0
  301. package/dist/es/lib/components/vxe-table/index.d.ts +7 -0
  302. package/dist/es/lib/components/vxe-table/src/helper/index.d.ts +7 -0
  303. package/dist/es/lib/components/vxe-table/src/hooks/useColumns.d.ts +5 -0
  304. package/dist/es/lib/components/vxe-table/src/hooks/usePagination.d.ts +7 -0
  305. package/dist/es/lib/components/vxe-table/src/hooks/useTableIns.d.ts +15 -0
  306. package/dist/es/lib/components/vxe-table/src/hooks/useVxeTable.d.ts +2 -0
  307. package/dist/es/lib/components/vxe-table/src/types/index.d.ts +181 -0
  308. package/dist/es/lib/components/vxe-table/src/types/pagination.d.ts +100 -0
  309. package/dist/es/lib/components/vxe-table/src/types/table.d.ts +25 -0
  310. package/dist/es/lib/components/vxe-table/src/utils/index.d.ts +5 -0
  311. package/dist/es/lib/hooks/useCurd.d.ts +4 -0
  312. package/dist/es/lib/hooks/useDownload.d.ts +9 -0
  313. package/dist/es/lib/hooks/useSource.d.ts +10 -0
  314. package/dist/es/lib/index.d.ts +10 -0
  315. package/dist/es/lib/init/config.d.ts +6 -0
  316. package/dist/es/lib/init/index.d.ts +11 -0
  317. package/dist/es/lib/init/types/appConf.d.ts +331 -0
  318. package/dist/es/lib/init/vxeTable.d.ts +9 -0
  319. package/dist/es/lib/layout/index.d.ts +11 -0
  320. package/dist/es/lib/layout/src/components/header/perferences/icons/index.d.ts +10 -0
  321. package/dist/es/lib/layout/src/components/lockscreen/lockscreen.store.d.ts +9 -0
  322. package/{es/theme/src/components/header/components/lock → dist/es/lib/layout/src/components/lockscreen}/useBattery.d.ts +5 -0
  323. package/dist/es/lib/layout/src/components/lockscreen/useTime.d.ts +3 -0
  324. package/dist/es/lib/layout/src/components/menu/basic-menu/index.d.ts +2 -0
  325. package/dist/es/lib/layout/src/components/menu/basic-menu/type.d.ts +127 -0
  326. package/dist/es/lib/layout/src/components/menu/hooks/useMenu.d.ts +9 -0
  327. package/dist/es/lib/layout/src/components/menu/hooks/useMenuScroll.d.ts +9 -0
  328. package/dist/es/lib/layout/src/components/tabbar/hooks/useTab.d.ts +25 -0
  329. package/dist/es/lib/layout/src/components/tabbar/hooks/useTabbar.d.ts +15 -0
  330. package/dist/es/lib/layout/src/components/tabbar/hooks/useTabsDrag.d.ts +8 -0
  331. package/dist/es/lib/layout/src/components/tabbar/hooks/useTabsViewScroll.d.ts +11 -0
  332. package/dist/es/lib/layout/src/components/tabbar/tabsView/types.d.ts +68 -0
  333. package/dist/es/lib/layout/src/const/constants.d.ts +13 -0
  334. package/dist/es/lib/layout/src/const/preferences.config.d.ts +8 -0
  335. package/dist/es/lib/layout/src/hooks/useContext.d.ts +6 -0
  336. package/dist/es/lib/layout/src/hooks/useDesignTokens.d.ts +1 -0
  337. package/dist/es/lib/layout/src/hooks/useExtraMenu.d.ts +12 -0
  338. package/dist/es/lib/layout/src/hooks/useLayoutStyle.d.ts +36 -0
  339. package/dist/es/lib/layout/src/hooks/useMenu.d.ts +4 -0
  340. package/dist/es/lib/layout/src/hooks/useMixedMenu.d.ts +13 -0
  341. package/dist/es/lib/layout/src/hooks/useNavigation.d.ts +5 -0
  342. package/dist/es/lib/layout/src/hooks/useTheme.d.ts +34 -0
  343. package/dist/es/lib/layout/src/stores/preferences.store.d.ts +66 -0
  344. package/dist/es/lib/layout/src/stores/useTabbar.store.d.ts +185 -0
  345. package/dist/es/lib/layout/src/types/basic.type.d.ts +5 -0
  346. package/dist/es/lib/layout/src/types/menu.type.d.ts +102 -0
  347. package/dist/es/lib/layout/src/types/perferences.type.d.ts +287 -0
  348. package/dist/es/lib/layout/src/types/route.type.d.ts +109 -0
  349. package/dist/es/lib/layout/src/utils/color.d.ts +19 -0
  350. package/dist/es/lib/layout/src/utils/css.d.ts +14 -0
  351. package/dist/es/lib/layout/src/utils/diff.d.ts +6 -0
  352. package/dist/es/lib/layout/src/utils/dom.d.ts +6 -0
  353. package/dist/es/lib/layout/src/utils/letter.d.ts +20 -0
  354. package/dist/es/lib/layout/src/utils/menu.d.ts +20 -0
  355. package/dist/es/lib/router/goPage.d.ts +1 -0
  356. package/dist/es/lib/router/guard.d.ts +3 -0
  357. package/dist/es/lib/router/index.d.ts +8 -0
  358. package/dist/es/lib/stores/access.store.d.ts +59 -0
  359. package/dist/es/lib/stores/app.store.d.ts +11 -0
  360. package/dist/es/lib/stores/auth.store.d.ts +35 -0
  361. package/dist/es/lib/stores/user.store.d.ts +19 -0
  362. package/dist/es/lib/types/curd.type.d.ts +55 -0
  363. package/dist/es/lib/types/source.type.d.ts +177 -0
  364. package/dist/es/lib/types/user.type.d.ts +32 -0
  365. package/dist/es/lib/utils/api.d.ts +2 -0
  366. package/dist/es/lib/utils/index.d.ts +4 -0
  367. package/dist/es/lib/utils/namespace.d.ts +17 -0
  368. package/dist/es/lib/utils/progress.d.ts +11 -0
  369. package/dist/es/lib/utils/useAuth.d.ts +3 -0
  370. package/dist/es/lib/utils/withInstall.d.ts +4 -0
  371. package/dist/es/mock/userInfo.d.ts +13 -0
  372. package/dist/es/mock/userInfo.mjs +1 -0
  373. package/dist/es/pages/iframe.d.ts +4 -0
  374. package/dist/es/pages/iframe.vue.mjs +1 -0
  375. package/dist/es/pages/iframe.vue2.mjs +1 -0
  376. package/dist/es/pages/init-project.d.ts +2 -0
  377. package/dist/es/pages/init-project.vue.mjs +1 -0
  378. package/dist/es/pages/init-project.vue2.mjs +1 -0
  379. package/dist/es/pages/not-found.d.ts +2 -0
  380. package/dist/es/pages/not-found.vue.mjs +1 -0
  381. package/dist/es/pages/not-found.vue2.mjs +1 -0
  382. package/dist/es/router/goPage.d.ts +1 -0
  383. package/dist/es/router/goPage.mjs +1 -0
  384. package/dist/es/router/guard.d.ts +3 -0
  385. package/dist/es/router/guard.mjs +1 -0
  386. package/dist/es/router/index.d.ts +8 -0
  387. package/dist/es/router/index.mjs +2 -0
  388. package/dist/es/src/index.d.ts +34 -0
  389. package/dist/es/src/types/index.d.ts +6 -0
  390. package/dist/es/stores/access.store.d.ts +59 -0
  391. package/dist/es/stores/access.store.mjs +1 -0
  392. package/dist/es/stores/app.store.d.ts +11 -0
  393. package/dist/es/stores/app.store.mjs +1 -0
  394. package/dist/es/stores/auth.store.d.ts +35 -0
  395. package/dist/es/stores/auth.store.mjs +1 -0
  396. package/dist/es/stores/user.store.d.ts +19 -0
  397. package/dist/es/stores/user.store.mjs +1 -0
  398. package/dist/es/types/curd.type.d.ts +55 -0
  399. package/dist/es/types/source.type.d.ts +177 -0
  400. package/dist/es/types/user.type.d.ts +32 -0
  401. package/dist/es/utils/api.d.ts +2 -0
  402. package/dist/es/utils/index.d.ts +4 -0
  403. package/dist/es/utils/namespace.d.ts +17 -0
  404. package/dist/es/utils/namespace.mjs +1 -0
  405. package/dist/es/utils/progress.d.ts +11 -0
  406. package/dist/es/utils/progress.mjs +2 -0
  407. package/dist/es/utils/useAuth.d.ts +3 -0
  408. package/dist/es/utils/withInstall.d.ts +4 -0
  409. package/dist/es/utils/withInstall.mjs +1 -0
  410. package/dist/es/vite.config.d.ts +30 -0
  411. package/index.d.ts +83 -13
  412. package/index.ts +16 -0
  413. package/package.json +91 -65
  414. package/README.md +0 -18
  415. package/es/assets/data/icons/actions.d.ts +0 -1
  416. package/es/assets/data/icons/actions.ts +0 -423
  417. package/es/assets/data/icons/code.d.ts +0 -1
  418. package/es/assets/data/icons/code.ts +0 -10
  419. package/es/assets/data/icons/commuticate.d.ts +0 -1
  420. package/es/assets/data/icons/commuticate.ts +0 -182
  421. package/es/assets/data/icons/currency.d.ts +0 -1
  422. package/es/assets/data/icons/currency.ts +0 -44
  423. package/es/assets/data/icons/devices.d.ts +0 -1
  424. package/es/assets/data/icons/devices.ts +0 -126
  425. package/es/assets/data/icons/edit.d.ts +0 -1
  426. package/es/assets/data/icons/edit.ts +0 -163
  427. package/es/assets/data/icons/file.d.ts +0 -1
  428. package/es/assets/data/icons/file.ts +0 -99
  429. package/es/assets/data/icons/math.d.ts +0 -1
  430. package/es/assets/data/icons/math.ts +0 -53
  431. package/es/assets/data/icons/message.d.ts +0 -1
  432. package/es/assets/data/icons/message.ts +0 -68
  433. package/es/assets/data/icons/navigate.d.ts +0 -1
  434. package/es/assets/data/icons/navigate.ts +0 -181
  435. package/es/assets/data/icons/other.d.ts +0 -1
  436. package/es/assets/data/icons/other.ts +0 -324
  437. package/es/assets/data/index.d.ts +0 -4
  438. package/es/assets/data/index.ts +0 -58
  439. package/es/assets/icons/iconfont.css +0 -7266
  440. package/es/assets/icons/iconfont.eot +0 -0
  441. package/es/assets/icons/iconfont.svg +0 -5445
  442. package/es/assets/icons/iconfont.ttf +0 -0
  443. package/es/assets/icons/iconfont.woff +0 -0
  444. package/es/assets/icons/iconfont.woff2 +0 -0
  445. package/es/assets/imgs/header/avatar.png +0 -0
  446. package/es/assets/imgs/logo/logo.png +0 -0
  447. package/es/assets/imgs/table/empty.png +0 -0
  448. package/es/assets/imgs/tree/forder-open.svg +0 -1
  449. package/es/assets/imgs/tree/forder.svg +0 -1
  450. package/es/assets/locales/en.d.ts +0 -103
  451. package/es/assets/locales/en.ts +0 -103
  452. package/es/assets/locales/index.d.ts +0 -2
  453. package/es/assets/locales/index.ts +0 -5
  454. package/es/assets/locales/zh.d.ts +0 -104
  455. package/es/assets/locales/zh.ts +0 -104
  456. package/es/components/container/index.d.ts +0 -94
  457. package/es/components/container/index.js +0 -290
  458. package/es/components/container/index.less +0 -64
  459. package/es/components/container/src/components/bar.d.ts +0 -14
  460. package/es/components/container/src/components/scroll-bar.d.ts +0 -70
  461. package/es/components/container/src/hooks/scroll.d.ts +0 -10
  462. package/es/components/container/src/scroll-container.d.ts +0 -76
  463. package/es/components/container/src/slot-container.d.ts +0 -20
  464. package/es/components/container/src/types/scroll.type.d.ts +0 -22
  465. package/es/components/container/src/utils/scroll.d.ts +0 -5
  466. package/es/components/curd/index.d.ts +0 -2
  467. package/es/components/curd/index.js +0 -216
  468. package/es/components/curd/src/components/Curd.d.ts +0 -384
  469. package/es/components/curd/src/hooks/useCurd.d.ts +0 -110
  470. package/es/components/curd/src/props.d.ts +0 -188
  471. package/es/components/curd/src/types/curd.type.d.ts +0 -13
  472. package/es/components/drawer/index.d.ts +0 -7881
  473. package/es/components/drawer/index.js +0 -397
  474. package/es/components/drawer/index.less +0 -16
  475. package/es/components/drawer/src/components/DrawerFooter.d.ts +0 -56
  476. package/es/components/drawer/src/components/DrawerHeader.d.ts +0 -11
  477. package/es/components/drawer/src/hooks/useDrawer.d.ts +0 -3
  478. package/es/components/drawer/src/index.d.ts +0 -7881
  479. package/es/components/drawer/src/props.d.ts +0 -64
  480. package/es/components/drawer/src/types/index.type.d.ts +0 -50
  481. package/es/components/form/index.d.ts +0 -7
  482. package/es/components/form/index.js +0 -1600
  483. package/es/components/form/index.less +0 -361
  484. package/es/components/form/src/components/FormButtons.d.ts +0 -3157
  485. package/es/components/form/src/components/FormItem.d.ts +0 -158
  486. package/es/components/form/src/components/componentMap.d.ts +0 -4
  487. package/es/components/form/src/components/formIcon.d.ts +0 -14
  488. package/es/components/form/src/components/formInputUseDialog.d.ts +0 -17
  489. package/es/components/form/src/components/index.d.ts +0 -4
  490. package/es/components/form/src/components/radioButton.d.ts +0 -34
  491. package/es/components/form/src/enums/index.d.ts +0 -7
  492. package/es/components/form/src/hooks/useForm.d.ts +0 -6
  493. package/es/components/form/src/hooks/useFormActions.d.ts +0 -12
  494. package/es/components/form/src/hooks/useFormEvent.d.ts +0 -25
  495. package/es/components/form/src/hooks/useFormValue.d.ts +0 -3
  496. package/es/components/form/src/hooks/useFormValues.d.ts +0 -11
  497. package/es/components/form/src/hooks/useLabelWidth.d.ts +0 -6
  498. package/es/components/form/src/props.d.ts +0 -127
  499. package/es/components/form/src/types/actions.type.d.ts +0 -15
  500. package/es/components/form/src/types/form.type.d.ts +0 -80
  501. package/es/components/form/src/types/items.type.d.ts +0 -417
  502. package/es/components/icons/index.d.ts +0 -497
  503. package/es/components/icons/index.js +0 -1969
  504. package/es/components/icons/index.less +0 -47
  505. package/es/components/icons/src/pick-icon.d.ts +0 -455
  506. package/es/components/icons/src/svg-icon.d.ts +0 -44
  507. package/es/components/iframe/index.d.ts +0 -2
  508. package/es/components/iframe/index.js +0 -72
  509. package/es/components/iframe/index.less +0 -29
  510. package/es/components/iframe/src/index.d.ts +0 -38
  511. package/es/components/modal/index.d.ts +0 -4
  512. package/es/components/modal/index.js +0 -646
  513. package/es/components/modal/index.less +0 -82
  514. package/es/components/modal/src/components/CloseIcon.d.ts +0 -40
  515. package/es/components/modal/src/components/Modal.d.ts +0 -108
  516. package/es/components/modal/src/components/ModalFooter.d.ts +0 -62
  517. package/es/components/modal/src/components/ModalWrap.d.ts +0 -79
  518. package/es/components/modal/src/hooks/useDrag.d.ts +0 -7
  519. package/es/components/modal/src/hooks/useFullScreen.d.ts +0 -6
  520. package/es/components/modal/src/hooks/useModal.d.ts +0 -5
  521. package/es/components/modal/src/index.d.ts +0 -543
  522. package/es/components/modal/src/props.d.ts +0 -101
  523. package/es/components/modal/src/types/modal.type.d.ts +0 -17
  524. package/es/components/source/hooks/useDownload.d.ts +0 -8
  525. package/es/components/source/hooks/useSource.d.ts +0 -57
  526. package/es/components/source/index.d.ts +0 -2
  527. package/es/components/source/index.js +0 -419
  528. package/es/components/source/types/source.type.d.ts +0 -35
  529. package/es/components/source/utils/index.d.ts +0 -8
  530. package/es/components/table/index.d.ts +0 -3
  531. package/es/components/table/index.js +0 -2445
  532. package/es/components/table/index.less +0 -280
  533. package/es/components/table/src/components/TableAction.d.ts +0 -83
  534. package/es/components/table/src/components/TableRender.d.ts +0 -17
  535. package/es/components/table/src/components/editTable/CellComponent.d.ts +0 -22
  536. package/es/components/table/src/components/editTable/EditTableCell.d.ts +0 -94
  537. package/es/components/table/src/components/editTable/componentMap.d.ts +0 -4
  538. package/es/components/table/src/components/editTable/index.d.ts +0 -9
  539. package/es/components/table/src/components/editTable/props.d.ts +0 -27
  540. package/es/components/table/src/components/tableSetting/Column.d.ts +0 -69
  541. package/es/components/table/src/components/tableSetting/DownloadCtrl.d.ts +0 -22
  542. package/es/components/table/src/components/tableSetting/Fullscreen.d.ts +0 -22
  543. package/es/components/table/src/enums/table.enum.d.ts +0 -5
  544. package/es/components/table/src/hooks/useColumns.d.ts +0 -14
  545. package/es/components/table/src/hooks/useCustomRow.d.ts +0 -20
  546. package/es/components/table/src/hooks/useDataSource.d.ts +0 -15
  547. package/es/components/table/src/hooks/useHeader.d.ts +0 -8
  548. package/es/components/table/src/hooks/useHeaderCode.d.ts +0 -3
  549. package/es/components/table/src/hooks/useLoading.d.ts +0 -6
  550. package/es/components/table/src/hooks/usePagination.d.ts +0 -7
  551. package/es/components/table/src/hooks/useRow.d.ts +0 -5
  552. package/es/components/table/src/hooks/useRowSelection.d.ts +0 -12
  553. package/es/components/table/src/hooks/useTable.d.ts +0 -9
  554. package/es/components/table/src/hooks/useTableInstance.d.ts +0 -16
  555. package/es/components/table/src/hooks/useTableScroll.d.ts +0 -13
  556. package/es/components/table/src/index.d.ts +0 -625
  557. package/es/components/table/src/props.d.ts +0 -180
  558. package/es/components/table/src/types/actions.type.d.ts +0 -21
  559. package/es/components/table/src/types/header.type.d.ts +0 -23
  560. package/es/components/table/src/types/table.type.d.ts +0 -104
  561. package/es/components/tree/index.d.ts +0 -2
  562. package/es/components/tree/index.js +0 -1203
  563. package/es/components/tree/index.less +0 -200
  564. package/es/components/tree/src/basicProps.d.ts +0 -190
  565. package/es/components/tree/src/components/ContextMenu.d.ts +0 -70
  566. package/es/components/tree/src/components/TreeHeader.d.ts +0 -98
  567. package/es/components/tree/src/hooks/useContextMenu.d.ts +0 -2
  568. package/es/components/tree/src/hooks/useTree.d.ts +0 -15
  569. package/es/components/tree/src/index.d.ts +0 -6617
  570. package/es/components/tree/src/type/menu.d.ts +0 -36
  571. package/es/components/tree/src/type/tree.d.ts +0 -50
  572. package/es/components/tree/src/utils/tree.d.ts +0 -7
  573. package/es/components/upload/index.d.ts +0 -4
  574. package/es/components/upload/index.js +0 -655
  575. package/es/components/upload/index.less +0 -83
  576. package/es/components/upload/src/basicProps.d.ts +0 -91
  577. package/es/components/upload/src/components/PdfView.d.ts +0 -9
  578. package/es/components/upload/src/components/WordView.d.ts +0 -7
  579. package/es/components/upload/src/hooks/useFile.d.ts +0 -17
  580. package/es/components/upload/src/index.d.ts +0 -258
  581. package/es/components/upload/src/type/file.d.ts +0 -17
  582. package/es/components/upload/src/utils/fileSize.d.ts +0 -1
  583. package/es/components/upload/src/utils/upload.d.ts +0 -2
  584. package/es/directives/icon.d.ts +0 -2
  585. package/es/directives/index.d.ts +0 -7
  586. package/es/directives/index.js +0 -2015
  587. package/es/directives/permission.d.ts +0 -2
  588. package/es/global.d.ts +0 -7
  589. package/es/index.d.ts +0 -1
  590. package/es/index.js +0 -4
  591. package/es/theme/index.d.ts +0 -12
  592. package/es/theme/index.js +0 -4024
  593. package/es/theme/index.less +0 -1003
  594. package/es/theme/src/components/content/index.d.ts +0 -31
  595. package/es/theme/src/components/feature/back-top.d.ts +0 -5
  596. package/es/theme/src/components/feature/index.d.ts +0 -7
  597. package/es/theme/src/components/footer/index.d.ts +0 -31
  598. package/es/theme/src/components/header/components/bread-crumb.d.ts +0 -6
  599. package/es/theme/src/components/header/components/fullscreen.d.ts +0 -5
  600. package/es/theme/src/components/header/components/index.d.ts +0 -11
  601. package/es/theme/src/components/header/components/lang-picker.d.ts +0 -23
  602. package/es/theme/src/components/header/components/lock/Lockscreen.d.ts +0 -85
  603. package/es/theme/src/components/header/components/lock/index.d.ts +0 -2
  604. package/es/theme/src/components/header/components/lock/useTime.d.ts +0 -7
  605. package/es/theme/src/components/header/components/logo.d.ts +0 -55
  606. package/es/theme/src/components/header/components/menu-filter.d.ts +0 -22
  607. package/es/theme/src/components/header/components/notify.d.ts +0 -22
  608. package/es/theme/src/components/header/components/setting-theme.d.ts +0 -223
  609. package/es/theme/src/components/header/components/size.d.ts +0 -21
  610. package/es/theme/src/components/header/components/theme-drawer/feature.d.ts +0 -138
  611. package/es/theme/src/components/header/components/theme-drawer/index.d.ts +0 -3
  612. package/es/theme/src/components/header/components/theme-drawer/menu-type.d.ts +0 -16
  613. package/es/theme/src/components/header/components/theme-drawer/select.d.ts +0 -58
  614. package/es/theme/src/components/header/components/theme-drawer/switch.d.ts +0 -49
  615. package/es/theme/src/components/header/components/trigger.d.ts +0 -10
  616. package/es/theme/src/components/header/components/user-info.d.ts +0 -44
  617. package/es/theme/src/components/header/helper/change-theme.d.ts +0 -13
  618. package/es/theme/src/components/header/helper/menu-tree.d.ts +0 -4
  619. package/es/theme/src/components/header/index.d.ts +0 -551
  620. package/es/theme/src/components/header/multiple-header.d.ts +0 -660
  621. package/es/theme/src/components/sider/components/basic-menu/basic-menu-item.d.ts +0 -62
  622. package/es/theme/src/components/sider/components/basic-menu/basic-menu.d.ts +0 -207
  623. package/es/theme/src/components/sider/components/basic-menu/basic-sub-menu-item.d.ts +0 -127
  624. package/es/theme/src/components/sider/components/basic-menu/menu-item-content.d.ts +0 -26
  625. package/es/theme/src/components/sider/components/drag-bar.d.ts +0 -14
  626. package/es/theme/src/components/sider/components/layout-menu.d.ts +0 -22
  627. package/es/theme/src/components/sider/components/props.d.ts +0 -69
  628. package/es/theme/src/components/sider/components/sider-trigger.d.ts +0 -17
  629. package/es/theme/src/components/sider/helper/sider.d.ts +0 -12
  630. package/es/theme/src/components/sider/helper/split-menu.d.ts +0 -10
  631. package/es/theme/src/components/sider/index.d.ts +0 -235
  632. package/es/theme/src/components/sider/mix-sider.d.ts +0 -167
  633. package/es/theme/src/components/tabs/components/TabContent.d.ts +0 -36
  634. package/es/theme/src/components/tabs/components/TabRedo.d.ts +0 -23
  635. package/es/theme/src/components/tabs/components/index.d.ts +0 -3
  636. package/es/theme/src/components/tabs/hooks/useMultifyTabs.d.ts +0 -7
  637. package/es/theme/src/components/tabs/hooks/useTabDropdown.d.ts +0 -8
  638. package/es/theme/src/components/tabs/hooks/useTabs.d.ts +0 -10
  639. package/es/theme/src/components/tabs/index.d.ts +0 -86
  640. package/es/theme/src/components/tabs/types/tabs.type.d.ts +0 -7
  641. package/es/theme/src/enums/index.d.ts +0 -1
  642. package/es/theme/src/enums/theme.enum.d.ts +0 -34
  643. package/es/theme/src/hooks/index.d.ts +0 -6
  644. package/es/theme/src/hooks/useDragLine.d.ts +0 -2
  645. package/es/theme/src/hooks/useHeader.d.ts +0 -26
  646. package/es/theme/src/hooks/useMenu.d.ts +0 -29
  647. package/es/theme/src/hooks/useMultifyTab.d.ts +0 -8
  648. package/es/theme/src/hooks/useOpenKeys.d.ts +0 -7
  649. package/es/theme/src/hooks/useTheme.d.ts +0 -9
  650. package/es/theme/src/index.d.ts +0 -1630
  651. package/es/theme/src/setting/theme.setting.d.ts +0 -2
  652. package/es/theme/src/stores/index.d.ts +0 -3
  653. package/es/theme/src/stores/lockscreen.store.d.ts +0 -7
  654. package/es/theme/src/stores/routeReuse.store.d.ts +0 -25
  655. package/es/theme/src/stores/theme.store.d.ts +0 -19
  656. package/es/theme/src/types/index.d.ts +0 -3
  657. package/es/theme/src/types/menu.type.d.ts +0 -15
  658. package/es/theme/src/types/theme.type.d.ts +0 -62
  659. package/es/theme/transition.less +0 -105
  660. package/es/utils/withInstall.d.ts +0 -4
  661. package/index.js +0 -62
  662. package/manualContentPath.js +0 -138
  663. package/tailwind.config.cjs +0 -11
  664. package/tsconfig.json +0 -42
  665. package/tsconfig.node.json +0 -9
  666. package/vite.config.ts +0 -68
  667. /package/{es → dist/es}/components/tree/src/enums/index.d.ts +0 -0
@@ -0,0 +1,3169 @@
1
+ import type { Recordable } from '@dt-frames/core'
2
+ import type { Component, ComputedRef, CSSProperties, Ref, VNode } from 'vue'
3
+ import type {
4
+ CascaderNode,
5
+ CascaderNodePathValue,
6
+ CascaderOption,
7
+ CascaderValue,
8
+ ColProps
9
+ } from 'element-plus'
10
+ import type { RuleType } from './form'
11
+ import { dayjs } from 'element-plus'
12
+ import type { UploadFileType } from '../../../upload/index'
13
+
14
+ type Dayjs = typeof dayjs
15
+ /**
16
+ * 组件的类型
17
+ */
18
+ type ComponentType =
19
+ | 'Cascader'
20
+ | 'CascaderPanel'
21
+ | 'Checkbox'
22
+ | 'CheckboxGroup'
23
+ | 'CheckboxButton'
24
+ | 'ColorPicker'
25
+ | 'ColorPickerPanel'
26
+ | 'DatePicker'
27
+ | 'DateTimePicker'
28
+ | 'Input'
29
+ | 'InputNumber'
30
+ | 'Radio'
31
+ | 'RadioGroup'
32
+ | 'Rate'
33
+ | 'Select'
34
+ | 'SelectGroup'
35
+ | 'VirtualizedSelect'
36
+ | 'Slider'
37
+ | 'Switch'
38
+ | 'TimePicker'
39
+ | 'TimeSelect'
40
+ | 'TreeSelect'
41
+ | 'Upload'
42
+ | 'Divider'
43
+
44
+ type StrOrDynamicStr = string | Ref<string> | ComputedRef<string>
45
+ type BooleanOrDynamicBoolean = boolean | Ref<boolean> | ComputedRef<boolean>
46
+
47
+ type SizeType = 'large' | 'default' | 'small'
48
+
49
+ type SlotType = (model: Recordable) => Component | string | VNode | number
50
+
51
+ /**
52
+ * 用于拓展 element-plus 组件 由于组件库会升级 部分新增属性导致ts报错
53
+ */
54
+ type ExtraType = {
55
+ [key: string]: any
56
+ }
57
+
58
+ type PlacementType =
59
+ | 'top'
60
+ | 'top-start'
61
+ | 'top-end'
62
+ | 'bottom'
63
+ | 'bottom-start'
64
+ | 'bottom-end'
65
+ | 'left'
66
+ | 'left-start'
67
+ | 'left-end'
68
+ | 'right'
69
+ | 'right-start'
70
+ | 'right-end'
71
+
72
+ type CascaderProps = {
73
+ /**
74
+ * 次级菜单的展开方式
75
+ * @default 'click'
76
+ */
77
+ expandTrigger?: 'click' | 'hover'
78
+ /**
79
+ * 是否多选
80
+ * @default false
81
+ */
82
+ multiple?: boolean
83
+ /**
84
+ * 是否严格的遵守父子节点不互相关联
85
+ * @default false
86
+ */
87
+ checkStrictly?: boolean
88
+ /**
89
+ * 在选中节点改变时,是否返回由该节点所在的各级菜单的值所组成的数组,若设置 false,则只返回该节点的值
90
+ * @default true
91
+ */
92
+ emitPath?: boolean
93
+ /**
94
+ * 是否动态加载子节点,需与 lazyLoad 方法结合使用
95
+ * @default false
96
+ */
97
+ lazy?: boolean
98
+ /**
99
+ * 加载动态数据的方法,仅在 lazy 为 true 时有效
100
+ */
101
+ lazyLoad?: (node: Node, resolve: any) => void
102
+ /**
103
+ * 指定选项的值为选项对象的某个属性值
104
+ * @default 'value'
105
+ */
106
+ value?: string
107
+ /**
108
+ * 指定选项标签为选项对象的某个属性值
109
+ * @default 'label'
110
+ */
111
+ label?: string
112
+ /**
113
+ * 指定选项的子选项为选项对象的某个属性值
114
+ * @default 'children'
115
+ */
116
+ children?: string
117
+ /**
118
+ * 指定选项的禁用为选项对象的某个属性值
119
+ * @default 'disabled'
120
+ */
121
+ disabled?: BooleanOrDynamicBoolean
122
+ /**
123
+ * 指定选项的叶子节点的标志位为选项对象的某个属性值
124
+ * @default leaf
125
+ */
126
+ leaf?: 'leaf'
127
+ /**
128
+ * hover 时展开菜单的灵敏度阈值
129
+ * @default 500
130
+ */
131
+ hoverThreshold?: number
132
+ /**
133
+ * 点击节点时是否选中或取消选中该节点
134
+ * @default false
135
+ */
136
+ checkOnClickNode?: boolean
137
+ /**
138
+ * 点击叶子节点(最后一级子节点)时,是否选中或取消选中该节点
139
+ * @default true
140
+ */
141
+ checkOnClickLeaf?: boolean
142
+ /**
143
+ * 是否显示单选框或复选框的前缀(图标)
144
+ * @default true
145
+ */
146
+ showPrefix?: boolean
147
+ } & ExtraType
148
+
149
+ /**
150
+ * 级联选择器
151
+ */
152
+ type CascaderType = {
153
+ /**
154
+ * 选项的数据源, value 和 label 可以通过 CascaderProps 自定义.
155
+ */
156
+ options: CascaderOption[]
157
+ /**
158
+ * 配置选项, 请参阅下面 CascaderProps 表
159
+ */
160
+ props?: CascaderProps
161
+ /**
162
+ * 尺寸
163
+ */
164
+ size?: SizeType
165
+ /**
166
+ * 输入框占位文本
167
+ * @default '请选择...'
168
+ */
169
+ placeholder?: string
170
+ /**
171
+ * 是否禁用
172
+ */
173
+ disabled?: BooleanOrDynamicBoolean
174
+ /**
175
+ * 是否支持清空选项
176
+ */
177
+ clearable?: boolean
178
+ /**
179
+ * 自定义清除图标
180
+ * @default CircleClose
181
+ */
182
+ clearIcon?: string | Component
183
+ /**
184
+ * 输入框中是否显示选中值的完整路径
185
+ * @default true
186
+ */
187
+ showAllLevels?: boolean
188
+ /**
189
+ * 多选模式下是否折叠Tag
190
+ */
191
+ collapseTags?: boolean
192
+ /**
193
+ * 当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true
194
+ * @default false
195
+ */
196
+ collapseTagsTooltip?: boolean
197
+ /**
198
+ * collapse tags 的最大高度
199
+ */
200
+ maxCollapseTagsTooltipHeight?: string | number
201
+ /**
202
+ * 用于分隔选项的字符
203
+ * @default '/'
204
+ */
205
+ separator?: string
206
+ /**
207
+ * 该选项是否可以被搜索
208
+ */
209
+ filterable?: boolean
210
+ /**
211
+ * 自定义搜索逻辑,第一个参数是node,第二个参数是keyword,返回的布尔值表示是否保留该选项
212
+ */
213
+ filterMethod?: (node: CascaderNode, keyword: string) => boolean
214
+ /**
215
+ * 搜索关键词正在输入时的去抖延迟,单位为毫秒
216
+ * @default 300
217
+ */
218
+ debounce?: number
219
+ /**
220
+ * 过滤函数调用前,所要调用的钩子函数,该函数接收要过滤的值作为参数。 如果该函数的返回值是 false 或者是一个被拒绝的 Promise,那么接下来的过滤逻辑便不会执行。
221
+ */
222
+ beforeFilter?: (value: string) => boolean
223
+ /**
224
+ * Cascader 下拉菜单和标签提示的自定义类名
225
+ */
226
+ popperClass?: string
227
+ /**
228
+ * Cascader 下拉菜单和标签提示的自定义样式
229
+ */
230
+ popperStyle?: string
231
+ /**
232
+ * 弹层是否使用 teleport
233
+ * @default true
234
+ */
235
+ teleported?: boolean
236
+ /**
237
+ * tooltip 主题,内置了 dark / light 两种
238
+ * @default 'light'
239
+ */
240
+ effect?: 'dark' | 'light' | string
241
+ /**
242
+ * 标签类型
243
+ * @default 'info'
244
+ */
245
+ tagType?: 'success' | 'info' | 'warning' | 'danger'
246
+ /**
247
+ * tag effect
248
+ * @default 'light'
249
+ */
250
+ tagEffect?: 'light' | 'dark' | 'plain'
251
+ /**
252
+ * 输入时是否触发表单的校验
253
+ * @default true
254
+ */
255
+ validateEvent?: boolean
256
+ /**
257
+ * 需要显示的 Tag 的最大数量 要使用此功能,collapse-tags的值必须为true
258
+ * @default 1
259
+ */
260
+ maxCollapseTags?: number
261
+ /**
262
+ * 组件的空值配置 参考config-provider
263
+ * https://cn.element-plus.org/zh-CN/component/config-provider
264
+ */
265
+ emptyValues?: any[]
266
+ /**
267
+ * 清空选项的值 参考 config-provider
268
+ */
269
+ valueOnClear?: string | number | boolean | (() => void)
270
+ /**
271
+ * 当下拉框未被激活并且persistent设置为false,下拉框容器会被删除。
272
+ * @default true
273
+ */
274
+ persistent?: boolean
275
+ /**
276
+ * 下拉框出现的位置
277
+ */
278
+ placement?: PlacementType
279
+ /**
280
+ * 是否将弹出的内容直接插入到 body 元素。 在弹出内容的边框定位出现问题时,可将该属性设置为 false
281
+ * @default true
282
+ */
283
+ popperAppendToBody?: boolean
284
+ /**
285
+ * 多选模式下已选节点的展示策略。 当你想让显示更简洁时,使用 parent。 当你想显示每个子项时,使用 child
286
+ * @default 'child'
287
+ */
288
+ showCheckedStrategy?: 'parent' | 'child'
289
+ /**
290
+ * 当绑定值变化时触发的事件
291
+ */
292
+ onChange?: (value: CascaderValue, model: Recordable) => void
293
+ /**
294
+ * 当展开节点发生变化时触发
295
+ */
296
+ onExpandChange?: (value: CascaderValue) => void
297
+ /**
298
+ * 当失去焦点时触发
299
+ */
300
+ onBlur?: (event: FocusEvent) => void
301
+ /**
302
+ * 当获得焦点时触发
303
+ */
304
+ onFocus?: (event: FocusEvent) => void
305
+ /**
306
+ * 可清空的单选模式下用户点击清空按钮时触发
307
+ */
308
+ onClear?: () => void
309
+ /**
310
+ * 下拉框出现/隐藏时触发
311
+ */
312
+ onVisibleChange?: (value: boolean) => void
313
+ /**
314
+ * 在多选模式下,移除Tag时触发
315
+ */
316
+ onRemoveTag?: (value: CascaderNode['valueByOption']) => void
317
+ /**
318
+ * 无匹配选项时的内容
319
+ */
320
+ emptySlot?: SlotType
321
+ /**
322
+ * 输入框头部内容
323
+ */
324
+ prefixSlot?: SlotType
325
+ /**
326
+ * 搜索时自定义建议项内容
327
+ */
328
+ suggestionItemSlot?: SlotType
329
+ /**
330
+ * 自定义tag样式
331
+ */
332
+ tagSlot?: SlotType
333
+ /**
334
+ * 下拉列表顶部的内容
335
+ */
336
+ headerSlot?: SlotType
337
+ /**
338
+ * 下拉列表底部的内容
339
+ */
340
+ footer?: SlotType
341
+ } & ExtraType
342
+
343
+ /**
344
+ * 级联面板
345
+ */
346
+ type CascaderPanelType = {
347
+ /**
348
+ * 选项的数据源, value 和 label 可以通过 CascaderProps 自定义.
349
+ */
350
+ options?: CascaderOption[]
351
+ /**
352
+ * 配置选项
353
+ */
354
+ props?: CascaderProps
355
+ /**
356
+ * 当选中节点变化时触发
357
+ */
358
+ onChange?: (value: CascaderValue | undefined) => void
359
+ /**
360
+ * 当绑定值变化时触发的事件
361
+ */
362
+ 'update:modelValue'?: (value: CascaderValue | undefined) => void
363
+ /**
364
+ * 当展开节点发生变化时触发
365
+ */
366
+ onExpandChange?: (value: CascaderNodePathValue) => void
367
+ /**
368
+ * 面板的关闭事件,提供给 Cascader 以便做更好的判断
369
+ */
370
+ onClose?: () => void
371
+ /**
372
+ * 没有数据时面板的内容。
373
+ */
374
+ emptySlot?: SlotType
375
+ }
376
+
377
+ type CheckboxType = {
378
+ /**
379
+ * 选中状态的值(只有在checkbox-group或者绑定对象类型为array时有效)
380
+ */
381
+ value?: string | number | boolean | object
382
+ /**
383
+ * 选中状态的值,只有在绑定对象类型为 array 时有效。 如果没有 value, label则作为value使用
384
+ */
385
+ label?: string | number | boolean | object
386
+ /**
387
+ * 选中时的值
388
+ */
389
+ trueValue?: string | number
390
+ /**
391
+ * 没有选中时的值
392
+ */
393
+ falseValue?: string | number
394
+ /**
395
+ * 是否禁用
396
+ * @default false
397
+ */
398
+ disabled?: BooleanOrDynamicBoolean
399
+ /**
400
+ * 是否显示边框
401
+ * @default false
402
+ */
403
+ border?: boolean
404
+ /**
405
+ * Checkbox 的尺寸
406
+ */
407
+ size?: SizeType
408
+ /**
409
+ * 原生 name 属性
410
+ */
411
+ name?: string
412
+ /**
413
+ * 当前是否勾选
414
+ * @default false
415
+ */
416
+ checked?: boolean
417
+ /**
418
+ * 设置不确定状态,仅负责样式控制
419
+ * @default false
420
+ */
421
+ indeterminate?: boolean
422
+ /**
423
+ * 输入时是否触发表单的校验
424
+ * @default true
425
+ */
426
+ validateEvent?: boolean
427
+ /**
428
+ * 输入框的 tabindex
429
+ */
430
+ tabindex?: string | number
431
+ /**
432
+ * input id
433
+ */
434
+ id?: string
435
+ /**
436
+ * 选中时的值
437
+ */
438
+ trueLabel?: string | number
439
+ /**
440
+ * 没有选中时的值
441
+ */
442
+ falseLabel?: string | number
443
+ /**
444
+ * 当绑定值变化时触发的事件
445
+ */
446
+ onChange?: (value: string | number | boolean) => void
447
+ } & ExtraType
448
+
449
+ /**
450
+ * 多选框组
451
+ */
452
+ type CheckboxGroupType = {
453
+ /**
454
+ * 多选框组尺寸
455
+ */
456
+ size?: SizeType
457
+ /**
458
+ * 是否禁用
459
+ * @default false
460
+ */
461
+ disabled?: BooleanOrDynamicBoolean
462
+ /**
463
+ * 可被勾选的 checkbox 的最小数量
464
+ */
465
+ min?: number
466
+ /**
467
+ * 可被勾选的 checkbox 的最大数量
468
+ */
469
+ max?: number
470
+ /**
471
+ * 当按钮为活跃状态时的字体颜色
472
+ * @default '#ffffff'
473
+ */
474
+ textColor?: string
475
+ /**
476
+ * 当按钮为活跃状态时的边框和背景颜色
477
+ * @default '#409eff'
478
+ */
479
+ fill?: string
480
+ /**
481
+ * 复选框组元素标签
482
+ * @default div
483
+ */
484
+ tag?: string
485
+ /**
486
+ * 是否触发表单验证
487
+ * @default true
488
+ */
489
+ validateEvent?: boolean
490
+ /**
491
+ * 选项的数据源, value 的 key 和 label 和 disabled可以通过 props自定义.
492
+ */
493
+ options?: Array<{ [key: string]: any }>
494
+ /**
495
+ * options 的配置
496
+ * @default {value: 'value', label: 'label', disabled: 'disabled'}
497
+ */
498
+ props?: { value?: string; label?: string; disabled?: boolean }
499
+ /**
500
+ * 当绑定值变化时触发的事件
501
+ */
502
+ onChange?: (value: string[] | number[]) => void
503
+ } & ExtraType
504
+
505
+ type CheckboxButtonType = {
506
+ /**
507
+ * 选中状态的值,只有在绑定对象类型为 array 时有效
508
+ */
509
+ value?: string | number | boolean | object
510
+ /**
511
+ * 选中状态的值,只有在绑定对象类型为 array 时有效。 如果没有 value, label则作为value使用
512
+ */
513
+ label?: string | number | boolean | object
514
+ /**
515
+ * 选中时的值
516
+ */
517
+ trueValue?: string | number
518
+ /**
519
+ * 没有选中时的值
520
+ */
521
+ falseValue?: string | number
522
+ /**
523
+ * 是否禁用
524
+ * @default false
525
+ */
526
+ disabled?: BooleanOrDynamicBoolean
527
+ /**
528
+ * 原生 name 属性
529
+ */
530
+ name?: string
531
+ /**
532
+ * 当前是否勾选
533
+ * @default false
534
+ */
535
+ checked?: boolean
536
+ /**
537
+ * 选中时的值
538
+ */
539
+ trueLabel?: string | number
540
+ /**
541
+ * 没有选中时的值
542
+ */
543
+ falseLabel?: string | number
544
+ } & ExtraType
545
+
546
+ /**
547
+ * 颜色选择器
548
+ */
549
+ type ColorPickerType = {
550
+ /**
551
+ * 是否禁用
552
+ * @default false
553
+ */
554
+ disabled?: BooleanOrDynamicBoolean
555
+ /**
556
+ * 尺寸
557
+ */
558
+ size?: SizeType
559
+ /**
560
+ * 是否支持透明度选择
561
+ * @default false
562
+ */
563
+ showAlpha?: boolean
564
+ /**
565
+ * 写入 v-model 的颜色的格式
566
+ */
567
+ colorFormat?: 'hsl' | 'hsv' | 'hex' | 'rgb' | 'hex' | 'rgb'
568
+ /**
569
+ * ColorPicker 下拉框的类名
570
+ */
571
+ popperClass?: string
572
+ /**
573
+ * ColorPicker 下拉面板的自定义样式
574
+ */
575
+ popperStyle?: string | object
576
+ /**
577
+ * 预定义颜色
578
+ */
579
+ predefine?: string[]
580
+ /**
581
+ * 输入时是否触发表单的校验
582
+ * @default true
583
+ */
584
+ validateEvent?: boolean
585
+ /**
586
+ * ColorPicker 的 tabindex
587
+ */
588
+ tabindex?: string | number
589
+ /**
590
+ * 组件的空值配置 参考config-provider
591
+ * http://www.he-fan.cn/zh-CN/component/config-provider.html
592
+ * @example
593
+ * 下拉框选项包含:{label: '全部', value: ''}
594
+ * 如果设置了 emptyValues = ['', null, undefined],则默认显示全部
595
+ */
596
+ emptyValues?: any[]
597
+ /**
598
+ * 清空选项的值
599
+ * http://www.he-fan.cn/zh-CN/component/config-provider.html
600
+ */
601
+ valueOnClear?: string | number | boolean | (() => void)
602
+ /**
603
+ * ColorPicker 的 id
604
+ */
605
+ id?: string
606
+ /**
607
+ * 是否将 popover 的下拉列表渲染至 body 下
608
+ * @default true
609
+ */
610
+ teleported?: boolean
611
+ /**
612
+ * 当颜色选择器未激活且 persistent 为 false 时,颜色面板将被销毁。
613
+ * @default true
614
+ */
615
+ persistent?: boolean
616
+ /**
617
+ * 挂载到哪个 DOM 元素
618
+ * CSSSelector | HTMLElement
619
+ */
620
+ appendTo?: string | HTMLElement
621
+ /**
622
+ * 是否显示清除按钮
623
+ */
624
+ clearable?: boolean
625
+ /**
626
+ * 当绑定值变化时触发
627
+ */
628
+ onChange?: (value: string) => void
629
+ /**
630
+ * 面板中当前显示的颜色发生改变时触发
631
+ */
632
+ activeChange?: (value: string) => void
633
+ /**
634
+ * 当获得焦点时触发
635
+ */
636
+ onFocus?: (event: FocusEvent) => void
637
+ /**
638
+ * 当失去焦点时触发
639
+ */
640
+ onBlur?: (event: FocusEvent) => void
641
+ } & ExtraType
642
+
643
+ /**
644
+ * 颜色选择器面板
645
+ */
646
+ type ColorPickerPanelType = {
647
+ /**
648
+ * 颜色选择器面板是否有边框
649
+ * @default true
650
+ */
651
+ border?: boolean
652
+ /**
653
+ * 是否禁用
654
+ * @default false
655
+ */
656
+ disabled?: BooleanOrDynamicBoolean
657
+ /**
658
+ * 是否显示 alpha 滑块
659
+ * @default true
660
+ */
661
+ showAlpha?: boolean
662
+ /**
663
+ * 写入 v-model 的颜色的格式
664
+ */
665
+ colorFormat?: 'hsl' | 'hsv' | 'hex' | 'rgb' | 'hex' | 'rgb'
666
+ /**
667
+ * 预定义颜色
668
+ */
669
+ predefine?: string[]
670
+ } & ExtraType
671
+
672
+ /**
673
+ * 日期选择器
674
+ */
675
+ type DefDateType =
676
+ | Date
677
+ | [Date | number | string | Dayjs, Date | number | string | Dayjs]
678
+ | string
679
+ | number
680
+ | Dayjs
681
+ type DatePickerType = {
682
+ /**
683
+ * 只读
684
+ * @default false
685
+ */
686
+ readonly?: boolean
687
+ /**
688
+ * 禁用
689
+ * @default false
690
+ */
691
+ disabled?: BooleanOrDynamicBoolean
692
+ /**
693
+ * 输入框尺寸
694
+ */
695
+ size?: SizeType
696
+ /**
697
+ * 文本框可输入
698
+ * @default true
699
+ */
700
+ editable?: boolean
701
+ /**
702
+ * 是否显示清除按钮
703
+ * @default true
704
+ */
705
+ clearable?: boolean
706
+ /**
707
+ * 有的时候时间需要分成两个字段传给后台,那么就需要设置这个属性
708
+ * @example ['startTime', 'endTime']
709
+ */
710
+ extraName?: string[]
711
+ /**
712
+ * 非范围选择时的占位内容
713
+ * @default '请选择...'
714
+ */
715
+ placeholder?: string
716
+ /**
717
+ * 范围选择时开始日期的占位内容
718
+ */
719
+ startPlaceholder?: string
720
+ /**
721
+ * 范围选择时结束日期的占位内容
722
+ */
723
+ endPlaceholder?: string
724
+ /**
725
+ * 显示类型
726
+ */
727
+ type?:
728
+ | 'year'
729
+ | 'years'
730
+ | 'month'
731
+ | 'months'
732
+ | 'date'
733
+ | 'dates'
734
+ | 'datetime'
735
+ | 'week'
736
+ | 'datetimerange'
737
+ | 'daterange'
738
+ | 'monthrange'
739
+ | 'yearrange'
740
+ /**
741
+ * 显示在输入框中的格式
742
+ * @default YYYY-MM-DD
743
+ */
744
+ format?: string
745
+ /**
746
+ * DatePicker 下拉框的类名
747
+ */
748
+ popperClass?: string
749
+ /**
750
+ * 弹出内容的自定义样式
751
+ */
752
+ popperStyle?: string | object
753
+ /**
754
+ * 自定义 popper 选项,更多请参考 popper.js
755
+ * https://popper.js.org/docs/v2/
756
+ */
757
+ popperOptions?: object
758
+ /**
759
+ * 选择范围时的分隔符
760
+ * @default '-'
761
+ */
762
+ rangeSeparator?: string
763
+ /**
764
+ * 可选,选择器打开时默认显示的时间
765
+ */
766
+ defaultValue?: DefDateType
767
+ /**
768
+ * 范围选择时选中日期所使用的当日内具体时刻
769
+ */
770
+ defaultTime?: DefDateType
771
+ /**
772
+ * 可选,绑定值的格式。 不指定则绑定值为 Date 对象
773
+ * @example 'YYYY-MM-DD'
774
+ */
775
+ valueFormat?: string
776
+ /**
777
+ * 等价于原生 input id 属性
778
+ */
779
+ id?: string
780
+ /**
781
+ * 等价于原生 input name 属性
782
+ */
783
+ name?: string
784
+ /**
785
+ * 在范围选择器里取消两个日期面板之间的联动
786
+ * @default false
787
+ */
788
+ unlinkPanels?: boolean
789
+ /**
790
+ * 自定义前缀图标 如果 type的值是TimeLikeType,那么就是 Clock,不然就是 Calendar
791
+ */
792
+ prefixIcon?: string | Component
793
+ /**
794
+ * 自定义清除图标
795
+ * @default CircleClose
796
+ */
797
+ clearIcon?: string | Component
798
+ /**
799
+ * 是否触发表单验证
800
+ * @default true
801
+ */
802
+ validateEvent?: boolean
803
+ /**
804
+ * 一个用来判断该日期是否被禁用的函数,接受一个 Date 对象作为参数。 应该返回一个 Boolean 值。
805
+ */
806
+ disabledDate?: (data: Date) => boolean
807
+ /**
808
+ * 设置快捷选项,需要传入数组对象
809
+ */
810
+ shortcuts?: Array<{ text: string; value: Date | (() => Date | Date[]) }>
811
+ /**
812
+ * 设置自定义类名
813
+ */
814
+ cellClassName?: (data: Date) => string
815
+ /**
816
+ * 是否将 date-picker 的下拉列表插入至 body 元素
817
+ * @default true
818
+ */
819
+ teleported?: boolean
820
+ /**
821
+ * 组件的空值配置 参考config-provider
822
+ * http://www.he-fan.cn/zh-CN/component/config-provider.html
823
+ * @example
824
+ * 下拉框选项包含:{label: '全部', value: ''}
825
+ * 如果设置了 emptyValues = ['', null, undefined],则默认显示全部
826
+ */
827
+ emptyValues?: any[]
828
+ /**
829
+ * 清空选项的值
830
+ * http://www.he-fan.cn/zh-CN/component/config-provider.html
831
+ */
832
+ valueOnClear?: string | number | boolean | (() => void)
833
+ /**
834
+ * 下拉框出现的位置
835
+ * @default 'bottom'
836
+ */
837
+ placement?: PlacementType
838
+ /**
839
+ * 是否显示 footer
840
+ * @default true
841
+ */
842
+ showFooter?: boolean
843
+ /**
844
+ * 是否显示确定按钮
845
+ * @default true
846
+ */
847
+ showConfirm?: boolean
848
+ /**
849
+ * 显示周数(除周外)
850
+ * @default false
851
+ */
852
+ showWeekNumber?: boolean
853
+ /**
854
+ * 该属性决定在输入框获得焦点时日期选择面板是否弹出
855
+ * @default true
856
+ */
857
+ automaticDropdown?: boolean
858
+ /**
859
+ * 当用户确认值或点击外部时触发
860
+ */
861
+ onChange?: (val: any) => void
862
+ /**
863
+ * 在组件 Input 失去焦点时触发
864
+ */
865
+ onBlur?: (e: FocusEvent) => void
866
+ /**
867
+ * 在组件 Input 获得焦点时触发
868
+ */
869
+ onFocus?: (e: FocusEvent) => void
870
+ /**
871
+ * 可清空的模式下用户点击清空按钮时触发
872
+ */
873
+ onClear?: () => void
874
+ /**
875
+ * 在日历所选日期更改时触发 仅用于 range
876
+ */
877
+ onCalendarChange?: (val: [Date, null | Date]) => void
878
+ /**
879
+ * 当日期面板改变时触发
880
+ */
881
+ onPanelChange?: (date: Date | [Date, Date], mode: 'month' | 'year', view?: string) => void
882
+ /**
883
+ * 当 DatePicker 的下拉列表出现/消失时触发
884
+ */
885
+ onVisibleChange?: (visibility: boolean) => void
886
+ /**
887
+ * 自定义范围分割符内容
888
+ */
889
+ rangeSeparatorSlot?: SlotType
890
+ /**
891
+ * 上个月的图标
892
+ */
893
+ prevMonthSlot?: SlotType
894
+ /**
895
+ * 下个月的图标
896
+ */
897
+ nextMonthSlot?: SlotType
898
+ /**
899
+ * 上一年图标
900
+ */
901
+ prevYearSlot?: SlotType
902
+ /**
903
+ * 下一年图标
904
+ */
905
+ nextYearSlot?: SlotType
906
+ } & ExtraType
907
+
908
+ /**
909
+ * 日期时间选择器
910
+ */
911
+ type DateTimePickerType = {
912
+ /**
913
+ * 只读
914
+ * @default false
915
+ */
916
+ readonly?: false
917
+ /**
918
+ * 禁用
919
+ * @default false
920
+ */
921
+ disabled?: BooleanOrDynamicBoolean
922
+ /**
923
+ * 文本框可输入
924
+ * @default true
925
+ */
926
+ editable?: boolean
927
+ /**
928
+ * 是否显示清除按钮
929
+ * @default true
930
+ */
931
+ clearable?: boolean
932
+ /**
933
+ * 有的时候时间需要分成两个字段传给后台,那么就需要设置这个属性
934
+ * @example ['startTime', 'endTime']
935
+ */
936
+ extraName?: string[]
937
+ /**
938
+ * 输入框尺寸
939
+ */
940
+ size?: SizeType
941
+ /**
942
+ * 非范围选择时的占位内容
943
+ * @default '请选择...'
944
+ */
945
+ placeholder?: string
946
+ /**
947
+ * 范围选择时开始日期的占位内容
948
+ */
949
+ startPlaceholder?: string
950
+ /**
951
+ * 范围选择时结束日期的占位内容
952
+ */
953
+ endPlaceholder?: string
954
+ /**
955
+ * 是否使用箭头进行时间选择
956
+ * @default false
957
+ */
958
+ arrowControl?: boolean
959
+ /**
960
+ * 显示类型
961
+ */
962
+ type?: 'year' | 'month' | 'date' | 'datetime' | 'week' | 'datetimerange' | 'daterange'
963
+ /**
964
+ * 显示在输入框中的格式
965
+ * @default YYYY-MM-DD HH:mm:ss
966
+ */
967
+ format?: string
968
+ /**
969
+ * DateTimePicker 下拉框的类名
970
+ */
971
+ popperClass?: string
972
+ /**
973
+ * 弹出内容的自定义样式
974
+ */
975
+ popperStyle?: string | object
976
+ /**
977
+ * 下拉框出现的位置
978
+ */
979
+ placement?: PlacementType
980
+ /**
981
+ * 选择范围时的分隔符
982
+ * @default '-'
983
+ */
984
+ rangeSeparator?: string
985
+ /**
986
+ * 可选,选择器打开时默认显示的时间
987
+ */
988
+ defaultValue?: DefDateType
989
+ /**
990
+ * 选择日期后的默认时间值。 如未指定则默认时间值为 00:00:00
991
+ */
992
+ defaultTime?: DefDateType
993
+ /**
994
+ * 可选,绑定值的格式。 不指定则绑定值为 Date 对象
995
+ * @example YYYY-MM-DD HH:mm:ss
996
+ */
997
+ valueFormat?: string
998
+ /**
999
+ * 可选,输入框内部面板中显示的日期格式
1000
+ * @default YYYY-MM-DD
1001
+ */
1002
+ dateFormat?: string
1003
+ /**
1004
+ * 可选,输入框内部面板中显示的时间格式
1005
+ * @default HH:mm:ss
1006
+ */
1007
+ timeFormat?: string
1008
+ /**
1009
+ * 等价于原生 input id 属性
1010
+ */
1011
+ id?: string
1012
+ /**
1013
+ * 等价于原生 input name 属性
1014
+ */
1015
+ name?: string
1016
+ /**
1017
+ * 在范围选择器里取消两个日期面板之间的联动
1018
+ * @default false
1019
+ */
1020
+ unlinkPanels?: boolean
1021
+ /**
1022
+ * 自定义前缀图标组件
1023
+ * @default Date
1024
+ */
1025
+ prefixIcon?: string | Component
1026
+ /**
1027
+ * 自定义清除图标
1028
+ * @default CircleClose
1029
+ */
1030
+ clearIcon?: string | Component
1031
+ /**
1032
+ * 设置快捷选项,需要传入数组对象
1033
+ */
1034
+ shortcuts?: Array<{ text: string; value: Date | (() => Date | Date[]) }>
1035
+ /**
1036
+ * 一个用来判断该日期是否被禁用的函数,接受一个 Date 对象作为参数。 应该返回一个 Boolean 值
1037
+ */
1038
+ disabledDate?: (data: Date) => boolean
1039
+ /**
1040
+ * 禁止选择部分小时选项
1041
+ */
1042
+ disabledHours?: (role: string, comparingDate?: Dayjs) => number[]
1043
+ /**
1044
+ * 禁止选择部分分钟选项
1045
+ */
1046
+ disabledMinutes?: (hour: number, role: string, comparingDate?: Dayjs) => number[]
1047
+ /**
1048
+ * 禁止选择部分秒选项
1049
+ */
1050
+ disabledSeconds?: (
1051
+ hour: number,
1052
+ minute: number,
1053
+ role: string,
1054
+ comparingDate?: Dayjs
1055
+ ) => number[]
1056
+ /**
1057
+ * 设置自定义类名
1058
+ */
1059
+ cellClassName?: (data: Date) => string
1060
+ /**
1061
+ * 是否将 datetime-picker 的下拉列表插入至 body 元素
1062
+ * @default true
1063
+ */
1064
+ teleported?: boolean
1065
+ /**
1066
+ * 组件的空值配置 参考config-provider
1067
+ * http://www.he-fan.cn/zh-CN/component/config-provider.html
1068
+ * @example
1069
+ * 下拉框选项包含:{label: '全部', value: ''}
1070
+ * 如果设置了 emptyValues = ['', null, undefined],则默认显示全部
1071
+ */
1072
+ emptyValues?: any[]
1073
+ /**
1074
+ * 清空选项的值
1075
+ * http://www.he-fan.cn/zh-CN/component/config-provider.html
1076
+ */
1077
+ valueOnClear?: string | number | boolean | (() => void)
1078
+ /**
1079
+ * 是否显示 now 按钮
1080
+ * @default true
1081
+ */
1082
+ showNow?: boolean
1083
+ /**
1084
+ * 是否在日期选择器中显示页脚 ^[enum]`'datetime'
1085
+ */
1086
+ showFooter?: boolean
1087
+ /**
1088
+ * 是否显示确定按钮
1089
+ * @default true
1090
+ */
1091
+ showConfirm?: boolean
1092
+ /**
1093
+ * 显示周数(除周外)
1094
+ * @default false
1095
+ */
1096
+ showWeekNumber?: boolean
1097
+ /**
1098
+ * 当用户确认值或点击外部时触发
1099
+ */
1100
+ onChange?: (val: any) => void
1101
+ /**
1102
+ * 在组件 Input 失去焦点时触发
1103
+ */
1104
+ onBlur?: (e: FocusEvent) => void
1105
+ /**
1106
+ * 在组件 Input 获得焦点时触发
1107
+ */
1108
+ onFocus?: (e: FocusEvent) => void
1109
+ /**
1110
+ * 可清空的模式下用户点击清空按钮时触发
1111
+ */
1112
+ onClear?: () => void
1113
+ /**
1114
+ * 如果用户没有选择日期,那默认展示当前日的月份。 仅用于 range
1115
+ */
1116
+ onCalendarChange?: (val: [Date, null | Date]) => void
1117
+ /**
1118
+ * 当日期面板改变时触发
1119
+ */
1120
+ onPanelChange?: (date: Date | [Date, Date], mode: 'month' | 'year', view?: string) => void
1121
+ /**
1122
+ * 当 DateTimePicker 的下拉列表出现/消失时触发
1123
+ */
1124
+ onVisibleChange?: (visibility: boolean) => void
1125
+ /**
1126
+ * 自定义范围分割符内容
1127
+ */
1128
+ rangeSeparatorSlot?: SlotType
1129
+ /**
1130
+ * 上个月的图标
1131
+ */
1132
+ prevMonthSlot?: SlotType
1133
+ /**
1134
+ * 下个月的图标
1135
+ */
1136
+ nextMonthSlot?: SlotType
1137
+ /**
1138
+ * 上一年图标
1139
+ */
1140
+ prevYearSlot?: SlotType
1141
+ /**
1142
+ * 下一年图标
1143
+ */
1144
+ nextYearSlot?: SlotType
1145
+ } & ExtraType
1146
+
1147
+ type InputType = {
1148
+ /**
1149
+ * 类型
1150
+ */
1151
+ type?: 'text' | 'textarea' | 'password'
1152
+ /**
1153
+ * 最大输入长度
1154
+ */
1155
+ maxlength?: string | number
1156
+ /**
1157
+ * 原生属性,最小输入长度
1158
+ */
1159
+ minlength?: number
1160
+ /**
1161
+ * 是否显示输入字数统计,只在 type = "text" 或 type = "textarea" 时有效
1162
+ * @default false
1163
+ */
1164
+ showWordLimit?: boolean
1165
+ /**
1166
+ * 字数统计的位置,仅当 show-word-limit 为 true 时生效。
1167
+ * @default 'inside'
1168
+ */
1169
+ wordLimitPosition?: 'inside' | 'outside'
1170
+ /**
1171
+ * 输入框占位符
1172
+ */
1173
+ placeholder?: StrOrDynamicStr
1174
+ /**
1175
+ * 是否可清空
1176
+ * @default false
1177
+ */
1178
+ clearable?: boolean
1179
+ /**
1180
+ * 自定义清除图标
1181
+ * @default CircleClose
1182
+ */
1183
+ clearIcon?: string | Component
1184
+ /**
1185
+ * 格式化
1186
+ */
1187
+ formatter?: (val: string | number) => string
1188
+ parser?: (val: string) => string
1189
+ /**
1190
+ * 是否显示切换密码图标
1191
+ * @default false
1192
+ */
1193
+ showPassword?: boolean
1194
+ /**
1195
+ * 是否禁用状态
1196
+ */
1197
+ disabled?: BooleanOrDynamicBoolean
1198
+ /**
1199
+ * 输入框尺寸,只在 type 不为 'textarea' 时有效
1200
+ */
1201
+ size?: SizeType
1202
+ /**
1203
+ * 自定义前缀图标
1204
+ */
1205
+ prefixIcon?: string | Component
1206
+ /**
1207
+ * 自定义后缀图标
1208
+ */
1209
+ suffixIcon?: string | Component
1210
+ /**
1211
+ * 文本域行数
1212
+ * @default 2
1213
+ */
1214
+ rows?: number
1215
+ /**
1216
+ * 文本域响应式高度
1217
+ * @default { minRows: 2, maxRows: 6 }
1218
+ */
1219
+ autosize?: boolean | object
1220
+ /**
1221
+ * 原生 max 属性,设置最大值
1222
+ */
1223
+ max?: number
1224
+ /**
1225
+ * 原生属性,设置最小值
1226
+ */
1227
+ min?: number
1228
+ /**
1229
+ * 原生属性,设置输入字段的合法数字间隔
1230
+ */
1231
+ step?: number
1232
+ /**
1233
+ * 控制是否能被用户缩放
1234
+ */
1235
+ resize?: 'none' | 'both' | 'horizontal' | 'vertical'
1236
+ /**
1237
+ * 输入框的 tabindex
1238
+ */
1239
+ tabindex?: string | number
1240
+ /**
1241
+ * 输入时是否触发表单的校验
1242
+ * @default true
1243
+ */
1244
+ validateEvent?: boolean
1245
+ /**
1246
+ * input 元素或 textarea 元素的 style
1247
+ * @default {}
1248
+ */
1249
+ inputStyle?: string | CSSProperties | CSSProperties[] | string[]
1250
+ /**
1251
+ * 等价于原生 input inputmode 属性
1252
+ */
1253
+ inputmode?: string
1254
+ /**
1255
+ * 当选择器的输入框失去焦点时触发
1256
+ */
1257
+ onBlur?: (event: FocusEvent) => void
1258
+ /**
1259
+ * 当选择器的输入框获得焦点时触发
1260
+ */
1261
+ onFocus?: (event: FocusEvent) => void
1262
+ /**
1263
+ * 仅当 modelValue 改变时,当输入框失去焦点或用户按Enter时触发
1264
+ */
1265
+ onChange?: (value: string | number, model: Recordable) => void
1266
+ /**
1267
+ * 在 Input 值改变时触发
1268
+ */
1269
+ onInput?: (value: string | number) => void
1270
+ /**
1271
+ * 在点击由 clearable 属性生成的清空按钮时触发
1272
+ */
1273
+ onClear?: () => void
1274
+ /**
1275
+ * 按下键时触发
1276
+ */
1277
+ onKeydown?: (event: KeyboardEvent | Event) => void
1278
+ /**
1279
+ * 当鼠标离开输入元素时触发
1280
+ */
1281
+ onMouseleave?: (event: MouseEvent) => void
1282
+ /**
1283
+ * 当鼠标进入输入元素时触发
1284
+ */
1285
+ onMouseenter?: (event: MouseEvent) => void
1286
+ /**
1287
+ * 输入法输入开始时触发
1288
+ */
1289
+ onCompositionstart?: (event: CompositionEvent) => void
1290
+ /**
1291
+ * 输入法输入改变时触发
1292
+ */
1293
+ onCompositionupdate?: (event: CompositionEvent) => void
1294
+ /**
1295
+ * 输入法输入完成时触发
1296
+ */
1297
+ onCompositionend?: (event: CompositionEvent) => void
1298
+ /**
1299
+ * 输入框头部内容,只对非 type="textarea" 有效
1300
+ */
1301
+ prefixSlot?: SlotType
1302
+ /**
1303
+ * 输入框尾部内容,只对非 type="textarea" 有效
1304
+ */
1305
+ suffixSlot?: SlotType
1306
+ /**
1307
+ * 输入框前置内容,只对非 type="textarea" 有效
1308
+ */
1309
+ prependSlot?: SlotType
1310
+ /**
1311
+ * 输入框后置内容,只对非 type="textarea" 有效
1312
+ */
1313
+ appendSlot?: SlotType
1314
+
1315
+ [key: string]: any
1316
+ }
1317
+
1318
+ type InputNumberType = {
1319
+ /**
1320
+ * 设置计数器允许的最小值
1321
+ * @default -Infinity
1322
+ */
1323
+ min?: number
1324
+ /**
1325
+ * 设置计数器允许的最大值
1326
+ * @default Infinity
1327
+ */
1328
+ max?: number
1329
+ /**
1330
+ * 计数器步长
1331
+ * @default 1
1332
+ */
1333
+ step?: number
1334
+ /**
1335
+ * 是否只能输入 step 的倍数
1336
+ * @default false
1337
+ */
1338
+ stepStrictly?: boolean
1339
+ /**
1340
+ * 数值精度
1341
+ */
1342
+ precision?: number
1343
+ /**
1344
+ * 计数器尺寸
1345
+ */
1346
+ size?: SizeType
1347
+ /**
1348
+ * 是否禁用计数器
1349
+ * @default false
1350
+ */
1351
+ disabled?: BooleanOrDynamicBoolean
1352
+ /**
1353
+ * 是否使用控制按钮
1354
+ * @default true
1355
+ */
1356
+ controls?: boolean
1357
+ /**
1358
+ * 控制按钮位置
1359
+ * @default 'right'
1360
+ */
1361
+ controlsPosition?: string
1362
+ /**
1363
+ * 原生 name 属性
1364
+ */
1365
+ name?: string
1366
+ /**
1367
+ * 输入框默认 placeholder
1368
+ */
1369
+ placeholder?: string
1370
+ /**
1371
+ * 等价于原生 input id 属性
1372
+ */
1373
+ id?: string
1374
+ /**
1375
+ * 当输入框被清空时显示的值
1376
+ */
1377
+ valueOnClear?: number | null | 'min' | 'max'
1378
+ /**
1379
+ * 内部输入文本对齐
1380
+ * @default 'center'
1381
+ */
1382
+ align?: 'left' | 'center' | 'right'
1383
+ /**
1384
+ * 禁用科学计数法的输入(例如输入 'e')
1385
+ * @default false
1386
+ */
1387
+ disabledScientific?: boolean
1388
+ /**
1389
+ * 输入框内容变化时的回调
1390
+ */
1391
+ onChange?: (currentValue: number | undefined, oldValue: number | undefined) => void
1392
+ /**
1393
+ * 在组件 Input 失去焦点时触发
1394
+ */
1395
+ onBlur?: (event: FocusEvent) => void
1396
+ /**
1397
+ * 在组件 Input 获得焦点时触发
1398
+ */
1399
+ onFocus?: (event: FocusEvent) => void
1400
+ /**
1401
+ * 自定义输入框按钮减少图标
1402
+ */
1403
+ decreaseIconSlot?: SlotType
1404
+ /**
1405
+ * 自定义输入框按钮增加图标
1406
+ */
1407
+ increaseIconSlot?: SlotType
1408
+ /**
1409
+ * 输入框头部内容
1410
+ */
1411
+ prefixSlot?: SlotType
1412
+ /**
1413
+ * 输入框尾部内容
1414
+ */
1415
+ suffixSlot?: SlotType
1416
+ } & ExtraType
1417
+
1418
+ /**
1419
+ * 单选框
1420
+ */
1421
+ type RadioType = {
1422
+ /**
1423
+ * 单选框的值
1424
+ */
1425
+ value?: string | number | boolean
1426
+ /**
1427
+ * 单选框的 label 如果value没有值, label则作为value使用
1428
+ */
1429
+ label?: string | number | boolean
1430
+ /**
1431
+ * 是否禁用单选框
1432
+ * @default false
1433
+ */
1434
+ disabled?: BooleanOrDynamicBoolean
1435
+ /**
1436
+ * 是否显示边框
1437
+ * @default false
1438
+ */
1439
+ border?: boolean
1440
+ /**
1441
+ * 单选框的尺寸
1442
+ */
1443
+ size?: SizeType
1444
+ /**
1445
+ * 原始 name 属性
1446
+ */
1447
+ name?: string
1448
+ /**
1449
+ * 绑定值变化时触发的事件
1450
+ */
1451
+ onChange?: (value: string | number | boolean) => void
1452
+ } & ExtraType
1453
+
1454
+ /**
1455
+ * 单选框组
1456
+ */
1457
+ type RadioGroupType = {
1458
+ /**
1459
+ * 展示形式
1460
+ * @default radio
1461
+ */
1462
+ mode?: 'radio' | 'button'
1463
+ /**
1464
+ * 单选框按钮或边框按钮的大小
1465
+ */
1466
+ size?: SizeType
1467
+ /**
1468
+ * 是否禁用
1469
+ * @default false
1470
+ */
1471
+ disabled?: BooleanOrDynamicBoolean
1472
+ /**
1473
+ * 输入时是否触发表单的校验
1474
+ * @default true
1475
+ */
1476
+ validateEvent?: boolean
1477
+ /**
1478
+ * 按钮形式的 Radio 激活时的文本颜色
1479
+ * @default #ffffff
1480
+ */
1481
+ textColor?: string
1482
+ /**
1483
+ * 按钮形式的 Radio 激活时的填充色和边框色
1484
+ * @default #409eff
1485
+ */
1486
+ fill?: string
1487
+ /**
1488
+ * 原生 name 属性
1489
+ */
1490
+ name?: string
1491
+ /**
1492
+ * 原生 id 属性
1493
+ */
1494
+ id?: string
1495
+ /**
1496
+ * 选项的数据源, value 的 key 和 label 和 disabled可以通过 props自定义.
1497
+ */
1498
+ options?: Array<{ [key: string]: any }>
1499
+ /**
1500
+ * options 的配置
1501
+ * @default {value: 'value', label: 'label', disabled: 'disabled'}
1502
+ */
1503
+ props?: { value?: string; label?: string; disabled?: boolean }
1504
+ /**
1505
+ * 绑定值变化时触发的事件
1506
+ */
1507
+ onChange?: (value: string | number | boolean) => void
1508
+ } & ExtraType
1509
+
1510
+ /**
1511
+ * 评分
1512
+ */
1513
+ type RateType = {
1514
+ /**
1515
+ * 最大分值
1516
+ * @default 5
1517
+ */
1518
+ max?: number
1519
+ /**
1520
+ * 尺寸
1521
+ */
1522
+ size?: SizeType
1523
+ /**
1524
+ * 是否为只读
1525
+ * @default false
1526
+ */
1527
+ disabled?: BooleanOrDynamicBoolean
1528
+ /**
1529
+ * 是否允许半选
1530
+ * @default false
1531
+ */
1532
+ allowHalf?: boolean
1533
+ /**
1534
+ * 低分和中等分数的界限值, 值本身被划分在低分中
1535
+ * @default 2
1536
+ */
1537
+ lowThreshold?: number
1538
+ /**
1539
+ * 高分和中等分数的界限值, 值本身被划分在高分中
1540
+ * @default 4
1541
+ */
1542
+ highThreshold?: number
1543
+ /**
1544
+ * icon 的颜色。 若传入数组,共有 3 个元素,为 3 个分段所对应的颜色;若传入对象,可自定义分段,键名为分段的界限值,键值为对应的颜色
1545
+ * @default "['#f7ba2a', '#f7ba2a', '#f7ba2a']"
1546
+ */
1547
+ colors?: string[] | Record<number, string>
1548
+ /**
1549
+ * 未选中 icon 的颜色
1550
+ * @default #c6d1de
1551
+ */
1552
+ voidColor?: string
1553
+ /**
1554
+ * 只读时未选中 icon 的颜色
1555
+ * @default #eff2f7
1556
+ */
1557
+ disabledVoidColor?: string
1558
+ /**
1559
+ * 图标组件 若传入数组,则需要传入 3 个元素,分别为 3 个部分所对应的类名;若传入对象,则可自定义分段,键名为分段的界限值,键值为对应的类名
1560
+ * @default "[StarFilled, StarFilled, StarFilled]"
1561
+ */
1562
+ icons?: string[] | Component[] | Record<number, string | Component>
1563
+ /**
1564
+ * 未被选中的图标组件
1565
+ * @default Star
1566
+ */
1567
+ voidIcon?: string | Component
1568
+ /**
1569
+ * 禁用状态的未选择图标
1570
+ * @default StarFilled
1571
+ */
1572
+ disabledVoidIcon?: string | Component
1573
+ /**
1574
+ * 是否显示辅助文字,若为真,则会从 texts 数组中选取当前分数对应的文字内容
1575
+ * @default false
1576
+ */
1577
+ showText?: boolean
1578
+ /**
1579
+ * 是否显示当前分数, show-score 和 show-text 不能同时为真
1580
+ * @default false
1581
+ */
1582
+ showScore?: boolean
1583
+ /**
1584
+ * 辅助文字的颜色
1585
+ */
1586
+ textColor?: string
1587
+ /**
1588
+ * 辅助文字数组
1589
+ * @default "['Extremely bad', 'Disappointed', 'Fair', 'Satisfied', 'Surprise']"
1590
+ */
1591
+ texts?: string[]
1592
+ /**
1593
+ * 分数显示模板
1594
+ */
1595
+ scoreTemplate?: string
1596
+ /**
1597
+ * 是否可以重置值为 0
1598
+ * @default false
1599
+ */
1600
+ clearable?: boolean
1601
+ /**
1602
+ * 原生 id 属性
1603
+ */
1604
+ id?: string
1605
+ /**
1606
+ * 分值改变时触发
1607
+ */
1608
+ onChange?: (value: number) => void
1609
+ } & ExtraType
1610
+
1611
+ type SelectType = {
1612
+ /**
1613
+ * 是否多选
1614
+ * @default false
1615
+ */
1616
+ multiple?: boolean
1617
+ /**
1618
+ * 选项的数据源, value 的 key 和 label 和 disabled可以通过 props自定义.
1619
+ */
1620
+ options?: Array<{ [key: string]: any }>
1621
+ /**
1622
+ * options 的配置
1623
+ * @default {value: 'value', label: 'label', options: 'options', disabled: 'disabled'}
1624
+ */
1625
+ props?: { value?: string; label?: string; options?: string; disabled?: boolean }
1626
+ /**
1627
+ * 是否禁用
1628
+ * @default false
1629
+ */
1630
+ disabled?: BooleanOrDynamicBoolean
1631
+ /**
1632
+ * 作为 value 唯一标识的键名,绑定值为对象类型时必填
1633
+ * @default value
1634
+ */
1635
+ valueKey?: string
1636
+ /**
1637
+ * select下拉框类型(线性或面性)
1638
+ */
1639
+ selectType?: '' | 'planarity'
1640
+ /**
1641
+ * 是否可以清空选项
1642
+ * @default false
1643
+ */
1644
+ clearable?: boolean
1645
+ /**
1646
+ * 多选时是否将选中值按文字的形式展示
1647
+ * @default false
1648
+ */
1649
+ collapseTags?: boolean
1650
+ /**
1651
+ * 当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true
1652
+ * @default false
1653
+ */
1654
+ collapseTagsTooltip?: boolean
1655
+ /**
1656
+ * multiple 属性设置为 true 时,代表多选场景下用户最多可以选择的项目数, 为 0 则不限制
1657
+ * @default 0
1658
+ */
1659
+ multipleLimit?: number
1660
+ /**
1661
+ * Select 输入框的原生 name 属性
1662
+ */
1663
+ name?: string
1664
+ /**
1665
+ * 占位符
1666
+ * @default '请选择...'
1667
+ */
1668
+ placeholder?: string
1669
+ /**
1670
+ * Select 组件是否可筛选
1671
+ * @default false
1672
+ */
1673
+ filterable?: boolean
1674
+ /**
1675
+ * 是否允许用户创建新条目, 只有当 filterable 设置为 true 时才会生效。
1676
+ * @default false
1677
+ */
1678
+ allowCreate?: boolean
1679
+ /**
1680
+ * 自定义筛选方法
1681
+ */
1682
+ filterMethod?: () => void
1683
+ /**
1684
+ * 其中的选项是否从服务器远程加载
1685
+ * @default false
1686
+ */
1687
+ remote?: boolean
1688
+ /**
1689
+ * 自定义远程搜索方法
1690
+ */
1691
+ remoteMethod?: () => void
1692
+ /**
1693
+ * 远程搜索方法显示后缀图标
1694
+ * @default false
1695
+ */
1696
+ remoteShowSuffix?: boolean
1697
+ /**
1698
+ * 是否正在从远程获取数据
1699
+ * @default false
1700
+ */
1701
+ loading?: boolean
1702
+ /**
1703
+ * 从服务器加载数据时显示的文本
1704
+ * @default '加载中...'
1705
+ */
1706
+ loadingText?: string
1707
+ /**
1708
+ * 搜索条件无匹配时显示的文字,也可以使用 empty 插槽设置
1709
+ * @default '暂无匹配数据'
1710
+ */
1711
+ noMatchText?: string
1712
+ /**
1713
+ * 无选项时显示的文字,也可以使用 empty 插槽设置自定义内容
1714
+ * @default '暂无数据'
1715
+ */
1716
+ noDataText?: string
1717
+ /**
1718
+ * 选择器下拉菜单的自定义类名
1719
+ */
1720
+ popperClass?: string
1721
+ /**
1722
+ * 当 multiple 和 filterable被设置为 true 时,是否在选中一个选项后保留当前的搜索关键词
1723
+ * @default true
1724
+ */
1725
+ reserveKeyword?: boolean
1726
+ /**
1727
+ * 是否在输入框按下回车时,选择第一个匹配项。 需配合 filterable 或 remote 使用
1728
+ * @default false
1729
+ */
1730
+ defaultFirstOption?: boolean
1731
+ /**
1732
+ * 是否将下拉列表插入至 body 元素
1733
+ * @default true
1734
+ */
1735
+ teleported?: boolean
1736
+ /**
1737
+ * 当下拉选择器未被激活并且persistent设置为false,选择器会被删除。
1738
+ * @default true
1739
+ */
1740
+ persistent?: boolean
1741
+ /**
1742
+ * 对于不可搜索的 Select,是否在输入框获得焦点后自动弹出选项菜单
1743
+ * @default false
1744
+ */
1745
+ automaticDropdown?: boolean
1746
+ /**
1747
+ * 自定义清除图标
1748
+ * @default CircleClose
1749
+ */
1750
+ clearIcon?: string | Component
1751
+ /**
1752
+ * 下拉框的宽度是否与输入框相同
1753
+ * @default false
1754
+ */
1755
+ fitInputWidth?: boolean
1756
+ /**
1757
+ * 自定义后缀图标组件
1758
+ * @default ArrowDown
1759
+ */
1760
+ suffixIcon?: string | Component
1761
+ /**
1762
+ * 下拉菜单显示/消失时后缀图标的动画
1763
+ * @default true
1764
+ */
1765
+ suffixTransition?: boolean
1766
+ /**
1767
+ * 标签类型
1768
+ * @default 'info'
1769
+ */
1770
+ tagType?: '' | 'success' | 'info' | 'warning' | 'danger'
1771
+ /**
1772
+ * 是否触发表单验证
1773
+ * @default true
1774
+ */
1775
+ validateEvent?: boolean
1776
+ /**
1777
+ * 下拉框出现的位置
1778
+ * @default 'bottom-start'
1779
+ */
1780
+ placement?: PlacementType
1781
+ /**
1782
+ * 需要显示的 Tag 的最大数量 只有当 collapse-tags 设置为 true 时才会生效。
1783
+ * @default 1
1784
+ */
1785
+ maxCollapseTags?: number
1786
+ /**
1787
+ * 参考popper.js的参数
1788
+ * https://popper.js.org/docs/v2/
1789
+ */
1790
+ popperOptions?: object
1791
+ /**
1792
+ * 组件的空值配置 参考config-provider
1793
+ * http://www.he-fan.cn/zh-CN/component/config-provider.html
1794
+ * @example
1795
+ * 下拉框选项包含:{label: '全部', value: ''}
1796
+ * 如果设置了 emptyValues = ['', null, undefined],则默认显示全部
1797
+ */
1798
+ emptyValues?: any[]
1799
+ /**
1800
+ * 清空选项的值
1801
+ * http://www.he-fan.cn/zh-CN/component/config-provider.html
1802
+ */
1803
+ valueOnClear?: string | number | boolean | (() => void)
1804
+ /**
1805
+ * 选中值发生变化时触发
1806
+ */
1807
+ onChange?: (value: any) => void
1808
+ /**
1809
+ * 下拉框出现/隐藏时触发
1810
+ */
1811
+ onVisibleChange?: (visible: boolean) => void
1812
+ /**
1813
+ * 多选模式下移除tag时触发
1814
+ */
1815
+ onRemoveTag?: (tagValue: any) => void
1816
+ /**
1817
+ * 可清空的单选模式下用户点击清空按钮时触发
1818
+ */
1819
+ onClear?: () => void
1820
+ /**
1821
+ * 当 input 失去焦点时触发
1822
+ */
1823
+ onBlur?: (event: FocusEvent) => void
1824
+ /**
1825
+ * 当 input 获得焦点时触发
1826
+ */
1827
+ onFocus?: (event: FocusEvent) => void
1828
+ /**
1829
+ * 下拉列表顶部的内容
1830
+ * @desc slot
1831
+ */
1832
+ headerSlot?: SlotType
1833
+ /**
1834
+ * 下拉列表底部的内容
1835
+ */
1836
+ footerSlot?: SlotType
1837
+ /**
1838
+ * Select 组件头部内容
1839
+ */
1840
+ prefixSlot?: SlotType
1841
+ /**
1842
+ * 无选项时的列表
1843
+ */
1844
+ emptySlot?: SlotType
1845
+ /**
1846
+ * select 组件自定义标签内容
1847
+ */
1848
+ tagSlot?: SlotType
1849
+ /**
1850
+ * select 组件自定义 loading内容
1851
+ */
1852
+ loadingSlot?: SlotType
1853
+ /**
1854
+ * select 组件自定义标签内容
1855
+ */
1856
+ labelSlot?: SlotType
1857
+ } & ExtraType
1858
+
1859
+ type SelectGroupType = {
1860
+ /**
1861
+ * 分组的名称
1862
+ */
1863
+ label?: string
1864
+ /**
1865
+ * 是否将该分组下所有选项置为禁用
1866
+ * @default false
1867
+ */
1868
+ disabled?: BooleanOrDynamicBoolean
1869
+ /**
1870
+ * 选项
1871
+ */
1872
+ options?: SelectType[]
1873
+ }
1874
+
1875
+ /**
1876
+ * 虚拟化选择器
1877
+ */
1878
+ type VirtualizedSelectType = {
1879
+ /**
1880
+ * 选项的数据源, value 的 key 和 label 可以通过 props自定义.
1881
+ */
1882
+ options?: Array<any>
1883
+ /**
1884
+ * 配置选项
1885
+ */
1886
+ props?: {
1887
+ /**
1888
+ * 指定选项的值为选项对象的某个属性值
1889
+ * @default value
1890
+ */
1891
+ value?: string
1892
+ /**
1893
+ * 指定节点标签为节点对象的某个属性值
1894
+ * @default label
1895
+ */
1896
+ label?: string
1897
+ /**
1898
+ * 指定选项的子选项为选项对象的某个属性值
1899
+ * @default options
1900
+ */
1901
+ options?: string
1902
+ /**
1903
+ * 指定选项的禁用为选项对象的某个属性值
1904
+ * @default disabled
1905
+ */
1906
+ disabled?: string
1907
+ }
1908
+ /**
1909
+ * 是否多选
1910
+ * @default false
1911
+ */
1912
+ multiple?: boolean
1913
+ /**
1914
+ * 是否禁用
1915
+ * @default false
1916
+ */
1917
+ disabled?: BooleanOrDynamicBoolean
1918
+ /**
1919
+ * 作为 value 唯一标识的键名,绑定值为对象类型时必填
1920
+ * @default value
1921
+ */
1922
+ valueKey?: string
1923
+ /**
1924
+ * 组件大小
1925
+ */
1926
+ size?: SizeType
1927
+ /**
1928
+ * 是否可以清空选项
1929
+ * @default false
1930
+ */
1931
+ clearable?: boolean
1932
+ /**
1933
+ * 自定义清除图标
1934
+ * @default CircleClose
1935
+ */
1936
+ clearIcon?: string | Component
1937
+ /**
1938
+ * 多选时是否将选中值按文字的形式展示
1939
+ * @default false
1940
+ */
1941
+ collapseTags?: boolean
1942
+ /**
1943
+ * 多选时可被选择的最大数目。 当被设置为0时,可被选择的数目不设限。
1944
+ * @default 0
1945
+ */
1946
+ multipleLimit?: number
1947
+ /**
1948
+ * 原生 input 的 id
1949
+ */
1950
+ id?: string
1951
+ /**
1952
+ * 选择器的原生name属性
1953
+ */
1954
+ name?: string
1955
+ /**
1956
+ * tooltip 主题,内置了 dark / light 两种
1957
+ * @default light
1958
+ */
1959
+ effect?: 'dark' | 'light'
1960
+ /**
1961
+ * 自动完成选择输入
1962
+ * @default off
1963
+ */
1964
+ autocomplete?: string
1965
+ /**
1966
+ * 占位文字
1967
+ * @default 请输入
1968
+ */
1969
+ placeholder?: string
1970
+ /**
1971
+ * Select 组件是否可筛选
1972
+ * @default false
1973
+ */
1974
+ filterable?: boolean
1975
+ /**
1976
+ * 是否允许创建新条目, 当使用该属性时,filterable必须设置为true
1977
+ * @default false
1978
+ */
1979
+ allowCreate?: boolean
1980
+ /**
1981
+ * 自定义筛选方法的第一个参数是当前输入的值。 当filterable设置为 true 时才会生效
1982
+ */
1983
+ filterMethod?: (query: string) => void
1984
+ /**
1985
+ * 是否从远程加载数据
1986
+ * @default false
1987
+ */
1988
+ loading?: boolean
1989
+ /**
1990
+ * 从服务器加载数据时显示的文本,默认为“Loading”
1991
+ */
1992
+ loadingText?: string
1993
+ /**
1994
+ * 筛选时,是否在选择选项后保留关键字
1995
+ * @default true
1996
+ */
1997
+ reserveKeyword?: boolean
1998
+ /**
1999
+ * 是否在输入框按下回车时,选择第一个匹配项。 需配合 filterable 或 remote 使用
2000
+ * @default false
2001
+ */
2002
+ defaultFirstOption?: boolean
2003
+ /**
2004
+ * 搜索条件无匹配时显示的文字,也可以使用 empty 插槽设置,默认是 “No matching data'”
2005
+ */
2006
+ noMatchText?: string
2007
+ /**
2008
+ * 当在没有数据时显示的文字,你同时可以使用empty插槽进行设置。
2009
+ * @default 暂无数据
2010
+ */
2011
+ noDataText?: string
2012
+ /**
2013
+ * Select 下拉菜单和标签提示的自定义类名
2014
+ */
2015
+ popperClass?: string | object
2016
+ /**
2017
+ * Select 下拉菜单和标签提示的自定义样式
2018
+ */
2019
+ popperStyle?: string | object
2020
+ /**
2021
+ * 是否使用 teleport。设置成 true则会被追加到 append-to 的位置
2022
+ * @default true
2023
+ */
2024
+ teleported?: boolean
2025
+ /**
2026
+ * 下拉框挂载到哪个 DOM 元素
2027
+ * CSSSelector / HTMLElement
2028
+ */
2029
+ appendTo?: string | HTMLElement
2030
+ /**
2031
+ * 当下拉选择器未被激活并且persistent设置为false,选择器会被删除。
2032
+ * @default true
2033
+ */
2034
+ persistent?: boolean
2035
+ /**
2036
+ * 自定义 popper 选项,更多请参考 popper.js
2037
+ * https://popper.js.org/docs/v2/
2038
+ */
2039
+ popperOptions?: object
2040
+ /**
2041
+ * 对于不可搜索的 Select,是否在输入框获得焦点后自动弹出选项菜单
2042
+ * @default false
2043
+ */
2044
+ automaticDropdown?: boolean
2045
+ /**
2046
+ * 无论下拉框的宽度是否与输入框相同,如果值为number,则宽度是固定的。
2047
+ * @default true
2048
+ */
2049
+ fitInputWidth?: boolean | number
2050
+ /**
2051
+ * 自定义后缀图标组件
2052
+ * @default ArrowDown
2053
+ */
2054
+ suffixIcon?: string | Component
2055
+ /**
2056
+ * 下拉菜单的高度,每一个选项为34px
2057
+ * @default 274
2058
+ */
2059
+ height?: number
2060
+ /**
2061
+ * 下拉项的高度
2062
+ * @default 34
2063
+ */
2064
+ itemHeight?: 34
2065
+ /**
2066
+ * 是否总是展示滚动条
2067
+ * @default false
2068
+ */
2069
+ scrollbarAlwaysOn?: boolean
2070
+ /**
2071
+ * 是否从服务器获取数据
2072
+ * @default false
2073
+ */
2074
+ remote?: boolean
2075
+ /**
2076
+ * 当输入值发生变化时触发的函数。 它的参数就是当前的输入值。 当filterable设置为 true 时才会生效
2077
+ */
2078
+ remoteMethod?: (query: string) => void
2079
+ /**
2080
+ * 是否触发表单验证
2081
+ * @default true
2082
+ */
2083
+ validateEvent?: boolean
2084
+ /**
2085
+ * 下拉面板偏移量
2086
+ * @default 12
2087
+ */
2088
+ offset?: number
2089
+ /**
2090
+ * 下拉菜单的内容是否有箭头
2091
+ * @default true
2092
+ */
2093
+ showArrow?: boolean
2094
+ /**
2095
+ * 下拉框出现的位置
2096
+ * @default bottom-start
2097
+ */
2098
+ placement?: PlacementType
2099
+ /**
2100
+ * 当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此功能,collapse-tags的值必须为true
2101
+ * @default false
2102
+ */
2103
+ collapseTagsTooltip?: boolean
2104
+ /**
2105
+ * 需要显示的 Tag 的最大数量。 只有当 collapse-tags 设置为 true 时才会生效。
2106
+ * @default 1
2107
+ */
2108
+ maxCollapseTags?: number
2109
+ /**
2110
+ * 标签类型
2111
+ * @default info
2112
+ */
2113
+ tagType?: '' | 'success' | 'info' | 'warning' | 'danger'
2114
+ /**
2115
+ * 标签效果
2116
+ * @default light
2117
+ */
2118
+ tagEffect?: '' | 'light' | 'dark' | 'plain'
2119
+ /**
2120
+ * 组件的空值配置 参考config-provider
2121
+ * https://cn.element-plus.org/zh-CN/component/config-provider
2122
+ */
2123
+ emptyValues?: any[]
2124
+ /**
2125
+ * 清空选项的值 参考 config-provider
2126
+ */
2127
+ valueOnClear?: string | number | boolean | (() => void)
2128
+ /**
2129
+ * 是否将弹出框插入至 body 元素 当弹出框的位置出现问题时,你可以尝试将该属性设置为false。
2130
+ * @default false
2131
+ */
2132
+ popperAppendToBody?: boolean
2133
+ /**
2134
+ * input 的 tabindex
2135
+ */
2136
+ tabindex?: string | number
2137
+ /**
2138
+ * 当所选值更改时触发,参数是当前选中的值
2139
+ */
2140
+ onChange?: (val: any) => void
2141
+ /**
2142
+ * 当下拉菜单出现/消失时触发器, 当它出现时, 参数将是 true, 否则将是 false
2143
+ */
2144
+ onVisibleChange?: (visible: boolean) => void
2145
+ /**
2146
+ * 当一个标签在多个模式下被移除时触发,参数将被移除标签值
2147
+ */
2148
+ onRemoveTag?: (tagValue: any) => void
2149
+ /**
2150
+ * 可清空的单选模式下用户点击清空按钮时触发
2151
+ */
2152
+ onClear?: () => void
2153
+ /**
2154
+ * 当选择器的输入框失去焦点时触发
2155
+ */
2156
+ onBlur?: (event: FocusEvent) => void
2157
+ /**
2158
+ * 当选择器的输入框获得焦点时触发
2159
+ */
2160
+ onFocus?: (event: FocusEvent) => void
2161
+ /**
2162
+ * 下拉列表顶部的内容
2163
+ */
2164
+ headerSlot?: SlotType
2165
+ /**
2166
+ * 下拉列表底部的内容
2167
+ */
2168
+ footerSlot?: SlotType
2169
+ /**
2170
+ * 自定义当选项为空时的内容
2171
+ */
2172
+ emptySlot?: SlotType
2173
+ /**
2174
+ * 输入框的前缀
2175
+ */
2176
+ prefixSlot?: SlotType
2177
+ /**
2178
+ * 作为 Select 组件的内容时,子标签 data、selectDisabled 和 deleteTag 是在版本 2.10.3 中新增的。
2179
+ * { data: Option[], selectDisabled: boolean, deleteTag: (event: MouseEvent, option: Option) => void }
2180
+ */
2181
+ tagSlot?: SlotType
2182
+ /**
2183
+ * select 组件自定义 loading内容
2184
+ */
2185
+ loadingSlot?: SlotType
2186
+ /**
2187
+ * select 组件自定义标签内容 index
2188
+ */
2189
+ labelSlot?: SlotType
2190
+ } & ExtraType
2191
+
2192
+ /**
2193
+ * 滑块
2194
+ */
2195
+ type SliderType = {
2196
+ /**
2197
+ * 最小值
2198
+ * @default 0
2199
+ */
2200
+ min?: number
2201
+ /**
2202
+ * 最大值
2203
+ * @default 100
2204
+ */
2205
+ max?: number
2206
+ /**
2207
+ * 是否禁用
2208
+ * @default false
2209
+ */
2210
+ disabled?: BooleanOrDynamicBoolean
2211
+ /**
2212
+ * 步长
2213
+ * @default 1
2214
+ */
2215
+ step?: number
2216
+ /**
2217
+ * 是否显示输入框,仅在非范围选择时有效
2218
+ * @default false
2219
+ */
2220
+ showInput?: boolean
2221
+ /**
2222
+ * 在显示输入框的情况下,是否显示输入框的控制按钮
2223
+ * @default true
2224
+ */
2225
+ showInputControls?: boolean
2226
+ /**
2227
+ * slider 包装器的大小,垂直模式下该属性不可用
2228
+ */
2229
+ size?: SizeType
2230
+ /**
2231
+ * 输入框的大小,如果设置了 size 属性,默认值自动取 size
2232
+ */
2233
+ inputSize?: SizeType
2234
+ /**
2235
+ * 是否显示间断点
2236
+ * @default false
2237
+ */
2238
+ showStops?: boolean
2239
+ /**
2240
+ * 是否显示提示信息
2241
+ * @default true
2242
+ */
2243
+ showTooltip?: boolean
2244
+ /**
2245
+ * 格式化提示信息
2246
+ */
2247
+ formatTooltip?: (value: number) => number | string
2248
+ /**
2249
+ * 是否开启选择范围
2250
+ * @default false
2251
+ */
2252
+ range?: boolean
2253
+ /**
2254
+ * 垂直模式
2255
+ * @default false
2256
+ */
2257
+ vertical?: boolean
2258
+ /**
2259
+ * 滑块高度,垂直模式必填
2260
+ */
2261
+ height?: string
2262
+ /**
2263
+ * 当 range 为true时,屏幕阅读器标签开始的标记
2264
+ */
2265
+ rangeStartLabel?: string
2266
+ /**
2267
+ * 当 range 为true时,屏幕阅读器标签结尾的标记
2268
+ */
2269
+ rangeEndLabel?: string
2270
+ /**
2271
+ * 显示屏幕阅读器的 aria-valuenow 属性的格式
2272
+ */
2273
+ formatValueText?: (value: number) => string
2274
+ /**
2275
+ * 输入时的去抖延迟,毫秒,仅在 show-input 等于 true 时有效
2276
+ * @default 300
2277
+ */
2278
+ debounce?: number
2279
+ /**
2280
+ * tooltip 的自定义类名
2281
+ */
2282
+ tooltipClass?: string
2283
+ /**
2284
+ * Tooltip 出现的位置
2285
+ * @default top
2286
+ */
2287
+ placement?: PlacementType
2288
+ /**
2289
+ * 标记, key 的类型必须为 number 且取值在闭区间 [min, max] 内,每个标记可以单独设置样式
2290
+ */
2291
+ marks?: Record<number, string | { style: CSSProperties; label: any }>
2292
+ /**
2293
+ * 输入时是否触发表单的校验
2294
+ * @default true
2295
+ */
2296
+ validateEvent?: boolean
2297
+ /**
2298
+ * 当 slider 的 tooltip 处于非活动状态且 persistent 为 false 时,Popconfirm 将被销毁。 当 show-tooltip 为 false 时,persistent 将始终为 false。
2299
+ * @default true
2300
+ */
2301
+ persistent?: boolean
2302
+ /**
2303
+ * 值改变时触发(使用鼠标拖曳时,只在松开鼠标后触发)
2304
+ */
2305
+ onChange?: (value: number | number[]) => boolean
2306
+ /**
2307
+ * 数据改变时触发(使用鼠标拖曳时,活动过程实时触发)
2308
+ */
2309
+ onInput?: (value: number | number[]) => boolean
2310
+ } & ExtraType
2311
+
2312
+ /**
2313
+ * 开关
2314
+ */
2315
+ type SwitchType = {
2316
+ /**
2317
+ * 是否禁用
2318
+ * @default false
2319
+ */
2320
+ disabled?: BooleanOrDynamicBoolean
2321
+ /**
2322
+ * 是否显示加载中
2323
+ * @default false
2324
+ */
2325
+ loading?: boolean | Ref<boolean>
2326
+ /**
2327
+ * switch 的大小
2328
+ */
2329
+ size?: SizeType
2330
+ /**
2331
+ * switch 的宽度
2332
+ */
2333
+ width?: number | string
2334
+ /**
2335
+ * 无论图标或文本是否显示在点内,只会呈现文本的第一个字符
2336
+ * @default false
2337
+ */
2338
+ inlinePrompt?: boolean
2339
+ /**
2340
+ * switch 状态为 on 时所显示图标,设置此项会忽略 active-text
2341
+ */
2342
+ activeIcon?: string | Component
2343
+ /**
2344
+ * switch 状态为 off 时所显示图标,设置此项会忽略 inactive-text
2345
+ */
2346
+ inactiveIcon?: string | Component
2347
+ /**
2348
+ * on状态下显示的图标组件
2349
+ */
2350
+ activeActionIcon?: string | Component
2351
+ /**
2352
+ * off状态下显示的图标组件
2353
+ */
2354
+ inactiveActionIcon?: string | Component
2355
+ /**
2356
+ * switch 打开时的文字描述
2357
+ */
2358
+ activeText?: string
2359
+ /**
2360
+ * switch 的状态为 off 时的文字描述
2361
+ */
2362
+ inactiveText?: string
2363
+ /**
2364
+ * switch 状态为 on 时的值
2365
+ * @default true
2366
+ */
2367
+ activeValue?: boolean | string | number
2368
+ /**
2369
+ * switch的状态为 off 时的值
2370
+ * @default false
2371
+ */
2372
+ inactiveValue?: boolean | string | number
2373
+ /**
2374
+ * switch 对应的 name 属性
2375
+ */
2376
+ name?: string
2377
+ /**
2378
+ * 是否触发表单验证
2379
+ * @default true
2380
+ */
2381
+ validateEvent?: boolean
2382
+ /**
2383
+ * switch 状态改变前的钩子, 返回 false 或者返回 Promise 且被 reject 则停止切换
2384
+ */
2385
+ beforeChange?: () => Promise<boolean> | boolean
2386
+ /**
2387
+ * input 的 id
2388
+ */
2389
+ id?: string
2390
+ /**
2391
+ * 当在 on 状态时的背景颜色(推荐使用 CSS var --el-switch-on-color )
2392
+ */
2393
+ activeColor?: string
2394
+ /**
2395
+ * off 状态时的背景颜色(推荐使用 CSS var --el-switch-off-color )
2396
+ */
2397
+ inactiveColor?: string
2398
+ /**
2399
+ * 开关的边框颜色 ( 推荐使用 CSS var --el-switch-border-color )
2400
+ */
2401
+ borderColor?: string
2402
+ /**
2403
+ * switch 状态发生变化时的回调函数
2404
+ */
2405
+ onChange?: (val: boolean | string | number) => void
2406
+ /**
2407
+ * 自定义 active 行为
2408
+ */
2409
+ activeActionSlot?: SlotType
2410
+ /**
2411
+ * 自定义 inactive 行为
2412
+ */
2413
+ inactiveAction?: SlotType
2414
+ } & ExtraType
2415
+
2416
+ /**
2417
+ * 时间选择器
2418
+ */
2419
+ type TimePickerType = {
2420
+ /**
2421
+ * 完全只读
2422
+ * @default false
2423
+ */
2424
+ readonly?: boolean
2425
+ /**
2426
+ * 禁用
2427
+ * @default false
2428
+ */
2429
+ disabled?: BooleanOrDynamicBoolean
2430
+ /**
2431
+ * 文本框可输入
2432
+ * @default true
2433
+ */
2434
+ editable?: boolean
2435
+ /**
2436
+ * 是否显示清除按钮
2437
+ * @default true
2438
+ */
2439
+ clearable?: boolean
2440
+ /**
2441
+ * 输入框尺寸
2442
+ */
2443
+ size?: SizeType
2444
+ /**
2445
+ * 非范围选择时的占位内容
2446
+ */
2447
+ placeholder?: string
2448
+ /**
2449
+ * 范围选择时开始日期的占位内容
2450
+ */
2451
+ startPlaceholder?: string
2452
+ /**
2453
+ * 范围选择时结束日期的占位内容
2454
+ */
2455
+ endPlaceholder?: string
2456
+ /**
2457
+ * 是否为时间范围选择
2458
+ * @default false
2459
+ */
2460
+ isRange?: boolean
2461
+ /**
2462
+ * 是否使用箭头进行时间选择
2463
+ * @default false
2464
+ */
2465
+ arrowControl?: boolean
2466
+ /**
2467
+ * TimePicker 下拉框的类名
2468
+ */
2469
+ popperClass?: string
2470
+ /**
2471
+ * 为 TimePicke 的下拉菜单自定义样式
2472
+ */
2473
+ popperStyle?: string | object
2474
+ /**
2475
+ * 自定义 popper 选项,更多请参考 popper.js
2476
+ * https://popper.js.org/docs/v2/
2477
+ */
2478
+ popperOptions?: object
2479
+ /**
2480
+ * 下拉框出现的位置
2481
+ * @default bottom
2482
+ */
2483
+ placement?: PlacementType
2484
+ /**
2485
+ * 选择范围时的分隔符
2486
+ * @default '-'
2487
+ */
2488
+ rangeSeparator?: string
2489
+ /**
2490
+ * 显示在输入框中的格式
2491
+ */
2492
+ format?: string
2493
+ /**
2494
+ * 可选,选择器打开时默认显示的时间
2495
+ */
2496
+ defaultValue?: Date | [Date, Date]
2497
+ /**
2498
+ * 可选,绑定值的格式。 不指定则绑定值为 Date 对象
2499
+ */
2500
+ valueFormat?: string
2501
+ /**
2502
+ * 等价于原生 input id 属性
2503
+ */
2504
+ id?: string
2505
+ /**
2506
+ * 等价于原生 input name 属性
2507
+ */
2508
+ name?: string
2509
+ /**
2510
+ * 自定义前缀图标
2511
+ * @default Clock
2512
+ */
2513
+ prefixIcon?: string | Component
2514
+ /**
2515
+ * 自定义清除图标
2516
+ * @default CircleClose
2517
+ */
2518
+ clearIcon?: string | Component
2519
+ /**
2520
+ * 禁止选择部分小时选项
2521
+ */
2522
+ disabledHours?: (role: string, comparingDate?: Dayjs) => number[]
2523
+ /**
2524
+ * 禁止选择部分分钟选项
2525
+ */
2526
+ disabledMinutes?: (hour: number, role: string, comparingDate?: Dayjs) => number[]
2527
+ /**
2528
+ * 禁止选择部分秒选项
2529
+ */
2530
+ disabledSeconds?: (
2531
+ hour: number,
2532
+ minute: number,
2533
+ role: string,
2534
+ comparingDate?: Dayjs
2535
+ ) => number[]
2536
+ /**
2537
+ * 是否将 popover 的下拉列表镜像至 body 元素
2538
+ * @default true
2539
+ */
2540
+ teleported?: boolean
2541
+ /**
2542
+ * 输入框的 tabindex
2543
+ */
2544
+ tabindex?: string | number
2545
+ /**
2546
+ * 组件的空值配置 参考config-provider
2547
+ * https://cn.element-plus.org/zh-CN/component/config-provider
2548
+ */
2549
+ emptyValues?: any[]
2550
+ /**
2551
+ * 清空选项的值 参考 config-provider
2552
+ */
2553
+ valueOnClear?: string | number | boolean | (() => void)
2554
+ /**
2555
+ * 用户确认选定的值时触发
2556
+ */
2557
+ onChange?: (
2558
+ val: number | string | Date | [number, number] | [string, string] | [Date, Date]
2559
+ ) => void
2560
+ /**
2561
+ * 在组件 Input 失去焦点时触发
2562
+ */
2563
+ onBlur?: (e: FocusEvent) => void
2564
+ /**
2565
+ * 在组件 Input 获得焦点时触发
2566
+ */
2567
+ onFocus?: (e: FocusEvent) => void
2568
+ /**
2569
+ * 可清空的模式下用户点击清空按钮时触发
2570
+ */
2571
+ onClear?: () => void
2572
+ /**
2573
+ * 当 TimePicker 的下拉列表出现/消失时触发
2574
+ */
2575
+ onVisibleChange?: (visibility: boolean) => void
2576
+ } & ExtraType
2577
+
2578
+ /**
2579
+ * 时间选择
2580
+ */
2581
+ type TimeSelectType = {
2582
+ /**
2583
+ * 禁用状态
2584
+ * @default false
2585
+ */
2586
+ disabled?: BooleanOrDynamicBoolean
2587
+ /**
2588
+ * 文本框可输入
2589
+ * @default true
2590
+ */
2591
+ editable?: boolean
2592
+ /**
2593
+ * 是否显示清除按钮
2594
+ * @default true
2595
+ */
2596
+ clearable?: boolean
2597
+ /**
2598
+ * 是否在选项中包含end
2599
+ * @default false
2600
+ */
2601
+ includeEndTime?: boolean
2602
+ /**
2603
+ * 输入框尺寸
2604
+ */
2605
+ size?: SizeType
2606
+ /**
2607
+ * 非范围选择时的占位内容
2608
+ */
2609
+ placeholder?: string
2610
+ /**
2611
+ * 原生属性
2612
+ */
2613
+ name?: string
2614
+ /**
2615
+ * Tooltip 主题,内置了 dark / light 两种主题
2616
+ * @default light
2617
+ */
2618
+ effect?: string | 'dark' | 'light'
2619
+ /**
2620
+ * 自定义前缀图标
2621
+ * @default Clock
2622
+ */
2623
+ prefixIcon?: string | Component
2624
+ /**
2625
+ * 自定义清除图标
2626
+ * @default CircleClose
2627
+ */
2628
+ clearIcon?: string | Component
2629
+ /**
2630
+ * 开始时间
2631
+ * @default 09:00
2632
+ */
2633
+ start?: string
2634
+ /**
2635
+ * 结束时间
2636
+ * @default 18:00
2637
+ */
2638
+ end?: string
2639
+ /**
2640
+ * 间隔时间
2641
+ * @default 00:30
2642
+ */
2643
+ step?: string
2644
+ /**
2645
+ * 最早时间点,早于该时间的时间段将被禁用
2646
+ */
2647
+ minTime?: string
2648
+ /**
2649
+ * 最晚时间点,晚于该时间的时间段将被禁用
2650
+ */
2651
+ maxTime?: string
2652
+ /**
2653
+ * 设置时间格式
2654
+ * @default HH:mm
2655
+ */
2656
+ format?: string
2657
+ /**
2658
+ * 组件的空值配置 参考config-provider
2659
+ * https://cn.element-plus.org/zh-CN/component/config-provider
2660
+ */
2661
+ emptyValues?: any[]
2662
+ /**
2663
+ * 清空选项的值 参考 config-provider
2664
+ */
2665
+ valueOnClear?: string | number | boolean | (() => void)
2666
+ /**
2667
+ * 为 TimeSelect 下拉面板设置自定义类名
2668
+ */
2669
+ popperClass?: string
2670
+ /**
2671
+ * 为 TimeSelect 下拉面板设置自定义样式
2672
+ */
2673
+ popperStyle?: string | object
2674
+ /**
2675
+ * 用户确认选定的值时触发
2676
+ */
2677
+ onChange?: (value: string) => void
2678
+ /**
2679
+ * 在组件 Input 失去焦点时触发
2680
+ */
2681
+ onBlur?: (event: FocusEvent) => void
2682
+ /**
2683
+ * 在组件 Input 获得焦点时触发
2684
+ */
2685
+ onFocus?: (event: FocusEvent) => void
2686
+ /**
2687
+ * 可清空的单选模式下用户点击清空按钮时触发
2688
+ */
2689
+ onClear?: () => void
2690
+ } & ExtraType
2691
+
2692
+ /**
2693
+ * 树形控件
2694
+ */
2695
+ type TreeType = {
2696
+ /**
2697
+ * 展示数据
2698
+ */
2699
+ data?: Array<{ [key: string]: any }>
2700
+ /**
2701
+ * 内容为空的时候展示的文本
2702
+ */
2703
+ emptyText?: string
2704
+ /**
2705
+ * 每个树节点用来作为唯一标识的属性,整棵树应该是唯一的
2706
+ */
2707
+ nodeKey?: string
2708
+ /**
2709
+ * 配置选项
2710
+ */
2711
+ props?: {
2712
+ /**
2713
+ * 指定节点标签为节点对象的某个属性值
2714
+ */
2715
+ label?: string | ((data: any, node: any) => string)
2716
+ /**
2717
+ * 指定子树为节点对象的某个属性值
2718
+ */
2719
+ children?: string
2720
+ /**
2721
+ * 指定节点选择框是否禁用为节点对象的某个属性值
2722
+ */
2723
+ disabled?: string | ((data: any, node: any) => boolean)
2724
+ /**
2725
+ * 指定节点是否为叶子节点,仅在指定了 lazy 属性的情况下生效
2726
+ */
2727
+ isLeaf?: string | ((data: any, node: any) => boolean)
2728
+ /**
2729
+ * 自定义节点类名
2730
+ */
2731
+ class?: string | ((data: any, node: any) => boolean)
2732
+ }
2733
+ /**
2734
+ * 是否在第一次展开某个树节点后才渲染其子节点
2735
+ * @default true
2736
+ */
2737
+ renderAfterExpand?: boolean
2738
+ /**
2739
+ * 加载子树数据的方法,仅当 lazy 属性为true 时生效
2740
+ */
2741
+ load?: (node: any, resolve: any, reject: any) => void
2742
+ /**
2743
+ * 树节点的内容区的渲染 Function
2744
+ */
2745
+ renderContent?: (h: any, { node, data, store }: any) => void
2746
+ /**
2747
+ * 是否高亮当前选中节点
2748
+ * @default false
2749
+ */
2750
+ highlightCurrent?: boolean
2751
+ /**
2752
+ * 是否默认展开所有节点
2753
+ * @default false
2754
+ */
2755
+ defaultExpandAll?: boolean
2756
+ /**
2757
+ * 是否在点击节点的时候展开或者收缩节点, 默认值为 true,如果为 false,则只有点箭头图标的时候才会展开或者收缩节点。
2758
+ * @default true
2759
+ */
2760
+ expandOnClickNode?: boolean
2761
+ /**
2762
+ * 是否在点击节点的时候选中节点,默认值为 false,即只有在点击复选框时才会选中节点。
2763
+ * @default false
2764
+ */
2765
+ checkOnClickNode?: boolean
2766
+ /**
2767
+ * 点击叶节点(最后一个子节点)时是否选中或取消选中节点。
2768
+ * @default true
2769
+ */
2770
+ checkOnClickLeaf?: boolean
2771
+ /**
2772
+ * 展开子节点的时候是否自动展开父节点
2773
+ * @default true
2774
+ */
2775
+ autoExpandParent?: boolean
2776
+ /**
2777
+ * 默认展开的节点的 key 的数组
2778
+ */
2779
+ defaultExpandedKeys?: Array<string | number>
2780
+ /**
2781
+ * 节点是否可被选择
2782
+ * @default false
2783
+ */
2784
+ showCheckbox?: boolean
2785
+ /**
2786
+ * 在显示复选框的情况下,是否严格的遵循父子不互相关联的做法
2787
+ * @default false
2788
+ */
2789
+ checkStrictly?: boolean
2790
+ /**
2791
+ * 默认勾选的节点的 key 的数组
2792
+ */
2793
+ defaultCheckedKeys?: Array<string | number>
2794
+ /**
2795
+ * 当前选中的节点
2796
+ */
2797
+ currentNodeKey?: string | number
2798
+ /**
2799
+ * 对树节点进行筛选时执行的方法, 返回 false 则表示这个节点会被隐藏
2800
+ */
2801
+ filterNodeMethod?: (value: any, data: any, node: any) => boolean
2802
+ /**
2803
+ * 是否每次只打开一个同级树节点展开
2804
+ * @default false
2805
+ */
2806
+ accordion?: boolean
2807
+ /**
2808
+ * 相邻级节点间的水平缩进,单位为像素
2809
+ * @default 18
2810
+ */
2811
+ indent?: number
2812
+ /**
2813
+ * 自定义树节点图标组件
2814
+ */
2815
+ icon?: string | Component
2816
+ /**
2817
+ * 是否懒加载子节点,需与 load 方法结合使用
2818
+ * @default false
2819
+ */
2820
+ lazy?: boolean
2821
+ /**
2822
+ * 是否开启拖拽节点功能
2823
+ * @default false
2824
+ */
2825
+ draggable?: boolean
2826
+ /**
2827
+ * 判断节点能否被拖拽 如果返回 false ,节点不能被拖动
2828
+ */
2829
+ allowDrag?: (node: any) => boolean
2830
+ /**
2831
+ * 拖拽时判定目标节点能否成为拖动目标位置。 如果返回 false ,拖动节点不能被拖放到目标节点。 type 参数有三种情况:'prev'、'inner' 和 'next',分别表示放置在目标节点前、插入至目标节点和放置在目标节点后
2832
+ */
2833
+ allowDrop?: (draggingNode: any, dropNode: any, type: any) => boolean
2834
+ /**
2835
+ * 当节点被点击的时候触发
2836
+ * @param targetObj 对应于节点点击的节点对象
2837
+ * @param node TreeNode 的 node 属性
2838
+ * @param treeNode TreeNode
2839
+ * @param fun 事件对象
2840
+ */
2841
+ onNodeClick?: (targetObj: any, node: any, treeNode: any, fun: any) => void
2842
+ /**
2843
+ * 当某一节点被鼠标右键点击时会触发该事件
2844
+ * @param event
2845
+ * @param data 传递给 data 属性的数组中该节点所对应的对象
2846
+ * @param node 节点对应的 Node
2847
+ * @param com 节点组件本身
2848
+ */
2849
+ onNodeContextmenu?: (event: any, data: any, node: any, com: any) => void
2850
+ /**
2851
+ * 当复选框被点击的时候触发
2852
+ * @param data 传递给 data 属性的数组中该节点所对应的对象
2853
+ * @param isCheck 节点本身是否被选中
2854
+ * @param childrenHasChecked 节点的子树中是否有被选中的节点
2855
+ */
2856
+ onCheckChange?: (data: any, isCheck: boolean, childrenHasChecked: boolean) => void
2857
+ /**
2858
+ * 点击节点复选框之后触发
2859
+ * @param data 传递给 data 属性的数组中该节点所对应的对象
2860
+ * @param obj 树目前的选中状态对象,包含 checkedNodes、checkedKeys、halfCheckedNodes、halfCheckedKeys 四个属性
2861
+ */
2862
+ onCheck?: (data: any, obj: any) => void
2863
+ /**
2864
+ * 当前选中节点变化时触发的事件
2865
+ * @param data 当前节点的数据
2866
+ * @param nodeData 当前节点的 Node 对象
2867
+ */
2868
+ onCurrentChange?: (data: any, nodeData: any) => void
2869
+ /**
2870
+ * 节点被展开时触发的事件
2871
+ * @param data 传递给 data 属性的数组中该节点所对应的对象
2872
+ * @param nodeData 节点对应的 Node
2873
+ * @param node 节点组件本身
2874
+ */
2875
+ onNodeExpand?: (data: any, nodeData: any, node: any) => void
2876
+ /**
2877
+ * 节点被关闭时触发的事件
2878
+ * @param data 传递给 data 属性的数组中该节点所对应的对象
2879
+ * @param nodeData 节点对应的 Node
2880
+ * @param node 节点组件本身
2881
+ */
2882
+ onNodeCollapse?: (data: any, nodeData: any, node: any) => void
2883
+ /**
2884
+ * 节点开始拖拽时触发的事件
2885
+ * @param node 被拖拽节点对应的 Node
2886
+ * @param event
2887
+ */
2888
+ onNodeDragStart?: (node: any, event: any) => void
2889
+ /**
2890
+ * 拖拽进入其他节点时触发的事件
2891
+ * @param node 被拖拽节点对应的 Node
2892
+ * @param enterNode 所进入节点对应的 Node
2893
+ * @param event
2894
+ */
2895
+ onNodeDragEnter?: (node: any, enterNode: any, event: any) => void
2896
+ /**
2897
+ * 拖拽离开某个节点时触发的事件
2898
+ * @param node 被拖拽节点对应的 Node
2899
+ * @param leaveNode 所离开节点对应的 Node
2900
+ * @param event
2901
+ */
2902
+ onNodeDragLeave?: (node: any, leaveNode: any, event: any) => void
2903
+ /**
2904
+ * 在拖拽节点时触发的事件(类似浏览器的 mouseover 事件)
2905
+ * @param node 被拖拽节点对应的 Node
2906
+ * @param enterNode 当前进入节点对应的 Node
2907
+ * @param event
2908
+ */
2909
+ onNodeDragOver?: (node: any, enterNode: any, event: any) => void
2910
+ /**
2911
+ * 拖拽结束时(可能未成功)触发的事件
2912
+ * @param node 被拖拽节点对应的 Node
2913
+ * @param lastNode 结束拖拽时最后进入的节点(可能为空)
2914
+ * @param type 被拖拽节点的放置位置(before、after、inner)
2915
+ * @param event
2916
+ */
2917
+ onNodeDragEnd?: (
2918
+ node: any,
2919
+ lastNode: any,
2920
+ type: 'before' | 'after' | 'inner',
2921
+ event: any
2922
+ ) => void
2923
+ /**
2924
+ * 拖拽成功完成时触发的事件
2925
+ * @param node 被拖拽节点对应的 Node
2926
+ * @param lastNode 结束拖拽时最后进入的节点(可能为空)
2927
+ * @param type 被拖拽节点的放置位置(before、after、inner)
2928
+ * @param event
2929
+ */
2930
+ onNodeDrop?: (node: any, lastNode: any, type: 'before' | 'after' | 'inner', event: any) => void
2931
+ /**
2932
+ * 当数据为空时自定义的内容
2933
+ */
2934
+ emptySlot?: SlotType
2935
+ } & ExtraType
2936
+
2937
+ /**
2938
+ * 分割线
2939
+ */
2940
+ type DividerType = {
2941
+ /**
2942
+ * 设置分割线方向
2943
+ * @default horizontal
2944
+ */
2945
+ direction?: 'horizontal' | 'vertical'
2946
+ /**
2947
+ * 设置分隔符样式
2948
+ * @default solid
2949
+ */
2950
+ borderStyle?: 'none' | 'solid' | 'hidden' | 'dashed'
2951
+ /**
2952
+ * 自定义分隔线内容的位置
2953
+ * @default center
2954
+ */
2955
+ contentPosition?: 'left' | 'right' | 'center'
2956
+ } & ExtraType
2957
+
2958
+ type Schema<ComponentType, T> = {
2959
+ /**
2960
+ * 表单控件类型
2961
+ * @description
2962
+ * Cascader: 级联选择器
2963
+ *
2964
+ * CascaderPanel: 级联选择面板
2965
+ *
2966
+ * Checkbox: 多选框
2967
+ *
2968
+ * CheckboxGroup: 多选框组
2969
+ *
2970
+ * CheckboxButton: 多选框按钮式
2971
+ *
2972
+ * ColorPicker: 颜色选择器
2973
+ *
2974
+ * ColorPickerPanel: 颜色选择面板
2975
+ *
2976
+ * DatePicker: 日期选择器
2977
+ *
2978
+ * DateTimePicker: 日期时间选择器
2979
+ *
2980
+ * Input: 输入框
2981
+ *
2982
+ * InputNumber: 数字输入框
2983
+ *
2984
+ * Radio: 单选框
2985
+ *
2986
+ * RadioGroup: 单选框组
2987
+ *
2988
+ * Rate: 评分
2989
+ *
2990
+ * Select: 选择器
2991
+ *
2992
+ * SelectGroup: 选择器分组
2993
+ *
2994
+ * VirtualizedSelect: 虚拟选择器
2995
+ *
2996
+ * Slider: 滑块
2997
+ *
2998
+ * Switch: 开关
2999
+ *
3000
+ * TimePicker: 时间选择器
3001
+ *
3002
+ * TimeSelect: 时间选择器
3003
+ *
3004
+ * TreeSelect: 树形选择器
3005
+ *
3006
+ * Upload: 上传
3007
+ *
3008
+ * Divider: 分割线
3009
+ */
3010
+ component?: ComponentType
3011
+ /**
3012
+ * 标签名
3013
+ */
3014
+ label?: string
3015
+ /**
3016
+ * 标签描述 如 这是标签(subLable): ***
3017
+ */
3018
+ subLabel?: string
3019
+ /**
3020
+ * 标签宽度
3021
+ */
3022
+ labelWidth?: string | number | (() => Recordable)
3023
+ /**
3024
+ * 提示信息
3025
+ */
3026
+ toolTip?: boolean | ((model: Recordable) => boolean)
3027
+ /**
3028
+ * tooltip 配置信息
3029
+ * ElTooltipProps
3030
+ */
3031
+ toolTipProps?: any
3032
+ /**
3033
+ * 值发生变化触发的函数名
3034
+ * @default onChange
3035
+ */
3036
+ changeEvent?: string
3037
+
3038
+ // 表单控件参数 请在ant-design-vue中查看具体的配置信息
3039
+ props?: ((model: Recordable) => T) | T
3040
+
3041
+ /**
3042
+ * 表单绑定的属性,亦作为name属性,用于后期自动化测试
3043
+ */
3044
+ name?: string | string[]
3045
+ /**
3046
+ * 是否必填
3047
+ */
3048
+ required?: BooleanOrDynamicBoolean | ((model: Recordable) => boolean)
3049
+ /**
3050
+ * 输入框的后缀
3051
+ */
3052
+ suffix?: string | number | VNode | ((model: Recordable) => VNode | VNode[] | string)
3053
+ /**
3054
+ * 输入框的前缀
3055
+ */
3056
+ prefix?: string | number | VNode | ((model: Recordable) => VNode | VNode[] | string)
3057
+ /**
3058
+ * 验证规则
3059
+ */
3060
+ rules?: RuleType[]
3061
+ /**
3062
+ * 提示信息是否带上lable
3063
+ */
3064
+ rulesMessageJoinLabel?: boolean
3065
+ /**
3066
+ * 默认值
3067
+ */
3068
+ defaultValue?: any
3069
+ /**
3070
+ * 是否显示
3071
+ */
3072
+ show?: boolean | ((model: Recordable) => boolean)
3073
+ /**
3074
+ * 渲染item
3075
+ */
3076
+ render?: (model: Recordable) => VNode | VNode[] | string
3077
+ /**
3078
+ * 渲染整个条目
3079
+ */
3080
+ renderCol?: (model: Recordable) => VNode | VNode[] | string
3081
+ /**
3082
+ * col相关的配置
3083
+ */
3084
+ colProps?: Partial<ColProps>
3085
+ /**
3086
+ * 占有栅格数, 总数为24
3087
+ */
3088
+ span?: number
3089
+ /**
3090
+ * 插槽名称
3091
+ */
3092
+ slot?: string
3093
+ colSlot?: string
3094
+ /**
3095
+ * 是否禁用
3096
+ */
3097
+ disabled?: boolean | ((model: Recordable) => boolean)
3098
+ /**
3099
+ * 动态校验规则
3100
+ * @param model
3101
+ */
3102
+ dynamicRules?: (model: Recordable) => RuleType[]
3103
+ /**
3104
+ * lable后面是否有冒号
3105
+ */
3106
+ colon?: boolean
3107
+ /**
3108
+ * filter 是否处于收缩状态 仅在 search 模式下使用
3109
+ * @default true
3110
+ */
3111
+ isAdvanced?: boolean
3112
+ /**
3113
+ * 对表单内容的文字信息描述
3114
+ */
3115
+ description?: string
3116
+ }
3117
+
3118
+ type FormSchema =
3119
+ | Schema<'Cascader', CascaderType>
3120
+ | Schema<'CascaderPanel', CascaderPanelType>
3121
+ | Schema<'Checkbox', CheckboxType>
3122
+ | Schema<'CheckboxGroup', CheckboxGroupType>
3123
+ | Schema<'CheckboxButton', CheckboxButtonType>
3124
+ | Schema<'ColorPicker', ColorPickerType>
3125
+ | Schema<'ColorPickerPanel', ColorPickerPanelType>
3126
+ | Schema<'DatePicker', DatePickerType>
3127
+ | Schema<'DateTimePicker', DateTimePickerType>
3128
+ | Schema<'Input', InputType>
3129
+ | Schema<'InputNumber', InputNumberType>
3130
+ | Schema<'Radio', RadioType>
3131
+ | Schema<'RadioGroup', RadioGroupType>
3132
+ | Schema<'Rate', RateType>
3133
+ | Schema<'Select', SelectType>
3134
+ | Schema<'SelectGroup', SelectGroupType>
3135
+ | Schema<'VirtualizedSelect', VirtualizedSelectType>
3136
+ | Schema<'Slider', SliderType>
3137
+ | Schema<'Switch', SwitchType>
3138
+ | Schema<'TimePicker', TimePickerType>
3139
+ | Schema<'TimeSelect', TimeSelectType>
3140
+ | Schema<'TreeSelect', TreeType>
3141
+ | Schema<'Upload', UploadFileType>
3142
+ | Schema<'Divider', DividerType>
3143
+
3144
+ export type {
3145
+ ComponentType,
3146
+ FormSchema,
3147
+ CascaderType,
3148
+ CascaderPanelType,
3149
+ CheckboxType,
3150
+ CheckboxGroupType,
3151
+ CheckboxButtonType,
3152
+ ColorPickerType,
3153
+ ColorPickerPanelType,
3154
+ DatePickerType,
3155
+ DateTimePickerType,
3156
+ InputType,
3157
+ InputNumberType,
3158
+ RadioType,
3159
+ RadioGroupType,
3160
+ SelectType,
3161
+ SelectGroupType,
3162
+ VirtualizedSelectType,
3163
+ SliderType,
3164
+ SwitchType,
3165
+ TimePickerType,
3166
+ TimeSelectType,
3167
+ TreeType,
3168
+ StrOrDynamicStr
3169
+ }