doc.aeef8294.js 4.5 KB

1
  1. import{_ as h}from"./index.c8cfbd6c.js";import{e as _,o as n,b as i,G as o,l as t,F as e,g as u,I as p,x as v,H as f,D as r,X as $}from"./@vue.e84e1286.js";import{p as m}from"./preview.2bfe2f00.js";import"./vue-router.54876e93.js";import"./bus.f1893518.js";import"./mitt.550594b0.js";/* empty css */const w={},g={class:"card-header"},N=t("span",null,"\u5361\u7247\u540D\u79F0",-1),k=r("\u64CD\u4F5C\u6309\u94AE");function B(l,a){const s=_("m-button"),d=_("m-card");return n(),i(d,{class:"box-card"},{header:o(()=>[t("div",g,[N,e(s,{class:"button",type:"text"},{default:o(()=>[k]),_:1})])]),default:o(()=>[(n(),u(f,null,p(4,c=>t("div",{key:c,class:"item"},v("\u5217\u8868\u5185\u5BB9 "+c),1)),64))]),_:1})}var C=h(w,[["render",B]]);const V={};function D(l,a){const s=_("m-card");return n(),i(s,{class:"box-card"},{default:o(()=>[(n(),u(f,null,p(4,d=>t("div",{key:d,class:"item"},v("List item "+d),1)),64))]),_:1})}var F=h(V,[["render",D],["__scopeId","data-v-5d14f16c"]]);const I={},L=t("h2",{style:{padding:"0 10px"}},"\u8FD9\u662F\u4E00\u6BB5\u6807\u9898",-1),S={style:{padding:"14px"}},j=t("span",null,"\u5361\u7247\u540D\u79F0",-1),A={class:"bottom"},E=t("p",null,"\u4EC0\u4E48\u662F\u5FEB\u4E50\u661F\u7403",-1),G=r("\u64CD\u4F5C\u6309\u94AE");function H(l,a){const s=_("m-button"),d=_("m-card"),c=_("m-col"),y=_("m-row");return n(),i(y,null,{default:o(()=>[(n(),u(f,null,p(2,(b,x)=>e(c,{key:b,span:8,offset:x>0?2:0},{default:o(()=>[e(d,{"body-style":{padding:"0px"}},{default:o(()=>[L,t("div",S,[j,t("div",A,[E,e(s,{class:"button",type:"text"},{default:o(()=>[G]),_:1})])])]),_:1})]),_:2},1032,["offset"])),64))]),_:1})}var M=h(I,[["render",H]]);const O={},T=r(" \u603B\u662F\u663E\u793A "),X=r(" \u9F20\u6807\u60AC\u6D6E\u65F6\u663E\u793A "),q=r(" \u4ECE\u4E0D\u663E\u793A ");function z(l,a){const s=_("m-card"),d=_("m-col"),c=_("m-row");return n(),i(c,{gutter:12},{default:o(()=>[e(d,{span:8},{default:o(()=>[e(s,{shadow:"always"},{default:o(()=>[T]),_:1})]),_:1}),e(d,{span:8},{default:o(()=>[e(s,{shadow:"hover"},{default:o(()=>[X]),_:1})]),_:1}),e(d,{span:8},{default:o(()=>[e(s,{shadow:"never"},{default:o(()=>[q]),_:1})]),_:1})]),_:1})}var J=h(O,[["render",z]]);const K={class:"markdown-body"},P=t("h1",null,"Card \u5361\u7247",-1),Q=t("h4",null,"\u5C06\u4FE1\u606F\u805A\u5408\u5728\u5361\u7247\u5BB9\u5668\u4E2D\u5C55\u793A",-1),R=t("br",null,null,-1),U=t("h2",null,"\u57FA\u7840\u7528\u6CD5",-1),W=t("h4",null,"\u5361\u7247\u5305\u542B\u6807\u9898\uFF0C\u5185\u5BB9\u4EE5\u53CA\u64CD\u4F5C\u533A\u57DF\u3002",-1),Y=t("h4",null,"Card \u7EC4\u4EF6\u7531 header \u548C body \u7EC4\u6210\u3002 header \u662F\u53EF\u9009\u7684\uFF0C\u5176\u5185\u5BB9\u53D6\u51B3\u4E8E\u4E00\u4E2A\u5177\u540D\u7684 slot\u3002",-1),Z={class:"source"},tt=t("h2",null,"\u7B80\u5355\u5361\u7247",-1),et=t("h4",null,"\u5361\u7247\u53EF\u4EE5\u53EA\u6709\u5185\u5BB9\u533A\u57DF\u3002",-1),ot={class:"source"},dt=t("h2",null,"\u6709\u56FE\u7247\u5185\u5BB9\u7684\u5361\u7247",-1),st=t("h4",null,"\u53EF\u914D\u7F6E\u5B9A\u4E49\u66F4\u4E30\u5BCC\u7684\u5185\u5BB9\u5C55\u793A\u3002\u914D\u7F6Ebody-style\u5C5E\u6027\u6765\u81EA\u5B9A\u4E49body\u90E8\u5206\u7684\u6837\u5F0F",-1),_t={class:"source"},nt=t("h2",null,"\u5361\u7247\u9634\u5F71",-1),ct=t("h4",null,"\u53EF\u5BF9\u9634\u5F71\u7684\u663E\u793A\u8FDB\u884C\u914D\u7F6E\u3002\u901A\u8FC7shadow\u5C5E\u6027\u8BBE\u7F6E\u5361\u7247\u9634\u5F71\u51FA\u73B0\u7684\u65F6\u673A\uFF1Aalways\u3001hover\u6216never",-1),at={class:"source"},rt=$("<h2>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>header</td><td>\u8BBE\u7F6E header\uFF0C\u4E5F\u53EF\u4EE5\u901A\u8FC7 <code>slot#header</code> \u4F20\u5165 DOM\u8282\u70B9</td><td>string</td><td>\u2014</td><td>\u2014</td></tr><tr><td>body-style</td><td>\u8BBE\u7F6E body \u7684\u6837\u5F0F</td><td>object</td><td>\u2014</td><td>{ padding: \u201820px\u2019 }</td></tr><tr><td>shadow</td><td>\u8BBE\u7F6E\u9634\u5F71\u663E\u793A\u65F6\u673A</td><td>string</td><td>always / hover / never</td><td>always</td></tr></tbody></table><br>",3),vt={__name:"doc",setup(l,{expose:a}){return a({frontmatter:{}}),(d,c)=>(n(),u("div",K,[P,Q,R,U,W,Y,t("div",Z,[e(C)]),e(m,{compName:"card",demoName:"demo1"}),tt,et,t("div",ot,[e(F)]),e(m,{compName:"card",demoName:"demo2"}),dt,st,t("div",_t,[e(M)]),e(m,{compName:"card",demoName:"demo3"}),nt,ct,t("div",at,[e(J)]),e(m,{compName:"card",demoName:"demo4"}),rt]))}};export{vt as default};