From 97c1a7780d2c21f49bad9211473fef8b5fc01cd1 Mon Sep 17 00:00:00 2001 From: rex Date: Tue, 22 Dec 2020 20:40:45 +0800 Subject: [PATCH] perf(stepper): use wxs (#3890) --- packages/stepper/index.ts | 4 ++-- packages/stepper/index.wxml | 7 ++++--- packages/stepper/index.wxs | 22 ++++++++++++++++++++++ 3 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 packages/stepper/index.wxs diff --git a/packages/stepper/index.ts b/packages/stepper/index.ts index f762ae77..4b3dc85e 100644 --- a/packages/stepper/index.ts +++ b/packages/stepper/index.ts @@ -33,8 +33,8 @@ VantComponent({ observer: 'check', }, disabled: Boolean, - inputWidth: null, - buttonSize: null, + inputWidth: String, + buttonSize: String, asyncChange: Boolean, disableInput: Boolean, decimalLength: { diff --git a/packages/stepper/index.wxml b/packages/stepper/index.wxml index 95704208..eadee98c 100644 --- a/packages/stepper/index.wxml +++ b/packages/stepper/index.wxml @@ -1,10 +1,11 @@ +