setting-center-home-page
v1.0.1
Published
这是一个封装了setting-center项目首页的npm包,可以在其他Vue3项目中直接使用。
Readme
setting-center-home-page
这是一个封装了setting-center项目首页的npm包,可以在其他Vue3项目中直接使用。
安装
# 使用npm
npm install setting-center-home-page
# 使用yarn
yarn add setting-center-home-page
# 使用pnpm
pnpm add setting-center-home-page使用方式
全局注册
// 在main.ts或main.js中
import { createApp } from 'vue'
import HomePagePlugin from 'setting-center-home-page'
import App from './App.vue'
const app = createApp(App)
app.use(HomePagePlugin)
app.mount('#app')然后在任何组件中可以直接使用:
<template>
<HomePage />
</template>局部导入
<template>
<HomePage />
</template>
<script setup lang="ts">
import { HomePage } from 'setting-center-home-page'
</script>依赖要求
- Vue 3.5.0 或更高版本
- Vuetify 3.8.0 或更高版本
注意事项
- 这个组件依赖于Vuetify组件库,确保在你的项目中已经正确安装和配置了Vuetify
- 为了保持与原项目一致的视觉效果,建议使用相同版本的Vuetify
