Skip to content

Commit bd5554b

Browse files
committed
feat: vue replace vue-demi
1 parent 36ce10a commit bd5554b

File tree

57 files changed

+119
-103
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+119
-103
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@
7070
"vue": "^3.2.25",
7171
"vue-tsc": "1.0.9",
7272
"vue-typical": "^2.1.0",
73-
"three":"0.147.0"
73+
"three":"0.147.0",
74+
"vue-demi": "^0.13.11"
7475
},
7576
"lint-staged": {
7677
"*.{js,ts,tsx,vue}": [

packages/hooks/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"lib",
88
"es",
99
"LICENSE",
10-
"meta-data.json",
10+
"meta-data.json",
1111
"package.json",
1212
"README.md"
1313
],
@@ -24,8 +24,8 @@
2424
"initial": "initial-scan .docs",
2525
"docs:dev": "vhp-vitepress dev .docs --host",
2626
"docs:build": "vhp-vitepress build .docs",
27-
"docs:build-github": "cross-env BASE_URL=/docs/hooks FLOW=github vhp-vitepress build .docs",
28-
"docs:build-gitee": "cross-env BASE_URL=/docs/hooks FLOW=gitee vhp-vitepress build .docs",
27+
"docs:build-github": "cross-env BASE_URL=/docs/hooks FLOW=github vhp-vitepress build .docs",
28+
"docs:build-gitee": "cross-env BASE_URL=/docs/hooks FLOW=gitee vhp-vitepress build .docs",
2929
"docs:serve": "vitepress serve .docs --host",
3030
"clean": "rimraf dist lib es types",
3131
"build": "npm run clean && vue-tsc --noEmit && vite build",
@@ -36,14 +36,15 @@
3636
"vue": "^3.2.25"
3737
},
3838
"dependencies": {
39-
"@types/js-cookie": "^3.0.1",
39+
"@types/js-cookie": "^3.0.1",
4040
"intersection-observer": "^0.12.2",
4141
"js-cookie": "^3.0.1",
4242
"lodash": "^4.17.21",
4343
"marked": "^4.0.17",
4444
"qs": "^6.11.0",
4545
"query-string": "^7.1.1",
46-
"screenfull": "^5.0.0"
46+
"screenfull": "^5.0.0",
47+
"vue-demi": "^0.13.11"
4748
},
4849
"repository": "https://github.com/InhiblabCore/vue-hooks-plus",
4950
"homepage": "https://github.com/InhiblabCore/vue-hooks-plus",

packages/hooks/src/createUseStorageState/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable no-empty */
2-
import { unref, ref, Ref, UnwrapRef, watchEffect } from 'vue'
2+
import { unref, ref, Ref, UnwrapRef, watchEffect } from 'vue-demi'
33

44
export interface IFuncUpdater<T> {
55
(previousState?: T): T

packages/hooks/src/types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
declare module '*.vue' {
2-
import { DefineComponent } from 'vue'
2+
import { DefineComponent } from 'vue-demi'
33
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
44
const component: DefineComponent<{}, {}, any>
55
export default component

packages/hooks/src/useCookieState/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Cookies from 'js-cookie'
2-
import { ref } from 'vue'
2+
import { ref } from 'vue-demi'
33
import { isFunction } from '../utils/isFunction'
44

55
export type UseCookieStateType = string | undefined

packages/hooks/src/useCounter/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Ref, ref } from 'vue'
1+
import { Ref, ref } from 'vue-demi'
22
import { isNumber } from '../utils'
33

44
export interface UseCounterOptions {

packages/hooks/src/useDarkMode/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { watchEffect, computed, ComputedRef } from 'vue'
1+
import { watchEffect, computed, ComputedRef } from 'vue-demi'
22
import useLocalStorageState from '../useLocalStorageState'
33

44
import useMedia from '../useMedia'

packages/hooks/src/useDrag/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ref } from 'vue'
1+
import { ref } from 'vue-demi'
22
import type { BasicTarget } from '../utils/domTarget'
33
import { getTargetElement } from '../utils/domTarget'
44
import useEffectWithTarget from '../utils/useEffectWithTarget'

packages/hooks/src/useDrop/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { BasicTarget } from '../utils/domTarget'
22
import { getTargetElement } from '../utils/domTarget'
33
import useEffectWithTarget from '../utils/useEffectWithTarget'
4-
import { ref } from 'vue'
4+
import { ref } from 'vue-demi'
55

66
export interface UseDropOptions {
77
/**

packages/hooks/src/useEventEmitter/event.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import _ from 'lodash'
2-
import { ref, watchEffect } from 'vue'
2+
import { ref, watchEffect } from 'vue-demi'
33

44
type SubscriptionParams<T = any> = {
55
params: T

0 commit comments

Comments
 (0)