23 lines
478 B
TypeScript

import { VantComponent } from '../common/component';
import { iphonex } from '../mixins/iphonex';
VantComponent({
mixins: [iphonex],
props: {
safeAreaInsetBottom: {
type: Boolean,
value: true
}
},
computed: {
rootClass() {
const { safeAreaInsetBottom, isIPhoneX } = this.data;
return this.classNames('van-goods-action', 'custom-class', {
[`van-goods-action--safe`]: isIPhoneX && safeAreaInsetBottom
});
}
}
});