From 566ca22c0943fad4aa5f43fdff959ee8e229d4cd Mon Sep 17 00:00:00 2001 From: yaoyuchi Date: Tue, 15 Mar 2022 16:49:22 +0800 Subject: [PATCH] =?UTF-8?q?display=20=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yaoyuchi --- deps/weex-styler/lib/validator.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/deps/weex-styler/lib/validator.js b/deps/weex-styler/lib/validator.js index cbef44e..9562a3b 100644 --- a/deps/weex-styler/lib/validator.js +++ b/deps/weex-styler/lib/validator.js @@ -2368,7 +2368,7 @@ var RICH_PROP_NAME_GROUPS = { objectFit: genEnumValidator(['cover', 'fill', 'contain', 'none', 'scale-down']), backgroundSize: BACKGROUND_SIZE_VALIDATOR, backgroundPosition: BACKGROUND_POSITION_VALIDATOR, - display: genEnumValidator(['flex', 'none', 'grid']), + display: genEnumValidator(['flex', 'none', 'grid', 'block', 'inline', 'inline-block','inline-flex']), imageFill: COLOR_VAR_VALIDATOR, maskImage: MASK_VALIDATOR, maskPosition: BACKGROUND_POSITION_VALIDATOR, @@ -2826,7 +2826,7 @@ var LITE_PROP_NAME_GROUPS = { opacity: NUMBER_VALIDATOR, backgroundColor: COLOR_VAR_VALIDATOR, backgroundImage: URL_VALIDATOR, - display: genEnumValidator(['flex', 'none']), + display: genEnumValidator(['flex', 'none', 'block', 'inline', 'inline-block']), }, text: { color: COLOR_VAR_VALIDATOR, @@ -2889,7 +2889,8 @@ var CARD_PROP_NAME_GROUPS = { boxShadowColor: COLOR_VAR_VALIDATOR, filter: FILTER_VALIDATOR, backdropFilter: FILTER_VALIDATOR, - windowFilter: FILTER_PERCENTAGE_VALIDATOR + windowFilter: FILTER_PERCENTAGE_VALIDATOR, + boxSizing:genEnumValidator(["content-box","border-box"]) }, div: { gridTemplateColumns: GRID_TEMPLATE_VALIDATOR, @@ -2959,7 +2960,7 @@ var CARD_PROP_NAME_GROUPS = { opacity: NUMBER_VALIDATOR, appearingDuration: NUMBER_VALIDATOR, visibility: genEnumValidator(['visible', 'hidden']), - display: genEnumValidator(['flex', 'none', 'grid']), + display: genEnumValidator(['flex', 'none', 'grid', 'block', 'inline', 'inline-block','inline-flex']), imageFill: COLOR_VAR_VALIDATOR, maskImage: MASK_VALIDATOR, maskPosition: BACKGROUND_POSITION_VALIDATOR, -- Gitee