2020-05-27 19:11:46 +08:00
|
|
|
import '@babel/polyfill';
|
2020-07-20 16:29:46 +08:00
|
|
|
import 'ant-design-vue/style.js';
|
2020-07-08 22:28:09 +08:00
|
|
|
import { createApp, version } from 'vue';
|
2020-03-23 11:00:24 +08:00
|
|
|
import App from './App.vue';
|
2020-06-27 14:02:30 +08:00
|
|
|
import {
|
2020-07-07 14:19:04 +08:00
|
|
|
Badge,
|
2020-07-02 00:24:44 +08:00
|
|
|
AutoComplete,
|
2020-06-29 22:22:25 +08:00
|
|
|
Radio,
|
|
|
|
Spin,
|
|
|
|
Select,
|
2020-06-27 14:02:30 +08:00
|
|
|
Input,
|
2020-06-27 22:17:48 +08:00
|
|
|
InputNumber,
|
2020-06-27 14:02:30 +08:00
|
|
|
Rate,
|
|
|
|
Button,
|
|
|
|
Upload,
|
|
|
|
Icon,
|
|
|
|
Modal,
|
|
|
|
Progress,
|
|
|
|
Tooltip,
|
|
|
|
Col,
|
|
|
|
Row,
|
2020-07-06 22:31:07 +08:00
|
|
|
FormModel,
|
|
|
|
Switch,
|
|
|
|
Checkbox,
|
2020-07-08 22:28:09 +08:00
|
|
|
Cascader,
|
2020-07-14 23:09:32 +08:00
|
|
|
Pagination,
|
2020-07-15 22:39:16 +08:00
|
|
|
List,
|
|
|
|
Collapse,
|
2020-07-16 16:24:44 +08:00
|
|
|
Card,
|
2020-07-15 22:39:16 +08:00
|
|
|
Avatar,
|
2020-07-16 18:31:20 +08:00
|
|
|
Tree,
|
2020-07-18 21:40:26 +08:00
|
|
|
TreeSelect,
|
2020-07-19 22:40:35 +08:00
|
|
|
Transfer,
|
2020-07-20 22:47:06 +08:00
|
|
|
Slider,
|
2020-07-20 16:29:46 +08:00
|
|
|
Carousel,
|
2020-07-21 16:46:39 +08:00
|
|
|
TimePicker,
|
2020-07-22 15:33:57 +08:00
|
|
|
Calendar,
|
2020-07-22 17:47:08 +08:00
|
|
|
DatePicker,
|
2020-06-27 14:02:30 +08:00
|
|
|
notification,
|
|
|
|
message,
|
|
|
|
} from 'ant-design-vue';
|
2020-07-07 14:19:04 +08:00
|
|
|
|
2020-07-08 22:28:09 +08:00
|
|
|
// eslint-disable-next-line no-console
|
|
|
|
console.log('Vue version: ', version);
|
2020-06-20 15:14:51 +08:00
|
|
|
const basic = {
|
|
|
|
render() {
|
2020-06-26 12:57:05 +08:00
|
|
|
return this.$slots?.default();
|
2020-06-20 15:14:51 +08:00
|
|
|
},
|
|
|
|
};
|
2020-06-14 21:41:29 +08:00
|
|
|
const app = createApp(App);
|
|
|
|
app.config.globalProperties.$notification = notification;
|
|
|
|
app.config.globalProperties.$message = message;
|
|
|
|
app
|
2020-07-19 22:40:35 +08:00
|
|
|
.component('demo-sort', { ...basic })
|
|
|
|
.component('md', { ...basic })
|
|
|
|
.component('api', { ...basic })
|
|
|
|
.component('CN', { ...basic })
|
|
|
|
.component('US', { ...basic })
|
2020-07-14 23:09:32 +08:00
|
|
|
.use(Pagination)
|
2020-06-29 22:22:25 +08:00
|
|
|
.use(Select)
|
|
|
|
.use(Spin)
|
2020-06-25 21:23:39 +08:00
|
|
|
.use(Upload)
|
2020-05-27 19:11:46 +08:00
|
|
|
.use(Button)
|
2020-06-25 21:23:39 +08:00
|
|
|
.use(Icon)
|
2020-06-25 22:21:23 +08:00
|
|
|
.use(Modal)
|
2020-06-26 10:08:47 +08:00
|
|
|
.use(Progress)
|
2020-06-26 12:57:05 +08:00
|
|
|
.use(Rate)
|
2020-06-27 14:02:30 +08:00
|
|
|
.use(Input)
|
|
|
|
.use(Tooltip)
|
|
|
|
.use(Col)
|
|
|
|
.use(Row)
|
2020-07-07 14:19:04 +08:00
|
|
|
.use(Badge)
|
2020-06-29 22:22:25 +08:00
|
|
|
.use(Radio)
|
2020-07-06 22:31:07 +08:00
|
|
|
.use(Switch)
|
|
|
|
.use(Checkbox)
|
2020-06-27 22:17:48 +08:00
|
|
|
.use(InputNumber)
|
2020-07-02 00:24:44 +08:00
|
|
|
.use(AutoComplete)
|
2020-07-06 22:31:07 +08:00
|
|
|
.use(FormModel)
|
2020-07-08 22:28:09 +08:00
|
|
|
.use(Cascader)
|
2020-07-15 22:39:16 +08:00
|
|
|
.use(List)
|
|
|
|
.use(Collapse)
|
|
|
|
.use(Avatar)
|
2020-07-16 16:24:44 +08:00
|
|
|
.use(Card)
|
2020-07-16 18:31:20 +08:00
|
|
|
.use(Tree)
|
2020-07-18 21:40:26 +08:00
|
|
|
.use(TreeSelect)
|
2020-07-19 22:40:35 +08:00
|
|
|
.use(Transfer)
|
2020-07-20 22:47:06 +08:00
|
|
|
.use(Slider)
|
2020-07-20 16:29:46 +08:00
|
|
|
.use(Carousel)
|
2020-07-21 16:46:39 +08:00
|
|
|
.use(TimePicker)
|
2020-07-22 15:33:57 +08:00
|
|
|
.use(Calendar)
|
2020-07-22 17:47:08 +08:00
|
|
|
.use(DatePicker)
|
2020-05-27 19:11:46 +08:00
|
|
|
.mount('#app');
|