fix: default prefix is empty

This commit is contained in:
young 2017-03-14 15:34:19 +08:00
parent 480911bd44
commit 75ed74e9a6

View file

@ -117,10 +117,10 @@ const iview = {
Upload
};
let defaultOptions = {
componentPrefix: 'i'
}
componentPrefix: ''
};
const install = function (Vue, opts = {}) {
opts = Object.assign(defaultOptions, (opts || {}))
opts = Object.assign(defaultOptions, (opts || {}));
locale.use(opts.locale);
locale.i18n(opts.i18n);