This commit is contained in:
cookfront 2017-03-02 11:29:50 +08:00
parent 6f2b44bb4d
commit 71397bc9d4
2 changed files with 12 additions and 12 deletions

View File

@ -16,19 +16,19 @@ export default {
props: {
active: Number,
icon: String,
iconClass: String,
// iconClass: String,
title: String,
description: String
},
computed: {
computedIconClass() {
let iconName = `zan-icon-${this.icon}`;
let result = (iconClass && iconClass.split(' ')) || [];
result.push(iconName);
// computedIconClass() {
// let iconName = `zan-icon-${this.icon}`;
// let result = (iconClass && iconClass.split(' ')) || [];
// result.push(iconName);
return result;
}
// return result;
// }
}
};
</script>

View File

@ -48,14 +48,14 @@ const install = function(Vue) {
Vue.component(Step.name, Step);
};
auto install
if (typeof window !== 'undefined' && window.Vue) {
install(window.Vue);
}
// auto install
// if (typeof window !== 'undefined' && window.Vue) {
// install(window.Vue);
// }
module.exports = {
install,
version: '0.0.8',
version: '0.0.9',
Button,
Switch,
Field,