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: { props: {
active: Number, active: Number,
icon: String, icon: String,
iconClass: String, // iconClass: String,
title: String, title: String,
description: String description: String
}, },
computed: { computed: {
computedIconClass() { // computedIconClass() {
let iconName = `zan-icon-${this.icon}`; // let iconName = `zan-icon-${this.icon}`;
let result = (iconClass && iconClass.split(' ')) || []; // let result = (iconClass && iconClass.split(' ')) || [];
result.push(iconName); // result.push(iconName);
return result; // return result;
} // }
} }
}; };
</script> </script>

View File

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