2021-08-11 15:44:50 +08:00
|
|
|
import Vue from 'vue'
|
|
|
|
|
|
|
|
// base library
|
|
|
|
import {
|
|
|
|
ConfigProvider,
|
|
|
|
Layout,
|
|
|
|
Input,
|
|
|
|
InputNumber,
|
|
|
|
Button,
|
|
|
|
Switch,
|
|
|
|
Radio,
|
|
|
|
Checkbox,
|
|
|
|
Select,
|
|
|
|
Card,
|
|
|
|
Form,
|
|
|
|
Row,
|
|
|
|
Col,
|
|
|
|
Modal,
|
|
|
|
Table,
|
|
|
|
Tabs,
|
|
|
|
Icon,
|
2021-08-20 11:14:51 +08:00
|
|
|
Badge,
|
2021-08-11 15:44:50 +08:00
|
|
|
Popover,
|
|
|
|
Dropdown,
|
|
|
|
List,
|
|
|
|
Avatar,
|
|
|
|
Breadcrumb,
|
|
|
|
Steps,
|
|
|
|
Spin,
|
|
|
|
Menu,
|
|
|
|
Drawer,
|
|
|
|
Tooltip,
|
|
|
|
Alert,
|
|
|
|
Tag,
|
|
|
|
Divider,
|
|
|
|
DatePicker,
|
|
|
|
TimePicker,
|
2021-08-20 11:14:51 +08:00
|
|
|
Upload,
|
2021-08-11 15:44:50 +08:00
|
|
|
Progress,
|
2021-08-20 11:14:51 +08:00
|
|
|
Skeleton,
|
2021-08-11 15:44:50 +08:00
|
|
|
Popconfirm,
|
|
|
|
PageHeader,
|
|
|
|
Result,
|
2021-08-20 11:14:51 +08:00
|
|
|
Statistic,
|
2021-08-11 15:44:50 +08:00
|
|
|
Descriptions,
|
|
|
|
message,
|
2021-08-24 10:36:33 +08:00
|
|
|
notification,
|
2021-08-31 09:26:31 +08:00
|
|
|
space,
|
2021-08-31 11:08:04 +08:00
|
|
|
Transfer,
|
2021-08-31 09:26:31 +08:00
|
|
|
Tree,
|
2021-08-31 11:08:04 +08:00
|
|
|
Empty,
|
2021-08-31 09:26:31 +08:00
|
|
|
TreeSelect
|
2021-08-11 15:44:50 +08:00
|
|
|
} from 'ant-design-vue'
|
|
|
|
import Viser from 'viser-vue'
|
|
|
|
|
|
|
|
// ext library
|
|
|
|
import VueCropper from 'vue-cropper'
|
|
|
|
import Dialog from '@/components/Dialog'
|
|
|
|
import MultiTab from '@/components/MultiTab'
|
|
|
|
import PageLoading from '@/components/PageLoading'
|
|
|
|
import PermissionHelper from '@/utils/helper/permission'
|
|
|
|
import './directives/action'
|
|
|
|
|
|
|
|
Vue.use(ConfigProvider)
|
|
|
|
Vue.use(Layout)
|
|
|
|
Vue.use(Input)
|
|
|
|
Vue.use(InputNumber)
|
|
|
|
Vue.use(Button)
|
|
|
|
Vue.use(Switch)
|
|
|
|
Vue.use(Radio)
|
|
|
|
Vue.use(Checkbox)
|
|
|
|
Vue.use(Select)
|
|
|
|
Vue.use(Card)
|
|
|
|
Vue.use(Form)
|
|
|
|
Vue.use(Row)
|
|
|
|
Vue.use(Col)
|
|
|
|
Vue.use(Modal)
|
|
|
|
Vue.use(Table)
|
|
|
|
Vue.use(Tabs)
|
|
|
|
Vue.use(Icon)
|
2021-08-20 11:14:51 +08:00
|
|
|
Vue.use(Badge)
|
2021-08-11 15:44:50 +08:00
|
|
|
Vue.use(Popover)
|
|
|
|
Vue.use(Dropdown)
|
|
|
|
Vue.use(List)
|
|
|
|
Vue.use(Avatar)
|
|
|
|
Vue.use(Breadcrumb)
|
|
|
|
Vue.use(Steps)
|
|
|
|
Vue.use(Spin)
|
|
|
|
Vue.use(Menu)
|
|
|
|
Vue.use(Drawer)
|
|
|
|
Vue.use(Tooltip)
|
|
|
|
Vue.use(Alert)
|
|
|
|
Vue.use(Tag)
|
|
|
|
Vue.use(Divider)
|
|
|
|
Vue.use(DatePicker)
|
|
|
|
Vue.use(TimePicker)
|
2021-08-20 11:14:51 +08:00
|
|
|
Vue.use(Upload)
|
2021-08-11 15:44:50 +08:00
|
|
|
Vue.use(Progress)
|
2021-08-20 11:14:51 +08:00
|
|
|
Vue.use(Skeleton)
|
2021-08-11 15:44:50 +08:00
|
|
|
Vue.use(Popconfirm)
|
|
|
|
Vue.use(PageHeader)
|
|
|
|
Vue.use(Result)
|
2021-08-20 11:14:51 +08:00
|
|
|
Vue.use(Statistic)
|
2021-08-11 15:44:50 +08:00
|
|
|
Vue.use(Descriptions)
|
2021-08-24 10:36:33 +08:00
|
|
|
Vue.use(space)
|
2021-08-31 09:26:31 +08:00
|
|
|
Vue.use(Tree)
|
2021-08-31 11:08:04 +08:00
|
|
|
Vue.use(Transfer)
|
|
|
|
Vue.use(Empty)
|
2021-08-31 09:26:31 +08:00
|
|
|
Vue.use(TreeSelect)
|
2021-08-11 15:44:50 +08:00
|
|
|
|
|
|
|
Vue.prototype.$confirm = Modal.confirm
|
|
|
|
Vue.prototype.$message = message
|
|
|
|
Vue.prototype.$notification = notification
|
|
|
|
Vue.prototype.$info = Modal.info
|
|
|
|
Vue.prototype.$success = Modal.success
|
|
|
|
Vue.prototype.$error = Modal.error
|
|
|
|
Vue.prototype.$warning = Modal.warning
|
|
|
|
|
|
|
|
Vue.use(Viser)
|
|
|
|
Vue.use(Dialog) // this.$dialog func
|
|
|
|
Vue.use(MultiTab)
|
|
|
|
Vue.use(PageLoading)
|
|
|
|
Vue.use(PermissionHelper)
|
|
|
|
Vue.use(VueCropper)
|
|
|
|
|
|
|
|
process.env.NODE_ENV !== 'production' && console.warn('[antd-pro] NOTICE: Antd use lazy-load.')
|