赞
踩
html:
- <view class="wrapper">
- <SampleListCard
- v-for="(item, key) in list"
- :key="key"
- :model="model"
- :item="item"
- :formatterMap="formatterMap"
- @click.native="handleEdit(item)"
- >
- <view slot="cardFooter">
- <GBlockButton
- v-if="operationType !== 'view'"
- type="error"
- :text="$t('sample-collection.delete')"
- @click.stop="handleRemove(item)"
- ></GBlockButton>
- </view>
- </SampleListCard>
- </view>
JS引用:
- import BScroll from "better-scroll";
- mounted() {
- const wrapper = document.querySelector(".wrapper");
- new BScroll(wrapper, {
- scrollY: true,
- click: true,
- });
- },
- data() {
- return {
- scrollHeight: window.innerHeight - 94 + "px",
- };
- },
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。