add text demo
This commit is contained in:
parent
da73ee5347
commit
2baa84a9ee
@ -53,6 +53,9 @@ void DoricDemoBridge::navigate(QVariant route) {
|
||||
case 12:
|
||||
name = "StorageDemo.js";
|
||||
break;
|
||||
case 13:
|
||||
name = "TextDemo.js";
|
||||
break;
|
||||
}
|
||||
QString script = DoricUtils::readAssetFile("/doric/bundles", name);
|
||||
|
||||
|
@ -15,7 +15,7 @@ ApplicationWindow {
|
||||
|
||||
ListView {
|
||||
width: parent.width
|
||||
model: 13
|
||||
model: 14
|
||||
delegate: Rectangle {
|
||||
Column {
|
||||
anchors.centerIn: parent
|
||||
@ -48,6 +48,8 @@ ApplicationWindow {
|
||||
return "Snake.js"
|
||||
case 12:
|
||||
return "StorageDemo.js"
|
||||
case 13:
|
||||
return "TextDemo.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -18,6 +18,7 @@
|
||||
<file alias="ScrollerDemo.js">../../../doric-demo/bundle/src/ScrollerDemo.js</file>
|
||||
<file alias="Snake.js">../../../doric-demo/bundle/src/Snake.js</file>
|
||||
<file alias="StorageDemo.js">../../../doric-demo/bundle/src/StorageDemo.js</file>
|
||||
<file alias="TextDemo.js">../../../doric-demo/bundle/src/TextDemo.js</file>
|
||||
</qresource>
|
||||
<qresource prefix="/doric">
|
||||
<file alias="doric-sandbox.js">../../../doric-js/bundle/doric-sandbox.js</file>
|
||||
|
Reference in New Issue
Block a user