Signed-off-by: houhaoyu <houhaoyu@huawei.com>
Change-Id: I7f3ff01ae9dc46c4c8d3b7da9064e8833ea42b4d
This commit is contained in:
houhaoyu
2022-01-09 20:42:31 +08:00
parent 15062e63f9
commit f2dd4491c7
14 changed files with 66 additions and 13 deletions
+2 -1
View File
@@ -2,6 +2,7 @@
"name": "AlphabetIndexer",
"attrs": [
"onSelected", "selectedColor", "popupColor", "selectedBackgroundColor", "popupBackground", "usingPopup",
"selectedFont", "popupFont", "itemSize", "font", "color", "alignStyle"
"selectedFont", "popupFont", "itemSize", "font", "color", "alignStyle", "onRequestPopupData", "onPopupSelected",
"selectedIndex", "popupPosition"
]
}
+4
View File
@@ -0,0 +1,4 @@
{
"name": "Checkbox",
"attrs": ["select","selectedColor","onChange"]
}
+4
View File
@@ -0,0 +1,4 @@
{
"name": "CheckboxGroup",
"attrs": ["selectAll","selectedColor","onChange"]
}
+3 -3
View File
@@ -6,7 +6,7 @@
"border", "borderStyle", "borderWidth", "borderColor", "borderRadius",
"backgroundColor", "backgroundImage", "backgroundImageSize", "backgroundImagePosition",
"opacity", "animation", "transition", "stateStyles",
"onClick", "onTouch", "touchable", "onKeyEvent", "onHover","onAreaChange",
"onClick", "onTouch", "touchable", "onKeyEvent", "onHover", "hoverEffect", "onMouse", "onAreaChange",
"blur", "backdropBlur", "windowBlur", "translate", "rotate", "scale", "transform",
"onAppear", "onDisAppear", "visibility", "flexBasis", "flexShrink", "flexGrow", "alignSelf",
"useAlign", "zIndex", "sharedTransition", "direction", "align", "position", "markAnchor",
@@ -14,11 +14,11 @@
"onDrag", "onDragEnter", "onDragMove", "onDragLeave", "onDrop",
"overlay", "linearGradient", "sweepGradient", "radialGradient",
"gridOffset", "gridSpan", "useSizeType",
"motionPath", "clip", "shadow", "mask", "key",
"motionPath", "clip", "shadow", "mask", "key", "id",
"accessibilityGroup", "accessibilityText", "accessibilityDescription",
"accessibilityImportance", "onAccessibility", "grayscale", "brightness", "contrast",
"saturate", "geometryTransition",
"bindPopup", "colorBlend", "invert", "sepia", "hueRotate", "bindMenu", "hoverEffect",
"bindPopup", "colorBlend", "invert", "sepia", "hueRotate", "bindMenu",
"onFocus", "onBlur", "onFocusMove", "focusable", "responseRegion"
]
}
+3 -1
View File
@@ -3,6 +3,8 @@
"children": ["GridItem"],
"attrs": [
"columnsTemplate", "rowsTemplate", "columnsGap", "rowsGap", "scrollBar", "scrollBarWidth",
"scrollBarColor"
"scrollBarColor", "editMode", "maxCount", "minCount", "cellLength", "onItemDragStart",
"onItemDragMove", "onItemDragEnter", "onItemDragMove", "onItemDrop", "layoutDirection", "direction",
"supportAnimation", "onItemDragLeave"
]
}
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "Navigation",
"attrs": ["title", "subTitle", "hideTitleBar", "hideBackButton", "titleMode", "menus",
"attrs": ["title", "subTitle", "hideTitleBar", "hideBackButton", "titleMode", "menus", "menuCount",
"toolBar", "hideToolBar", "onTitleModeChanged"]
}
+16
View File
@@ -0,0 +1,16 @@
{
"name": "PatternLock",
"atomic": true,
"attrs": [
"sideLength",
"circleRadius",
"backgroundColor",
"regularColor",
"selectedColor",
"activeColor",
"pathColor",
"pathStrokeWidth",
"onPatternComplete",
"autoReset"
]
}
@@ -0,0 +1,6 @@
{
"name": "PluginComponent",
"attrs": [
"size", "onComplete", "onError"
]
}
+6
View File
@@ -0,0 +1,6 @@
{
"name":"Select",
"attrs":["selected", "value", "font", "fontColor", "selectedOptionBgColor", "selectedOptionFont",
"selectedOptionFontColor", "optionBgColor", "optionFont", "optionFontColor", "onSelected"
]
}
+7
View File
@@ -0,0 +1,7 @@
{
"name": "TextClock",
"attrs": [
"format", "onDateChange", "status", "fontColor",
"fontSize", "fontStyle", "fontWeight", "fontFamily"
]
}
+2 -1
View File
@@ -3,6 +3,7 @@
"atomic": true,
"attrs": [
"placeholderColor", "placeholderFont", "textAlign", "caretColor", "onChange",
"onCopy", "OnCut", "OnPaste", "fontSize", "fontColor", "fontStyle", "fontWeight", "fontFamily"
"onCopy", "OnCut", "OnPaste", "fontSize", "fontColor", "fontStyle", "fontWeight", "fontFamily",
"inputFilter"
]
}
+1 -1
View File
@@ -4,6 +4,6 @@
"attrs": [
"type", "placeholderColor", "placeholderFont", "enterKeyType", "caretColor", "maxLength",
"onEditChanged", "onSubmit", "onChange", "onCopy", "OnCut", "OnPaste", "fontSize",
"fontColor", "fontStyle", "fontWeight", "fontFamily"
"fontColor", "fontStyle", "fontWeight", "fontFamily", "inputFilter"
]
}
+4
View File
@@ -0,0 +1,4 @@
{
"name": "TextTimer",
"attrs": ["format", "fontColor", "fontSize", "fontStyle", "fontWeight", "fontFamily", "onTimer"]
}
+7 -5
View File
@@ -48,9 +48,10 @@ export const GESTURE_ATTRS: Set<string> = new Set([
]);
export const forbiddenUseStateType: Set<string> = new Set(['Scroller', 'SwiperScroller',
'VideoController', 'WebController', 'CustomDialogController', 'SwiperController', 'TabsController',
'CalendarController', 'AbilityController', 'RenderingContext', 'CanvasGradient', 'ImageBitmap',
'ImageData', 'Path2D', 'RenderingContextSettings', 'OffscreenRenderingContext'
'VideoController', 'WebController', 'CustomDialogController', 'SwiperController',
'TabsController', 'CalendarController', 'AbilityController', 'XComponentController',
'CanvasRenderingContext2D', 'CanvasGradient', 'ImageBitmap', 'ImageData', 'Path2D',
'RenderingContextSettings', 'OffscreenCanvasRenderingContext2D', 'PatternLockController'
]);
export const INNER_COMPONENT_NAMES: Set<string> = new Set();
@@ -81,8 +82,9 @@ export const JS_BIND_COMPONENTS: Set<string> = new Set([
...GESTURE_TYPE_NAMES, 'Gesture',
'PanGestureOption', 'CustomDialogController', 'Storage', 'Scroller', 'SwiperController',
'TabsController', 'CalendarController', 'AbilityController', 'VideoController', 'WebController',
'RenderingContext', 'CanvasGradient', 'ImageBitmap', 'ImageData', 'Path2D','RenderingContextSettings',
'OffscreenRenderingContext', 'AlertDialog', 'ActionSheet'
'XComponentController', 'CanvasRenderingContext2D', 'CanvasGradient', 'ImageBitmap', 'ImageData',
'Path2D', 'RenderingContextSettings', 'OffscreenCanvasRenderingContext2D', 'DatePickerDialog',
'TextPickerDialog', 'AlertDialog', 'ActionSheet', 'PatternLockController'
]);
export const NEEDPOP_COMPONENT: Set<string> = new Set(['Blank', 'Search']);