add scroller demo

This commit is contained in:
王劲鹏 2021-05-06 16:47:12 +08:00 committed by osborn
parent b49140201d
commit 0ad7cfb52e
3 changed files with 11 additions and 5 deletions

View File

@ -42,12 +42,15 @@ void DoricDemoBridge::navigate(QVariant route) {
name = "PopoverDemo.js";
break;
case 9:
name = "SimpleDemo.js";
name = "ScrollerDemo.js";
break;
case 10:
name = "Snake.js";
name = "SimpleDemo.js";
break;
case 11:
name = "Snake.js";
break;
case 12:
name = "StorageDemo.js";
break;
}

View File

@ -15,7 +15,7 @@ ApplicationWindow {
ListView {
width: parent.width
model: 12
model: 13
delegate: Rectangle {
Column {
anchors.centerIn: parent
@ -41,10 +41,12 @@ ApplicationWindow {
case 8:
return "PopoverDemo.js"
case 9:
return "SimpleDemo.js"
return "ScrollerDemo.js"
case 10:
return "Snake.js"
return "SimpleDemo.js"
case 11:
return "Snake.js"
case 12:
return "StorageDemo.js"
}
}

View File

@ -15,6 +15,7 @@
<file alias="NetworkDemo.js">../../../doric-demo/bundle/src/NetworkDemo.js</file>
<file alias="PopoverDemo.js">../../../doric-demo/bundle/src/PopoverDemo.js</file>
<file alias="SimpleDemo.js">../../../doric-demo/bundle/src/SimpleDemo.js</file>
<file alias="ScrollerDemo.js">../../../doric-demo/bundle/src/ScrollerDemo.js</file>
<file alias="Snake.js">../../../doric-demo/bundle/src/Snake.js</file>
<file alias="StorageDemo.js">../../../doric-demo/bundle/src/StorageDemo.js</file>
</qresource>