mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
23 lines
478 B
TypeScript
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
|
|
});
|
|
}
|
|
}
|
|
});
|