1 |
- import{e as l,o as r,b as m,G as o,F as t,D as e,g as u,H as p,l as n,X as $}from"./@vue.e84e1286.js";import{_ as h}from"./index.c8cfbd6c.js";import{p as a}from"./preview.2bfe2f00.js";import"./vue-router.54876e93.js";import"./bus.f1893518.js";import"./mitt.550594b0.js";/* empty css */const b=e("\u83DC\u53551"),g=e("\u83DC\u53552"),v=e("\u83DC\u53553"),N=e("\u83DC\u53554"),x=e("\u83DC\u53555"),y={__name:"demo1",setup(i){const c=d=>{console.log(d)};return(d,s)=>{const _=l("m-dropdown-item"),f=l("m-dropdown-menu"),w=l("m-dropdown");return r(),m(w,{title:"\u4E0B\u62C9\u83DC\u5355",onChange:c},{dropdown:o(()=>[t(f,null,{default:o(()=>[t(_,null,{default:o(()=>[b]),_:1}),t(_,null,{default:o(()=>[g]),_:1}),t(_,null,{default:o(()=>[v]),_:1}),t(_,null,{default:o(()=>[N]),_:1}),t(_,null,{default:o(()=>[x]),_:1})]),_:1})]),_:1})}}},k={},D=e("\u83DC\u53551"),B=e("\u83DC\u53552"),C=e("\u83DC\u53553"),V=e("\u83DC\u53554"),A=e("\u83DC\u53555"),E=e("\u83DC\u53551"),F=e("\u83DC\u53552"),I=e("\u83DC\u53553"),S=e("\u83DC\u53554"),G=e("\u83DC\u53555");function H(i,c){const d=l("m-dropdown-item"),s=l("m-dropdown-menu"),_=l("m-dropdown");return r(),u(p,null,[t(_,{title:"\u4E0B\u62C9\u83DC\u5355",disabled:""},{dropdown:o(()=>[t(s,null,{default:o(()=>[t(d,null,{default:o(()=>[D]),_:1}),t(d,null,{default:o(()=>[B]),_:1}),t(d,null,{default:o(()=>[C]),_:1}),t(d,null,{default:o(()=>[V]),_:1}),t(d,null,{default:o(()=>[A]),_:1})]),_:1})]),_:1}),t(_,{title:"\u4E0B\u62C9\u83DC\u5355",style:{"margin-left":"50px"}},{dropdown:o(()=>[t(s,null,{default:o(()=>[t(d,null,{default:o(()=>[E]),_:1}),t(d,null,{default:o(()=>[F]),_:1}),t(d,null,{default:o(()=>[I]),_:1}),t(d,{disabled:""},{default:o(()=>[S]),_:1}),t(d,{divided:""},{default:o(()=>[G]),_:1})]),_:1})]),_:1})],64)}var M=h(k,[["render",H]]);const T={},X=e("\u83DC\u53551"),j=e("\u83DC\u53552"),q=e("\u83DC\u53553"),z=e("\u83DC\u53554"),J=e("\u83DC\u53555"),K=e("\u83DC\u53551"),L=e("\u83DC\u53552"),O=e("\u83DC\u53553"),P=e("\u83DC\u53554"),Q=e("\u83DC\u53555");function R(i,c){const d=l("m-dropdown-item"),s=l("m-dropdown-menu"),_=l("m-dropdown");return r(),u(p,null,[t(_,{title:"hover \u6FC0\u6D3B"},{dropdown:o(()=>[t(s,null,{default:o(()=>[t(d,null,{default:o(()=>[X]),_:1}),t(d,null,{default:o(()=>[j]),_:1}),t(d,null,{default:o(()=>[q]),_:1}),t(d,null,{default:o(()=>[z]),_:1}),t(d,null,{default:o(()=>[J]),_:1})]),_:1})]),_:1}),t(_,{title:"click \u6FC0\u6D3B",trigger:"click",style:{"margin-left":"50px"}},{dropdown:o(()=>[t(s,null,{default:o(()=>[t(d,null,{default:o(()=>[K]),_:1}),t(d,null,{default:o(()=>[L]),_:1}),t(d,null,{default:o(()=>[O]),_:1}),t(d,null,{default:o(()=>[P]),_:1}),t(d,null,{default:o(()=>[Q]),_:1})]),_:1})]),_:1})],64)}var U=h(T,[["render",R]]);const W={},Y=e("\u83DC\u53551"),Z=e("\u83DC\u53552"),tt=e("\u83DC\u53553"),ot=e("\u83DC\u53554"),dt=e("\u83DC\u53555");function et(i,c){const d=l("m-dropdown-item"),s=l("m-dropdown-menu"),_=l("m-dropdown");return r(),m(_,{title:"\u4E0B\u62C9\u83DC\u5355"},{dropdown:o(()=>[t(s,null,{default:o(()=>[t(d,{icon:"icon-search"},{default:o(()=>[Y]),_:1}),t(d,{icon:"icon-edit"},{default:o(()=>[Z]),_:1}),t(d,{icon:"icon-close"},{default:o(()=>[tt]),_:1}),t(d,{icon:"icon-link"},{default:o(()=>[ot]),_:1}),t(d,{icon:"icon-good"},{default:o(()=>[dt]),_:1})]),_:1})]),_:1})}var nt=h(W,[["render",et]]),_t="./head.png";const lt={},st=n("img",{src:_t,alt:""},null,-1),ct=e("\u83DC\u53551"),rt=e("\u83DC\u53552"),it=e("\u83DC\u53553"),at=e("\u83DC\u53554"),ht=e("\u83DC\u53555");function mt(i,c){const d=l("m-dropdown-item"),s=l("m-dropdown-menu"),_=l("m-dropdown");return r(),m(_,{title:"\u4E0B\u62C9\u83DC\u5355"},{img:o(()=>[st]),dropdown:o(()=>[t(s,null,{default:o(()=>[t(d,null,{default:o(()=>[ct]),_:1}),t(d,null,{default:o(()=>[rt]),_:1}),t(d,null,{default:o(()=>[it]),_:1}),t(d,null,{default:o(()=>[at]),_:1}),t(d,null,{default:o(()=>[ht]),_:1})]),_:1})]),_:1})}var ut=h(lt,[["render",mt]]);const pt={class:"markdown-body"},ft=n("h1",null,"Dropdown \u4E0B\u62C9\u83DC\u5355",-1),wt=n("h4",null,"\u5C06\u52A8\u4F5C\u6216\u83DC\u5355\u6298\u53E0\u5230\u4E0B\u62C9\u83DC\u5355\u4E2D",-1),$t=n("br",null,null,-1),bt=n("h2",null,"\u57FA\u7840\u7528\u6CD5",-1),gt=n("h4",null,"\u79FB\u52A8\u5230\u4E0B\u62C9\u83DC\u5355\u4E0A\uFF0C\u5C55\u5F00\u66F4\u591A\u64CD\u4F5C\u3002\u901A\u8FC7\u7EC4\u4EF6slot\u6765\u8BBE\u7F6E\u4E0B\u62C9\u89E6\u53D1\u7684\u5143\u7D20\u4EE5\u53CA\u9700\u8981\u901A\u8FC7\u5177\u540Dslot\u4E3Adropdown \u6765\u8BBE\u7F6E\u4E0B\u62C9\u83DC\u5355\u3002",-1),vt={class:"source"},Nt=n("h2",null,"\u7981\u7528\u72B6\u6001",-1),xt=n("h4",null,"\u53EF\u4EE5\u8BBE\u7F6E disabled \u5C5E\u6027\u6765\u5B9E\u73B0\u7981\u7528\u72B6\u6001\u3002\u4F5C\u7528\u4E8Em-dropdown\uFF0C\u8868\u793A\u7981\u7528\u6574\u4E2A\u4E0B\u62C9\u83DC\u5355\uFF1B\u4F5C\u7528\u4E8Em-dropdown-item\uFF0C\u8868\u793A\u7981\u7528\u5355\u4E2A\u9879\u3002",-1),yt={class:"source"},kt=n("h2",null,"\u89E6\u53D1\u5BF9\u8C61",-1),Dt=n("h4",null,"\u53EF\u4EE5\u914D\u7F6E click \u6FC0\u6D3B\u6216\u8005 hover \u6FC0\u6D3B\u3002\u5C06 trigger \u5C5E\u6027\u8BBE\u7F6E\u4E3A click \u5373\u53EF\uFF0C \u9ED8\u8BA4\u4E3A hover\u3002",-1),Bt={class:"source"},Ct=n("h2",null,"\u56FE\u6807\u7C7B\u578B",-1),Vt=n("h4",null,"\u901A\u8FC7\u8BBE\u7F6E icon \u5C5E\u6027\u5C55\u793A\u56FE\u6807",-1),At={class:"source"},Et=n("h2",null,"\u5934\u50CF\u7C7B\u578B",-1),Ft=n("h4",null,"\u901A\u8FC7\u63D2\u69FD #Img \u8BBE\u7F6E\u5934\u50CF\u7C7B\u578B\u7684\u4E0B\u62C9\u83DC\u5355",-1),It={class:"source"},St=$("<br><h2>Dropdown Attributes</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>trigger</td><td>\u89E6\u53D1\u4E0B\u62C9\u7684\u884C\u4E3A</td><td>string</td><td>hover, click</td><td>hover</td></tr><tr><td>title</td><td>\u4E0B\u62C9\u83DC\u5355\u6807\u9898</td><td>string</td><td>\u2014</td><td>\u2014</td></tr><tr><td>disabled</td><td>\u662F\u5426\u7981\u7528</td><td>boolean</td><td>\u2014</td><td>false</td></tr></tbody></table><br><h2>Dropdown Slots</h2><table><thead><tr><th>Name</th><th>\u8BF4\u660E</th></tr></thead><tbody><tr><td>img</td><td>\u8BBE\u7F6E\u5934\u50CF\u7C7B\u578B\u7684\u63D2\u69FD</td></tr><tr><td>dropdown</td><td>\u4E0B\u62C9\u5217\u8868\uFF0C\u901A\u5E38\u662F <code><el-dropdown-menu></code> \u7EC4\u4EF6</td></tr></tbody></table><br><h2>Dropdown Events</h2><table><thead><tr><th>\u4E8B\u4EF6\u540D\u79F0</th><th>\u8BF4\u660E</th><th>\u56DE\u8C03\u53C2\u6570</th></tr></thead><tbody><tr><td>change</td><td>\u4E0B\u62C9\u83DC\u5355\u9009\u62E9\u4E8B\u4EF6</td><td>\u2014</td></tr></tbody></table><br><h2>Dropdown Menu Item Attributes</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>disabled</td><td>\u7981\u7528</td><td>boolean</td><td>\u2014</td><td>false</td></tr><tr><td>divided</td><td>\u663E\u793A\u5206\u5272\u7EBF</td><td>boolean</td><td>\u2014</td><td>false</td></tr><tr><td>icon</td><td>\u56FE\u6807\u7C7B\u540D</td><td>string</td><td>\u2014</td><td>\u2014</td></tr></tbody></table><br>",13),zt={__name:"doc",setup(i,{expose:c}){return c({frontmatter:{}}),(s,_)=>(r(),u("div",pt,[ft,wt,$t,bt,gt,n("div",vt,[t(y)]),t(a,{compName:"dropdown",demoName:"demo1"}),Nt,xt,n("div",yt,[t(M)]),t(a,{compName:"dropdown",demoName:"demo2"}),kt,Dt,n("div",Bt,[t(U)]),t(a,{compName:"dropdown",demoName:"demo3"}),Ct,Vt,n("div",At,[t(nt)]),t(a,{compName:"dropdown",demoName:"demo4"}),Et,Ft,n("div",It,[t(ut)]),t(a,{compName:"dropdown",demoName:"demo5"}),St]))}};export{zt as default};
|