From 19fdb56f6e2d088b63d5e807974cff77de34799d Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Fri, 07 Jan 2022 18:36:24 +0800 Subject: [PATCH] 优化数值输入组件 --- forms/numberStep/cNumberStep.scss | 33 ++++++++++++++++++++++++++++----- 1 files changed, 28 insertions(+), 5 deletions(-) diff --git a/forms/numberStep/cNumberStep.scss b/forms/numberStep/cNumberStep.scss index 7308861..f08b3ae 100644 --- a/forms/numberStep/cNumberStep.scss +++ b/forms/numberStep/cNumberStep.scss @@ -18,12 +18,35 @@ .at-input { padding: 16px 0; } - .at-input-number { - .at-input-number__btn { - padding: 16px 16px; + .c-number-step-step { + .at-input-number { + .weui-input { + display: inline-block; + } + .at-input-number__btn { + padding: 16px 16px; + width: 36px; + height: 30px; + } + .at-input-number__input { + font-size: 36px; + } + .at-input-number__btn-subtract, + .at-input-number__btn-add { + font-size: 36px; + } } - .at-input-number__input { - font-size: 30px; + &.on-unit { + position: relative; + .at-input-number__input { + padding-right: 40px; + } + .c-number-step-unit { + @include position(absolute, 2px 186px n n); + width: 40px; + line-height: 62px; + color: #999; + } } } } \ No newline at end of file -- Gitblit v1.9.1