mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
add button
This commit is contained in:
20
src/index.js
20
src/index.js
@@ -1,9 +1,19 @@
|
||||
import Sample from '../packages/sample/index.js';
|
||||
import Button from '../packages/button/index.js';
|
||||
import 'es6-promise/auto';
|
||||
import axios from 'axios';
|
||||
import foreach from 'lodash/foreach';
|
||||
import filter from 'lodash/filter';
|
||||
import find from 'lodash/find';
|
||||
import map from 'lodash/map';
|
||||
// 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);
|
||||
};
|
||||
|
||||
// auto install
|
||||
@@ -14,5 +24,13 @@ if (typeof window !== 'undefined' && window.Vue) {
|
||||
module.exports = {
|
||||
install,
|
||||
version: '0.0.1',
|
||||
Sample
|
||||
axios,
|
||||
_: {
|
||||
foreach,
|
||||
filter,
|
||||
find,
|
||||
map
|
||||
},
|
||||
Sample,
|
||||
Button
|
||||
};
|
||||
|
Reference in New Issue
Block a user