更新记录
1.0.0(2026-01-08)
下载此版本
master
平台兼容性
uni-app(4.13)
| Vue2 |
Vue3 |
Chrome |
Safari |
app-vue |
app-nvue |
Android |
iOS |
鸿蒙 |
| √ |
√ |
√ |
√ |
√ |
- |
√ |
√ |
√ |
| 微信小程序 |
支付宝小程序 |
抖音小程序 |
百度小程序 |
快手小程序 |
京东小程序 |
鸿蒙元服务 |
QQ小程序 |
飞书小程序 |
快应用-华为 |
快应用-联盟 |
| √ |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
其他
安装
在市场导入xf-list-action-baruni_modules版本的即可,无需import
组件关联说明
代码演示
基本用法
<template>
<view style="padding: 20px; background-color: #FFF" class="xf-col">
<text>标题</text>
<text>这是一段内容这是一段内容这是一段内容这是一段内容这是一段内容这是一段内容这是一段内容这是一段内容</text>
<xf-list-action-bar :actions="actions" :visibleLimit="3"></xf-list-action-bar>
</view>
</template>
<script setup lang="ts">
const actions: XfListActionBarAction[] = [
{
id: 'view',
text: '查看',
handler() {
console.log('查看')
}
},
{
id: 'edit',
text: '编辑',
handler() {
console.log('编辑')
}
},
{
id: 'delete',
text: '删除',
handler() {
console.log('删除')
}
},
{
id: 'history',
text: '历史',
handler() {
console.log('历史')
}
}
]
</script>
<style lang="scss">
.main{
}
</style>
API
Props
| 属性名 |
说明 |
类型 |
默认值 |
| actions |
点击按钮回调事件 |
array |
标题 |
| visibleLimit |
可见操作按钮数量 |
number |
3 |
| customClass |
显示内容 |
string |
- |