Skip to content

Commit

Permalink
feat(Sku): enable safe-area-inset-bottom by default (youzan#5960)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Mar 31, 2020
1 parent 77269de commit e929f96
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/sku/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default {
| custom-stepper-config | Custom stepper related config | *object* | `{}` |
| message-config | Message related config | *object* | `{}` |
| 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` |
| properties `v2.4.2` | Goods properties | *array* | - |
| preview-on-click-image `v2.5.2` | Whether to preview image when click goods image | *boolean* | `true` |
Expand Down
2 changes: 1 addition & 1 deletion src/sku/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export default {
| get-container | 指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi) | *string \| () => Element* | - |
| initial-sku | 默认选中的 sku,具体参考高级用法 | *object* | `{}` |
| 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` |
| properties `v2.4.2` | 商品属性 | *array* | - |
| preview-on-click-image `v2.5.2` | 是否在点击商品图片时自动预览 | *boolean* | `true` |
Expand Down
6 changes: 4 additions & 2 deletions src/sku/Sku.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export default createComponent({
customSkuValidator: Function,
closeOnClickOverlay: Boolean,
disableStepperInput: Boolean,
safeAreaInsetBottom: Boolean,
resetSelectedSkuOnHide: Boolean,
properties: Array,
quota: {
Expand Down Expand Up @@ -95,6 +94,10 @@ export default createComponent({
type: Boolean,
default: true,
},
safeAreaInsetBottom: {
type: Boolean,
default: true,
},
},

data() {
Expand Down Expand Up @@ -693,7 +696,6 @@ export default createComponent({
startSaleNum={this.startSaleNum}
skuEventBus={skuEventBus}
selectedNum={selectedNum}
selectedSku={selectedSku}
stepperTitle={stepperTitle}
skuStockNum={sku.stock_num}
disableStepperInput={this.disableStepperInput}
Expand Down

0 comments on commit e929f96

Please sign in to comment.