@ipa-community/element-plus 0.0.2

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 ADDED
@@ -0,0 +1,87 @@
1
+ # vite7 + vitest + i18n + prettier + eslint + unplugin... + husky
2
+
3
+ This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4
+
5
+ Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
6
+
7
+ 1. [unplugin-vue-component](https://github.com/unplugin/unplugin-vue-components#readme)
8
+ 2. [unplugin-auto-import](https://github.com/unplugin/unplugin-auto-import)
9
+ 3. [unplugin-icon](https://github.com/unplugin/unplugin-icons)
10
+ 4. [unplugin-vue-router](https://github.com/posva/unplugin-vue-router)
11
+ 5. [vue-i18n](https://vue-i18n.intlify.dev/guide/essentials/started.html)
12
+ 6. [vueuse](https://vueuse.org/)
13
+ 7. [lodash-es](https://lodash.com/)
14
+ 8. [commitlint](https://commitlint.js.org/guides/getting-started.html)
15
+ 9. [prettier](https://prettier.io/)
16
+ 10. [eslint](https://zh-hans.eslint.org/docs/latest/use/getting-started)
17
+ 11. [vitest](https://cn.vitest.dev/)
18
+ 12. [simple-git-hooks](https://github.com/toplenboren/simple-git-hooks/tree/master)
19
+ 13. [husky](https://typicode.github.io/husky)
20
+ 14. [release-it](https://github.com/release-it/release-it)
21
+
22
+ ## branch
23
+
24
+ 1. `branch main` is the common branch
25
+ 2. `branch feat/main/element-plus` = `branch main` + `element-plus ui framework`
26
+ 3. `branch feat/main/naive-ui` = `branch main` + `naive ui framework`
27
+
28
+ ## tips
29
+
30
+ 1. `import { createApp } from "@/shared";`
31
+
32
+ ## usage
33
+
34
+ 1. install dependencies
35
+
36
+ ```bash
37
+ bun i
38
+ ```
39
+
40
+ 2. run dev server
41
+
42
+ ```bash
43
+ bun run dev
44
+ ```
45
+
46
+ 3. build library
47
+
48
+ ```bash
49
+ bun run build:lib
50
+ ```
51
+
52
+ 4. build the total project
53
+
54
+ ```bash
55
+ bun run build
56
+ ```
57
+
58
+ or
59
+
60
+ ```bash
61
+ bun run build:hash
62
+ ```
63
+
64
+ 4. run test
65
+
66
+ ```bash
67
+ bun run test
68
+ ```
69
+
70
+ 5. lint and format code
71
+
72
+ ```bash
73
+ bun run lint
74
+ bun run format
75
+ ```
76
+
77
+ 6. release library
78
+
79
+ ```bash
80
+ bun run release
81
+ ```
82
+
83
+ or test release
84
+
85
+ ```bash
86
+ bun run release --dry-run
87
+ ```
@@ -0,0 +1,337 @@
1
+ /* eslint-disable */
2
+ /* prettier-ignore */
3
+ // @ts-nocheck
4
+ // noinspection JSUnusedGlobalSymbols
5
+ // Generated by unplugin-auto-import
6
+ // biome-ignore lint: disable
7
+ export {}
8
+ declare global {
9
+ const EffectScope: typeof import('vue').EffectScope
10
+ const acceptHMRUpdate: typeof import('pinia').acceptHMRUpdate
11
+ const asyncComputed: typeof import('@vueuse/core').asyncComputed
12
+ const autoResetRef: typeof import('@vueuse/core').autoResetRef
13
+ const computed: typeof import('vue').computed
14
+ const computedAsync: typeof import('@vueuse/core').computedAsync
15
+ const computedEager: typeof import('@vueuse/core').computedEager
16
+ const computedInject: typeof import('@vueuse/core').computedInject
17
+ const computedWithControl: typeof import('@vueuse/core').computedWithControl
18
+ const controlledComputed: typeof import('@vueuse/core').controlledComputed
19
+ const controlledRef: typeof import('@vueuse/core').controlledRef
20
+ const createApp: typeof import('vue').createApp
21
+ const createEventHook: typeof import('@vueuse/core').createEventHook
22
+ const createGenericProjection: typeof import('@vueuse/math').createGenericProjection
23
+ const createGlobalState: typeof import('@vueuse/core').createGlobalState
24
+ const createInjectionState: typeof import('@vueuse/core').createInjectionState
25
+ const createPinia: typeof import('pinia').createPinia
26
+ const createProjection: typeof import('@vueuse/math').createProjection
27
+ const createReactiveFn: typeof import('@vueuse/core').createReactiveFn
28
+ const createRef: typeof import('@vueuse/core').createRef
29
+ const createReusableTemplate: typeof import('@vueuse/core').createReusableTemplate
30
+ const createSharedComposable: typeof import('@vueuse/core').createSharedComposable
31
+ const createTemplatePromise: typeof import('@vueuse/core').createTemplatePromise
32
+ const createUnrefFn: typeof import('@vueuse/core').createUnrefFn
33
+ const customRef: typeof import('vue').customRef
34
+ const debouncedRef: typeof import('@vueuse/core').debouncedRef
35
+ const debouncedWatch: typeof import('@vueuse/core').debouncedWatch
36
+ const defineAsyncComponent: typeof import('vue').defineAsyncComponent
37
+ const defineComponent: typeof import('vue').defineComponent
38
+ const defineStore: typeof import('pinia').defineStore
39
+ const eagerComputed: typeof import('@vueuse/core').eagerComputed
40
+ const effectScope: typeof import('vue').effectScope
41
+ const extendRef: typeof import('@vueuse/core').extendRef
42
+ const getActivePinia: typeof import('pinia').getActivePinia
43
+ const getCurrentInstance: typeof import('vue').getCurrentInstance
44
+ const getCurrentScope: typeof import('vue').getCurrentScope
45
+ const getCurrentWatcher: typeof import('vue').getCurrentWatcher
46
+ const h: typeof import('vue').h
47
+ const ignorableWatch: typeof import('@vueuse/core').ignorableWatch
48
+ const inject: typeof import('vue').inject
49
+ const injectLocal: typeof import('@vueuse/core').injectLocal
50
+ const isDefined: typeof import('@vueuse/core').isDefined
51
+ const isProxy: typeof import('vue').isProxy
52
+ const isReactive: typeof import('vue').isReactive
53
+ const isReadonly: typeof import('vue').isReadonly
54
+ const isRef: typeof import('vue').isRef
55
+ const isShallow: typeof import('vue').isShallow
56
+ const logicAnd: typeof import('@vueuse/math').logicAnd
57
+ const logicNot: typeof import('@vueuse/math').logicNot
58
+ const logicOr: typeof import('@vueuse/math').logicOr
59
+ const makeDestructurable: typeof import('@vueuse/core').makeDestructurable
60
+ const mapActions: typeof import('pinia').mapActions
61
+ const mapGetters: typeof import('pinia').mapGetters
62
+ const mapState: typeof import('pinia').mapState
63
+ const mapStores: typeof import('pinia').mapStores
64
+ const mapWritableState: typeof import('pinia').mapWritableState
65
+ const markRaw: typeof import('vue').markRaw
66
+ const nextTick: typeof import('vue').nextTick
67
+ const onActivated: typeof import('vue').onActivated
68
+ const onBeforeMount: typeof import('vue').onBeforeMount
69
+ const onBeforeRouteLeave: typeof import('vue-router').onBeforeRouteLeave
70
+ const onBeforeRouteUpdate: typeof import('vue-router').onBeforeRouteUpdate
71
+ const onBeforeUnmount: typeof import('vue').onBeforeUnmount
72
+ const onBeforeUpdate: typeof import('vue').onBeforeUpdate
73
+ const onClickOutside: typeof import('@vueuse/core').onClickOutside
74
+ const onDeactivated: typeof import('vue').onDeactivated
75
+ const onElementRemoval: typeof import('@vueuse/core').onElementRemoval
76
+ const onErrorCaptured: typeof import('vue').onErrorCaptured
77
+ const onKeyStroke: typeof import('@vueuse/core').onKeyStroke
78
+ const onLongPress: typeof import('@vueuse/core').onLongPress
79
+ const onMounted: typeof import('vue').onMounted
80
+ const onRenderTracked: typeof import('vue').onRenderTracked
81
+ const onRenderTriggered: typeof import('vue').onRenderTriggered
82
+ const onScopeDispose: typeof import('vue').onScopeDispose
83
+ const onServerPrefetch: typeof import('vue').onServerPrefetch
84
+ const onStartTyping: typeof import('@vueuse/core').onStartTyping
85
+ const onUnmounted: typeof import('vue').onUnmounted
86
+ const onUpdated: typeof import('vue').onUpdated
87
+ const onWatcherCleanup: typeof import('vue').onWatcherCleanup
88
+ const pausableWatch: typeof import('@vueuse/core').pausableWatch
89
+ const provide: typeof import('vue').provide
90
+ const provideLocal: typeof import('@vueuse/core').provideLocal
91
+ const reactify: typeof import('@vueuse/core').reactify
92
+ const reactifyObject: typeof import('@vueuse/core').reactifyObject
93
+ const reactive: typeof import('vue').reactive
94
+ const reactiveComputed: typeof import('@vueuse/core').reactiveComputed
95
+ const reactiveOmit: typeof import('@vueuse/core').reactiveOmit
96
+ const reactivePick: typeof import('@vueuse/core').reactivePick
97
+ const readonly: typeof import('vue').readonly
98
+ const ref: typeof import('vue').ref
99
+ const refAutoReset: typeof import('@vueuse/core').refAutoReset
100
+ const refDebounced: typeof import('@vueuse/core').refDebounced
101
+ const refDefault: typeof import('@vueuse/core').refDefault
102
+ const refThrottled: typeof import('@vueuse/core').refThrottled
103
+ const refWithControl: typeof import('@vueuse/core').refWithControl
104
+ const resolveComponent: typeof import('vue').resolveComponent
105
+ const resolveRef: typeof import('@vueuse/core').resolveRef
106
+ const resolveUnref: typeof import('@vueuse/core').resolveUnref
107
+ const setActivePinia: typeof import('pinia').setActivePinia
108
+ const setMapStoreSuffix: typeof import('pinia').setMapStoreSuffix
109
+ const shallowReactive: typeof import('vue').shallowReactive
110
+ const shallowReadonly: typeof import('vue').shallowReadonly
111
+ const shallowRef: typeof import('vue').shallowRef
112
+ const storeToRefs: typeof import('pinia').storeToRefs
113
+ const syncRef: typeof import('@vueuse/core').syncRef
114
+ const syncRefs: typeof import('@vueuse/core').syncRefs
115
+ const templateRef: typeof import('@vueuse/core').templateRef
116
+ const throttledRef: typeof import('@vueuse/core').throttledRef
117
+ const throttledWatch: typeof import('@vueuse/core').throttledWatch
118
+ const toRaw: typeof import('vue').toRaw
119
+ const toReactive: typeof import('@vueuse/core').toReactive
120
+ const toRef: typeof import('vue').toRef
121
+ const toRefs: typeof import('vue').toRefs
122
+ const toValue: typeof import('vue').toValue
123
+ const triggerRef: typeof import('vue').triggerRef
124
+ const tryOnBeforeMount: typeof import('@vueuse/core').tryOnBeforeMount
125
+ const tryOnBeforeUnmount: typeof import('@vueuse/core').tryOnBeforeUnmount
126
+ const tryOnMounted: typeof import('@vueuse/core').tryOnMounted
127
+ const tryOnScopeDispose: typeof import('@vueuse/core').tryOnScopeDispose
128
+ const tryOnUnmounted: typeof import('@vueuse/core').tryOnUnmounted
129
+ const unref: typeof import('vue').unref
130
+ const unrefElement: typeof import('@vueuse/core').unrefElement
131
+ const until: typeof import('@vueuse/core').until
132
+ const useAbs: typeof import('@vueuse/math').useAbs
133
+ const useActiveElement: typeof import('@vueuse/core').useActiveElement
134
+ const useAnimate: typeof import('@vueuse/core').useAnimate
135
+ const useArrayDifference: typeof import('@vueuse/core').useArrayDifference
136
+ const useArrayEvery: typeof import('@vueuse/core').useArrayEvery
137
+ const useArrayFilter: typeof import('@vueuse/core').useArrayFilter
138
+ const useArrayFind: typeof import('@vueuse/core').useArrayFind
139
+ const useArrayFindIndex: typeof import('@vueuse/core').useArrayFindIndex
140
+ const useArrayFindLast: typeof import('@vueuse/core').useArrayFindLast
141
+ const useArrayIncludes: typeof import('@vueuse/core').useArrayIncludes
142
+ const useArrayJoin: typeof import('@vueuse/core').useArrayJoin
143
+ const useArrayMap: typeof import('@vueuse/core').useArrayMap
144
+ const useArrayReduce: typeof import('@vueuse/core').useArrayReduce
145
+ const useArraySome: typeof import('@vueuse/core').useArraySome
146
+ const useArrayUnique: typeof import('@vueuse/core').useArrayUnique
147
+ const useAsyncQueue: typeof import('@vueuse/core').useAsyncQueue
148
+ const useAsyncState: typeof import('@vueuse/core').useAsyncState
149
+ const useAttrs: typeof import('vue').useAttrs
150
+ const useAverage: typeof import('@vueuse/math').useAverage
151
+ const useBase64: typeof import('@vueuse/core').useBase64
152
+ const useBattery: typeof import('@vueuse/core').useBattery
153
+ const useBluetooth: typeof import('@vueuse/core').useBluetooth
154
+ const useBreakpoints: typeof import('@vueuse/core').useBreakpoints
155
+ const useBroadcastChannel: typeof import('@vueuse/core').useBroadcastChannel
156
+ const useBrowserLocation: typeof import('@vueuse/core').useBrowserLocation
157
+ const useCached: typeof import('@vueuse/core').useCached
158
+ const useCeil: typeof import('@vueuse/math').useCeil
159
+ const useClamp: typeof import('@vueuse/math').useClamp
160
+ const useClipboard: typeof import('@vueuse/core').useClipboard
161
+ const useClipboardItems: typeof import('@vueuse/core').useClipboardItems
162
+ const useCloned: typeof import('@vueuse/core').useCloned
163
+ const useColorMode: typeof import('@vueuse/core').useColorMode
164
+ const useConfirmDialog: typeof import('@vueuse/core').useConfirmDialog
165
+ const useCountdown: typeof import('@vueuse/core').useCountdown
166
+ const useCounter: typeof import('@vueuse/core').useCounter
167
+ const useCssModule: typeof import('vue').useCssModule
168
+ const useCssVar: typeof import('@vueuse/core').useCssVar
169
+ const useCssVars: typeof import('vue').useCssVars
170
+ const useCurrentElement: typeof import('@vueuse/core').useCurrentElement
171
+ const useCycleList: typeof import('@vueuse/core').useCycleList
172
+ const useDark: typeof import('@vueuse/core').useDark
173
+ const useDateFormat: typeof import('@vueuse/core').useDateFormat
174
+ const useDebounce: typeof import('@vueuse/core').useDebounce
175
+ const useDebounceFn: typeof import('@vueuse/core').useDebounceFn
176
+ const useDebouncedRefHistory: typeof import('@vueuse/core').useDebouncedRefHistory
177
+ const useDeviceMotion: typeof import('@vueuse/core').useDeviceMotion
178
+ const useDeviceOrientation: typeof import('@vueuse/core').useDeviceOrientation
179
+ const useDevicePixelRatio: typeof import('@vueuse/core').useDevicePixelRatio
180
+ const useDevicesList: typeof import('@vueuse/core').useDevicesList
181
+ const useDisplayMedia: typeof import('@vueuse/core').useDisplayMedia
182
+ const useDocumentVisibility: typeof import('@vueuse/core').useDocumentVisibility
183
+ const useDraggable: typeof import('@vueuse/core').useDraggable
184
+ const useDropZone: typeof import('@vueuse/core').useDropZone
185
+ const useElementBounding: typeof import('@vueuse/core').useElementBounding
186
+ const useElementByPoint: typeof import('@vueuse/core').useElementByPoint
187
+ const useElementHover: typeof import('@vueuse/core').useElementHover
188
+ const useElementSize: typeof import('@vueuse/core').useElementSize
189
+ const useElementVisibility: typeof import('@vueuse/core').useElementVisibility
190
+ const useEventBus: typeof import('@vueuse/core').useEventBus
191
+ const useEventListener: typeof import('@vueuse/core').useEventListener
192
+ const useEventSource: typeof import('@vueuse/core').useEventSource
193
+ const useEyeDropper: typeof import('@vueuse/core').useEyeDropper
194
+ const useFavicon: typeof import('@vueuse/core').useFavicon
195
+ const useFetch: typeof import('@vueuse/core').useFetch
196
+ const useFileDialog: typeof import('@vueuse/core').useFileDialog
197
+ const useFileSystemAccess: typeof import('@vueuse/core').useFileSystemAccess
198
+ const useFloor: typeof import('@vueuse/math').useFloor
199
+ const useFocus: typeof import('@vueuse/core').useFocus
200
+ const useFocusWithin: typeof import('@vueuse/core').useFocusWithin
201
+ const useFps: typeof import('@vueuse/core').useFps
202
+ const useFullscreen: typeof import('@vueuse/core').useFullscreen
203
+ const useGamepad: typeof import('@vueuse/core').useGamepad
204
+ const useGeolocation: typeof import('@vueuse/core').useGeolocation
205
+ const useHead: typeof import('@vueuse/head').useHead
206
+ const useId: typeof import('vue').useId
207
+ const useIdle: typeof import('@vueuse/core').useIdle
208
+ const useImage: typeof import('@vueuse/core').useImage
209
+ const useInfiniteScroll: typeof import('@vueuse/core').useInfiniteScroll
210
+ const useIntersectionObserver: typeof import('@vueuse/core').useIntersectionObserver
211
+ const useInterval: typeof import('@vueuse/core').useInterval
212
+ const useIntervalFn: typeof import('@vueuse/core').useIntervalFn
213
+ const useKeyModifier: typeof import('@vueuse/core').useKeyModifier
214
+ const useLastChanged: typeof import('@vueuse/core').useLastChanged
215
+ const useLink: typeof import('vue-router').useLink
216
+ const useLocalStorage: typeof import('@vueuse/core').useLocalStorage
217
+ const useMagicKeys: typeof import('@vueuse/core').useMagicKeys
218
+ const useManualRefHistory: typeof import('@vueuse/core').useManualRefHistory
219
+ const useMath: typeof import('@vueuse/math').useMath
220
+ const useMax: typeof import('@vueuse/math').useMax
221
+ const useMediaControls: typeof import('@vueuse/core').useMediaControls
222
+ const useMediaQuery: typeof import('@vueuse/core').useMediaQuery
223
+ const useMemoize: typeof import('@vueuse/core').useMemoize
224
+ const useMemory: typeof import('@vueuse/core').useMemory
225
+ const useMin: typeof import('@vueuse/math').useMin
226
+ const useModel: typeof import('vue').useModel
227
+ const useMounted: typeof import('@vueuse/core').useMounted
228
+ const useMouse: typeof import('@vueuse/core').useMouse
229
+ const useMouseInElement: typeof import('@vueuse/core').useMouseInElement
230
+ const useMousePressed: typeof import('@vueuse/core').useMousePressed
231
+ const useMutationObserver: typeof import('@vueuse/core').useMutationObserver
232
+ const useNavigatorLanguage: typeof import('@vueuse/core').useNavigatorLanguage
233
+ const useNetwork: typeof import('@vueuse/core').useNetwork
234
+ const useNow: typeof import('@vueuse/core').useNow
235
+ const useObjectUrl: typeof import('@vueuse/core').useObjectUrl
236
+ const useOffsetPagination: typeof import('@vueuse/core').useOffsetPagination
237
+ const useOnline: typeof import('@vueuse/core').useOnline
238
+ const usePageLeave: typeof import('@vueuse/core').usePageLeave
239
+ const useParallax: typeof import('@vueuse/core').useParallax
240
+ const useParentElement: typeof import('@vueuse/core').useParentElement
241
+ const usePerformanceObserver: typeof import('@vueuse/core').usePerformanceObserver
242
+ const usePermission: typeof import('@vueuse/core').usePermission
243
+ const usePointer: typeof import('@vueuse/core').usePointer
244
+ const usePointerLock: typeof import('@vueuse/core').usePointerLock
245
+ const usePointerSwipe: typeof import('@vueuse/core').usePointerSwipe
246
+ const usePrecision: typeof import('@vueuse/math').usePrecision
247
+ const usePreferredColorScheme: typeof import('@vueuse/core').usePreferredColorScheme
248
+ const usePreferredContrast: typeof import('@vueuse/core').usePreferredContrast
249
+ const usePreferredDark: typeof import('@vueuse/core').usePreferredDark
250
+ const usePreferredLanguages: typeof import('@vueuse/core').usePreferredLanguages
251
+ const usePreferredReducedMotion: typeof import('@vueuse/core').usePreferredReducedMotion
252
+ const usePreferredReducedTransparency: typeof import('@vueuse/core').usePreferredReducedTransparency
253
+ const usePrevious: typeof import('@vueuse/core').usePrevious
254
+ const useProjection: typeof import('@vueuse/math').useProjection
255
+ const useRafFn: typeof import('@vueuse/core').useRafFn
256
+ const useRefHistory: typeof import('@vueuse/core').useRefHistory
257
+ const useResizeObserver: typeof import('@vueuse/core').useResizeObserver
258
+ const useRound: typeof import('@vueuse/math').useRound
259
+ const useRoute: typeof import('vue-router').useRoute
260
+ const useRouter: typeof import('vue-router').useRouter
261
+ const useSSRWidth: typeof import('@vueuse/core').useSSRWidth
262
+ const useScreenOrientation: typeof import('@vueuse/core').useScreenOrientation
263
+ const useScreenSafeArea: typeof import('@vueuse/core').useScreenSafeArea
264
+ const useScriptTag: typeof import('@vueuse/core').useScriptTag
265
+ const useScroll: typeof import('@vueuse/core').useScroll
266
+ const useScrollLock: typeof import('@vueuse/core').useScrollLock
267
+ const useSeoMeta: typeof import('@vueuse/head').useSeoMeta
268
+ const useSessionStorage: typeof import('@vueuse/core').useSessionStorage
269
+ const useShare: typeof import('@vueuse/core').useShare
270
+ const useSlots: typeof import('vue').useSlots
271
+ const useSorted: typeof import('@vueuse/core').useSorted
272
+ const useSpeechRecognition: typeof import('@vueuse/core').useSpeechRecognition
273
+ const useSpeechSynthesis: typeof import('@vueuse/core').useSpeechSynthesis
274
+ const useStepper: typeof import('@vueuse/core').useStepper
275
+ const useStorage: typeof import('@vueuse/core').useStorage
276
+ const useStorageAsync: typeof import('@vueuse/core').useStorageAsync
277
+ const useStyleTag: typeof import('@vueuse/core').useStyleTag
278
+ const useSum: typeof import('@vueuse/math').useSum
279
+ const useSupported: typeof import('@vueuse/core').useSupported
280
+ const useSwipe: typeof import('@vueuse/core').useSwipe
281
+ const useTemplateRef: typeof import('vue').useTemplateRef
282
+ const useTemplateRefsList: typeof import('@vueuse/core').useTemplateRefsList
283
+ const useTextDirection: typeof import('@vueuse/core').useTextDirection
284
+ const useTextSelection: typeof import('@vueuse/core').useTextSelection
285
+ const useTextareaAutosize: typeof import('@vueuse/core').useTextareaAutosize
286
+ const useThrottle: typeof import('@vueuse/core').useThrottle
287
+ const useThrottleFn: typeof import('@vueuse/core').useThrottleFn
288
+ const useThrottledRefHistory: typeof import('@vueuse/core').useThrottledRefHistory
289
+ const useTimeAgo: typeof import('@vueuse/core').useTimeAgo
290
+ const useTimeAgoIntl: typeof import('@vueuse/core').useTimeAgoIntl
291
+ const useTimeout: typeof import('@vueuse/core').useTimeout
292
+ const useTimeoutFn: typeof import('@vueuse/core').useTimeoutFn
293
+ const useTimeoutPoll: typeof import('@vueuse/core').useTimeoutPoll
294
+ const useTimestamp: typeof import('@vueuse/core').useTimestamp
295
+ const useTitle: typeof import('@vueuse/core').useTitle
296
+ const useToNumber: typeof import('@vueuse/core').useToNumber
297
+ const useToString: typeof import('@vueuse/core').useToString
298
+ const useToggle: typeof import('@vueuse/core').useToggle
299
+ const useTransition: typeof import('@vueuse/core').useTransition
300
+ const useTrunc: typeof import('@vueuse/math').useTrunc
301
+ const useUrlSearchParams: typeof import('@vueuse/core').useUrlSearchParams
302
+ const useUserMedia: typeof import('@vueuse/core').useUserMedia
303
+ const useVModel: typeof import('@vueuse/core').useVModel
304
+ const useVModels: typeof import('@vueuse/core').useVModels
305
+ const useVibrate: typeof import('@vueuse/core').useVibrate
306
+ const useVirtualList: typeof import('@vueuse/core').useVirtualList
307
+ const useWakeLock: typeof import('@vueuse/core').useWakeLock
308
+ const useWebNotification: typeof import('@vueuse/core').useWebNotification
309
+ const useWebSocket: typeof import('@vueuse/core').useWebSocket
310
+ const useWebWorker: typeof import('@vueuse/core').useWebWorker
311
+ const useWebWorkerFn: typeof import('@vueuse/core').useWebWorkerFn
312
+ const useWindowFocus: typeof import('@vueuse/core').useWindowFocus
313
+ const useWindowScroll: typeof import('@vueuse/core').useWindowScroll
314
+ const useWindowSize: typeof import('@vueuse/core').useWindowSize
315
+ const watch: typeof import('vue').watch
316
+ const watchArray: typeof import('@vueuse/core').watchArray
317
+ const watchAtMost: typeof import('@vueuse/core').watchAtMost
318
+ const watchDebounced: typeof import('@vueuse/core').watchDebounced
319
+ const watchDeep: typeof import('@vueuse/core').watchDeep
320
+ const watchEffect: typeof import('vue').watchEffect
321
+ const watchIgnorable: typeof import('@vueuse/core').watchIgnorable
322
+ const watchImmediate: typeof import('@vueuse/core').watchImmediate
323
+ const watchOnce: typeof import('@vueuse/core').watchOnce
324
+ const watchPausable: typeof import('@vueuse/core').watchPausable
325
+ const watchPostEffect: typeof import('vue').watchPostEffect
326
+ const watchSyncEffect: typeof import('vue').watchSyncEffect
327
+ const watchThrottled: typeof import('@vueuse/core').watchThrottled
328
+ const watchTriggerable: typeof import('@vueuse/core').watchTriggerable
329
+ const watchWithFilter: typeof import('@vueuse/core').watchWithFilter
330
+ const whenever: typeof import('@vueuse/core').whenever
331
+ }
332
+ // for type re-export
333
+ declare global {
334
+ // @ts-ignore
335
+ export type { Component, Slot, Slots, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, ShallowRef, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
336
+ import('vue')
337
+ }
@@ -0,0 +1,31 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ // biome-ignore lint: disable
4
+ // oxlint-disable
5
+ // ------
6
+ // Generated by unplugin-vue-components
7
+ // Read more: https://github.com/vuejs/core/pull/3399
8
+
9
+ export {}
10
+
11
+ /* prettier-ignore */
12
+ declare module 'vue' {
13
+ export interface GlobalComponents {
14
+ ElAutoResizer: typeof import('element-plus/es')['ElAutoResizer']
15
+ ElButton: typeof import('element-plus/es')['ElButton']
16
+ ElEmpty: typeof import('element-plus/es')['ElEmpty']
17
+ ElIcon: typeof import('element-plus/es')['ElIcon']
18
+ ElPagination: typeof import('element-plus/es')['ElPagination']
19
+ ElTable: typeof import('element-plus/es')['ElTable']
20
+ ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
21
+ ElTablePlus: typeof import('./src/components/ElTablePlus/index.vue')['default']
22
+ ElTableV2: typeof import('element-plus/es')['ElTableV2']
23
+ ElTooltip: typeof import('element-plus/es')['ElTooltip']
24
+ HelloWorld: typeof import('./src/components/HelloWorld.vue')['default']
25
+ RouterLink: typeof import('vue-router')['RouterLink']
26
+ RouterView: typeof import('vue-router')['RouterView']
27
+ }
28
+ export interface GlobalDirectives {
29
+ vLoading: typeof import('element-plus/es')['ElLoadingDirective']
30
+ }
31
+ }
@@ -0,0 +1,35 @@
1
+ import globals from "globals";
2
+ import pluginJs from "@eslint/js";
3
+ import tseslint from "typescript-eslint";
4
+ import pluginVue from "eslint-plugin-vue";
5
+ import autoImport from "./.eslintrc-auto-import.cjs";
6
+ import unocss from "@unocss/eslint-config/flat";
7
+ // import vueMacro from '@vue-macros/eslint-config'
8
+ import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
9
+
10
+ /** @type {import('eslint').Linter.Config[]} */
11
+ export default [
12
+ unocss,
13
+ // vueMacro,
14
+ { files: ["**/*.{js,mjs,cjs,ts,vue}"] },
15
+ {
16
+ languageOptions: {
17
+ globals: { ...globals.browser, ...globals.node, ...autoImport.globals },
18
+ },
19
+ },
20
+ pluginJs.configs.recommended,
21
+ ...tseslint.configs.recommended,
22
+ ...pluginVue.configs["flat/essential"],
23
+ {
24
+ files: ["**/*.vue"],
25
+ languageOptions: { parserOptions: { parser: tseslint.parser } },
26
+ },
27
+ eslintPluginPrettierRecommended,
28
+ { ignores: ["dist", ".eslintrc-auto-import.cjs", "lib"] },
29
+ {
30
+ rules: {
31
+ "vue/multi-word-component-names": "warn",
32
+ "@typescript-eslint/no-explicit-any": "warn",
33
+ },
34
+ },
35
+ ];
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
package/lib/app.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import "dayjs/locale/zh-cn";
2
+ import "element-plus/theme-chalk/dark/css-vars.css";
@@ -0,0 +1,39 @@
1
+ import type { PageResult } from "@/types/page";
2
+ import type { ElTablePlusProps } from "./types";
3
+ declare const __VLS_export: <T extends Record<string, any> = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: __VLS_PrettifyLocal<(ElTablePlusProps<T> & {
5
+ modelValue?: T[];
6
+ }) & {
7
+ "onPage-change"?: ((page: number, pageSize: number) => any) | undefined;
8
+ "onSize-change"?: ((pageSize: number) => any) | undefined;
9
+ "onLoad-success"?: ((data: T[], total: number) => any) | undefined;
10
+ "onLoad-error"?: ((error: any) => any) | undefined;
11
+ "onUpdate:modelValue"?: ((tableData: T[]) => any) | undefined;
12
+ }> & import("vue").PublicProps & (typeof globalThis extends {
13
+ __VLS_PROPS_FALLBACK: infer P;
14
+ } ? P : {});
15
+ expose: (exposed: import("vue").ShallowUnwrapRef<{
16
+ refresh: () => void;
17
+ reset: () => void;
18
+ loadData: (resetPage?: boolean, data?: PageResult<T>) => Promise<void>;
19
+ currentPage: globalThis.Ref<number, number>;
20
+ pageSize: globalThis.Ref<number, number>;
21
+ total: globalThis.Ref<number, number>;
22
+ tableData: import("vue").ModelRef<T[], string, T[], T[]>;
23
+ deleteRow: (row: any, predicate?: (v: T, idx: number, arr: any[]) => boolean) => void;
24
+ }>) => void;
25
+ attrs: any;
26
+ slots: {
27
+ header?: (props: {}) => any;
28
+ } & {
29
+ empty?: (props: {}) => any;
30
+ };
31
+ emit: (((evt: "page-change", page: number, pageSize: number) => void) & ((evt: "size-change", pageSize: number) => void) & ((evt: "load-success", data: T[], total: number) => void) & ((evt: "load-error", error: any) => void) & ((evt: "update:modelValue", tableData: T[]) => void)) & ((evt: "update:modelValue", value: T[]) => void);
32
+ }>) => import("vue").VNode & {
33
+ __ctx?: Awaited<typeof __VLS_setup>;
34
+ };
35
+ declare const _default: typeof __VLS_export;
36
+ export default _default;
37
+ type __VLS_PrettifyLocal<T> = {
38
+ [K in keyof T as K]: T[K];
39
+ } & {};
@@ -0,0 +1,58 @@
1
+ /**
2
+ * ElTablePlus 组件类型定义
3
+ */
4
+ import type { VNode } from "vue";
5
+ import type { Column, TableColumnCtx } from "element-plus/es";
6
+ import { Pager, PageResult } from "@/types/page";
7
+ /**
8
+ * 列合并模式
9
+ */
10
+ export type ColumnMergeMode = "replace" | "merge";
11
+ export type TableColumnV1 = TableColumnCtx;
12
+ export type TableColumnV2<T> = Column<T>;
13
+ export type TableColumn<T> = (TableColumnV1 | TableColumnV2<T>) & {
14
+ width?: number;
15
+ align?: string;
16
+ label?: string;
17
+ order?: number;
18
+ cellRenderer?: (p: any) => VNode;
19
+ [k: string]: any;
20
+ };
21
+ export interface ElTablePlusProps<T = any> {
22
+ /** 获取数据的函数,返回 Promise<PageResult<T>> */
23
+ fetchData?: (params: Pager) => Promise<PageResult<T> | undefined>;
24
+ /** 表格列配置(为空时自动从数据推断) */
25
+ columns?: TableColumn<any>[];
26
+ /** 列合并模式:
27
+ * - 'replace': 完全替换(如果提供了 columns 则只使用 columns,默认)
28
+ * - 'append': 追加列(columns 追加到自动推测列后面)
29
+ * - 'prepend': 前置列(columns 放在自动推测列前面)
30
+ * - 'merge': 智能合并(columns 覆盖同 prop 的推测列,追加新列)
31
+ */
32
+ columnMergeMode?: ColumnMergeMode;
33
+ /** 要隐藏的列(通过 prop/dataKey/key 匹配) */
34
+ hiddenColumns?: string[];
35
+ /** 只显示指定的列(通过 prop/dataKey/key 匹配,如果设置则只显示这些列) */
36
+ showColumns?: string[];
37
+ /** 是否自动加载数据(默认 true) */
38
+ autoLoad?: boolean;
39
+ /** 初始页码(默认 1) */
40
+ initialPage?: number;
41
+ /** 初始每页条数(默认 20) */
42
+ initialPageSize?: number;
43
+ /** 每页条数选项(默认 [10, 20, 50, 100]) */
44
+ pageSizeOptions?: number[];
45
+ /** 分页布局(默认 'total, sizes, prev, pager, next, jumper') */
46
+ paginationLayout?: string;
47
+ /** 分页背景色(默认 true) */
48
+ paginationBackground?: boolean;
49
+ /** 是否显示分页(默认 true) */
50
+ showPagination?: boolean;
51
+ /** 空数据提示文本(默认 '暂无数据') */
52
+ emptyText?: string;
53
+ /** 是否使用标准 el-table(默认 false,使用 el-table-v2) */
54
+ version?: "v1" | "v2";
55
+ /** 传递给 el-table 的其他属性 */
56
+ tableProps?: Record<string, any>;
57
+ columnProps?: Record<string, Partial<TableColumn<any>>>;
58
+ }
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ msg: string;
3
+ };
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;