mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 16:44:21 +00:00
27 lines
563 B
JavaScript
27 lines
563 B
JavaScript
import Sample from '../packages/sample/index.js';
|
|
import Button from '../packages/button/index.js';
|
|
import Switch from '../packages/switch/index.js';
|
|
// zenui
|
|
import '../packages/zenui/src/index.pcss';
|
|
|
|
const install = function(Vue) {
|
|
if (install.installed) return;
|
|
|
|
Vue.component(Sample.name, Sample);
|
|
Vue.component(Button.name, Button);
|
|
Vue.component(Switch.name, Switch);
|
|
};
|
|
|
|
// auto install
|
|
if (typeof window !== 'undefined' && window.Vue) {
|
|
install(window.Vue);
|
|
};
|
|
|
|
module.exports = {
|
|
install,
|
|
version: '0.0.1',
|
|
Sample,
|
|
Button,
|
|
Switch
|
|
};
|