2018-12-07 16:13:02 +08:00

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
});
}
}
});