版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.4 KiB

1234567891011121314151617181920212223242526272829303132333435
  1. <p align="center">
  2. <img src="https://github.com/sxzz/unplugin-vue-macros/raw/main/docs/public/logo.svg" width="200px" />
  3. </p>
  4. # unplugin-vue-define-options [![npm](https://img.shields.io/npm/v/unplugin-vue-define-options.svg)](https://npmjs.com/package/unplugin-vue-define-options)
  5. <a href="https://vue-macros.sxzz.moe/macros/define-options">📜 Documentation</a>
  6. Options API can be declared using the `defineOptions` in `<script setup>`, specifically to be able to set `name`, `props`, `emits`, and `render` inside of one function.
  7. If you support this feature, feel free to hit like 👍 or comment on [RFC Discussion](https://github.com/vuejs/rfcs/discussions/430). Thanks!
  8. ## Features
  9. - ✨ With this macro, you can use Options API in Vue `<script setup>`.
  10. - 💚 Supports both Vue 2.7 and Vue 3 out-of-the-box.
  11. - 🦾 Full TypeScript support.
  12. - ⚡️ Supports Vite, Nuxt, Webpack, Vue CLI, Rollup 3, esbuild and more, powered by <a href="https://github.com/unjs/unplugin">unplugin</a>.
  13. ### See Also
  14. - [Related issue](https://github.com/vuejs/core/issues/5218#issuecomment-1032107354)
  15. - [RFC](https://github.com/vuejs/rfcs/discussions/430)
  16. ## Sponsors
  17. <p align="center">
  18. <a href="https://cdn.jsdelivr.net/gh/sxzz/sponsors/sponsors.svg">
  19. <img src='https://cdn.jsdelivr.net/gh/sxzz/sponsors/sponsors.svg'/>
  20. </a>
  21. </p>
  22. ## License
  23. [MIT](./LICENSE) License © 2022-PRESENT [三咲智子](https://github.com/sxzz)