mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
20 lines
316 B
JavaScript
20 lines
316 B
JavaScript
import Sample from '../packages/sample/index.js';
|
|
|
|
const install = function(Vue) {
|
|
if (install.installed) return;
|
|
|
|
Vue.component(Sample.name, Sample);
|
|
|
|
};
|
|
|
|
// auto install
|
|
if (typeof window !== 'undefined' && window.Vue) {
|
|
install(window.Vue);
|
|
};
|
|
|
|
module.exports = {
|
|
install,
|
|
version: '0.0.1',
|
|
Sample
|
|
};
|