Skip to content

Commit

Permalink
fix(sku): 修复小程序下内容的滚动问题 (#2737)
Browse files Browse the repository at this point in the history
close #2736
  • Loading branch information
eiinu authored Dec 14, 2023
1 parent d2d661b commit 2f7707e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/packages/__VUE/sku/index.taro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</template>
</sku-header>

<view class="nut-sku-content">
<nut-scroll-view class="nut-sku-content" :scroll-y="true">
<slot name="sku-select-top"></slot>

<slot name="sku-select"></slot>
Expand All @@ -44,7 +44,7 @@
></sku-stepper>

<slot name="sku-stepper-bottom"></slot>
</view>
</nut-scroll-view>

<sku-operate
:btn-extra-text="btnExtraText"
Expand All @@ -68,6 +68,7 @@ import SkuSelect from './components/SkuSelect.vue';
import SkuStepper from './components/SkuStepper.taro.vue';
import SkuOperate from './components/SkuOperate.vue';
import NutPopup from '../popup/index.taro.vue';
import NutScrollView from '../scroll-view/index.taro.vue';
import { createComponent } from '@/packages/utils/create';
import { useLocale } from '@/packages/utils/useLocale';
const { create } = createComponent('sku');
Expand Down Expand Up @@ -167,7 +168,8 @@ export default create({
SkuSelect,
SkuStepper,
SkuOperate,
NutPopup
NutPopup,
NutScrollView
},
setup(props: any, { emit, slots }) {
Expand Down

0 comments on commit 2f7707e

Please sign in to comment.