<import name="swipe-action" src="../Common/ui/h-ui/feedback/c_swipe_action"></import>
<template>
<swipe-action id="swipeaction" data="{{data}}">
<div class="container" slot="top">
<image src="https://h-ui.obs.cn-south-1.myhuaweicloud.com/image/p_news_four_p1.png"></image>
</div>
<div class="container" slot="bottom">
<text>h-ui是一套為快應用開發者量身打制的UI組件庫,以傳統html5標簽為基礎,遵循主流前端框架樣式命名習慣,對快應用原生組件二次封裝而成,以實現快應用“全組件式開發”為目標,讓快應用開發就像搭積木!</text>
</div>
</swipe-action>
</template>
<style lang="less">
@import '../Common/styles/container.less';
</style>
<script>
import prompt from '@system.prompt'
export default {
private: {
data: [
{
title: '+86 135 0018 9618',
icon: 'user',
bgColor: 'bg-info',
extra: '2019/8/9',
memo: '2019開發者大會在松山湖畔舉行,歡迎您東莞園區!',
actionIcon: 'trash',
actionColor: 'bg-danger'
},
{
title: 'H-UI',
avatar: '/Common/icons/logo.png',
extra: '快應用開發利器',
memo: 'h-ui是一套為快應用開發者量身打制的UI組件庫,以傳統html5標簽為基礎',
actionIcon: 'refresh',
actionColor: 'bg-warning'
},
{
title: '+86 135 0018 9618',
icon: 'user',
bgColor: 'bg-info',
extra: '2019/8/9',
memo: '2019開發者大會在松山湖畔舉行,歡迎您東莞園區!',
actionIcon: 'trash',
actionColor: 'bg-danger'
},
{
title: '+86 135 0018 9618',
icon: 'user',
bgColor: 'bg-info',
extra: '2019/8/9',
memo: '2019開發者大會在松山湖畔舉行,歡迎您東莞園區!',
actionIcon: 'trash',
actionColor: 'bg-danger'
}
]
},
onInit() {
this.$on('swipeaction_dispatchEvt', this.dispatchEvt)
},
dispatchEvt(evt) {
// 彈窗顯示詳細說明
prompt.showToast({
message: '第' + (Number(evt.detail.value) + 1) + '條數據的操作按鈕被點擊了!',
duration: 1,
gravity: 'top'
})
}
}
</script>
掃碼體驗