1.npm i u-components -S
2.main.js引入
import Vue from 'vue' import uComps from 'u-components' import 'u-components/src/assets/css/app.scss' let { UDatePicker, USelect, UPager, UInput, UTextarea, UCheckBox, UCheckGroup, URadioBox, URadioGroup, UStepAdder, USwitch, UDialog, UUpload, UAddressSelect, Message, Confirm } = uComps Vue.use(UDatePicker) Vue.use(USelect) Vue.use(UPager) Vue.use(UInput) Vue.use(UTextarea) Vue.use(UCheckBox) Vue.use(UCheckGroup) Vue.use(URadioBox) Vue.use(URadioGroup) Vue.use(UStepAdder) Vue.use(USwitch) Vue.use(UDialog) Vue.use(UUpload) Vue.use(UAddressSelect) Vue.prototype.$message = Message Vue.prototype.$confirm = Confirm
3.直接使用即可