airyland / vux

Mobile UI Components based on Vue & WeUI
https://vux.li
MIT License
17.59k stars 3.71k forks source link

直接引入所有的组件包 #1331

Closed kaikaige closed 7 years ago

kaikaige commented 7 years ago
import { Tabbar, TabbarItem, XInput, Group, XButton, Cell, XHeader, LoadingPlugin } from 'vux'
export default {
  components: {
    XInput,
    XButton,
    Group,
    Cell,
    XHeader,
    Tabbar,
    TabbarItem
  },

不想每调用一个组件都需要引入一次,有没有直接全部装载进来的方法?

airyland commented 7 years ago

别在移动端干这么变态的事。如果组件重复使用,在 main.js 中全局注册组件就好。

kaikaige commented 7 years ago

我就是想要方便一点,因为最终build的文件我会混编成APP