mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-06-11 15:49:14 +08:00
19 lines
510 B
JavaScript
19 lines
510 B
JavaScript
import { VantComponent } from '../common/component';
|
|
VantComponent({
|
|
props: {
|
|
safeAreaInsetBottom: {
|
|
type: Boolean,
|
|
value: true
|
|
}
|
|
},
|
|
computed: {
|
|
rootClass: function rootClass() {
|
|
var _this$data = this.data,
|
|
safeAreaInsetBottom = _this$data.safeAreaInsetBottom,
|
|
isIPhoneX = _this$data.isIPhoneX;
|
|
return this.classNames('van-goods-action', 'custom-class', {
|
|
["van-goods-action--safe"]: isIPhoneX && safeAreaInsetBottom
|
|
});
|
|
}
|
|
}
|
|
}); |