diff --git a/src/sku/README.md b/src/sku/README.md index af98024c0..6395597d9 100644 --- a/src/sku/README.md +++ b/src/sku/README.md @@ -141,8 +141,7 @@ export default { | properties `v2.4.2` | Goods properties | _array_ | - | | preview-on-click-image `v2.5.2` | Whether to preview image when click goods image | _boolean_ | `true` | | supportBigPicture `v2.9.0` | Whether to display large image mode | _boolean_ | `false` | -| supportBigPictureIndex `v2.9.0` | The index value of the large image mode | _number_ | `0` | -| hasScrollTab `v2.9.0` | Whether the large image mode displays a scroll bar | _boolean_ | `false` | +| lazy-load | Whether to enable lazy load,should register [Lazyload](#/en-US/lazyload) component | _boolean_ | `false` | ### Events diff --git a/src/sku/README.zh-CN.md b/src/sku/README.zh-CN.md index 83a4715d6..2a256e150 100644 --- a/src/sku/README.zh-CN.md +++ b/src/sku/README.zh-CN.md @@ -145,8 +145,7 @@ export default { | properties `v2.4.2` | 商品属性 | _array_ | - | | preview-on-click-image `v2.5.2` | 是否在点击商品图片时自动预览 | _boolean_ | `true` | | supportBigPicture `v2.9.0` | 是否展示大图模式 | _boolean_ | `false` | -| supportBigPictureIndex `v2.9.0` | 多规格情况下,大图模式的索引值 | _number_ | `0` | -| hasScrollTab `v2.9.0` | 大图模式下,是否展示滚动条 | _boolean_ | `false` | +| lazy-load | 是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用 | _boolean_ | `false` | ### Events diff --git a/src/sku/Sku.js b/src/sku/Sku.js index b752ee5ed..32df46f59 100644 --- a/src/sku/Sku.js +++ b/src/sku/Sku.js @@ -1,7 +1,6 @@ import Vue from 'vue'; import Popup from '../popup'; import Toast from '../toast'; -import Lazyload from '../lazyload'; import ImagePreview from '../image-preview'; import SkuHeader from './components/SkuHeader'; import SkuHeaderItem from './components/SkuHeaderItem'; @@ -26,8 +25,6 @@ const namespace = createNamespace('sku'); const [createComponent, bem, t] = namespace; const { QUOTA_LIMIT } = LIMIT_TYPE; -Vue.use(Lazyload); - export default createComponent({ props: { sku: Object, @@ -105,14 +102,7 @@ export default createComponent({ type: Boolean, default: false, }, - supportBigPictureIndex: { - type: Number, - default: 0, - }, - hasScrollTab: { - type: Boolean, - default: false, - }, + lazyLoad: Boolean, }, data() { @@ -632,8 +622,7 @@ export default createComponent({ stepperTitle, selectedSkuComb, supportBigPicture, - supportBigPictureIndex, - hasScrollTab, + lazyLoad = false, } = this; const slotsProps = { price, @@ -687,44 +676,37 @@ export default createComponent({ slots('sku-group') || (this.hasSkuOrAttr && (