add network demo

This commit is contained in:
王劲鹏 2021-04-25 15:02:36 +08:00 committed by osborn
parent 3c2ded82c1
commit a910f61c2a
3 changed files with 11 additions and 5 deletions

View File

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

View File

@ -13,6 +13,7 @@
<file alias="ImageDemo.js">../../doric-demo/bundle/src/ImageDemo.js</file>
<file alias="LayoutDemo.js">../../doric-demo/bundle/src/LayoutDemo.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="PopoverDemo.js">../../doric-demo/bundle/src/PopoverDemo.js</file>
<file alias="SimpleDemo.js">../../doric-demo/bundle/src/SimpleDemo.js</file>
<file alias="Snake.js">../../doric-demo/bundle/src/Snake.js</file>

View File

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