mirror of
https://github.com/rubickCenter/rubick
synced 2025-09-10 12:49:57 +08:00
43 lines
702 B
TypeScript
43 lines
702 B
TypeScript
import { createApp } from 'vue';
|
|
import {
|
|
Button,
|
|
List,
|
|
Spin,
|
|
Input,
|
|
Avatar,
|
|
Tag,
|
|
ConfigProvider,
|
|
Row,
|
|
Col,
|
|
Divider,
|
|
} from 'ant-design-vue';
|
|
import App from './App.vue';
|
|
import localConfig from './confOp';
|
|
|
|
import 'ant-design-vue/dist/antd.variable.min.css';
|
|
|
|
const config: any = localConfig.getConfig();
|
|
|
|
ConfigProvider.config({
|
|
theme: config.perf.custom || {},
|
|
});
|
|
|
|
window.rubick.changeTheme = () => {
|
|
const config: any = localConfig.getConfig();
|
|
ConfigProvider.config({
|
|
theme: config.perf.custom || {},
|
|
});
|
|
};
|
|
|
|
createApp(App)
|
|
.use(Button)
|
|
.use(List)
|
|
.use(Spin)
|
|
.use(Input)
|
|
.use(Avatar)
|
|
.use(Tag)
|
|
.use(Row)
|
|
.use(Col)
|
|
.use(Divider)
|
|
.mount('#app');
|