feat: 首次提交

This commit is contained in:
peerless_hero
2023-08-17 21:28:49 +08:00
parent 36f80fb971
commit ec1e5e16cd
571 changed files with 95322 additions and 0 deletions

View File

@ -0,0 +1,77 @@
<!--本文件由FirstUI授权予新疆天衡创新研究院有限公司手机号 1 861 40 725 4 9身份证尾号5A07X5专用请尊重知识产权勿私下传播违者追究法律责任-->
<template>
<view class="fui-wrap">
<view class="fui-page__hd">
<view class="fui-page__title fui-align__center" @tap="vip">Drag <image
src="/static/images/index/light/icon_member_3x.png"></image>
</view>
<view class="fui-page__desc">Drag 拖拽排序通过拖动列表元素以此来达到对数据的重新排列长按列表开启拖拽</view>
</view>
<view class="fui-page__bd">
<fui-drag :itemList="itemList" :itemHeight="88" :styles="styles" @end="end" @delete="del"></fui-drag>
</view>
</view>
</template>
<script>
export default {
data() {
return {
itemList: [{
id: 1,
text: '标题文本《一》'
}, {
id: 2,
text: '标题文本《二》'
}, {
id: 3,
text: '标题文本《三》'
}, {
id: 4,
text: '标题文本《四》'
}, {
id: 5,
text: '标题文本《五》'
}, {
id: 6,
text: '标题文本《六》'
}, {
id: 7,
text: '标题文本《七》'
}, {
id: 8,
text: '标题文本《八》'
}, {
id: 9,
text: '标题文本《九》'
}],
styles: {
type: 2,
isDel: true
}
}
},
methods: {
vip() {
this.fui.href("/pages/my/qa/qa?index=2&title=VIP专属内容")
},
end(e) {
//排序后列表
console.log(e.itemList)
},
del(e){
this.fui.toast(`删除列目索引:${e.index}`)
}
}
}
</script>
<style>
.fui-page__bd {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
</style>