ant-design-vue/examples/index.js

77 lines
2.2 KiB
JavaScript
Raw Normal View History

2020-05-27 11:11:46 +00:00
import '@babel/polyfill';
import { createApp } from 'vue';
2020-03-23 03:00:24 +00:00
import App from './App.vue';
2020-06-08 07:38:07 +00:00
import Avatar from 'ant-design-vue/avatar';
import Breadcrumb from 'ant-design-vue/breadcrumb';
2020-05-27 11:11:46 +00:00
import Button from 'ant-design-vue/button';
import Comment from 'ant-design-vue/comment';
2020-06-02 14:09:34 +00:00
import Drawer from 'ant-design-vue/drawer';
2020-06-03 10:36:18 +00:00
import Affix from 'ant-design-vue/affix';
2020-06-03 14:46:20 +00:00
import Alert from 'ant-design-vue/alert';
import Divider from 'ant-design-vue/divider';
2020-06-08 07:45:14 +00:00
import Anchor from 'ant-design-vue/anchor';
import Radio from 'ant-design-vue/radio';
2020-05-28 11:45:50 +00:00
import ConfigProvider from 'ant-design-vue/config-provider';
import Result from 'ant-design-vue/result';
import Spin from 'ant-design-vue/spin';
import PageHeader from 'ant-design-vue/page-header';
2020-06-08 09:31:13 +00:00
import Skeleton from 'ant-design-vue/skeleton';
import Empty from 'ant-design-vue/empty';
import Timeline from 'ant-design-vue/timeline';
import Col from 'ant-design-vue/col';
import Row from 'ant-design-vue/row';
2020-06-10 10:20:57 +00:00
import Tooltip from 'ant-design-vue/tooltip';
2020-06-11 15:07:48 +00:00
import Descriptions from 'ant-design-vue/descriptions';
import BackTop from 'ant-design-vue/back-top';
import Tag from 'ant-design-vue/tag';
import Popconfirm from 'ant-design-vue/popconfirm';
import Popover from 'ant-design-vue/popover';
import notification from 'ant-design-vue/notification';
import message from 'ant-design-vue/message';
2020-06-15 15:47:49 +00:00
import Modal from 'ant-design-vue/modal';
2020-06-16 14:55:02 +00:00
import Menu from 'ant-design-vue/menu';
2020-06-03 10:36:18 +00:00
import 'ant-design-vue/style.js';
2020-03-23 03:00:24 +00:00
2020-06-20 07:14:51 +00:00
const basic = {
render() {
return this.$slots.default && this.$slots.default();
},
};
const app = createApp(App);
app.config.globalProperties.$notification = notification;
app.config.globalProperties.$message = message;
app
2020-06-20 07:14:51 +00:00
.component('demo-sort', { ...basic })
.component('md', { ...basic })
.component('api', { ...basic })
.component('CN', { ...basic })
.component('US', { ...basic })
2020-06-08 07:38:07 +00:00
.use(Avatar)
.use(Breadcrumb)
2020-05-27 11:11:46 +00:00
.use(Button)
.use(Comment)
2020-05-28 11:45:50 +00:00
.use(ConfigProvider)
2020-06-02 14:09:34 +00:00
.use(Drawer)
2020-06-03 10:36:18 +00:00
.use(Affix)
2020-06-03 14:46:20 +00:00
.use(Alert)
.use(Radio)
.use(Divider)
.use(Result)
.use(PageHeader)
2020-06-08 07:45:14 +00:00
.use(Anchor)
2020-06-08 09:31:13 +00:00
.use(Skeleton)
2020-06-04 07:04:39 +00:00
.use(Spin)
.use(Empty)
.use(Timeline)
.use(Col)
.use(Row)
2020-06-10 10:20:57 +00:00
.use(Tooltip)
2020-06-11 15:07:48 +00:00
.use(Descriptions)
.use(BackTop)
.use(Tag)
.use(Popconfirm)
.use(Popover)
2020-06-15 15:47:49 +00:00
.use(Modal)
2020-06-16 14:55:02 +00:00
.use(Menu)
2020-05-27 11:11:46 +00:00
.mount('#app');