ant-design-vue/examples/index.js

80 lines
1.3 KiB
JavaScript
Raw Normal View History

2020-05-27 11:11:46 +00:00
import '@babel/polyfill';
2020-07-08 14:28:09 +00:00
import { createApp, version } from 'vue';
2020-03-23 03:00:24 +00:00
import App from './App.vue';
2020-06-27 06:02:30 +00:00
import {
Badge,
2020-07-01 16:24:44 +00:00
AutoComplete,
2020-06-29 14:22:25 +00:00
Radio,
Spin,
Select,
2020-06-27 06:02:30 +00:00
Input,
2020-06-27 14:17:48 +00:00
InputNumber,
2020-06-27 06:02:30 +00:00
Rate,
Button,
Upload,
Icon,
Modal,
Progress,
Tooltip,
Col,
Row,
2020-07-06 14:31:07 +00:00
FormModel,
Switch,
Checkbox,
2020-07-08 14:28:09 +00:00
Cascader,
2020-07-14 15:09:32 +00:00
Pagination,
2020-07-15 14:39:16 +00:00
List,
Collapse,
2020-07-16 08:24:44 +00:00
Card,
2020-07-15 14:39:16 +00:00
Avatar,
2020-07-16 10:31:20 +00:00
Tree,
2020-06-27 06:02:30 +00:00
notification,
message,
} from 'ant-design-vue';
2020-06-03 10:36:18 +00:00
import 'ant-design-vue/style.js';
2020-03-23 03:00:24 +00:00
2020-07-08 14:28:09 +00:00
// eslint-disable-next-line no-console
console.log('Vue version: ', version);
2020-06-20 07:14:51 +00:00
const basic = {
render() {
2020-06-26 04:57:05 +00:00
return this.$slots?.default();
2020-06-20 07:14:51 +00:00
},
};
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-07-14 15:09:32 +00:00
.use(Pagination)
2020-06-29 14:22:25 +00:00
.use(Select)
.use(Spin)
.use(Upload)
2020-05-27 11:11:46 +00:00
.use(Button)
.use(Icon)
2020-06-25 14:21:23 +00:00
.use(Modal)
2020-06-26 02:08:47 +00:00
.use(Progress)
2020-06-26 04:57:05 +00:00
.use(Rate)
2020-06-27 06:02:30 +00:00
.use(Input)
.use(Tooltip)
.use(Col)
.use(Row)
.use(Badge)
2020-06-29 14:22:25 +00:00
.use(Radio)
2020-07-06 14:31:07 +00:00
.use(Switch)
.use(Checkbox)
2020-06-27 14:17:48 +00:00
.use(InputNumber)
2020-07-01 16:24:44 +00:00
.use(AutoComplete)
2020-07-06 14:31:07 +00:00
.use(FormModel)
2020-07-08 14:28:09 +00:00
.use(Cascader)
2020-07-15 14:39:16 +00:00
.use(List)
.use(Collapse)
.use(Avatar)
2020-07-16 08:24:44 +00:00
.use(Card)
2020-07-16 10:31:20 +00:00
.use(Tree)
2020-05-27 11:11:46 +00:00
.mount('#app');