Open mengqiuleo opened 5 days ago
The pull request introduces significant updates to the integration documentation for the TinyVue
component library with build tools like Vite and Webpack. Key changes include modifying the usage of TinyVueResolver
to be invoked as a function, adding new sections on functional components, and updating configuration examples. Additionally, TypeScript declaration files are introduced for auto-imports and component types, enhancing global accessibility. The package.json
file reflects updates to dependencies, and the App.vue
file transitions to the Composition API, showcasing new functionalities and improved user interactions.
File Path | Change Summary |
---|---|
examples/sites/demos/pc/webdoc/import-components.md | Adjusted TinyVueResolver usage to function call; added section for functional components; updated Vite and Webpack examples. |
internals/unplugin-tiny-vue/example/auto-imports.d.ts | Added TypeScript declarations for global constants TinyLoading , TinyModal , and TinyNotify . |
internals/unplugin-tiny-vue/example/components.d.ts | Introduced module augmentation for Vue, adding types for RouterLink , RouterView , TinyButton , and TinyModal . |
internals/unplugin-tiny-vue/example/package.json | Updated @opentiny/vue and vite versions; added unplugin-auto-import dependency. |
internals/unplugin-tiny-vue/example/src/App.vue | Restructured template and script sections; transitioned to Composition API; added new reactive references and functions. |
internals/unplugin-tiny-vue/example/vite.config.js | Replaced autoImportPlugin with Components and AutoImport plugins; updated resolver configuration. |
internals/unplugin-tiny-vue/src/index.ts | Introduced TinyVueResolverOption interface; modified TinyVueResolver to accept options for auto-import. |
TinyVueResolver
usage and configuration examples for Vite and Webpack.TinyVue
components.bug
🐰 In the garden where TinyVue grows,
New configs and components, as everyone knows.
With buttons and modals, all set to play,
A hop and a skip, we brighten the day!
So let’s code together, in joyful delight,
With auto-imports, our future is bright! 🌼✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
[e2e-test-warn] The component to be tested is missing.
The title of the Pull request should look like "fix(vue-renderless): [action-menu, alert] fix xxx bug".
Please make sure you've read our contributing guide
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #2402
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit
New Features
TinyVue
component library with Vite and Webpack, including new examples for functional components.TinyLoading
,TinyModal
, andTinyNotify
to simplify usage across the application.Improvements
App.vue
to use the Composition API for better state management and user interaction handling.Dependency Updates
@opentiny/vue
andvite
dependencies, and addedunplugin-auto-import
.