From d8e738d36d6ecb03e3b464200c5ee49102c7cf9f Mon Sep 17 00:00:00 2001 From: Hong Jianwei Date: Thu, 18 Jan 2024 20:08:16 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20stepper=20=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8F=AA=E8=AF=BB=E5=B1=9E=E6=80=A7=20(#1036?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo/pages/Stepper/index.axml.tsx | 3 +++ src/Stepper/index.axml.tsx | 43 ++++++++++++++++++------------- src/Stepper/index.md | 1 + src/Stepper/props.ts | 6 +++++ 4 files changed, 35 insertions(+), 18 deletions(-) diff --git a/demo/pages/Stepper/index.axml.tsx b/demo/pages/Stepper/index.axml.tsx index 9a0979c41..4cd7b6ad2 100644 --- a/demo/pages/Stepper/index.axml.tsx +++ b/demo/pages/Stepper/index.axml.tsx @@ -28,6 +28,9 @@ export default (_, { value, }: InternalData) => ( + + + , { mixin, enableNative, alwaysSystem, confirmType, confirmHold } ) => ( @@ -32,24 +33,30 @@ export default ( onTap="onTap" /> - + {inputReadOnly ? ( + + {mixin.value} + + ) : ( + + )} Date: Thu, 18 Jan 2024 20:46:59 +0800 Subject: [PATCH 2/3] =?UTF-8?q?chore:=20=E6=8F=90=E4=BA=A4=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E5=90=8E=E4=BA=A7=E7=89=A9=20(#1036)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compiled/alipay/demo/pages/Stepper/index.axml | 5 +++++ compiled/alipay/src/Stepper/index.axml | 6 ++++++ compiled/alipay/src/Stepper/index.md | 1 + compiled/alipay/src/Stepper/props.ts | 6 ++++++ compiled/wechat/demo/pages/Stepper/index.wxml | 5 +++++ compiled/wechat/src/Stepper/index.md | 1 + compiled/wechat/src/Stepper/index.wxml | 6 ++++++ 7 files changed, 30 insertions(+) diff --git a/compiled/alipay/demo/pages/Stepper/index.axml b/compiled/alipay/demo/pages/Stepper/index.axml index c714afd28..458f9d5d1 100644 --- a/compiled/alipay/demo/pages/Stepper/index.axml +++ b/compiled/alipay/demo/pages/Stepper/index.axml @@ -32,6 +32,11 @@ defaultValue="{{ 0 }}" disabled /> + + + + + {{ mixin.value }} + + + + + + {{ mixin.value }} + Date: Thu, 18 Jan 2024 20:56:48 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20StepperFunctionalProps=20inputReadOn?= =?UTF-8?q?ly=20=E9=BB=98=E8=AE=A4=E5=80=BC(#1036)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Stepper/props.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Stepper/props.ts b/src/Stepper/props.ts index 182726877..ad8c2414a 100644 --- a/src/Stepper/props.ts +++ b/src/Stepper/props.ts @@ -104,4 +104,5 @@ export const StepperFunctionalProps: Partial = { inputClassName: '', inputStyle: '', disabled: false, + inputReadOnly: false, };