initial commit for WaterFlow component

Signed-off-by: limeng <limeng208@huawei.com>
This commit is contained in:
limeng 2022-09-27 17:11:39 +08:00
parent 35b3ca0e60
commit ba667bc18f
5 changed files with 53 additions and 5 deletions

View File

@ -28,7 +28,7 @@ const addTSAttributeSet = ['AlphabetIndexer', 'Animator', 'Badge', 'Blank', 'But
'QRCode', 'Radio', 'Rating', 'Rect', 'Refresh', 'Row', 'RowSplit', 'Scroll', 'ScrollBar', 'Search',
'Select', 'Shape', 'Sheet', 'Slider', 'Span', 'Stack', 'Stepper', 'StepperItem', 'Swiper',
'TabContent', 'Tabs', 'Text', 'TextArea', 'TextClock', 'TextInput', 'TextPicker', 'TextTimer',
'Toggle', 'Video', 'Web', 'XComponent', 'RichText', 'RemoteWindow'];
'Toggle', 'Video', 'Web', 'XComponent', 'RichText', 'RemoteWindow', 'WaterFlow', 'FlowItem'];
generateTargetFile(process.argv[2], process.argv[3]);
function generateTargetFile(filePath, output) {

View File

@ -0,0 +1,8 @@
{
"name": "FlowItem",
"parents": [
"WaterFlow"
],
"single": true,
"attrs": []
}

View File

@ -0,0 +1,16 @@
{
"name": "WaterFlow",
"children": [
"FlowItem"
],
"attrs": [
"onReachEnd",
"onReachStart",
"itemConstraintSize",
"rowsTemplate",
"columnsTemplate",
"columnsGap",
"rowsGap",
"layoutDirection"
]
}

View File

@ -96,7 +96,9 @@
"Web",
"XComponent",
"GridRow",
"GridCol"
"GridCol",
"WaterFlow",
"FlowItem"
],
"extend": {
"decorator": "Extend",
@ -550,6 +552,16 @@
"name": "GridCol",
"type": "GridColAttribute",
"instance": "GridColInterface"
},
{
"name": "WaterFlow",
"type": "WaterFlowAttribute",
"instance": "WaterFlowInterface"
},
{
"name": "FlowItem",
"type": "FlowItemAttribute",
"instance": "FlowItemInterface"
}
]
},
@ -588,4 +600,4 @@
"exclude": [
"node_modules"
]
}
}

View File

@ -96,7 +96,9 @@
"Web",
"XComponent",
"GridRow",
"GridCol"
"GridCol",
"WaterFlow",
"FlowItem"
],
"extend": {
"decorator": "Extend",
@ -550,6 +552,16 @@
"name": "GridCol",
"type": "GridColAttribute",
"instance": "GridColInterface"
},
{
"name": "WaterFlow",
"type": "WaterFlowAttribute",
"instance": "WaterFlowInterface"
},
{
"name": "FlowItem",
"type": "FlowItemAttribute",
"instance": "FlowItemInterface"
}
]
},
@ -588,4 +600,4 @@
"exclude": [
"node_modules"
]
}
}