import{u as g}from"./useTags-C1thGhjF.js";import{d as T,u as C,aw as b,h as y,o as k,i as B,j as e,w as n,p as s,W as v,H as w,B as x,Q as N}from"./index-9PRMimni.js";import"./tabsView-BXskTdVh.js";const H={class:"n-layout-page-header"},j=T({__name:"tagsAction",setup(S){const l=g(),a=C();function p(){l.setTitle("货品详情：编码-3695"),a.success("设置成功")}function m(){l.setTitle("指定页面标题",{name:"/list/basic-list"}),a.success("设置成功")}function f(){l.closeCurrent()}function i(u){l.setTabState({state:u,dialogOptions:{content:"页面尚未提交，是否关闭？"}});const t=u==="undone"?"设置成功，点击当前页标签关闭按钮，试试效果":"取消成功，当前页标签，可以正常关闭";a.success(t)}return b(()=>{}),(u,t)=>{const r=v,o=x,d=w,_=N;return k(),y("div",null,[B("div",H,[e(r,{bordered:!1,title:"多页签"},{default:n(()=>t[2]||(t[2]=[s(" 有些时候，可能要操作多页签标题，比如页面特定交互，详情页面区分，该操作仅限于，当前打开过并且显示的标签 ")])),_:1})]),e(r,{bordered:!1,title:"多页签操作",class:"mt-3 proCard",size:"small",segmented:{content:!0}},{default:n(()=>[e(d,null,{default:n(()=>[e(o,{type:"primary",onClick:p},{default:n(()=>t[3]||(t[3]=[s("更新当前页面标题")])),_:1}),e(o,{type:"primary",onClick:m},{default:n(()=>t[4]||(t[4]=[s("更新指定页面标题")])),_:1}),e(o,{type:"primary",onClick:f},{default:n(()=>t[5]||(t[5]=[s("关闭当前页")])),_:1})]),_:1}),e(_,null,{default:n(()=>t[6]||(t[6]=[s("设置多页签状态")])),_:1}),e(d,null,{default:n(()=>[e(o,{type:"warning",onClick:t[0]||(t[0]=c=>i("undone"))},{default:n(()=>t[7]||(t[7]=[s("设置当前页面状态未完成")])),_:1}),e(o,{type:"success",onClick:t[1]||(t[1]=c=>i("done"))},{default:n(()=>t[8]||(t[8]=[s("设置当前页面状态已完成")])),_:1})]),_:1})]),_:1})])}}});export{j as default};
