From 2a14378adc9d863d23b86d82f07b62ac2c3608ac Mon Sep 17 00:00:00 2001 From: lxy Date: Mon, 1 Jul 2024 18:24:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A6=E5=8D=95=E4=B8=8B=E6=8B=89=E5=88=B7?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/accountOper/list/index.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/components/accountOper/list/index.ts b/src/components/accountOper/list/index.ts index 35718ee6..1bda65a6 100644 --- a/src/components/accountOper/list/index.ts +++ b/src/components/accountOper/list/index.ts @@ -23,6 +23,7 @@ export default OakComponent({ chooseType: false, pickerStart: dayjs().subtract(10, 'y').startOf('m').format('YYYY-MM-DD'), pickerEnd: dayjs().startOf('m').format('YYYY-MM-DD'), + refreshing: false, }, filters: [ { @@ -169,6 +170,18 @@ export default OakComponent({ type: key, }, () => this.setTypeFilter()) this.closeChooseTypeMp(); - } + }, + bindrefresherrefresh() { + this.setState({ + refreshing: true + }) + this.refresh(); + setTimeout(() => { + this.setState({ + refreshing: false + }) + }, 1000); + + }, } }) \ No newline at end of file