add layout test demo

This commit is contained in:
王劲鹏 2021-04-30 21:04:13 +08:00 committed by osborn
parent 6143f65f1e
commit 660d75d1ad
3 changed files with 15 additions and 9 deletions

View File

@ -30,18 +30,21 @@ void DoricDemoBridge::navigate(QVariant route) {
name = "LayoutDemo.js"; name = "LayoutDemo.js";
break; break;
case 5: case 5:
name = "ModalDemo.js"; name = "LayoutTestDemo.js";
break; break;
case 6: case 6:
name = "NetworkDemo.js"; name = "ModalDemo.js";
break; break;
case 7: case 7:
name = "PopoverDemo.js"; name = "NetworkDemo.js";
break; break;
case 8: case 8:
name = "SimpleDemo.js"; name = "PopoverDemo.js";
break; break;
case 9: case 9:
name = "SimpleDemo.js";
break;
case 10:
name = "Snake.js"; name = "Snake.js";
break; break;
} }

View File

@ -15,7 +15,7 @@ ApplicationWindow {
ListView { ListView {
width: parent.width width: parent.width
model: 10 model: 11
delegate: Rectangle { delegate: Rectangle {
Column { Column {
anchors.centerIn: parent anchors.centerIn: parent
@ -33,14 +33,16 @@ ApplicationWindow {
case 4: case 4:
return "LayoutDemo.js" return "LayoutDemo.js"
case 5: case 5:
return "ModalDemo.js" return "LayoutTestDemo.js"
case 6: case 6:
return "NetworkDemo.js" return "ModalDemo.js"
case 7: case 7:
return "PopoverDemo.js" return "NetworkDemo.js"
case 8: case 8:
return "SimpleDemo.js" return "PopoverDemo.js"
case 9: case 9:
return "SimpleDemo.js"
case 10:
return "Snake.js" return "Snake.js"
} }
} }

View File

@ -10,6 +10,7 @@
<file alias="Gobang.js">../../../doric-demo/bundle/src/Gobang.js</file> <file alias="Gobang.js">../../../doric-demo/bundle/src/Gobang.js</file>
<file alias="ImageDemo.js">../../../doric-demo/bundle/src/ImageDemo.js</file> <file alias="ImageDemo.js">../../../doric-demo/bundle/src/ImageDemo.js</file>
<file alias="LayoutDemo.js">../../../doric-demo/bundle/src/LayoutDemo.js</file> <file alias="LayoutDemo.js">../../../doric-demo/bundle/src/LayoutDemo.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="ModalDemo.js">../../../doric-demo/bundle/src/ModalDemo.js</file>
<file alias="NetworkDemo.js">../../../doric-demo/bundle/src/NetworkDemo.js</file> <file alias="NetworkDemo.js">../../../doric-demo/bundle/src/NetworkDemo.js</file>
<file alias="PopoverDemo.js">../../../doric-demo/bundle/src/PopoverDemo.js</file> <file alias="PopoverDemo.js">../../../doric-demo/bundle/src/PopoverDemo.js</file>