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"; name = "ModalDemo.js";
break; break;
case 9: case 9:
name = "NetworkDemo.js"; name = "ModularDemo.js";
break; break;
case 10: case 10:
name = "PopoverDemo.js"; name = "NetworkDemo.js";
break; break;
case 11: case 11:
name = "ScrollerDemo.js"; name = "PopoverDemo.js";
break; break;
case 12: case 12:
name = "SimpleDemo.js"; name = "ScrollerDemo.js";
break; break;
case 13: case 13:
name = "Snake.js"; name = "SimpleDemo.js";
break; break;
case 14: case 14:
name = "StorageDemo.js"; name = "Snake.js";
break; break;
case 15: case 15:
name = "SwitchDemo.js"; name = "StorageDemo.js";
break; break;
case 16: case 16:
name = "SwitchDemo.js";
break;
case 17:
name = "TextDemo.js"; name = "TextDemo.js";
break; break;
} }

View File

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

View File

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