uni-app view循环绑定click和 v-if
<view class="layout-wrap-item" v-for="(item, index) in menuItems" :key="index" @click="item.clickHandler" :v-if="showMenu(item)"></view>
const xxx = (id) => {
};// 定义菜单项数组
const menuItems = [
{ menu: 'xxx', icon: 'gear', title: 'xxx', clickHandler: () => xxx() },
];
const showMenu = (item) => {
}