add modular demo

This commit is contained in:
王劲鹏 2021-05-27 18:42:33 +08:00 committed by osborn
parent eb5811dbb2
commit 4c427fc257
3 changed files with 21 additions and 15 deletions

View File

@ -44,27 +44,30 @@ void DoricDemoBridge::navigate(QVariant route) {
name = "ModalDemo.js";
break;
case 9:
name = "NetworkDemo.js";
name = "ModularDemo.js";
break;
case 10:
name = "PopoverDemo.js";
name = "NetworkDemo.js";
break;
case 11:
name = "ScrollerDemo.js";
name = "PopoverDemo.js";
break;
case 12:
name = "SimpleDemo.js";
name = "ScrollerDemo.js";
break;
case 13:
name = "Snake.js";
name = "SimpleDemo.js";
break;
case 14:
name = "StorageDemo.js";
name = "Snake.js";
break;
case 15:
name = "SwitchDemo.js";
name = "StorageDemo.js";
break;
case 16:
name = "SwitchDemo.js";
break;
case 17:
name = "TextDemo.js";
break;
}

View File

@ -15,7 +15,7 @@ ApplicationWindow {
ListView {
width: parent.width
model: 17
model: 18
delegate: Rectangle {
Column {
anchors.centerIn: parent
@ -41,20 +41,22 @@ ApplicationWindow {
case 8:
return "ModalDemo.js"
case 9:
return "NetworkDemo.js"
return "ModularDemo.js"
case 10:
return "PopoverDemo.js"
return "NetworkDemo.js"
case 11:
return "ScrollerDemo.js"
return "PopoverDemo.js"
case 12:
return "SimpleDemo.js"
return "ScrollerDemo.js"
case 13:
return "Snake.js"
return "SimpleDemo.js"
case 14:
return "StorageDemo.js"
return "Snake.js"
case 15:
return "SwitchDemo.js"
return "StorageDemo.js"
case 16:
return "SwitchDemo.js"
case 17:
return "TextDemo.js"
}
}

View File

@ -18,6 +18,7 @@
<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="ModularDemo.js">../../../doric-demo/bundle/src/ModularDemo.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>