mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(Sku): enable safe-area-inset-bottom by default (#5960)
This commit is contained in:
parent
77269de3e7
commit
e929f96e04
@ -140,7 +140,7 @@ export default {
|
|||||||
| custom-stepper-config | Custom stepper related config | *object* | `{}` |
|
| custom-stepper-config | Custom stepper related config | *object* | `{}` |
|
||||||
| message-config | Message related config | *object* | `{}` |
|
| message-config | Message related config | *object* | `{}` |
|
||||||
| get-container | Return the mount node for sku | *string \| () => Element* | - |
|
| get-container | Return the mount node for sku | *string \| () => Element* | - |
|
||||||
| safe-area-inset-bottom `v2.2.1` | Whether to enable bottom safe area adaptation | *boolean* | `false` |
|
| safe-area-inset-bottom `v2.2.1` | Whether to enable bottom safe area adaptation | *boolean* | `true` |
|
||||||
| start-sale-num `v2.3.0` | Minimum quantity | *number* | `1` |
|
| start-sale-num `v2.3.0` | Minimum quantity | *number* | `1` |
|
||||||
| properties `v2.4.2` | Goods properties | *array* | - |
|
| properties `v2.4.2` | Goods properties | *array* | - |
|
||||||
| preview-on-click-image `v2.5.2` | Whether to preview image when click goods image | *boolean* | `true` |
|
| preview-on-click-image `v2.5.2` | Whether to preview image when click goods image | *boolean* | `true` |
|
||||||
|
@ -144,7 +144,7 @@ export default {
|
|||||||
| get-container | 指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi) | *string \| () => Element* | - |
|
| get-container | 指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi) | *string \| () => Element* | - |
|
||||||
| initial-sku | 默认选中的 sku,具体参考高级用法 | *object* | `{}` |
|
| initial-sku | 默认选中的 sku,具体参考高级用法 | *object* | `{}` |
|
||||||
| show-soldout-sku | 是否展示售罄的 sku,默认展示并置灰 | *boolean* | `true` |
|
| show-soldout-sku | 是否展示售罄的 sku,默认展示并置灰 | *boolean* | `true` |
|
||||||
| safe-area-inset-bottom `v2.2.1` | 是否开启[底部安全区适配](#/zh-CN/quickstart#di-bu-an-quan-qu-gua-pei) | *boolean* | `false` |
|
| safe-area-inset-bottom `v2.2.1` | 是否开启[底部安全区适配](#/zh-CN/quickstart#di-bu-an-quan-qu-gua-pei) | *boolean* | `true` |
|
||||||
| start-sale-num `v2.3.0` | 起售数量 | *number* | `1` |
|
| start-sale-num `v2.3.0` | 起售数量 | *number* | `1` |
|
||||||
| properties `v2.4.2` | 商品属性 | *array* | - |
|
| properties `v2.4.2` | 商品属性 | *array* | - |
|
||||||
| preview-on-click-image `v2.5.2` | 是否在点击商品图片时自动预览 | *boolean* | `true` |
|
| preview-on-click-image `v2.5.2` | 是否在点击商品图片时自动预览 | *boolean* | `true` |
|
||||||
|
@ -43,7 +43,6 @@ export default createComponent({
|
|||||||
customSkuValidator: Function,
|
customSkuValidator: Function,
|
||||||
closeOnClickOverlay: Boolean,
|
closeOnClickOverlay: Boolean,
|
||||||
disableStepperInput: Boolean,
|
disableStepperInput: Boolean,
|
||||||
safeAreaInsetBottom: Boolean,
|
|
||||||
resetSelectedSkuOnHide: Boolean,
|
resetSelectedSkuOnHide: Boolean,
|
||||||
properties: Array,
|
properties: Array,
|
||||||
quota: {
|
quota: {
|
||||||
@ -95,6 +94,10 @@ export default createComponent({
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
|
safeAreaInsetBottom: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
@ -693,7 +696,6 @@ export default createComponent({
|
|||||||
startSaleNum={this.startSaleNum}
|
startSaleNum={this.startSaleNum}
|
||||||
skuEventBus={skuEventBus}
|
skuEventBus={skuEventBus}
|
||||||
selectedNum={selectedNum}
|
selectedNum={selectedNum}
|
||||||
selectedSku={selectedSku}
|
|
||||||
stepperTitle={stepperTitle}
|
stepperTitle={stepperTitle}
|
||||||
skuStockNum={sku.stock_num}
|
skuStockNum={sku.stock_num}
|
||||||
disableStepperInput={this.disableStepperInput}
|
disableStepperInput={this.disableStepperInput}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user