@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,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
1
|
+
import { ButtonType } from '../types/table.type.js';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
3
|
fixed: {
|
|
5
|
-
type: PropType<boolean | "left" | "right">;
|
|
4
|
+
type: globalThis.PropType<boolean | "left" | "right">;
|
|
6
5
|
default: string;
|
|
7
6
|
};
|
|
8
7
|
expand: {
|
|
@@ -17,13 +16,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
17
16
|
default: string;
|
|
18
17
|
};
|
|
19
18
|
btns: {
|
|
20
|
-
type: PropType<ButtonType[]>;
|
|
21
|
-
default: any[];
|
|
19
|
+
type: globalThis.PropType<ButtonType[]>;
|
|
20
|
+
default: () => any[];
|
|
22
21
|
};
|
|
23
22
|
flag: {
|
|
24
|
-
type: PropType<"ACTION">;
|
|
23
|
+
type: globalThis.PropType<"ACTION">;
|
|
25
24
|
};
|
|
26
25
|
record: {
|
|
26
|
+
type: globalThis.PropType<globalThis.Recordable>;
|
|
27
27
|
default: {};
|
|
28
28
|
};
|
|
29
29
|
index: {
|
|
@@ -32,18 +32,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
32
32
|
authPrefix: {
|
|
33
33
|
type: StringConstructor;
|
|
34
34
|
};
|
|
35
|
-
}, {
|
|
36
|
-
actionBtns: import("vue").Ref<any[]>;
|
|
37
|
-
props: any;
|
|
38
|
-
getAuth: (auth: string) => string | null;
|
|
39
|
-
handleAction: (it: ButtonType) => void;
|
|
40
|
-
attrs: {
|
|
41
|
-
[x: string]: unknown;
|
|
42
|
-
};
|
|
43
|
-
getPopupContainer: () => any;
|
|
44
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
36
|
fixed: {
|
|
46
|
-
type: PropType<boolean | "left" | "right">;
|
|
37
|
+
type: globalThis.PropType<boolean | "left" | "right">;
|
|
47
38
|
default: string;
|
|
48
39
|
};
|
|
49
40
|
expand: {
|
|
@@ -58,13 +49,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
58
49
|
default: string;
|
|
59
50
|
};
|
|
60
51
|
btns: {
|
|
61
|
-
type: PropType<ButtonType[]>;
|
|
62
|
-
default: any[];
|
|
52
|
+
type: globalThis.PropType<ButtonType[]>;
|
|
53
|
+
default: () => any[];
|
|
63
54
|
};
|
|
64
55
|
flag: {
|
|
65
|
-
type: PropType<"ACTION">;
|
|
56
|
+
type: globalThis.PropType<"ACTION">;
|
|
66
57
|
};
|
|
67
58
|
record: {
|
|
59
|
+
type: globalThis.PropType<globalThis.Recordable>;
|
|
68
60
|
default: {};
|
|
69
61
|
};
|
|
70
62
|
index: {
|
|
@@ -74,10 +66,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
74
66
|
type: StringConstructor;
|
|
75
67
|
};
|
|
76
68
|
}>>, {
|
|
69
|
+
width: string;
|
|
77
70
|
fixed: boolean | "left" | "right";
|
|
78
71
|
btns: ButtonType[];
|
|
79
|
-
width: string;
|
|
80
72
|
expand: boolean;
|
|
81
73
|
record: {};
|
|
82
|
-
}>;
|
|
83
|
-
export default
|
|
74
|
+
}, {}>;
|
|
75
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ButtonType, TableSetting } from '../types/table.type';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
|
+
tableSetting: {
|
|
4
|
+
type: globalThis.PropType<boolean | TableSetting>;
|
|
5
|
+
};
|
|
6
|
+
toolbar: {
|
|
7
|
+
type: globalThis.PropType<ButtonType[]>;
|
|
8
|
+
default: () => any[];
|
|
9
|
+
};
|
|
10
|
+
authPrefix: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
};
|
|
13
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
+
tableSetting: {
|
|
15
|
+
type: globalThis.PropType<boolean | TableSetting>;
|
|
16
|
+
};
|
|
17
|
+
toolbar: {
|
|
18
|
+
type: globalThis.PropType<ButtonType[]>;
|
|
19
|
+
default: () => any[];
|
|
20
|
+
};
|
|
21
|
+
authPrefix: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
};
|
|
24
|
+
}>>, {
|
|
25
|
+
toolbar: ButtonType[];
|
|
26
|
+
}, {}>, {
|
|
27
|
+
toolbar?(_: {}): any;
|
|
28
|
+
headerTop?(_: {}): any;
|
|
29
|
+
}>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import { Recordable } from '@dt-frames/core';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
import { BasicColumn } from '../types/table.type';
|
|
4
|
-
declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
index: number;
|
|
15
|
-
}, {}: {}): () => JSX.Element;
|
|
16
|
-
};
|
|
17
|
-
export default _sfc_main;
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
column: PropType<BasicColumn>;
|
|
6
|
+
record: PropType<Recordable>;
|
|
7
|
+
index: NumberConstructor;
|
|
8
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
column: PropType<BasicColumn>;
|
|
10
|
+
record: PropType<Recordable>;
|
|
11
|
+
index: NumberConstructor;
|
|
12
|
+
}>>, {}, {}>;
|
|
13
|
+
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Recordable } from
|
|
2
|
-
import { FunctionalComponent, Ref } from
|
|
3
|
-
import { ComponentType } from
|
|
1
|
+
import { Recordable } from '@dt-frames/core';
|
|
2
|
+
import { FunctionalComponent, Ref } from 'vue';
|
|
3
|
+
import { ComponentType } from '../../types/table.type';
|
|
4
4
|
export interface ComponentProps {
|
|
5
5
|
component: ComponentType;
|
|
6
6
|
rule: boolean;
|
|
@@ -8,7 +8,7 @@ export interface ComponentProps {
|
|
|
8
8
|
ruleMessage: string;
|
|
9
9
|
getPopupContainer?: any;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export type EditRecordRow<T = Recordable> = Partial<{
|
|
12
12
|
onEdit: (editable: boolean, submit?: boolean) => Promise<boolean>;
|
|
13
13
|
onValid: () => Promise<boolean>;
|
|
14
14
|
editable: boolean;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { Recordable } from
|
|
2
|
-
|
|
3
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
1
|
+
import { Recordable } from '@dt-frames/core';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
3
|
value: {
|
|
5
|
-
type:
|
|
4
|
+
type: globalThis.PropType<string | number | boolean | Recordable>;
|
|
6
5
|
default: string;
|
|
7
6
|
};
|
|
8
7
|
record: {
|
|
9
|
-
type:
|
|
8
|
+
type: globalThis.PropType<Partial<{
|
|
10
9
|
onEdit: (editable: boolean, submit?: boolean) => Promise<boolean>;
|
|
11
10
|
onValid: () => Promise<boolean>;
|
|
12
11
|
editable: boolean;
|
|
@@ -15,62 +14,21 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
15
14
|
submitCbs: Function[];
|
|
16
15
|
cancelCbs: Function[];
|
|
17
16
|
validCbs: Function[];
|
|
18
|
-
editValueRefs: Recordable<
|
|
19
|
-
} & Recordable
|
|
17
|
+
editValueRefs: Recordable<globalThis.Ref<any>>;
|
|
18
|
+
} & Recordable>>;
|
|
20
19
|
};
|
|
21
20
|
column: {
|
|
22
|
-
type:
|
|
21
|
+
type: globalThis.PropType<import("../../types/table.type").BasicColumn>;
|
|
23
22
|
default: () => import("../../types/table.type").BasicColumn;
|
|
24
23
|
};
|
|
25
24
|
index: NumberConstructor;
|
|
26
|
-
}, {
|
|
27
|
-
getUiSize: import("vue").ComputedRef<import('../../../../../theme').UiSize>;
|
|
28
|
-
t: {
|
|
29
|
-
(key: string): string;
|
|
30
|
-
(key: string, locale: string): string;
|
|
31
|
-
(key: string, locale: string, list: unknown[]): string;
|
|
32
|
-
(key: string, locale: string, named: Record<string, unknown>): string;
|
|
33
|
-
(key: string, list: unknown[]): string;
|
|
34
|
-
(key: string, named: Record<string, unknown>): string;
|
|
35
|
-
};
|
|
36
|
-
props: any;
|
|
37
|
-
editRule: boolean | ((text: string, record: Recordable<any>) => Promise<string>);
|
|
38
|
-
align: import("ant-design-vue/es/vc-table/interface").AlignType;
|
|
39
|
-
table: Omit<import("../../types/actions.type").TableActionType & {
|
|
40
|
-
tableElRef: import("vue").Ref<HTMLElement>;
|
|
41
|
-
getBind: import("vue").ComputedRef<Recordable<any>>;
|
|
42
|
-
getProps: import("vue").ComputedRef<Recordable<any>>;
|
|
43
|
-
}, "getBind"> & {
|
|
44
|
-
getBind: import("vue").ComputedRef<import("../../types/table.type").BasicTableProps>;
|
|
45
|
-
getProps: import("vue").ComputedRef<Recordable<any>>;
|
|
46
|
-
};
|
|
47
|
-
ruleMessage: import("vue").Ref<string>;
|
|
48
|
-
ruleVisible: import("vue").Ref<boolean>;
|
|
49
|
-
optionsRef: import("vue").Ref<{
|
|
50
|
-
[x: string]: string | number | boolean;
|
|
51
|
-
label: string;
|
|
52
|
-
value: any;
|
|
53
|
-
}[]>;
|
|
54
|
-
currentValueRef: any;
|
|
55
|
-
getComponent: import("vue").ComputedRef<ComponentType>;
|
|
56
|
-
getRuleVisible: import("vue").ComputedRef<boolean>;
|
|
57
|
-
getWrapperClass: import("vue").ComputedRef<string>;
|
|
58
|
-
getIsCheckComp: import("vue").ComputedRef<boolean>;
|
|
59
|
-
createPlaceholderMessage: (component: ComponentType) => string;
|
|
60
|
-
setTableValue: () => void;
|
|
61
|
-
getComponentProps: import("vue").ComputedRef<any>;
|
|
62
|
-
handleChange: (e: any) => Promise<void>;
|
|
63
|
-
handleSubmitRule: () => Promise<boolean>;
|
|
64
|
-
handleOptionsChange: (options: LableValOptions) => void;
|
|
65
|
-
readonly omit: any;
|
|
66
|
-
readonly CellComponent: import("vue").FunctionalComponent<{}, {}>;
|
|
67
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
68
26
|
value: {
|
|
69
|
-
type:
|
|
27
|
+
type: globalThis.PropType<string | number | boolean | Recordable>;
|
|
70
28
|
default: string;
|
|
71
29
|
};
|
|
72
30
|
record: {
|
|
73
|
-
type:
|
|
31
|
+
type: globalThis.PropType<Partial<{
|
|
74
32
|
onEdit: (editable: boolean, submit?: boolean) => Promise<boolean>;
|
|
75
33
|
onValid: () => Promise<boolean>;
|
|
76
34
|
editable: boolean;
|
|
@@ -79,16 +37,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
79
37
|
submitCbs: Function[];
|
|
80
38
|
cancelCbs: Function[];
|
|
81
39
|
validCbs: Function[];
|
|
82
|
-
editValueRefs: Recordable<
|
|
83
|
-
} & Recordable
|
|
40
|
+
editValueRefs: Recordable<globalThis.Ref<any>>;
|
|
41
|
+
} & Recordable>>;
|
|
84
42
|
};
|
|
85
43
|
column: {
|
|
86
|
-
type:
|
|
44
|
+
type: globalThis.PropType<import("../../types/table.type").BasicColumn>;
|
|
87
45
|
default: () => import("../../types/table.type").BasicColumn;
|
|
88
46
|
};
|
|
89
47
|
index: NumberConstructor;
|
|
90
48
|
}>>, {
|
|
91
49
|
value: string;
|
|
92
50
|
column: import("../../types/table.type").BasicColumn;
|
|
93
|
-
}>;
|
|
94
|
-
export default
|
|
51
|
+
}, {}>;
|
|
52
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
2
|
import { ComponentType } from "../../types/table.type";
|
|
3
|
-
declare const componentMap: Map<ComponentType, Component
|
|
3
|
+
declare const componentMap: Map<ComponentType, Component>;
|
|
4
4
|
export { componentMap };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BasicColumn } from
|
|
2
|
-
declare function renderEditCell(column: BasicColumn): ({ text, record, index }: {
|
|
1
|
+
import { BasicColumn } from '../../types/table.type';
|
|
2
|
+
declare function renderEditCell(column: BasicColumn): ({ text: value, record, index }: {
|
|
3
3
|
text: any;
|
|
4
4
|
record: any;
|
|
5
5
|
index: any;
|
|
6
|
-
}) =>
|
|
6
|
+
}) => globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
7
7
|
[key: string]: any;
|
|
8
8
|
}>;
|
|
9
9
|
export { renderEditCell };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Recordable } from
|
|
2
|
-
import { PropType } from
|
|
3
|
-
import { BasicColumn } from
|
|
1
|
+
import { Recordable } from '@dt-frames/core';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { BasicColumn } from '../../types/table.type';
|
|
4
4
|
export declare const basicProps: {
|
|
5
5
|
value: {
|
|
6
|
-
type: PropType<string | number | boolean | Recordable
|
|
6
|
+
type: PropType<string | number | boolean | Recordable>;
|
|
7
7
|
default: string;
|
|
8
8
|
};
|
|
9
9
|
record: {
|
|
@@ -16,8 +16,8 @@ export declare const basicProps: {
|
|
|
16
16
|
submitCbs: Function[];
|
|
17
17
|
cancelCbs: Function[];
|
|
18
18
|
validCbs: Function[];
|
|
19
|
-
editValueRefs: Recordable<
|
|
20
|
-
} & Recordable
|
|
19
|
+
editValueRefs: Recordable<globalThis.Ref<any>>;
|
|
20
|
+
} & Recordable>>;
|
|
21
21
|
};
|
|
22
22
|
column: {
|
|
23
23
|
type: PropType<BasicColumn>;
|
|
@@ -1,69 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BasicColumn } from '../../types/table.type';
|
|
3
|
-
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
4
|
-
t: {
|
|
5
|
-
(key: string): string;
|
|
6
|
-
(key: string, locale: string): string;
|
|
7
|
-
(key: string, locale: string, list: unknown[]): string;
|
|
8
|
-
(key: string, locale: string, named: Record<string, unknown>): string;
|
|
9
|
-
(key: string, list: unknown[]): string;
|
|
10
|
-
(key: string, named: Record<string, unknown>): string;
|
|
11
|
-
};
|
|
12
|
-
emits: (event: "columns-change", ...args: any[]) => void;
|
|
13
|
-
attrs: {
|
|
14
|
-
[x: string]: unknown;
|
|
15
|
-
};
|
|
16
|
-
prefixCls: string;
|
|
17
|
-
table: Omit<import("../../types/actions.type").TableActionType & {
|
|
18
|
-
tableElRef: import("vue").Ref<HTMLElement>;
|
|
19
|
-
getBind: import("vue").ComputedRef<import("@dt-frames/core").Recordable<any>>;
|
|
20
|
-
getProps: import("vue").ComputedRef<import("@dt-frames/core").Recordable<any>>;
|
|
21
|
-
}, "getBind"> & {
|
|
22
|
-
getBind: import("vue").ComputedRef<import("../../types/table.type").BasicTableProps>;
|
|
23
|
-
getProps: import("vue").ComputedRef<import("@dt-frames/core").Recordable<any>>;
|
|
24
|
-
};
|
|
25
|
-
defaultRowSelection: any;
|
|
26
|
-
inited: boolean;
|
|
27
|
-
cachePlainOptions: import("vue").Ref<{
|
|
28
|
-
label: string;
|
|
29
|
-
value: string;
|
|
30
|
-
fixed?: boolean | "left" | "right";
|
|
31
|
-
}[]>;
|
|
32
|
-
plainOptions: import("vue").Ref<{
|
|
33
|
-
label: string;
|
|
34
|
-
value: string;
|
|
35
|
-
fixed?: boolean | "left" | "right";
|
|
36
|
-
}[]>;
|
|
37
|
-
plainSortOptions: import("vue").Ref<{
|
|
38
|
-
label: string;
|
|
39
|
-
value: string;
|
|
40
|
-
fixed?: boolean | "left" | "right";
|
|
41
|
-
}[]>;
|
|
42
|
-
columnListRef: any;
|
|
43
|
-
checkIndex: import("vue").Ref<boolean>;
|
|
44
|
-
checkSelect: import("vue").Ref<boolean>;
|
|
45
|
-
getValues: import("vue").ComputedRef<import("../../types/table.type").BasicTableProps>;
|
|
46
|
-
sortable: Sortable;
|
|
47
|
-
sortableOrder: string[];
|
|
48
|
-
state: {
|
|
49
|
-
checkAll: boolean;
|
|
50
|
-
isInit?: boolean;
|
|
51
|
-
checkedList: string[];
|
|
52
|
-
defaultCheckList: string[];
|
|
53
|
-
};
|
|
54
|
-
indeterminate: import("vue").ComputedRef<boolean>;
|
|
55
|
-
handleVisibleChange: () => void;
|
|
56
|
-
onCheckAllChange: (e: CheckboxChangeEvent) => void;
|
|
57
|
-
handleIndexCheckChange: (e: CheckboxChangeEvent) => void;
|
|
58
|
-
handleSelectCheckChange: (e: CheckboxChangeEvent) => void;
|
|
59
|
-
onChange: (checkedList: string[]) => void;
|
|
60
|
-
reset: () => void;
|
|
61
|
-
getColumns: () => any[];
|
|
62
|
-
handleColumnFixed: (item: BasicColumn, fixed?: 'left' | 'right') => void;
|
|
63
|
-
setColumns: (columns: BasicColumn[] | string[]) => void;
|
|
64
|
-
init: () => void;
|
|
65
|
-
getPopupContainer: () => any;
|
|
66
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "columns-change"[], "columns-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "columns-change"[], "columns-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
67
2
|
"onColumns-change"?: (...args: any[]) => any;
|
|
68
|
-
}, {}>;
|
|
69
|
-
export default
|
|
3
|
+
}, {}, {}>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DownloadType } from '../../types/table.type';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
download: {
|
|
4
|
+
type: globalThis.PropType<boolean | DownloadType[]>;
|
|
5
|
+
};
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
download: {
|
|
8
|
+
type: globalThis.PropType<boolean | DownloadType[]>;
|
|
9
|
+
};
|
|
10
|
+
}>>, {}, {}>;
|
|
11
|
+
export default _default;
|
|
@@ -1,22 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
|
|
3
|
-
(key: string): string;
|
|
4
|
-
(key: string, locale: string): string;
|
|
5
|
-
(key: string, locale: string, list: unknown[]): string;
|
|
6
|
-
(key: string, locale: string, named: Record<string, unknown>): string;
|
|
7
|
-
(key: string, list: unknown[]): string;
|
|
8
|
-
(key: string, named: Record<string, unknown>): string;
|
|
9
|
-
};
|
|
10
|
-
message: import("ant-design-vue/es/message").MessageApi;
|
|
11
|
-
state: {
|
|
12
|
-
indeterminate: boolean;
|
|
13
|
-
checkAll: boolean;
|
|
14
|
-
};
|
|
15
|
-
modalData: import("vue").Ref<any[]>;
|
|
16
|
-
onCheckAllChange: (e: any) => void;
|
|
17
|
-
registerDialog: import("../../../../modal/src/types/modal.type").RegisterFn;
|
|
18
|
-
closeModal: <T = any>(res?: T) => void;
|
|
19
|
-
save: () => void;
|
|
20
|
-
readonly DtModal: import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
21
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
22
|
-
export default _sfc_main;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -1,22 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
|
|
3
|
-
(key: string): string;
|
|
4
|
-
(key: string, locale: string): string;
|
|
5
|
-
(key: string, locale: string, list: unknown[]): string;
|
|
6
|
-
(key: string, locale: string, named: Record<string, unknown>): string;
|
|
7
|
-
(key: string, list: unknown[]): string;
|
|
8
|
-
(key: string, named: Record<string, unknown>): string;
|
|
9
|
-
};
|
|
10
|
-
table: Omit<import("../../types/actions.type").TableActionType & {
|
|
11
|
-
tableElRef: import("vue").Ref<HTMLElement>;
|
|
12
|
-
getBind: import("vue").ComputedRef<import("@dt-frames/core").Recordable<any>>;
|
|
13
|
-
getProps: import("vue").ComputedRef<import("@dt-frames/core").Recordable<any>>;
|
|
14
|
-
}, "getBind"> & {
|
|
15
|
-
getBind: import("vue").ComputedRef<import("../../types/table.type").BasicTableProps>;
|
|
16
|
-
getProps: import("vue").ComputedRef<import("@dt-frames/core").Recordable<any>>;
|
|
17
|
-
};
|
|
18
|
-
wrapEl: any;
|
|
19
|
-
toggle: () => Promise<void>;
|
|
20
|
-
isFullscreen: import("vue").Ref<boolean>;
|
|
21
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
22
|
-
export default _sfc_main;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TableSetting } from '../../types/table.type';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
setting: {
|
|
4
|
+
type: globalThis.PropType<boolean | TableSetting>;
|
|
5
|
+
default: () => {};
|
|
6
|
+
};
|
|
7
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "columns-change"[], "columns-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
+
setting: {
|
|
9
|
+
type: globalThis.PropType<boolean | TableSetting>;
|
|
10
|
+
default: () => {};
|
|
11
|
+
};
|
|
12
|
+
}>> & {
|
|
13
|
+
"onColumns-change"?: (...args: any[]) => any;
|
|
14
|
+
}, {
|
|
15
|
+
setting: {};
|
|
16
|
+
}, {}>;
|
|
17
|
+
export default _default;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
2
|
import { BasicTableProps, SorterResult, PaginationProps } from '../types/table.type';
|
|
3
3
|
import { Recordable } from '@dt-frames/core';
|
|
4
|
-
|
|
5
|
-
getPaginationInfo: ComputedRef<boolean | PaginationProps>;
|
|
4
|
+
type ActionsType = {
|
|
6
5
|
setPagination: (info: Partial<PaginationProps>) => void;
|
|
7
6
|
clearSelectedRowKeys: () => void;
|
|
8
7
|
};
|
|
9
|
-
export declare function useDataSource(propsRef: ComputedRef<BasicTableProps>, {
|
|
10
|
-
getDataSourceRef: ComputedRef<Recordable
|
|
8
|
+
export declare function useDataSource(propsRef: ComputedRef<BasicTableProps>, { setPagination, clearSelectedRowKeys }: ActionsType): {
|
|
9
|
+
getDataSourceRef: ComputedRef<import("vue").Raw<Recordable[]>>;
|
|
11
10
|
handleTableChange: (pagination: PaginationProps, filters: Partial<Recordable<string[]>>, sorter: SorterResult) => any;
|
|
12
11
|
updateTableDataRecord: (rowKey: string | number, record: Recordable) => Recordable | undefined;
|
|
13
12
|
findTableDataRecord: (rowKey: string | number) => any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Recordable } from
|
|
2
|
-
import { ComputedRef, Slots } from
|
|
1
|
+
import { Recordable } from '@dt-frames/core';
|
|
2
|
+
import { ComputedRef, Slots } from 'vue';
|
|
3
3
|
import { BasicTableProps, ColumnChangeParam } from "../types/table.type";
|
|
4
4
|
export declare function useTableHeader(propsRef: ComputedRef<BasicTableProps>, slots: Slots, handlers: {
|
|
5
5
|
onColumnsChange: (data: ColumnChangeParam[]) => void;
|
|
6
6
|
}): {
|
|
7
|
-
getHeaderProps: ComputedRef<Recordable
|
|
7
|
+
getHeaderProps: ComputedRef<Recordable>;
|
|
8
8
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ComputedRef, Ref } from
|
|
2
|
-
import { BasicColumn } from
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import { BasicColumn } from '../types/table.type';
|
|
3
3
|
export declare function useHeaderCode(code: string | Ref<string> | ComputedRef<string>, changeColumns: (rows: BasicColumn[]) => void): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComputedRef } from
|
|
2
|
-
import { BasicTableProps } from
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { BasicTableProps } from '../types/table.type';
|
|
3
3
|
export declare function useLoading(props: ComputedRef<BasicTableProps>): {
|
|
4
|
-
getLoading:
|
|
4
|
+
getLoading: ComputedRef<Boolean>;
|
|
5
5
|
setLoading: (loading: boolean) => void;
|
|
6
6
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComputedRef } from
|
|
2
|
-
import { BasicTableProps, PaginationProps } from
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { BasicTableProps, PaginationProps } from '../types/table.type';
|
|
3
3
|
export declare function usePagination(props: ComputedRef<BasicTableProps>): {
|
|
4
4
|
getPaginationInfo: ComputedRef<boolean | PaginationProps>;
|
|
5
5
|
setPagination: (info: Partial<PaginationProps>) => void;
|
|
@@ -7,6 +7,6 @@ export declare function useRowSelection(propsRef: ComputedRef<BasicTableProps>,
|
|
|
7
7
|
clearSelectedRowKeys: () => void;
|
|
8
8
|
getRowSelection: () => TableRowSelection<any>;
|
|
9
9
|
getSelectedRowKeys: () => Key[];
|
|
10
|
-
getSelectRows: () => Recordable
|
|
10
|
+
getSelectRows: () => Recordable[];
|
|
11
11
|
setSelectedRowKeys: (rowKeys: Key[]) => void;
|
|
12
12
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DynamicProps } from '@dt-frames/core';
|
|
2
2
|
import { TableActionType } from '../types/actions.type';
|
|
3
3
|
import { BasicTableProps } from "../types/table.type";
|
|
4
|
-
|
|
4
|
+
type Props = Partial<DynamicProps<BasicTableProps>>;
|
|
5
5
|
export declare function useTable(props?: Props): [
|
|
6
6
|
registerTable: (instance: TableActionType) => void,
|
|
7
7
|
methods: TableActionType
|
|
@@ -2,12 +2,12 @@ import { Nullable, Recordable } from "@dt-frames/core";
|
|
|
2
2
|
import { ComputedRef, Ref } from "vue";
|
|
3
3
|
import { TableActionType } from "../types/actions.type";
|
|
4
4
|
import { BasicTableProps } from "../types/table.type";
|
|
5
|
-
|
|
5
|
+
type Instance = TableActionType & {
|
|
6
6
|
tableElRef: Ref<Nullable<HTMLElement>>;
|
|
7
7
|
getBind: ComputedRef<Recordable>;
|
|
8
8
|
getProps: ComputedRef<Recordable>;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type RetInstance = Omit<Instance, 'getBind'> & {
|
|
11
11
|
getBind: ComputedRef<BasicTableProps>;
|
|
12
12
|
getProps: ComputedRef<Recordable>;
|
|
13
13
|
};
|