From dc365ce5da272ecf0f1025069977ed6428790061 Mon Sep 17 00:00:00 2001 From: GPU is all you need <2778335106@qq.com> Date: Sun, 16 Oct 2022 22:44:30 +0800 Subject: [PATCH] =?UTF-8?q?fix=20yinput=E6=9C=89=E6=97=B6=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=B8=8D=E5=87=BA=E6=9D=A5=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IOReportSysMP/miniprogram/components/yinput/yinput.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IOReportSysMP/miniprogram/components/yinput/yinput.ts b/IOReportSysMP/miniprogram/components/yinput/yinput.ts index 30ed8be..41cba2f 100644 --- a/IOReportSysMP/miniprogram/components/yinput/yinput.ts +++ b/IOReportSysMP/miniprogram/components/yinput/yinput.ts @@ -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 }) },