@dt-frames/ui 2.0.23 → 3.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.
- package/README.md +9 -9
- package/es/assets/icons/ui-blank.svg +1 -0
- package/es/assets/icons/ui-docx.svg +1 -0
- package/es/assets/icons/ui-exl.svg +1 -0
- package/es/assets/icons/ui-forder-open.svg +1 -0
- package/es/assets/icons/ui-forder.svg +1 -0
- package/es/assets/icons/ui-jpg.svg +1 -0
- package/es/assets/icons/ui-pdf.svg +1 -0
- package/es/assets/icons/ui-ppt.svg +1 -0
- package/es/assets/icons/ui-rar.svg +1 -0
- package/es/assets/icons/ui-table-empty.svg +1 -0
- package/es/assets/icons/ui-txt.svg +1 -0
- package/es/assets/index.e67ea2f5.css +1 -0
- package/es/assets/locales/en.d.ts +1 -0
- package/es/assets/locales/en.ts +1 -0
- package/es/assets/locales/zh.d.ts +1 -0
- package/es/assets/locales/zh.ts +1 -0
- package/es/assets/test.ts +1 -0
- package/es/components/container/index.d.ts +2 -93
- package/es/components/container/index.js +92 -15
- package/es/components/container/src/components/bar.d.ts +2 -2
- package/es/components/container/{index.less → src/index.scss} +9 -16
- package/es/components/container/src/utils/scroll.d.ts +1 -1
- package/es/components/curd/index.d.ts +3 -1
- package/es/components/curd/index.js +66 -141
- package/es/components/curd/src/components/props.d.ts +53 -0
- package/es/components/curd/src/components/types/curd.type.d.ts +13 -0
- package/es/components/curd/src/hooks/useCurd.d.ts +3 -110
- package/es/components/curd/src/props.d.ts +109 -159
- package/es/components/curd/src/types/curd.type.d.ts +54 -8
- package/es/components/drawer/index.d.ts +3 -7881
- package/es/components/drawer/index.js +209 -307
- package/es/components/drawer/src/components/DrawerFooter.d.ts +19 -21
- package/es/components/drawer/src/hooks/useDrawer.d.ts +2 -2
- package/es/components/drawer/src/index.d.ts +11 -7876
- package/es/components/drawer/src/index.scss +24 -0
- package/es/components/drawer/src/props.d.ts +2 -64
- package/es/components/drawer/src/{types/index.type.d.ts → type/drawer.type.d.ts} +26 -14
- package/es/components/form/index.d.ts +5 -5
- package/es/components/form/index.js +641 -634
- package/es/components/form/src/components/DynanicInput.d.ts +2 -0
- package/es/components/form/src/components/FormButtons.d.ts +13 -3086
- package/es/components/form/src/components/FormInputUseDialog.d.ts +2 -0
- package/es/components/form/src/components/FormItem.d.ts +53 -156
- package/es/components/form/src/components/RadioButton.d.ts +26 -0
- package/es/components/form/src/components/componentMap.d.ts +2 -2
- package/es/components/form/src/components/index.d.ts +2 -4
- package/es/components/form/src/hooks/useForm.d.ts +3 -3
- package/es/components/form/src/hooks/useFormActions.d.ts +38 -5
- package/es/components/form/src/hooks/useFormEvent.d.ts +9 -7
- package/es/components/form/src/hooks/useFormValue.d.ts +2 -2
- package/es/components/form/src/hooks/useFormValues.d.ts +8 -6
- package/es/components/form/src/hooks/useLabelWidth.d.ts +1 -1
- package/es/components/form/src/index.d.ts +358 -0
- package/es/components/form/src/index.scss +162 -0
- package/es/components/form/src/props.d.ts +45 -7
- package/es/components/form/src/types/actions.type.d.ts +1 -1
- package/es/components/form/src/types/form.type.d.ts +59 -26
- package/es/components/form/src/types/items.type.d.ts +33 -33
- package/es/components/form/src/{hooks → utils}/helper.d.ts +7 -0
- package/es/components/icons/index.d.ts +2 -497
- package/es/components/icons/index.js +42 -1911
- package/es/components/icons/src/{svg-icon.d.ts → SvgIcon.d.ts} +7 -14
- package/es/components/icons/src/index.scss +3 -0
- package/es/components/iframe/index.js +40 -29
- package/es/components/iframe/src/index.d.ts +16 -11
- package/es/components/iframe/src/index.scss +20 -0
- package/es/components/modal/index.d.ts +3 -2
- package/es/components/modal/index.js +188 -198
- package/es/components/modal/src/components/CloseIcon.d.ts +4 -20
- package/es/components/modal/src/components/Modal.d.ts +201 -108
- package/es/components/modal/src/components/ModalFooter.d.ts +12 -20
- package/es/components/modal/src/hooks/useDrag.d.ts +2 -3
- package/es/components/modal/src/hooks/useFullScreen.d.ts +1 -1
- package/es/components/modal/src/hooks/useModal.d.ts +3 -3
- package/es/components/modal/src/index.d.ts +32 -359
- package/es/components/modal/{index.less → src/index.scss} +104 -82
- package/es/components/modal/src/props.d.ts +10 -17
- package/es/components/modal/src/types/{modal.type.d.ts → index.type.d.ts} +7 -6
- package/es/components/source/index.d.ts +1 -1
- package/es/components/source/index.js +142 -113
- package/es/components/source/{hooks → src/hooks}/useDownload.d.ts +1 -1
- package/es/components/source/{hooks → src/hooks}/useSource.d.ts +24 -20
- package/es/components/source/{types → src/types}/source.type.d.ts +12 -13
- package/es/components/table/index.d.ts +7 -2
- package/es/components/table/index.js +197 -286
- package/es/components/table/src/components/TableAction.d.ts +16 -24
- package/es/components/table/src/components/TableHeader.d.ts +35 -0
- package/es/components/table/src/components/TableRender.d.ts +10 -14
- package/es/components/table/src/components/editTable/CellComponent.d.ts +4 -4
- package/es/components/table/src/components/editTable/EditTableCell.d.ts +15 -57
- package/es/components/table/src/components/editTable/componentMap.d.ts +1 -1
- package/es/components/table/src/components/editTable/index.d.ts +3 -3
- package/es/components/table/src/components/editTable/props.d.ts +6 -6
- package/es/components/table/src/components/tableSetting/Column.d.ts +3 -68
- package/es/components/table/src/components/tableSetting/Download.d.ts +11 -0
- package/es/components/table/src/components/tableSetting/DownloadCtrl.d.ts +2 -22
- package/es/components/table/src/components/tableSetting/Fullscreen.d.ts +2 -22
- package/es/components/table/src/components/tableSetting/index.d.ts +17 -0
- package/es/components/table/src/hooks/useDataSource.d.ts +3 -4
- package/es/components/table/src/hooks/useHeader.d.ts +3 -3
- package/es/components/table/src/hooks/useHeaderCode.d.ts +2 -2
- package/es/components/table/src/hooks/useLoading.d.ts +3 -3
- package/es/components/table/src/hooks/usePagination.d.ts +2 -2
- package/es/components/table/src/hooks/useRowSelection.d.ts +1 -1
- package/es/components/table/src/hooks/useTable.d.ts +1 -1
- package/es/components/table/src/hooks/useTableInstance.d.ts +2 -2
- package/es/components/table/src/hooks/useTableScroll.d.ts +0 -1
- package/es/components/table/src/hooks/useTableStyle.d.ts +5 -0
- package/es/components/table/src/index.d.ts +169 -324
- package/es/components/table/{index.less → src/index.scss} +309 -279
- package/es/components/table/src/props.d.ts +39 -14
- package/es/components/table/src/types/actions.type.d.ts +5 -5
- package/es/components/table/src/types/header.type.d.ts +6 -6
- package/es/components/table/src/types/table.type.d.ts +84 -21
- package/es/components/tree/index.d.ts +2 -1
- package/es/components/tree/index.js +320 -324
- package/es/components/tree/src/basicProps.d.ts +9 -9
- package/es/components/tree/src/components/ContextMenu.d.ts +17 -17
- package/es/components/tree/src/components/TreeHeader.d.ts +13 -33
- package/es/components/tree/src/hooks/useContextMenu.d.ts +2 -2
- package/es/components/tree/src/hooks/useMethod.d.ts +16 -0
- package/es/components/tree/src/hooks/useTree.d.ts +5 -15
- package/es/components/tree/src/index.d.ts +52 -6369
- package/es/components/tree/src/index.scss +178 -0
- package/es/components/tree/src/types/action.type.d.ts +64 -0
- package/es/components/tree/src/{type → types}/menu.d.ts +1 -1
- package/es/components/tree/src/types/tree.d.ts +31 -0
- package/es/components/tree/src/utils/tree.d.ts +1 -1
- package/es/components/upload/index.d.ts +1 -1
- package/es/components/upload/index.js +111 -102
- package/es/components/upload/src/basicProps.d.ts +11 -7
- package/es/components/upload/src/components/PdfView.d.ts +2 -9
- package/es/components/upload/src/components/WordView.d.ts +2 -7
- package/es/components/upload/src/hooks/useFile.d.ts +3 -3
- package/es/components/upload/src/index.d.ts +47 -96
- package/es/components/upload/{index.less → src/index.scss} +19 -13
- package/es/components/upload/src/type/file.d.ts +2 -2
- package/es/components/upload/src/utils/upload.d.ts +1 -1
- package/es/components/vxe_table/index.d.ts +4 -0
- package/es/components/vxe_table/index.js +1162 -0
- package/es/components/vxe_table/src/components/AApiSelect.d.ts +12 -0
- package/es/components/vxe_table/src/components/AAutoComplete.d.ts +2 -0
- package/es/components/vxe_table/src/components/AButton.d.ts +12 -0
- package/es/components/vxe_table/src/components/AButtonGroup.d.ts +2 -0
- package/es/components/vxe_table/src/components/ACascader.d.ts +2 -0
- package/es/components/vxe_table/src/components/ACheckbox.d.ts +2 -0
- package/es/components/vxe_table/src/components/ACheckboxGroup.d.ts +6 -0
- package/es/components/vxe_table/src/components/ADatePicker.d.ts +4 -0
- package/es/components/vxe_table/src/components/AEmpty.d.ts +6 -0
- package/es/components/vxe_table/src/components/AInput.d.ts +2 -0
- package/es/components/vxe_table/src/components/AInputNumber.d.ts +2 -0
- package/es/components/vxe_table/src/components/AInputSearch.d.ts +2 -0
- package/es/components/vxe_table/src/components/AMonthPicker.d.ts +2 -0
- package/es/components/vxe_table/src/components/ARadioGroup.d.ts +6 -0
- package/es/components/vxe_table/src/components/ARangePicker.d.ts +2 -0
- package/es/components/vxe_table/src/components/ARate.d.ts +2 -0
- package/es/components/vxe_table/src/components/ASelect.d.ts +2 -0
- package/es/components/vxe_table/src/components/ASwitch.d.ts +2 -0
- package/es/components/vxe_table/src/components/ATimePicker.d.ts +2 -0
- package/es/components/vxe_table/src/components/ATreeSelect.d.ts +2 -0
- package/es/components/vxe_table/src/components/AWeekPicker.d.ts +2 -0
- package/es/components/vxe_table/src/components/AYearPicker.d.ts +2 -0
- package/es/components/vxe_table/src/components/Select.d.ts +2 -0
- package/es/components/vxe_table/src/components/common.d.ts +52 -0
- package/es/components/vxe_table/src/components/componentMap.d.ts +3 -0
- package/es/components/vxe_table/src/components/index.d.ts +4 -0
- package/es/components/vxe_table/src/hooks/useColumns.d.ts +1 -0
- package/es/components/vxe_table/src/hooks/useComponents.d.ts +2 -0
- package/es/components/vxe_table/src/hooks/useHeader.d.ts +6 -0
- package/es/components/vxe_table/src/hooks/useProps.d.ts +3 -0
- package/es/components/vxe_table/src/hooks/useVxeTable.d.ts +7 -0
- package/es/components/vxe_table/src/index.d.ts +26 -0
- package/es/components/vxe_table/src/index.scss +13 -0
- package/es/components/vxe_table/src/props.d.ts +1 -0
- package/es/components/vxe_table/src/types/componentType.d.ts +1 -0
- package/es/components/vxe_table/src/types/vxeTable.type.d.ts +45 -0
- package/es/components/vxe_table/src/utils/index.d.ts +6 -0
- package/es/directives/index.d.ts +1 -4
- package/es/directives/index.js +6 -1991
- package/es/theme/index.d.ts +9 -9
- package/es/theme/index.js +2112 -2344
- package/es/theme/src/components/content/index.d.ts +2 -31
- package/es/theme/src/components/feature/BackTop.d.ts +2 -0
- package/es/theme/src/components/feature/index.d.ts +2 -7
- package/es/theme/src/components/footer/index.d.ts +2 -31
- package/es/theme/src/components/header/MultipleHeader.d.ts +2 -0
- package/es/theme/src/components/header/components/BreadCrumb.d.ts +2 -0
- package/es/theme/src/components/header/components/FullScreen.d.ts +2 -0
- package/es/theme/src/components/header/components/LangPicker.d.ts +12 -0
- package/es/theme/src/components/header/components/Logo.d.ts +22 -0
- package/es/theme/src/components/header/components/MenuFilter.d.ts +2 -0
- package/es/theme/src/components/header/components/Notice.d.ts +2 -0
- package/es/theme/src/components/header/components/SettintTheme.d.ts +2 -0
- package/es/theme/src/components/header/components/Size.d.ts +2 -0
- package/es/theme/src/components/header/components/Trigger.d.ts +6 -0
- package/es/theme/src/components/header/components/UserInfo.d.ts +2 -0
- package/es/theme/src/components/header/components/lock/Lockscreen.d.ts +2 -85
- package/es/theme/src/components/header/components/lock/Recharge.d.ts +4 -6
- package/es/theme/src/components/header/components/lock/useBattery.d.ts +4 -4
- package/es/theme/src/components/header/components/lock/useTime.d.ts +5 -5
- package/es/theme/src/components/header/components/theme-drawer/Color.d.ts +26 -0
- package/es/theme/src/components/header/components/theme-drawer/ColorPrimary.d.ts +27 -0
- package/es/theme/src/components/header/components/theme-drawer/Feature.d.ts +2 -0
- package/es/theme/src/components/header/components/theme-drawer/InputNumber.d.ts +28 -0
- package/es/theme/src/components/header/components/theme-drawer/MenuType.d.ts +2 -0
- package/es/theme/src/components/header/components/theme-drawer/Select.d.ts +44 -0
- package/es/theme/src/components/header/components/theme-drawer/Switch.d.ts +29 -0
- package/es/theme/src/components/header/components/theme-drawer/Var.d.ts +2 -0
- package/es/theme/src/components/header/components/theme-drawer/styles/GlobalStyle.d.ts +2 -0
- package/es/theme/src/components/header/components/theme-drawer/styles/MenuStyle.d.ts +2 -0
- package/es/theme/src/components/header/helper/changeTheme.d.ts +15 -0
- package/es/theme/src/components/header/helper/{menu-tree.d.ts → menuTree.d.ts} +1 -1
- package/es/theme/src/components/header/index.d.ts +4 -547
- package/es/theme/src/components/sider/components/DragBar.d.ts +2 -0
- package/es/theme/src/components/sider/components/{layout-menu.d.ts → LayoutMenu.d.ts} +5 -5
- package/es/theme/src/components/sider/components/MixSider.d.ts +2 -0
- package/es/theme/src/components/sider/components/SiderTrigger.d.ts +14 -0
- package/es/theme/src/components/sider/components/basic-menu/basic-menu-item.d.ts +8 -35
- package/es/theme/src/components/sider/components/basic-menu/basic-sub-menu-item.d.ts +8 -100
- package/es/theme/src/components/sider/components/basic-menu/index.d.ts +64 -0
- package/es/theme/src/components/sider/components/basic-menu/menu-item-content.d.ts +6 -10
- package/es/theme/src/components/sider/components/{props.d.ts → basic-menu/props.d.ts} +12 -29
- package/es/theme/src/components/sider/helper/sider.d.ts +3 -3
- package/es/theme/src/components/sider/helper/split-menu.d.ts +2 -2
- package/es/theme/src/components/sider/index.d.ts +2 -235
- package/es/theme/src/components/tabs/components/TabContent.d.ts +4 -21
- package/es/theme/src/components/tabs/components/TabRedo.d.ts +2 -23
- package/es/theme/src/components/tabs/hooks/useTabDropdown.d.ts +9 -3
- package/es/theme/src/components/tabs/hooks/useTabs.d.ts +1 -1
- package/es/theme/src/components/tabs/index.d.ts +2 -86
- package/es/theme/src/consts/color.d.ts +3 -0
- package/es/theme/src/consts/index.d.ts +14 -0
- package/es/theme/src/enums/index.d.ts +34 -1
- package/es/theme/src/hooks/index.d.ts +6 -6
- package/es/theme/src/hooks/useDragLine.d.ts +1 -1
- package/es/theme/src/hooks/useHeader.d.ts +22 -23
- package/es/theme/src/hooks/useMenu.d.ts +26 -26
- package/es/theme/src/hooks/useMultifyTab.d.ts +6 -6
- package/es/theme/src/hooks/useOpenKeys.d.ts +3 -3
- package/es/theme/src/hooks/useTheme.d.ts +25 -7
- package/es/theme/src/index.d.ts +2 -1630
- package/es/theme/src/index.scss +1134 -0
- package/es/theme/src/stores/index.d.ts +2 -2
- package/es/theme/src/stores/lockscreen.store.d.ts +7 -5
- package/es/theme/src/stores/routeReuse.store.d.ts +18 -20
- package/es/theme/src/stores/theme.store.d.ts +9 -15
- package/es/theme/{transition.less → src/transition.scss} +1 -1
- package/es/theme/src/types/index.d.ts +0 -3
- package/es/theme/src/types/menu.type.d.ts +2 -1
- package/es/theme/src/types/theme.type.d.ts +31 -12
- package/es/theme/src/utils/color.d.ts +14 -0
- package/es/theme/src/utils/index.d.ts +3 -0
- package/es/theme/src/utils.ts/index.d.ts +3 -0
- package/index.d.ts +12 -13
- package/index.js +44 -62
- package/manualContentPath.js +73 -19
- package/package.json +65 -65
- package/tsconfig.json +19 -30
- package/tsconfig.tsbuildinfo +1 -0
- package/vite.config.ts +82 -68
- package/es/assets/data/icons/actions.d.ts +0 -1
- package/es/assets/data/icons/actions.ts +0 -423
- package/es/assets/data/icons/code.d.ts +0 -1
- package/es/assets/data/icons/code.ts +0 -10
- package/es/assets/data/icons/commuticate.d.ts +0 -1
- package/es/assets/data/icons/commuticate.ts +0 -182
- package/es/assets/data/icons/currency.d.ts +0 -1
- package/es/assets/data/icons/currency.ts +0 -44
- package/es/assets/data/icons/devices.d.ts +0 -1
- package/es/assets/data/icons/devices.ts +0 -126
- package/es/assets/data/icons/edit.d.ts +0 -1
- package/es/assets/data/icons/edit.ts +0 -163
- package/es/assets/data/icons/file.d.ts +0 -1
- package/es/assets/data/icons/file.ts +0 -99
- package/es/assets/data/icons/math.d.ts +0 -1
- package/es/assets/data/icons/math.ts +0 -53
- package/es/assets/data/icons/message.d.ts +0 -1
- package/es/assets/data/icons/message.ts +0 -68
- package/es/assets/data/icons/navigate.d.ts +0 -1
- package/es/assets/data/icons/navigate.ts +0 -181
- package/es/assets/data/icons/other.d.ts +0 -1
- package/es/assets/data/icons/other.ts +0 -324
- package/es/assets/data/index.d.ts +0 -4
- package/es/assets/data/index.ts +0 -58
- package/es/assets/imgs/tree/forder-open.svg +0 -1
- package/es/assets/imgs/tree/forder.svg +0 -1
- package/es/components/container/src/components/scroll-bar.d.ts +0 -70
- package/es/components/container/src/scroll-container.d.ts +0 -76
- package/es/components/container/src/slot-container.d.ts +0 -20
- package/es/components/curd/src/components/Curd.d.ts +0 -384
- package/es/components/drawer/index.less +0 -16
- package/es/components/drawer/src/components/DrawerHeader.d.ts +0 -11
- package/es/components/form/index.less +0 -361
- package/es/components/form/src/components/formIcon.d.ts +0 -14
- package/es/components/form/src/components/formInputUseDialog.d.ts +0 -17
- package/es/components/form/src/components/radioButton.d.ts +0 -34
- package/es/components/form/src/enums/index.d.ts +0 -7
- package/es/components/icons/index.less +0 -47
- package/es/components/icons/src/pick-icon.d.ts +0 -455
- package/es/components/iframe/index.less +0 -29
- package/es/components/modal/src/components/ModalWrap.d.ts +0 -79
- package/es/components/source/utils/index.d.ts +0 -8
- package/es/components/table/src/enums/table.enum.d.ts +0 -5
- package/es/components/table/src/hooks/useRow.d.ts +0 -5
- package/es/components/tree/index.less +0 -200
- package/es/components/tree/src/type/tree.d.ts +0 -50
- package/es/directives/icon.d.ts +0 -2
- package/es/global.d.ts +0 -7
- package/es/index.d.ts +0 -1
- package/es/index.js +0 -4
- package/es/theme/index.less +0 -1003
- package/es/theme/src/components/feature/back-top.d.ts +0 -5
- package/es/theme/src/components/header/components/bread-crumb.d.ts +0 -6
- package/es/theme/src/components/header/components/fullscreen.d.ts +0 -5
- package/es/theme/src/components/header/components/index.d.ts +0 -11
- package/es/theme/src/components/header/components/lang-picker.d.ts +0 -23
- package/es/theme/src/components/header/components/lock/index.d.ts +0 -2
- package/es/theme/src/components/header/components/logo.d.ts +0 -55
- package/es/theme/src/components/header/components/menu-filter.d.ts +0 -22
- package/es/theme/src/components/header/components/notify.d.ts +0 -22
- package/es/theme/src/components/header/components/setting-theme.d.ts +0 -223
- package/es/theme/src/components/header/components/size.d.ts +0 -21
- package/es/theme/src/components/header/components/theme-drawer/feature.d.ts +0 -138
- package/es/theme/src/components/header/components/theme-drawer/index.d.ts +0 -3
- package/es/theme/src/components/header/components/theme-drawer/menu-type.d.ts +0 -16
- package/es/theme/src/components/header/components/theme-drawer/select.d.ts +0 -58
- package/es/theme/src/components/header/components/theme-drawer/switch.d.ts +0 -49
- package/es/theme/src/components/header/components/trigger.d.ts +0 -10
- package/es/theme/src/components/header/components/user-info.d.ts +0 -44
- package/es/theme/src/components/header/helper/change-theme.d.ts +0 -13
- package/es/theme/src/components/header/multiple-header.d.ts +0 -660
- package/es/theme/src/components/sider/components/basic-menu/basic-menu.d.ts +0 -207
- package/es/theme/src/components/sider/components/drag-bar.d.ts +0 -14
- package/es/theme/src/components/sider/components/sider-trigger.d.ts +0 -17
- package/es/theme/src/components/sider/mix-sider.d.ts +0 -167
- package/es/theme/src/components/tabs/components/index.d.ts +0 -3
- package/es/theme/src/components/tabs/types/tabs.type.d.ts +0 -7
- package/es/theme/src/enums/theme.enum.d.ts +0 -34
- package/es/theme/src/setting/theme.setting.d.ts +0 -2
- package/es/utils/withInstall.d.ts +0 -4
- package/tailwind.config.cjs +0 -11
- package/tsconfig.node.json +0 -9
- /package/es/assets/{icons → fonts}/iconfont.css +0 -0
- /package/es/assets/{icons → fonts}/iconfont.eot +0 -0
- /package/es/assets/{icons → fonts}/iconfont.svg +0 -0
- /package/es/assets/{icons → fonts}/iconfont.ttf +0 -0
- /package/es/assets/{icons → fonts}/iconfont.woff +0 -0
- /package/es/assets/{icons → fonts}/iconfont.woff2 +0 -0
- /package/es/components/container/src/types/{scroll.type.d.ts → index.d.ts} +0 -0
|
@@ -1,188 +1,138 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Key } from
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { RegisterFn, ReturnInnerMethods } from '../../modal/src/types/modal.type';
|
|
1
|
+
import { FormSchema } from '../../form';
|
|
2
|
+
import { Key } from 'ant-design-vue/es/table/interface';
|
|
3
|
+
import { CloseParam, CurdActionType, SaveParam } from './types/curd.type';
|
|
4
|
+
import { FormProps } from '../../form';
|
|
6
5
|
export declare const basicProps: {
|
|
7
|
-
t: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
};
|
|
10
6
|
title: {
|
|
11
|
-
type: PropType<
|
|
7
|
+
type: globalThis.PropType<String | globalThis.ComputedRef<String> | globalThis.Ref<String>>;
|
|
12
8
|
};
|
|
13
|
-
|
|
14
|
-
type:
|
|
15
|
-
default:
|
|
9
|
+
titlepRrefix: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
16
12
|
};
|
|
17
13
|
schemas: {
|
|
18
|
-
type: PropType<FormSchema[]>;
|
|
14
|
+
type: globalThis.PropType<FormSchema[]>;
|
|
19
15
|
default: () => any[];
|
|
20
16
|
};
|
|
21
|
-
footer: {
|
|
22
|
-
type: PropType<ButtonProps[]>;
|
|
23
|
-
default: any;
|
|
24
|
-
};
|
|
25
17
|
authPrefix: {
|
|
26
18
|
type: StringConstructor;
|
|
27
19
|
};
|
|
28
|
-
showFullscreen: {
|
|
29
|
-
type: BooleanConstructor;
|
|
30
|
-
default: boolean;
|
|
31
|
-
};
|
|
32
|
-
showClosable: {
|
|
33
|
-
type: BooleanConstructor;
|
|
34
|
-
default: boolean;
|
|
35
|
-
};
|
|
36
20
|
formProps: {
|
|
37
|
-
type: PropType<Partial<
|
|
38
|
-
mode: {
|
|
39
|
-
type: PropType<"search" | "dialog">;
|
|
40
|
-
default: string;
|
|
41
|
-
};
|
|
42
|
-
autoFetch: {
|
|
43
|
-
type: BooleanConstructor;
|
|
44
|
-
default: boolean;
|
|
45
|
-
};
|
|
46
|
-
model: {
|
|
47
|
-
type: PropType<import("@dt-frames/core").Recordable<any>>;
|
|
48
|
-
default: () => {};
|
|
49
|
-
};
|
|
50
|
-
layout: {
|
|
51
|
-
type: PropType<"vertical" | "inline" | "horizontal">;
|
|
52
|
-
default: string;
|
|
53
|
-
};
|
|
54
|
-
labelWidth: {
|
|
55
|
-
type: PropType<string | number>;
|
|
56
|
-
default: number;
|
|
57
|
-
};
|
|
58
|
-
enLabelWidth: {
|
|
59
|
-
type: PropType<string | number>;
|
|
60
|
-
default: number;
|
|
61
|
-
};
|
|
62
|
-
labelAlign: {
|
|
63
|
-
type: PropType<"left" | "right">;
|
|
64
|
-
default: string;
|
|
65
|
-
};
|
|
66
|
-
labelCol: {
|
|
67
|
-
type: PropType<Partial<import('../../form/src/types/form.type').ColEx>>;
|
|
68
|
-
default: () => {};
|
|
69
|
-
};
|
|
70
|
-
wrapperCol: {
|
|
71
|
-
type: PropType<Partial<import('../../form/src/types/form.type').ColEx>>;
|
|
72
|
-
default: () => {};
|
|
73
|
-
};
|
|
74
|
-
rowProps: {
|
|
75
|
-
type: PropType<Partial<import("vue").ExtractPropTypes<{
|
|
76
|
-
align: PropType<"stretch" | "bottom" | "top" | "middle">;
|
|
77
|
-
justify: PropType<"space-around" | "space-between" | "center" | "end" | "start">;
|
|
78
|
-
prefixCls: StringConstructor;
|
|
79
|
-
gutter: {
|
|
80
|
-
type: PropType<import("ant-design-vue/lib/grid/Row").Gutter | [import("ant-design-vue/lib/grid/Row").Gutter, import("ant-design-vue/lib/grid/Row").Gutter]>;
|
|
81
|
-
default: import("ant-design-vue/lib/grid/Row").Gutter | [import("ant-design-vue/lib/grid/Row").Gutter, import("ant-design-vue/lib/grid/Row").Gutter];
|
|
82
|
-
};
|
|
83
|
-
wrap: {
|
|
84
|
-
type: BooleanConstructor;
|
|
85
|
-
default: any;
|
|
86
|
-
};
|
|
87
|
-
}>>>;
|
|
88
|
-
default: () => {};
|
|
89
|
-
};
|
|
90
|
-
colProps: {
|
|
91
|
-
type: PropType<Partial<import('../../form/src/types/form.type').ColEx>>;
|
|
92
|
-
};
|
|
93
|
-
span: {
|
|
94
|
-
type: NumberConstructor;
|
|
95
|
-
};
|
|
96
|
-
size: {
|
|
97
|
-
type: PropType<"middle" | "small" | "large">;
|
|
98
|
-
};
|
|
99
|
-
disabled: {
|
|
100
|
-
type: BooleanConstructor;
|
|
101
|
-
default: boolean;
|
|
102
|
-
};
|
|
103
|
-
compact: {
|
|
104
|
-
type: BooleanConstructor;
|
|
105
|
-
default: any;
|
|
106
|
-
};
|
|
107
|
-
schemas: {
|
|
108
|
-
type: PropType<FormSchema[]>;
|
|
109
|
-
default: () => any[];
|
|
110
|
-
};
|
|
111
|
-
autoSearchOnEnter: {
|
|
112
|
-
type: BooleanConstructor;
|
|
113
|
-
default: boolean;
|
|
114
|
-
};
|
|
115
|
-
minShowColumn: {
|
|
116
|
-
type: NumberConstructor;
|
|
117
|
-
default: number;
|
|
118
|
-
};
|
|
119
|
-
showAdvancedButton: {
|
|
120
|
-
type: BooleanConstructor;
|
|
121
|
-
default: boolean;
|
|
122
|
-
};
|
|
123
|
-
allowClear: {
|
|
124
|
-
type: BooleanConstructor;
|
|
125
|
-
default: boolean;
|
|
126
|
-
};
|
|
127
|
-
scrollToFirstError: {
|
|
128
|
-
type: BooleanConstructor;
|
|
129
|
-
default: boolean;
|
|
130
|
-
};
|
|
131
|
-
colon: {
|
|
132
|
-
type: BooleanConstructor;
|
|
133
|
-
default: boolean;
|
|
134
|
-
};
|
|
135
|
-
loading: {
|
|
136
|
-
type: PropType<{
|
|
137
|
-
[key: string]: Ref<boolean>;
|
|
138
|
-
}>;
|
|
139
|
-
default: () => {};
|
|
140
|
-
};
|
|
141
|
-
onSearch: {
|
|
142
|
-
type: PropType<(params: import("@dt-frames/core").Recordable<any>) => void>;
|
|
143
|
-
default: (params: import("@dt-frames/core").Recordable<any>) => void;
|
|
144
|
-
};
|
|
145
|
-
onReset: {
|
|
146
|
-
type: PropType<(params: import("@dt-frames/core").Recordable<any>) => void>;
|
|
147
|
-
default: (params: import("@dt-frames/core").Recordable<any>) => void;
|
|
148
|
-
};
|
|
149
|
-
buttons: {
|
|
150
|
-
type: PropType<boolean | ButtonProps[]>;
|
|
151
|
-
default: boolean;
|
|
152
|
-
};
|
|
153
|
-
resetFunc: {
|
|
154
|
-
type: PropType<() => void>;
|
|
155
|
-
};
|
|
156
|
-
registerInstance: {
|
|
157
|
-
type: PropType<(instance: import("../../form").FormActionType) => void>;
|
|
158
|
-
};
|
|
159
|
-
}>>>>;
|
|
21
|
+
type: globalThis.PropType<Partial<FormProps>>;
|
|
160
22
|
default: () => {};
|
|
161
23
|
};
|
|
162
24
|
primaryKey: {
|
|
163
|
-
type: PropType<String | Number>;
|
|
25
|
+
type: globalThis.PropType<String | Number>;
|
|
164
26
|
default: string;
|
|
165
27
|
};
|
|
166
|
-
|
|
167
|
-
type: PropType<
|
|
168
|
-
|
|
28
|
+
defaultFormValue: {
|
|
29
|
+
type: globalThis.PropType<globalThis.Recordable>;
|
|
30
|
+
};
|
|
31
|
+
beforeSave: {
|
|
32
|
+
type: globalThis.PropType<(param: SaveParam) => SaveParam>;
|
|
33
|
+
};
|
|
34
|
+
afterClose: {
|
|
35
|
+
type: globalThis.PropType<(param: CloseParam) => void>;
|
|
169
36
|
};
|
|
170
37
|
onSave: {
|
|
171
|
-
type: PropType<() => void>;
|
|
38
|
+
type: globalThis.PropType<() => void>;
|
|
172
39
|
default: () => {};
|
|
173
40
|
};
|
|
174
41
|
onDeletes: {
|
|
175
|
-
type: PropType<(keys: Key[]) => void>;
|
|
42
|
+
type: globalThis.PropType<(keys: Key[]) => void>;
|
|
176
43
|
default: (keys: Key[]) => {};
|
|
177
44
|
};
|
|
178
45
|
onQueryById: {
|
|
179
|
-
type: PropType<(id: Key) => Promise<any>>;
|
|
46
|
+
type: globalThis.PropType<(id: Key) => Promise<any>>;
|
|
180
47
|
default: (id: Key) => {};
|
|
181
48
|
};
|
|
182
|
-
onRegister: {
|
|
183
|
-
type: PropType<RegisterFn>;
|
|
184
|
-
};
|
|
185
49
|
registerInstance: {
|
|
186
|
-
type: PropType<(instance: CurdActionType) => void>;
|
|
50
|
+
type: globalThis.PropType<(instance: CurdActionType) => void>;
|
|
51
|
+
};
|
|
52
|
+
t: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
};
|
|
55
|
+
open: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
closable: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
scrollTop: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
height: {
|
|
68
|
+
type: NumberConstructor;
|
|
69
|
+
};
|
|
70
|
+
minHeight: {
|
|
71
|
+
type: NumberConstructor;
|
|
72
|
+
};
|
|
73
|
+
width: {
|
|
74
|
+
type: globalThis.PropType<String | Number>;
|
|
75
|
+
};
|
|
76
|
+
draggable: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
defaultFullscreen: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
};
|
|
83
|
+
canFullscreen: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
loading: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
loadingTip: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
wrapClassName: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
};
|
|
98
|
+
zIndex: {
|
|
99
|
+
type: NumberConstructor;
|
|
100
|
+
};
|
|
101
|
+
centered: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
};
|
|
104
|
+
showOkBtn: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
108
|
+
showCancelBtn: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
okText: {
|
|
113
|
+
type: StringConstructor;
|
|
114
|
+
};
|
|
115
|
+
cancelText: {
|
|
116
|
+
type: StringConstructor;
|
|
117
|
+
};
|
|
118
|
+
mask: {
|
|
119
|
+
type: BooleanConstructor;
|
|
120
|
+
default: boolean;
|
|
121
|
+
};
|
|
122
|
+
maskClosable: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
126
|
+
keyboard: {
|
|
127
|
+
type: BooleanConstructor;
|
|
128
|
+
default: boolean;
|
|
129
|
+
};
|
|
130
|
+
maskStyle: globalThis.PropType<import("vue").CSSProperties>;
|
|
131
|
+
footer: {
|
|
132
|
+
type: globalThis.PropType<import('../../form').ButtonProps[]>;
|
|
187
133
|
};
|
|
134
|
+
bodyStyle: globalThis.PropType<import("vue").CSSProperties>;
|
|
135
|
+
wrapperProps: ObjectConstructor;
|
|
136
|
+
getContainer: globalThis.PropType<() => any>;
|
|
137
|
+
closeFunc: globalThis.PropType<() => Promise<boolean>>;
|
|
188
138
|
};
|
|
@@ -1,13 +1,59 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { ExtractPropTypes, ComputedRef, Ref, CSSProperties } from 'vue';
|
|
2
|
+
import { Recordable } from '@dt-frames/core';
|
|
3
|
+
import { Key } from 'ant-design-vue/es/table/interface';
|
|
4
|
+
import { basicProps } from '../props';
|
|
5
|
+
import { ButtonProps, FormActionType, FormProps, FormSchema } from '../../../form';
|
|
6
|
+
export type CurdActionType = Partial<FormActionType> & {
|
|
6
7
|
openAddDialog: () => void;
|
|
7
8
|
del: (row: Recordable) => void;
|
|
8
|
-
dels: (ids:
|
|
9
|
-
|
|
9
|
+
dels: (ids: Key[]) => void;
|
|
10
|
+
openEditDialog: (row: Recordable) => void;
|
|
10
11
|
closeModal: () => void;
|
|
11
12
|
setModalProps: (props: Partial<ExtractPropTypes<typeof basicProps>>) => void;
|
|
12
|
-
|
|
13
|
+
beforeSave: (param: SaveParam) => SaveParam;
|
|
14
|
+
afterClose: (param: CloseParam) => void;
|
|
15
|
+
};
|
|
16
|
+
export type CloseParam = {
|
|
17
|
+
type: 'ADD' | 'EDIT' | 'DELETE';
|
|
18
|
+
data: any;
|
|
19
|
+
};
|
|
20
|
+
export type SaveParam = Recordable | String | Boolean | null | Array<any>;
|
|
21
|
+
export type CurdType = {
|
|
22
|
+
t?: string;
|
|
23
|
+
title?: string | ComputedRef<string> | Ref<string> | ((data?: Recordable) => String);
|
|
24
|
+
titlePrefix?: boolean;
|
|
25
|
+
closable?: boolean;
|
|
26
|
+
height?: number;
|
|
27
|
+
minHeight?: number;
|
|
28
|
+
width?: string | number;
|
|
29
|
+
draggable?: boolean;
|
|
30
|
+
defaultFullscreen?: boolean;
|
|
31
|
+
canFullscreen?: boolean;
|
|
32
|
+
loading?: boolean;
|
|
33
|
+
loadingTip?: string;
|
|
34
|
+
wrapClassName?: string;
|
|
35
|
+
zIndex?: number;
|
|
36
|
+
centered?: boolean;
|
|
37
|
+
showOkBtn?: boolean;
|
|
38
|
+
showCancelBtn?: boolean;
|
|
39
|
+
okText?: string;
|
|
40
|
+
cancelText?: string;
|
|
41
|
+
mask?: boolean;
|
|
42
|
+
maskClosable?: boolean;
|
|
43
|
+
keyboard?: boolean;
|
|
44
|
+
maskStyle?: CSSProperties;
|
|
45
|
+
bodyStyle?: CSSProperties;
|
|
46
|
+
wrapperProps?: Object;
|
|
47
|
+
schemas?: FormSchema[];
|
|
48
|
+
footer?: null | ButtonProps[];
|
|
49
|
+
formProps?: FormProps;
|
|
50
|
+
primaryKey?: string | number;
|
|
51
|
+
defaultFormValue?: Recordable;
|
|
52
|
+
authPrefix?: string;
|
|
53
|
+
beforeSave?: (param: SaveParam) => SaveParam;
|
|
54
|
+
afterClose?: (param: CloseParam) => void;
|
|
55
|
+
onSave?: () => void;
|
|
56
|
+
onDeletes?: (keys: Key[]) => void;
|
|
57
|
+
onQueryById?: (id: Key) => Promise<any>;
|
|
58
|
+
registerInstance?: (instance: CurdActionType) => void;
|
|
13
59
|
};
|