1 |
- import{_ as v}from"./index.c8cfbd6c.js";import{a as g,e as n,o as p,g as f,F as t,G as e,l as d,H as b,D as _,B as y,C as V,X as x}from"./@vue.e84e1286.js";import{p as $}from"./preview.2bfe2f00.js";import"./vue-router.54876e93.js";import"./bus.f1893518.js";import"./mitt.550594b0.js";/* empty css */const N=a=>(y("data-v-640e7a96"),a=a(),V(),a),I=_("\u83DC\u5355\u4E00"),S=_("\u83DC\u5355\u4E8C"),w=_("\u83DC\u5355\u4E09"),U=_("item1"),z=_("item2"),B=_("item3"),C=_("\u83DC\u5355\u56DB"),E={class:"theme-style"},F=N(()=>d("p",{class:"title"},"\u5207\u6362\u4E3B\u9898",-1)),M=_("light"),A=_("dark"),D={__name:"demo1",setup(a){const s=g("light"),r=l=>{console.log(l)};return(l,o)=>{const m=n("m-menu-item"),c=n("m-submenu"),i=n("m-menu"),u=n("m-radio"),h=n("m-radio-group");return p(),f(b,null,[t(i,{mode:"horizontal","default-active":"1",theme:s.value,onOnSelect:r},{default:e(()=>[t(m,{name:"1"},{default:e(()=>[I]),_:1}),t(m,{name:"2"},{default:e(()=>[S]),_:1}),t(c,{name:"3"},{title:e(()=>[w]),default:e(()=>[t(m,{name:"3-1"},{default:e(()=>[U]),_:1}),t(m,{name:"3-2"},{default:e(()=>[z]),_:1}),t(m,{name:"3-3"},{default:e(()=>[B]),_:1})]),_:1}),t(m,{name:"4"},{default:e(()=>[C]),_:1})]),_:1},8,["theme"]),d("div",E,[F,t(h,{modelValue:s.value,"onUpdate:modelValue":o[0]||(o[0]=k=>s.value=k)},{default:e(()=>[t(u,{label:"light"},{default:e(()=>[M]),_:1}),t(u,{label:"dark"},{default:e(()=>[A]),_:1})]),_:1},8,["modelValue"])])],64)}}};var G=v(D,[["__scopeId","data-v-640e7a96"]]);const H=a=>(y("data-v-1ec0e326"),a=a(),V(),a),O=_("\u83DC\u5355\u4E00"),T=_("\u83DC\u5355\u4E8C"),X=_("\u83DC\u5355\u4E09"),j=_("item1"),q=_("item2"),J=_("item3"),K=_("\u83DC\u5355\u56DB"),L={class:"theme-style"},P=H(()=>d("p",{class:"title"},"\u5207\u6362\u4E3B\u9898",-1)),Q=_("light"),R=_("dark"),W={__name:"demo2",setup(a){const s=g("light");return(r,l)=>{const o=n("m-menu-item"),m=n("m-submenu"),c=n("m-menu"),i=n("m-radio"),u=n("m-radio-group");return p(),f(b,null,[t(c,{"default-active":"1",theme:s.value},{default:e(()=>[t(o,{name:"1"},{default:e(()=>[O]),_:1}),t(o,{name:"2"},{default:e(()=>[T]),_:1}),t(m,{name:"3"},{title:e(()=>[X]),default:e(()=>[t(o,{name:"3-1"},{default:e(()=>[j]),_:1}),t(o,{name:"3-2"},{default:e(()=>[q]),_:1}),t(o,{name:"3-3"},{default:e(()=>[J]),_:1})]),_:1}),t(o,{name:"4"},{default:e(()=>[K]),_:1})]),_:1},8,["theme"]),d("div",L,[P,t(u,{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=h=>s.value=h)},{default:e(()=>[t(i,{label:"light"},{default:e(()=>[Q]),_:1}),t(i,{label:"dark"},{default:e(()=>[R]),_:1})]),_:1},8,["modelValue"])])],64)}}};var Y=v(W,[["__scopeId","data-v-1ec0e326"]]);const Z=a=>(y("data-v-1790e666"),a=a(),V(),a),tt=_("\u83DC\u5355\u4E00"),et=_("\u83DC\u5355\u4E8C"),_t=_("\u83DC\u5355\u4E09"),ot=_("item1"),dt=_("item2"),nt=_("item3"),at=_("item4"),st=_("item5"),mt=_("item6"),lt=_("\u83DC\u5355\u56DB"),it=_("\u83DC\u5355\u4E00"),ut=_("\u83DC\u5355\u4E8C"),ct=_("\u83DC\u5355\u4E09"),ht=_("item1"),rt=_("item2"),pt=_("item3"),ft=_("item4"),$t=_("item5"),vt=_("item6"),gt=_("\u83DC\u5355\u56DB"),bt={class:"theme-style"},yt=Z(()=>d("p",{class:"title"},"\u5207\u6362\u4E3B\u9898",-1)),Vt=_("light"),kt=_("dark"),xt={__name:"demo3",setup(a){const s=g("light");return(r,l)=>{const o=n("m-menu-item"),m=n("m-menu-group"),c=n("m-submenu"),i=n("m-menu"),u=n("m-radio"),h=n("m-radio-group");return p(),f(b,null,[t(i,{mode:"horizontal","default-active":"1",theme:s.value},{default:e(()=>[t(o,{name:"1"},{default:e(()=>[tt]),_:1}),t(o,{name:"2"},{default:e(()=>[et]),_:1}),t(c,{name:"3"},{title:e(()=>[_t]),default:e(()=>[t(m,{title:"\u5206\u7EC4\u4E00"},{default:e(()=>[t(o,{name:"3-1"},{default:e(()=>[ot]),_:1}),t(o,{name:"3-2"},{default:e(()=>[dt]),_:1}),t(o,{name:"3-3"},{default:e(()=>[nt]),_:1})]),_:1}),t(m,{title:"\u5206\u7EC4\u4E8C"},{default:e(()=>[t(o,{name:"3-4"},{default:e(()=>[at]),_:1}),t(o,{name:"3-5"},{default:e(()=>[st]),_:1}),t(o,{name:"3-6"},{default:e(()=>[mt]),_:1})]),_:1})]),_:1}),t(o,{name:"4"},{default:e(()=>[lt]),_:1})]),_:1},8,["theme"]),t(i,{class:"mt-50","default-active":"1",theme:s.value},{default:e(()=>[t(o,{name:"1"},{default:e(()=>[it]),_:1}),t(o,{name:"2"},{default:e(()=>[ut]),_:1}),t(c,{name:"3"},{title:e(()=>[ct]),default:e(()=>[t(m,{title:"\u5206\u7EC4\u4E00"},{default:e(()=>[t(o,{name:"3-1"},{default:e(()=>[ht]),_:1}),t(o,{name:"3-2"},{default:e(()=>[rt]),_:1}),t(o,{name:"3-3"},{default:e(()=>[pt]),_:1})]),_:1}),t(m,{title:"\u5206\u7EC4\u4E8C"},{default:e(()=>[t(o,{name:"3-4"},{default:e(()=>[ft]),_:1}),t(o,{name:"3-5"},{default:e(()=>[$t]),_:1}),t(o,{name:"3-6"},{default:e(()=>[vt]),_:1})]),_:1})]),_:1}),t(o,{name:"4"},{default:e(()=>[gt]),_:1})]),_:1},8,["theme"]),d("div",bt,[yt,t(h,{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=k=>s.value=k)},{default:e(()=>[t(u,{label:"light"},{default:e(()=>[Vt]),_:1}),t(u,{label:"dark"},{default:e(()=>[kt]),_:1})]),_:1},8,["modelValue"])])],64)}}};var Nt=v(xt,[["__scopeId","data-v-1790e666"]]);const It=a=>(y("data-v-18799054"),a=a(),V(),a),St=_("\u83DC\u5355\u4E00"),wt=_("\u83DC\u5355\u4E8C"),Ut=_("\u83DC\u5355\u4E09"),zt=_("item1"),Bt=_("item2"),Ct=_("item3"),Et=_("\u83DC\u5355\u56DB"),Ft={class:"theme-style"},Mt=It(()=>d("p",{class:"title"},"\u5207\u6362\u4E3B\u9898",-1)),At=_("light"),Dt=_("dark"),Gt={__name:"demo4",setup(a){const s=g("light");return(r,l)=>{const o=n("m-menu-item"),m=n("m-submenu"),c=n("m-menu"),i=n("m-radio"),u=n("m-radio-group");return p(),f(b,null,[t(c,{mode:"horizontal","default-active":"1",theme:s.value},{default:e(()=>[t(o,{name:"1"},{default:e(()=>[St]),_:1}),t(o,{name:"2",disabled:""},{default:e(()=>[wt]),_:1}),t(m,{name:"3"},{title:e(()=>[Ut]),default:e(()=>[t(o,{name:"3-1"},{default:e(()=>[zt]),_:1}),t(o,{name:"3-2",disabled:""},{default:e(()=>[Bt]),_:1}),t(o,{name:"3-3"},{default:e(()=>[Ct]),_:1})]),_:1}),t(o,{name:"4"},{default:e(()=>[Et]),_:1})]),_:1},8,["theme"]),d("div",Ft,[Mt,t(u,{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=h=>s.value=h)},{default:e(()=>[t(i,{label:"light"},{default:e(()=>[At]),_:1}),t(i,{label:"dark"},{default:e(()=>[Dt]),_:1})]),_:1},8,["modelValue"])])],64)}}};var Ht=v(Gt,[["__scopeId","data-v-18799054"]]);const Ot=a=>(y("data-v-88efd2b4"),a=a(),V(),a),Tt=_("\u83DC\u5355\u4E00"),Xt=_("item1"),jt=_("item2"),qt=_("item3"),Jt=_("\u83DC\u5355\u4E8C"),Kt=_("item1"),Lt=_("item2"),Pt=_("item3"),Qt=_("\u83DC\u5355\u4E09"),Rt=_("item1"),Wt=_("item2"),Yt=_("item3"),Zt=_("\u83DC\u5355\u56DB"),te=_("item1"),ee=_("item2"),_e=_("item3"),oe={class:"theme-style"},de=Ot(()=>d("p",{class:"title"},"\u5207\u6362\u4E3B\u9898",-1)),ne=_("light"),ae=_("dark"),se={__name:"demo5",setup(a){const s=g("light");return(r,l)=>{const o=n("m-menu-item"),m=n("m-submenu"),c=n("m-menu"),i=n("m-radio"),u=n("m-radio-group");return p(),f(b,null,[t(c,{"default-active":"1-2","default-openeds":["1"],theme:s.value},{default:e(()=>[t(m,{name:"1"},{title:e(()=>[Tt]),default:e(()=>[t(o,{name:"1-1"},{default:e(()=>[Xt]),_:1}),t(o,{name:"1-2"},{default:e(()=>[jt]),_:1}),t(o,{name:"1-3"},{default:e(()=>[qt]),_:1})]),_:1}),t(m,{name:"2"},{title:e(()=>[Jt]),default:e(()=>[t(o,{name:"2-1"},{default:e(()=>[Kt]),_:1}),t(o,{name:"2-2"},{default:e(()=>[Lt]),_:1}),t(o,{name:"2-3"},{default:e(()=>[Pt]),_:1})]),_:1}),t(m,{name:"3"},{title:e(()=>[Qt]),default:e(()=>[t(o,{name:"3-1"},{default:e(()=>[Rt]),_:1}),t(o,{name:"3-2"},{default:e(()=>[Wt]),_:1}),t(o,{name:"3-3"},{default:e(()=>[Yt]),_:1})]),_:1}),t(m,{name:"4"},{title:e(()=>[Zt]),default:e(()=>[t(o,{name:"4-1"},{default:e(()=>[te]),_:1}),t(o,{name:"4-2"},{default:e(()=>[ee]),_:1}),t(o,{name:"4-3"},{default:e(()=>[_e]),_:1})]),_:1})]),_:1},8,["theme"]),d("div",oe,[de,t(u,{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=h=>s.value=h)},{default:e(()=>[t(i,{label:"light"},{default:e(()=>[ne]),_:1}),t(i,{label:"dark"},{default:e(()=>[ae]),_:1})]),_:1},8,["modelValue"])])],64)}}};var me=v(se,[["__scopeId","data-v-88efd2b4"]]);const le={class:"markdown-body"},ie=d("h1",null,"Menu \u5BFC\u822A\u83DC\u5355",-1),ue=d("h4",null,"\u4E3A\u7F51\u7AD9\u63D0\u4F9B\u5BFC\u822A\u529F\u80FD\u7684\u83DC\u5355\u3002",-1),ce=d("br",null,null,-1),he=d("h2",null,"\u9876\u90E8\u5BFC\u822A",-1),re=d("h4",null,"\u5BFC\u822A\u83DC\u5355\u9ED8\u8BA4\u4E3A\u5782\u76F4\u6A21\u5F0F\uFF0C\u901A\u8FC7mode\u5C5E\u6027\u53EF\u4EE5\u4F7F\u5BFC\u822A\u83DC\u5355\u53D8\u66F4\u4E3A\u6C34\u5E73\u6A21\u5F0F\u3002default-active\uFF0C\u53EF\u4EE5\u8BBE\u7F6E\u6FC0\u6D3B\u83DC\u5355\u7684 name \u503C\u3002",-1),pe=d("h4",null,"\u83DC\u5355\u4E2D\u901A\u8FC7submenu\u7EC4\u4EF6\u53EF\u4EE5\u751F\u6210\u4E8C\u7EA7\u83DC\u5355\u3002\u901A\u8FC7\u8BBE\u7F6E\u5C5E\u6027 theme \u4E3A light\u3001dark \u53EF\u4EE5\u9009\u62E9\u4E3B\u9898\u3002",-1),fe={class:"source"},$e=d("h2",null,"\u4FA7\u680F\u5BFC\u822A",-1),ve=d("h4",null,"\u5782\u76F4\u5BFC\u822A\u83DC\u5355\uFF0C\u53EF\u4EE5\u5185\u5D4C\u5B50\u83DC\u5355\u3002",-1),ge={class:"source"},be=d("h2",null,"\u5206\u7EC4",-1),ye=d("h4",null,"\u901A\u8FC7m-menu-group\u7EC4\u4EF6\u53EF\u4EE5\u5B9E\u73B0\u83DC\u5355\u8FDB\u884C\u5206\u7EC4\uFF0C\u5206\u7EC4\u540D\u901A\u8FC7title\u5C5E\u6027\u76F4\u63A5\u8BBE\u5B9A\u3002",-1),Ve={class:"source"},ke=d("h2",null,"\u7981\u7528",-1),xe=d("h4",null,"\u8BBE\u7F6E disabled \u5C5E\u6027\u7981\u7528\u6B64\u9009\u9879",-1),Ne={class:"source"},Ie=d("h2",null,"\u83DC\u5355\u5C55\u5F00",-1),Se=d("h4",null,"\u8BBE\u7F6E default-openeds \u53EF\u4EE5\u5C55\u5F00\u6307\u5B9A\u7684\u5B50\u83DC\u5355\u3002",-1),we={class:"source"},Ue=x("<h2>Attribute</h2><table><thead><tr><th>\u53C2\u6570</th><th>\u8BF4\u660E</th><th>\u7C7B\u578B</th><th>\u53EF\u9009\u503C</th><th>\u9ED8\u8BA4\u503C</th></tr></thead><tbody><tr><td>mode</td><td>\u83DC\u5355\u7C7B\u578B\uFF0C\u6C34\u5E73\u6216\u8005\u5782\u76F4</td><td>string</td><td>horizontal / vertical</td><td>vertical</td></tr><tr><td>theme</td><td>\u4E3B\u9898\uFF0C\u9ED8\u8BA4\u63D0\u4F9B\u4E86\u4E24\u79CD\u4E3B\u9898</td><td>string</td><td>light / dark</td><td>light</td></tr><tr><td>name</td><td>\u552F\u4E00\u6807\u8BC6\uFF0C\u5FC5\u586B</td><td>string</td><td>\u2014</td><td>\u2014</td></tr><tr><td>title</td><td>\u5206\u7EC4\u6807\u9898</td><td>string</td><td>\u2014</td><td>\u2014</td></tr><tr><td>default-active</td><td>\u9ED8\u8BA4\u9009\u4E2D\u7684\u83DC\u5355\u9879name</td><td>string</td><td>\u2014</td><td>\u2014</td></tr><tr><td>default-openeds</td><td>\u9ED8\u8BA4\u5C55\u5F00\u7684submenu</td><td>array</td><td>\u2014</td><td>\u2014</td></tr><tr><td>disabled</td><td>\u7981\u7528\u5F53\u524D\u83DC\u5355\u9879</td><td>boolean</td><td>\u2014</td><td>false</td></tr></tbody></table><br><h2>Events</h2><table><thead><tr><th>\u4E8B\u4EF6\u540D\u79F0</th><th>\u8BF4\u660E</th><th>\u8FD4\u56DE\u503C</th></tr></thead><tbody><tr><td>on-select</td><td>\u9009\u62E9\u83DC\u5355\uFF08MenuItem\uFF09\u65F6\u89E6\u53D1</td><td>name</td></tr><tr><td>on-open-change</td><td>\u5C55\u5F00/\u6536\u8D77 \u5B50\u83DC\u5355\u65F6\u89E6\u53D1</td><td>\u5F53\u524D\u5C55\u5F00\u7684 Submenu \u7684 name \u503C\u6570\u7EC4</td></tr></tbody></table><br>",6),De={__name:"doc",setup(a,{expose:s}){return s({frontmatter:{}}),(l,o)=>(p(),f("div",le,[ie,ue,ce,he,re,pe,d("div",fe,[t(G)]),t($,{compName:"menu",demoName:"demo1"}),$e,ve,d("div",ge,[t(Y)]),t($,{compName:"menu",demoName:"demo2"}),be,ye,d("div",Ve,[t(Nt)]),t($,{compName:"menu",demoName:"demo3"}),ke,xe,d("div",Ne,[t(Ht)]),t($,{compName:"menu",demoName:"demo4"}),Ie,Se,d("div",we,[t(me)]),t($,{compName:"menu",demoName:"demo5"}),Ue]))}};export{De as default};
|