From 8a4d30eddd7dda0eae3098afc1bd0aff9d196953 Mon Sep 17 00:00:00 2001 From: xiexiyun Date: Sun, 5 Jun 2022 16:45:48 +0800 Subject: [PATCH] add relative container attributes Signed-off-by: xiexiyun Change-Id: I523ae2dca147b9af03d79ee26514011ed0a74171 --- compiler/components/common_attrs.json | 2 +- compiler/components/relstive_container.json | 4 ++++ compiler/tsconfig.json | 6 ++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 compiler/components/relstive_container.json diff --git a/compiler/components/common_attrs.json b/compiler/components/common_attrs.json index de624d3..8d9096c 100644 --- a/compiler/components/common_attrs.json +++ b/compiler/components/common_attrs.json @@ -19,6 +19,6 @@ "accessibilityImportance", "onAccessibility", "grayscale", "brightness", "contrast", "saturate", "geometryTransition", "bindPopup", "colorBlend", "invert", "sepia", "hueRotate", "bindMenu", "bindContextMenu", - "onFocus", "onBlur", "onFocusMove", "focusable", "responseRegion" + "onFocus", "onBlur", "onFocusMove", "focusable", "responseRegion", "alignRules" ] } diff --git a/compiler/components/relstive_container.json b/compiler/components/relstive_container.json new file mode 100644 index 0000000..db24994 --- /dev/null +++ b/compiler/components/relstive_container.json @@ -0,0 +1,4 @@ +{ + "name": "RelativeContainer", + "attrs": [] +} \ No newline at end of file diff --git a/compiler/tsconfig.json b/compiler/tsconfig.json index f538393..09ad1cd 100644 --- a/compiler/tsconfig.json +++ b/compiler/tsconfig.json @@ -62,6 +62,7 @@ "Rating", "Rect", "Refresh", + "RelativeContainer", "RemoteWindow", "Row", "RowSplit", @@ -367,6 +368,11 @@ "type": "RectAttribute", "instance": "RectInstance" }, + { + "name": "RelativeContainer", + "type": "RelativeContainerAttribute", + "instance": "RelativeContainerInstance" + }, { "name": "Refresh", "type": "RefreshAttribute",