├── .babelrc ├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .github ├── ISSUE_TEMPLATE │ ├── bug.yml │ ├── feat.yml │ └── question.yml ├── PULL_REQUEST_TEMPLATE │ └── pull_request_template.md └── workflows │ ├── build.yml │ └── docs.yml ├── .gitignore ├── .husky ├── commit-msg └── pre-commit ├── .vscode └── settings.json ├── README.md ├── babel.config.js ├── commitlint.config.js ├── composition └── .DS_Store ├── docs ├── .vuepress │ ├── components │ │ ├── NpmBadage.vue │ │ ├── UseEventBus.vue │ │ ├── UseGlobalStore.vue │ │ ├── useEventBus │ │ │ ├── demo1.vue │ │ │ └── demo2.vue │ │ └── useGlobalStore │ │ │ ├── demo1.vue │ │ │ └── demo2.vue │ ├── config.ts │ ├── dist │ │ └── images │ │ │ └── logo.jpg │ ├── public │ │ └── images │ │ │ └── logo.jpg │ └── styles │ │ └── index.styl ├── README.md ├── _config.yml ├── composition │ ├── Async │ │ ├── useAsync │ │ │ └── README.md │ │ ├── useRequest │ │ │ └── README.md │ │ └── useWaitTime │ │ │ └── README.md │ ├── Effect │ │ ├── useClipboard │ │ │ └── README.md │ │ ├── useDebounceFn │ │ │ └── README.md │ │ ├── useDownloader │ │ │ └── README.md │ │ ├── useEffect │ │ │ └── README.md │ │ ├── useEventBus │ │ │ └── README.md │ │ ├── useGlobalStore │ │ │ └── README.md │ │ ├── useKeyPress │ │ │ └── README.md │ │ ├── useModel │ │ │ └── README.md │ │ ├── usePermission │ │ │ └── README.md │ │ ├── useThrottleFn │ │ │ └── README.md │ │ └── useTitle │ │ │ └── README.md │ └── Element │ │ ├── useAwaitDom │ │ └── README.md │ │ ├── useClickAway │ │ └── README.md │ │ ├── useFocus │ │ └── README.md │ │ ├── useFullscreen │ │ └── README.md │ │ ├── useHover │ │ └── README.md │ │ ├── useInViewport │ │ └── README.md │ │ └── useSize │ │ └── README.md └── guide │ └── README.md ├── lib ├── _configurable.d.ts ├── _configurable.js ├── configurable.d.ts ├── configurable.js ├── index.d.ts ├── index.js ├── tryOnBeforeUnmount │ ├── index.d.ts │ └── index.js ├── tryOnScopeDispose │ ├── index.d.ts │ └── index.js ├── useAsync │ ├── index.d.ts │ └── index.js ├── useAwaitDom │ ├── index.d.ts │ └── index.js ├── useClickAway │ ├── index.d.ts │ └── index.js ├── useClipboard │ ├── index.d.ts │ └── index.js ├── useDebounceFn │ ├── index.d.ts │ └── index.js ├── useDownloader │ ├── index.d.ts │ └── index.js ├── useEffect │ ├── index.d.ts │ └── index.js ├── useEventBus │ ├── index.d.ts │ └── index.js ├── useEventListener │ ├── index.d.ts │ └── index.js ├── useFocus │ ├── index.d.ts │ └── index.js ├── useFullscreen │ ├── index.d.ts │ └── index.js ├── useGlobalStore │ ├── index.d.ts │ └── index.js ├── useHover │ ├── index.d.ts │ └── index.js ├── useInViewport │ ├── index.d.ts │ └── index.js ├── useKeyPress │ ├── index.d.ts │ └── index.js ├── usePermission │ ├── index.d.ts │ └── index.js ├── useRequest │ ├── index.d.ts │ └── index.js ├── useSize │ ├── index.d.ts │ └── index.js ├── useThrottleFn │ ├── index.d.ts │ └── index.js ├── useTimeoutFn │ ├── index.d.ts │ └── index.js ├── useTitle │ ├── index.d.ts │ └── index.js ├── useVModel │ ├── index.d.ts │ ├── index.js │ ├── type.d.ts │ └── type.js ├── useWaitTime │ ├── index.d.ts │ └── index.js ├── useWebSocket │ ├── index.d.ts │ └── index.js └── utils │ ├── dom.d.ts │ ├── dom.js │ ├── filters.d.ts │ ├── filters.js │ ├── index.d.ts │ ├── index.js │ ├── is.d.ts │ ├── is.js │ ├── lifeCircle.d.ts │ ├── lifeCircle.js │ ├── types.d.ts │ └── types.js ├── package.json ├── prettier.config.js ├── scripts └── commitMsgHook.js ├── src ├── configurable.ts ├── index.ts ├── tryOnBeforeUnmount │ └── index.ts ├── tryOnScopeDispose │ └── index.ts ├── useAsync │ └── index.ts ├── useAwaitDom │ ├── demo.vue │ └── index.ts ├── useClickAway │ └── index.ts ├── useClipboard │ ├── demo.vue │ └── index.ts ├── useDebounceFn │ └── index.ts ├── useDownloader │ └── index.ts ├── useEffect │ └── index.ts ├── useEventBus │ └── index.ts ├── useEventListener │ └── index.ts ├── useFocus │ └── index.ts ├── useFullscreen │ ├── demo │ │ └── index.vue │ └── index.ts ├── useGlobalStore │ └── index.ts ├── useHover │ └── index.ts ├── useInViewport │ ├── demo │ │ └── index.vue │ └── index.ts ├── useKeyPress │ ├── demo │ │ └── index.vue │ └── index.ts ├── usePermission │ ├── demo.vue │ └── index.ts ├── useRequest │ └── index.ts ├── useSize │ ├── demo │ │ └── index.vue │ └── index.ts ├── useThrottleFn │ └── index.ts ├── useTimeoutFn │ └── index.ts ├── useTitle │ └── index.ts ├── useVModel │ ├── index.ts │ └── type.ts ├── useWaitTime │ └── index.ts ├── useWebSocket │ └── index.ts └── utils │ ├── dom.ts │ ├── filters.ts │ ├── index.ts │ ├── is.ts │ ├── lifeCircle.ts │ └── types.ts └── tsconfig.json /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/.babelrc -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | tab_width = 2 2 | indent_style = space -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/.github/ISSUE_TEMPLATE/bug.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feat.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/.github/ISSUE_TEMPLATE/feat.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/question.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/.github/ISSUE_TEMPLATE/question.yml -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.github/workflows/docs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/.github/workflows/docs.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/.husky/commit-msg -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npx lint-staged 5 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/README.md -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/babel.config.js -------------------------------------------------------------------------------- /commitlint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/commitlint.config.js -------------------------------------------------------------------------------- /composition/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/composition/.DS_Store -------------------------------------------------------------------------------- /docs/.vuepress/components/NpmBadage.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/.vuepress/components/NpmBadage.vue -------------------------------------------------------------------------------- /docs/.vuepress/components/UseEventBus.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/.vuepress/components/UseEventBus.vue -------------------------------------------------------------------------------- /docs/.vuepress/components/UseGlobalStore.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/.vuepress/components/UseGlobalStore.vue -------------------------------------------------------------------------------- /docs/.vuepress/components/useEventBus/demo1.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/.vuepress/components/useEventBus/demo1.vue -------------------------------------------------------------------------------- /docs/.vuepress/components/useEventBus/demo2.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/.vuepress/components/useEventBus/demo2.vue -------------------------------------------------------------------------------- /docs/.vuepress/components/useGlobalStore/demo1.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/.vuepress/components/useGlobalStore/demo1.vue -------------------------------------------------------------------------------- /docs/.vuepress/components/useGlobalStore/demo2.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/.vuepress/components/useGlobalStore/demo2.vue -------------------------------------------------------------------------------- /docs/.vuepress/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/.vuepress/config.ts -------------------------------------------------------------------------------- /docs/.vuepress/dist/images/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/.vuepress/dist/images/logo.jpg -------------------------------------------------------------------------------- /docs/.vuepress/public/images/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/.vuepress/public/images/logo.jpg -------------------------------------------------------------------------------- /docs/.vuepress/styles/index.styl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/.vuepress/styles/index.styl -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/README.md -------------------------------------------------------------------------------- /docs/_config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/_config.yml -------------------------------------------------------------------------------- /docs/composition/Async/useAsync/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/composition/Async/useAsync/README.md -------------------------------------------------------------------------------- /docs/composition/Async/useRequest/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/composition/Async/useRequest/README.md -------------------------------------------------------------------------------- /docs/composition/Async/useWaitTime/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/composition/Async/useWaitTime/README.md -------------------------------------------------------------------------------- /docs/composition/Effect/useClipboard/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/composition/Effect/useClipboard/README.md -------------------------------------------------------------------------------- /docs/composition/Effect/useDebounceFn/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/composition/Effect/useDebounceFn/README.md -------------------------------------------------------------------------------- /docs/composition/Effect/useDownloader/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/composition/Effect/useDownloader/README.md -------------------------------------------------------------------------------- /docs/composition/Effect/useEffect/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/composition/Effect/useEffect/README.md -------------------------------------------------------------------------------- /docs/composition/Effect/useEventBus/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/composition/Effect/useEventBus/README.md -------------------------------------------------------------------------------- /docs/composition/Effect/useGlobalStore/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/composition/Effect/useGlobalStore/README.md -------------------------------------------------------------------------------- /docs/composition/Effect/useKeyPress/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/composition/Effect/useKeyPress/README.md -------------------------------------------------------------------------------- /docs/composition/Effect/useModel/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/composition/Effect/useModel/README.md -------------------------------------------------------------------------------- /docs/composition/Effect/usePermission/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/composition/Effect/usePermission/README.md -------------------------------------------------------------------------------- /docs/composition/Effect/useThrottleFn/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/composition/Effect/useThrottleFn/README.md -------------------------------------------------------------------------------- /docs/composition/Effect/useTitle/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/composition/Effect/useTitle/README.md -------------------------------------------------------------------------------- /docs/composition/Element/useAwaitDom/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/composition/Element/useAwaitDom/README.md -------------------------------------------------------------------------------- /docs/composition/Element/useClickAway/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/composition/Element/useClickAway/README.md -------------------------------------------------------------------------------- /docs/composition/Element/useFocus/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/composition/Element/useFocus/README.md -------------------------------------------------------------------------------- /docs/composition/Element/useFullscreen/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/composition/Element/useFullscreen/README.md -------------------------------------------------------------------------------- /docs/composition/Element/useHover/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/composition/Element/useHover/README.md -------------------------------------------------------------------------------- /docs/composition/Element/useInViewport/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/composition/Element/useInViewport/README.md -------------------------------------------------------------------------------- /docs/composition/Element/useSize/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/composition/Element/useSize/README.md -------------------------------------------------------------------------------- /docs/guide/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/docs/guide/README.md -------------------------------------------------------------------------------- /lib/_configurable.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/_configurable.d.ts -------------------------------------------------------------------------------- /lib/_configurable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/_configurable.js -------------------------------------------------------------------------------- /lib/configurable.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/configurable.d.ts -------------------------------------------------------------------------------- /lib/configurable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/configurable.js -------------------------------------------------------------------------------- /lib/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/index.d.ts -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/index.js -------------------------------------------------------------------------------- /lib/tryOnBeforeUnmount/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/tryOnBeforeUnmount/index.d.ts -------------------------------------------------------------------------------- /lib/tryOnBeforeUnmount/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/tryOnBeforeUnmount/index.js -------------------------------------------------------------------------------- /lib/tryOnScopeDispose/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/tryOnScopeDispose/index.d.ts -------------------------------------------------------------------------------- /lib/tryOnScopeDispose/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/tryOnScopeDispose/index.js -------------------------------------------------------------------------------- /lib/useAsync/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useAsync/index.d.ts -------------------------------------------------------------------------------- /lib/useAsync/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useAsync/index.js -------------------------------------------------------------------------------- /lib/useAwaitDom/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useAwaitDom/index.d.ts -------------------------------------------------------------------------------- /lib/useAwaitDom/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useAwaitDom/index.js -------------------------------------------------------------------------------- /lib/useClickAway/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useClickAway/index.d.ts -------------------------------------------------------------------------------- /lib/useClickAway/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useClickAway/index.js -------------------------------------------------------------------------------- /lib/useClipboard/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useClipboard/index.d.ts -------------------------------------------------------------------------------- /lib/useClipboard/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useClipboard/index.js -------------------------------------------------------------------------------- /lib/useDebounceFn/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useDebounceFn/index.d.ts -------------------------------------------------------------------------------- /lib/useDebounceFn/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useDebounceFn/index.js -------------------------------------------------------------------------------- /lib/useDownloader/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useDownloader/index.d.ts -------------------------------------------------------------------------------- /lib/useDownloader/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useDownloader/index.js -------------------------------------------------------------------------------- /lib/useEffect/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useEffect/index.d.ts -------------------------------------------------------------------------------- /lib/useEffect/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useEffect/index.js -------------------------------------------------------------------------------- /lib/useEventBus/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useEventBus/index.d.ts -------------------------------------------------------------------------------- /lib/useEventBus/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useEventBus/index.js -------------------------------------------------------------------------------- /lib/useEventListener/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useEventListener/index.d.ts -------------------------------------------------------------------------------- /lib/useEventListener/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useEventListener/index.js -------------------------------------------------------------------------------- /lib/useFocus/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useFocus/index.d.ts -------------------------------------------------------------------------------- /lib/useFocus/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useFocus/index.js -------------------------------------------------------------------------------- /lib/useFullscreen/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useFullscreen/index.d.ts -------------------------------------------------------------------------------- /lib/useFullscreen/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useFullscreen/index.js -------------------------------------------------------------------------------- /lib/useGlobalStore/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useGlobalStore/index.d.ts -------------------------------------------------------------------------------- /lib/useGlobalStore/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useGlobalStore/index.js -------------------------------------------------------------------------------- /lib/useHover/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useHover/index.d.ts -------------------------------------------------------------------------------- /lib/useHover/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useHover/index.js -------------------------------------------------------------------------------- /lib/useInViewport/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useInViewport/index.d.ts -------------------------------------------------------------------------------- /lib/useInViewport/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useInViewport/index.js -------------------------------------------------------------------------------- /lib/useKeyPress/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useKeyPress/index.d.ts -------------------------------------------------------------------------------- /lib/useKeyPress/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useKeyPress/index.js -------------------------------------------------------------------------------- /lib/usePermission/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/usePermission/index.d.ts -------------------------------------------------------------------------------- /lib/usePermission/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/usePermission/index.js -------------------------------------------------------------------------------- /lib/useRequest/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useRequest/index.d.ts -------------------------------------------------------------------------------- /lib/useRequest/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useRequest/index.js -------------------------------------------------------------------------------- /lib/useSize/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useSize/index.d.ts -------------------------------------------------------------------------------- /lib/useSize/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useSize/index.js -------------------------------------------------------------------------------- /lib/useThrottleFn/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useThrottleFn/index.d.ts -------------------------------------------------------------------------------- /lib/useThrottleFn/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useThrottleFn/index.js -------------------------------------------------------------------------------- /lib/useTimeoutFn/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useTimeoutFn/index.d.ts -------------------------------------------------------------------------------- /lib/useTimeoutFn/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useTimeoutFn/index.js -------------------------------------------------------------------------------- /lib/useTitle/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useTitle/index.d.ts -------------------------------------------------------------------------------- /lib/useTitle/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useTitle/index.js -------------------------------------------------------------------------------- /lib/useVModel/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useVModel/index.d.ts -------------------------------------------------------------------------------- /lib/useVModel/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useVModel/index.js -------------------------------------------------------------------------------- /lib/useVModel/type.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useVModel/type.d.ts -------------------------------------------------------------------------------- /lib/useVModel/type.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/useWaitTime/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useWaitTime/index.d.ts -------------------------------------------------------------------------------- /lib/useWaitTime/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/useWaitTime/index.js -------------------------------------------------------------------------------- /lib/useWebSocket/index.d.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/useWebSocket/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/utils/dom.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/utils/dom.d.ts -------------------------------------------------------------------------------- /lib/utils/dom.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/utils/dom.js -------------------------------------------------------------------------------- /lib/utils/filters.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/utils/filters.d.ts -------------------------------------------------------------------------------- /lib/utils/filters.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/utils/filters.js -------------------------------------------------------------------------------- /lib/utils/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/utils/index.d.ts -------------------------------------------------------------------------------- /lib/utils/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/utils/index.js -------------------------------------------------------------------------------- /lib/utils/is.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/utils/is.d.ts -------------------------------------------------------------------------------- /lib/utils/is.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/utils/is.js -------------------------------------------------------------------------------- /lib/utils/lifeCircle.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/utils/lifeCircle.d.ts -------------------------------------------------------------------------------- /lib/utils/lifeCircle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/utils/lifeCircle.js -------------------------------------------------------------------------------- /lib/utils/types.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/lib/utils/types.d.ts -------------------------------------------------------------------------------- /lib/utils/types.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/package.json -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/prettier.config.js -------------------------------------------------------------------------------- /scripts/commitMsgHook.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/scripts/commitMsgHook.js -------------------------------------------------------------------------------- /src/configurable.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/configurable.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/tryOnBeforeUnmount/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/tryOnBeforeUnmount/index.ts -------------------------------------------------------------------------------- /src/tryOnScopeDispose/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/tryOnScopeDispose/index.ts -------------------------------------------------------------------------------- /src/useAsync/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useAsync/index.ts -------------------------------------------------------------------------------- /src/useAwaitDom/demo.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useAwaitDom/demo.vue -------------------------------------------------------------------------------- /src/useAwaitDom/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useAwaitDom/index.ts -------------------------------------------------------------------------------- /src/useClickAway/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useClickAway/index.ts -------------------------------------------------------------------------------- /src/useClipboard/demo.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useClipboard/demo.vue -------------------------------------------------------------------------------- /src/useClipboard/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useClipboard/index.ts -------------------------------------------------------------------------------- /src/useDebounceFn/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useDebounceFn/index.ts -------------------------------------------------------------------------------- /src/useDownloader/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useDownloader/index.ts -------------------------------------------------------------------------------- /src/useEffect/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useEffect/index.ts -------------------------------------------------------------------------------- /src/useEventBus/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useEventBus/index.ts -------------------------------------------------------------------------------- /src/useEventListener/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useEventListener/index.ts -------------------------------------------------------------------------------- /src/useFocus/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useFocus/index.ts -------------------------------------------------------------------------------- /src/useFullscreen/demo/index.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useFullscreen/demo/index.vue -------------------------------------------------------------------------------- /src/useFullscreen/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useFullscreen/index.ts -------------------------------------------------------------------------------- /src/useGlobalStore/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useGlobalStore/index.ts -------------------------------------------------------------------------------- /src/useHover/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useHover/index.ts -------------------------------------------------------------------------------- /src/useInViewport/demo/index.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useInViewport/demo/index.vue -------------------------------------------------------------------------------- /src/useInViewport/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useInViewport/index.ts -------------------------------------------------------------------------------- /src/useKeyPress/demo/index.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useKeyPress/demo/index.vue -------------------------------------------------------------------------------- /src/useKeyPress/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useKeyPress/index.ts -------------------------------------------------------------------------------- /src/usePermission/demo.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/usePermission/demo.vue -------------------------------------------------------------------------------- /src/usePermission/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/usePermission/index.ts -------------------------------------------------------------------------------- /src/useRequest/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useRequest/index.ts -------------------------------------------------------------------------------- /src/useSize/demo/index.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useSize/demo/index.vue -------------------------------------------------------------------------------- /src/useSize/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useSize/index.ts -------------------------------------------------------------------------------- /src/useThrottleFn/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useThrottleFn/index.ts -------------------------------------------------------------------------------- /src/useTimeoutFn/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useTimeoutFn/index.ts -------------------------------------------------------------------------------- /src/useTitle/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useTitle/index.ts -------------------------------------------------------------------------------- /src/useVModel/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useVModel/index.ts -------------------------------------------------------------------------------- /src/useVModel/type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useVModel/type.ts -------------------------------------------------------------------------------- /src/useWaitTime/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/useWaitTime/index.ts -------------------------------------------------------------------------------- /src/useWebSocket/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/utils/dom.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/utils/dom.ts -------------------------------------------------------------------------------- /src/utils/filters.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/utils/filters.ts -------------------------------------------------------------------------------- /src/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/utils/index.ts -------------------------------------------------------------------------------- /src/utils/is.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/utils/is.ts -------------------------------------------------------------------------------- /src/utils/lifeCircle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/utils/lifeCircle.ts -------------------------------------------------------------------------------- /src/utils/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/src/utils/types.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phpjavac/composition/HEAD/tsconfig.json --------------------------------------------------------------------------------