@talex-touch/tuffex 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -221
- package/dist/es/agents/index.js +1 -1
- package/dist/es/alert/index.d.ts +104 -1
- package/dist/es/alert/index.js +6 -0
- package/dist/es/alert/src/TxAlert.vue.d.ts +1 -0
- package/dist/es/alert/src/TxAlert.vue.js +2 -2
- package/dist/es/alert/src/TxAlert.vue2.js +6 -2
- package/dist/es/auto-sizer/index.js +1 -1
- package/dist/es/auto-sizer/src/TxAutoSizer.vue.js +2 -2
- package/dist/es/avatar/index.js +1 -1
- package/dist/es/avatar/src/TxAvatar.vue.js +1 -1
- package/dist/es/avatar/src/TxAvatar.vue2.js +47 -6
- package/dist/es/avatar/src/TxAvatarGroup.vue.js +1 -1
- package/dist/es/avatar/src/TxAvatarGroup.vue2.js +1 -1
- package/dist/es/avatar/src/types.d.ts +2 -1
- package/dist/es/badge/index.d.ts +78 -1
- package/dist/es/badge/index.js +6 -0
- package/dist/es/badge/src/TxBadge.vue.js +2 -2
- package/dist/es/base-anchor/index.d.ts +464 -0
- package/dist/es/base-anchor/index.js +6 -0
- package/dist/es/base-anchor/src/TxBaseAnchor.vue.d.ts +124 -0
- package/dist/es/base-anchor/src/TxBaseAnchor.vue.js +7 -0
- package/dist/es/base-anchor/src/TxBaseAnchor.vue2.js +798 -0
- package/dist/es/base-anchor/src/types.d.ts +36 -0
- package/dist/es/base-surface/index.d.ts +561 -0
- package/dist/es/base-surface/index.js +7 -0
- package/dist/es/base-surface/src/TxBaseSurface.vue.d.ts +123 -0
- package/dist/es/base-surface/src/TxBaseSurface.vue.js +1012 -0
- package/dist/es/base-surface/src/TxBaseSurface.vue2.js +6 -0
- package/dist/es/base-surface/src/style/index.css +105 -0
- package/dist/es/base-surface/src/types.d.ts +87 -0
- package/dist/es/blank-slate/index.d.ts +9 -9
- package/dist/es/blank-slate/index.js +1 -1
- package/dist/es/button/index.d.ts +45 -15
- package/dist/es/button/index.js +2 -1
- package/dist/es/button/src/button.vue.d.ts +7 -1
- package/dist/es/button/src/button.vue.js +50 -20
- package/dist/es/button/src/split-button.vue.js +31 -5
- package/dist/es/button/src/style/index.css +72 -15
- package/dist/es/button/src/types.d.ts +4 -0
- package/dist/es/card/index.d.ts +236 -56
- package/dist/es/card/index.js +1 -1
- package/dist/es/card/src/TxCard.vue.d.ts +40 -4
- package/dist/es/card/src/TxCard.vue.js +1 -1
- package/dist/es/card/src/TxCard.vue2.js +288 -57
- package/dist/es/card/src/types.d.ts +14 -1
- package/dist/es/card-item/index.d.ts +7 -7
- package/dist/es/card-item/index.js +1 -1
- package/dist/es/cascader/index.d.ts +15 -15
- package/dist/es/cascader/index.js +1 -1
- package/dist/es/cascader/src/TxCascader.vue.d.ts +1 -1
- package/dist/es/cascader/src/TxCascader.vue.js +1 -1
- package/dist/es/cascader/src/TxCascader.vue2.js +1 -3
- package/dist/es/chat/index.d.ts +18 -18
- package/dist/es/chat/index.js +1 -1
- package/dist/es/chat/src/TxChatComposer.vue.js +1 -1
- package/dist/es/chat/src/TxChatComposer.vue2.js +1 -0
- package/dist/es/chat/src/TxTypingIndicator.vue.d.ts +1 -1
- package/dist/es/code-editor/index.d.ts +387 -0
- package/dist/es/code-editor/index.js +8 -0
- package/dist/es/code-editor/src/TxCodeEditor.vue.d.ts +117 -0
- package/dist/es/code-editor/src/TxCodeEditor.vue.js +7 -0
- package/dist/es/code-editor/src/TxCodeEditor.vue2.js +658 -0
- package/dist/es/code-editor/src/TxCodeEditorToolbar.vue.d.ts +40 -0
- package/dist/es/code-editor/src/TxCodeEditorToolbar.vue.js +7 -0
- package/dist/es/code-editor/src/TxCodeEditorToolbar.vue2.js +89 -0
- package/dist/es/code-editor/src/types.d.ts +47 -0
- package/dist/es/command-palette/index.js +1 -1
- package/dist/es/command-palette/src/TxCommandPalette.vue.js +1 -1
- package/dist/es/command-palette/src/TxCommandPalette.vue2.js +128 -21
- package/dist/es/components.css +4253 -3117
- package/dist/es/components.d.ts +15 -2
- package/dist/es/components.js +44 -7
- package/dist/es/container/src/TxCol.vue.d.ts +1 -1
- package/dist/es/container/src/TxCol.vue2.js +1 -1
- package/dist/es/container/src/TxContainer.vue.d.ts +1 -1
- package/dist/es/container/src/TxRow.vue.d.ts +2 -2
- package/dist/es/container/src/TxRow.vue2.js +1 -1
- package/dist/es/context-menu/index.js +1 -1
- package/dist/es/context-menu/src/TxContextMenu.vue.js +1 -1
- package/dist/es/context-menu/src/TxContextMenu.vue2.js +4 -1
- package/dist/es/corner-overlay/index.js +1 -1
- package/dist/es/data-table/index.d.ts +15 -15
- package/dist/es/data-table/index.js +1 -1
- package/dist/es/data-table/src/TxDataTable.vue.d.ts +1 -1
- package/dist/es/date-picker/index.js +1 -1
- package/dist/es/dialog/index.js +1 -1
- package/dist/es/dialog/src/TxBlowDialog.vue.js +6 -2
- package/dist/es/dialog/src/TxBottomDialog.vue.js +1 -1
- package/dist/es/dialog/src/TxBottomDialog.vue2.js +6 -2
- package/dist/es/dialog/src/TxPopperDialog.vue.js +6 -2
- package/dist/es/dialog/src/TxTouchTip.vue.js +1 -1
- package/dist/es/dialog/src/TxTouchTip.vue2.js +25 -22
- package/dist/es/dialog/src/types.d.ts +1 -1
- package/dist/es/drawer/index.d.ts +24 -30
- package/dist/es/drawer/index.js +1 -1
- package/dist/es/drawer/src/TxDrawer.vue.d.ts +1 -4
- package/dist/es/drawer/src/TxDrawer.vue.js +8 -2
- package/dist/es/dropdown-menu/index.d.ts +81 -18
- package/dist/es/dropdown-menu/index.js +1 -1
- package/dist/es/dropdown-menu/src/TxDropdownMenu.vue.d.ts +11 -2
- package/dist/es/dropdown-menu/src/TxDropdownMenu.vue.js +1 -1
- package/dist/es/dropdown-menu/src/TxDropdownMenu.vue2.js +13 -3
- package/dist/es/dropdown-menu/src/types.d.ts +8 -1
- package/dist/es/edge-fade-mask/index.d.ts +120 -0
- package/dist/es/edge-fade-mask/index.js +6 -0
- package/dist/es/edge-fade-mask/src/TxEdgeFadeMask.vue.d.ts +51 -0
- package/dist/es/edge-fade-mask/src/TxEdgeFadeMask.vue.js +7 -0
- package/dist/es/edge-fade-mask/src/TxEdgeFadeMask.vue2.js +154 -0
- package/dist/es/edge-fade-mask/src/types.d.ts +9 -0
- package/dist/es/empty/index.js +1 -1
- package/dist/es/empty-state/index.d.ts +9 -9
- package/dist/es/empty-state/index.js +1 -1
- package/dist/es/empty-state/src/TxEmptyState.vue.js +1 -1
- package/dist/es/empty-state/src/TxEmptyState.vue2.js +25 -17
- package/dist/es/error-state/index.d.ts +131 -0
- package/dist/es/error-state/index.js +6 -0
- package/dist/es/error-state/src/TxErrorState.vue.d.ts +13 -0
- package/dist/es/error-state/src/TxErrorState.vue.js +35 -0
- package/dist/es/error-state/src/TxErrorState.vue2.js +5 -0
- package/dist/es/error-state/src/types.d.ts +3 -0
- package/dist/es/file-uploader/index.js +1 -1
- package/dist/es/flat-radio/index.d.ts +201 -0
- package/dist/es/flat-radio/index.js +8 -0
- package/dist/es/flat-radio/src/TxFlatRadio.vue.d.ts +51 -0
- package/dist/es/flat-radio/src/TxFlatRadio.vue.js +7 -0
- package/dist/es/flat-radio/src/TxFlatRadio.vue2.js +237 -0
- package/dist/es/flat-radio/src/TxFlatRadioItem.vue.d.ts +43 -0
- package/dist/es/flat-radio/src/TxFlatRadioItem.vue.js +7 -0
- package/dist/es/flat-radio/src/TxFlatRadioItem.vue2.js +87 -0
- package/dist/es/flat-radio/src/types.d.ts +28 -0
- package/dist/es/flat-radio/src/types.js +3 -0
- package/dist/es/flat-select/index.d.ts +159 -0
- package/dist/es/flat-select/index.js +8 -0
- package/dist/es/flat-select/src/TxFlatSelect.vue.d.ts +56 -0
- package/dist/es/flat-select/src/TxFlatSelect.vue.js +7 -0
- package/dist/es/flat-select/src/TxFlatSelect.vue2.js +208 -0
- package/dist/es/flat-select/src/TxFlatSelectItem.vue.d.ts +47 -0
- package/dist/es/flat-select/src/TxFlatSelectItem.vue.js +7 -0
- package/dist/es/flat-select/src/TxFlatSelectItem.vue2.js +71 -0
- package/dist/es/flat-select/src/types.d.ts +21 -0
- package/dist/es/flat-select/src/types.js +3 -0
- package/dist/es/flex/index.d.ts +33 -33
- package/dist/es/flex/index.js +1 -1
- package/dist/es/flex/src/TxFlex.vue.d.ts +3 -3
- package/dist/es/flip-overlay/index.d.ts +579 -0
- package/dist/es/flip-overlay/index.js +7 -0
- package/dist/es/flip-overlay/src/TxFlipOverlay.vue.d.ts +175 -0
- package/dist/es/flip-overlay/src/TxFlipOverlay.vue.js +982 -0
- package/dist/es/flip-overlay/src/TxFlipOverlay.vue3.js +6 -0
- package/dist/es/flip-overlay/src/types.d.ts +53 -0
- package/dist/es/floating/index.d.ts +145 -0
- package/dist/es/floating/index.js +8 -0
- package/dist/es/floating/src/TxFloating.vue.d.ts +45 -0
- package/dist/es/floating/src/TxFloating.vue.js +7 -0
- package/dist/es/floating/src/TxFloating.vue2.js +118 -0
- package/dist/es/floating/src/TxFloatingElement.vue.d.ts +39 -0
- package/dist/es/floating/src/TxFloatingElement.vue.js +7 -0
- package/dist/es/floating/src/TxFloatingElement.vue2.js +43 -0
- package/dist/es/floating/src/context.d.ts +7 -0
- package/dist/es/floating/src/context.js +3 -0
- package/dist/es/floating/src/types.d.ts +10 -0
- package/dist/es/form/index.d.ts +9 -9
- package/dist/es/form/index.js +1 -1
- package/dist/es/fusion/index.d.ts +15 -15
- package/dist/es/fusion/index.js +1 -1
- package/dist/es/fusion/src/TxFusion.vue.d.ts +1 -1
- package/dist/es/glass-surface/index.d.ts +30 -30
- package/dist/es/glass-surface/index.js +1 -1
- package/dist/es/glass-surface/src/TxGlassSurface.vue.d.ts +2 -2
- package/dist/es/glass-surface/src/TxGlassSurface.vue.js +16 -38
- package/dist/es/glow-text/index.d.ts +24 -6
- package/dist/es/glow-text/index.js +1 -1
- package/dist/es/glow-text/src/TxGlowText.vue.d.ts +3 -3
- package/dist/es/glow-text/src/TxGlowText.vue.js +1 -1
- package/dist/es/glow-text/src/TxGlowText.vue2.js +93 -10
- package/dist/es/glow-text/src/types.d.ts +2 -0
- package/dist/es/gradient-border/index.js +1 -1
- package/dist/es/gradual-blur/index.d.ts +42 -42
- package/dist/es/gradual-blur/index.js +1 -1
- package/dist/es/gradual-blur/src/TxGradualBlur.vue.d.ts +3 -3
- package/dist/es/gradual-blur/src/TxGradualBlur.vue.js +1 -1
- package/dist/es/grid/src/TxGrid.vue.d.ts +2 -2
- package/dist/es/grid/src/TxGrid.vue2.js +1 -1
- package/dist/es/grid-layout/index.js +1 -1
- package/dist/es/group-block/index.d.ts +321 -4
- package/dist/es/group-block/index.js +8 -2
- package/dist/es/group-block/src/TxBlockInput.vue.d.ts +90 -0
- package/dist/es/group-block/src/TxBlockInput.vue.js +94 -0
- package/dist/es/group-block/src/TxBlockInput.vue3.js +6 -0
- package/dist/es/group-block/src/TxBlockSelect.vue.d.ts +73 -0
- package/dist/es/group-block/src/TxBlockSelect.vue.js +76 -0
- package/dist/es/group-block/src/TxBlockSelect.vue3.js +6 -0
- package/dist/es/group-block/src/TxGroupBlock.vue.js +1 -1
- package/dist/es/group-block/src/types.d.ts +138 -0
- package/dist/es/guide-state/index.d.ts +131 -0
- package/dist/es/guide-state/index.js +6 -0
- package/dist/es/guide-state/src/TxGuideState.vue.d.ts +13 -0
- package/dist/es/guide-state/src/TxGuideState.vue.js +35 -0
- package/dist/es/guide-state/src/TxGuideState.vue2.js +5 -0
- package/dist/es/guide-state/src/types.d.ts +3 -0
- package/dist/es/icon/index.js +1 -1
- package/dist/es/icon/src/TxIcon.vue.js +1 -1
- package/dist/es/icon/src/TxIcon.vue2.js +10 -4
- package/dist/es/image-gallery/index.js +1 -1
- package/dist/es/image-uploader/index.js +1 -1
- package/dist/es/index.js +53 -13
- package/dist/es/input/index.d.ts +211 -1
- package/dist/es/input/index.js +2 -1
- package/dist/es/input/src/TxInput.vue.d.ts +21 -11
- package/dist/es/input/src/TxInput.vue.js +1 -1
- package/dist/es/input/src/TxInput.vue2.js +80 -23
- package/dist/es/keyframe-stroke-text/index.d.ts +146 -0
- package/dist/es/keyframe-stroke-text/index.js +6 -0
- package/dist/es/keyframe-stroke-text/src/TxKeyframeStrokeText.vue.d.ts +48 -0
- package/dist/es/keyframe-stroke-text/src/TxKeyframeStrokeText.vue.js +7 -0
- package/dist/es/keyframe-stroke-text/src/TxKeyframeStrokeText.vue2.js +102 -0
- package/dist/es/keyframe-stroke-text/src/types.d.ts +10 -0
- package/dist/es/layout-skeleton/index.js +1 -1
- package/dist/es/loading-overlay/index.d.ts +15 -15
- package/dist/es/loading-overlay/index.js +1 -1
- package/dist/es/loading-overlay/src/TxLoadingOverlay.vue.d.ts +1 -1
- package/dist/es/loading-overlay/src/TxLoadingOverlay.vue.js +12 -2
- package/dist/es/loading-state/index.d.ts +9 -9
- package/dist/es/loading-state/index.js +1 -1
- package/dist/es/markdown-view/index.d.ts +3 -3
- package/dist/es/markdown-view/index.js +1 -1
- package/dist/es/markdown-view/src/TxMarkdownView.vue.js +3 -2
- package/dist/es/modal/index.js +1 -1
- package/dist/es/modal/src/TxModal.vue.js +1 -1
- package/dist/es/modal/src/TxModal.vue2.js +26 -4
- package/dist/es/nav-bar/index.js +1 -1
- package/dist/es/no-data/index.d.ts +9 -9
- package/dist/es/no-data/index.js +1 -1
- package/dist/es/no-selection/index.d.ts +9 -9
- package/dist/es/no-selection/index.js +1 -1
- package/dist/es/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/properties.js +62 -0
- package/dist/es/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/toml.js +76 -0
- package/dist/es/node_modules/.pnpm/@lezer_common@1.5.0/node_modules/@lezer/common/dist/index.js +252 -0
- package/dist/es/node_modules/.pnpm/@lezer_highlight@1.2.3/node_modules/@lezer/highlight/dist/index.js +682 -0
- package/dist/es/offline-state/index.d.ts +9 -9
- package/dist/es/offline-state/index.js +1 -1
- package/dist/es/outline-border/index.d.ts +18 -18
- package/dist/es/outline-border/index.js +1 -1
- package/dist/es/outline-border/src/TxOutlineBorder.vue.d.ts +1 -1
- package/dist/es/{utils → packages/tuffex/packages/utils}/toast.js +4 -1
- package/dist/es/packages/tuffex/packages/utils/z-index-manager.js +114 -0
- package/dist/es/packages/utils/env/index.js +8 -0
- package/dist/es/permission-state/index.d.ts +9 -9
- package/dist/es/permission-state/index.js +1 -1
- package/dist/es/picker/index.js +1 -1
- package/dist/es/picker/src/TxPicker.vue.js +1 -1
- package/dist/es/picker/src/TxPicker.vue2.js +6 -1
- package/dist/es/popover/index.d.ts +195 -82
- package/dist/es/popover/index.js +1 -1
- package/dist/es/popover/src/TxPopover.vue.d.ts +33 -16
- package/dist/es/popover/src/TxPopover.vue.js +1 -1
- package/dist/es/popover/src/TxPopover.vue2.js +147 -317
- package/dist/es/popover/src/types.d.ts +14 -3
- package/dist/es/progress-bar/index.d.ts +21 -21
- package/dist/es/progress-bar/index.js +1 -1
- package/dist/es/progress-bar/src/TxProgressBar.vue.d.ts +1 -1
- package/dist/es/radio/index.js +1 -1
- package/dist/es/radio/src/TxRadioGroup.vue2.js +1 -1
- package/dist/es/scroll/index.d.ts +42 -12
- package/dist/es/scroll/index.js +1 -1
- package/dist/es/scroll/src/TxScroll.vue.d.ts +11 -1
- package/dist/es/scroll/src/TxScroll.vue.js +1 -1
- package/dist/es/scroll/src/TxScroll.vue2.js +25 -13
- package/dist/es/scroll/src/runtime-capabilities.d.ts +2 -0
- package/dist/es/scroll/src/runtime-capabilities.js +67 -0
- package/dist/es/search-empty/index.d.ts +9 -9
- package/dist/es/search-empty/index.js +1 -1
- package/dist/es/search-input/index.js +1 -1
- package/dist/es/search-select/index.d.ts +9 -9
- package/dist/es/search-select/index.js +1 -1
- package/dist/es/search-select/src/TxSearchSelect.vue.d.ts +1 -1
- package/dist/es/search-select/src/TxSearchSelect.vue.js +1 -1
- package/dist/es/search-select/src/TxSearchSelect.vue2.js +105 -178
- package/dist/es/search-select/src/types.d.ts +1 -1
- package/dist/es/segmented-slider/index.js +1 -1
- package/dist/es/segmented-slider/src/TxSegmentedSlider.vue.js +1 -0
- package/dist/es/select/index.d.ts +366 -4
- package/dist/es/select/index.js +6 -9
- package/dist/es/select/src/TxSelect.vue.d.ts +23 -23
- package/dist/es/select/src/TxSelect.vue.js +2 -2
- package/dist/es/select/src/TxSelect.vue2.js +203 -152
- package/dist/es/select/src/TxSelectItem.vue.js +2 -2
- package/dist/es/select/src/TxSelectItem.vue2.js +44 -7
- package/dist/es/select/src/types.d.ts +34 -0
- package/dist/es/select/src/types.js +3 -0
- package/dist/es/skeleton/index.d.ts +7 -7
- package/dist/es/skeleton/index.js +1 -1
- package/dist/es/slider/index.d.ts +4 -4
- package/dist/es/slider/index.js +1 -1
- package/dist/es/sortable-list/index.js +1 -1
- package/dist/es/sortable-list/src/TxSortableList.vue.js +1 -1
- package/dist/es/sortable-list/src/TxSortableList.vue2.js +1 -1
- package/dist/es/spinner/index.d.ts +1 -1
- package/dist/es/spinner/index.js +1 -1
- package/dist/es/splitter/index.d.ts +15 -15
- package/dist/es/splitter/index.js +1 -1
- package/dist/es/splitter/src/TxSplitter.vue.d.ts +1 -1
- package/dist/es/stack/index.d.ts +33 -33
- package/dist/es/stack/index.js +1 -1
- package/dist/es/stack/src/TxStack.vue.d.ts +3 -3
- package/dist/es/stagger/index.d.ts +15 -15
- package/dist/es/stagger/index.js +1 -1
- package/dist/es/stagger/src/TxStagger.vue.d.ts +1 -1
- package/dist/es/stat-card/index.d.ts +46 -3
- package/dist/es/stat-card/index.js +1 -1
- package/dist/es/stat-card/src/TxStatCard.vue.d.ts +5 -1
- package/dist/es/stat-card/src/TxStatCard.vue.js +1 -1
- package/dist/es/stat-card/src/TxStatCard.vue2.js +247 -19
- package/dist/es/stat-card/src/types.d.ts +15 -0
- package/dist/es/status-badge/index.js +1 -1
- package/dist/es/switch/index.js +1 -0
- package/dist/es/tab-bar/index.d.ts +15 -15
- package/dist/es/tab-bar/index.js +1 -1
- package/dist/es/tab-bar/src/TxTabBar.vue.d.ts +1 -1
- package/dist/es/tabs/index.d.ts +18 -3
- package/dist/es/tabs/index.js +1 -1
- package/dist/es/tabs/src/TxTabs.vue.d.ts +10 -1
- package/dist/es/tabs/src/TxTabs.vue.js +1 -1
- package/dist/es/tabs/src/TxTabs.vue2.js +3 -1
- package/dist/es/tabs/src/types.d.ts +1 -0
- package/dist/es/tag/index.js +1 -1
- package/dist/es/tag-input/index.js +1 -1
- package/dist/es/text-transformer/index.d.ts +1 -1
- package/dist/es/text-transformer/index.js +1 -1
- package/dist/es/toast/index.js +1 -1
- package/dist/es/toast/src/TxToastHost.vue.js +18 -17
- package/dist/es/tooltip/index.d.ts +75 -178
- package/dist/es/tooltip/index.js +1 -1
- package/dist/es/tooltip/src/TxTooltip.vue.d.ts +21 -40
- package/dist/es/tooltip/src/TxTooltip.vue.js +1 -1
- package/dist/es/tooltip/src/TxTooltip.vue2.js +102 -350
- package/dist/es/tooltip/src/types.d.ts +8 -13
- package/dist/es/transfer/index.d.ts +131 -0
- package/dist/es/transfer/index.js +6 -0
- package/dist/es/transfer/src/TxTransfer.vue.d.ts +48 -0
- package/dist/es/transfer/src/TxTransfer.vue.js +7 -0
- package/dist/es/transfer/src/TxTransfer.vue2.js +217 -0
- package/dist/es/transfer/src/types.d.ts +17 -0
- package/dist/es/transition/index.d.ts +30 -30
- package/dist/es/transition/index.js +1 -1
- package/dist/es/transition/src/TxTransition.vue.d.ts +1 -1
- package/dist/es/transition/src/TxTransitionSmoothSize.vue.d.ts +1 -1
- package/dist/es/tree/index.d.ts +15 -15
- package/dist/es/tree/index.js +1 -1
- package/dist/es/tree/src/TxTree.vue.d.ts +1 -1
- package/dist/es/tree/src/TxTree.vue.js +1 -1
- package/dist/es/tree/src/TxTree.vue2.js +3 -2
- package/dist/es/tree/src/types.d.ts +1 -0
- package/dist/es/tree-select/index.d.ts +9 -9
- package/dist/es/tree-select/index.js +1 -1
- package/dist/es/tree-select/src/TxTreeSelect.vue.d.ts +1 -1
- package/dist/es/tree-select/src/TxTreeSelect.vue.js +1 -1
- package/dist/es/tree-select/src/TxTreeSelect.vue2.js +0 -2
- package/dist/es/tuff-logo-stroke/index.d.ts +146 -0
- package/dist/es/tuff-logo-stroke/index.js +6 -0
- package/dist/es/tuff-logo-stroke/src/TxTuffLogoStroke.vue.d.ts +48 -0
- package/dist/es/tuff-logo-stroke/src/TxTuffLogoStroke.vue.js +7 -0
- package/dist/es/tuff-logo-stroke/src/TxTuffLogoStroke.vue2.js +147 -0
- package/dist/es/tuff-logo-stroke/src/types.d.ts +10 -0
- package/dist/es/virtual-list/index.js +1 -1
- package/dist/lib/agents/index.js +1 -1
- package/dist/lib/alert/index.js +11 -0
- package/dist/lib/alert/src/TxAlert.vue.js +2 -2
- package/dist/lib/alert/src/TxAlert.vue2.js +5 -1
- package/dist/lib/auto-sizer/index.js +1 -1
- package/dist/lib/auto-sizer/src/TxAutoSizer.vue.js +2 -2
- package/dist/lib/avatar/index.js +1 -1
- package/dist/lib/avatar/src/TxAvatar.vue.js +1 -1
- package/dist/lib/avatar/src/TxAvatar.vue2.js +47 -6
- package/dist/lib/avatar/src/TxAvatarGroup.vue.js +1 -1
- package/dist/lib/avatar/src/TxAvatarGroup.vue2.js +1 -1
- package/dist/lib/badge/index.js +11 -0
- package/dist/lib/badge/src/TxBadge.vue.js +2 -2
- package/dist/lib/base-anchor/index.js +12 -0
- package/dist/lib/base-anchor/src/TxBaseAnchor.vue.js +11 -0
- package/dist/lib/base-anchor/src/TxBaseAnchor.vue2.js +802 -0
- package/dist/lib/base-surface/index.js +13 -0
- package/dist/lib/base-surface/src/TxBaseSurface.vue.js +1016 -0
- package/dist/lib/base-surface/src/TxBaseSurface.vue2.js +10 -0
- package/dist/lib/base-surface/src/style/index.css +105 -0
- package/dist/lib/blank-slate/index.js +1 -1
- package/dist/lib/button/index.js +2 -1
- package/dist/lib/button/src/button.vue.js +49 -19
- package/dist/lib/button/src/split-button.vue.js +30 -4
- package/dist/lib/button/src/style/index.css +72 -15
- package/dist/lib/card/index.js +1 -1
- package/dist/lib/card/src/TxCard.vue.js +1 -1
- package/dist/lib/card/src/TxCard.vue2.js +285 -54
- package/dist/lib/card-item/index.js +1 -1
- package/dist/lib/cascader/index.js +1 -1
- package/dist/lib/cascader/src/TxCascader.vue.js +1 -1
- package/dist/lib/cascader/src/TxCascader.vue2.js +1 -3
- package/dist/lib/chat/index.js +1 -1
- package/dist/lib/chat/src/TxChatComposer.vue.js +1 -1
- package/dist/lib/chat/src/TxChatComposer.vue2.js +1 -0
- package/dist/lib/code-editor/index.js +16 -0
- package/dist/lib/code-editor/src/TxCodeEditor.vue.js +11 -0
- package/dist/lib/code-editor/src/TxCodeEditor.vue2.js +662 -0
- package/dist/lib/code-editor/src/TxCodeEditorToolbar.vue.js +11 -0
- package/dist/lib/code-editor/src/TxCodeEditorToolbar.vue2.js +93 -0
- package/dist/lib/command-palette/index.js +1 -1
- package/dist/lib/command-palette/src/TxCommandPalette.vue.js +1 -1
- package/dist/lib/command-palette/src/TxCommandPalette.vue2.js +127 -20
- package/dist/lib/components.css +4253 -3117
- package/dist/lib/components.js +255 -178
- package/dist/lib/container/src/TxCol.vue2.js +1 -1
- package/dist/lib/container/src/TxRow.vue2.js +1 -1
- package/dist/lib/context-menu/index.js +1 -1
- package/dist/lib/context-menu/src/TxContextMenu.vue.js +1 -1
- package/dist/lib/context-menu/src/TxContextMenu.vue2.js +4 -1
- package/dist/lib/corner-overlay/index.js +1 -1
- package/dist/lib/data-table/index.js +1 -1
- package/dist/lib/date-picker/index.js +1 -1
- package/dist/lib/dialog/index.js +1 -1
- package/dist/lib/dialog/src/TxBlowDialog.vue.js +5 -1
- package/dist/lib/dialog/src/TxBottomDialog.vue.js +1 -1
- package/dist/lib/dialog/src/TxBottomDialog.vue2.js +5 -1
- package/dist/lib/dialog/src/TxPopperDialog.vue.js +5 -1
- package/dist/lib/dialog/src/TxTouchTip.vue.js +1 -1
- package/dist/lib/dialog/src/TxTouchTip.vue2.js +24 -21
- package/dist/lib/drawer/index.js +1 -1
- package/dist/lib/drawer/src/TxDrawer.vue.js +8 -2
- package/dist/lib/dropdown-menu/index.js +1 -1
- package/dist/lib/dropdown-menu/src/TxDropdownMenu.vue.js +1 -1
- package/dist/lib/dropdown-menu/src/TxDropdownMenu.vue2.js +13 -3
- package/dist/lib/edge-fade-mask/index.js +12 -0
- package/dist/lib/edge-fade-mask/src/TxEdgeFadeMask.vue.js +11 -0
- package/dist/lib/edge-fade-mask/src/TxEdgeFadeMask.vue2.js +158 -0
- package/dist/lib/empty/index.js +1 -1
- package/dist/lib/empty-state/index.js +1 -1
- package/dist/lib/empty-state/src/TxEmptyState.vue.js +1 -1
- package/dist/lib/empty-state/src/TxEmptyState.vue2.js +25 -17
- package/dist/lib/error-state/index.js +11 -0
- package/dist/lib/error-state/src/TxErrorState.vue.js +39 -0
- package/dist/lib/error-state/src/TxErrorState.vue2.js +9 -0
- package/dist/lib/file-uploader/index.js +1 -1
- package/dist/lib/flat-radio/index.js +16 -0
- package/dist/lib/flat-radio/src/TxFlatRadio.vue.js +11 -0
- package/dist/lib/flat-radio/src/TxFlatRadio.vue2.js +241 -0
- package/dist/lib/flat-radio/src/TxFlatRadioItem.vue.js +11 -0
- package/dist/lib/flat-radio/src/TxFlatRadioItem.vue2.js +91 -0
- package/dist/lib/flat-radio/src/types.js +7 -0
- package/dist/lib/flat-select/index.js +16 -0
- package/dist/lib/flat-select/src/TxFlatSelect.vue.js +11 -0
- package/dist/lib/flat-select/src/TxFlatSelect.vue2.js +212 -0
- package/dist/lib/flat-select/src/TxFlatSelectItem.vue.js +11 -0
- package/dist/lib/flat-select/src/TxFlatSelectItem.vue2.js +75 -0
- package/dist/lib/flat-select/src/types.js +7 -0
- package/dist/lib/flex/index.js +1 -1
- package/dist/lib/flip-overlay/index.js +13 -0
- package/dist/lib/flip-overlay/src/TxFlipOverlay.vue.js +986 -0
- package/dist/lib/flip-overlay/src/TxFlipOverlay.vue3.js +10 -0
- package/dist/lib/floating/index.js +16 -0
- package/dist/lib/floating/src/TxFloating.vue.js +11 -0
- package/dist/lib/floating/src/TxFloating.vue2.js +122 -0
- package/dist/lib/floating/src/TxFloatingElement.vue.js +11 -0
- package/dist/lib/floating/src/TxFloatingElement.vue2.js +47 -0
- package/dist/lib/floating/src/context.js +7 -0
- package/dist/lib/form/index.js +1 -1
- package/dist/lib/fusion/index.js +1 -1
- package/dist/lib/glass-surface/index.js +1 -1
- package/dist/lib/glass-surface/src/TxGlassSurface.vue.js +15 -37
- package/dist/lib/glow-text/index.js +1 -1
- package/dist/lib/glow-text/src/TxGlowText.vue.js +1 -1
- package/dist/lib/glow-text/src/TxGlowText.vue2.js +92 -9
- package/dist/lib/gradient-border/index.js +1 -1
- package/dist/lib/gradual-blur/index.js +1 -1
- package/dist/lib/gradual-blur/src/TxGradualBlur.vue.js +1 -1
- package/dist/lib/grid/src/TxGrid.vue2.js +1 -1
- package/dist/lib/grid-layout/index.js +1 -1
- package/dist/lib/group-block/index.js +11 -1
- package/dist/lib/group-block/src/TxBlockInput.vue.js +98 -0
- package/dist/lib/group-block/src/TxBlockInput.vue3.js +10 -0
- package/dist/lib/group-block/src/TxBlockSelect.vue.js +80 -0
- package/dist/lib/group-block/src/TxBlockSelect.vue3.js +10 -0
- package/dist/lib/group-block/src/TxGroupBlock.vue.js +1 -1
- package/dist/lib/guide-state/index.js +11 -0
- package/dist/lib/guide-state/src/TxGuideState.vue.js +39 -0
- package/dist/lib/guide-state/src/TxGuideState.vue2.js +9 -0
- package/dist/lib/icon/index.js +1 -1
- package/dist/lib/icon/src/TxIcon.vue.js +1 -1
- package/dist/lib/icon/src/TxIcon.vue2.js +9 -3
- package/dist/lib/image-gallery/index.js +1 -1
- package/dist/lib/image-uploader/index.js +1 -1
- package/dist/lib/index.js +269 -182
- package/dist/lib/input/index.js +7 -5
- package/dist/lib/input/src/TxInput.vue.js +1 -1
- package/dist/lib/input/src/TxInput.vue2.js +79 -22
- package/dist/lib/keyframe-stroke-text/index.js +12 -0
- package/dist/lib/keyframe-stroke-text/src/TxKeyframeStrokeText.vue.js +11 -0
- package/dist/lib/keyframe-stroke-text/src/TxKeyframeStrokeText.vue2.js +106 -0
- package/dist/lib/layout-skeleton/index.js +1 -1
- package/dist/lib/loading-overlay/index.js +1 -1
- package/dist/lib/loading-overlay/src/TxLoadingOverlay.vue.js +11 -1
- package/dist/lib/loading-state/index.js +1 -1
- package/dist/lib/markdown-view/index.js +1 -1
- package/dist/lib/markdown-view/src/TxMarkdownView.vue.js +3 -2
- package/dist/lib/modal/index.js +1 -1
- package/dist/lib/modal/src/TxModal.vue.js +1 -1
- package/dist/lib/modal/src/TxModal.vue2.js +25 -3
- package/dist/lib/nav-bar/index.js +1 -1
- package/dist/lib/no-data/index.js +1 -1
- package/dist/lib/no-selection/index.js +1 -1
- package/dist/lib/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/properties.js +66 -0
- package/dist/lib/node_modules/.pnpm/@codemirror_legacy-modes@6.5.2/node_modules/@codemirror/legacy-modes/mode/toml.js +80 -0
- package/dist/lib/node_modules/.pnpm/@lezer_common@1.5.0/node_modules/@lezer/common/dist/index.js +257 -0
- package/dist/lib/node_modules/.pnpm/@lezer_highlight@1.2.3/node_modules/@lezer/highlight/dist/index.js +688 -0
- package/dist/lib/offline-state/index.js +1 -1
- package/dist/lib/outline-border/index.js +1 -1
- package/dist/lib/{utils → packages/tuffex/packages/utils}/toast.js +4 -1
- package/dist/lib/packages/tuffex/packages/utils/z-index-manager.js +124 -0
- package/dist/lib/packages/utils/env/index.js +13 -0
- package/dist/lib/permission-state/index.js +1 -1
- package/dist/lib/picker/index.js +1 -1
- package/dist/lib/picker/src/TxPicker.vue.js +1 -1
- package/dist/lib/picker/src/TxPicker.vue2.js +6 -1
- package/dist/lib/popover/index.js +1 -1
- package/dist/lib/popover/src/TxPopover.vue.js +1 -1
- package/dist/lib/popover/src/TxPopover.vue2.js +146 -316
- package/dist/lib/progress-bar/index.js +1 -1
- package/dist/lib/radio/index.js +1 -1
- package/dist/lib/radio/src/TxRadioGroup.vue2.js +1 -1
- package/dist/lib/scroll/index.js +1 -1
- package/dist/lib/scroll/src/TxScroll.vue.js +1 -1
- package/dist/lib/scroll/src/TxScroll.vue2.js +25 -13
- package/dist/lib/scroll/src/runtime-capabilities.js +72 -0
- package/dist/lib/search-empty/index.js +1 -1
- package/dist/lib/search-input/index.js +1 -1
- package/dist/lib/search-select/index.js +1 -1
- package/dist/lib/search-select/src/TxSearchSelect.vue.js +1 -1
- package/dist/lib/search-select/src/TxSearchSelect.vue2.js +104 -177
- package/dist/lib/segmented-slider/index.js +1 -1
- package/dist/lib/segmented-slider/src/TxSegmentedSlider.vue.js +1 -0
- package/dist/lib/select/index.js +6 -9
- package/dist/lib/select/src/TxSelect.vue.js +2 -2
- package/dist/lib/select/src/TxSelect.vue2.js +202 -151
- package/dist/lib/select/src/TxSelectItem.vue.js +2 -2
- package/dist/lib/select/src/TxSelectItem.vue2.js +43 -6
- package/dist/lib/select/src/types.js +7 -0
- package/dist/lib/skeleton/index.js +1 -1
- package/dist/lib/slider/index.js +1 -1
- package/dist/lib/sortable-list/index.js +1 -1
- package/dist/lib/sortable-list/src/TxSortableList.vue.js +1 -1
- package/dist/lib/sortable-list/src/TxSortableList.vue2.js +1 -1
- package/dist/lib/spinner/index.js +1 -1
- package/dist/lib/splitter/index.js +1 -1
- package/dist/lib/stack/index.js +1 -1
- package/dist/lib/stagger/index.js +1 -1
- package/dist/lib/stat-card/index.js +1 -1
- package/dist/lib/stat-card/src/TxStatCard.vue.js +1 -1
- package/dist/lib/stat-card/src/TxStatCard.vue2.js +246 -18
- package/dist/lib/status-badge/index.js +1 -1
- package/dist/lib/switch/index.js +1 -0
- package/dist/lib/tab-bar/index.js +1 -1
- package/dist/lib/tabs/index.js +1 -1
- package/dist/lib/tabs/src/TxTabs.vue.js +1 -1
- package/dist/lib/tabs/src/TxTabs.vue2.js +3 -1
- package/dist/lib/tag/index.js +1 -1
- package/dist/lib/tag-input/index.js +1 -1
- package/dist/lib/text-transformer/index.js +1 -1
- package/dist/lib/toast/index.js +1 -1
- package/dist/lib/toast/src/TxToastHost.vue.js +17 -16
- package/dist/lib/tooltip/index.js +1 -1
- package/dist/lib/tooltip/src/TxTooltip.vue.js +1 -1
- package/dist/lib/tooltip/src/TxTooltip.vue2.js +101 -349
- package/dist/lib/transfer/index.js +12 -0
- package/dist/lib/transfer/src/TxTransfer.vue.js +11 -0
- package/dist/lib/transfer/src/TxTransfer.vue2.js +221 -0
- package/dist/lib/transition/index.js +1 -1
- package/dist/lib/tree/index.js +1 -1
- package/dist/lib/tree/src/TxTree.vue.js +1 -1
- package/dist/lib/tree/src/TxTree.vue2.js +3 -2
- package/dist/lib/tree-select/index.js +1 -1
- package/dist/lib/tree-select/src/TxTreeSelect.vue.js +1 -1
- package/dist/lib/tree-select/src/TxTreeSelect.vue2.js +0 -2
- package/dist/lib/tuff-logo-stroke/index.js +12 -0
- package/dist/lib/tuff-logo-stroke/src/TxTuffLogoStroke.vue.js +11 -0
- package/dist/lib/tuff-logo-stroke/src/TxTuffLogoStroke.vue2.js +151 -0
- package/dist/lib/virtual-list/index.js +1 -1
- package/package.json +37 -25
- package/dist/es/button/__tests__/button.test.d.ts +0 -1
- package/dist/es/button/__tests__/split-button.test.d.ts +0 -1
- package/dist/es/cascader/__tests__/cascader.test.d.ts +0 -1
- package/dist/es/command-palette/__tests__/command-palette.test.d.ts +0 -1
- package/dist/es/data-table/__tests__/data-table.test.d.ts +0 -1
- package/dist/es/file-uploader/__tests__/file-uploader.test.d.ts +0 -1
- package/dist/es/form/__tests__/form.test.d.ts +0 -1
- package/dist/es/search-select/__tests__/search-select.test.d.ts +0 -1
- package/dist/es/tag-input/__tests__/tag-input.test.d.ts +0 -1
- package/dist/es/tree/__tests__/tree.test.d.ts +0 -1
- package/dist/es/tree-select/__tests__/tree-select.test.d.ts +0 -1
- package/dist/es/virtual-list/__tests__/virtual-list.test.d.ts +0 -1
- /package/dist/es/{utils → packages/tuffex/packages/utils}/animation/auto-resize.js +0 -0
- /package/dist/es/{utils → packages/tuffex/packages/utils}/animation/flip.js +0 -0
- /package/dist/es/{utils → packages/tuffex/packages/utils}/dialog-manager.js +0 -0
- /package/dist/es/{utils → packages/tuffex/packages/utils}/env.js +0 -0
- /package/dist/es/{utils → packages/tuffex/packages/utils}/vibrate.js +0 -0
- /package/dist/es/{utils → packages/tuffex/packages/utils}/withInstall.js +0 -0
- /package/dist/lib/{utils → packages/tuffex/packages/utils}/animation/auto-resize.js +0 -0
- /package/dist/lib/{utils → packages/tuffex/packages/utils}/animation/flip.js +0 -0
- /package/dist/lib/{utils → packages/tuffex/packages/utils}/dialog-manager.js +0 -0
- /package/dist/lib/{utils → packages/tuffex/packages/utils}/env.js +0 -0
- /package/dist/lib/{utils → packages/tuffex/packages/utils}/vibrate.js +0 -0
- /package/dist/lib/{utils → packages/tuffex/packages/utils}/withInstall.js +0 -0
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { defineComponent,
|
|
2
|
-
import _sfc_main$1 from '../../
|
|
1
|
+
import { defineComponent, toRef, ref, computed, watch, onBeforeUnmount, createElementBlock, openBlock, normalizeStyle, normalizeClass, createVNode, createCommentVNode, createElementVNode, renderSlot } from 'vue';
|
|
2
|
+
import _sfc_main$1 from '../../base-surface/src/TxBaseSurface.vue.js';
|
|
3
|
+
/* empty css */
|
|
4
|
+
import _sfc_main$2 from '../../spinner/src/TxSpinner.vue.js';
|
|
3
5
|
/* empty css */
|
|
4
6
|
|
|
5
7
|
const _hoisted_1 = {
|
|
@@ -25,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25
27
|
__name: "TxCard",
|
|
26
28
|
props: {
|
|
27
29
|
variant: { default: "solid" },
|
|
28
|
-
background: { default: "
|
|
30
|
+
background: { default: "pure" },
|
|
29
31
|
shadow: { default: "none" },
|
|
30
32
|
size: { default: "medium" },
|
|
31
33
|
radius: { default: void 0 },
|
|
@@ -33,7 +35,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
35
|
glassBlur: { type: Boolean, default: true },
|
|
34
36
|
glassBlurAmount: { default: 22 },
|
|
35
37
|
glassOverlay: { type: Boolean, default: true },
|
|
36
|
-
glassOverlayOpacity: { default: 0.
|
|
38
|
+
glassOverlayOpacity: { default: 0.18 },
|
|
39
|
+
maskOpacity: { default: 0.75 },
|
|
40
|
+
fallbackMaskOpacity: { default: 0.26 },
|
|
41
|
+
surfaceMoving: { type: Boolean, default: false },
|
|
42
|
+
refractionStrength: { default: 62 },
|
|
43
|
+
refractionProfile: { default: "filmic" },
|
|
44
|
+
refractionTone: { default: "vivid" },
|
|
45
|
+
refractionAngle: { default: -24 },
|
|
46
|
+
refractionLightFollowMouse: { type: Boolean, default: false },
|
|
47
|
+
refractionLightFollowIntensity: { default: 0.45 },
|
|
48
|
+
refractionLightSpring: { type: Boolean, default: true },
|
|
49
|
+
refractionLightSpringStiffness: { default: 0.18 },
|
|
50
|
+
refractionLightSpringDamping: { default: 0.84 },
|
|
37
51
|
clickable: { type: Boolean, default: false },
|
|
38
52
|
loading: { type: Boolean, default: false },
|
|
39
53
|
loadingSpinnerSize: { default: void 0 },
|
|
@@ -46,22 +60,37 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
60
|
setup(__props, { emit: __emit }) {
|
|
47
61
|
const props = __props;
|
|
48
62
|
const emit = __emit;
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
const variant = toRef(props, "variant");
|
|
64
|
+
const background = toRef(props, "background");
|
|
65
|
+
const shadow = toRef(props, "shadow");
|
|
66
|
+
const size = toRef(props, "size");
|
|
67
|
+
const clickable = toRef(props, "clickable");
|
|
68
|
+
const loading = toRef(props, "loading");
|
|
69
|
+
const disabled = toRef(props, "disabled");
|
|
70
|
+
const inertial = toRef(props, "inertial");
|
|
71
|
+
const glassBlur = toRef(props, "glassBlur");
|
|
72
|
+
const glassBlurAmount = toRef(props, "glassBlurAmount");
|
|
73
|
+
const glassOverlay = toRef(props, "glassOverlay");
|
|
74
|
+
const glassOverlayOpacity = toRef(props, "glassOverlayOpacity");
|
|
75
|
+
const maskOpacity = toRef(props, "maskOpacity");
|
|
76
|
+
const fallbackMaskOpacity = toRef(props, "fallbackMaskOpacity");
|
|
77
|
+
const externalSurfaceMoving = toRef(props, "surfaceMoving");
|
|
78
|
+
const refractionStrength = toRef(props, "refractionStrength");
|
|
79
|
+
const refractionProfile = toRef(props, "refractionProfile");
|
|
80
|
+
const refractionTone = toRef(props, "refractionTone");
|
|
81
|
+
const refractionAngle = toRef(props, "refractionAngle");
|
|
82
|
+
const refractionLightFollowMouse = toRef(props, "refractionLightFollowMouse");
|
|
83
|
+
const refractionLightFollowIntensity = toRef(props, "refractionLightFollowIntensity");
|
|
84
|
+
const refractionLightSpring = toRef(props, "refractionLightSpring");
|
|
85
|
+
const refractionLightSpringStiffness = toRef(props, "refractionLightSpringStiffness");
|
|
86
|
+
const refractionLightSpringDamping = toRef(props, "refractionLightSpringDamping");
|
|
87
|
+
const motionX = ref(0);
|
|
88
|
+
const motionY = ref(0);
|
|
89
|
+
const surfaceMoving = ref(false);
|
|
90
|
+
const lightPointX = ref(0.5);
|
|
91
|
+
const lightPointY = ref(0.5);
|
|
92
|
+
const lightRatioX = ref(0);
|
|
93
|
+
const lightRatioY = ref(0);
|
|
65
94
|
const resolvedRadius = computed(() => {
|
|
66
95
|
if (typeof props.radius === "number")
|
|
67
96
|
return props.radius;
|
|
@@ -81,12 +110,89 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
81
110
|
return props.loadingSpinnerSize;
|
|
82
111
|
return 12;
|
|
83
112
|
});
|
|
84
|
-
const
|
|
85
|
-
|
|
113
|
+
const surfaceMode = computed(() => {
|
|
114
|
+
return background.value;
|
|
115
|
+
});
|
|
116
|
+
const surfaceRefractionProfile = computed(() => {
|
|
117
|
+
if (background.value !== "refraction")
|
|
118
|
+
return void 0;
|
|
119
|
+
return refractionProfile.value;
|
|
120
|
+
});
|
|
121
|
+
const surfaceRefractionTone = computed(() => {
|
|
122
|
+
if (background.value !== "refraction")
|
|
123
|
+
return void 0;
|
|
124
|
+
return refractionTone.value;
|
|
125
|
+
});
|
|
126
|
+
const surfaceBlur = computed(() => {
|
|
127
|
+
if (background.value === "blur")
|
|
128
|
+
return 30;
|
|
129
|
+
if (background.value === "glass" || background.value === "refraction")
|
|
130
|
+
return glassBlur.value ? glassBlurAmount.value : 0;
|
|
131
|
+
return 0;
|
|
132
|
+
});
|
|
133
|
+
const surfaceOverlayOpacity = computed(() => {
|
|
134
|
+
if (background.value !== "glass" && background.value !== "refraction")
|
|
135
|
+
return 0;
|
|
136
|
+
return glassOverlay.value ? glassOverlayOpacity.value : 0;
|
|
137
|
+
});
|
|
138
|
+
const surfaceRefractionStrength = computed(() => {
|
|
139
|
+
if (background.value !== "refraction")
|
|
140
|
+
return void 0;
|
|
141
|
+
const baseStrength = clamp(refractionStrength.value, 0, 100);
|
|
142
|
+
if (!refractionLightFollowMouse.value) {
|
|
143
|
+
return baseStrength;
|
|
144
|
+
}
|
|
145
|
+
const intensity = clamp(refractionLightFollowIntensity.value, 0, 1);
|
|
146
|
+
const distance = clamp(Math.hypot(lightRatioX.value, lightRatioY.value), 0, 1);
|
|
147
|
+
return clamp(baseStrength + distance * 16 * intensity, 0, 100);
|
|
148
|
+
});
|
|
149
|
+
const surfaceRefractionAngle = computed(() => {
|
|
150
|
+
if (background.value !== "refraction")
|
|
151
|
+
return void 0;
|
|
152
|
+
const baseAngle = normalizeAngleDeg(refractionAngle.value);
|
|
153
|
+
if (!refractionLightFollowMouse.value) {
|
|
154
|
+
return baseAngle;
|
|
155
|
+
}
|
|
156
|
+
if (Math.abs(lightRatioX.value) < 0.01 && Math.abs(lightRatioY.value) < 0.01) {
|
|
157
|
+
return baseAngle;
|
|
158
|
+
}
|
|
159
|
+
const intensity = clamp(refractionLightFollowIntensity.value, 0, 1);
|
|
160
|
+
const pointerAngle = Math.atan2(lightRatioY.value, lightRatioX.value) * (180 / Math.PI);
|
|
161
|
+
return lerpAngleDeg(baseAngle, pointerAngle, intensity);
|
|
162
|
+
});
|
|
163
|
+
const surfaceRefractionLightX = computed(() => {
|
|
164
|
+
if (background.value !== "refraction" || !refractionLightFollowMouse.value) {
|
|
165
|
+
return void 0;
|
|
166
|
+
}
|
|
167
|
+
return lightPointX.value;
|
|
168
|
+
});
|
|
169
|
+
const surfaceRefractionLightY = computed(() => {
|
|
170
|
+
if (background.value !== "refraction" || !refractionLightFollowMouse.value) {
|
|
171
|
+
return void 0;
|
|
172
|
+
}
|
|
173
|
+
return lightPointY.value;
|
|
174
|
+
});
|
|
175
|
+
const surfaceColor = computed(() => {
|
|
176
|
+
if (background.value !== "mask")
|
|
177
|
+
return void 0;
|
|
178
|
+
return "var(--tx-card-fake-background, var(--tx-bg-color-overlay, #fff))";
|
|
179
|
+
});
|
|
180
|
+
const surfaceOpacity = computed(() => {
|
|
181
|
+
if (background.value === "mask")
|
|
182
|
+
return clamp(maskOpacity.value, 0, 1);
|
|
183
|
+
return void 0;
|
|
184
|
+
});
|
|
185
|
+
const mergedSurfaceMoving = computed(() => {
|
|
186
|
+
return surfaceMoving.value || !!externalSurfaceMoving.value;
|
|
187
|
+
});
|
|
86
188
|
let targetX = 0;
|
|
87
189
|
let targetY = 0;
|
|
190
|
+
let lightTargetX = 0.5;
|
|
191
|
+
let lightTargetY = 0.5;
|
|
88
192
|
let velocityX = 0;
|
|
89
193
|
let velocityY = 0;
|
|
194
|
+
let lightVelocityX = 0;
|
|
195
|
+
let lightVelocityY = 0;
|
|
90
196
|
let lastTs = 0;
|
|
91
197
|
let rafId = null;
|
|
92
198
|
let isReturning = false;
|
|
@@ -96,6 +202,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
96
202
|
function lerp(a, b, t) {
|
|
97
203
|
return a + (b - a) * t;
|
|
98
204
|
}
|
|
205
|
+
function normalizeAngleDeg(angle) {
|
|
206
|
+
return ((angle + 180) % 360 + 360) % 360 - 180;
|
|
207
|
+
}
|
|
208
|
+
function lerpAngleDeg(from, to, t) {
|
|
209
|
+
const delta = normalizeAngleDeg(to - from);
|
|
210
|
+
return normalizeAngleDeg(from + delta * t);
|
|
211
|
+
}
|
|
99
212
|
function stopRaf() {
|
|
100
213
|
if (rafId == null)
|
|
101
214
|
return;
|
|
@@ -106,27 +219,60 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
106
219
|
const dtRaw = lastTs ? (ts - lastTs) / 16.6667 : 1;
|
|
107
220
|
lastTs = ts;
|
|
108
221
|
const dt = clamp(dtRaw, 0.5, 2);
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
motionX.value
|
|
127
|
-
motionY.value
|
|
128
|
-
|
|
129
|
-
|
|
222
|
+
let motionSettled = true;
|
|
223
|
+
let lightSettled = true;
|
|
224
|
+
if (props.inertial) {
|
|
225
|
+
const rebound = clamp(props.inertialRebound, 0, 1);
|
|
226
|
+
const followStiffness = 0.085;
|
|
227
|
+
const followDamping = 0.9;
|
|
228
|
+
const returnStiffness = lerp(0.06, 0.12, rebound);
|
|
229
|
+
const returnDamping = lerp(0.96, 0.84, rebound);
|
|
230
|
+
const stiffness = isReturning ? returnStiffness : followStiffness;
|
|
231
|
+
const damping = isReturning ? returnDamping : followDamping;
|
|
232
|
+
velocityX += (targetX - motionX.value) * stiffness * dt;
|
|
233
|
+
velocityY += (targetY - motionY.value) * stiffness * dt;
|
|
234
|
+
const damp = damping ** dt;
|
|
235
|
+
velocityX *= damp;
|
|
236
|
+
velocityY *= damp;
|
|
237
|
+
motionX.value += velocityX;
|
|
238
|
+
motionY.value += velocityY;
|
|
239
|
+
const closeX = Math.abs(targetX - motionX.value) < 0.08 && Math.abs(velocityX) < 0.08;
|
|
240
|
+
const closeY = Math.abs(targetY - motionY.value) < 0.08 && Math.abs(velocityY) < 0.08;
|
|
241
|
+
motionSettled = closeX && closeY;
|
|
242
|
+
if (motionSettled) {
|
|
243
|
+
motionX.value = targetX;
|
|
244
|
+
motionY.value = targetY;
|
|
245
|
+
velocityX = 0;
|
|
246
|
+
velocityY = 0;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
if (refractionLightFollowMouse.value && background.value === "refraction") {
|
|
250
|
+
if (refractionLightSpring.value) {
|
|
251
|
+
const springStiffness = clamp(refractionLightSpringStiffness.value, 0.01, 0.55);
|
|
252
|
+
const springDamping = clamp(refractionLightSpringDamping.value, 0.55, 0.99);
|
|
253
|
+
lightVelocityX += (lightTargetX - lightPointX.value) * springStiffness * dt;
|
|
254
|
+
lightVelocityY += (lightTargetY - lightPointY.value) * springStiffness * dt;
|
|
255
|
+
const lightDamp = springDamping ** dt;
|
|
256
|
+
lightVelocityX *= lightDamp;
|
|
257
|
+
lightVelocityY *= lightDamp;
|
|
258
|
+
lightPointX.value = clamp(lightPointX.value + lightVelocityX, 0, 1);
|
|
259
|
+
lightPointY.value = clamp(lightPointY.value + lightVelocityY, 0, 1);
|
|
260
|
+
} else {
|
|
261
|
+
lightPointX.value = lightTargetX;
|
|
262
|
+
lightPointY.value = lightTargetY;
|
|
263
|
+
lightVelocityX = 0;
|
|
264
|
+
lightVelocityY = 0;
|
|
265
|
+
}
|
|
266
|
+
lightRatioX.value = clamp(lightPointX.value * 2 - 1, -1, 1);
|
|
267
|
+
lightRatioY.value = clamp(lightPointY.value * 2 - 1, -1, 1);
|
|
268
|
+
const closeLightX = Math.abs(lightTargetX - lightPointX.value) < 2e-3 && Math.abs(lightVelocityX) < 2e-3;
|
|
269
|
+
const closeLightY = Math.abs(lightTargetY - lightPointY.value) < 2e-3 && Math.abs(lightVelocityY) < 2e-3;
|
|
270
|
+
lightSettled = closeLightX && closeLightY;
|
|
271
|
+
}
|
|
272
|
+
if (motionSettled && lightSettled) {
|
|
273
|
+
if (props.inertial) {
|
|
274
|
+
surfaceMoving.value = false;
|
|
275
|
+
}
|
|
130
276
|
lastTs = 0;
|
|
131
277
|
rafId = null;
|
|
132
278
|
return;
|
|
@@ -138,11 +284,37 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
138
284
|
return;
|
|
139
285
|
rafId = requestAnimationFrame(tickFrame);
|
|
140
286
|
}
|
|
141
|
-
function
|
|
142
|
-
if (!
|
|
287
|
+
function updateRefractionLight(ev) {
|
|
288
|
+
if (!refractionLightFollowMouse.value)
|
|
289
|
+
return;
|
|
290
|
+
if (background.value !== "refraction")
|
|
143
291
|
return;
|
|
292
|
+
const el = ev.currentTarget;
|
|
293
|
+
if (!el)
|
|
294
|
+
return;
|
|
295
|
+
const rect = el.getBoundingClientRect();
|
|
296
|
+
if (!rect.width || !rect.height)
|
|
297
|
+
return;
|
|
298
|
+
const localX = clamp(ev.clientX - rect.left, 0, rect.width);
|
|
299
|
+
const localY = clamp(ev.clientY - rect.top, 0, rect.height);
|
|
300
|
+
lightTargetX = localX / rect.width;
|
|
301
|
+
lightTargetY = localY / rect.height;
|
|
302
|
+
if (!refractionLightSpring.value) {
|
|
303
|
+
lightPointX.value = lightTargetX;
|
|
304
|
+
lightPointY.value = lightTargetY;
|
|
305
|
+
lightRatioX.value = clamp(lightPointX.value * 2 - 1, -1, 1);
|
|
306
|
+
lightRatioY.value = clamp(lightPointY.value * 2 - 1, -1, 1);
|
|
307
|
+
lightVelocityX = 0;
|
|
308
|
+
lightVelocityY = 0;
|
|
309
|
+
}
|
|
310
|
+
ensureRaf();
|
|
311
|
+
}
|
|
312
|
+
function onMouseMove(ev) {
|
|
144
313
|
if (props.disabled)
|
|
145
314
|
return;
|
|
315
|
+
updateRefractionLight(ev);
|
|
316
|
+
if (!props.inertial)
|
|
317
|
+
return;
|
|
146
318
|
const el = ev.currentTarget;
|
|
147
319
|
if (!el)
|
|
148
320
|
return;
|
|
@@ -159,14 +331,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
159
331
|
const easedX = Math.sign(ratioX) * Math.abs(ratioX) ** 0.85;
|
|
160
332
|
const easedY = Math.sign(ratioY) * Math.abs(ratioY) ** 0.85;
|
|
161
333
|
const max = props.inertialMaxOffset;
|
|
334
|
+
surfaceMoving.value = true;
|
|
162
335
|
targetX = easedX * max;
|
|
163
336
|
targetY = easedY * max;
|
|
164
337
|
ensureRaf();
|
|
165
338
|
}
|
|
166
339
|
function onMouseLeave() {
|
|
340
|
+
if (refractionLightFollowMouse.value && background.value === "refraction") {
|
|
341
|
+
lightTargetX = 0.5;
|
|
342
|
+
lightTargetY = 0.5;
|
|
343
|
+
if (!refractionLightSpring.value) {
|
|
344
|
+
lightPointX.value = 0.5;
|
|
345
|
+
lightPointY.value = 0.5;
|
|
346
|
+
lightRatioX.value = 0;
|
|
347
|
+
lightRatioY.value = 0;
|
|
348
|
+
lightVelocityX = 0;
|
|
349
|
+
lightVelocityY = 0;
|
|
350
|
+
}
|
|
351
|
+
ensureRaf();
|
|
352
|
+
}
|
|
167
353
|
if (!props.inertial)
|
|
168
354
|
return;
|
|
169
355
|
const rebound = clamp(props.inertialRebound, 0, 1);
|
|
356
|
+
surfaceMoving.value = true;
|
|
170
357
|
isReturning = true;
|
|
171
358
|
velocityX *= rebound;
|
|
172
359
|
velocityY *= rebound;
|
|
@@ -174,6 +361,32 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
174
361
|
targetY = 0;
|
|
175
362
|
ensureRaf();
|
|
176
363
|
}
|
|
364
|
+
function resetRefractionLightState() {
|
|
365
|
+
lightTargetX = 0.5;
|
|
366
|
+
lightTargetY = 0.5;
|
|
367
|
+
lightPointX.value = 0.5;
|
|
368
|
+
lightPointY.value = 0.5;
|
|
369
|
+
lightRatioX.value = 0;
|
|
370
|
+
lightRatioY.value = 0;
|
|
371
|
+
lightVelocityX = 0;
|
|
372
|
+
lightVelocityY = 0;
|
|
373
|
+
}
|
|
374
|
+
watch([background, refractionLightFollowMouse], ([bg, follow]) => {
|
|
375
|
+
if (bg !== "refraction" || !follow) {
|
|
376
|
+
resetRefractionLightState();
|
|
377
|
+
}
|
|
378
|
+
});
|
|
379
|
+
watch(inertial, (enabled) => {
|
|
380
|
+
if (!enabled) {
|
|
381
|
+
surfaceMoving.value = false;
|
|
382
|
+
motionX.value = 0;
|
|
383
|
+
motionY.value = 0;
|
|
384
|
+
targetX = 0;
|
|
385
|
+
targetY = 0;
|
|
386
|
+
velocityX = 0;
|
|
387
|
+
velocityY = 0;
|
|
388
|
+
}
|
|
389
|
+
});
|
|
177
390
|
onBeforeUnmount(() => {
|
|
178
391
|
stopRaf();
|
|
179
392
|
});
|
|
@@ -187,15 +400,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
187
400
|
return (_ctx, _cache) => {
|
|
188
401
|
return openBlock(), createElementBlock("div", {
|
|
189
402
|
class: normalizeClass(["tx-card", [
|
|
190
|
-
`is-${
|
|
191
|
-
`is-bg-${
|
|
192
|
-
`is-shadow-${
|
|
193
|
-
`is-${
|
|
403
|
+
`is-${variant.value}`,
|
|
404
|
+
`is-bg-${background.value}`,
|
|
405
|
+
`is-shadow-${shadow.value}`,
|
|
406
|
+
`is-${size.value}`,
|
|
194
407
|
{
|
|
195
|
-
"is-clickable":
|
|
196
|
-
"is-loading":
|
|
197
|
-
"is-disabled":
|
|
198
|
-
"is-inertial":
|
|
408
|
+
"is-clickable": clickable.value,
|
|
409
|
+
"is-loading": loading.value,
|
|
410
|
+
"is-disabled": disabled.value,
|
|
411
|
+
"is-inertial": inertial.value
|
|
199
412
|
}
|
|
200
413
|
]]),
|
|
201
414
|
style: normalizeStyle({
|
|
@@ -203,13 +416,31 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
203
416
|
"--tx-card-padding": `${resolvedPadding.value}px`,
|
|
204
417
|
"--tx-card-dx": `${motionX.value}px`,
|
|
205
418
|
"--tx-card-dy": `${motionY.value}px`,
|
|
206
|
-
"--tx-
|
|
207
|
-
"--tx-card-glass-overlay-opacity": `${unref(glassOverlay) ? unref(glassOverlayOpacity) : 0}`
|
|
419
|
+
"--tx-surface-refraction-mask-color": "var(--tx-card-fake-background, var(--tx-bg-color-overlay, #fff))"
|
|
208
420
|
}),
|
|
209
421
|
onClick,
|
|
210
422
|
onMousemove: onMouseMove,
|
|
211
423
|
onMouseleave: onMouseLeave
|
|
212
424
|
}, [
|
|
425
|
+
createVNode(_sfc_main$1, {
|
|
426
|
+
class: "tx-card__surface",
|
|
427
|
+
mode: surfaceMode.value,
|
|
428
|
+
preset: "card",
|
|
429
|
+
moving: mergedSurfaceMoving.value,
|
|
430
|
+
"fallback-mask-opacity": fallbackMaskOpacity.value,
|
|
431
|
+
radius: resolvedRadius.value,
|
|
432
|
+
color: surfaceColor.value,
|
|
433
|
+
opacity: surfaceOpacity.value,
|
|
434
|
+
blur: surfaceBlur.value,
|
|
435
|
+
"overlay-opacity": surfaceOverlayOpacity.value,
|
|
436
|
+
"refraction-strength": surfaceRefractionStrength.value,
|
|
437
|
+
"refraction-profile": surfaceRefractionProfile.value,
|
|
438
|
+
"refraction-tone": surfaceRefractionTone.value,
|
|
439
|
+
"refraction-angle": surfaceRefractionAngle.value,
|
|
440
|
+
"refraction-light-x": surfaceRefractionLightX.value,
|
|
441
|
+
"refraction-light-y": surfaceRefractionLightY.value,
|
|
442
|
+
"aria-hidden": "true"
|
|
443
|
+
}, null, 8, ["mode", "moving", "fallback-mask-opacity", "radius", "color", "opacity", "blur", "overlay-opacity", "refraction-strength", "refraction-profile", "refraction-tone", "refraction-angle", "refraction-light-x", "refraction-light-y"]),
|
|
213
444
|
_ctx.$slots.cover ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
214
445
|
renderSlot(_ctx.$slots, "cover", {}, void 0, true)
|
|
215
446
|
])) : createCommentVNode("", true),
|
|
@@ -222,8 +453,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
222
453
|
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
223
454
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
224
455
|
])) : createCommentVNode("", true),
|
|
225
|
-
|
|
226
|
-
createVNode(_sfc_main$
|
|
456
|
+
loading.value ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
457
|
+
createVNode(_sfc_main$2, { size: resolvedSpinnerSize.value }, null, 8, ["size"])
|
|
227
458
|
])) : createCommentVNode("", true)
|
|
228
459
|
], 38);
|
|
229
460
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export type TxCardVariant = 'solid' | 'dashed' | 'plain';
|
|
2
|
-
export type TxCardBackground = 'blur' | 'glass' | '
|
|
2
|
+
export type TxCardBackground = 'pure' | 'mask' | 'blur' | 'glass' | 'refraction';
|
|
3
3
|
export type TxCardShadow = 'none' | 'soft' | 'medium';
|
|
4
4
|
export type TxCardSize = 'small' | 'medium' | 'large';
|
|
5
|
+
export type TxCardRefractionTone = 'mist' | 'balanced' | 'vivid';
|
|
5
6
|
export interface TxCardProps {
|
|
6
7
|
variant?: TxCardVariant;
|
|
7
8
|
background?: TxCardBackground;
|
|
@@ -13,6 +14,18 @@ export interface TxCardProps {
|
|
|
13
14
|
glassBlurAmount?: number;
|
|
14
15
|
glassOverlay?: boolean;
|
|
15
16
|
glassOverlayOpacity?: number;
|
|
17
|
+
maskOpacity?: number;
|
|
18
|
+
fallbackMaskOpacity?: number;
|
|
19
|
+
surfaceMoving?: boolean;
|
|
20
|
+
refractionStrength?: number;
|
|
21
|
+
refractionProfile?: 'soft' | 'filmic' | 'cinematic';
|
|
22
|
+
refractionTone?: TxCardRefractionTone;
|
|
23
|
+
refractionAngle?: number;
|
|
24
|
+
refractionLightFollowMouse?: boolean;
|
|
25
|
+
refractionLightFollowIntensity?: number;
|
|
26
|
+
refractionLightSpring?: boolean;
|
|
27
|
+
refractionLightSpringStiffness?: number;
|
|
28
|
+
refractionLightSpringDamping?: number;
|
|
16
29
|
clickable?: boolean;
|
|
17
30
|
loading?: boolean;
|
|
18
31
|
loadingSpinnerSize?: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CardItemProps } from './src/types
|
|
1
|
+
import { CardItemProps } from './src/types';
|
|
2
2
|
import { default as TxCardItem } from './src/TxCardItem.vue';
|
|
3
3
|
|
|
4
4
|
declare const CardItem: {
|
|
@@ -36,7 +36,7 @@ declare const CardItem: {
|
|
|
36
36
|
default: number;
|
|
37
37
|
};
|
|
38
38
|
avatarShape: {
|
|
39
|
-
type: import('vue').PropType<import('./src/types
|
|
39
|
+
type: import('vue').PropType<import('./src/types').CardItemAvatarShape>;
|
|
40
40
|
default: string;
|
|
41
41
|
};
|
|
42
42
|
clickable: {
|
|
@@ -64,7 +64,7 @@ declare const CardItem: {
|
|
|
64
64
|
avatarText: string;
|
|
65
65
|
avatarUrl: string;
|
|
66
66
|
avatarSize: number;
|
|
67
|
-
avatarShape: import('./src/types
|
|
67
|
+
avatarShape: import('./src/types').CardItemAvatarShape;
|
|
68
68
|
clickable: boolean;
|
|
69
69
|
active: boolean;
|
|
70
70
|
disabled: boolean;
|
|
@@ -109,7 +109,7 @@ declare const CardItem: {
|
|
|
109
109
|
default: number;
|
|
110
110
|
};
|
|
111
111
|
avatarShape: {
|
|
112
|
-
type: import('vue').PropType<import('./src/types
|
|
112
|
+
type: import('vue').PropType<import('./src/types').CardItemAvatarShape>;
|
|
113
113
|
default: string;
|
|
114
114
|
};
|
|
115
115
|
clickable: {
|
|
@@ -135,7 +135,7 @@ declare const CardItem: {
|
|
|
135
135
|
avatarText: string;
|
|
136
136
|
avatarUrl: string;
|
|
137
137
|
avatarSize: number;
|
|
138
|
-
avatarShape: import('./src/types
|
|
138
|
+
avatarShape: import('./src/types').CardItemAvatarShape;
|
|
139
139
|
clickable: boolean;
|
|
140
140
|
active: boolean;
|
|
141
141
|
disabled: boolean;
|
|
@@ -177,7 +177,7 @@ declare const CardItem: {
|
|
|
177
177
|
default: number;
|
|
178
178
|
};
|
|
179
179
|
avatarShape: {
|
|
180
|
-
type: import('vue').PropType<import('./src/types
|
|
180
|
+
type: import('vue').PropType<import('./src/types').CardItemAvatarShape>;
|
|
181
181
|
default: string;
|
|
182
182
|
};
|
|
183
183
|
clickable: {
|
|
@@ -205,7 +205,7 @@ declare const CardItem: {
|
|
|
205
205
|
avatarText: string;
|
|
206
206
|
avatarUrl: string;
|
|
207
207
|
avatarSize: number;
|
|
208
|
-
avatarShape: import('./src/types
|
|
208
|
+
avatarShape: import('./src/types').CardItemAvatarShape;
|
|
209
209
|
clickable: boolean;
|
|
210
210
|
active: boolean;
|
|
211
211
|
disabled: boolean;
|
|
@@ -26,6 +26,10 @@ declare const Cascader: {
|
|
|
26
26
|
type: import('vue').PropType<CascaderNode[]>;
|
|
27
27
|
default: () => never[];
|
|
28
28
|
};
|
|
29
|
+
multiple: {
|
|
30
|
+
type: import('vue').PropType<boolean>;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
29
33
|
clearable: {
|
|
30
34
|
type: import('vue').PropType<boolean>;
|
|
31
35
|
default: boolean;
|
|
@@ -36,10 +40,6 @@ declare const Cascader: {
|
|
|
36
40
|
searchDebounce: {
|
|
37
41
|
type: import('vue').PropType<number>;
|
|
38
42
|
};
|
|
39
|
-
multiple: {
|
|
40
|
-
type: import('vue').PropType<boolean>;
|
|
41
|
-
default: boolean;
|
|
42
|
-
};
|
|
43
43
|
searchable: {
|
|
44
44
|
type: import('vue').PropType<boolean>;
|
|
45
45
|
default: boolean;
|
|
@@ -100,8 +100,8 @@ declare const Cascader: {
|
|
|
100
100
|
load: (node: CascaderNode | null, level: number) => Promise<CascaderNode[]>;
|
|
101
101
|
placement: import('../popover/src/types').PopoverPlacement;
|
|
102
102
|
options: CascaderNode[];
|
|
103
|
-
clearable: boolean;
|
|
104
103
|
multiple: boolean;
|
|
104
|
+
clearable: boolean;
|
|
105
105
|
searchable: boolean;
|
|
106
106
|
dropdownOffset: number;
|
|
107
107
|
dropdownWidth: number;
|
|
@@ -139,6 +139,10 @@ declare const Cascader: {
|
|
|
139
139
|
type: import('vue').PropType<CascaderNode[]>;
|
|
140
140
|
default: () => never[];
|
|
141
141
|
};
|
|
142
|
+
multiple: {
|
|
143
|
+
type: import('vue').PropType<boolean>;
|
|
144
|
+
default: boolean;
|
|
145
|
+
};
|
|
142
146
|
clearable: {
|
|
143
147
|
type: import('vue').PropType<boolean>;
|
|
144
148
|
default: boolean;
|
|
@@ -149,10 +153,6 @@ declare const Cascader: {
|
|
|
149
153
|
searchDebounce: {
|
|
150
154
|
type: import('vue').PropType<number>;
|
|
151
155
|
};
|
|
152
|
-
multiple: {
|
|
153
|
-
type: import('vue').PropType<boolean>;
|
|
154
|
-
default: boolean;
|
|
155
|
-
};
|
|
156
156
|
searchable: {
|
|
157
157
|
type: import('vue').PropType<boolean>;
|
|
158
158
|
default: boolean;
|
|
@@ -207,8 +207,8 @@ declare const Cascader: {
|
|
|
207
207
|
load: (node: CascaderNode | null, level: number) => Promise<CascaderNode[]>;
|
|
208
208
|
placement: import('../popover/src/types').PopoverPlacement;
|
|
209
209
|
options: CascaderNode[];
|
|
210
|
-
clearable: boolean;
|
|
211
210
|
multiple: boolean;
|
|
211
|
+
clearable: boolean;
|
|
212
212
|
searchable: boolean;
|
|
213
213
|
dropdownOffset: number;
|
|
214
214
|
dropdownWidth: number;
|
|
@@ -243,6 +243,10 @@ declare const Cascader: {
|
|
|
243
243
|
type: import('vue').PropType<CascaderNode[]>;
|
|
244
244
|
default: () => never[];
|
|
245
245
|
};
|
|
246
|
+
multiple: {
|
|
247
|
+
type: import('vue').PropType<boolean>;
|
|
248
|
+
default: boolean;
|
|
249
|
+
};
|
|
246
250
|
clearable: {
|
|
247
251
|
type: import('vue').PropType<boolean>;
|
|
248
252
|
default: boolean;
|
|
@@ -253,10 +257,6 @@ declare const Cascader: {
|
|
|
253
257
|
searchDebounce: {
|
|
254
258
|
type: import('vue').PropType<number>;
|
|
255
259
|
};
|
|
256
|
-
multiple: {
|
|
257
|
-
type: import('vue').PropType<boolean>;
|
|
258
|
-
default: boolean;
|
|
259
|
-
};
|
|
260
260
|
searchable: {
|
|
261
261
|
type: import('vue').PropType<boolean>;
|
|
262
262
|
default: boolean;
|
|
@@ -317,8 +317,8 @@ declare const Cascader: {
|
|
|
317
317
|
load: (node: CascaderNode | null, level: number) => Promise<CascaderNode[]>;
|
|
318
318
|
placement: import('../popover/src/types').PopoverPlacement;
|
|
319
319
|
options: CascaderNode[];
|
|
320
|
-
clearable: boolean;
|
|
321
320
|
multiple: boolean;
|
|
321
|
+
clearable: boolean;
|
|
322
322
|
searchable: boolean;
|
|
323
323
|
dropdownOffset: number;
|
|
324
324
|
dropdownWidth: number;
|
|
@@ -57,8 +57,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
57
57
|
load: (node: CascaderNode | null, level: number) => Promise<CascaderNode[]>;
|
|
58
58
|
placement: import('../../popover/src/types').PopoverPlacement;
|
|
59
59
|
options: CascaderNode[];
|
|
60
|
-
clearable: boolean;
|
|
61
60
|
multiple: boolean;
|
|
61
|
+
clearable: boolean;
|
|
62
62
|
searchable: boolean;
|
|
63
63
|
dropdownOffset: number;
|
|
64
64
|
dropdownWidth: number;
|
|
@@ -2,6 +2,6 @@ import _sfc_main from './TxCascader.vue2.js';
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.js';
|
|
4
4
|
|
|
5
|
-
const TxCascader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const TxCascader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-904ab1b6"]]);
|
|
6
6
|
|
|
7
7
|
export { TxCascader as default };
|