// import Antd from 'ant-design-vue'; import 'ant-design-vue/dist/antd.css'; import './theme.scss'; // import { createPinia } from 'pinia'; // import {usePersist} from "pinia-use-persist"; // 引入封装好的组件 import XhyLogin from "./components/XhyLogin.vue"; import XhyLayout from "./components/XhyLayout.vue"; import XhyTable from "./components/XhyTable.vue"; // import XhyDropdown from "./components/XhyDropdown.vue"; // import XhyTest from "./components/XhyTest.vue"; // 按需引入 export { // XhyLogin, // XhyLayout, // XhyTable, // XhyDropdown, // XhyTest, } // 如果有多个其它组件,都可以写到这个数组里 const componentList = [ XhyLogin, XhyLayout, XhyTable, // XhyDropdown, // XhyTest, ]; const install = (Vue:any) => { // Vue.component('XhyLogin', XhyLogin) componentList.forEach(com => { Vue.component(com.name, com) }) } const XhyLib = { install } export default XhyLib;