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