|
|
|
|
@ -30,7 +30,7 @@ Component({ |
|
|
|
|
}, |
|
|
|
|
lifetimes: { |
|
|
|
|
ready:function(){ |
|
|
|
|
const initValue = this.data.defaultValue || '' |
|
|
|
|
const initValue = this.data.value || this.data.defaultValue || '' |
|
|
|
|
this.dataset[this.data.bindValue] = initValue |
|
|
|
|
this.setData({ value: initValue }) |
|
|
|
|
}, |
|
|
|
|
|