<Icon icon="icon-park-outline:mind-mapping" /> </template> <slot></slot> </el-tab-pane> <el-tab-pane closable v-for="item in PageTabsStore.pageTabs" :key="item.name" :name="item.path"> <template #label> <!-- 仅页签名称上响应右键菜单 --> <span @contextmenu.prevent="onCont...
template> <script setup lang="ts"> import { ContextOption, ContextMenu } from "vue3-next-context-menu/components"; import MuteSvg from "@/icons/Mute.svg?raw"; import "vue3-next-context-menu/styles.css" const RotateProps = { label: "Rotate", disabled: false, icon: MuteSvg, }; </...
<RightMenuItemIcon :icon="data.icon" :theme="theme"></RightMenuItemIcon> {{ }} <b-icon v-if="theme==='light'" class="right_item_arrow" local="arrow_thick_right" style="color: #3b3b3b;"></b-icon> <b-icon v-else class="right_item_arrow" local="arrow_thick_right" style="...
contextmenuItems:[{name:'refresh',label:'重新加载',icon:'fa fa-refresh'},{name:'close',label:'关闭标签',icon:'fa fa-times'},{name:'fullScreen',label:'当前标签全屏',icon:'el-icon-FullScreen'},{name:'closeOther',label:'关闭其他标签',icon:'fa fa-minus'},{name:'closeAll',label:'...
app.whenReady().then(() => { const icon = nativeImage.createFromPath(path.join(__static, 'bianchengre.png')).resize({ width: 16, height: 16 }) tray = new Tray(icon) const contextMenu = Menu.buildFromTemplate([ { label: 'Electron + vue3', icon: native...
stop @contextmenu="rightClick">组件方式打开菜单</div> <vue3-menus v-model:open="isOpen" :event="eventVal" :menus="menus.menus" hasIcon> <template #icon="{item: {activeIndex}}">{{activeIndex}}</template> <template #label="{ item: { item } }">插槽:{{ item.label }}</template>...
<context-menu-sperator v-if="showItem" /> <context-menu-item :label="itemText" :clickClose="false" @click="changeLabelText" /> <context-menu-group label="Menu with child" @subMenuOpen="handleSubMenuOpen"> <template #icon> <i class="iconfont icon-yidong"></i> </template> <context-...
Preview import{createApp}from'vue';import{HotTable}from'@handsontable/vue3';import{ContextMenu}from'handsontable/plugins/contextMenu';import{registerAllModules}from'handsontable/registry';import{createSpreadsheetData}from'./helpers';// register Handsontable's modulesregisterAllModules();constapp=createApp...
<el-dropdown-item icon="el-icon-user" command="user">个人中心</el-dropdown-item> <el-dropdown-item icon="el-icon-switch-button" command="logout">退出登录</el-dropdown-item> </el-dropdown-menu> </template> </el-dropdown> </div> </el-header></template><!--...
closeMenu, ...dataRef } },//*/}; Menu.vue <template><divclass="preview_self"style="top:0px"><!-- 菜单icon --><navclass="navbar navbar-menu "@click="showMenu()"><imgsrc="/@/assets/img/more.png"class="img_more"/></nav></div></template><scriptlang="ts">// 引入scssimp...