diff --git a/compiler/build_declarations_file.js b/compiler/build_declarations_file.js index d983d7f..2167087 100644 --- a/compiler/build_declarations_file.js +++ b/compiler/build_declarations_file.js @@ -23,7 +23,7 @@ const addTSInterfaceSet = ['ForEach', 'LazyForEach', 'TapGesture', 'LongPressGes const addTSAttributeSet = ['AlphabetIndexer', 'Animator', 'Badge', 'Blank', 'Button', 'Calendar', 'Canvas', 'Checkbox', 'CheckboxGroup', 'Circle', 'Column', 'ColumnSplit', 'Counter', 'DataPanel', 'DatePicker', 'Divider', 'Ellipse', 'Flex', 'FormComponent', 'Gauge', 'Grid', 'GridItem', 'GridContainer', 'Image', - 'ImageAnimator', 'Line', 'List', 'ListItem', 'LoadingProgress', 'Marquee', 'Navigation', 'Navigator', + 'ImageAnimator', 'Line', 'List', 'ListItem', 'ListItemGroup', 'LoadingProgress', 'Marquee', 'Navigation', 'Navigator', 'Panel', 'Path', 'PatternLock', 'Piece', 'PluginComponent', 'Polygon', 'Polyline', 'Progress', 'QRCode', 'Radio', 'Rating', 'Rect', 'Refresh', 'Row', 'RowSplit', 'Scroll', 'ScrollBar', 'Search', 'Select', 'Shape', 'Sheet', 'Slider', 'Span', 'Stack', 'Stepper', 'StepperItem', 'Swiper', diff --git a/compiler/components/list.json b/compiler/components/list.json index e193278..8839773 100644 --- a/compiler/components/list.json +++ b/compiler/components/list.json @@ -1,8 +1,8 @@ { "name": "List", - "children": ["ListItem", "Section"], + "children": ["ListItem", "Section", "ListItemGroup"], "attrs": [ - "listDirection", "scrollBar", "edgeEffect", "divider", "editMode", "cachedCount", + "listDirection", "scrollBar", "edgeEffect", "divider", "editMode", "cachedCount", "sticky", "chainAnimation", "onScroll", "onReachStart", "onReachEnd", "onScrollStop", "onItemDelete", "onItemMove", "onItemDragStart", "onItemDragEnter", "onItemDragMove", "onItemDragLeave", "onItemDrop", "multiSelectable", "onScrollIndex", "onScrollBegin" diff --git a/compiler/components/listItem.json b/compiler/components/listItem.json index 50c62b6..17cb908 100644 --- a/compiler/components/listItem.json +++ b/compiler/components/listItem.json @@ -1,6 +1,6 @@ { "name": "ListItem", - "parents": ["List"], + "parents": ["List", "ListItemGroup"], "single": true, "attrs": ["sticky", "editable", "selectable", "swipeAction", "onSelect"] } diff --git a/compiler/components/listItemGroup.json b/compiler/components/listItemGroup.json new file mode 100644 index 0000000..7ce5066 --- /dev/null +++ b/compiler/components/listItemGroup.json @@ -0,0 +1,6 @@ +{ + "name": "ListItemGroup", + "parents": ["List"], + "children": ["ListItem"], + "attrs": ["divider"] + } \ No newline at end of file diff --git a/compiler/tsconfig.esm.json b/compiler/tsconfig.esm.json index 9a8dab2..c39502f 100644 --- a/compiler/tsconfig.esm.json +++ b/compiler/tsconfig.esm.json @@ -41,6 +41,7 @@ "Line", "List", "ListItem", + "ListItemGroup", "LoadingProgress", "Marquee", "Menu", @@ -270,6 +271,11 @@ "type": "ListItemAttribute", "instance": "ListItemInstance" }, + { + "name": "ListItemGroup", + "type": "ListItemGroupAttribute", + "instance": "ListItemGroupInstance" + }, { "name": "LoadingProgress", "type": "LoadingProgressAttribute", diff --git a/compiler/tsconfig.json b/compiler/tsconfig.json index 0c4cacd..3f0b4a5 100644 --- a/compiler/tsconfig.json +++ b/compiler/tsconfig.json @@ -41,6 +41,7 @@ "Line", "List", "ListItem", + "ListItemGroup", "LoadingProgress", "Marquee", "Menu", @@ -270,6 +271,11 @@ "type": "ListItemAttribute", "instance": "ListItemInstance" }, + { + "name": "ListItemGroup", + "type": "ListItemGroupAttribute", + "instance": "ListItemGroupInstance" + }, { "name": "LoadingProgress", "type": "LoadingProgressAttribute",