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"; name = "NetworkDemo.js";
break; break;
case 13: case 13:
name = "PopoverDemo.js"; name = "NotificationDemo.js";
break; break;
case 14: case 14:
name = "ScrollerDemo.js"; name = "PopoverDemo.js";
break; break;
case 15: case 15:
name = "SimpleDemo.js"; name = "ScrollerDemo.js";
break; break;
case 16: case 16:
name = "SliderDemo.js"; name = "SimpleDemo.js";
break; break;
case 17: case 17:
name = "Snake.js"; name = "SliderDemo.js";
break; break;
case 18: case 18:
name = "StorageDemo.js"; name = "Snake.js";
break; break;
case 19: case 19:
name = "SwitchDemo.js"; name = "StorageDemo.js";
break; break;
case 20: case 20:
name = "SwitchDemo.js";
break;
case 21:
name = "TextDemo.js"; name = "TextDemo.js";
break; break;
} }

View File

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

View File

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