diff --git a/components/button/index.vue b/components/button/index.vue
index 99755b6..7703c99 100644
--- a/components/button/index.vue
+++ b/components/button/index.vue
@@ -23,13 +23,22 @@ export default {
round: Boolean,
square: Boolean,
disabled: Boolean,
+ plain: Boolean,
},
computed: {
style: function() {
return `display: ${this.block ? '' : 'inline-block'};` ;
},
classRender: function() {
- return [this.size, this.disabled ? 'disabled' : '', this.block ? 'block' : '', this.type, this.round ? 'round' : '', this.square ? 'square' : ''];
+ return [
+ this.size,
+ this.type,
+ this.disabled ? 'disabled' : '',
+ this.block ? 'block' : '',
+ this.round ? 'round' : '',
+ this.square ? 'square' : '',
+ this.plain ? 'plain' : '',
+ ];
}
},
methods: {
diff --git a/components/input-field/index.vue b/components/input-field/index.vue
new file mode 100644
index 0000000..2f20f1a
--- /dev/null
+++ b/components/input-field/index.vue
@@ -0,0 +1,135 @@
+
+
+
+
+ {{ label }}
+
+
+ {{ errorMessage }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/components/input/index.vue b/components/input/index.vue
index 9bd3048..ab96c1a 100644
--- a/components/input/index.vue
+++ b/components/input/index.vue
@@ -15,7 +15,7 @@ export default {
ZuiIcon,
},
props: {
- value: String,
+ value: [String, Number],
type: {
type: String,
default: 'text'
@@ -43,8 +43,8 @@ export default {
this.$emit('input', value);
},
onClear: function() {
- this.model = undefined;
- this.$emit('input', undefined);
+ this.model = '';
+ this.$emit('input', '');
this.$emit('clear');
}
}
--
libgit2 0.21.0