//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
import zCell from 'packages/cell';
export default {
name: 'zan-field',
components: {
zCell
},
props: {
type: {
type: String,
default: 'text'
},
placeholder: String,
value: String,
label: String,
disabled: Boolean,
readonly: Boolean,
maxlength: [String, Number]
},
data() {
return {
currentValue: this.value
};
},
watch: {
value(val) {
this.currentValue = val;
},
currentValue(val) {
this.$emit('input', val);
console.log(val);
}
},
methods: {
handleInput(event) {
this.currentValue = event.target.value;
}
}
};
|