From 21404653d49e13298ebd961ef7f6191cf9b2e9f3 Mon Sep 17 00:00:00 2001 From: DiamondYuan Date: Tue, 20 Feb 2024 14:26:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20FormDynamiac=20?= =?UTF-8?q?=E6=B8=B2=E6=9F=93=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compiled/alipay/demo/pages/FormDynamic/index.axml | 2 +- compiled/wechat/demo/pages/FormDynamic/index.wxml | 2 +- compiled/wechat/src/Form/FormInput/index.wxml | 7 ++++++- demo/pages/FormDynamic/index.axml.tsx | 2 +- src/Form/FormInput/index.axml.tsx | 11 +++++------ 5 files changed, 14 insertions(+), 10 deletions(-) diff --git a/compiled/alipay/demo/pages/FormDynamic/index.axml b/compiled/alipay/demo/pages/FormDynamic/index.axml index c394a9384..77a7ebab7 100644 --- a/compiled/alipay/demo/pages/FormDynamic/index.axml +++ b/compiled/alipay/demo/pages/FormDynamic/index.axml @@ -2,7 +2,7 @@ a:for="{{ list }}" a:for-index="index" a:for-item="item" - a:key="{{ item.id }}"> + a:key="id"> + wx:key="id"> - {{ extra }} + + {{ extra }} + + diff --git a/demo/pages/FormDynamic/index.axml.tsx b/demo/pages/FormDynamic/index.axml.tsx index cb3dd73c4..af7f08d39 100644 --- a/demo/pages/FormDynamic/index.axml.tsx +++ b/demo/pages/FormDynamic/index.axml.tsx @@ -7,7 +7,7 @@ export default ({ list }) => ( {list.map((item, index) => ( )} + {/* #if WECHAT */} + {extra ? {extra} : } + {/* #endif */} {/* #if ALIPAY */} - - {/* #endif */} - {extra} - {/* #if ALIPAY */} - + {extra} {/* #endif */}