mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
parent
45f4c6c133
commit
69c83bc539
@ -15,11 +15,6 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__safe-area {
|
|
||||||
height: constant(safe-area-inset-top);
|
|
||||||
height: env(safe-area-inset-top);
|
|
||||||
}
|
|
||||||
|
|
||||||
&--primary {
|
&--primary {
|
||||||
.theme(background-color, '@notify-primary-background-color');
|
.theme(background-color, '@notify-primary-background-color');
|
||||||
}
|
}
|
||||||
|
@ -29,6 +29,11 @@ VantComponent({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
created() {
|
||||||
|
const { statusBarHeight } = wx.getSystemInfoSync();
|
||||||
|
this.setData({ statusBarHeight });
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
show() {
|
show() {
|
||||||
const { duration, onOpened } = this.data;
|
const { duration, onOpened } = this.data;
|
||||||
|
@ -23,7 +23,6 @@ const defaultOptions = {
|
|||||||
duration: 3000,
|
duration: 3000,
|
||||||
zIndex: 110,
|
zIndex: 110,
|
||||||
color: WHITE,
|
color: WHITE,
|
||||||
safeAreaInsetTop: false,
|
|
||||||
onClick: () => {},
|
onClick: () => {},
|
||||||
onOpened: () => {},
|
onOpened: () => {},
|
||||||
onClose: () => {}
|
onClose: () => {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user