mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-05-24 15:39:15 +08:00
20 lines
411 B
TypeScript
20 lines
411 B
TypeScript
import { VantComponent } from '../common/component';
|
|
|
|
VantComponent({
|
|
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
|
|
});
|
|
}
|
|
}
|
|
});
|