import{j as d}from"./antd-vue-vendor-CDWW6V_M.js";import{d as B,a1 as f,f as D,e as A,u as r,U as a,a2 as k,ad as v,af as p,G as e,a5 as b,a4 as t,k as s}from"./vue-vendor-CxLCUzY4.js";import{P as c}from"./index-DaObvZxT.js";import{_ as g}from"./index-B_2CoVdl.js";import"./useContentHeight-BWLGvKEC.js";import"./useWindowSizeFn-C3WExEpc.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./useContentViewHeight-DlpfApuB.js";import"./usePageContext-HMYqek-Q.js";import"./injectionKey-DPVn4AgL.js";const G=B({name:"TestMenu",components:{PageWrapper:c,Input:d},setup(){const{currentRoute:o,replace:u}=f(),n=D("");return{value:n,handleClickGo:()=>{const{name:l}=r(o);u({name:l,params:{id:r(n)}})},params:A(()=>r(o).params)}}});function P(o,u,n,F,l,$){const m=a("Input"),i=a("a-button"),C=a("PageWrapper");return k(),v(C,{title:"带参数菜单（路由）",content:"支持多级参数"},{default:p(()=>[e(" 当前参数："+b(o.params)+" ",1),u[2]||(u[2]=t("br",null,null,-1)),u[3]||(u[3]=e(" 输入参数切换路由： ")),s(m,{value:o.value,"onUpdate:value":u[0]||(u[0]=E=>o.value=E),placeholder:"建议为url标准字符，输入后点击切换"},null,8,["value"]),s(i,{type:"primary",onClick:o.handleClickGo},{default:p(()=>u[1]||(u[1]=[e("切换路由")])),_:1},8,["onClick"]),u[4]||(u[4]=t("br",null,null,-1)),u[5]||(u[5]=e(" 切换路由后 ")),u[6]||(u[6]=t("ul",null,[t("li",null,"可刷新页面测试路由参数情况是否正常。"),t("li",null,"可于左侧菜单中展开子菜单，点击测试参数是否携带正常。")],-1))]),_:1})}const w=g(G,[["render",P]]);export{w as default};
