0.0.3 • Published 2 years ago
xhy-lib v0.0.3
xhy-lib
安装
npm install xhy-lib
使用
/src/main.ts
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import Antd from 'ant-design-vue';
import App from './App.vue'
import router from './router'
import 'ant-design-vue/dist/antd.css';
import '@/theme.scss'
import 'xhy-lib/dist/style.css'
import XhyLib from 'xhy-lib'
const app = createApp(App)
app.use(createPinia())
app.use(router)
app.use(Antd)
app.use(XhyLib)
app.mount('#app')
/src/views/TestView.vue
<template>
<xhy-test></xhy-test>
</template>
<script lang="ts">
export default {
name: 'TestView'
}
</script>
<script lang="ts" setup>
</script>
<style scoped>
</style>