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"; name = "Counter.js";
break; break;
case 1: case 1:
name = "Gobang.js"; name = "EffectsDemo.js";
break; break;
case 2: case 2:
name = "ImageDemo.js"; name = "Gobang.js";
break; break;
case 3: case 3:
name = "LayoutDemo.js"; name = "ImageDemo.js";
break; break;
case 4: case 4:
name = "ModalDemo.js"; name = "LayoutDemo.js";
break; break;
case 5: case 5:
name = "NetworkDemo.js"; name = "ModalDemo.js";
break; break;
case 6: case 6:
name = "PopoverDemo.js"; name = "NetworkDemo.js";
break; break;
case 7: case 7:
name = "SimpleDemo.js"; name = "PopoverDemo.js";
break; break;
case 8: case 8:
name = "SimpleDemo.js";
break;
case 9:
name = "Snake.js"; name = "Snake.js";
break; break;
} }

View File

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

View File

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