chore: update

This commit is contained in:
xiaoxian521
2023-08-30 21:53:35 +08:00
parent d7a479afc6
commit a2e0b9155b
510 changed files with 6 additions and 516 deletions

View File

@@ -186,4 +186,3 @@ PERFORMANCE OF THIS SOFTWARE.
.__menu__item:hover .__menu__sub__wrapper[data-v-3d21bc0a] {
visibility: visible;
}`;we(ge);C.render=ye;C.__scopeId="data-v-3d21bc0a";C.__file="packages/mouse-menu/mouse-menu.vue";C.install=e=>{e.component(C.name,C)};function Ce(e){var r;const a="__mouse__menu__container";let _;document.querySelector(`.${a}`)?_=document.querySelector(`.${a}`):_=de("div",a);const o=oe(C,e);return ue(o,_),document.body.appendChild(_),(r=o.component)===null||r===void 0?void 0:r.proxy}function xe(){const e=y(re(Z,!0)),r=[{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}],a={menuList:[{label:({id:o})=>`ID为${o}`,disabled:!0},{label:"编辑",tips:"Edit",fn:o=>se(`您编辑了第 ${e.value.findIndex(b=>b.id===o.id)+1} 行,数据为:${JSON.stringify(o)}`,{type:"success"})}]};function _(o,b,n){n.preventDefault();const{x:l,y:u}=n;Ce({el:n.currentTarget,params:o,menuWrapperCss:{background:"var(--el-bg-color)"},menuItemCss:{labelColor:"var(--el-text-color)",hoverLabelColor:"var(--el-color-primary)",hoverTipsColor:"var(--el-color-primary)"},...a}).show(l,u)}return{columns:r,dataList:e,showMouseMenu:_}}export{xe as useColumns};
//# sourceMappingURL=columns5.js.map