{"id":13435177,"url":"https://github.com/openfext/vue-use","last_synced_at":"2025-07-09T16:38:55.730Z","repository":{"id":215164797,"uuid":"250976010","full_name":"openfext/vue-use","owner":"openfext","description":"Use Vue Composition API Right Now (WIP)","archived":false,"fork":false,"pushed_at":"2020-06-07T10:45:16.000Z","size":6039,"stargazers_count":26,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-04-07T00:37:14.581Z","etag":null,"topics":["composition-api","hooks","vue-composition-api","vue-hooks","vue-use","vuejs"],"latest_commit_sha":null,"homepage":"https://openfext.github.io/vue-use","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openfext.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-03-29T07:20:38.000Z","updated_at":"2022-07-07T21:29:21.000Z","dependencies_parsed_at":"2024-01-08T08:46:25.805Z","dependency_job_id":null,"html_url":"https://github.com/openfext/vue-use","commit_stats":null,"previous_names":["openfext/vue-use"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfext%2Fvue-use","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfext%2Fvue-use/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfext%2Fvue-use/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfext%2Fvue-use/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openfext","download_url":"https://codeload.github.com/openfext/vue-use/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252015717,"owners_count":21680815,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composition-api","hooks","vue-composition-api","vue-hooks","vue-use","vuejs"],"created_at":"2024-07-31T03:00:33.495Z","updated_at":"2025-05-02T09:30:32.001Z","avatar_url":"https://github.com/openfext.png","language":"JavaScript","funding_links":[],"categories":["✨ Composition API functions","Utilities [🔝](#readme)","Components \u0026 Libraries"],"sub_categories":["Utilities"],"readme":"# Vue Use\n\nUse Vue Composition API Right Now.\n\n**Note**: Currently only Vue.js 2.x is supported. Since [Vue.js](https://github.com/vuejs/vue-next) has released a beta version of 3.0, this library will support the latest version of Vue.js for the first time.\n\n[![CircleCI](https://circleci.com/gh/openfext/vue-use.svg?style=svg)](https://circleci.com/gh/openfext/vue-use)\n[![codecov](https://codecov.io/gh/openfext/vue-use/branch/develop/graph/badge.svg)](https://codecov.io/gh/openfext/vue-use)\n![GitHub](https://img.shields.io/github/license/openfext/vue-use?style=flat-square)\n![Version](https://img.shields.io/npm/v/@fext/vue-use?style=flat-square)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/openfext/vue-use)\n\n## Docs\n\n- [Storybook](https://openfext.github.io/vue-use)\n\n### 🇨🇳 Chinese\n\n- [Guide](https://openfext.github.io/docs/zh/vue-use/intro.html)\n- [API Reference](https://openfext.github.io/docs/zh/vue-use/api/form.html)\n\n### 🇺🇸 English\n\nWIP...\n\n## Features\n\n- ✨ `useResize` -- track `window.innerWidth`, `window.innerHeight`.\n- ✨ `useLoading` -- run asynchronous tasks and set `loading` status.\n- ✨ `useForm` -- manage model, events of complex form.\n- ✨ `useFormElement` -- create custom form components that support `v-model`, work with `useForm`.\n- ✨ `useTable` -- manage data, paging, sorting and filter of complex table.\n- ...\n\nMore features are coming soon...\n\n## Quick Start\n\n### Installation\n\n```bash\nnpm i @fext/vue-use\n```\n\n### Usage\n\nCreate reactive loading state for component:\n\n```html\n\u003ctemplate\u003e\n  \u003cdiv :class=\"{ 'is-loading': loading }\"\u003eContent\u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\n  import { useLoading } from '@fext/vue-use';\n\n  export default {\n    setup() {\n      const { loading, withLoading } = useLoading();\n\n      return {\n        loading,\n        withLoading\n      };\n    },\n\n    created() {\n      this.withLoading(() =\u003e {\n        return this.fetchList();\n      });\n    },\n\n    methods: {\n      async fetchList() {\n        // remote api\n      }\n    }\n  };\n\u003c/script\u003e\n```\n\n## Built With\n\n- [Vue.js](https://github.com/vuejs/vue)\n- [Vue Composition API](https://github.com/vuejs/composition-api)\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2020 - present, Felix Yang\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfext%2Fvue-use","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenfext%2Fvue-use","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfext%2Fvue-use/lists"}