mirror of
https://gitee.com/openharmony/developtools_ace_ets2bundle
synced 2024-11-23 16:39:56 +00:00
initial commit for WaterFlow component
Signed-off-by: limeng <limeng208@huawei.com>
This commit is contained in:
parent
35b3ca0e60
commit
ba667bc18f
@ -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) {
|
||||
|
8
compiler/components/flow_item.json
Normal file
8
compiler/components/flow_item.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "FlowItem",
|
||||
"parents": [
|
||||
"WaterFlow"
|
||||
],
|
||||
"single": true,
|
||||
"attrs": []
|
||||
}
|
16
compiler/components/water_flow.json
Normal file
16
compiler/components/water_flow.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"name": "WaterFlow",
|
||||
"children": [
|
||||
"FlowItem"
|
||||
],
|
||||
"attrs": [
|
||||
"onReachEnd",
|
||||
"onReachStart",
|
||||
"itemConstraintSize",
|
||||
"rowsTemplate",
|
||||
"columnsTemplate",
|
||||
"columnsGap",
|
||||
"rowsGap",
|
||||
"layoutDirection"
|
||||
]
|
||||
}
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user