add notification demo

This commit is contained in:
王劲鹏 2021-06-07 16:23:31 +08:00 committed by osborn
parent 710f680240
commit 8c0b4d0b11
3 changed files with 21 additions and 15 deletions

View File

@ -59,27 +59,30 @@ void DoricDemoBridge::navigate(QVariant route) {
name = "NetworkDemo.js";
break;
case 13:
name = "PopoverDemo.js";
name = "NotificationDemo.js";
break;
case 14:
name = "ScrollerDemo.js";
name = "PopoverDemo.js";
break;
case 15:
name = "SimpleDemo.js";
name = "ScrollerDemo.js";
break;
case 16:
name = "SliderDemo.js";
name = "SimpleDemo.js";
break;
case 17:
name = "Snake.js";
name = "SliderDemo.js";
break;
case 18:
name = "StorageDemo.js";
name = "Snake.js";
break;
case 19:
name = "SwitchDemo.js";
name = "StorageDemo.js";
break;
case 20:
name = "SwitchDemo.js";
break;
case 21:
name = "TextDemo.js";
break;
}

View File

@ -15,7 +15,7 @@ ApplicationWindow {
ListView {
width: parent.width
model: 21
model: 22
delegate: Rectangle {
Column {
anchors.centerIn: parent
@ -49,20 +49,22 @@ ApplicationWindow {
case 12:
return "NetworkDemo.js"
case 13:
return "PopoverDemo.js"
return "NotificationDemo.js"
case 14:
return "ScrollerDemo.js"
return "PopoverDemo.js"
case 15:
return "SimpleDemo.js"
return "ScrollerDemo.js"
case 16:
return "SliderDemo.js"
return "SimpleDemo.js"
case 17:
return "Snake.js"
return "SliderDemo.js"
case 18:
return "StorageDemo.js"
return "Snake.js"
case 19:
return "SwitchDemo.js"
return "StorageDemo.js"
case 20:
return "SwitchDemo.js"
case 21:
return "TextDemo.js"
}
}

View File

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