add list & list item & demo

This commit is contained in:
王劲鹏
2021-06-11 11:55:36 +08:00
committed by osborn
parent 6939d2a093
commit 5203113e40
10 changed files with 360 additions and 14 deletions

View File

@@ -100,7 +100,7 @@ ApplicationWindow {
ListView {
id: list
width: content.width
model: 24
model: 25
boundsBehavior: Flickable.StopAtBounds
function getSource(index) : string {
@@ -126,32 +126,34 @@ ApplicationWindow {
case 9:
return "LayoutTestDemo.js"
case 10:
return "ModalDemo.js"
return "ListDemo.js"
case 11:
return "ModularDemo.js"
return "ModalDemo.js"
case 12:
return "NavBarDemo.js"
return "ModularDemo.js"
case 13:
return "NavigatorDemo.js"
return "NavBarDemo.js"
case 14:
return "NetworkDemo.js"
return "NavigatorDemo.js"
case 15:
return "NotificationDemo.js"
return "NetworkDemo.js"
case 16:
return "PopoverDemo.js"
return "NotificationDemo.js"
case 17:
return "ScrollerDemo.js"
return "PopoverDemo.js"
case 18:
return "SimpleDemo.js"
return "ScrollerDemo.js"
case 19:
return "SliderDemo.js"
return "SimpleDemo.js"
case 20:
return "Snake.js"
return "SliderDemo.js"
case 21:
return "StorageDemo.js"
return "Snake.js"
case 22:
return "SwitchDemo.js"
return "StorageDemo.js"
case 23:
return "SwitchDemo.js"
case 24:
return "TextDemo.js"
}
}

View File

@@ -18,6 +18,7 @@
<file alias="ImageDemo.js">../../../doric-demo/bundle/src/ImageDemo.js</file>
<file alias="InputDemo.js">../../../doric-demo/bundle/src/InputDemo.js</file>
<file alias="LayoutDemo.js">../../../doric-demo/bundle/src/LayoutDemo.js</file>
<file alias="ListDemo.js">../../../doric-demo/bundle/src/ListDemo.js</file>
<file alias="LayoutTestDemo.js">../../../doric-demo/bundle/src/LayoutTestDemo.js</file>
<file alias="ModalDemo.js">../../../doric-demo/bundle/src/ModalDemo.js</file>
<file alias="ModularDemo.js">../../../doric-demo/bundle/src/ModularDemo.js</file>
@@ -54,6 +55,8 @@
<file alias="switch.qml">../doric/resources/switch.qml</file>
<file alias="draggable.qml">../doric/resources/draggable.qml</file>
<file alias="flex.qml">../doric/resources/flex.qml</file>
<file alias="list.qml">../doric/resources/list.qml</file>
<file alias="list-item.qml">../doric/resources/list-item.qml</file>
<file alias="toast.qml">../doric/resources/toast.qml</file>
<file alias="alert.qml">../doric/resources/alert.qml</file>