From 3bdf7d2137e9a94a13cf25e8cabf0d46a787fe10 Mon Sep 17 00:00:00 2001 From: kangchongtao Date: Mon, 4 Jul 2022 17:52:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=BB=84=E4=BB=B6GridRow?= =?UTF-8?q?=E3=80=81GridCol?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: kangchongtao Change-Id: I0c134025c6b6b6bc9560b9965ae92e0c560f3712 --- compiler/components/grid_col.json | 6 ++++++ compiler/components/grid_row.json | 7 +++++++ compiler/tsconfig.esm.json | 14 +++++++++++++- compiler/tsconfig.json | 14 +++++++++++++- 4 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 compiler/components/grid_col.json create mode 100644 compiler/components/grid_row.json diff --git a/compiler/components/grid_col.json b/compiler/components/grid_col.json new file mode 100644 index 0000000..710be95 --- /dev/null +++ b/compiler/components/grid_col.json @@ -0,0 +1,6 @@ +{ + "name": "GridCol", + "parents": ["GridRow"], + "single": true, + "attrs": [] +} \ No newline at end of file diff --git a/compiler/components/grid_row.json b/compiler/components/grid_row.json new file mode 100644 index 0000000..9e67ac6 --- /dev/null +++ b/compiler/components/grid_row.json @@ -0,0 +1,7 @@ +{ + "name": "GridRow", + "children": ["GridCol"], + "attrs": [ + "verticalAlign", "horizontalAlign", "onBreakpointChange" + ] +} \ No newline at end of file diff --git a/compiler/tsconfig.esm.json b/compiler/tsconfig.esm.json index f159b95..9a8dab2 100644 --- a/compiler/tsconfig.esm.json +++ b/compiler/tsconfig.esm.json @@ -93,7 +93,9 @@ "Toggle", "Video", "Web", - "XComponent" + "XComponent", + "GridRow", + "GridCol" ], "extend": { "decorator": "Extend", @@ -533,6 +535,16 @@ "type": "XComponentAttribute", "instance": "XComponentInstance" }, + { + "name": "GridRow", + "type": "GridRowAttribute", + "instance": "GridRowInterface" + }, + { + "name": "GridCol", + "type": "GridColAttribute", + "instance": "GridColInterface" + } ] }, "styles": { diff --git a/compiler/tsconfig.json b/compiler/tsconfig.json index ec8cfec..0c4cacd 100644 --- a/compiler/tsconfig.json +++ b/compiler/tsconfig.json @@ -93,7 +93,9 @@ "Toggle", "Video", "Web", - "XComponent" + "XComponent", + "GridRow", + "GridCol" ], "extend": { "decorator": "Extend", @@ -533,6 +535,16 @@ "type": "XComponentAttribute", "instance": "XComponentInstance" }, + { + "name": "GridRow", + "type": "GridRowAttribute", + "instance": "GridRowInterface" + }, + { + "name": "GridCol", + "type": "GridColAttribute", + "instance": "GridColInterface" + } ] }, "styles": {