@vunk/plus 1.13.1 → 1.14.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/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/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 +1 -1
- package/package.json +11 -1
package/element/bubble/index.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),S=require("../_plugin-vue_export-helper-BHFhmbuH.js"),B={key:0,class:"el-bubble-avatar el-bubble-avatar-size"},$={key:1,class:"el-bubble-avatar-placeholder"},C={key:2,class:"el-bubble-avatar"},E={class:"el-bubble-content-wrapper"},V={key:0,class:"el-bubble-header"},N={key:1,class:"el-bubble-loading-wrap"},w={key:2,class:"el-bubble-loading-wrap"},z={key:1,class:"el-bubble-footer"},p=e.defineComponent({__name:"index",props:{placement:{default:"start"},avatar:{default:""},loading:{type:Boolean},shape:{},variant:{default:"filled"},maxWidth:{default:"500px"},avatarSize:{default:""},avatarGap:{default:"12px"},avatarShape:{default:"circle"},avatarSrcSet:{default:""},avatarAlt:{default:""},avatarFit:{default:"cover"},noStyle:{type:Boolean,default:!1},content:{default:""}},emits:["avatarError"],setup(t,{expose:c,emit:i}){const b=t,v=i,l=e.ref(!1),m=e.ref(!1);e.watch(()=>b.content,(a,s)=>{a!==s&&l.value&&r()});const n=e.ref(),o={interrupt:y,continue:h,restart:r,destroy:g,renderedContent:e.computed(()=>l.value?"":n.value?.renderedContent.value||""),isTyping:e.computed(()=>!l.value&&(n.value?.isTyping.value||!1)),progress:e.computed(()=>l.value?0:n.value?.progress.value||0)};function f(a){v("avatarError",a)}function y(){n.value?.interrupt()}function h(){n.value?.continue()}function r(){l.value=!1,n.value?.restart()}function g(){n.value?.destroy(),l.value=!0}return e.onUnmounted(o.destroy),c(o),(a,s)=>{const k=e.resolveComponent("el-avatar");return l.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["el-bubble",{"el-bubble-start":t.placement==="start","el-bubble-end":t.placement==="end","el-bubble-no-style":t.noStyle,"el-bubble-is-typing":m.value}]),style:e.normalizeStyle({"--el-box-shadow-tertiary":`0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
2
2
|
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
3
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)`,"--bubble-content-max-width":`${
|
|
3
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)`,"--bubble-content-max-width":`${t.maxWidth}`,"--el-bubble-avatar-placeholder-width":`${a.$slots.avatar?"":t.avatarSize}`,"--el-bubble-avatar-placeholder-height":`${a.$slots.avatar?"":t.avatarSize}`,"--el-bubble-avatar-placeholder-gap":`${t.avatarGap}`})},[!a.$slots.avatar&&t.avatar?(e.openBlock(),e.createElementBlock("div",B,[e.createVNode(k,{size:0,src:t.avatar,shape:t.avatarShape,"src-set":t.avatarSrcSet,alt:t.avatarFit,onError:f},null,8,["src","shape","src-set","alt"])])):e.createCommentVNode("",!0),!a.$slots.avatar&&!t.avatar&&t.avatarSize?(e.openBlock(),e.createElementBlock("div",$)):e.createCommentVNode("",!0),a.$slots.avatar?(e.openBlock(),e.createElementBlock("div",C,[e.renderSlot(a.$slots,"avatar",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",E,[a.$slots.header?(e.openBlock(),e.createElementBlock("div",V,[e.renderSlot(a.$slots,"header",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["el-bubble-content",{"el-bubble-content-loading":t.loading,"el-bubble-content-round":t.shape==="round"&&!t.noStyle,"el-bubble-content-corner":t.shape==="corner"&&!t.noStyle,"el-bubble-content-filled":t.variant==="filled"&&!t.noStyle,"el-bubble-content-borderless":t.variant==="borderless"&&!t.noStyle,"el-bubble-content-outlined":t.variant==="outlined"&&!t.noStyle,"el-bubble-content-shadow":t.variant==="shadow"&&!t.noStyle}])},[!l.value&&a.$slots.content&&!t.loading?e.renderSlot(a.$slots,"content",{},void 0,!0,0):e.createCommentVNode("",!0),t.loading&&!a.$slots.loading?(e.openBlock(),e.createElementBlock("div",N,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,(T,d)=>e.createElementVNode("div",{key:d,class:"dot",style:e.normalizeStyle({animationDelay:`${d*.2}s`})},null,4)),64))])):e.createCommentVNode("",!0),t.loading&&a.$slots.loading?(e.openBlock(),e.createElementBlock("div",w,[e.renderSlot(a.$slots,"loading",{},void 0,!0)])):e.createCommentVNode("",!0)],2),a.$slots.footer?(e.openBlock(),e.createElementBlock("div",z,[e.renderSlot(a.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)])],6))}}}),u=S._export_sfc(p,[["__scopeId","data-v-84e81b19"]]);exports.Bubble=u;exports.default=u;
|
package/element/bubble/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as T, ref as u, watch as F, computed as i, onUnmounted as N, resolveComponent as V, openBlock as t, createElementBlock as l, normalizeStyle as y, normalizeClass as h, createVNode as x, createCommentVNode as n, renderSlot as s, createElementVNode as d, Fragment as D, renderList as G } from "vue";
|
|
2
2
|
import { _ as W } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
3
|
const A = {
|
|
4
4
|
key: 0,
|
|
@@ -21,7 +21,7 @@ const A = {
|
|
|
21
21
|
}, H = {
|
|
22
22
|
key: 1,
|
|
23
23
|
class: "el-bubble-footer"
|
|
24
|
-
}, J = /* @__PURE__ */
|
|
24
|
+
}, J = /* @__PURE__ */ T({
|
|
25
25
|
__name: "index",
|
|
26
26
|
props: {
|
|
27
27
|
placement: { default: "start" },
|
|
@@ -40,85 +40,85 @@ const A = {
|
|
|
40
40
|
content: { default: "" }
|
|
41
41
|
},
|
|
42
42
|
emits: ["avatarError"],
|
|
43
|
-
setup(
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
() =>
|
|
47
|
-
(
|
|
48
|
-
|
|
43
|
+
setup(e, { expose: m, emit: g }) {
|
|
44
|
+
const S = e, $ = g, o = u(!1), k = u(!1);
|
|
45
|
+
F(
|
|
46
|
+
() => S.content,
|
|
47
|
+
(a, c) => {
|
|
48
|
+
a !== c && o.value && v();
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
|
-
const r =
|
|
52
|
-
interrupt:
|
|
53
|
-
continue:
|
|
54
|
-
restart:
|
|
55
|
-
destroy:
|
|
56
|
-
renderedContent:
|
|
51
|
+
const r = u(), b = {
|
|
52
|
+
interrupt: z,
|
|
53
|
+
continue: C,
|
|
54
|
+
restart: v,
|
|
55
|
+
destroy: E,
|
|
56
|
+
renderedContent: i(
|
|
57
57
|
() => o.value ? "" : r.value?.renderedContent.value || ""
|
|
58
58
|
),
|
|
59
|
-
isTyping:
|
|
59
|
+
isTyping: i(
|
|
60
60
|
() => !o.value && (r.value?.isTyping.value || !1)
|
|
61
61
|
),
|
|
62
|
-
progress:
|
|
62
|
+
progress: i(
|
|
63
63
|
() => o.value ? 0 : r.value?.progress.value || 0
|
|
64
64
|
)
|
|
65
65
|
};
|
|
66
|
-
function
|
|
67
|
-
|
|
66
|
+
function w(a) {
|
|
67
|
+
$("avatarError", a);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function z() {
|
|
70
70
|
r.value?.interrupt();
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function C() {
|
|
73
73
|
r.value?.continue();
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function v() {
|
|
76
76
|
o.value = !1, r.value?.restart();
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function E() {
|
|
79
79
|
r.value?.destroy(), o.value = !0;
|
|
80
80
|
}
|
|
81
|
-
return
|
|
82
|
-
const
|
|
83
|
-
return o.value ?
|
|
81
|
+
return N(b.destroy), m(b), (a, c) => {
|
|
82
|
+
const B = V("el-avatar");
|
|
83
|
+
return o.value ? n("", !0) : (t(), l("div", {
|
|
84
84
|
key: 0,
|
|
85
|
-
class:
|
|
85
|
+
class: h(["el-bubble", {
|
|
86
86
|
"el-bubble-start": e.placement === "start",
|
|
87
87
|
"el-bubble-end": e.placement === "end",
|
|
88
88
|
"el-bubble-no-style": e.noStyle,
|
|
89
|
-
"el-bubble-is-typing":
|
|
89
|
+
"el-bubble-is-typing": k.value
|
|
90
90
|
// 新增动态类名
|
|
91
91
|
}]),
|
|
92
|
-
style:
|
|
92
|
+
style: y({
|
|
93
93
|
"--el-box-shadow-tertiary": `0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
94
94
|
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
95
95
|
0 2px 4px 0 rgba(0, 0, 0, 0.02)`,
|
|
96
96
|
"--bubble-content-max-width": `${e.maxWidth}`,
|
|
97
|
-
"--el-bubble-avatar-placeholder-width": `${
|
|
98
|
-
"--el-bubble-avatar-placeholder-height": `${
|
|
97
|
+
"--el-bubble-avatar-placeholder-width": `${a.$slots.avatar ? "" : e.avatarSize}`,
|
|
98
|
+
"--el-bubble-avatar-placeholder-height": `${a.$slots.avatar ? "" : e.avatarSize}`,
|
|
99
99
|
"--el-bubble-avatar-placeholder-gap": `${e.avatarGap}`
|
|
100
100
|
})
|
|
101
101
|
}, [
|
|
102
|
-
!
|
|
103
|
-
|
|
102
|
+
!a.$slots.avatar && e.avatar ? (t(), l("div", A, [
|
|
103
|
+
x(B, {
|
|
104
104
|
size: 0,
|
|
105
105
|
src: e.avatar,
|
|
106
106
|
shape: e.avatarShape,
|
|
107
107
|
"src-set": e.avatarSrcSet,
|
|
108
108
|
alt: e.avatarFit,
|
|
109
|
-
onError:
|
|
109
|
+
onError: w
|
|
110
110
|
}, null, 8, ["src", "shape", "src-set", "alt"])
|
|
111
|
-
])) :
|
|
112
|
-
!
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
])) :
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
])) :
|
|
120
|
-
|
|
121
|
-
class:
|
|
111
|
+
])) : n("", !0),
|
|
112
|
+
!a.$slots.avatar && !e.avatar && e.avatarSize ? (t(), l("div", I)) : n("", !0),
|
|
113
|
+
a.$slots.avatar ? (t(), l("div", L, [
|
|
114
|
+
s(a.$slots, "avatar", {}, void 0, !0)
|
|
115
|
+
])) : n("", !0),
|
|
116
|
+
d("div", R, [
|
|
117
|
+
a.$slots.header ? (t(), l("div", U, [
|
|
118
|
+
s(a.$slots, "header", {}, void 0, !0)
|
|
119
|
+
])) : n("", !0),
|
|
120
|
+
d("div", {
|
|
121
|
+
class: h(["el-bubble-content", {
|
|
122
122
|
"el-bubble-content-loading": e.loading,
|
|
123
123
|
"el-bubble-content-round": e.shape === "round" && !e.noStyle,
|
|
124
124
|
"el-bubble-content-corner": e.shape === "corner" && !e.noStyle,
|
|
@@ -128,26 +128,26 @@ const A = {
|
|
|
128
128
|
"el-bubble-content-shadow": e.variant === "shadow" && !e.noStyle
|
|
129
129
|
}])
|
|
130
130
|
}, [
|
|
131
|
-
!o.value &&
|
|
132
|
-
e.loading && !
|
|
133
|
-
(
|
|
134
|
-
key:
|
|
131
|
+
!o.value && a.$slots.content && !e.loading ? s(a.$slots, "content", {}, void 0, !0, 0) : n("", !0),
|
|
132
|
+
e.loading && !a.$slots.loading ? (t(), l("div", j, [
|
|
133
|
+
(t(), l(D, null, G(3, (K, f) => d("div", {
|
|
134
|
+
key: f,
|
|
135
135
|
class: "dot",
|
|
136
|
-
style:
|
|
136
|
+
style: y({ animationDelay: `${f * 0.2}s` })
|
|
137
137
|
}, null, 4)), 64))
|
|
138
|
-
])) :
|
|
139
|
-
e.loading &&
|
|
140
|
-
|
|
141
|
-
])) :
|
|
138
|
+
])) : n("", !0),
|
|
139
|
+
e.loading && a.$slots.loading ? (t(), l("div", q, [
|
|
140
|
+
s(a.$slots, "loading", {}, void 0, !0)
|
|
141
|
+
])) : n("", !0)
|
|
142
142
|
], 2),
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
])) :
|
|
143
|
+
a.$slots.footer ? (t(), l("div", H, [
|
|
144
|
+
s(a.$slots, "footer", {}, void 0, !0)
|
|
145
|
+
])) : n("", !0)
|
|
146
146
|
])
|
|
147
147
|
], 6));
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
|
-
}), P = /* @__PURE__ */ W(J, [["__scopeId", "data-v-
|
|
150
|
+
}), P = /* @__PURE__ */ W(J, [["__scopeId", "data-v-84e81b19"]]);
|
|
151
151
|
export {
|
|
152
152
|
P as Bubble,
|
|
153
153
|
P as default
|
package/element/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.el-bubble[data-v-
|
|
1
|
+
@charset "UTF-8";.el-bubble[data-v-84e81b19]{display:flex;gap:var(--el-bubble-avatar-placeholder-gap)}.el-bubble-avatar-size[data-v-84e81b19] .el-avatar,.el-bubble-avatar-placeholder[data-v-84e81b19]{width:var(--el-bubble-avatar-placeholder-width);height:var(--el-bubble-avatar-placeholder-height)}.el-bubble-start .el-bubble-content-wrapper .el-bubble-content-corner[data-v-84e81b19]{border-start-start-radius:calc(var(--el-border-radius-base) - 2px)}.el-bubble-end[data-v-84e81b19]{justify-content:end;flex-direction:row-reverse}.el-bubble-end .el-bubble-content-wrapper[data-v-84e81b19]{align-items:flex-end}.el-bubble-end .el-bubble-content-wrapper .el-bubble-content-corner[data-v-84e81b19]{border-start-end-radius:calc(var(--el-border-radius-base) - 2px)}.el-bubble-no-style .el-bubble-content-wrapper .el-bubble-content[data-v-84e81b19]{background-color:transparent;padding:0}.el-bubble-content-wrapper[data-v-84e81b19]{flex:auto;display:flex;flex-direction:column;align-items:flex-start;min-width:0;max-width:100%}.el-bubble-content-wrapper .el-bubble-header[data-v-84e81b19],.el-bubble-content-wrapper .el-bubble-content[data-v-84e81b19],.el-bubble-content-wrapper .el-bubble-footer[data-v-84e81b19]{font-size:var(--el-font-size-base);color:var(--el-text-color-primary);line-height:var(--el-font-line-height-primary)}.el-bubble-content-wrapper .el-bubble-content[data-v-84e81b19]{background-color:var(--el-fill-color);padding:var(--el-padding-sm, 12px) calc(var(--el-padding-sm, 12px) + 4px);border-radius:calc(var(--el-border-radius-base) + 4px);position:relative;box-sizing:border-box;min-width:0;max-width:var(--bubble-content-max-width);color:var(--el-text-color-primary);font-size:var(--el-font-size-base);line-height:var(--el-font-line-height-primary);min-height:calc(var(--el-padding-sm, 12px) * 2 + var(--el-font-line-height-primary) * var(--el-font-size-base));word-break:break-word}.el-bubble-content-wrapper .el-bubble-content .no-content[data-v-84e81b19]{height:0}.el-bubble-content-wrapper .el-bubble-content-round[data-v-84e81b19]{border-radius:var(--el-border-radius-round)}.el-bubble-content-wrapper .el-bubble-content-filled[data-v-84e81b19]{background-color:var(--el-fill-color)}.el-bubble-content-wrapper .el-bubble-content-borderless[data-v-84e81b19]{background-color:var(--el-fill-color);border:var(--el-border-width) solid var(--el-border-color)}.el-bubble-content-wrapper .el-bubble-content-outlined[data-v-84e81b19]{background:none;border:var(--el-border-width) solid var(--el-border-color)}.el-bubble-content-wrapper .el-bubble-content-shadow[data-v-84e81b19]{background:none;box-shadow:var(--el-box-shadow)}.el-bubble-content-wrapper .el-bubble-content-loading[data-v-84e81b19]{width:fit-content}.el-bubble-content-wrapper .el-bubble-content-loading .el-bubble-loading-wrap[data-v-84e81b19]{display:flex;justify-content:center;align-items:center;gap:5px}.el-bubble-content-wrapper .el-bubble-content-loading .dot[data-v-84e81b19]{will-change:transform;width:5px;height:5px;background-color:var(--el-color-primary);border-radius:50%;animation:wave-84e81b19 1s infinite ease-in-out}.el-bubble-content-wrapper .el-bubble-content-loading .dot-2[data-v-84e81b19]{animation-delay:.2s}.el-bubble-content-wrapper .el-bubble-content-loading .dot-3[data-v-84e81b19]{animation-delay:.4s}@keyframes wave-84e81b19{0%,to{transform:translateY(-2px)}50%{transform:translateY(2px)}}.el-bubble-content-wrapper .el-bubble-footer[data-v-84e81b19]{margin-top:var(--el-padding-sm, 12px)}.el-thinking[data-v-1247234a]{font-family:system-ui,sans-serif;margin:0 auto}.trigger[data-v-1247234a]{display:flex;align-items:center;height:100%;width:var(--el-thinking-button-width);gap:8px;padding:var(--el-padding-sm, 12px) calc(var(--el-padding-sm, 12px) + 4px);border:1px solid #e4e4e4;border-radius:8px;background:#fff;cursor:pointer;margin-bottom:8px}.trigger .el-icon-center[data-v-1247234a]{height:100%;display:flex;align-items:center}.trigger .start-color[data-v-1247234a]{color:var(--el-color-warning)}.trigger .end-color[data-v-1247234a]{color:var(--el-color-success)}.trigger .is-loading[data-v-1247234a]{color:var(--el-color-primary)}.trigger .error-color[data-v-1247234a]{color:var(--el-color-danger)}.trigger .cancel-color[data-v-1247234a]{color:var(--el-color-info)}.trigger[data-v-1247234a]:hover{background:#f8f8f8}.trigger.disabled[data-v-1247234a]{cursor:pointer}.trigger[data-v-1247234a]:disabled{cursor:not-allowed;opacity:.7}.status-icon[data-v-1247234a]{font-size:1.2em}.arrow[data-v-1247234a]{margin-left:auto;transition:transform var(--el-thinking-animation-duration)}.arrow.expanded[data-v-1247234a]{transform:rotate(180deg)}.slide-enter-active[data-v-1247234a],.slide-leave-active[data-v-1247234a]{height:calc-size(max-content,size);transition:height var(--el-thinking-animation-duration) ease-in-out,opacity var(--el-thinking-animation-duration) ease-in-out;overflow:hidden}.slide-enter-from[data-v-1247234a],.slide-leave-to[data-v-1247234a]{height:0!important;opacity:0}.content-wrapper[data-v-1247234a]{box-sizing:border-box;min-width:0}.content pre[data-v-1247234a]{border:1px solid #eee;background:var(--el-thinking-content-wrapper-background-color);padding:var(--el-padding-sm, 12px) calc(var(--el-padding-sm, 12px) + 4px);border-radius:calc(var(--el-border-radius-base) + 4px);max-width:var(--el-thinking-content-wrapper-width);font-size:14px;color:var(--el-thinking-content-wrapper-color);white-space:pre-wrap;font-family:DeepSeek-CJK-patch,Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,Oxygen,Open Sans,sans-serif;margin:0;line-height:var(--el-font-line-height-primary)}.error-state[data-v-1247234a]{border-color:#ffd0d0;background:#fff0f0}.error-message[data-v-1247234a]{color:#dc3545;height:fit-content;padding:8px;background:#ffeef0;border-radius:4px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("../_plugin-vue_export-helper-BHFhmbuH.js");var p=e.defineComponent({name:"ArrowUpBold",__name:"arrow-up-bold",setup(a){return(n,t)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496"})]))}}),f=p,_=e.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(a){return(n,t)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),d=_,h=e.defineComponent({name:"Loading",__name:"loading",setup(a){return(n,t)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),v=h,w=e.defineComponent({name:"Opportunity",__name:"opportunity",setup(a){return(n,t)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M384 960v-64h192.064v64zm448-544a350.66 350.66 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.55 351.55 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416m-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288z"})]))}}),k=w,g=e.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(a){return(n,t)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),C=g;const V=["disabled"],B={class:"status-icon"},x={class:"label"},N={class:"content"},b={class:"error-message"},E=e.defineComponent({__name:"index",props:{modelValue:{type:Boolean,default:!0},content:{default:""},status:{default:"start"},disabled:{type:Boolean,default:!1},autoCollapse:{type:Boolean,default:!1},duration:{default:"0.2s"},buttonWidth:{default:"160px"},maxWidth:{default:"500px"},backgroundColor:{default:"#fcfcfc"},color:{default:"var(--el-color-info)"}},emits:["change","update:modelValue"],setup(a,{emit:n}){const t=a,s=n,o=e.ref(t.modelValue);e.watch(()=>t.modelValue,l=>{o.value=l});function i(){t.disabled||(o.value=!o.value,s("change",{value:o.value,status:t.status}),s("update:modelValue",o.value))}const c=e.computed(()=>t.status==="error"?"思考过程中出现错误":t.content);return e.watch(()=>t.status,l=>{l==="end"&&t.autoCollapse&&(o.value=!1,s("update:modelValue",o.value))}),(l,y)=>{const r=e.resolveComponent("el-icon");return e.openBlock(),e.createElementBlock("div",{class:"el-thinking",style:e.normalizeStyle({"--el-thinking-button-width":t.buttonWidth,"--el-thinking-animation-duration":t.duration,"--el-thinking-content-wrapper-width":t.maxWidth,"--el-thinking-content-wrapper-background-color":t.backgroundColor,"--el-thinking-content-wrapper-color":t.color})},[e.createElementVNode("button",{class:e.normalizeClass(["trigger",[a.status,{disabled:!t.disabled}]]),disabled:t.disabled,onClick:i},[e.createElementVNode("span",B,[e.renderSlot(l.$slots,"status-icon",{status:t.status},()=>[a.status==="thinking"?(e.openBlock(),e.createBlock(r,{key:0,class:"is-loading el-icon-center"},{default:e.withCtx(()=>[e.createVNode(e.unref(v))]),_:1})):e.createCommentVNode("",!0),a.status==="start"?(e.openBlock(),e.createBlock(r,{key:1,class:"el-icon-center start-color"},{default:e.withCtx(()=>[e.createVNode(e.unref(k))]),_:1})):e.createCommentVNode("",!0),a.status==="end"?(e.openBlock(),e.createBlock(r,{key:2,class:"el-icon-center end-color"},{default:e.withCtx(()=>[e.createVNode(e.unref(C))]),_:1})):e.createCommentVNode("",!0),a.status==="error"?(e.openBlock(),e.createBlock(r,{key:3,class:"el-icon-center error-color"},{default:e.withCtx(()=>[e.createVNode(e.unref(d))]),_:1})):e.createCommentVNode("",!0),a.status==="cancel"?(e.openBlock(),e.createBlock(r,{key:4,class:"el-icon-center cancel-color"},{default:e.withCtx(()=>[e.createVNode(e.unref(d))]),_:1})):e.createCommentVNode("",!0)],!0)]),e.createElementVNode("span",x,[e.renderSlot(l.$slots,"label",{status:t.status},()=>[e.createTextVNode(e.toDisplayString(a.status==="thinking"?"思考中...":a.status==="error"?"思考遇到问题":a.status==="end"?"思考完成":a.status==="cancel"?"中断思考":"开始思考"),1)],!0)]),e.createVNode(e.Transition,{name:"rotate"},{default:e.withCtx(()=>[t.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["arrow el-icon-center",{expanded:o.value}])},[e.renderSlot(l.$slots,"arrow",{},()=>[e.createVNode(r,{class:"el-icon-center"},{default:e.withCtx(()=>[e.createVNode(e.unref(f))]),_:1})],!0)],2))]),_:3})],10,V),e.createVNode(e.Transition,{name:"slide"},{default:e.withCtx(()=>[c.value?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["content-wrapper",{"error-state":a.status==="error"}])},[e.createElementVNode("div",N,[a.status!=="error"?e.renderSlot(l.$slots,"content",{content:c.value},()=>[e.createElementVNode("pre",null,e.toDisplayString(c.value),1)],!0,0):e.renderSlot(l.$slots,"error",{errorContent:c.value},()=>[e.createElementVNode("div",b,e.toDisplayString(c.value),1)],!0,1)])],2)),[[e.vShow,o.value]]):e.createCommentVNode("",!0)]),_:3})],4)}}}),u=m._export_sfc(E,[["__scopeId","data-v-1247234a"]]);exports.Thinking=u;exports.default=u;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as f, openBlock as a, createElementBlock as c, createElementVNode as l, ref as y, watch as k, computed as L, resolveComponent as V, normalizeStyle as B, normalizeClass as w, renderSlot as p, createBlock as v, withCtx as r, createVNode as n, unref as m, createCommentVNode as u, createTextVNode as M, toDisplayString as g, Transition as x, withDirectives as z, vShow as S } from "vue";
|
|
2
2
|
import { _ as $ } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
-
var E = /* @__PURE__ */
|
|
3
|
+
var E = /* @__PURE__ */ f({
|
|
4
4
|
name: "ArrowUpBold",
|
|
5
5
|
__name: "arrow-up-bold",
|
|
6
|
-
setup(
|
|
7
|
-
return (i, e) => (a(),
|
|
6
|
+
setup(t) {
|
|
7
|
+
return (i, e) => (a(), c("svg", {
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9
9
|
viewBox: "0 0 1024 1024"
|
|
10
10
|
}, [
|
|
11
11
|
l("path", {
|
|
12
12
|
fill: "currentColor",
|
|
13
|
-
d: "M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.
|
|
13
|
+
d: "M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496"
|
|
14
14
|
})
|
|
15
15
|
]));
|
|
16
16
|
}
|
|
17
|
-
}), N = E, W = /* @__PURE__ */
|
|
17
|
+
}), N = E, W = /* @__PURE__ */ f({
|
|
18
18
|
name: "CircleCloseFilled",
|
|
19
19
|
__name: "circle-close-filled",
|
|
20
|
-
setup(
|
|
21
|
-
return (i, e) => (a(),
|
|
20
|
+
setup(t) {
|
|
21
|
+
return (i, e) => (a(), c("svg", {
|
|
22
22
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23
23
|
viewBox: "0 0 1024 1024"
|
|
24
24
|
}, [
|
|
@@ -28,50 +28,50 @@ var E = /* @__PURE__ */ p({
|
|
|
28
28
|
})
|
|
29
29
|
]));
|
|
30
30
|
}
|
|
31
|
-
}),
|
|
31
|
+
}), C = W, H = /* @__PURE__ */ f({
|
|
32
32
|
name: "Loading",
|
|
33
33
|
__name: "loading",
|
|
34
|
-
setup(
|
|
35
|
-
return (i, e) => (a(),
|
|
34
|
+
setup(t) {
|
|
35
|
+
return (i, e) => (a(), c("svg", {
|
|
36
36
|
xmlns: "http://www.w3.org/2000/svg",
|
|
37
37
|
viewBox: "0 0 1024 1024"
|
|
38
38
|
}, [
|
|
39
39
|
l("path", {
|
|
40
40
|
fill: "currentColor",
|
|
41
|
-
d: "M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.
|
|
41
|
+
d: "M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"
|
|
42
42
|
})
|
|
43
43
|
]));
|
|
44
44
|
}
|
|
45
|
-
}), T = H, A = /* @__PURE__ */
|
|
45
|
+
}), T = H, A = /* @__PURE__ */ f({
|
|
46
46
|
name: "Opportunity",
|
|
47
47
|
__name: "opportunity",
|
|
48
|
-
setup(
|
|
49
|
-
return (i, e) => (a(),
|
|
48
|
+
setup(t) {
|
|
49
|
+
return (i, e) => (a(), c("svg", {
|
|
50
50
|
xmlns: "http://www.w3.org/2000/svg",
|
|
51
51
|
viewBox: "0 0 1024 1024"
|
|
52
52
|
}, [
|
|
53
53
|
l("path", {
|
|
54
54
|
fill: "currentColor",
|
|
55
|
-
d: "M384 960v-64h192.064v64zm448-544a350.
|
|
55
|
+
d: "M384 960v-64h192.064v64zm448-544a350.66 350.66 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.55 351.55 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416m-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288z"
|
|
56
56
|
})
|
|
57
57
|
]));
|
|
58
58
|
}
|
|
59
|
-
}), D = A, F = /* @__PURE__ */
|
|
59
|
+
}), D = A, F = /* @__PURE__ */ f({
|
|
60
60
|
name: "SuccessFilled",
|
|
61
61
|
__name: "success-filled",
|
|
62
|
-
setup(
|
|
63
|
-
return (i, e) => (a(),
|
|
62
|
+
setup(t) {
|
|
63
|
+
return (i, e) => (a(), c("svg", {
|
|
64
64
|
xmlns: "http://www.w3.org/2000/svg",
|
|
65
65
|
viewBox: "0 0 1024 1024"
|
|
66
66
|
}, [
|
|
67
67
|
l("path", {
|
|
68
68
|
fill: "currentColor",
|
|
69
|
-
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.
|
|
69
|
+
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
|
|
70
70
|
})
|
|
71
71
|
]));
|
|
72
72
|
}
|
|
73
73
|
}), I = F;
|
|
74
|
-
const O = ["disabled"], U = { class: "status-icon" }, j = { class: "label" }, q = { class: "content" }, G = { class: "error-message" }, J = /* @__PURE__ */
|
|
74
|
+
const O = ["disabled"], U = { class: "status-icon" }, j = { class: "label" }, q = { class: "content" }, G = { class: "error-message" }, J = /* @__PURE__ */ f({
|
|
75
75
|
__name: "index",
|
|
76
76
|
props: {
|
|
77
77
|
modelValue: { type: Boolean, default: !0 },
|
|
@@ -86,28 +86,28 @@ const O = ["disabled"], U = { class: "status-icon" }, j = { class: "label" }, q
|
|
|
86
86
|
color: { default: "var(--el-color-info)" }
|
|
87
87
|
},
|
|
88
88
|
emits: ["change", "update:modelValue"],
|
|
89
|
-
setup(
|
|
90
|
-
const e =
|
|
89
|
+
setup(t, { emit: i }) {
|
|
90
|
+
const e = t, h = i, s = y(e.modelValue);
|
|
91
91
|
k(
|
|
92
92
|
() => e.modelValue,
|
|
93
|
-
(
|
|
94
|
-
s.value =
|
|
93
|
+
(o) => {
|
|
94
|
+
s.value = o;
|
|
95
95
|
}
|
|
96
96
|
);
|
|
97
|
-
function
|
|
97
|
+
function b() {
|
|
98
98
|
e.disabled || (s.value = !s.value, h("change", { value: s.value, status: e.status }), h("update:modelValue", s.value));
|
|
99
99
|
}
|
|
100
|
-
const
|
|
100
|
+
const _ = L(() => e.status === "error" ? "思考过程中出现错误" : e.content);
|
|
101
101
|
return k(
|
|
102
102
|
() => e.status,
|
|
103
|
-
(
|
|
104
|
-
|
|
103
|
+
(o) => {
|
|
104
|
+
o === "end" && e.autoCollapse && (s.value = !1, h("update:modelValue", s.value));
|
|
105
105
|
}
|
|
106
|
-
), (
|
|
107
|
-
const d =
|
|
108
|
-
return a(),
|
|
106
|
+
), (o, K) => {
|
|
107
|
+
const d = V("el-icon");
|
|
108
|
+
return a(), c("div", {
|
|
109
109
|
class: "el-thinking",
|
|
110
|
-
style:
|
|
110
|
+
style: B({
|
|
111
111
|
"--el-thinking-button-width": e.buttonWidth,
|
|
112
112
|
"--el-thinking-animation-duration": e.duration,
|
|
113
113
|
"--el-thinking-content-wrapper-width": e.maxWidth,
|
|
@@ -116,78 +116,78 @@ const O = ["disabled"], U = { class: "status-icon" }, j = { class: "label" }, q
|
|
|
116
116
|
})
|
|
117
117
|
}, [
|
|
118
118
|
l("button", {
|
|
119
|
-
class:
|
|
119
|
+
class: w(["trigger", [t.status, { disabled: !e.disabled }]]),
|
|
120
120
|
disabled: e.disabled,
|
|
121
|
-
onClick:
|
|
121
|
+
onClick: b
|
|
122
122
|
}, [
|
|
123
123
|
l("span", U, [
|
|
124
|
-
|
|
124
|
+
p(o.$slots, "status-icon", {
|
|
125
125
|
status: e.status
|
|
126
126
|
}, () => [
|
|
127
|
-
t.status === "thinking" ? (a(),
|
|
127
|
+
t.status === "thinking" ? (a(), v(d, {
|
|
128
128
|
key: 0,
|
|
129
129
|
class: "is-loading el-icon-center"
|
|
130
130
|
}, {
|
|
131
131
|
default: r(() => [
|
|
132
|
-
|
|
132
|
+
n(m(T))
|
|
133
133
|
]),
|
|
134
134
|
_: 1
|
|
135
135
|
})) : u("", !0),
|
|
136
|
-
t.status === "start" ? (a(),
|
|
136
|
+
t.status === "start" ? (a(), v(d, {
|
|
137
137
|
key: 1,
|
|
138
138
|
class: "el-icon-center start-color"
|
|
139
139
|
}, {
|
|
140
140
|
default: r(() => [
|
|
141
|
-
|
|
141
|
+
n(m(D))
|
|
142
142
|
]),
|
|
143
143
|
_: 1
|
|
144
144
|
})) : u("", !0),
|
|
145
|
-
t.status === "end" ? (a(),
|
|
145
|
+
t.status === "end" ? (a(), v(d, {
|
|
146
146
|
key: 2,
|
|
147
147
|
class: "el-icon-center end-color"
|
|
148
148
|
}, {
|
|
149
149
|
default: r(() => [
|
|
150
|
-
|
|
150
|
+
n(m(I))
|
|
151
151
|
]),
|
|
152
152
|
_: 1
|
|
153
153
|
})) : u("", !0),
|
|
154
|
-
t.status === "error" ? (a(),
|
|
154
|
+
t.status === "error" ? (a(), v(d, {
|
|
155
155
|
key: 3,
|
|
156
156
|
class: "el-icon-center error-color"
|
|
157
157
|
}, {
|
|
158
158
|
default: r(() => [
|
|
159
|
-
|
|
159
|
+
n(m(C))
|
|
160
160
|
]),
|
|
161
161
|
_: 1
|
|
162
162
|
})) : u("", !0),
|
|
163
|
-
t.status === "cancel" ? (a(),
|
|
163
|
+
t.status === "cancel" ? (a(), v(d, {
|
|
164
164
|
key: 4,
|
|
165
165
|
class: "el-icon-center cancel-color"
|
|
166
166
|
}, {
|
|
167
167
|
default: r(() => [
|
|
168
|
-
|
|
168
|
+
n(m(C))
|
|
169
169
|
]),
|
|
170
170
|
_: 1
|
|
171
171
|
})) : u("", !0)
|
|
172
172
|
], !0)
|
|
173
173
|
]),
|
|
174
174
|
l("span", j, [
|
|
175
|
-
|
|
175
|
+
p(o.$slots, "label", {
|
|
176
176
|
status: e.status
|
|
177
177
|
}, () => [
|
|
178
|
-
|
|
178
|
+
M(g(t.status === "thinking" ? "思考中..." : t.status === "error" ? "思考遇到问题" : t.status === "end" ? "思考完成" : t.status === "cancel" ? "中断思考" : "开始思考"), 1)
|
|
179
179
|
], !0)
|
|
180
180
|
]),
|
|
181
|
-
|
|
181
|
+
n(x, { name: "rotate" }, {
|
|
182
182
|
default: r(() => [
|
|
183
|
-
e.disabled ? u("", !0) : (a(),
|
|
183
|
+
e.disabled ? u("", !0) : (a(), c("span", {
|
|
184
184
|
key: 0,
|
|
185
|
-
class:
|
|
185
|
+
class: w(["arrow el-icon-center", { expanded: s.value }])
|
|
186
186
|
}, [
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
p(o.$slots, "arrow", {}, () => [
|
|
188
|
+
n(d, { class: "el-icon-center" }, {
|
|
189
189
|
default: r(() => [
|
|
190
|
-
|
|
190
|
+
n(m(N))
|
|
191
191
|
]),
|
|
192
192
|
_: 1
|
|
193
193
|
})
|
|
@@ -197,24 +197,18 @@ const O = ["disabled"], U = { class: "status-icon" }, j = { class: "label" }, q
|
|
|
197
197
|
_: 3
|
|
198
198
|
})
|
|
199
199
|
], 10, O),
|
|
200
|
-
|
|
200
|
+
n(x, { name: "slide" }, {
|
|
201
201
|
default: r(() => [
|
|
202
|
-
|
|
202
|
+
_.value ? z((a(), c("div", {
|
|
203
203
|
key: 0,
|
|
204
|
-
class:
|
|
204
|
+
class: w(["content-wrapper", { "error-state": t.status === "error" }])
|
|
205
205
|
}, [
|
|
206
206
|
l("div", q, [
|
|
207
|
-
t.status !== "error" ?
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
], !0) : f(t.$slots, "error", {
|
|
213
|
-
key: 1,
|
|
214
|
-
errorContent: v.value
|
|
215
|
-
}, () => [
|
|
216
|
-
l("div", G, w(v.value), 1)
|
|
217
|
-
], !0)
|
|
207
|
+
t.status !== "error" ? p(o.$slots, "content", { content: _.value }, () => [
|
|
208
|
+
l("pre", null, g(_.value), 1)
|
|
209
|
+
], !0, 0) : p(o.$slots, "error", { errorContent: _.value }, () => [
|
|
210
|
+
l("div", G, g(_.value), 1)
|
|
211
|
+
], !0, 1)
|
|
218
212
|
])
|
|
219
213
|
], 2)), [
|
|
220
214
|
[S, s.value]
|
|
@@ -225,7 +219,7 @@ const O = ["disabled"], U = { class: "status-icon" }, j = { class: "label" }, q
|
|
|
225
219
|
], 4);
|
|
226
220
|
};
|
|
227
221
|
}
|
|
228
|
-
}), R = /* @__PURE__ */ $(J, [["__scopeId", "data-v-
|
|
222
|
+
}), R = /* @__PURE__ */ $(J, [["__scopeId", "data-v-1247234a"]]);
|
|
229
223
|
export {
|
|
230
224
|
R as Thinking,
|
|
231
225
|
R as default
|
package/icons/end/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@vunk/plus/components/avatar"),e=require("vue"),s=require("element-plus"),l=require("../_plugin-vue_export-helper-BHFhmbuH.js"),u={},a={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"};function i(n,t){return e.openBlock(),e.createElementBlock("svg",a,t[0]||(t[0]=[e.createElementVNode("path",{fill:"currentColor",d:"M512 85.333c235.648 0 426.667 191.019 426.667 426.667S747.648 938.667 512 938.667 85.333 747.648 85.333 512 276.352 85.333 512 85.333zM512 170.667c-188.513 0-341.333 152.82-341.333 341.333 0 188.513 152.82 341.333 341.333 341.333 188.513 0 341.333-152.82 341.333-341.333 0-188.513-152.82-341.333-341.333-341.333z M512 256c141.385 0 256 114.615 256 256S653.385 768 512 768 256 653.385 256 512s114.615-256 256-256z"},null,-1)]))}const r=l._export_sfc(u,[["render",i]]),o=function(n){return e.h(s.ElIcon,n,()=>e.h(r))},d=function(n){return e.h(c.VkAvatar,{icon:o,shape:"square",size:"small",...n})};exports.VkEndAvatar=d;exports.VkEndIcon=o;exports.VkEndSvg=r;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@vunk/plus/components/avatar"),e=require("vue"),s=require("element-plus"),l=require("../_plugin-vue_export-helper-BHFhmbuH.js"),u={},a={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"};function i(n,t){return e.openBlock(),e.createElementBlock("svg",a,[...t[0]||(t[0]=[e.createElementVNode("path",{fill:"currentColor",d:"M512 85.333c235.648 0 426.667 191.019 426.667 426.667S747.648 938.667 512 938.667 85.333 747.648 85.333 512 276.352 85.333 512 85.333zM512 170.667c-188.513 0-341.333 152.82-341.333 341.333 0 188.513 152.82 341.333 341.333 341.333 188.513 0 341.333-152.82 341.333-341.333 0-188.513-152.82-341.333-341.333-341.333z M512 256c141.385 0 256 114.615 256 256S653.385 768 512 768 256 653.385 256 512s114.615-256 256-256z"},null,-1)])])}const r=l._export_sfc(u,[["render",i]]),o=function(n){return e.h(s.ElIcon,n,()=>e.h(r))},d=function(n){return e.h(c.VkAvatar,{icon:o,shape:"square",size:"small",...n})};exports.VkEndAvatar=d;exports.VkEndIcon=o;exports.VkEndSvg=r;
|
package/icons/end/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VkAvatar as t } from "@vunk/plus/components/avatar";
|
|
2
|
-
import {
|
|
2
|
+
import { openBlock as e, createElementBlock as c, createElementVNode as s, h as r } from "vue";
|
|
3
3
|
import { ElIcon as a } from "element-plus";
|
|
4
4
|
import { _ as i } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
5
5
|
const l = {}, m = {
|
|
@@ -7,12 +7,12 @@ const l = {}, m = {
|
|
|
7
7
|
viewBox: "0 0 1024 1024"
|
|
8
8
|
};
|
|
9
9
|
function f(o, n) {
|
|
10
|
-
return
|
|
10
|
+
return e(), c("svg", m, [...n[0] || (n[0] = [
|
|
11
11
|
s("path", {
|
|
12
12
|
fill: "currentColor",
|
|
13
13
|
d: "M512 85.333c235.648 0 426.667 191.019 426.667 426.667S747.648 938.667 512 938.667 85.333 747.648 85.333 512 276.352 85.333 512 85.333zM512 170.667c-188.513 0-341.333 152.82-341.333 341.333 0 188.513 152.82 341.333 341.333 341.333 188.513 0 341.333-152.82 341.333-341.333 0-188.513-152.82-341.333-341.333-341.333z M512 256c141.385 0 256 114.615 256 256S653.385 768 512 768 256 653.385 256 512s114.615-256 256-256z"
|
|
14
14
|
}, null, -1)
|
|
15
|
-
]));
|
|
15
|
+
])]);
|
|
16
16
|
}
|
|
17
17
|
const p = /* @__PURE__ */ i(l, [["render", f]]), u = function(o) {
|
|
18
18
|
return r(a, o, () => r(p));
|
package/icons/keyboard/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@vunk/plus/components/avatar"),e=require("vue"),o=require("element-plus"),a=require("../_plugin-vue_export-helper-BHFhmbuH.js"),l={},u={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"};function i(c,r){return e.openBlock(),e.createElementBlock("svg",u,r[0]||(r[0]=[e.createElementVNode("path",{fill:"currentColor",d:"M896 768H128c-35.2 0-64-28.8-64-64V320c0-35.2 28.8-64 64-64h768c35.2 0 64 28.8 64 64v384c0 35.2-28.8 64-64 64zM224 384c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zm128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zm128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zm128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zm128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zM224 480c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zm128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zm128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zm128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zm128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zM224 576c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zm512 0H288c-17.6 0-32 14.4-32 32s14.4 32 32 32h448c17.6 0 32-14.4 32-32s-14.4-32-32-32z"},null,-1)]))}const t=a._export_sfc(l,[["render",i]]),s=function(c){return e.h(o.ElIcon,c,()=>e.h(t))},m=function(c){return e.h(n.VkAvatar,{icon:s,shape:"square",size:"small",...c})};exports.VkKeyboardAvatar=m;exports.VkKeyboardIcon=s;exports.VkKeyboardSvg=t;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@vunk/plus/components/avatar"),e=require("vue"),o=require("element-plus"),a=require("../_plugin-vue_export-helper-BHFhmbuH.js"),l={},u={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"};function i(c,r){return e.openBlock(),e.createElementBlock("svg",u,[...r[0]||(r[0]=[e.createElementVNode("path",{fill:"currentColor",d:"M896 768H128c-35.2 0-64-28.8-64-64V320c0-35.2 28.8-64 64-64h768c35.2 0 64 28.8 64 64v384c0 35.2-28.8 64-64 64zM224 384c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zm128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zm128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zm128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zm128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zM224 480c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zm128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zm128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zm128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zm128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zM224 576c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zm512 0H288c-17.6 0-32 14.4-32 32s14.4 32 32 32h448c17.6 0 32-14.4 32-32s-14.4-32-32-32z"},null,-1)])])}const t=a._export_sfc(l,[["render",i]]),s=function(c){return e.h(o.ElIcon,c,()=>e.h(t))},m=function(c){return e.h(n.VkAvatar,{icon:s,shape:"square",size:"small",...c})};exports.VkKeyboardAvatar=m;exports.VkKeyboardIcon=s;exports.VkKeyboardSvg=t;
|