From b0da80d075a6ac6f7ed4b40391b9c835f79124b1 Mon Sep 17 00:00:00 2001 From: jiangdayuan Date: Fri, 3 Sep 2021 20:33:32 +0800 Subject: [PATCH 1/3] jiangdayuan@huawei.com Signed-off-by: jiangdayuan Change-Id: I35fa2d1cece27cd06029942d5fc471dddc2390e5 --- compiler/src/component_map.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/src/component_map.ts b/compiler/src/component_map.ts index 0c1e26ab6..9b1272f85 100644 --- a/compiler/src/component_map.ts +++ b/compiler/src/component_map.ts @@ -78,6 +78,10 @@ export const COMPONENT_MAP: any = { atomic: true, attrs: ['iconPosition'] }, + Slider: { + atomic: true, + attrs: ['blockColor', 'trackColor', 'selectedColor', 'minLabel', 'maxLabel', 'showSteps', 'showTips', 'onChange'] + }, Counter: { attrs: [ 'onStateChange', 'onInc', -- Gitee From 2569f9df9cb43b48945171c8278a767dc15bd1dc Mon Sep 17 00:00:00 2001 From: jiangdayuan Date: Mon, 6 Sep 2021 11:05:22 +0800 Subject: [PATCH 2/3] jiangdayuan@huawei.com Signed-off-by: jiangdayuan Change-Id: I1add06fd590c661fe7c5e4b1c3e41f2d384b0753 --- compiler/src/component_map.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/src/component_map.ts b/compiler/src/component_map.ts index 9b1272f85..9b35f2859 100644 --- a/compiler/src/component_map.ts +++ b/compiler/src/component_map.ts @@ -61,6 +61,11 @@ export const COMPONENT_MAP: any = { 'decoration', 'letterSpacing', 'textCase', 'baselineOffset', 'minFontSize', 'maxFontSize' ] }, + TextPicker: { + atomic: true, + attrs: [ + 'defaultPickerItemHeight', 'onAccept', 'onCancel', 'onChange'] + }, Span: { atomic: true, attrs: [ -- Gitee From c983549ef7ffdf01b61828b386dde10a8c6131e8 Mon Sep 17 00:00:00 2001 From: jiangdayuan Date: Tue, 7 Sep 2021 12:45:51 +0800 Subject: [PATCH 3/3] jiangdayuan@huawei.com Signed-off-by: jiangdayuan Change-Id: I15a95fac3d8589a0dbcca552518ab8bbe2191b05 --- compiler/src/component_map.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/src/component_map.ts b/compiler/src/component_map.ts index 9b35f2859..e5264eeb1 100644 --- a/compiler/src/component_map.ts +++ b/compiler/src/component_map.ts @@ -297,8 +297,8 @@ const COMMON_ATTRS: Set = new Set([ 'padding', 'paddingLeft', 'paddingRight', 'paddingTop', 'paddingBottom', 'margin', 'marginLeft', 'marginRight', 'marginTop', 'marginBottom', 'border', 'borderStyle', 'borderWidth', 'borderColor', 'borderRadius', - 'backgroundColor', 'backgroundImage', 'backgroundImageSize', 'backgroundImagePosition', 'opacity', 'animation', 'transition', - 'navigationTitle', 'navigationSubTitle', 'hideNavigationBar', 'hideNavigationBackButton', + 'backgroundColor', 'backgroundImage', 'backgroundImageSize', 'backgroundImagePosition', 'opacity', 'animation', + 'transition', 'navigationTitle', 'navigationSubTitle', 'hideNavigationBar', 'hideNavigationBackButton', 'toolBar', 'hideToolBar', 'onClick', 'onTouch', 'onKeyEvent', 'blur', 'backdropBlur', 'windowBlur', 'translate', 'rotate', 'scale', 'transform', 'onAppear', 'onDisAppear', 'visibility', 'flexBasis', 'flexShrink', 'flexGrow', 'alignSelf', -- Gitee