From 080dbe33a75679325e3bc330d5a94d60975cd50d Mon Sep 17 00:00:00 2001 From: 2betop <2betop.cn@gmail.com> Date: Mon, 11 May 2020 20:27:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20repeat=20=E7=BB=84?= =?UTF-8?q?=E5=90=88=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/components/Form/Full.jsx | 24 +++++++++++++++++++++--- scss/_utilities.scss | 1 + 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/examples/components/Form/Full.jsx b/examples/components/Form/Full.jsx index a0cf5a897..56315fb01 100644 --- a/examples/components/Form/Full.jsx +++ b/examples/components/Form/Full.jsx @@ -782,7 +782,25 @@ export default { name: 'repeatCount', type: 'range', label: false, - visibleOn: 'data.repeatUnit != "none"' + visibleOn: 'data.repeatUnit == "year"' + }, + + { + name: 'repeatCount', + type: 'range', + label: false, + max: 11, + min: 1, + visibleOn: 'data.repeatUnit == "month"' + }, + + { + name: 'repeatCount', + type: 'range', + label: false, + max: 29, + min: 1, + visibleOn: 'data.repeatUnit == "day"' }, { @@ -790,8 +808,8 @@ export default { name: 'repeatUnit', label: false, value: 'none', - mode: 'inline', - columnClassName: 'v-middle no-grow', + // mode: 'inline', + columnClassName: 'v-middle w-sm no-grow', options: [ { label: '不重复', diff --git a/scss/_utilities.scss b/scss/_utilities.scss index 94a0c48c4..eb6223996 100644 --- a/scss/_utilities.scss +++ b/scss/_utilities.scss @@ -1221,6 +1221,7 @@ .no-grow { flex-grow: unset !important; + flex-basis: unset !important; } .nowrap {