xiaoluoboding / vue-smart-widget

🗃️Smart widget is a flexible and extensible content container component for Vue2.x / Vue3.x in Next branch.
https://xiaoluoboding.github.io/vue-smart-widget/
MIT License
185 stars 35 forks source link

how to use in vite2+vue3 #37

Closed qianjiachun closed 2 years ago

qianjiachun commented 2 years ago
  1. npm i vue-smart-widget@next -S
  2. main.ts
    
    import { createApp } from 'vue'
    import App from './App.vue'
    import VueSmartWidget from 'vue-smart-widget'

const app = createApp(App) app.use(VueSmartWidget) app.mount('#app')

3. Test.vue



and the page shows
![image](https://user-images.githubusercontent.com/43806319/149255620-54344f24-60cc-4d55-92cf-223b58b4e2bf.png)

it looks like missing styles?  
is there any example that used in vite2+vue3
xiaoluoboding commented 2 years ago

https://github.com/xiaoluoboding/vue-smart-widget/tree/next/examples

qianjiachun commented 2 years ago

oh, i see. tks