diff --git a/example/Main.san b/example/Main.san
index 7a15a31..943fc88 100644
--- a/example/Main.san
+++ b/example/Main.san
@@ -4,8 +4,8 @@
-
+
+ This is a popover!
+ popover content!
+
+
+ This is a popover!
+ popover content!
+
+
+ This is a popover!
+ popover content!
+
+
+ This is a popover!
+ popover content!
+
+
+ This is a popover!
+ popover content!
+
@@ -62,6 +82,7 @@ import AppBar from '../src/AppBar';
import {Card, CardHeader, CardMedia, CardTitle, CardText, CardActions} from '../src/Card';
import Slider from '../src/Slider';
import Icon from '../src/Icon';
+import Popover from '../src/Popover';
export default {
components: {
@@ -75,16 +96,28 @@ export default {
'san-cardtext': CardText,
'san-cardactions': CardActions,
'san-slider': Slider,
- 'icon': Icon
+ 'icon': Icon,
+ 'popover': Popover
},
initData() {
return {
bar: 'Title',
- text: '散落在指尖的阳光,我试着轻轻抓住光影的踪迹,它却在眉宇间投下一片淡淡的阴影。 调皮的阳光掀动了四月的心帘,温暖如约的歌声渐起。 似乎在诉说着,我也可以在漆黑的角落里,找到阴影背后的阳光, 找到阳光与阴影奏出和谐的旋律。我要用一颗敏感赤诚的心迎接每一缕滑过指尖的阳光'
+ text: '散落在指尖的阳光,我试着轻轻抓住光影的踪迹,它却在眉宇间投下一片淡淡的阴影。 调皮的阳光掀动了四月的心帘,温暖如约的歌声渐起。 似乎在诉说着,我也可以在漆黑的角落里,找到阴影背后的阳光, 找到阳光与阴影奏出和谐的旋律。我要用一颗敏感赤诚的心迎接每一缕滑过指尖的阳光',
+ triggerLeft: document.getElementById('popover-left'),
+ triggerTop: document.getElementById('popover-top'),
+ triggerBottom: document.getElementById('popover-bottom'),
+ triggerRight: document.getElementById('popover-right'),
+ triggerFocus: document.getElementById('input')
}
},
labelClicker(data) {
console.log(data);
+ },
+ onShow() {
+ console.log('popover show');
+ },
+ onHide() {
+ console.log('popover hide');
}
}
diff --git a/example/index.html b/example/index.html
index 2a270e4..475affc 100644
--- a/example/index.html
+++ b/example/index.html
@@ -11,6 +11,13 @@
+
+
+
+
+
+
+