Commit fcd19e13711124ddca6de118018386f3a71eacc7
1 parent
8e03c57b
feat: remove vueuse
Showing
12 changed files
with
11 additions
and
207 deletions
yudao-ui-admin-vue3/build/vite/index.ts
| ... | ... | @@ -32,7 +32,7 @@ export function createVitePlugins(VITE_APP_TITLE: string) { |
| 32 | 32 | PurgeIcons(), |
| 33 | 33 | vueSetupExtend(), |
| 34 | 34 | AutoImport({ |
| 35 | - imports: ['vue', 'vue-router', '@vueuse/core'], | |
| 35 | + imports: ['vue', 'vue-router'], | |
| 36 | 36 | dts: 'src/types/auto-imports.d.ts', |
| 37 | 37 | resolvers: [ElementPlusResolver()], |
| 38 | 38 | eslintrc: { | ... | ... |
yudao-ui-admin-vue3/src/components/ConfigGlobal/src/ConfigGlobal.vue
| ... | ... | @@ -5,6 +5,7 @@ import { useAppStore } from '@/store/modules/app' |
| 5 | 5 | import { setCssVar } from '@/utils' |
| 6 | 6 | import { useDesign } from '@/hooks/web/useDesign' |
| 7 | 7 | import { ElementPlusSize } from '@/types/elementPlus' |
| 8 | +import { useWindowSize } from '@vueuse/core' | |
| 8 | 9 | |
| 9 | 10 | const { variables } = useDesign() |
| 10 | 11 | ... | ... |
yudao-ui-admin-vue3/src/components/Cropper/src/Cropper.vue
| ... | ... | @@ -16,6 +16,7 @@ import Cropper from 'cropperjs' |
| 16 | 16 | import 'cropperjs/dist/cropper.css' |
| 17 | 17 | import { useDesign } from '@/hooks/web/useDesign' |
| 18 | 18 | import { propTypes } from '@/utils/propTypes' |
| 19 | +import { useDebounceFn } from '@vueuse/core' | |
| 19 | 20 | |
| 20 | 21 | type Options = Cropper.Options |
| 21 | 22 | ... | ... |
yudao-ui-admin-vue3/src/components/Sticky/src/Sticky.vue
yudao-ui-admin-vue3/src/components/UploadFile/src/UploadFile.vue
| ... | ... | @@ -37,6 +37,7 @@ import { PropType } from 'vue' |
| 37 | 37 | import { useMessage } from '@/hooks/web/useMessage' |
| 38 | 38 | import { propTypes } from '@/utils/propTypes' |
| 39 | 39 | import { getAccessToken, getTenantId } from '@/utils/auth' |
| 40 | +import type { UploadInstance, UploadUserFile, UploadProps, UploadRawFile } from 'element-plus' | |
| 40 | 41 | |
| 41 | 42 | const message = useMessage() // 消息弹窗 |
| 42 | 43 | const emit = defineEmits(['update:modelValue']) | ... | ... |
yudao-ui-admin-vue3/src/components/XButton/src/XTextButton.vue
yudao-ui-admin-vue3/src/hooks/web/useNProgress.ts
yudao-ui-admin-vue3/src/layout/components/TagsView/src/TagsView.vue
| ... | ... | @@ -9,6 +9,7 @@ import { ContextMenu, ContextMenuExpose } from '@/layout/components/ContextMenu' |
| 9 | 9 | import { useDesign } from '@/hooks/web/useDesign' |
| 10 | 10 | import { ElScrollbar } from 'element-plus' |
| 11 | 11 | import { useScrollTo } from '@/hooks/event/useScrollTo' |
| 12 | +import { useTemplateRefsList } from '@vueuse/core' | |
| 12 | 13 | |
| 13 | 14 | const { getPrefixCls } = useDesign() |
| 14 | 15 | ... | ... |
yudao-ui-admin-vue3/src/types/auto-imports.d.ts
| ... | ... | @@ -2,41 +2,20 @@ |
| 2 | 2 | export {} |
| 3 | 3 | declare global { |
| 4 | 4 | const EffectScope: typeof import('vue')['EffectScope'] |
| 5 | - const asyncComputed: typeof import('@vueuse/core')['asyncComputed'] | |
| 6 | - const autoResetRef: typeof import('@vueuse/core')['autoResetRef'] | |
| 7 | 5 | const computed: typeof import('vue')['computed'] |
| 8 | - const computedAsync: typeof import('@vueuse/core')['computedAsync'] | |
| 9 | - const computedEager: typeof import('@vueuse/core')['computedEager'] | |
| 10 | - const computedInject: typeof import('@vueuse/core')['computedInject'] | |
| 11 | - const computedWithControl: typeof import('@vueuse/core')['computedWithControl'] | |
| 12 | - const controlledComputed: typeof import('@vueuse/core')['controlledComputed'] | |
| 13 | - const controlledRef: typeof import('@vueuse/core')['controlledRef'] | |
| 14 | 6 | const createApp: typeof import('vue')['createApp'] |
| 15 | - const createEventHook: typeof import('@vueuse/core')['createEventHook'] | |
| 16 | - const createGlobalState: typeof import('@vueuse/core')['createGlobalState'] | |
| 17 | - const createInjectionState: typeof import('@vueuse/core')['createInjectionState'] | |
| 18 | - const createReactiveFn: typeof import('@vueuse/core')['createReactiveFn'] | |
| 19 | - const createSharedComposable: typeof import('@vueuse/core')['createSharedComposable'] | |
| 20 | - const createUnrefFn: typeof import('@vueuse/core')['createUnrefFn'] | |
| 21 | 7 | const customRef: typeof import('vue')['customRef'] |
| 22 | - const debouncedRef: typeof import('@vueuse/core')['debouncedRef'] | |
| 23 | - const debouncedWatch: typeof import('@vueuse/core')['debouncedWatch'] | |
| 24 | 8 | const defineAsyncComponent: typeof import('vue')['defineAsyncComponent'] |
| 25 | 9 | const defineComponent: typeof import('vue')['defineComponent'] |
| 26 | - const eagerComputed: typeof import('@vueuse/core')['eagerComputed'] | |
| 27 | 10 | const effectScope: typeof import('vue')['effectScope'] |
| 28 | - const extendRef: typeof import('@vueuse/core')['extendRef'] | |
| 29 | 11 | const getCurrentInstance: typeof import('vue')['getCurrentInstance'] |
| 30 | 12 | const getCurrentScope: typeof import('vue')['getCurrentScope'] |
| 31 | 13 | const h: typeof import('vue')['h'] |
| 32 | - const ignorableWatch: typeof import('@vueuse/core')['ignorableWatch'] | |
| 33 | 14 | const inject: typeof import('vue')['inject'] |
| 34 | - const isDefined: typeof import('@vueuse/core')['isDefined'] | |
| 35 | 15 | const isProxy: typeof import('vue')['isProxy'] |
| 36 | 16 | const isReactive: typeof import('vue')['isReactive'] |
| 37 | 17 | const isReadonly: typeof import('vue')['isReadonly'] |
| 38 | 18 | const isRef: typeof import('vue')['isRef'] |
| 39 | - const makeDestructurable: typeof import('@vueuse/core')['makeDestructurable'] | |
| 40 | 19 | const markRaw: typeof import('vue')['markRaw'] |
| 41 | 20 | const nextTick: typeof import('vue')['nextTick'] |
| 42 | 21 | const onActivated: typeof import('vue')['onActivated'] |
| ... | ... | @@ -45,223 +24,38 @@ declare global { |
| 45 | 24 | const onBeforeRouteUpdate: typeof import('vue-router')['onBeforeRouteUpdate'] |
| 46 | 25 | const onBeforeUnmount: typeof import('vue')['onBeforeUnmount'] |
| 47 | 26 | const onBeforeUpdate: typeof import('vue')['onBeforeUpdate'] |
| 48 | - const onClickOutside: typeof import('@vueuse/core')['onClickOutside'] | |
| 49 | 27 | const onDeactivated: typeof import('vue')['onDeactivated'] |
| 50 | 28 | const onErrorCaptured: typeof import('vue')['onErrorCaptured'] |
| 51 | - const onKeyStroke: typeof import('@vueuse/core')['onKeyStroke'] | |
| 52 | - const onLongPress: typeof import('@vueuse/core')['onLongPress'] | |
| 53 | 29 | const onMounted: typeof import('vue')['onMounted'] |
| 54 | 30 | const onRenderTracked: typeof import('vue')['onRenderTracked'] |
| 55 | 31 | const onRenderTriggered: typeof import('vue')['onRenderTriggered'] |
| 56 | 32 | const onScopeDispose: typeof import('vue')['onScopeDispose'] |
| 57 | 33 | const onServerPrefetch: typeof import('vue')['onServerPrefetch'] |
| 58 | - const onStartTyping: typeof import('@vueuse/core')['onStartTyping'] | |
| 59 | 34 | const onUnmounted: typeof import('vue')['onUnmounted'] |
| 60 | 35 | const onUpdated: typeof import('vue')['onUpdated'] |
| 61 | - const pausableWatch: typeof import('@vueuse/core')['pausableWatch'] | |
| 62 | 36 | const provide: typeof import('vue')['provide'] |
| 63 | - const reactify: typeof import('@vueuse/core')['reactify'] | |
| 64 | - const reactifyObject: typeof import('@vueuse/core')['reactifyObject'] | |
| 65 | 37 | const reactive: typeof import('vue')['reactive'] |
| 66 | - const reactiveComputed: typeof import('@vueuse/core')['reactiveComputed'] | |
| 67 | - const reactiveOmit: typeof import('@vueuse/core')['reactiveOmit'] | |
| 68 | - const reactivePick: typeof import('@vueuse/core')['reactivePick'] | |
| 69 | 38 | const readonly: typeof import('vue')['readonly'] |
| 70 | 39 | const ref: typeof import('vue')['ref'] |
| 71 | - const refAutoReset: typeof import('@vueuse/core')['refAutoReset'] | |
| 72 | - const refDebounced: typeof import('@vueuse/core')['refDebounced'] | |
| 73 | - const refDefault: typeof import('@vueuse/core')['refDefault'] | |
| 74 | - const refThrottled: typeof import('@vueuse/core')['refThrottled'] | |
| 75 | - const refWithControl: typeof import('@vueuse/core')['refWithControl'] | |
| 76 | 40 | const resolveComponent: typeof import('vue')['resolveComponent'] |
| 77 | 41 | const resolveDirective: typeof import('vue')['resolveDirective'] |
| 78 | - const resolveRef: typeof import('@vueuse/core')['resolveRef'] | |
| 79 | - const resolveUnref: typeof import('@vueuse/core')['resolveUnref'] | |
| 80 | 42 | const shallowReactive: typeof import('vue')['shallowReactive'] |
| 81 | 43 | const shallowReadonly: typeof import('vue')['shallowReadonly'] |
| 82 | 44 | const shallowRef: typeof import('vue')['shallowRef'] |
| 83 | - const syncRef: typeof import('@vueuse/core')['syncRef'] | |
| 84 | - const syncRefs: typeof import('@vueuse/core')['syncRefs'] | |
| 85 | - const templateRef: typeof import('@vueuse/core')['templateRef'] | |
| 86 | - const throttledRef: typeof import('@vueuse/core')['throttledRef'] | |
| 87 | - const throttledWatch: typeof import('@vueuse/core')['throttledWatch'] | |
| 88 | 45 | const toRaw: typeof import('vue')['toRaw'] |
| 89 | - const toReactive: typeof import('@vueuse/core')['toReactive'] | |
| 90 | 46 | const toRef: typeof import('vue')['toRef'] |
| 91 | 47 | const toRefs: typeof import('vue')['toRefs'] |
| 92 | 48 | const triggerRef: typeof import('vue')['triggerRef'] |
| 93 | - const tryOnBeforeMount: typeof import('@vueuse/core')['tryOnBeforeMount'] | |
| 94 | - const tryOnBeforeUnmount: typeof import('@vueuse/core')['tryOnBeforeUnmount'] | |
| 95 | - const tryOnMounted: typeof import('@vueuse/core')['tryOnMounted'] | |
| 96 | - const tryOnScopeDispose: typeof import('@vueuse/core')['tryOnScopeDispose'] | |
| 97 | - const tryOnUnmounted: typeof import('@vueuse/core')['tryOnUnmounted'] | |
| 98 | 49 | const unref: typeof import('vue')['unref'] |
| 99 | - const unrefElement: typeof import('@vueuse/core')['unrefElement'] | |
| 100 | - const until: typeof import('@vueuse/core')['until'] | |
| 101 | - const useActiveElement: typeof import('@vueuse/core')['useActiveElement'] | |
| 102 | - const useArrayEvery: typeof import('@vueuse/core')['useArrayEvery'] | |
| 103 | - const useArrayFilter: typeof import('@vueuse/core')['useArrayFilter'] | |
| 104 | - const useArrayFind: typeof import('@vueuse/core')['useArrayFind'] | |
| 105 | - const useArrayFindIndex: typeof import('@vueuse/core')['useArrayFindIndex'] | |
| 106 | - const useArrayJoin: typeof import('@vueuse/core')['useArrayJoin'] | |
| 107 | - const useArrayMap: typeof import('@vueuse/core')['useArrayMap'] | |
| 108 | - const useArrayReduce: typeof import('@vueuse/core')['useArrayReduce'] | |
| 109 | - const useArraySome: typeof import('@vueuse/core')['useArraySome'] | |
| 110 | - const useArrayUnique: typeof import('@vueuse/core')['useArrayUnique'] | |
| 111 | - const useAsyncQueue: typeof import('@vueuse/core')['useAsyncQueue'] | |
| 112 | - const useAsyncState: typeof import('@vueuse/core')['useAsyncState'] | |
| 113 | 50 | const useAttrs: typeof import('vue')['useAttrs'] |
| 114 | - const useBase64: typeof import('@vueuse/core')['useBase64'] | |
| 115 | - const useBattery: typeof import('@vueuse/core')['useBattery'] | |
| 116 | - const useBluetooth: typeof import('@vueuse/core')['useBluetooth'] | |
| 117 | - const useBreakpoints: typeof import('@vueuse/core')['useBreakpoints'] | |
| 118 | - const useBroadcastChannel: typeof import('@vueuse/core')['useBroadcastChannel'] | |
| 119 | - const useBrowserLocation: typeof import('@vueuse/core')['useBrowserLocation'] | |
| 120 | - const useCached: typeof import('@vueuse/core')['useCached'] | |
| 121 | - const useClipboard: typeof import('@vueuse/core')['useClipboard'] | |
| 122 | - const useCloned: typeof import('@vueuse/core')['useCloned'] | |
| 123 | - const useColorMode: typeof import('@vueuse/core')['useColorMode'] | |
| 124 | - const useConfirmDialog: typeof import('@vueuse/core')['useConfirmDialog'] | |
| 125 | - const useCounter: typeof import('@vueuse/core')['useCounter'] | |
| 126 | 51 | const useCssModule: typeof import('vue')['useCssModule'] |
| 127 | - const useCssVar: typeof import('@vueuse/core')['useCssVar'] | |
| 128 | 52 | const useCssVars: typeof import('vue')['useCssVars'] |
| 129 | - const useCurrentElement: typeof import('@vueuse/core')['useCurrentElement'] | |
| 130 | - const useCycleList: typeof import('@vueuse/core')['useCycleList'] | |
| 131 | - const useDark: typeof import('@vueuse/core')['useDark'] | |
| 132 | - const useDateFormat: typeof import('@vueuse/core')['useDateFormat'] | |
| 133 | - const useDebounce: typeof import('@vueuse/core')['useDebounce'] | |
| 134 | - const useDebounceFn: typeof import('@vueuse/core')['useDebounceFn'] | |
| 135 | - const useDebouncedRefHistory: typeof import('@vueuse/core')['useDebouncedRefHistory'] | |
| 136 | - const useDeviceMotion: typeof import('@vueuse/core')['useDeviceMotion'] | |
| 137 | - const useDeviceOrientation: typeof import('@vueuse/core')['useDeviceOrientation'] | |
| 138 | - const useDevicePixelRatio: typeof import('@vueuse/core')['useDevicePixelRatio'] | |
| 139 | - const useDevicesList: typeof import('@vueuse/core')['useDevicesList'] | |
| 140 | - const useDisplayMedia: typeof import('@vueuse/core')['useDisplayMedia'] | |
| 141 | - const useDocumentVisibility: typeof import('@vueuse/core')['useDocumentVisibility'] | |
| 142 | - const useDraggable: typeof import('@vueuse/core')['useDraggable'] | |
| 143 | - const useDropZone: typeof import('@vueuse/core')['useDropZone'] | |
| 144 | - const useElementBounding: typeof import('@vueuse/core')['useElementBounding'] | |
| 145 | - const useElementByPoint: typeof import('@vueuse/core')['useElementByPoint'] | |
| 146 | - const useElementHover: typeof import('@vueuse/core')['useElementHover'] | |
| 147 | - const useElementSize: typeof import('@vueuse/core')['useElementSize'] | |
| 148 | - const useElementVisibility: typeof import('@vueuse/core')['useElementVisibility'] | |
| 149 | - const useEventBus: typeof import('@vueuse/core')['useEventBus'] | |
| 150 | - const useEventListener: typeof import('@vueuse/core')['useEventListener'] | |
| 151 | - const useEventSource: typeof import('@vueuse/core')['useEventSource'] | |
| 152 | - const useEyeDropper: typeof import('@vueuse/core')['useEyeDropper'] | |
| 153 | - const useFavicon: typeof import('@vueuse/core')['useFavicon'] | |
| 154 | - const useFetch: typeof import('@vueuse/core')['useFetch'] | |
| 155 | - const useFileDialog: typeof import('@vueuse/core')['useFileDialog'] | |
| 156 | - const useFileSystemAccess: typeof import('@vueuse/core')['useFileSystemAccess'] | |
| 157 | - const useFocus: typeof import('@vueuse/core')['useFocus'] | |
| 158 | - const useFocusWithin: typeof import('@vueuse/core')['useFocusWithin'] | |
| 159 | - const useFps: typeof import('@vueuse/core')['useFps'] | |
| 160 | - const useFullscreen: typeof import('@vueuse/core')['useFullscreen'] | |
| 161 | - const useGamepad: typeof import('@vueuse/core')['useGamepad'] | |
| 162 | - const useGeolocation: typeof import('@vueuse/core')['useGeolocation'] | |
| 163 | - const useIdle: typeof import('@vueuse/core')['useIdle'] | |
| 164 | - const useImage: typeof import('@vueuse/core')['useImage'] | |
| 165 | - const useInfiniteScroll: typeof import('@vueuse/core')['useInfiniteScroll'] | |
| 166 | - const useIntersectionObserver: typeof import('@vueuse/core')['useIntersectionObserver'] | |
| 167 | - const useInterval: typeof import('@vueuse/core')['useInterval'] | |
| 168 | - const useIntervalFn: typeof import('@vueuse/core')['useIntervalFn'] | |
| 169 | - const useKeyModifier: typeof import('@vueuse/core')['useKeyModifier'] | |
| 170 | - const useLastChanged: typeof import('@vueuse/core')['useLastChanged'] | |
| 171 | 53 | const useLink: typeof import('vue-router')['useLink'] |
| 172 | - const useLocalStorage: typeof import('@vueuse/core')['useLocalStorage'] | |
| 173 | - const useMagicKeys: typeof import('@vueuse/core')['useMagicKeys'] | |
| 174 | - const useManualRefHistory: typeof import('@vueuse/core')['useManualRefHistory'] | |
| 175 | - const useMediaControls: typeof import('@vueuse/core')['useMediaControls'] | |
| 176 | - const useMediaQuery: typeof import('@vueuse/core')['useMediaQuery'] | |
| 177 | - const useMemoize: typeof import('@vueuse/core')['useMemoize'] | |
| 178 | - const useMemory: typeof import('@vueuse/core')['useMemory'] | |
| 179 | - const useMounted: typeof import('@vueuse/core')['useMounted'] | |
| 180 | - const useMouse: typeof import('@vueuse/core')['useMouse'] | |
| 181 | - const useMouseInElement: typeof import('@vueuse/core')['useMouseInElement'] | |
| 182 | - const useMousePressed: typeof import('@vueuse/core')['useMousePressed'] | |
| 183 | - const useMutationObserver: typeof import('@vueuse/core')['useMutationObserver'] | |
| 184 | - const useNavigatorLanguage: typeof import('@vueuse/core')['useNavigatorLanguage'] | |
| 185 | - const useNetwork: typeof import('@vueuse/core')['useNetwork'] | |
| 186 | - const useNow: typeof import('@vueuse/core')['useNow'] | |
| 187 | - const useObjectUrl: typeof import('@vueuse/core')['useObjectUrl'] | |
| 188 | - const useOffsetPagination: typeof import('@vueuse/core')['useOffsetPagination'] | |
| 189 | - const useOnline: typeof import('@vueuse/core')['useOnline'] | |
| 190 | - const usePageLeave: typeof import('@vueuse/core')['usePageLeave'] | |
| 191 | - const useParallax: typeof import('@vueuse/core')['useParallax'] | |
| 192 | - const usePermission: typeof import('@vueuse/core')['usePermission'] | |
| 193 | - const usePointer: typeof import('@vueuse/core')['usePointer'] | |
| 194 | - const usePointerSwipe: typeof import('@vueuse/core')['usePointerSwipe'] | |
| 195 | - const usePreferredColorScheme: typeof import('@vueuse/core')['usePreferredColorScheme'] | |
| 196 | - const usePreferredContrast: typeof import('@vueuse/core')['usePreferredContrast'] | |
| 197 | - const usePreferredDark: typeof import('@vueuse/core')['usePreferredDark'] | |
| 198 | - const usePreferredLanguages: typeof import('@vueuse/core')['usePreferredLanguages'] | |
| 199 | - const usePreferredReducedMotion: typeof import('@vueuse/core')['usePreferredReducedMotion'] | |
| 200 | - const useRafFn: typeof import('@vueuse/core')['useRafFn'] | |
| 201 | - const useRefHistory: typeof import('@vueuse/core')['useRefHistory'] | |
| 202 | - const useResizeObserver: typeof import('@vueuse/core')['useResizeObserver'] | |
| 203 | 54 | const useRoute: typeof import('vue-router')['useRoute'] |
| 204 | 55 | const useRouter: typeof import('vue-router')['useRouter'] |
| 205 | - const useScreenOrientation: typeof import('@vueuse/core')['useScreenOrientation'] | |
| 206 | - const useScreenSafeArea: typeof import('@vueuse/core')['useScreenSafeArea'] | |
| 207 | - const useScriptTag: typeof import('@vueuse/core')['useScriptTag'] | |
| 208 | - const useScroll: typeof import('@vueuse/core')['useScroll'] | |
| 209 | - const useScrollLock: typeof import('@vueuse/core')['useScrollLock'] | |
| 210 | - const useSessionStorage: typeof import('@vueuse/core')['useSessionStorage'] | |
| 211 | - const useShare: typeof import('@vueuse/core')['useShare'] | |
| 212 | 56 | const useSlots: typeof import('vue')['useSlots'] |
| 213 | - const useSorted: typeof import('@vueuse/core')['useSorted'] | |
| 214 | - const useSpeechRecognition: typeof import('@vueuse/core')['useSpeechRecognition'] | |
| 215 | - const useSpeechSynthesis: typeof import('@vueuse/core')['useSpeechSynthesis'] | |
| 216 | - const useStepper: typeof import('@vueuse/core')['useStepper'] | |
| 217 | - const useStorage: typeof import('@vueuse/core')['useStorage'] | |
| 218 | - const useStorageAsync: typeof import('@vueuse/core')['useStorageAsync'] | |
| 219 | - const useStyleTag: typeof import('@vueuse/core')['useStyleTag'] | |
| 220 | - const useSupported: typeof import('@vueuse/core')['useSupported'] | |
| 221 | - const useSwipe: typeof import('@vueuse/core')['useSwipe'] | |
| 222 | - const useTemplateRefsList: typeof import('@vueuse/core')['useTemplateRefsList'] | |
| 223 | - const useTextDirection: typeof import('@vueuse/core')['useTextDirection'] | |
| 224 | - const useTextSelection: typeof import('@vueuse/core')['useTextSelection'] | |
| 225 | - const useTextareaAutosize: typeof import('@vueuse/core')['useTextareaAutosize'] | |
| 226 | - const useThrottle: typeof import('@vueuse/core')['useThrottle'] | |
| 227 | - const useThrottleFn: typeof import('@vueuse/core')['useThrottleFn'] | |
| 228 | - const useThrottledRefHistory: typeof import('@vueuse/core')['useThrottledRefHistory'] | |
| 229 | - const useTimeAgo: typeof import('@vueuse/core')['useTimeAgo'] | |
| 230 | - const useTimeout: typeof import('@vueuse/core')['useTimeout'] | |
| 231 | - const useTimeoutFn: typeof import('@vueuse/core')['useTimeoutFn'] | |
| 232 | - const useTimeoutPoll: typeof import('@vueuse/core')['useTimeoutPoll'] | |
| 233 | - const useTimestamp: typeof import('@vueuse/core')['useTimestamp'] | |
| 234 | - const useTitle: typeof import('@vueuse/core')['useTitle'] | |
| 235 | - const useToNumber: typeof import('@vueuse/core')['useToNumber'] | |
| 236 | - const useToString: typeof import('@vueuse/core')['useToString'] | |
| 237 | - const useToggle: typeof import('@vueuse/core')['useToggle'] | |
| 238 | - const useTransition: typeof import('@vueuse/core')['useTransition'] | |
| 239 | - const useUrlSearchParams: typeof import('@vueuse/core')['useUrlSearchParams'] | |
| 240 | - const useUserMedia: typeof import('@vueuse/core')['useUserMedia'] | |
| 241 | - const useVModel: typeof import('@vueuse/core')['useVModel'] | |
| 242 | - const useVModels: typeof import('@vueuse/core')['useVModels'] | |
| 243 | - const useVibrate: typeof import('@vueuse/core')['useVibrate'] | |
| 244 | - const useVirtualList: typeof import('@vueuse/core')['useVirtualList'] | |
| 245 | - const useWakeLock: typeof import('@vueuse/core')['useWakeLock'] | |
| 246 | - const useWebNotification: typeof import('@vueuse/core')['useWebNotification'] | |
| 247 | - const useWebSocket: typeof import('@vueuse/core')['useWebSocket'] | |
| 248 | - const useWebWorker: typeof import('@vueuse/core')['useWebWorker'] | |
| 249 | - const useWebWorkerFn: typeof import('@vueuse/core')['useWebWorkerFn'] | |
| 250 | - const useWindowFocus: typeof import('@vueuse/core')['useWindowFocus'] | |
| 251 | - const useWindowScroll: typeof import('@vueuse/core')['useWindowScroll'] | |
| 252 | - const useWindowSize: typeof import('@vueuse/core')['useWindowSize'] | |
| 253 | 57 | const watch: typeof import('vue')['watch'] |
| 254 | - const watchArray: typeof import('@vueuse/core')['watchArray'] | |
| 255 | - const watchAtMost: typeof import('@vueuse/core')['watchAtMost'] | |
| 256 | - const watchDebounced: typeof import('@vueuse/core')['watchDebounced'] | |
| 257 | 58 | const watchEffect: typeof import('vue')['watchEffect'] |
| 258 | - const watchIgnorable: typeof import('@vueuse/core')['watchIgnorable'] | |
| 259 | - const watchOnce: typeof import('@vueuse/core')['watchOnce'] | |
| 260 | - const watchPausable: typeof import('@vueuse/core')['watchPausable'] | |
| 261 | 59 | const watchPostEffect: typeof import('vue')['watchPostEffect'] |
| 262 | 60 | const watchSyncEffect: typeof import('vue')['watchSyncEffect'] |
| 263 | - const watchThrottled: typeof import('@vueuse/core')['watchThrottled'] | |
| 264 | - const watchTriggerable: typeof import('@vueuse/core')['watchTriggerable'] | |
| 265 | - const watchWithFilter: typeof import('@vueuse/core')['watchWithFilter'] | |
| 266 | - const whenever: typeof import('@vueuse/core')['whenever'] | |
| 267 | 61 | } | ... | ... |
yudao-ui-admin-vue3/src/views/infra/codegen/components/Preview.vue
| ... | ... | @@ -30,6 +30,7 @@ |
| 30 | 30 | </XModal> |
| 31 | 31 | </template> |
| 32 | 32 | <script setup lang="ts"> |
| 33 | +import { useClipboard } from '@vueuse/core' | |
| 33 | 34 | import { useI18n } from '@/hooks/web/useI18n' |
| 34 | 35 | import { useMessage } from '@/hooks/web/useMessage' |
| 35 | 36 | import { handleTree2 } from '@/utils/tree' | ... | ... |
yudao-ui-admin-vue3/src/views/infra/fileList/index.vue
| ... | ... | @@ -90,6 +90,7 @@ import type { UploadInstance, UploadRawFile } from 'element-plus' |
| 90 | 90 | import { allSchemas } from './fileList.data' |
| 91 | 91 | import * as FileApi from '@/api/infra/fileList' |
| 92 | 92 | import { getAccessToken, getTenantId } from '@/utils/auth' |
| 93 | +import { useClipboard } from '@vueuse/core' | |
| 93 | 94 | |
| 94 | 95 | const { t } = useI18n() // 国际化 |
| 95 | 96 | const message = useMessage() // 消息弹窗 | ... | ... |
yudao-ui-admin-vue3/src/views/infra/webSocket/index.vue