mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-05-22 06:31:46 +08:00
parent
978b59650c
commit
b7ded1282f
@ -1,7 +1,6 @@
|
|||||||
import { VantComponent } from '../common/component';
|
import { VantComponent } from '../common/component';
|
||||||
import { Weapp } from 'definitions/weapp';
|
import { Weapp } from 'definitions/weapp';
|
||||||
import { commonProps, inputProps, textareaProps } from './props';
|
import { commonProps, inputProps, textareaProps } from './props';
|
||||||
import { canIUseModel } from '../common/version';
|
|
||||||
|
|
||||||
VantComponent({
|
VantComponent({
|
||||||
field: true,
|
field: true,
|
||||||
@ -122,9 +121,7 @@ VantComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
emitChange() {
|
emitChange() {
|
||||||
if (canIUseModel()) {
|
this.setData({ value: this.value });
|
||||||
this.setData({ value: this.value });
|
|
||||||
}
|
|
||||||
|
|
||||||
wx.nextTick(() => {
|
wx.nextTick(() => {
|
||||||
this.$emit('input', this.value);
|
this.$emit('input', this.value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user