<hsDragSort class="drag-content" v-else :list="myList" isLongTouch :rowHeight="height"
:listHeight="listHeight"
@confirm="confirm">
<template #rowContent="{row}">
<view class="hs-flex-1 hs-flex hs-overflow-hidden">
<text class="hs-line-1 text">{{row.name}}</text>
</view>
</template>
</hsDragSort>
import {
ref
} from 'vue';
const height = uni.upx2px(144);
const listHeight = uni.getWindowInfo().windowHeight - uni.upx2px(90) - 1;
const myList = ref([{
"name": "花呗"
},
{
"name": "余额宝"
},
{
"name": "账户余额"
},
{
"name": "交通银行信用卡(0001)"
},
{
"name": "中国建设银行信用卡(4401)"
},
{
"name": "网商储蓄卡(7223)"
}
]);