mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-04 21:18:14 +08:00
55 lines
958 B
JavaScript
55 lines
958 B
JavaScript
import '@babel/polyfill';
|
|
import { createApp } from 'vue';
|
|
import App from './App.vue';
|
|
import {
|
|
AutoComplete,
|
|
Radio,
|
|
Spin,
|
|
Select,
|
|
Input,
|
|
InputNumber,
|
|
Rate,
|
|
Button,
|
|
Upload,
|
|
Icon,
|
|
Modal,
|
|
Progress,
|
|
Tooltip,
|
|
Col,
|
|
Row,
|
|
notification,
|
|
message,
|
|
} from 'ant-design-vue';
|
|
import 'ant-design-vue/style.js';
|
|
|
|
const basic = {
|
|
render() {
|
|
return this.$slots?.default();
|
|
},
|
|
};
|
|
const app = createApp(App);
|
|
app.config.globalProperties.$notification = notification;
|
|
app.config.globalProperties.$message = message;
|
|
app
|
|
.component('demo-sort', { ...basic })
|
|
.component('md', { ...basic })
|
|
.component('api', { ...basic })
|
|
.component('CN', { ...basic })
|
|
.component('US', { ...basic })
|
|
.use(Select)
|
|
.use(Spin)
|
|
.use(Upload)
|
|
.use(Button)
|
|
.use(Icon)
|
|
.use(Modal)
|
|
.use(Progress)
|
|
.use(Rate)
|
|
.use(Input)
|
|
.use(Tooltip)
|
|
.use(Col)
|
|
.use(Row)
|
|
.use(Radio)
|
|
.use(InputNumber)
|
|
.use(AutoComplete)
|
|
.mount('#app');
|