You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
// plugins/vue-devui.ts
import VueDevUI from 'vue-devui';
import 'vue-devui/style.css';
import '@devui-design/icons/icomoon/devui-icon.css';
import { ThemeServiceInit, infinityTheme } from 'devui-theme';
ThemeServiceInit({ infinityTheme }, 'infinityTheme');
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(VueDevUI);
})
// pages/index.vue
`<script setup lang="ts">
import { Message } from 'vue-devui/message'
const showService = () => {
<style scoped> </style>`Message('I call message locally')
}
</script>
<d-button @click.native="showService()">确定
//version
"devDependencies": {
"nuxt": "^3.1.1"
},
"dependencies": {
"@devui-design/icons": "^1.3.0",
"devui-theme": "^0.0.4",
"vue-devui": "^1.5.1"
}
Beta Was this translation helpful? Give feedback.
All reactions