add effects demo

This commit is contained in:
王劲鹏 2021-04-25 18:38:54 +08:00 committed by osborn
parent 189b13927a
commit 8c2f581fc8
3 changed files with 21 additions and 15 deletions

View File

@ -18,27 +18,30 @@ void DoricDemoBridge::navigate(QVariant route) {
name = "Counter.js";
break;
case 1:
name = "Gobang.js";
name = "EffectsDemo.js";
break;
case 2:
name = "ImageDemo.js";
name = "Gobang.js";
break;
case 3:
name = "LayoutDemo.js";
name = "ImageDemo.js";
break;
case 4:
name = "ModalDemo.js";
name = "LayoutDemo.js";
break;
case 5:
name = "NetworkDemo.js";
name = "ModalDemo.js";
break;
case 6:
name = "PopoverDemo.js";
name = "NetworkDemo.js";
break;
case 7:
name = "SimpleDemo.js";
name = "PopoverDemo.js";
break;
case 8:
name = "SimpleDemo.js";
break;
case 9:
name = "Snake.js";
break;
}

View File

@ -9,6 +9,7 @@
</qresource>
<qresource prefix="/doric/bundles">
<file alias="Counter.js">../../doric-demo/bundle/src/Counter.js</file>
<file alias="EffectsDemo.js">../../doric-demo/bundle/src/EffectsDemo.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="LayoutDemo.js">../../doric-demo/bundle/src/LayoutDemo.js</file>

View File

@ -15,7 +15,7 @@ ApplicationWindow {
ListView {
width: parent.width
model: 9
model: 10
delegate: Rectangle {
Column {
anchors.centerIn: parent
@ -25,20 +25,22 @@ ApplicationWindow {
case 0:
return "Counter.js"
case 1:
return "Gobang.js"
return "EffectsDemo.js"
case 2:
return "ImageDemo.js"
return "Gobang.js"
case 3:
return "LayoutDemo.js"
return "ImageDemo.js"
case 4:
return "ModalDemo.js"
return "LayoutDemo.js"
case 5:
return "NetworkDemo.js"
return "ModalDemo.js"
case 6:
return "PopoverDemo.js"
return "NetworkDemo.js"
case 7:
return "SimpleDemo.js"
return "PopoverDemo.js"
case 8:
return "SimpleDemo.js"
case 9:
return "Snake.js"
}
}