@vunk/plus 1.13.1 → 1.15.0
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/ant/_util/BaseInput.d.ts +56 -0
- package/ant/_util/BaseInputInner.d.ts +65 -0
- package/ant/_util/BaseMixin.d.ts +7 -0
- package/ant/_util/EventInterface.d.ts +18 -0
- package/ant/_util/KeyCode.d.ts +436 -0
- package/ant/_util/Portal.d.ts +14 -0
- package/ant/_util/PortalWrapper.d.ts +41 -0
- package/ant/_util/canUseDom.d.ts +2 -0
- package/ant/_util/classNames.d.ts +2 -0
- package/ant/_util/collapseMotion.d.ts +3 -0
- package/ant/_util/colors.d.ts +13 -0
- package/ant/_util/copy-to-clipboard/index.d.ts +8 -0
- package/ant/_util/copy-to-clipboard/toggle-selection.d.ts +2 -0
- package/ant/_util/createContext.d.ts +5 -0
- package/ant/_util/createRef.d.ts +10 -0
- package/ant/_util/cssinjs/Cache.d.ts +11 -0
- package/ant/_util/cssinjs/Keyframes.d.ts +9 -0
- package/ant/_util/cssinjs/StyleContext.d.ts +508 -0
- package/ant/_util/cssinjs/hooks/useCacheToken.d.ts +40 -0
- package/ant/_util/cssinjs/hooks/useGlobalCache.d.ts +3 -0
- package/ant/_util/cssinjs/hooks/useHMR.d.ts +3 -0
- package/ant/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.d.ts +14 -0
- package/ant/_util/cssinjs/hooks/useStyleRegister/index.d.ts +68 -0
- package/ant/_util/cssinjs/index.d.ts +195 -0
- package/ant/_util/cssinjs/linters/contentQuotesLinter.d.ts +3 -0
- package/ant/_util/cssinjs/linters/hashedAnimationLinter.d.ts +3 -0
- package/ant/_util/cssinjs/linters/index.d.ts +6 -0
- package/ant/_util/cssinjs/linters/interface.d.ts +8 -0
- package/ant/_util/cssinjs/linters/legacyNotSelectorLinter.d.ts +3 -0
- package/ant/_util/cssinjs/linters/logicalPropertiesLinter.d.ts +3 -0
- package/ant/_util/cssinjs/linters/parentSelectorLinter.d.ts +3 -0
- package/ant/_util/cssinjs/linters/utils.d.ts +2 -0
- package/ant/_util/cssinjs/theme/Theme.d.ts +11 -0
- package/ant/_util/cssinjs/theme/ThemeCache.d.ts +20 -0
- package/ant/_util/cssinjs/theme/createTheme.d.ts +6 -0
- package/ant/_util/cssinjs/theme/index.d.ts +4 -0
- package/ant/_util/cssinjs/theme/interface.d.ts +2 -0
- package/ant/_util/cssinjs/transformers/interface.d.ts +4 -0
- package/ant/_util/cssinjs/transformers/legacyLogicalProperties.d.ts +12 -0
- package/ant/_util/cssinjs/transformers/px2rem.d.ts +20 -0
- package/ant/_util/cssinjs/util.d.ts +8 -0
- package/ant/_util/firstNotUndefined.d.ts +2 -0
- package/ant/_util/gapSize.d.ts +3 -0
- package/ant/_util/getScrollBarSize.d.ts +5 -0
- package/ant/_util/hooks/_vueuse/resolveUnref.d.ts +5 -0
- package/ant/_util/hooks/_vueuse/types.d.ts +114 -0
- package/ant/_util/hooks/_vueuse/unrefElement.d.ts +13 -0
- package/ant/_util/hooks/useBreakpoint.d.ts +4 -0
- package/ant/_util/hooks/useFlexGapSupport.d.ts +2 -0
- package/ant/_util/hooks/useMergedState.d.ts +7 -0
- package/ant/_util/hooks/useRefs.d.ts +7 -0
- package/ant/_util/hooks/useScrollLocker.d.ts +6 -0
- package/ant/_util/hooks/useState.d.ts +2 -0
- package/ant/_util/isValid.d.ts +2 -0
- package/ant/_util/omit.d.ts +2 -0
- package/ant/_util/pickAttrs.d.ts +11 -0
- package/ant/_util/placements.d.ts +65 -0
- package/ant/_util/props-util/index.d.ts +33 -0
- package/ant/_util/props-util/initDefaultProps.d.ts +6 -0
- package/ant/_util/raf.d.ts +5 -0
- package/ant/_util/responsiveObserve.d.ts +21 -0
- package/ant/_util/setStyle.d.ts +12 -0
- package/ant/_util/statusUtils.d.ts +6 -0
- package/ant/_util/styleChecker.d.ts +4 -0
- package/ant/_util/transButton.d.ts +34 -0
- package/ant/_util/transition.d.ts +18 -0
- package/ant/_util/type.d.ts +62 -0
- package/ant/_util/util.d.ts +18 -0
- package/ant/_util/vnode.d.ts +11 -0
- package/ant/_util/vue-types/index.d.ts +12 -0
- package/ant/_util/warning.d.ts +6 -0
- package/ant/_util/wave/WaveEffect.d.ts +6 -0
- package/ant/_util/wave/index.d.ts +13 -0
- package/ant/_util/wave/style.d.ts +6 -0
- package/ant/_util/wave/useWave.d.ts +4 -0
- package/ant/_util/wave/util.d.ts +3 -0
- package/ant/button/LoadingIcon.d.ts +12 -0
- package/ant/button/button-group.d.ts +33 -0
- package/ant/button/button.d.ts +112 -0
- package/ant/button/buttonTypes.d.ts +58 -0
- package/ant/button/index.d.ts +12 -0
- package/ant/button/style/group.d.ts +4 -0
- package/ant/button/style/index.d.ts +10 -0
- package/ant/calendar/style/index.d.ts +21 -0
- package/ant/config-provider/DisabledContext.d.ts +4 -0
- package/ant/config-provider/SizeContext.d.ts +4 -0
- package/ant/config-provider/context.d.ts +208 -0
- package/ant/config-provider/cssVariables.d.ts +3 -0
- package/ant/config-provider/hooks/useConfigInject.d.ts +37 -0
- package/ant/config-provider/hooks/useTheme.d.ts +3 -0
- package/ant/config-provider/index.d.ts +290 -0
- package/ant/config-provider/renderEmpty.d.ts +8 -0
- package/ant/config-provider/style/index.d.ts +3 -0
- package/ant/date-picker/style/index.d.ts +35 -0
- package/ant/empty/empty.d.ts +2 -0
- package/ant/empty/index.d.ts +86 -0
- package/ant/empty/simple.d.ts +2 -0
- package/ant/empty/style/index.d.ts +5 -0
- package/ant/flex/index.d.ts +142 -0
- package/ant/flex/interface.d.ts +36 -0
- package/ant/flex/style/index.d.ts +29 -0
- package/ant/flex/utils.d.ts +6 -0
- package/ant/form/ErrorList.d.ts +21 -0
- package/ant/form/Form.d.ts +772 -0
- package/ant/form/FormItem.d.ts +191 -0
- package/ant/form/FormItemContext.d.ts +32 -0
- package/ant/form/FormItemInput.d.ts +44 -0
- package/ant/form/FormItemLabel.d.ts +19 -0
- package/ant/form/context.d.ts +35 -0
- package/ant/form/index.d.ts +16 -0
- package/ant/form/interface.d.ts +171 -0
- package/ant/form/style/explain.d.ts +4 -0
- package/ant/form/style/index.d.ts +7 -0
- package/ant/form/useForm.d.ts +45 -0
- package/ant/form/utils/asyncUtil.d.ts +2 -0
- package/ant/form/utils/messages.d.ts +47 -0
- package/ant/form/utils/typeUtil.d.ts +1 -0
- package/ant/form/utils/useDebounce.d.ts +2 -0
- package/ant/form/utils/validateUtil.d.ts +6 -0
- package/ant/form/utils/valueUtil.d.ts +15 -0
- package/ant/grid/Col.d.ts +116 -0
- package/ant/grid/Row.d.ts +77 -0
- package/ant/grid/context.d.ts +11 -0
- package/ant/grid/index.d.ts +10 -0
- package/ant/grid/style/index.d.ts +2 -0
- package/ant/image/PreviewGroup.d.ts +37 -0
- package/ant/image/index.d.ts +71 -0
- package/ant/image/style/index.d.ts +21 -0
- package/ant/index.cjs +203 -0
- package/ant/index.d.ts +27 -0
- package/ant/index.mjs +20993 -0
- package/ant/input/ClearableLabeledInput.d.ts +151 -0
- package/ant/input/Group.d.ts +24 -0
- package/ant/input/Input.d.ts +191 -0
- package/ant/input/Password.d.ts +217 -0
- package/ant/input/ResizableTextArea.d.ts +215 -0
- package/ant/input/Search.d.ts +195 -0
- package/ant/input/TextArea.d.ts +217 -0
- package/ant/input/calculateNodeHeight.d.ts +9 -0
- package/ant/input/index.d.ts +15 -0
- package/ant/input/inputProps.d.ts +207 -0
- package/ant/input/style/index.d.ts +30 -0
- package/ant/input/util.d.ts +2 -0
- package/ant/locale/LocaleReceiver.d.ts +35 -0
- package/ant/locale/en_US.d.ts +3 -0
- package/ant/locale/index.d.ts +91 -0
- package/ant/locale-provider/LocaleReceiver.d.ts +3 -0
- package/ant/locale-provider/index.d.ts +3 -0
- package/ant/modal/locale.d.ts +7 -0
- package/ant/modal/style/index.d.ts +32 -0
- package/ant/progress/Circle.d.ts +168 -0
- package/ant/progress/Line.d.ts +205 -0
- package/ant/progress/Steps.d.ts +168 -0
- package/ant/progress/index.d.ts +204 -0
- package/ant/progress/progress.d.ts +117 -0
- package/ant/progress/props.d.ts +79 -0
- package/ant/progress/style/index.d.ts +4 -0
- package/ant/progress/utils.d.ts +13 -0
- package/ant/space/Compact.d.ts +119 -0
- package/ant/space/style/compact.d.ts +8 -0
- package/ant/space/style/index.d.ts +5 -0
- package/ant/style/compact-item-vertical.d.ts +4 -0
- package/ant/style/compact-item.d.ts +18 -0
- package/ant/style/index.d.ts +13 -0
- package/ant/style/motion/collapse.d.ts +4 -0
- package/ant/style/motion/fade.d.ts +7 -0
- package/ant/style/motion/index.d.ts +6 -0
- package/ant/style/motion/motion.d.ts +2 -0
- package/ant/style/motion/move.d.ts +15 -0
- package/ant/style/motion/slide.d.ts +15 -0
- package/ant/style/motion/zoom.d.ts +19 -0
- package/ant/style/operationUnit.d.ts +3 -0
- package/ant/style/placementArrow.d.ts +19 -0
- package/ant/style/presetColor.d.ts +16 -0
- package/ant/style/roundedArrow.d.ts +2 -0
- package/ant/theme/index.d.ts +23 -0
- package/ant/theme/interface/alias.d.ts +115 -0
- package/ant/theme/interface/components.d.ts +32 -0
- package/ant/theme/interface/index.d.ts +13 -0
- package/ant/theme/interface/maps/colors.d.ts +350 -0
- package/ant/theme/interface/maps/font.d.ts +44 -0
- package/ant/theme/interface/maps/index.d.ts +17 -0
- package/ant/theme/interface/maps/size.d.ts +63 -0
- package/ant/theme/interface/maps/style.d.ts +37 -0
- package/ant/theme/interface/presetColors.d.ts +8 -0
- package/ant/theme/interface/seeds.d.ts +163 -0
- package/ant/theme/internal.d.ts +49 -0
- package/ant/theme/themes/ColorMap.d.ts +15 -0
- package/ant/theme/themes/compact/genCompactSizeMapToken.d.ts +2 -0
- package/ant/theme/themes/compact/index.d.ts +4 -0
- package/ant/theme/themes/dark/colorAlgorithm.d.ts +2 -0
- package/ant/theme/themes/dark/colors.d.ts +3 -0
- package/ant/theme/themes/dark/index.d.ts +4 -0
- package/ant/theme/themes/default/colorAlgorithm.d.ts +2 -0
- package/ant/theme/themes/default/colors.d.ts +3 -0
- package/ant/theme/themes/default/index.d.ts +2 -0
- package/ant/theme/themes/seed.d.ts +4 -0
- package/ant/theme/themes/shared/genColorMapToken.d.ts +8 -0
- package/ant/theme/themes/shared/genCommonMapToken.d.ts +2 -0
- package/ant/theme/themes/shared/genControlHeight.d.ts +3 -0
- package/ant/theme/themes/shared/genFontMapToken.d.ts +3 -0
- package/ant/theme/themes/shared/genFontSizes.d.ts +4 -0
- package/ant/theme/themes/shared/genRadius.d.ts +3 -0
- package/ant/theme/themes/shared/genSizeMapToken.d.ts +2 -0
- package/ant/theme/util/alias.d.ts +12 -0
- package/ant/theme/util/genComponentStyleHook.d.ts +26 -0
- package/ant/theme/util/getAlphaColor.d.ts +2 -0
- package/ant/theme/util/statistic.d.ts +18 -0
- package/ant/tooltip/Tooltip.d.ts +228 -0
- package/ant/tooltip/abstractTooltipProps.d.ts +73 -0
- package/ant/tooltip/index.d.ts +245 -0
- package/ant/tooltip/style/index.d.ts +8 -0
- package/ant/tooltip/util.d.ts +6 -0
- package/ant/typography/Base.d.ts +200 -0
- package/ant/typography/Editable.d.ts +49 -0
- package/ant/typography/Link.d.ts +51 -0
- package/ant/typography/Paragraph.d.ts +51 -0
- package/ant/typography/Text.d.ts +51 -0
- package/ant/typography/Title.d.ts +48 -0
- package/ant/typography/Typography.d.ts +24 -0
- package/ant/typography/index.d.ts +17 -0
- package/ant/typography/style/index.d.ts +9 -0
- package/ant/typography/style/mixins.d.ts +9 -0
- package/ant/typography/util.d.ts +11 -0
- package/ant/upload/Dragger.d.ts +393 -0
- package/ant/upload/Upload.d.ts +396 -0
- package/ant/upload/UploadList/ListItem.d.ts +339 -0
- package/ant/upload/UploadList/index.d.ts +232 -0
- package/ant/upload/index.d.ts +1460 -0
- package/ant/upload/interface.d.ts +355 -0
- package/ant/upload/style/dragger.d.ts +4 -0
- package/ant/upload/style/index.d.ts +10 -0
- package/ant/upload/style/list.d.ts +4 -0
- package/ant/upload/style/motion.d.ts +4 -0
- package/ant/upload/style/picture.d.ts +5 -0
- package/ant/upload/style/rtl.d.ts +4 -0
- package/ant/upload/utils.d.ts +8 -0
- package/ant/vc-align/Align.d.ts +45 -0
- package/ant/vc-align/hooks/useBuffer.d.ts +3 -0
- package/ant/vc-align/interface.d.ts +56 -0
- package/ant/vc-align/util.d.ts +4 -0
- package/ant/vc-dialog/Content.d.ts +181 -0
- package/ant/vc-dialog/Dialog.d.ts +169 -0
- package/ant/vc-dialog/DialogWrap.d.ts +165 -0
- package/ant/vc-dialog/IDialogPropTypes.d.ts +79 -0
- package/ant/vc-dialog/Mask.d.ts +14 -0
- package/ant/vc-dialog/index.d.ts +4 -0
- package/ant/vc-dialog/util.d.ts +6 -0
- package/ant/vc-image/index.d.ts +3 -0
- package/ant/vc-image/src/Image.d.ts +114 -0
- package/ant/vc-image/src/Preview.d.ts +292 -0
- package/ant/vc-image/src/PreviewGroup.d.ts +79 -0
- package/ant/vc-image/src/getFixScaleEleTransPosition.d.ts +16 -0
- package/ant/vc-image/src/hooks/useFrameSetState.d.ts +3 -0
- package/ant/vc-input/BaseInput.d.ts +97 -0
- package/ant/vc-input/Input.d.ts +192 -0
- package/ant/vc-input/inputProps.d.ts +169 -0
- package/ant/vc-input/utils/commonUtils.d.ts +8 -0
- package/ant/vc-progress/index.d.ts +5 -0
- package/ant/vc-progress/src/Circle.d.ts +41 -0
- package/ant/vc-progress/src/Line.d.ts +40 -0
- package/ant/vc-progress/src/common.d.ts +5 -0
- package/ant/vc-progress/src/index.d.ts +86 -0
- package/ant/vc-progress/src/types.d.ts +25 -0
- package/ant/vc-resize-observer/index.d.ts +25 -0
- package/ant/vc-tooltip/index.d.ts +2 -0
- package/ant/vc-tooltip/src/Content.d.ts +17 -0
- package/ant/vc-tooltip/src/Tooltip.d.ts +141 -0
- package/ant/vc-tooltip/src/placements.d.ts +111 -0
- package/ant/vc-trigger/Popup/Mask.d.ts +14 -0
- package/ant/vc-trigger/Popup/MobilePopupInner.d.ts +103 -0
- package/ant/vc-trigger/Popup/PopupInner.d.ts +98 -0
- package/ant/vc-trigger/Popup/index.d.ts +104 -0
- package/ant/vc-trigger/Popup/interface.d.ts +151 -0
- package/ant/vc-trigger/Popup/useStretchStyle.d.ts +4 -0
- package/ant/vc-trigger/Popup/useVisibleStatus.d.ts +15 -0
- package/ant/vc-trigger/Trigger.d.ts +282 -0
- package/ant/vc-trigger/context.d.ts +11 -0
- package/ant/vc-trigger/index.d.ts +6 -0
- package/ant/vc-trigger/interface.d.ts +175 -0
- package/ant/vc-trigger/utils/alignUtil.d.ts +3 -0
- package/ant/vc-trigger/utils/motionUtil.d.ts +12 -0
- package/ant/vc-upload/AjaxUploader.d.ts +108 -0
- package/ant/vc-upload/Upload.d.ts +108 -0
- package/ant/vc-upload/attr-accept.d.ts +3 -0
- package/ant/vc-upload/index.d.ts +4 -0
- package/ant/vc-upload/interface.d.ts +79 -0
- package/ant/vc-upload/request.d.ts +4 -0
- package/ant/vc-upload/traverseFileTree.d.ts +14 -0
- package/ant/vc-upload/uid.d.ts +1 -0
- package/ant/vc-util/Dom/contains.d.ts +1 -0
- package/ant/vc-util/Dom/css.d.ts +22 -0
- package/ant/vc-util/Dom/dynamicCSS.d.ts +20 -0
- package/ant/vc-util/Dom/isVisible.d.ts +2 -0
- package/ant/vc-util/Dom/scrollLocker.d.ts +12 -0
- package/ant/vc-util/devWarning.d.ts +4 -0
- package/ant/vc-util/get.d.ts +1 -0
- package/ant/vc-util/set.d.ts +1 -0
- package/ant/vc-util/warning.d.ts +7 -0
- package/ant/version/index.d.ts +2 -0
- package/antx/_util/__tests__/warning.test.d.ts +1 -0
- package/antx/_util/cssinjs/Cache.d.ts +11 -0
- package/antx/_util/cssinjs/Keyframes.d.ts +9 -0
- package/antx/_util/cssinjs/StyleContext.d.ts +508 -0
- package/antx/_util/cssinjs/hooks/useCSSVarRegister.d.ts +20 -0
- package/antx/_util/cssinjs/hooks/useCacheToken.d.ts +40 -0
- package/antx/_util/cssinjs/hooks/useGlobalCache.d.ts +6 -0
- package/antx/_util/cssinjs/hooks/useHMR.d.ts +3 -0
- package/antx/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.d.ts +14 -0
- package/antx/_util/cssinjs/hooks/useStyleRegister/index.d.ts +69 -0
- package/antx/_util/cssinjs/index.d.ts +197 -0
- package/antx/_util/cssinjs/linters/contentQuotesLinter.d.ts +3 -0
- package/antx/_util/cssinjs/linters/hashedAnimationLinter.d.ts +3 -0
- package/antx/_util/cssinjs/linters/index.d.ts +6 -0
- package/antx/_util/cssinjs/linters/interface.d.ts +8 -0
- package/antx/_util/cssinjs/linters/legacyNotSelectorLinter.d.ts +3 -0
- package/antx/_util/cssinjs/linters/logicalPropertiesLinter.d.ts +3 -0
- package/antx/_util/cssinjs/linters/parentSelectorLinter.d.ts +3 -0
- package/antx/_util/cssinjs/linters/utils.d.ts +2 -0
- package/antx/_util/cssinjs/theme/Theme.d.ts +11 -0
- package/antx/_util/cssinjs/theme/ThemeCache.d.ts +20 -0
- package/antx/_util/cssinjs/theme/createTheme.d.ts +6 -0
- package/antx/_util/cssinjs/theme/index.d.ts +4 -0
- package/antx/_util/cssinjs/theme/interface.d.ts +2 -0
- package/antx/_util/cssinjs/transformers/interface.d.ts +4 -0
- package/antx/_util/cssinjs/transformers/legacyLogicalProperties.d.ts +12 -0
- package/antx/_util/cssinjs/transformers/px2rem.d.ts +20 -0
- package/antx/_util/cssinjs/util.d.ts +28 -0
- package/antx/_util/cssinjs-utils/_util/hooks/useUniqueMemo.d.ts +5 -0
- package/antx/_util/cssinjs-utils/hooks/useCSP.d.ts +8 -0
- package/antx/_util/cssinjs-utils/hooks/usePrefix.d.ts +11 -0
- package/antx/_util/cssinjs-utils/hooks/useToken.d.ts +21 -0
- package/antx/_util/cssinjs-utils/index.d.ts +6 -0
- package/antx/_util/cssinjs-utils/interface/components.d.ts +10 -0
- package/antx/_util/cssinjs-utils/interface/index.d.ts +3 -0
- package/antx/_util/cssinjs-utils/util/calc/CSSCalculator.d.ts +15 -0
- package/antx/_util/cssinjs-utils/util/calc/NumCalculator.d.ts +11 -0
- package/antx/_util/cssinjs-utils/util/calc/calculator.d.ts +30 -0
- package/antx/_util/cssinjs-utils/util/calc/index.d.ts +5 -0
- package/antx/_util/cssinjs-utils/util/genStyleUtils.d.ts +116 -0
- package/antx/_util/cssinjs-utils/util/getCompVarPrefix.d.ts +2 -0
- package/antx/_util/cssinjs-utils/util/getComponentToken.d.ts +9 -0
- package/antx/_util/cssinjs-utils/util/getDefaultComponentToken.d.ts +5 -0
- package/antx/_util/cssinjs-utils/util/maxmin.d.ts +8 -0
- package/antx/_util/cssinjs-utils/util/statistic.d.ts +20 -0
- package/antx/_util/getScrollBarSize.d.ts +5 -0
- package/antx/_util/getValue.d.ts +2 -0
- package/antx/_util/hooks/use-event-callback.d.ts +1 -0
- package/antx/_util/hooks/use-state.d.ts +2 -0
- package/antx/_util/hooks/use-x-component-config.d.ts +4 -0
- package/antx/_util/hooks/useMergedState.d.ts +7 -0
- package/antx/_util/motion.d.ts +3 -0
- package/antx/_util/pick-attrs.d.ts +11 -0
- package/antx/_util/setStyle.d.ts +12 -0
- package/antx/_util/transition.d.ts +29 -0
- package/antx/_util/type.d.ts +62 -0
- package/antx/_util/warning.d.ts +47 -0
- package/antx/attachments/Attachments.vue.d.ts +16 -0
- package/antx/attachments/DropArea.vue.d.ts +4 -0
- package/antx/attachments/FileList/AudioIcon.vue.d.ts +3 -0
- package/antx/attachments/FileList/FileList.vue.d.ts +4 -0
- package/antx/attachments/FileList/FileListCard.vue.d.ts +6 -0
- package/antx/attachments/FileList/Progress.vue.d.ts +103 -0
- package/antx/attachments/FileList/VideoIcon.vue.d.ts +3 -0
- package/antx/attachments/FileList/index.d.ts +3 -0
- package/antx/attachments/PlaceholderUploader.vue.d.ts +6 -0
- package/antx/attachments/SilentUploader.vue.d.ts +6 -0
- package/antx/attachments/constants.d.ts +9 -0
- package/antx/attachments/context.d.ts +21 -0
- package/antx/attachments/index.d.ts +26 -0
- package/antx/attachments/interface.d.ts +130 -0
- package/antx/attachments/style/fileCard.d.ts +4 -0
- package/antx/attachments/style/index.d.ts +9 -0
- package/antx/attachments/util.d.ts +3 -0
- package/antx/components.d.ts +4 -0
- package/antx/hooks.d.ts +8 -0
- package/antx/index.cjs +78 -0
- package/antx/index.d.ts +10 -0
- package/antx/index.mjs +6015 -0
- package/antx/sender/Sender.vue.d.ts +48 -0
- package/antx/sender/SenderHeader.vue.d.ts +13 -0
- package/antx/sender/StopLoading.vue.d.ts +6 -0
- package/antx/sender/components/ActionButton/context.d.ts +21 -0
- package/antx/sender/components/ActionButton/index.vue.d.ts +13 -0
- package/antx/sender/components/ClearButton.vue.d.ts +4 -0
- package/antx/sender/components/LoadingButton.vue.d.ts +4 -0
- package/antx/sender/components/SendButton.vue.d.ts +4 -0
- package/antx/sender/components/SpeechButton/RecordingIcon.vue.d.ts +4 -0
- package/antx/sender/components/SpeechButton/index.vue.d.ts +4 -0
- package/antx/sender/context.d.ts +21 -0
- package/antx/sender/index.d.ts +82 -0
- package/antx/sender/interface.d.ts +145 -0
- package/antx/sender/style/header.d.ts +4 -0
- package/antx/sender/style/index.d.ts +9 -0
- package/antx/sender/useSpeech.d.ts +16 -0
- package/antx/theme/components.d.ts +8 -0
- package/antx/theme/cssinjs-utils.d.ts +14 -0
- package/antx/theme/genStyleUtils.d.ts +27 -0
- package/antx/theme/index.d.ts +2 -0
- package/antx/theme/patch-antd.d.ts +28 -0
- package/antx/theme/useToken.d.ts +19 -0
- package/antx/transition-collapse/TransitionCollapse.vue.d.ts +17 -0
- package/antx/transition-collapse/index.d.ts +6 -0
- package/antx/transition-collapse/style/index.d.ts +6 -0
- package/antx/type-utility.d.ts +1 -0
- package/antx/use-x-agent/index.d.ts +4 -0
- package/antx/use-x-agent/use-x-agent.d.ts +34 -0
- package/antx/use-x-chat/index.d.ts +4 -0
- package/antx/use-x-chat/use-x-chat.d.ts +54 -0
- package/antx/use-x-chat/useSyncState.d.ts +4 -0
- package/antx/version/index.d.ts +2 -0
- package/antx/x-provider/context.d.ts +84 -0
- package/antx/x-provider/hooks/use-x-provider-context.d.ts +9 -0
- package/antx/x-provider/index.d.ts +5 -0
- package/antx/x-provider/index.vue.d.ts +13 -0
- package/antx/x-request/index.d.ts +6 -0
- package/antx/x-request/x-fetch.d.ts +18 -0
- package/antx/x-request/x-request.d.ts +89 -0
- package/antx/x-stream/index.d.ts +4 -0
- package/antx/x-stream/x-stream.d.ts +32 -0
- package/components/agent-chat-provider/index.cjs +1 -1
- package/components/agent-chat-provider/index.mjs +1 -3
- package/components/agent-chat-provider/src/index.vue.d.ts +3 -3
- package/components/agent-chat-provider/src/types.d.ts +1 -1
- package/components/agent-chat-provider/src/use.d.ts +2 -2
- package/components/avatar/index.mjs +2 -2
- package/components/avatar/src/index.vue.d.ts +2 -121
- package/components/broadcasting-markdown/index.cjs +3 -3
- package/components/broadcasting-markdown/index.mjs +2 -5
- package/components/broadcasting-markdown/src/ctx.d.ts +2 -2
- package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +6 -6
- package/components/broadcasting-markdown/src/index.vue.d.ts +33 -33
- package/components/broadcasting-markdown/src/paragraph.vue.d.ts +1 -1
- package/components/broadcasting-markdown/src/use.d.ts +1 -1
- package/components/bubble-list/index.cjs +1 -1
- package/components/bubble-list/index.mjs +5 -5
- package/components/bubble-list/src/core/index.vue.d.ts +7 -7
- package/components/bubble-list/src/ctx.d.ts +2 -2
- package/components/bubble-list/src/index.vue.d.ts +5 -4
- package/components/bubble-templates/index.mjs +2 -2
- package/components/chat-independent/index.mjs +4 -4
- package/components/chat-independent/src/index.vue.d.ts +1 -1
- package/components/components.css +1 -1
- package/components/drawer/index.mjs +1 -1
- package/components/drawer/src/ctx.d.ts +37 -31
- package/components/drawer/src/index.vue.d.ts +87 -77
- package/components/file-viewer/index.cjs +1 -0
- package/components/file-viewer/index.d.ts +4 -0
- package/components/file-viewer/index.mjs +130 -0
- package/components/file-viewer/src/ctx.d.ts +69 -0
- package/components/file-viewer/src/index.vue.d.ts +108 -0
- package/components/file-viewer/src/types.d.ts +3 -0
- package/components/lottie-animation/index.mjs +2 -2
- package/components/lottie-animation/src/index.vue.d.ts +1 -1
- package/components/metahuman-broadcasting/index.mjs +2 -2
- package/components/metahuman-broadcasting/src/ctx.d.ts +2 -2
- package/components/metahuman-broadcasting/src/index.vue.d.ts +4 -4
- package/components/monaco-editor/index.cjs +1 -1
- package/components/monaco-editor/index.mjs +52 -48
- package/components/monaco-editor/src/ctx.d.ts +3 -3
- package/components/monaco-editor/src/index.vue.d.ts +5 -5
- package/components/pixi-frame/index.cjs +1 -1
- package/components/pixi-frame/index.mjs +25 -25
- package/components/pixi-frame/src/apng.vue.d.ts +10 -10
- package/components/pixi-frame/src/bitmap-generator.vue.d.ts +7 -7
- package/components/pixi-frame/src/bitmap.vue.d.ts +12 -12
- package/components/pixi-frame/src/buffer-image.vue.d.ts +13 -13
- package/components/pixi-frame/src/core.vue.d.ts +12 -12
- package/components/pixi-frame/src/ctx.d.ts +5 -5
- package/components/pixi-frame/src/index.vue.d.ts +81 -81
- package/components/pixi-frame/src/video.vue.d.ts +10 -10
- package/components/recorder-button/index.cjs +1 -1
- package/components/recorder-button/index.mjs +75 -75
- package/components/recorder-button/src/ctx.d.ts +3 -3
- package/components/recorder-button/src/index.vue.d.ts +114 -197
- package/components/routes-menu-content/index.cjs +1 -1
- package/components/routes-menu-content/index.mjs +12 -12
- package/components/routes-menu-content/src/ctx.d.ts +1 -1
- package/components/routes-menu-content/src/index.vue.d.ts +58 -99
- package/components/routes-menu-content/src/item/core/ctx.d.ts +1 -1
- package/components/routes-menu-content/src/item/core/index.vue.d.ts +40 -81
- package/components/routes-menu-content/src/item/index.vue.d.ts +56 -97
- package/components/scrollbar/index.mjs +4 -4
- package/components/scrollbar/src/index.vue.d.ts +35 -34
- package/components/scrollbar/src/util.d.ts +1 -1
- package/components/sender/index.cjs +1 -1
- package/components/sender/index.mjs +7 -7
- package/components/sender/src/SenderHeader.vue.d.ts +2 -2
- package/components/sender/src/ctx.d.ts +9 -9
- package/components/sender/src/index.vue.d.ts +28 -28
- package/components/speech-button/index.cjs +1 -1
- package/components/speech-button/index.mjs +1 -1
- package/components/speech-button/src/ctx.d.ts +1 -1
- package/components/speech-button/src/index.vue.d.ts +3 -3
- package/components/table-columns/src/ctx.d.ts +2 -2
- package/components/table-columns/src/el-ctx.d.ts +2 -2
- package/components/table-columns/src/index.vue.d.ts +6 -6
- package/components/table-columns/src/types.d.ts +3 -4
- package/components/tables-v1/index.cjs +1 -1
- package/components/tables-v1/index.mjs +3 -3
- package/components/tables-v1/src/ctx.d.ts +69 -74
- package/components/tables-v1/src/el-ctx.d.ts +24 -24
- package/components/tables-v1/src/index.vue.d.ts +54 -313
- package/components/tables-v1-checkbox/index.cjs +31 -35
- package/components/tables-v1-checkbox/index.mjs +1239 -1042
- package/components/tables-v1-checkbox/src/ctx.d.ts +68 -73
- package/components/tables-v1-checkbox/src/index.vue.d.ts +274 -542
- package/components/text/index.mjs +3 -3
- package/components/text/src/ctx.d.ts +39 -246
- package/components/text/src/index.vue.d.ts +98 -509
- package/components/thinking/index.mjs +5 -5
- package/components/thinking/src/ctx.d.ts +3 -3
- package/components/thinking/src/index.vue.d.ts +8 -8
- package/components/typing-markdown/index.mjs +2 -2
- package/components/typing-markdown/src/ctx.d.ts +3 -3
- package/components/typing-markdown/src/index.vue.d.ts +6 -6
- package/components/vditor/index.cjs +1 -1
- package/components/vditor/index.mjs +2 -2
- package/components/vditor/src/ctx.d.ts +2 -2
- package/components/vditor/src/handle-fullscreen.vue.d.ts +3 -3
- package/components/vditor/src/handle-value.vue.d.ts +3 -3
- package/components/vditor/src/index.vue.d.ts +10 -10
- package/components/xgplayer/index.mjs +5 -5
- package/composables/recorder/index.cjs +1 -1
- package/composables/recorder/index.mjs +3214 -3099
- package/element/bubble/index.cjs +2 -2
- package/element/bubble/index.mjs +57 -57
- package/element/index.css +1 -1
- package/element/thinking/index.cjs +1 -1
- package/element/thinking/index.mjs +63 -69
- package/icons/end/index.cjs +1 -1
- package/icons/end/index.mjs +3 -3
- package/icons/keyboard/index.cjs +1 -1
- package/icons/keyboard/index.mjs +3 -3
- package/icons/start/index.cjs +1 -1
- package/icons/start/index.mjs +3 -3
- package/icons/voice/index.cjs +1 -1
- package/icons/voice/index.mjs +3 -3
- package/index.css +2 -2
- package/package.json +16 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare var __VLS_9: {}, __VLS_11: {
|
|
2
2
|
modelValue: boolean;
|
|
3
|
-
direction: import("element-plus/es/utils/
|
|
3
|
+
direction: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "ltr" | "rtl" | "ttb" | "btt", unknown>;
|
|
4
4
|
}, __VLS_39: {};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
6
|
default?: (props: typeof __VLS_9) => any;
|
|
@@ -12,20 +12,20 @@ type __VLS_Slots = {} & {
|
|
|
12
12
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
13
13
|
modules: {
|
|
14
14
|
type: import("vue").PropType<"toggle"[]>;
|
|
15
|
-
default: () =>
|
|
15
|
+
default: () => any[];
|
|
16
16
|
};
|
|
17
17
|
absolute: {
|
|
18
18
|
type: BooleanConstructor;
|
|
19
19
|
default: boolean;
|
|
20
20
|
};
|
|
21
|
-
direction: import("element-plus/es/utils/
|
|
21
|
+
direction: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<StringConstructor, "ltr" | "rtl" | "ttb" | "btt", unknown, "rtl", boolean>;
|
|
22
22
|
resizable: BooleanConstructor;
|
|
23
|
-
size: import("element-plus/es/utils/
|
|
24
|
-
withHeader: import("element-plus/es/utils/
|
|
25
|
-
modalFade: import("element-plus/es/utils/
|
|
26
|
-
headerAriaLevel: import("element-plus/es/utils/
|
|
23
|
+
size: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "30%", boolean>;
|
|
24
|
+
withHeader: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
25
|
+
modalFade: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
26
|
+
headerAriaLevel: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
27
27
|
appendToBody: BooleanConstructor;
|
|
28
|
-
appendTo: import("element-plus/es/utils/
|
|
28
|
+
appendTo: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown, "body", boolean>;
|
|
29
29
|
beforeClose: {
|
|
30
30
|
readonly type: import("vue").PropType<import("element-plus").DialogBeforeCloseFn>;
|
|
31
31
|
readonly required: false;
|
|
@@ -33,13 +33,13 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
33
33
|
__epPropKey: true;
|
|
34
34
|
};
|
|
35
35
|
destroyOnClose: BooleanConstructor;
|
|
36
|
-
closeOnClickModal: import("element-plus/es/utils/
|
|
37
|
-
closeOnPressEscape: import("element-plus/es/utils/
|
|
38
|
-
lockScroll: import("element-plus/es/utils/
|
|
39
|
-
modal: import("element-plus/es/utils/
|
|
36
|
+
closeOnClickModal: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
37
|
+
closeOnPressEscape: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
38
|
+
lockScroll: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
39
|
+
modal: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
40
40
|
modalPenetrable: BooleanConstructor;
|
|
41
|
-
openDelay: import("element-plus/es/utils/
|
|
42
|
-
closeDelay: import("element-plus/es/utils/
|
|
41
|
+
openDelay: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
42
|
+
closeDelay: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
43
43
|
top: {
|
|
44
44
|
readonly type: import("vue").PropType<string>;
|
|
45
45
|
readonly required: false;
|
|
@@ -47,12 +47,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
47
47
|
__epPropKey: true;
|
|
48
48
|
};
|
|
49
49
|
modelValue: BooleanConstructor;
|
|
50
|
-
modalClass:
|
|
51
|
-
headerClass: StringConstructor;
|
|
52
|
-
bodyClass: StringConstructor;
|
|
53
|
-
footerClass: StringConstructor;
|
|
50
|
+
modalClass: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => string | false | Record<string, any> | import("element-plus/es/utils/typescript.mjs").ClassValue[]) | (() => import("element-plus/es/utils/typescript.mjs").ClassValue) | (((new (...args: any[]) => string | false | Record<string, any> | import("element-plus/es/utils/typescript.mjs").ClassValue[]) | (() => import("element-plus/es/utils/typescript.mjs").ClassValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
54
51
|
width: {
|
|
55
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils/
|
|
52
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
56
53
|
readonly required: false;
|
|
57
54
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
58
55
|
__epPropKey: true;
|
|
@@ -64,46 +61,52 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
64
61
|
__epPropKey: true;
|
|
65
62
|
};
|
|
66
63
|
trapFocus: BooleanConstructor;
|
|
67
|
-
transition: import("element-plus/es/utils/
|
|
64
|
+
transition: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => string | import("vue").TransitionProps) | (() => import("element-plus").DialogTransition) | (((new (...args: any[]) => string | import("vue").TransitionProps) | (() => import("element-plus").DialogTransition)) | null)[], unknown, unknown, undefined, boolean>;
|
|
68
65
|
center: BooleanConstructor;
|
|
69
|
-
alignCenter: import("element-plus/es/utils/
|
|
66
|
+
alignCenter: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
70
67
|
closeIcon: {
|
|
71
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils/
|
|
68
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>>;
|
|
72
69
|
readonly required: false;
|
|
73
70
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
74
71
|
__epPropKey: true;
|
|
75
72
|
};
|
|
76
|
-
draggable: import("element-plus/es/utils/
|
|
77
|
-
overflow: import("element-plus/es/utils/
|
|
73
|
+
draggable: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
74
|
+
overflow: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
78
75
|
fullscreen: BooleanConstructor;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
76
|
+
headerClass: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => string | false | Record<string, any> | import("element-plus/es/utils/typescript.mjs").ClassValue[]) | (() => import("element-plus/es/utils/typescript.mjs").ClassValue) | (((new (...args: any[]) => string | false | Record<string, any> | import("element-plus/es/utils/typescript.mjs").ClassValue[]) | (() => import("element-plus/es/utils/typescript.mjs").ClassValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
77
|
+
bodyClass: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => string | false | Record<string, any> | import("element-plus/es/utils/typescript.mjs").ClassValue[]) | (() => import("element-plus/es/utils/typescript.mjs").ClassValue) | (((new (...args: any[]) => string | false | Record<string, any> | import("element-plus/es/utils/typescript.mjs").ClassValue[]) | (() => import("element-plus/es/utils/typescript.mjs").ClassValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
78
|
+
footerClass: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => string | false | Record<string, any> | import("element-plus/es/utils/typescript.mjs").ClassValue[]) | (() => import("element-plus/es/utils/typescript.mjs").ClassValue) | (((new (...args: any[]) => string | false | Record<string, any> | import("element-plus/es/utils/typescript.mjs").ClassValue[]) | (() => import("element-plus/es/utils/typescript.mjs").ClassValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
79
|
+
showClose: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
80
|
+
title: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
81
|
+
ariaLevel: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
82
82
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
83
83
|
close: () => void;
|
|
84
|
+
resize: (evt: MouseEvent, size: number) => void;
|
|
84
85
|
open: () => void;
|
|
86
|
+
closed: () => void;
|
|
85
87
|
"update:modelValue": (value: boolean) => void;
|
|
88
|
+
"resize-start": (evt: MouseEvent, size: number) => void;
|
|
89
|
+
"resize-end": (evt: MouseEvent, size: number) => void;
|
|
86
90
|
opened: () => void;
|
|
87
|
-
closed: () => void;
|
|
88
91
|
openAutoFocus: () => void;
|
|
89
92
|
closeAutoFocus: () => void;
|
|
90
93
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
91
94
|
modules: {
|
|
92
95
|
type: import("vue").PropType<"toggle"[]>;
|
|
93
|
-
default: () =>
|
|
96
|
+
default: () => any[];
|
|
94
97
|
};
|
|
95
98
|
absolute: {
|
|
96
99
|
type: BooleanConstructor;
|
|
97
100
|
default: boolean;
|
|
98
101
|
};
|
|
99
|
-
direction: import("element-plus/es/utils/
|
|
102
|
+
direction: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<StringConstructor, "ltr" | "rtl" | "ttb" | "btt", unknown, "rtl", boolean>;
|
|
100
103
|
resizable: BooleanConstructor;
|
|
101
|
-
size: import("element-plus/es/utils/
|
|
102
|
-
withHeader: import("element-plus/es/utils/
|
|
103
|
-
modalFade: import("element-plus/es/utils/
|
|
104
|
-
headerAriaLevel: import("element-plus/es/utils/
|
|
104
|
+
size: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "30%", boolean>;
|
|
105
|
+
withHeader: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
106
|
+
modalFade: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
107
|
+
headerAriaLevel: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
105
108
|
appendToBody: BooleanConstructor;
|
|
106
|
-
appendTo: import("element-plus/es/utils/
|
|
109
|
+
appendTo: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown, "body", boolean>;
|
|
107
110
|
beforeClose: {
|
|
108
111
|
readonly type: import("vue").PropType<import("element-plus").DialogBeforeCloseFn>;
|
|
109
112
|
readonly required: false;
|
|
@@ -111,13 +114,13 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
111
114
|
__epPropKey: true;
|
|
112
115
|
};
|
|
113
116
|
destroyOnClose: BooleanConstructor;
|
|
114
|
-
closeOnClickModal: import("element-plus/es/utils/
|
|
115
|
-
closeOnPressEscape: import("element-plus/es/utils/
|
|
116
|
-
lockScroll: import("element-plus/es/utils/
|
|
117
|
-
modal: import("element-plus/es/utils/
|
|
117
|
+
closeOnClickModal: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
118
|
+
closeOnPressEscape: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
119
|
+
lockScroll: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
120
|
+
modal: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
118
121
|
modalPenetrable: BooleanConstructor;
|
|
119
|
-
openDelay: import("element-plus/es/utils/
|
|
120
|
-
closeDelay: import("element-plus/es/utils/
|
|
122
|
+
openDelay: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
123
|
+
closeDelay: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
121
124
|
top: {
|
|
122
125
|
readonly type: import("vue").PropType<string>;
|
|
123
126
|
readonly required: false;
|
|
@@ -125,12 +128,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
125
128
|
__epPropKey: true;
|
|
126
129
|
};
|
|
127
130
|
modelValue: BooleanConstructor;
|
|
128
|
-
modalClass:
|
|
129
|
-
headerClass: StringConstructor;
|
|
130
|
-
bodyClass: StringConstructor;
|
|
131
|
-
footerClass: StringConstructor;
|
|
131
|
+
modalClass: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => string | false | Record<string, any> | import("element-plus/es/utils/typescript.mjs").ClassValue[]) | (() => import("element-plus/es/utils/typescript.mjs").ClassValue) | (((new (...args: any[]) => string | false | Record<string, any> | import("element-plus/es/utils/typescript.mjs").ClassValue[]) | (() => import("element-plus/es/utils/typescript.mjs").ClassValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
132
132
|
width: {
|
|
133
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils/
|
|
133
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
134
134
|
readonly required: false;
|
|
135
135
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
136
136
|
__epPropKey: true;
|
|
@@ -142,59 +142,69 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
142
142
|
__epPropKey: true;
|
|
143
143
|
};
|
|
144
144
|
trapFocus: BooleanConstructor;
|
|
145
|
-
transition: import("element-plus/es/utils/
|
|
145
|
+
transition: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => string | import("vue").TransitionProps) | (() => import("element-plus").DialogTransition) | (((new (...args: any[]) => string | import("vue").TransitionProps) | (() => import("element-plus").DialogTransition)) | null)[], unknown, unknown, undefined, boolean>;
|
|
146
146
|
center: BooleanConstructor;
|
|
147
|
-
alignCenter: import("element-plus/es/utils/
|
|
147
|
+
alignCenter: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
148
148
|
closeIcon: {
|
|
149
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils/
|
|
149
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>>;
|
|
150
150
|
readonly required: false;
|
|
151
151
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
152
152
|
__epPropKey: true;
|
|
153
153
|
};
|
|
154
|
-
draggable: import("element-plus/es/utils/
|
|
155
|
-
overflow: import("element-plus/es/utils/
|
|
154
|
+
draggable: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
155
|
+
overflow: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
156
156
|
fullscreen: BooleanConstructor;
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
157
|
+
headerClass: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => string | false | Record<string, any> | import("element-plus/es/utils/typescript.mjs").ClassValue[]) | (() => import("element-plus/es/utils/typescript.mjs").ClassValue) | (((new (...args: any[]) => string | false | Record<string, any> | import("element-plus/es/utils/typescript.mjs").ClassValue[]) | (() => import("element-plus/es/utils/typescript.mjs").ClassValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
158
|
+
bodyClass: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => string | false | Record<string, any> | import("element-plus/es/utils/typescript.mjs").ClassValue[]) | (() => import("element-plus/es/utils/typescript.mjs").ClassValue) | (((new (...args: any[]) => string | false | Record<string, any> | import("element-plus/es/utils/typescript.mjs").ClassValue[]) | (() => import("element-plus/es/utils/typescript.mjs").ClassValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
159
|
+
footerClass: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => string | false | Record<string, any> | import("element-plus/es/utils/typescript.mjs").ClassValue[]) | (() => import("element-plus/es/utils/typescript.mjs").ClassValue) | (((new (...args: any[]) => string | false | Record<string, any> | import("element-plus/es/utils/typescript.mjs").ClassValue[]) | (() => import("element-plus/es/utils/typescript.mjs").ClassValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
160
|
+
showClose: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
161
|
+
title: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
162
|
+
ariaLevel: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
160
163
|
}>> & Readonly<{
|
|
161
|
-
onClose?: (
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
164
|
+
onClose?: () => any;
|
|
165
|
+
onResize?: (evt: MouseEvent, size: number) => any;
|
|
166
|
+
onOpen?: () => any;
|
|
167
|
+
onClosed?: () => any;
|
|
168
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
169
|
+
"onResize-start"?: (evt: MouseEvent, size: number) => any;
|
|
170
|
+
"onResize-end"?: (evt: MouseEvent, size: number) => any;
|
|
171
|
+
onOpened?: () => any;
|
|
172
|
+
onOpenAutoFocus?: () => any;
|
|
173
|
+
onCloseAutoFocus?: () => any;
|
|
168
174
|
}>, {
|
|
169
|
-
size: import("element-plus/es/utils/
|
|
170
|
-
transition:
|
|
175
|
+
size: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
176
|
+
transition: undefined;
|
|
171
177
|
title: string;
|
|
172
|
-
appendTo: import("element-plus/es/utils/
|
|
178
|
+
appendTo: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement))[], unknown, unknown>;
|
|
173
179
|
center: boolean;
|
|
174
180
|
absolute: boolean;
|
|
181
|
+
direction: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "ltr" | "rtl" | "ttb" | "btt", unknown>;
|
|
182
|
+
overflow: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
183
|
+
draggable: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
184
|
+
ariaLevel: string;
|
|
185
|
+
destroyOnClose: boolean;
|
|
175
186
|
modules: "toggle"[];
|
|
176
187
|
modelValue: boolean;
|
|
177
|
-
|
|
178
|
-
showClose: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
179
|
-
direction: import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "ltr" | "rtl" | "ttb" | "btt", unknown>;
|
|
188
|
+
showClose: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
180
189
|
resizable: boolean;
|
|
181
|
-
withHeader: import("element-plus/es/utils/
|
|
182
|
-
modalFade: import("element-plus/es/utils/
|
|
190
|
+
withHeader: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
191
|
+
modalFade: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
183
192
|
headerAriaLevel: string;
|
|
184
193
|
appendToBody: boolean;
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
modal: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
194
|
+
closeOnClickModal: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
195
|
+
closeOnPressEscape: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
196
|
+
lockScroll: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
197
|
+
modal: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
190
198
|
modalPenetrable: boolean;
|
|
191
199
|
openDelay: number;
|
|
192
200
|
closeDelay: number;
|
|
201
|
+
modalClass: undefined;
|
|
193
202
|
trapFocus: boolean;
|
|
194
|
-
alignCenter: import("element-plus/es/utils/
|
|
195
|
-
draggable: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
203
|
+
alignCenter: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
196
204
|
fullscreen: boolean;
|
|
197
|
-
|
|
205
|
+
headerClass: undefined;
|
|
206
|
+
bodyClass: undefined;
|
|
207
|
+
footerClass: undefined;
|
|
198
208
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
199
209
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
200
210
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),m=require("@file-viewer/vue3"),g={file:{type:[Object,Blob,ArrayBuffer],default:void 0},url:{type:String,default:void 0},name:{type:String,default:void 0},filename:{type:String,default:void 0},type:{type:String,default:void 0},size:{type:Number,default:void 0},options:{type:Object,default:void 0}},v={"load-start":o=>!0,"load-complete":o=>!0,"unload-start":o=>!0,"unload-complete":o=>!0,"operation-before":o=>!0,"operation-cancel":o=>!0,"operation-availability-change":o=>!0,"search-change":o=>!0,"location-change":o=>!0,"zoom-change":o=>!0,"view-state-change":o=>!0,"fit-change":o=>!0,"theme-change":o=>!0},l=n.defineComponent({name:"VkFileViewer",__name:"index",props:g,emits:v,setup(o,{expose:p,emit:d}){const a=o,r=d,u=n.ref(null),f=new Proxy({},{get(i,t){const e=u.value,s=e?.[t];return typeof s=="function"?s.bind(e):s}});return p(f),(i,t)=>(n.openBlock(),n.createBlock(n.unref(m.FileViewer),{ref_key:"viewerRef",ref:u,class:"vk-file-viewer",file:a.file,url:a.url,name:a.name,filename:a.filename,type:a.type,size:a.size,options:a.options,onLoadStart:t[0]||(t[0]=e=>r("load-start",e)),onLoadComplete:t[1]||(t[1]=e=>r("load-complete",e)),onUnloadStart:t[2]||(t[2]=e=>r("unload-start",e)),onUnloadComplete:t[3]||(t[3]=e=>r("unload-complete",e)),onOperationBefore:t[4]||(t[4]=e=>r("operation-before",e)),onOperationCancel:t[5]||(t[5]=e=>r("operation-cancel",e)),onOperationAvailabilityChange:t[6]||(t[6]=e=>r("operation-availability-change",e)),onSearchChange:t[7]||(t[7]=e=>r("search-change",e)),onLocationChange:t[8]||(t[8]=e=>r("location-change",e)),onZoomChange:t[9]||(t[9]=e=>r("zoom-change",e)),onViewStateChange:t[10]||(t[10]=e=>r("view-state-change",e)),onFitChange:t[11]||(t[11]=e=>r("fit-change",e)),onThemeChange:t[12]||(t[12]=e=>r("theme-change",e))},n.createSlots({_:2},[i.$slots["toolbar-start"]?{name:"toolbar-start",fn:n.withCtx(e=>[n.renderSlot(i.$slots,"toolbar-start",n.normalizeProps(n.guardReactiveProps(e)))]),key:"0"}:void 0,i.$slots["toolbar-end"]?{name:"toolbar-end",fn:n.withCtx(e=>[n.renderSlot(i.$slots,"toolbar-end",n.normalizeProps(n.guardReactiveProps(e)))]),key:"1"}:void 0]),1032,["file","url","name","filename","type","size","options"]))}}),y=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));l.install=o=>{o.component(l.name||"VkFileViewer",l)};exports.VkFileViewer=l;exports.__VkFileViewer=y;exports.default=l;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { defineComponent as v, ref as b, openBlock as w, createBlock as C, unref as S, createSlots as k, withCtx as p, renderSlot as u, normalizeProps as f, guardReactiveProps as d } from "vue";
|
|
2
|
+
import { FileViewer as V } from "@file-viewer/vue3";
|
|
3
|
+
const z = {
|
|
4
|
+
/**
|
|
5
|
+
* @description 本地文件来源,推荐传入带正确扩展名的 File
|
|
6
|
+
*/
|
|
7
|
+
file: {
|
|
8
|
+
type: [Object, Blob, ArrayBuffer],
|
|
9
|
+
default: void 0
|
|
10
|
+
},
|
|
11
|
+
/**
|
|
12
|
+
* @description 远程文件地址
|
|
13
|
+
*/
|
|
14
|
+
url: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: void 0
|
|
17
|
+
},
|
|
18
|
+
/**
|
|
19
|
+
* @description 文件名,用于辅助推断扩展名
|
|
20
|
+
*/
|
|
21
|
+
name: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: void 0
|
|
24
|
+
},
|
|
25
|
+
/**
|
|
26
|
+
* @description 文件名,等价于 name
|
|
27
|
+
*/
|
|
28
|
+
filename: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: void 0
|
|
31
|
+
},
|
|
32
|
+
/**
|
|
33
|
+
* @description 显式指定扩展名或 MIME 线索
|
|
34
|
+
*/
|
|
35
|
+
type: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: void 0
|
|
38
|
+
},
|
|
39
|
+
/**
|
|
40
|
+
* @description 文件大小提示
|
|
41
|
+
*/
|
|
42
|
+
size: {
|
|
43
|
+
type: Number,
|
|
44
|
+
default: void 0
|
|
45
|
+
},
|
|
46
|
+
/**
|
|
47
|
+
* @description 完整预览器配置
|
|
48
|
+
*/
|
|
49
|
+
options: {
|
|
50
|
+
type: Object,
|
|
51
|
+
default: void 0
|
|
52
|
+
}
|
|
53
|
+
}, O = {
|
|
54
|
+
"load-start": (o) => !0,
|
|
55
|
+
"load-complete": (o) => !0,
|
|
56
|
+
"unload-start": (o) => !0,
|
|
57
|
+
"unload-complete": (o) => !0,
|
|
58
|
+
"operation-before": (o) => !0,
|
|
59
|
+
"operation-cancel": (o) => !0,
|
|
60
|
+
"operation-availability-change": (o) => !0,
|
|
61
|
+
"search-change": (o) => !0,
|
|
62
|
+
"location-change": (o) => !0,
|
|
63
|
+
"zoom-change": (o) => !0,
|
|
64
|
+
"view-state-change": (o) => !0,
|
|
65
|
+
"fit-change": (o) => !0,
|
|
66
|
+
"theme-change": (o) => !0
|
|
67
|
+
}, l = /* @__PURE__ */ v({
|
|
68
|
+
name: "VkFileViewer",
|
|
69
|
+
__name: "index",
|
|
70
|
+
props: z,
|
|
71
|
+
emits: O,
|
|
72
|
+
setup(o, { expose: m, emit: g }) {
|
|
73
|
+
const r = o, n = g, s = b(null), y = new Proxy({}, {
|
|
74
|
+
get(a, t) {
|
|
75
|
+
const e = s.value, i = e?.[t];
|
|
76
|
+
return typeof i == "function" ? i.bind(e) : i;
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
return m(y), (a, t) => (w(), C(S(V), {
|
|
80
|
+
ref_key: "viewerRef",
|
|
81
|
+
ref: s,
|
|
82
|
+
class: "vk-file-viewer",
|
|
83
|
+
file: r.file,
|
|
84
|
+
url: r.url,
|
|
85
|
+
name: r.name,
|
|
86
|
+
filename: r.filename,
|
|
87
|
+
type: r.type,
|
|
88
|
+
size: r.size,
|
|
89
|
+
options: r.options,
|
|
90
|
+
onLoadStart: t[0] || (t[0] = (e) => n("load-start", e)),
|
|
91
|
+
onLoadComplete: t[1] || (t[1] = (e) => n("load-complete", e)),
|
|
92
|
+
onUnloadStart: t[2] || (t[2] = (e) => n("unload-start", e)),
|
|
93
|
+
onUnloadComplete: t[3] || (t[3] = (e) => n("unload-complete", e)),
|
|
94
|
+
onOperationBefore: t[4] || (t[4] = (e) => n("operation-before", e)),
|
|
95
|
+
onOperationCancel: t[5] || (t[5] = (e) => n("operation-cancel", e)),
|
|
96
|
+
onOperationAvailabilityChange: t[6] || (t[6] = (e) => n("operation-availability-change", e)),
|
|
97
|
+
onSearchChange: t[7] || (t[7] = (e) => n("search-change", e)),
|
|
98
|
+
onLocationChange: t[8] || (t[8] = (e) => n("location-change", e)),
|
|
99
|
+
onZoomChange: t[9] || (t[9] = (e) => n("zoom-change", e)),
|
|
100
|
+
onViewStateChange: t[10] || (t[10] = (e) => n("view-state-change", e)),
|
|
101
|
+
onFitChange: t[11] || (t[11] = (e) => n("fit-change", e)),
|
|
102
|
+
onThemeChange: t[12] || (t[12] = (e) => n("theme-change", e))
|
|
103
|
+
}, k({ _: 2 }, [
|
|
104
|
+
a.$slots["toolbar-start"] ? {
|
|
105
|
+
name: "toolbar-start",
|
|
106
|
+
fn: p((e) => [
|
|
107
|
+
u(a.$slots, "toolbar-start", f(d(e)))
|
|
108
|
+
]),
|
|
109
|
+
key: "0"
|
|
110
|
+
} : void 0,
|
|
111
|
+
a.$slots["toolbar-end"] ? {
|
|
112
|
+
name: "toolbar-end",
|
|
113
|
+
fn: p((e) => [
|
|
114
|
+
u(a.$slots, "toolbar-end", f(d(e)))
|
|
115
|
+
]),
|
|
116
|
+
key: "1"
|
|
117
|
+
} : void 0
|
|
118
|
+
]), 1032, ["file", "url", "name", "filename", "type", "size", "options"]));
|
|
119
|
+
}
|
|
120
|
+
}), j = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
121
|
+
__proto__: null
|
|
122
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
123
|
+
l.install = (o) => {
|
|
124
|
+
o.component(l.name || "VkFileViewer", l);
|
|
125
|
+
};
|
|
126
|
+
export {
|
|
127
|
+
l as VkFileViewer,
|
|
128
|
+
j as __VkFileViewer,
|
|
129
|
+
l as default
|
|
130
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { FileRef, FileViewerDocumentAnchor, FileViewerLifecycleContext, FileViewerOperationAvailability, FileViewerOperationContext, FileViewerOptions, FileViewerSearchState, FileViewerViewStateChange, FileViewerZoomState, ViewerFitResult } from '@file-viewer/vue3';
|
|
2
|
+
import type { PropType } from 'vue';
|
|
3
|
+
export type ResolvedViewerTheme = 'light' | 'dark';
|
|
4
|
+
export declare const props: {
|
|
5
|
+
/**
|
|
6
|
+
* @description 本地文件来源,推荐传入带正确扩展名的 File
|
|
7
|
+
*/
|
|
8
|
+
file: {
|
|
9
|
+
type: PropType<FileRef>;
|
|
10
|
+
default: any;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* @description 远程文件地址
|
|
14
|
+
*/
|
|
15
|
+
url: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: any;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @description 文件名,用于辅助推断扩展名
|
|
21
|
+
*/
|
|
22
|
+
name: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: any;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* @description 文件名,等价于 name
|
|
28
|
+
*/
|
|
29
|
+
filename: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: any;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @description 显式指定扩展名或 MIME 线索
|
|
35
|
+
*/
|
|
36
|
+
type: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: any;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* @description 文件大小提示
|
|
42
|
+
*/
|
|
43
|
+
size: {
|
|
44
|
+
type: NumberConstructor;
|
|
45
|
+
default: any;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* @description 完整预览器配置
|
|
49
|
+
*/
|
|
50
|
+
options: {
|
|
51
|
+
type: PropType<FileViewerOptions>;
|
|
52
|
+
default: any;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare const emits: {
|
|
56
|
+
'load-start': (_: FileViewerLifecycleContext) => boolean;
|
|
57
|
+
'load-complete': (_: FileViewerLifecycleContext) => boolean;
|
|
58
|
+
'unload-start': (_: FileViewerLifecycleContext) => boolean;
|
|
59
|
+
'unload-complete': (_: FileViewerLifecycleContext) => boolean;
|
|
60
|
+
'operation-before': (_: FileViewerOperationContext) => boolean;
|
|
61
|
+
'operation-cancel': (_: FileViewerOperationContext) => boolean;
|
|
62
|
+
'operation-availability-change': (_: FileViewerOperationAvailability) => boolean;
|
|
63
|
+
'search-change': (_: FileViewerSearchState) => boolean;
|
|
64
|
+
'location-change': (_: FileViewerDocumentAnchor | null) => boolean;
|
|
65
|
+
'zoom-change': (_: FileViewerZoomState) => boolean;
|
|
66
|
+
'view-state-change': (_: FileViewerViewStateChange) => boolean;
|
|
67
|
+
'fit-change': (_: ViewerFitResult) => boolean;
|
|
68
|
+
'theme-change': (_: ResolvedViewerTheme) => boolean;
|
|
69
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import type { FileViewerToolbarSlotProps } from '@file-viewer/vue3';
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
'toolbar-start'?: (props: FileViewerToolbarSlotProps) => unknown;
|
|
4
|
+
'toolbar-end'?: (props: FileViewerToolbarSlotProps) => unknown;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
|
+
file: {
|
|
8
|
+
type: import("vue").PropType<import("@file-viewer/vue3").FileRef>;
|
|
9
|
+
default: any;
|
|
10
|
+
};
|
|
11
|
+
url: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: any;
|
|
14
|
+
};
|
|
15
|
+
name: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: any;
|
|
18
|
+
};
|
|
19
|
+
filename: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: any;
|
|
22
|
+
};
|
|
23
|
+
type: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: any;
|
|
26
|
+
};
|
|
27
|
+
size: {
|
|
28
|
+
type: NumberConstructor;
|
|
29
|
+
default: any;
|
|
30
|
+
};
|
|
31
|
+
options: {
|
|
32
|
+
type: import("vue").PropType<import("@file-viewer/vue3").FileViewerOptions>;
|
|
33
|
+
default: any;
|
|
34
|
+
};
|
|
35
|
+
}>, import("@file-viewer/core").FileViewerPublicApi, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
+
"load-start": (_: import("@file-viewer/core").FileViewerLifecycleContext) => void;
|
|
37
|
+
"load-complete": (_: import("@file-viewer/core").FileViewerLifecycleContext) => void;
|
|
38
|
+
"unload-start": (_: import("@file-viewer/core").FileViewerLifecycleContext) => void;
|
|
39
|
+
"unload-complete": (_: import("@file-viewer/core").FileViewerLifecycleContext) => void;
|
|
40
|
+
"operation-before": (_: import("@file-viewer/core").FileViewerOperationContext) => void;
|
|
41
|
+
"operation-cancel": (_: import("@file-viewer/core").FileViewerOperationContext) => void;
|
|
42
|
+
"operation-availability-change": (_: import("@file-viewer/core").FileViewerOperationAvailability) => void;
|
|
43
|
+
"search-change": (_: import("@file-viewer/core").FileViewerSearchState) => void;
|
|
44
|
+
"location-change": (_: import("@file-viewer/core").FileViewerDocumentAnchor) => void;
|
|
45
|
+
"zoom-change": (_: import("@file-viewer/core").FileViewerZoomState) => void;
|
|
46
|
+
"view-state-change": (_: import("@file-viewer/core").FileViewerViewStateChange) => void;
|
|
47
|
+
"fit-change": (_: import("@file-viewer/core").FileViewerFitResult) => void;
|
|
48
|
+
"theme-change": (_: import("./ctx").ResolvedViewerTheme) => void;
|
|
49
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
|
+
file: {
|
|
51
|
+
type: import("vue").PropType<import("@file-viewer/vue3").FileRef>;
|
|
52
|
+
default: any;
|
|
53
|
+
};
|
|
54
|
+
url: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: any;
|
|
57
|
+
};
|
|
58
|
+
name: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: any;
|
|
61
|
+
};
|
|
62
|
+
filename: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: any;
|
|
65
|
+
};
|
|
66
|
+
type: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: any;
|
|
69
|
+
};
|
|
70
|
+
size: {
|
|
71
|
+
type: NumberConstructor;
|
|
72
|
+
default: any;
|
|
73
|
+
};
|
|
74
|
+
options: {
|
|
75
|
+
type: import("vue").PropType<import("@file-viewer/vue3").FileViewerOptions>;
|
|
76
|
+
default: any;
|
|
77
|
+
};
|
|
78
|
+
}>> & Readonly<{
|
|
79
|
+
"onLoad-start"?: (_: import("@file-viewer/core").FileViewerLifecycleContext) => any;
|
|
80
|
+
"onLoad-complete"?: (_: import("@file-viewer/core").FileViewerLifecycleContext) => any;
|
|
81
|
+
"onUnload-start"?: (_: import("@file-viewer/core").FileViewerLifecycleContext) => any;
|
|
82
|
+
"onUnload-complete"?: (_: import("@file-viewer/core").FileViewerLifecycleContext) => any;
|
|
83
|
+
"onOperation-before"?: (_: import("@file-viewer/core").FileViewerOperationContext) => any;
|
|
84
|
+
"onOperation-cancel"?: (_: import("@file-viewer/core").FileViewerOperationContext) => any;
|
|
85
|
+
"onOperation-availability-change"?: (_: import("@file-viewer/core").FileViewerOperationAvailability) => any;
|
|
86
|
+
"onSearch-change"?: (_: import("@file-viewer/core").FileViewerSearchState) => any;
|
|
87
|
+
"onLocation-change"?: (_: import("@file-viewer/core").FileViewerDocumentAnchor) => any;
|
|
88
|
+
"onZoom-change"?: (_: import("@file-viewer/core").FileViewerZoomState) => any;
|
|
89
|
+
"onView-state-change"?: (_: import("@file-viewer/core").FileViewerViewStateChange) => any;
|
|
90
|
+
"onFit-change"?: (_: import("@file-viewer/core").FileViewerFitResult) => any;
|
|
91
|
+
"onTheme-change"?: (_: import("./ctx").ResolvedViewerTheme) => any;
|
|
92
|
+
}>, {
|
|
93
|
+
type: string;
|
|
94
|
+
size: number;
|
|
95
|
+
name: string;
|
|
96
|
+
url: string;
|
|
97
|
+
file: import("@file-viewer/core").FileViewerFileRef;
|
|
98
|
+
options: import("@file-viewer/core").FileViewerOptions;
|
|
99
|
+
filename: string;
|
|
100
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
101
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
102
|
+
declare const _default: typeof __VLS_export;
|
|
103
|
+
export default _default;
|
|
104
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
105
|
+
new (): {
|
|
106
|
+
$slots: S;
|
|
107
|
+
};
|
|
108
|
+
};
|