foucui 1.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 +43 -0
- package/components/QiuAffix/index.vue +186 -0
- package/components/QiuAlert/index.vue +208 -0
- package/components/QiuAnchor/context.ts +18 -0
- package/components/QiuAnchor/index.vue +180 -0
- package/components/QiuAnchorLink/index.vue +67 -0
- package/components/QiuApp/index.vue +9 -0
- package/components/QiuAutocomplete/index.vue +408 -0
- package/components/QiuAvatar/index.vue +140 -0
- package/components/QiuBacktop/index.vue +121 -0
- package/components/QiuBadge/api/index.ts +389 -0
- package/components/QiuBadge/components/BadgeImagePickerDialog.vue +243 -0
- package/components/QiuBadge/components/BadgeLibraryManagerDialog.vue +30 -0
- package/components/QiuBadge/components/BadgeLibraryPanel.vue +182 -0
- package/components/QiuBadge/composables/useTableHostHeight.ts +53 -0
- package/components/QiuBadge/index.ts +18 -0
- package/components/QiuBadge/shared/BadgeTemplateRenderer.vue +32 -0
- package/components/QiuBadge/shared/assetUrl.ts +26 -0
- package/components/QiuBadge/shared/badgeTemplate.ts +309 -0
- package/components/QiuBadge/utils/chinaAreaData.ts +44 -0
- package/components/QiuBadge/utils/hostRegion.ts +22 -0
- package/components/QiuBadge/utils/pca-code.json +1 -0
- package/components/QiuBadge/utils/pdfFromElement.ts +348 -0
- package/components/QiuBadge/views/BadgeLibraryView.vue +32 -0
- package/components/QiuBadge/views/BadgeManageView.vue +1364 -0
- package/components/QiuBadge/views/BadgeTemplateEditorView.vue +10 -0
- package/components/QiuBadge/views/BadgeTemplateListView.vue +229 -0
- package/components/QiuBadge/views/DeskLabelTemplateListView.vue +227 -0
- package/components/QiuBadge/views/DeskLabelView.vue +683 -0
- package/components/QiuBadgeDot/index.vue +87 -0
- package/components/QiuButton/index.vue +247 -0
- package/components/QiuButtonGroup/index.vue +63 -0
- package/components/QiuCanvasKit/QiuCanvasEditor.vue +5503 -0
- package/components/QiuCanvasKit/QiuCanvasRenderer.vue +348 -0
- package/components/QiuCanvasKit/assetUrl.ts +11 -0
- package/components/QiuCanvasKit/components/DataModulesPanel.vue +352 -0
- package/components/QiuCanvasKit/export/html.ts +132 -0
- package/components/QiuCanvasKit/export/pdf.ts +48 -0
- package/components/QiuCanvasKit/export/png.ts +50 -0
- package/components/QiuCanvasKit/index.ts +20 -0
- package/components/QiuCanvasKit/modules/badgeCompat.ts +84 -0
- package/components/QiuCanvasKit/modules/dataRegistry.ts +207 -0
- package/components/QiuCanvasKit/modules/merge.ts +71 -0
- package/components/QiuCanvasKit/presets/badge.ts +67 -0
- package/components/QiuCanvasKit/presets/banner.ts +79 -0
- package/components/QiuCanvasKit/types.ts +138 -0
- package/components/QiuCard/index.vue +104 -0
- package/components/QiuCarousel/context.ts +16 -0
- package/components/QiuCarousel/index.vue +343 -0
- package/components/QiuCarouselItem/index.vue +47 -0
- package/components/QiuCascader/index.vue +879 -0
- package/components/QiuCascader/types.ts +48 -0
- package/components/QiuCheckbox/QiuCheckboxGroup.vue +78 -0
- package/components/QiuCheckbox/index.vue +231 -0
- package/components/QiuCheckbox/types.ts +8 -0
- package/components/QiuCode/index.vue +64 -0
- package/components/QiuCol/col.scss +55 -0
- package/components/QiuCol/index.vue +64 -0
- package/components/QiuCollapse/context.ts +10 -0
- package/components/QiuCollapse/index.vue +70 -0
- package/components/QiuCollapseItem/index.vue +167 -0
- package/components/QiuColorField/index.vue +296 -0
- package/components/QiuColorPicker/README.md +118 -0
- package/components/QiuColorPicker/index.vue +60 -0
- package/components/QiuColorfulCard/index.vue +101 -0
- package/components/QiuCombobox/index.vue +277 -0
- package/components/QiuConfigProvider/index.vue +31 -0
- package/components/QiuContextMenu/index.vue +209 -0
- package/components/QiuDate/index.vue +1134 -0
- package/components/QiuDescriptions/context.ts +20 -0
- package/components/QiuDescriptions/index.vue +115 -0
- package/components/QiuDescriptionsItem/index.vue +103 -0
- package/components/QiuDialog/index.vue +828 -0
- package/components/QiuDigitalCard/index.vue +159 -0
- package/components/QiuDivider/index.vue +185 -0
- package/components/QiuDot/index.vue +83 -0
- package/components/QiuDrawer/index.vue +350 -0
- package/components/QiuDropdown/QiuDropdownItem.vue +74 -0
- package/components/QiuDropdown/QiuDropdownMenu.vue +22 -0
- package/components/QiuDropdown/context.ts +9 -0
- package/components/QiuDropdown/index.vue +189 -0
- package/components/QiuEmpty/index.vue +73 -0
- package/components/QiuForm/index.vue +172 -0
- package/components/QiuForm/types.ts +39 -0
- package/components/QiuFormItem/index.vue +276 -0
- package/components/QiuFullscreen/index.vue +11 -0
- package/components/QiuGrid/index.vue +408 -0
- package/components/QiuHoverCard/index.vue +192 -0
- package/components/QiuIcon/index.vue +117 -0
- package/components/QiuIconPicker/iconify.libraries.ts +182 -0
- package/components/QiuIconPicker/icons.catalog.ts +3072 -0
- package/components/QiuIconPicker/index.vue +488 -0
- package/components/QiuImage/index.vue +177 -0
- package/components/QiuInput/index.vue +328 -0
- package/components/QiuInputNumber/index.vue +295 -0
- package/components/QiuInputOtp/index.vue +190 -0
- package/components/QiuKbd/index.vue +57 -0
- package/components/QiuLayoutContainer/index.vue +50 -0
- package/components/QiuLinkPreview/index.vue +224 -0
- package/components/QiuLoading/index.ts +176 -0
- package/components/QiuLoading/spinner.vue +820 -0
- package/components/QiuLoading/types.ts +44 -0
- package/components/QiuMention/index.vue +299 -0
- package/components/QiuMenu/QiuMenuRoot.vue +241 -0
- package/components/QiuMenu/components/QiuMenuItem.vue +340 -0
- package/components/QiuMenu/components/QiuSubMenu.vue +504 -0
- package/components/QiuMenu/context.ts +21 -0
- package/components/QiuMenu/index.vue +43 -0
- package/components/QiuMenuNav/QiuMenuNavItem.vue +100 -0
- package/components/QiuMenuNav/QiuMenuNavSub.vue +120 -0
- package/components/QiuMenuNav/context.ts +14 -0
- package/components/QiuMenuNav/index.vue +148 -0
- package/components/QiuMsg/QiuMsgItem.vue +180 -0
- package/components/QiuMsg/index.ts +158 -0
- package/components/QiuMsg/types.ts +23 -0
- package/components/QiuMsgBox/index.ts +147 -0
- package/components/QiuNotification/QiuNotificationItem.vue +168 -0
- package/components/QiuNotification/index.ts +155 -0
- package/components/QiuNotification/types.ts +14 -0
- package/components/QiuPage/index.vue +12 -0
- package/components/QiuPageHeader/index.vue +115 -0
- package/components/QiuPageMain/index.vue +78 -0
- package/components/QiuPagination/index.vue +421 -0
- package/components/QiuPasswordStrength/index.vue +101 -0
- package/components/QiuPopconfirm/index.vue +196 -0
- package/components/QiuPopover/index.vue +277 -0
- package/components/QiuProgress/index.vue +235 -0
- package/components/QiuQrcode/index.vue +302 -0
- package/components/QiuQueryForm/components/QiuQueryFormBottomPanel.vue +13 -0
- package/components/QiuQueryForm/components/QiuQueryFormLeftPanel.vue +37 -0
- package/components/QiuQueryForm/components/QiuQueryFormRightPanel.vue +37 -0
- package/components/QiuQueryForm/components/QiuQueryFormTopPanel.vue +13 -0
- package/components/QiuQueryForm/index.vue +117 -0
- package/components/QiuRadio/QiuRadioGroup.vue +75 -0
- package/components/QiuRadio/index.vue +191 -0
- package/components/QiuRadio/types.ts +9 -0
- package/components/QiuRate/index.vue +184 -0
- package/components/QiuRefresh/index.vue +32 -0
- package/components/QiuResult/index.vue +103 -0
- package/components/QiuRow/index.vue +60 -0
- package/components/QiuRow/types.ts +5 -0
- package/components/QiuScrollbar/index.vue +107 -0
- package/components/QiuSearchBar/index.vue +154 -0
- package/components/QiuSegmented/index.vue +120 -0
- package/components/QiuSelect/QiuOption.vue +93 -0
- package/components/QiuSelect/index.vue +452 -0
- package/components/QiuSelect/types.ts +15 -0
- package/components/QiuSkeleton/index.vue +78 -0
- package/components/QiuSlider/index.vue +266 -0
- package/components/QiuSpace/index.vue +95 -0
- package/components/QiuSparkline/index.vue +92 -0
- package/components/QiuStatistic/index.vue +4 -0
- package/components/QiuStatistics/index.vue +123 -0
- package/components/QiuStep/index.vue +220 -0
- package/components/QiuSteps/context.ts +25 -0
- package/components/QiuSteps/index.vue +84 -0
- package/components/QiuSwitch/index.vue +145 -0
- package/components/QiuTabBar/index.vue +218 -0
- package/components/QiuTabBar/types.ts +19 -0
- package/components/QiuTabPane/index.vue +82 -0
- package/components/QiuTable/columns.ts +16 -0
- package/components/QiuTable/export.ts +102 -0
- package/components/QiuTable/index.ts +24 -0
- package/components/QiuTable/index.vue +3503 -0
- package/components/QiuTable/registry.ts +75 -0
- package/components/QiuTable/styles/table.scss +1230 -0
- package/components/QiuTable/types.ts +413 -0
- package/components/QiuTable/useArea.ts +202 -0
- package/components/QiuTable/useColumns.ts +325 -0
- package/components/QiuTable/useEdit.ts +136 -0
- package/components/QiuTable/useExtras.ts +115 -0
- package/components/QiuTable/useHistory.ts +77 -0
- package/components/QiuTable/useMerge.ts +105 -0
- package/components/QiuTable/useResize.ts +86 -0
- package/components/QiuTable/useScrollSync.ts +152 -0
- package/components/QiuTable/useVirtual.ts +97 -0
- package/components/QiuTable/utils.ts +165 -0
- package/components/QiuTableColumn/index.vue +101 -0
- package/components/QiuTag/index.vue +143 -0
- package/components/QiuText/index.vue +99 -0
- package/components/QiuTime/index.vue +548 -0
- package/components/QiuTimeAgo/index.vue +103 -0
- package/components/QiuTimeline/index.vue +54 -0
- package/components/QiuTimelineItem/index.vue +140 -0
- package/components/QiuTips/index.vue +323 -0
- package/components/QiuTooltip/index.vue +237 -0
- package/components/QiuTransfer/index.vue +277 -0
- package/components/QiuTree/QiuTreeNode.vue +146 -0
- package/components/QiuTree/index.vue +143 -0
- package/components/QiuTree/types.ts +30 -0
- package/components/QiuTreeSelect/index.vue +259 -0
- package/components/QiuTrend/index.vue +92 -0
- package/components/QiuUpload/index.vue +628 -0
- package/components/QiuUploadCrop/index.vue +1267 -0
- package/components/QiuWatermark/index.vue +121 -0
- package/components/useBodyScrollLock.ts +28 -0
- package/dist/components/QiuAnchor/context.d.ts +15 -0
- package/dist/components/QiuAnchorLink/index.vue.d.ts +23 -0
- package/dist/components/QiuBadge/api/index.d.ts +110 -0
- package/dist/components/QiuBadge/components/BadgeImagePickerDialog.vue.d.ts +16 -0
- package/dist/components/QiuBadge/components/BadgeLibraryManagerDialog.vue.d.ts +9 -0
- package/dist/components/QiuBadge/components/BadgeLibraryPanel.vue.d.ts +5 -0
- package/dist/components/QiuBadge/composables/useTableHostHeight.d.ts +7 -0
- package/dist/components/QiuBadge/index.d.ts +18 -0
- package/dist/components/QiuBadge/shared/BadgeTemplateRenderer.vue.d.ts +14 -0
- package/dist/components/QiuBadge/shared/assetUrl.d.ts +1 -0
- package/dist/components/QiuBadge/shared/badgeTemplate.d.ts +132 -0
- package/dist/components/QiuBadge/utils/chinaAreaData.d.ts +9 -0
- package/dist/components/QiuBadge/utils/hostRegion.d.ts +3 -0
- package/dist/components/QiuBadge/utils/pca-code.json.d.ts +3 -0
- package/dist/components/QiuBadge/utils/pdfFromElement.d.ts +14 -0
- package/dist/components/QiuBadge/views/BadgeLibraryView.vue.d.ts +2 -0
- package/dist/components/QiuBadge/views/BadgeManageView.vue.d.ts +7 -0
- package/dist/components/QiuBadge/views/BadgeTemplateListView.vue.d.ts +4 -0
- package/dist/components/QiuBadge/views/DeskLabelTemplateListView.vue.d.ts +4 -0
- package/dist/components/QiuBadge/views/DeskLabelView.vue.d.ts +4 -0
- package/dist/components/QiuButton/index.vue.d.ts +52 -0
- package/dist/components/QiuCanvasKit/QiuCanvasEditor.vue.d.ts +24 -0
- package/dist/components/QiuCanvasKit/QiuCanvasRenderer.vue.d.ts +13 -0
- package/dist/components/QiuCanvasKit/assetUrl.d.ts +7 -0
- package/dist/components/QiuCanvasKit/components/DataModulesPanel.vue.d.ts +23 -0
- package/dist/components/QiuCanvasKit/export/html.d.ts +12 -0
- package/dist/components/QiuCanvasKit/export/pdf.d.ts +9 -0
- package/dist/components/QiuCanvasKit/export/png.d.ts +8 -0
- package/dist/components/QiuCanvasKit/index.d.ts +19 -0
- package/dist/components/QiuCanvasKit/modules/badgeCompat.d.ts +8 -0
- package/dist/components/QiuCanvasKit/modules/dataRegistry.d.ts +23 -0
- package/dist/components/QiuCanvasKit/modules/merge.d.ts +12 -0
- package/dist/components/QiuCanvasKit/presets/badge.d.ts +12 -0
- package/dist/components/QiuCanvasKit/presets/banner.d.ts +4 -0
- package/dist/components/QiuCanvasKit/types.d.ts +119 -0
- package/dist/components/QiuCarousel/context.d.ts +13 -0
- package/dist/components/QiuCarouselItem/index.vue.d.ts +20 -0
- package/dist/components/QiuCascader/types.d.ts +25 -0
- package/dist/components/QiuCheckbox/QiuCheckboxGroup.vue.d.ts +33 -0
- package/dist/components/QiuCheckbox/index.vue.d.ts +38 -0
- package/dist/components/QiuCheckbox/types.d.ts +7 -0
- package/dist/components/QiuCode/index.vue.d.ts +15 -0
- package/dist/components/QiuCollapse/context.d.ts +8 -0
- package/dist/components/QiuCollapseItem/index.vue.d.ts +30 -0
- package/dist/components/QiuColorField/index.vue.d.ts +23 -0
- package/dist/components/QiuColorPicker/index.vue.d.ts +21 -0
- package/dist/components/QiuCombobox/index.vue.d.ts +54 -0
- package/dist/components/QiuContextMenu/index.vue.d.ts +46 -0
- package/dist/components/QiuDescriptions/context.d.ts +16 -0
- package/dist/components/QiuDescriptionsItem/index.vue.d.ts +25 -0
- package/dist/components/QiuDigitalCard/index.vue.d.ts +45 -0
- package/dist/components/QiuDropdown/QiuDropdownItem.vue.d.ts +30 -0
- package/dist/components/QiuDropdown/QiuDropdownMenu.vue.d.ts +17 -0
- package/dist/components/QiuDropdown/context.d.ts +7 -0
- package/dist/components/QiuDropdown/index.vue.d.ts +46 -0
- package/dist/components/QiuForm/types.d.ts +31 -0
- package/dist/components/QiuHoverCard/index.vue.d.ts +44 -0
- package/dist/components/QiuIcon/index.vue.d.ts +18 -0
- package/dist/components/QiuIconPicker/iconify.libraries.d.ts +18 -0
- package/dist/components/QiuIconPicker/icons.catalog.d.ts +12 -0
- package/dist/components/QiuInput/index.vue.d.ts +71 -0
- package/dist/components/QiuInputNumber/index.vue.d.ts +38 -0
- package/dist/components/QiuInputOtp/index.vue.d.ts +28 -0
- package/dist/components/QiuKbd/index.vue.d.ts +22 -0
- package/dist/components/QiuLayoutContainer/index.vue.d.ts +29 -0
- package/dist/components/QiuLinkPreview/index.vue.d.ts +43 -0
- package/dist/components/QiuLoading/index.d.ts +26 -0
- package/dist/components/QiuLoading/spinner.vue.d.ts +14 -0
- package/dist/components/QiuLoading/types.d.ts +2 -0
- package/dist/components/QiuMention/index.vue.d.ts +35 -0
- package/dist/components/QiuMenu/QiuMenuRoot.vue.d.ts +36 -0
- package/dist/components/QiuMenu/context.d.ts +19 -0
- package/dist/components/QiuMenuNav/QiuMenuNavItem.vue.d.ts +26 -0
- package/dist/components/QiuMenuNav/QiuMenuNavSub.vue.d.ts +25 -0
- package/dist/components/QiuMenuNav/context.d.ts +12 -0
- package/dist/components/QiuMenuNav/index.vue.d.ts +35 -0
- package/dist/components/QiuMsg/QiuMsgItem.vue.d.ts +15 -0
- package/dist/components/QiuMsg/index.d.ts +30 -0
- package/dist/components/QiuMsg/types.d.ts +12 -0
- package/dist/components/QiuMsgBox/index.d.ts +14 -0
- package/dist/components/QiuNotification/QiuNotificationItem.vue.d.ts +16 -0
- package/dist/components/QiuNotification/index.d.ts +30 -0
- package/dist/components/QiuNotification/types.d.ts +12 -0
- package/dist/components/QiuPageMain/index.vue.d.ts +27 -0
- package/dist/components/QiuPagination/index.vue.d.ts +44 -0
- package/dist/components/QiuPasswordStrength/index.vue.d.ts +9 -0
- package/dist/components/QiuQrcode/index.vue.d.ts +20 -0
- package/dist/components/QiuRadio/QiuRadioGroup.vue.d.ts +33 -0
- package/dist/components/QiuRadio/types.d.ts +8 -0
- package/dist/components/QiuRow/types.d.ts +4 -0
- package/dist/components/QiuSearchBar/index.vue.d.ts +38 -0
- package/dist/components/QiuSelect/QiuOption.vue.d.ts +24 -0
- package/dist/components/QiuSelect/index.vue.d.ts +52 -0
- package/dist/components/QiuSelect/types.d.ts +13 -0
- package/dist/components/QiuSparkline/index.vue.d.ts +18 -0
- package/dist/components/QiuStep/index.vue.d.ts +31 -0
- package/dist/components/QiuSteps/context.d.ts +21 -0
- package/dist/components/QiuSwitch/index.vue.d.ts +25 -0
- package/dist/components/QiuTabBar/index.vue.d.ts +32 -0
- package/dist/components/QiuTabBar/types.d.ts +16 -0
- package/dist/components/QiuTabPane/index.vue.d.ts +25 -0
- package/dist/components/QiuTable/columns.d.ts +1 -0
- package/dist/components/QiuTable/export.d.ts +18 -0
- package/dist/components/QiuTable/index.d.ts +3 -0
- package/dist/components/QiuTable/index.vue.d.ts +322 -0
- package/dist/components/QiuTable/registry.d.ts +39 -0
- package/dist/components/QiuTable/types.d.ts +353 -0
- package/dist/components/QiuTable/useArea.d.ts +51 -0
- package/dist/components/QiuTable/useColumns.d.ts +67 -0
- package/dist/components/QiuTable/useEdit.d.ts +36 -0
- package/dist/components/QiuTable/useExtras.d.ts +38 -0
- package/dist/components/QiuTable/useHistory.d.ts +44 -0
- package/dist/components/QiuTable/useMerge.d.ts +28 -0
- package/dist/components/QiuTable/useResize.d.ts +19 -0
- package/dist/components/QiuTable/useScrollSync.d.ts +25 -0
- package/dist/components/QiuTable/useVirtual.d.ts +30 -0
- package/dist/components/QiuTable/utils.d.ts +54 -0
- package/dist/components/QiuTime/index.vue.d.ts +43 -0
- package/dist/components/QiuTimeAgo/index.vue.d.ts +35 -0
- package/dist/components/QiuTimelineItem/index.vue.d.ts +35 -0
- package/dist/components/QiuTooltip/index.vue.d.ts +38 -0
- package/dist/components/QiuTree/types.d.ts +13 -0
- package/dist/components/QiuTrend/index.vue.d.ts +34 -0
- package/dist/components/QiuUpload/index.vue.d.ts +86 -0
- package/dist/components/QiuUploadCrop/index.vue.d.ts +136 -0
- package/dist/components/useBodyScrollLock.d.ts +4 -0
- package/dist/foucui.css +1 -0
- package/dist/foucui.js +26509 -0
- package/dist/foucui.umd.cjs +125 -0
- package/dist/index.d.ts +46 -0
- package/dist/src/bridge/@/api/media.d.ts +7 -0
- package/dist/src/bridge/@/api/notice.d.ts +5 -0
- package/dist/src/bridge/@/config/index.d.ts +29 -0
- package/dist/src/bridge/@/config/media.config.d.ts +15 -0
- package/dist/src/bridge/@/config/security.config.d.ts +7 -0
- package/dist/src/bridge/@/i18n/index.d.ts +7 -0
- package/dist/src/bridge/@/store/modules/bing.d.ts +3 -0
- package/dist/src/bridge/@/store/modules/errorLog.d.ts +3 -0
- package/dist/src/bridge/@/store/modules/media.d.ts +4 -0
- package/dist/src/bridge/@/store/modules/routes.d.ts +3 -0
- package/dist/src/bridge/@/store/modules/settings.d.ts +3 -0
- package/dist/src/bridge/@/store/modules/tabs.d.ts +3 -0
- package/dist/src/bridge/@/store/modules/user.d.ts +3 -0
- package/dist/src/bridge/@/utils/convertToCamelCase.d.ts +2 -0
- package/dist/src/bridge/@/utils/index.d.ts +5 -0
- package/dist/src/bridge/@/utils/pageTitle.d.ts +1 -0
- package/dist/src/bridge/@/utils/routes.d.ts +11 -0
- package/dist/src/bridge/@/utils/validate.d.ts +13 -0
- package/dist/src/bridge/@qiu/plugins/shortcuts.d.ts +2 -0
- package/dist/src/i18n.d.ts +2 -0
- package/package.json +83 -0
- package/plugins/qiu.ts +83 -0
- package/plugins/shortcuts.ts +69 -0
- package/src/bridge/@/api/media.ts +8 -0
- package/src/bridge/@/api/notice.ts +5 -0
- package/src/bridge/@/config/index.ts +38 -0
- package/src/bridge/@/config/media.config.ts +37 -0
- package/src/bridge/@/config/security.config.ts +8 -0
- package/src/bridge/@/i18n/index.ts +6 -0
- package/src/bridge/@/store/modules/bing.ts +9 -0
- package/src/bridge/@/store/modules/errorLog.ts +9 -0
- package/src/bridge/@/store/modules/media.ts +10 -0
- package/src/bridge/@/store/modules/routes.ts +10 -0
- package/src/bridge/@/store/modules/settings.ts +9 -0
- package/src/bridge/@/store/modules/tabs.ts +9 -0
- package/src/bridge/@/store/modules/user.ts +9 -0
- package/src/bridge/@/utils/convertToCamelCase.ts +11 -0
- package/src/bridge/@/utils/index.ts +9 -0
- package/src/bridge/@/utils/pageTitle.ts +4 -0
- package/src/bridge/@/utils/routes.ts +14 -0
- package/src/bridge/@/utils/validate.ts +17 -0
- package/src/bridge/@qiu/plugins/shortcuts.ts +3 -0
- package/src/i18n.ts +8 -0
- package/src/icons/qiu-logo.svg +1 -0
- package/styles/dark.scss +194 -0
- package/styles/normalize.css +349 -0
- package/styles/plain.scss +423 -0
- package/styles/qiu-tokens.scss +40 -0
- package/styles/qiu.scss +1149 -0
- package/styles/technology.scss +452 -0
- package/styles/var.scss +382 -0
- package/styles/variables.scss +77 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { QiuSelectOption } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue?: string | number | boolean | null;
|
|
4
|
+
options?: QiuSelectOption[];
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
clearable?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
size?: 'large' | 'default' | 'small';
|
|
9
|
+
/** 按内容自适应宽度(表格单元格内推荐) */
|
|
10
|
+
fit?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare function __VLS_template(): {
|
|
13
|
+
attrs: Partial<{}>;
|
|
14
|
+
slots: {
|
|
15
|
+
default?(_: {}): any;
|
|
16
|
+
};
|
|
17
|
+
refs: {
|
|
18
|
+
rootRef: HTMLDivElement;
|
|
19
|
+
dropdownRef: HTMLDivElement;
|
|
20
|
+
};
|
|
21
|
+
rootEl: any;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
24
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
+
"update:modelValue": (args_0: string | number | boolean) => any;
|
|
26
|
+
change: (args_0: string | number | boolean) => any;
|
|
27
|
+
clear: () => any;
|
|
28
|
+
visibleChange: (args_0: boolean) => any;
|
|
29
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
30
|
+
"onUpdate:modelValue"?: (args_0: string | number | boolean) => any;
|
|
31
|
+
onChange?: (args_0: string | number | boolean) => any;
|
|
32
|
+
onClear?: () => any;
|
|
33
|
+
onVisibleChange?: (args_0: boolean) => any;
|
|
34
|
+
}>, {
|
|
35
|
+
modelValue: string | number | boolean | null;
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
size: "large" | "default" | "small";
|
|
38
|
+
placeholder: string;
|
|
39
|
+
fit: boolean;
|
|
40
|
+
options: QiuSelectOption[];
|
|
41
|
+
clearable: boolean;
|
|
42
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
43
|
+
rootRef: HTMLDivElement;
|
|
44
|
+
dropdownRef: HTMLDivElement;
|
|
45
|
+
}, any>;
|
|
46
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export interface QiuSelectOption {
|
|
3
|
+
value: string | number | boolean;
|
|
4
|
+
label: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface QiuSelectContext {
|
|
8
|
+
modelValue: Ref<string | number | boolean | null | undefined>;
|
|
9
|
+
selectOption: (value: string | number | boolean, label: string) => void;
|
|
10
|
+
setHoverOption: (value: string | number | boolean) => void;
|
|
11
|
+
registerOption: (option: QiuSelectOption) => void;
|
|
12
|
+
unregisterOption: (value: string | number | boolean) => void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
data?: number[];
|
|
3
|
+
width?: number;
|
|
4
|
+
height?: number;
|
|
5
|
+
color?: string;
|
|
6
|
+
/** 是否填充面积 */
|
|
7
|
+
fill?: boolean;
|
|
8
|
+
strokeWidth?: number;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
11
|
+
data: number[];
|
|
12
|
+
fill: boolean;
|
|
13
|
+
color: string;
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
strokeWidth: number;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLSpanElement>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { StepStatus } from '../QiuSteps/context';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
status?: StepStatus | '';
|
|
7
|
+
};
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
icon?(_: {}): any;
|
|
12
|
+
title?(_: {}): any;
|
|
13
|
+
description?(_: {}): any;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: HTMLDivElement;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
20
|
+
title: string;
|
|
21
|
+
icon: string;
|
|
22
|
+
description: string;
|
|
23
|
+
status: StepStatus | "";
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { InjectionKey, Ref } from 'vue';
|
|
2
|
+
export type StepStatus = 'wait' | 'process' | 'finish' | 'error' | 'success';
|
|
3
|
+
export interface QiuStepItem {
|
|
4
|
+
uid: number;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
status: StepStatus | '';
|
|
9
|
+
}
|
|
10
|
+
export interface QiuStepsContext {
|
|
11
|
+
active: Ref<number>;
|
|
12
|
+
space: Ref<string | number | undefined>;
|
|
13
|
+
direction: Ref<'horizontal' | 'vertical'>;
|
|
14
|
+
processStatus: Ref<StepStatus>;
|
|
15
|
+
finishStatus: Ref<StepStatus>;
|
|
16
|
+
alignCenter: Ref<boolean>;
|
|
17
|
+
steps: Ref<QiuStepItem[]>;
|
|
18
|
+
addStep: (step: QiuStepItem) => void;
|
|
19
|
+
removeStep: (uid: number) => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const QIU_STEPS_KEY: InjectionKey<QiuStepsContext>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: boolean | string | number;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
size?: 'large' | 'default' | 'small';
|
|
5
|
+
activeText?: string;
|
|
6
|
+
inactiveText?: string;
|
|
7
|
+
activeValue?: boolean | string | number;
|
|
8
|
+
inactiveValue?: boolean | string | number;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (args_0: string | number | boolean) => any;
|
|
12
|
+
change: (args_0: string | number | boolean) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: (args_0: string | number | boolean) => any;
|
|
15
|
+
onChange?: (args_0: string | number | boolean) => any;
|
|
16
|
+
}>, {
|
|
17
|
+
modelValue: boolean | string | number;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
size: "large" | "default" | "small";
|
|
20
|
+
activeText: string;
|
|
21
|
+
inactiveText: string;
|
|
22
|
+
activeValue: boolean | string | number;
|
|
23
|
+
inactiveValue: boolean | string | number;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { QiuTabPaneRegistration } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue?: string | number;
|
|
4
|
+
type?: 'default' | 'card' | 'border-card';
|
|
5
|
+
stretch?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: Partial<Record<NonNullable<`label-${string}` | `label-${number}`>, (_: {}) => any>> & {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: HTMLDivElement;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (args_0: string | number) => any;
|
|
18
|
+
tabClick: (pane: QiuTabPaneRegistration) => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
"onUpdate:modelValue"?: (args_0: string | number) => any;
|
|
21
|
+
onTabClick?: (pane: QiuTabPaneRegistration) => any;
|
|
22
|
+
}>, {
|
|
23
|
+
type: "default" | "card" | "border-card";
|
|
24
|
+
stretch: boolean;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
26
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { InjectionKey, Ref, VNode } from 'vue';
|
|
2
|
+
export interface QiuTabPaneRegistration {
|
|
3
|
+
uid: number;
|
|
4
|
+
name: string | number;
|
|
5
|
+
label: string;
|
|
6
|
+
lazy?: boolean;
|
|
7
|
+
loaded?: boolean;
|
|
8
|
+
render: () => VNode[];
|
|
9
|
+
}
|
|
10
|
+
export interface QiuTabBarContext {
|
|
11
|
+
activeName: Ref<string | number | undefined>;
|
|
12
|
+
registerPane: (pane: QiuTabPaneRegistration) => void;
|
|
13
|
+
unregisterPane: (uid: number) => void;
|
|
14
|
+
updatePane: (uid: number, partial: Partial<QiuTabPaneRegistration>) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const QIU_TAB_BAR_KEY: InjectionKey<QiuTabBarContext>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
name: string | number;
|
|
3
|
+
label?: string;
|
|
4
|
+
lazy?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: any;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
+
label: string;
|
|
17
|
+
lazy: boolean;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { buildHeaderRows, colStyle, computeRenderWidths, computeTableMinWidth, flattenLeafColumns, getColumnSizeHints, isFirstFixedRight, isLastFixedLeft, leftOffsetForColumn, makeColumnKey, parseWidth, rightOffsetForColumn, type ColumnSizeHints, type LeafColumn, } from './useColumns';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { QiuTableColumnConfig } from './types';
|
|
2
|
+
export type QiuTableExportFormat = 'csv' | 'xls' | 'xlsx';
|
|
3
|
+
export type QiuTableExportColumn = QiuTableColumnConfig & {
|
|
4
|
+
_key?: string;
|
|
5
|
+
};
|
|
6
|
+
/** 构建二维表:首行为表头 */
|
|
7
|
+
export declare function buildSheetMatrix(columns: QiuTableExportColumn[], rows: any[], formatCell: (row: any, col: QiuTableExportColumn) => any): (string | number)[][];
|
|
8
|
+
export declare function exportCsv(matrix: (string | number)[][], filename: string): void;
|
|
9
|
+
/** Excel 可打开的 HTML 表(.xls) */
|
|
10
|
+
export declare function exportXls(matrix: (string | number)[][], filename: string): void;
|
|
11
|
+
/** 真正的 .xlsx(依赖 xlsx) */
|
|
12
|
+
export declare function exportXlsx(matrix: (string | number)[][], filename: string): Promise<void>;
|
|
13
|
+
export declare function exportSheet(opts: {
|
|
14
|
+
format: QiuTableExportFormat;
|
|
15
|
+
filename: string;
|
|
16
|
+
matrix: (string | number)[][];
|
|
17
|
+
}): Promise<void>;
|
|
18
|
+
export declare function parseImportFile(file: File): Promise<string[][]>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { QiuTableClipboardConfig, QiuTableColumn, QiuTableColumnConfig, QiuTableEditConfig, QiuTableEditRender, QiuTableExportConfig, QiuTableFilterConfig, QiuTableFooterMethod, QiuTableHistoryConfig, QiuTableKeyboardConfig, QiuTableMergeCell, QiuTablePagerConfig, QiuTableRowConfig, QiuTableSortConfig, QiuTableSpanMethod, QiuTableRadioConfig, QiuTableExpandConfig, QiuTableColumnDragConfig, QiuTableTooltipConfig, } from './types';
|
|
2
|
+
export { QiuTableEditRenderer, QiuTableFormats, QiuTableRenderer } from './registry';
|
|
3
|
+
export { default as QiuTable } from './index.vue';
|
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
import { QiuLoadingEffect } from '../QiuLoading/types';
|
|
2
|
+
import { QiuTableClipboardConfig, QiuTableColumnConfig, QiuTableColumnConfigExtra, QiuTableEditConfig, QiuTableExportConfig, QiuTableFilterConfig, QiuTableFooterMethod, QiuTableHistoryConfig, QiuTableKeyboardConfig, QiuTableMergeCell, QiuTablePagerConfig, QiuTableRowConfig, QiuTableSortConfig, QiuTableSpanMethod, QiuTableToolbarConfig, QiuTableTooltipConfig } from './types';
|
|
3
|
+
import { LeafColumn } from './columns';
|
|
4
|
+
import { QiuTableCustomConfig, QiuTableEditRules, QiuTableMenuConfig, QiuTableMenuItem, QiuTableValidConfig } from './utils';
|
|
5
|
+
import { QiuTableExportFormat } from './export';
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
data: any[];
|
|
8
|
+
columns?: QiuTableColumnConfig[];
|
|
9
|
+
editable?: boolean;
|
|
10
|
+
editTrigger?: 'click' | 'dblclick' | 'manual' | 'always';
|
|
11
|
+
editConfig?: QiuTableEditConfig;
|
|
12
|
+
keyboardConfig?: QiuTableKeyboardConfig;
|
|
13
|
+
clipboardConfig?: QiuTableClipboardConfig;
|
|
14
|
+
tooltipConfig?: QiuTableTooltipConfig;
|
|
15
|
+
exportConfig?: QiuTableExportConfig;
|
|
16
|
+
historyConfig?: QiuTableHistoryConfig | boolean;
|
|
17
|
+
sortConfig?: QiuTableSortConfig;
|
|
18
|
+
filterConfig?: QiuTableFilterConfig;
|
|
19
|
+
rowConfig?: QiuTableRowConfig;
|
|
20
|
+
columnConfig?: QiuTableColumnConfigExtra;
|
|
21
|
+
spanMethod?: QiuTableSpanMethod;
|
|
22
|
+
mergeCells?: QiuTableMergeCell[];
|
|
23
|
+
/** 合并表头单元格(扁平表头额外合并;多级表头优先用 children) */
|
|
24
|
+
mergeHeaderCells?: QiuTableMergeCell[];
|
|
25
|
+
border?: boolean | 'full' | 'outer' | 'inner' | 'none' | 'default';
|
|
26
|
+
stripe?: boolean;
|
|
27
|
+
round?: boolean;
|
|
28
|
+
height?: string | number;
|
|
29
|
+
maxHeight?: string | number;
|
|
30
|
+
rowKey?: string | ((row: any) => string);
|
|
31
|
+
showIndex?: boolean;
|
|
32
|
+
showSelection?: boolean;
|
|
33
|
+
showRadio?: boolean;
|
|
34
|
+
showExpand?: boolean;
|
|
35
|
+
radioConfig?: import('./types').QiuTableRadioConfig;
|
|
36
|
+
expandConfig?: import('./types').QiuTableExpandConfig;
|
|
37
|
+
columnDragConfig?: import('./types').QiuTableColumnDragConfig;
|
|
38
|
+
keepSource?: boolean;
|
|
39
|
+
virtualXConfig?: boolean | {
|
|
40
|
+
enabled?: boolean;
|
|
41
|
+
gt?: number;
|
|
42
|
+
};
|
|
43
|
+
tree?: boolean;
|
|
44
|
+
treeProps?: {
|
|
45
|
+
children?: string;
|
|
46
|
+
hasChildren?: string;
|
|
47
|
+
};
|
|
48
|
+
virtualY?: boolean;
|
|
49
|
+
showToolbar?: boolean;
|
|
50
|
+
showRefresh?: boolean;
|
|
51
|
+
showExport?: boolean;
|
|
52
|
+
showImport?: boolean;
|
|
53
|
+
showPrint?: boolean;
|
|
54
|
+
showCopy?: boolean;
|
|
55
|
+
showFullscreen?: boolean;
|
|
56
|
+
toolbarConfig?: QiuTableToolbarConfig | boolean;
|
|
57
|
+
showFooter?: boolean;
|
|
58
|
+
footerMethod?: QiuTableFooterMethod;
|
|
59
|
+
footerData?: string[][];
|
|
60
|
+
pagerConfig?: QiuTablePagerConfig | boolean;
|
|
61
|
+
gridOptions?: Record<string, any>;
|
|
62
|
+
dragSort?: boolean;
|
|
63
|
+
defaultExpandAll?: boolean;
|
|
64
|
+
size?: 'large' | 'default' | 'small';
|
|
65
|
+
emptyText?: string;
|
|
66
|
+
loading?: boolean;
|
|
67
|
+
/** loading 文案 */
|
|
68
|
+
loadingText?: string;
|
|
69
|
+
/** loading 动画,见 QIU_LOADING_EFFECTS(20 种) */
|
|
70
|
+
loadingEffect?: QiuLoadingEffect;
|
|
71
|
+
/** loading 遮罩更透明 */
|
|
72
|
+
loadingTransparent?: boolean;
|
|
73
|
+
/** 是否将剩余宽度分配给仅 minWidth 的弹性列(对齐 vxe fit) */
|
|
74
|
+
fit?: boolean;
|
|
75
|
+
/** 表格级默认对齐 */
|
|
76
|
+
align?: 'left' | 'center' | 'right';
|
|
77
|
+
headerAlign?: 'left' | 'center' | 'right';
|
|
78
|
+
footerAlign?: 'left' | 'center' | 'right';
|
|
79
|
+
minHeight?: string | number;
|
|
80
|
+
rowClassName?: string | ((params: {
|
|
81
|
+
row: any;
|
|
82
|
+
rowIndex: number;
|
|
83
|
+
}) => string);
|
|
84
|
+
cellClassName?: string | ((params: {
|
|
85
|
+
row: any;
|
|
86
|
+
column: QiuTableColumnConfig;
|
|
87
|
+
rowIndex: number;
|
|
88
|
+
columnIndex: number;
|
|
89
|
+
}) => string);
|
|
90
|
+
customConfig?: QiuTableCustomConfig;
|
|
91
|
+
menuConfig?: QiuTableMenuConfig;
|
|
92
|
+
editRules?: QiuTableEditRules;
|
|
93
|
+
validConfig?: QiuTableValidConfig;
|
|
94
|
+
virtualYConfig?: boolean | {
|
|
95
|
+
enabled?: boolean;
|
|
96
|
+
gt?: number;
|
|
97
|
+
oSize?: number;
|
|
98
|
+
rowHeight?: number;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
declare function __VLS_template(): any;
|
|
102
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
103
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
104
|
+
tableRef: globalThis.Ref<HTMLTableElement, HTMLTableElement>;
|
|
105
|
+
gridRef: globalThis.Ref<HTMLTableElement, HTMLTableElement>;
|
|
106
|
+
getGrid: () => {
|
|
107
|
+
getTableData: () => {
|
|
108
|
+
fullData: any[];
|
|
109
|
+
};
|
|
110
|
+
getCheckboxRecords: () => any[];
|
|
111
|
+
clearEdit: () => void;
|
|
112
|
+
exportData: (opts?: {
|
|
113
|
+
filename?: string;
|
|
114
|
+
format?: QiuTableExportFormat;
|
|
115
|
+
columns?: string[];
|
|
116
|
+
mode?: "current" | "all" | "selected" | "range";
|
|
117
|
+
startPage?: number;
|
|
118
|
+
endPage?: number;
|
|
119
|
+
}) => Promise<void>;
|
|
120
|
+
setAllTreeExpand: (checked: boolean) => void;
|
|
121
|
+
importData: () => void;
|
|
122
|
+
print: () => void;
|
|
123
|
+
};
|
|
124
|
+
clearEdit: () => void;
|
|
125
|
+
exportData: (opts?: {
|
|
126
|
+
filename?: string;
|
|
127
|
+
format?: QiuTableExportFormat;
|
|
128
|
+
columns?: string[];
|
|
129
|
+
mode?: "current" | "all" | "selected" | "range";
|
|
130
|
+
startPage?: number;
|
|
131
|
+
endPage?: number;
|
|
132
|
+
}) => Promise<void>;
|
|
133
|
+
getCheckboxRecords: () => any[];
|
|
134
|
+
setAllTreeExpand: (checked: boolean) => void;
|
|
135
|
+
importData: () => void;
|
|
136
|
+
print: () => void;
|
|
137
|
+
getRadioRecord: () => any;
|
|
138
|
+
clearRadioRow: () => void;
|
|
139
|
+
setRowExpand: (rows: any[], checked: boolean) => void;
|
|
140
|
+
clearRowExpand: () => void;
|
|
141
|
+
getUpdateRecords: () => any[];
|
|
142
|
+
getInsertRecords: () => any[];
|
|
143
|
+
isUpdateByRow: (row: any) => boolean;
|
|
144
|
+
reloadRow: (row: any) => void;
|
|
145
|
+
reloadColumn: () => void;
|
|
146
|
+
setCurrentRow: (row: any | null) => void;
|
|
147
|
+
clearCurrentRow: () => void;
|
|
148
|
+
clearSort: () => void;
|
|
149
|
+
clearFilter: (field?: string) => void;
|
|
150
|
+
scrollTo: (opts: {
|
|
151
|
+
top?: number;
|
|
152
|
+
left?: number;
|
|
153
|
+
}) => void;
|
|
154
|
+
scrollToRow: (row: any) => void;
|
|
155
|
+
getColumnWidth: (fieldOrKey: string) => number;
|
|
156
|
+
setColumnWidth: (fieldOrKey: string, width: number) => void;
|
|
157
|
+
recalculate: () => void;
|
|
158
|
+
getColumns: () => LeafColumn[];
|
|
159
|
+
undo: () => boolean;
|
|
160
|
+
redo: () => boolean;
|
|
161
|
+
clearHistory: () => void;
|
|
162
|
+
canUndo: () => boolean;
|
|
163
|
+
canRedo: () => boolean;
|
|
164
|
+
copy: () => Promise<void>;
|
|
165
|
+
cut: () => Promise<void>;
|
|
166
|
+
paste: () => Promise<void>;
|
|
167
|
+
copyData: (direction: "vertical" | "horizontal", scope?: "all" | "selected") => Promise<void>;
|
|
168
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
169
|
+
"current-change": (payload: {
|
|
170
|
+
row: any | null;
|
|
171
|
+
}) => any;
|
|
172
|
+
"cell-edit-start": (payload: {
|
|
173
|
+
row: any;
|
|
174
|
+
column: QiuTableColumnConfig;
|
|
175
|
+
}) => any;
|
|
176
|
+
"cell-edit-end": (payload: {
|
|
177
|
+
row: any;
|
|
178
|
+
column: QiuTableColumnConfig;
|
|
179
|
+
value: any;
|
|
180
|
+
}) => any;
|
|
181
|
+
edit: (payload: {
|
|
182
|
+
row: any;
|
|
183
|
+
column: QiuTableColumnConfig;
|
|
184
|
+
value: any;
|
|
185
|
+
}) => any;
|
|
186
|
+
"row-dragend": (payload: any) => any;
|
|
187
|
+
"checkbox-change": (payload: any) => any;
|
|
188
|
+
"checkbox-all": (payload: any) => any;
|
|
189
|
+
"selection-change": (payload: any[]) => any;
|
|
190
|
+
"filter-change": (payload: Record<string, any[]>) => any;
|
|
191
|
+
"sort-change": (payload: {
|
|
192
|
+
prop: string;
|
|
193
|
+
order: "asc" | "desc" | null;
|
|
194
|
+
}) => any;
|
|
195
|
+
"page-change": (payload: {
|
|
196
|
+
currentPage: number;
|
|
197
|
+
pageSize: number;
|
|
198
|
+
}) => any;
|
|
199
|
+
"resizable-change": (payload: {
|
|
200
|
+
column: QiuTableColumnConfig;
|
|
201
|
+
width: number;
|
|
202
|
+
}) => any;
|
|
203
|
+
"menu-click": (payload: {
|
|
204
|
+
menu: QiuTableMenuItem;
|
|
205
|
+
row?: any;
|
|
206
|
+
column?: QiuTableColumnConfig;
|
|
207
|
+
}) => any;
|
|
208
|
+
"import-data": (payload: {
|
|
209
|
+
rows: any[];
|
|
210
|
+
}) => any;
|
|
211
|
+
"radio-change": (payload: {
|
|
212
|
+
row: any | null;
|
|
213
|
+
}) => any;
|
|
214
|
+
"toggle-row-expand": (payload: {
|
|
215
|
+
row: any;
|
|
216
|
+
expanded: boolean;
|
|
217
|
+
}) => any;
|
|
218
|
+
"column-dragend": (payload: {
|
|
219
|
+
oldIndex: number;
|
|
220
|
+
newIndex: number;
|
|
221
|
+
columnKeys: string[];
|
|
222
|
+
}) => any;
|
|
223
|
+
refresh: () => any;
|
|
224
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
225
|
+
"onCurrent-change"?: (payload: {
|
|
226
|
+
row: any | null;
|
|
227
|
+
}) => any;
|
|
228
|
+
"onCell-edit-start"?: (payload: {
|
|
229
|
+
row: any;
|
|
230
|
+
column: QiuTableColumnConfig;
|
|
231
|
+
}) => any;
|
|
232
|
+
"onCell-edit-end"?: (payload: {
|
|
233
|
+
row: any;
|
|
234
|
+
column: QiuTableColumnConfig;
|
|
235
|
+
value: any;
|
|
236
|
+
}) => any;
|
|
237
|
+
onEdit?: (payload: {
|
|
238
|
+
row: any;
|
|
239
|
+
column: QiuTableColumnConfig;
|
|
240
|
+
value: any;
|
|
241
|
+
}) => any;
|
|
242
|
+
"onRow-dragend"?: (payload: any) => any;
|
|
243
|
+
"onCheckbox-change"?: (payload: any) => any;
|
|
244
|
+
"onCheckbox-all"?: (payload: any) => any;
|
|
245
|
+
"onSelection-change"?: (payload: any[]) => any;
|
|
246
|
+
"onFilter-change"?: (payload: Record<string, any[]>) => any;
|
|
247
|
+
"onSort-change"?: (payload: {
|
|
248
|
+
prop: string;
|
|
249
|
+
order: "asc" | "desc" | null;
|
|
250
|
+
}) => any;
|
|
251
|
+
"onPage-change"?: (payload: {
|
|
252
|
+
currentPage: number;
|
|
253
|
+
pageSize: number;
|
|
254
|
+
}) => any;
|
|
255
|
+
"onResizable-change"?: (payload: {
|
|
256
|
+
column: QiuTableColumnConfig;
|
|
257
|
+
width: number;
|
|
258
|
+
}) => any;
|
|
259
|
+
"onMenu-click"?: (payload: {
|
|
260
|
+
menu: QiuTableMenuItem;
|
|
261
|
+
row?: any;
|
|
262
|
+
column?: QiuTableColumnConfig;
|
|
263
|
+
}) => any;
|
|
264
|
+
"onImport-data"?: (payload: {
|
|
265
|
+
rows: any[];
|
|
266
|
+
}) => any;
|
|
267
|
+
"onRadio-change"?: (payload: {
|
|
268
|
+
row: any | null;
|
|
269
|
+
}) => any;
|
|
270
|
+
"onToggle-row-expand"?: (payload: {
|
|
271
|
+
row: any;
|
|
272
|
+
expanded: boolean;
|
|
273
|
+
}) => any;
|
|
274
|
+
"onColumn-dragend"?: (payload: {
|
|
275
|
+
oldIndex: number;
|
|
276
|
+
newIndex: number;
|
|
277
|
+
columnKeys: string[];
|
|
278
|
+
}) => any;
|
|
279
|
+
onRefresh?: () => any;
|
|
280
|
+
}>, {
|
|
281
|
+
fit: boolean;
|
|
282
|
+
round: boolean;
|
|
283
|
+
border: boolean | "full" | "outer" | "inner" | "none" | "default";
|
|
284
|
+
loading: boolean;
|
|
285
|
+
stripe: boolean;
|
|
286
|
+
editable: boolean;
|
|
287
|
+
dragSort: boolean;
|
|
288
|
+
showSelection: boolean;
|
|
289
|
+
showIndex: boolean;
|
|
290
|
+
showRadio: boolean;
|
|
291
|
+
showExpand: boolean;
|
|
292
|
+
columns: QiuTableColumnConfig[];
|
|
293
|
+
editTrigger: "click" | "dblclick" | "manual" | "always";
|
|
294
|
+
mergeCells: QiuTableMergeCell[];
|
|
295
|
+
mergeHeaderCells: QiuTableMergeCell[];
|
|
296
|
+
keepSource: boolean;
|
|
297
|
+
tree: boolean;
|
|
298
|
+
treeProps: {
|
|
299
|
+
children?: string;
|
|
300
|
+
hasChildren?: string;
|
|
301
|
+
};
|
|
302
|
+
virtualY: boolean;
|
|
303
|
+
showToolbar: boolean;
|
|
304
|
+
showRefresh: boolean;
|
|
305
|
+
showExport: boolean;
|
|
306
|
+
showImport: boolean;
|
|
307
|
+
showPrint: boolean;
|
|
308
|
+
showCopy: boolean;
|
|
309
|
+
showFullscreen: boolean;
|
|
310
|
+
showFooter: boolean;
|
|
311
|
+
defaultExpandAll: boolean;
|
|
312
|
+
loadingText: string;
|
|
313
|
+
loadingEffect: QiuLoadingEffect;
|
|
314
|
+
loadingTransparent: boolean;
|
|
315
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, any, any>;
|
|
316
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
317
|
+
export default _default;
|
|
318
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
319
|
+
new (): {
|
|
320
|
+
$slots: S;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
import { QiuTableColumnConfig, QiuTableEditRender } from './types';
|
|
3
|
+
export type QiuTableFormatFn = (params: {
|
|
4
|
+
cellValue: any;
|
|
5
|
+
row: any;
|
|
6
|
+
column: QiuTableColumnConfig;
|
|
7
|
+
}) => string;
|
|
8
|
+
export type QiuTableRendererFn = (params: {
|
|
9
|
+
cellValue: any;
|
|
10
|
+
row: any;
|
|
11
|
+
column: QiuTableColumnConfig;
|
|
12
|
+
$index: number;
|
|
13
|
+
}) => VNode | string | null;
|
|
14
|
+
export type QiuTableEditRendererFn = (params: {
|
|
15
|
+
cellValue: any;
|
|
16
|
+
row: any;
|
|
17
|
+
column: QiuTableColumnConfig;
|
|
18
|
+
editRender: QiuTableEditRender;
|
|
19
|
+
commit: (value: any) => void;
|
|
20
|
+
update: (value: any) => void;
|
|
21
|
+
}) => VNode | null;
|
|
22
|
+
/** 全局格式化注册(对齐 vxe formats) */
|
|
23
|
+
export declare const QiuTableFormats: {
|
|
24
|
+
add(name: string, fn: QiuTableFormatFn): void;
|
|
25
|
+
get(name: string): QiuTableFormatFn;
|
|
26
|
+
has(name: string): boolean;
|
|
27
|
+
};
|
|
28
|
+
/** 全局单元格渲染器注册(对齐 vxe renderer) */
|
|
29
|
+
export declare const QiuTableRenderer: {
|
|
30
|
+
add(name: string, fn: QiuTableRendererFn): void;
|
|
31
|
+
get(name: string): QiuTableRendererFn;
|
|
32
|
+
has(name: string): boolean;
|
|
33
|
+
};
|
|
34
|
+
/** 全局编辑渲染器(对齐 vxe editRender 自定义) */
|
|
35
|
+
export declare const QiuTableEditRenderer: {
|
|
36
|
+
add(name: string, fn: QiuTableEditRendererFn): void;
|
|
37
|
+
get(name: string): QiuTableEditRendererFn;
|
|
38
|
+
has(name: string): boolean;
|
|
39
|
+
};
|