1
0
mirror of https://gitee.com/vant-contrib/vant.git synced 2025-04-06 03:57:59 +08:00
2017-02-22 16:21:06 +08:00

53 lines
1.4 KiB
JavaScript

import Button from '../packages/button/index.js';
import Switch from '../packages/switch/index.js';
import Field from '../packages/field/index.js';
import Radio from '../packages/radio/index.js';
import Cell from '../packages/cell/index.js';
import Icon from '../packages/icon/index.js';
import CellGroup from '../packages/cell-group/index.js';
import Popup from '../packages/popup/index.js';
import Dialog from '../packages/dialog/index.js';
import Picker from '../packages/picker/index.js';
import RadioGroup from '../packages/radio-group/index.js';
import Waterfall from '../packages/waterfall/index.js';
// zanui
import '../packages/zanui-css/src/index.pcss';
const install = function(Vue) {
if (install.installed) return;
Vue.component(Button.name, Button);
Vue.component(Switch.name, Switch);
Vue.component(Field.name, Field);
Vue.component(Radio.name, Radio);
Vue.component(Cell.name, Cell);
Vue.component(Icon.name, Icon);
Vue.component(CellGroup.name, CellGroup);
Vue.component(Popup.name, Popup);
Vue.component(Picker.name, Picker);
Vue.component(RadioGroup.name, RadioGroup);
Vue.component(Waterfall.name, Waterfall);
};
// auto install
if (typeof window !== 'undefined' && window.Vue) {
install(window.Vue);
};
module.exports = {
install,
version: '0.0.1',
Button,
Switch,
Field,
Radio,
Cell,
Icon,
CellGroup,
Popup,
Dialog,
Picker,
RadioGroup,
Waterfall
};