add counter demo
This commit is contained in:
parent
2b277a44f4
commit
87eb538347
@ -13,12 +13,15 @@ void DoricDemoBridge::navigate(QVariant route) {
|
|||||||
QString name;
|
QString name;
|
||||||
switch (route.toInt()) {
|
switch (route.toInt()) {
|
||||||
case 0:
|
case 0:
|
||||||
name = "Gobang.es5.js";
|
name = "Counter.es5.js";
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
name = "SimpleDemo.es5.js";
|
name = "Gobang.es5.js";
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
|
name = "SimpleDemo.es5.js";
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
name = "Snake.es5.js";
|
name = "Snake.es5.js";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
<file alias="doric-lib.es5.js">../../doric-js/bundle/doric-lib.es5.js</file>
|
<file alias="doric-lib.es5.js">../../doric-js/bundle/doric-lib.es5.js</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource prefix="/doric/bundles">
|
<qresource prefix="/doric/bundles">
|
||||||
|
<file alias="Counter.es5.js">../../doric-demo/bundle/src/Counter.es5.js</file>
|
||||||
<file alias="Gobang.es5.js">../../doric-demo/bundle/src/Gobang.es5.js</file>
|
<file alias="Gobang.es5.js">../../doric-demo/bundle/src/Gobang.es5.js</file>
|
||||||
<file alias="SimpleDemo.es5.js">../../doric-demo/bundle/src/SimpleDemo.es5.js</file>
|
<file alias="SimpleDemo.es5.js">../../doric-demo/bundle/src/SimpleDemo.es5.js</file>
|
||||||
<file alias="Snake.es5.js">../../doric-demo/bundle/src/Snake.es5.js</file>
|
<file alias="Snake.es5.js">../../doric-demo/bundle/src/Snake.es5.js</file>
|
||||||
|
@ -12,7 +12,7 @@ ApplicationWindow {
|
|||||||
|
|
||||||
ListView {
|
ListView {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
model: 3
|
model: 4
|
||||||
delegate: Rectangle {
|
delegate: Rectangle {
|
||||||
Column {
|
Column {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
@ -20,10 +20,12 @@ ApplicationWindow {
|
|||||||
text: {
|
text: {
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case 0:
|
case 0:
|
||||||
return "Gobang.es5.js"
|
return "Counter.es5.js"
|
||||||
case 1:
|
case 1:
|
||||||
return "SimpleDemo.es5.js"
|
return "Gobang.es5.js"
|
||||||
case 2:
|
case 2:
|
||||||
|
return "SimpleDemo.es5.js"
|
||||||
|
case 3:
|
||||||
return "Snake.es5.js"
|
return "Snake.es5.js"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user