1 |
- import{a as m,e as b,o as h,g as v,F as t,G as e,H as V,D as a,b as $,l as o,X as g}from"./@vue.e84e1286.js";import{p}from"./preview.2bfe2f00.js";import"./bus.f1893518.js";import"./mitt.550594b0.js";/* empty css */import"./index.c8cfbd6c.js";import"./vue-router.54876e93.js";const y=a("\u5907\u9009\u98791"),N=a("\u5907\u9009\u98792"),R={__name:"demo1",setup(c){const d=m("1");return(i,r)=>{const s=b("m-radio");return h(),v(V,null,[t(s,{modelValue:d.value,"onUpdate:modelValue":r[0]||(r[0]=l=>d.value=l),label:"1"},{default:e(()=>[y]),_:1},8,["modelValue"]),t(s,{modelValue:d.value,"onUpdate:modelValue":r[1]||(r[1]=l=>d.value=l),label:"2"},{default:e(()=>[N]),_:1},8,["modelValue"])],64)}}},x=a("\u5907\u9009\u98791"),U=a("\u5907\u9009\u98792"),B={__name:"demo2",setup(c){const d=m("1");return(i,r)=>{const s=b("m-radio");return h(),v(V,null,[t(s,{modelValue:d.value,"onUpdate:modelValue":r[0]||(r[0]=l=>d.value=l),label:"1",disabled:""},{default:e(()=>[x]),_:1},8,["modelValue"]),t(s,{modelValue:d.value,"onUpdate:modelValue":r[1]||(r[1]=l=>d.value=l),label:"2",disabled:""},{default:e(()=>[U]),_:1},8,["modelValue"])],64)}}},k=a("\u5907\u9009\u98791"),w=a("\u5907\u9009\u98792"),A=a("\u5907\u9009\u98793"),E={__name:"demo3",setup(c){const d=m("1");return(i,r)=>{const s=b("m-radio"),l=b("m-radio-group");return h(),$(l,{modelValue:d.value,"onUpdate:modelValue":r[0]||(r[0]=n=>d.value=n)},{default:e(()=>[t(s,{label:1},{default:e(()=>[k]),_:1}),t(s,{label:2},{default:e(()=>[w]),_:1}),t(s,{label:3},{default:e(()=>[A]),_:1})]),_:1},8,["modelValue"])}}},C={style:{"margin-top":"20px"}},F={__name:"demo4",setup(c){const d=m("\u4E0A\u6D77"),i=m("\u4E0A\u6D77");return(r,s)=>{const l=b("m-radio-button"),n=b("m-radio-group");return h(),v(V,null,[o("div",null,[t(n,{modelValue:d.value,"onUpdate:modelValue":s[0]||(s[0]=_=>d.value=_)},{default:e(()=>[t(l,{label:"\u4E0A\u6D77"}),t(l,{label:"\u5317\u4EAC"}),t(l,{label:"\u5E7F\u5DDE"}),t(l,{label:"\u6DF1\u5733"})]),_:1},8,["modelValue"])]),o("div",C,[t(n,{modelValue:i.value,"onUpdate:modelValue":s[1]||(s[1]=_=>i.value=_)},{default:e(()=>[t(l,{label:"\u4E0A\u6D77"}),t(l,{label:"\u5317\u4EAC",disabled:""}),t(l,{label:"\u5E7F\u5DDE"}),t(l,{label:"\u6DF1\u5733"})]),_:1},8,["modelValue"])])],64)}}},S=a("\u5907\u9009\u98791"),z=a("\u5907\u9009\u98792"),D=a("\u5907\u9009\u98793"),G={style:{"margin-top":"20px"}},H=a("\u5907\u9009\u98791"),T=a("\u5907\u9009\u98792"),X=a("\u5907\u9009\u98793"),j={style:{"margin-top":"20px"}},q=a("\u5907\u9009\u98791"),I=a("\u5907\u9009\u98792"),J=a("\u5907\u9009\u98793"),K={style:{"margin-top":"20px"}},L=a("\u5907\u9009\u98791"),M=a("\u5907\u9009\u98792"),O=a("\u5907\u9009\u98793"),P={__name:"demo5",setup(c){const d=m("1"),i=m("1"),r=m("1"),s=m("1");return(l,n)=>{const _=b("m-radio"),f=b("m-radio-group");return h(),v(V,null,[o("div",null,[t(_,{modelValue:d.value,"onUpdate:modelValue":n[0]||(n[0]=u=>d.value=u),label:"1",border:""},{default:e(()=>[S]),_:1},8,["modelValue"]),t(_,{modelValue:d.value,"onUpdate:modelValue":n[1]||(n[1]=u=>d.value=u),label:"2",border:""},{default:e(()=>[z]),_:1},8,["modelValue"]),t(_,{modelValue:d.value,"onUpdate:modelValue":n[2]||(n[2]=u=>d.value=u),label:"3",border:""},{default:e(()=>[D]),_:1},8,["modelValue"])]),o("div",G,[t(f,{modelValue:i.value,"onUpdate:modelValue":n[3]||(n[3]=u=>i.value=u)},{default:e(()=>[t(_,{label:"1",border:""},{default:e(()=>[H]),_:1}),t(_,{label:"2",border:""},{default:e(()=>[T]),_:1}),t(_,{label:"3",border:""},{default:e(()=>[X]),_:1})]),_:1},8,["modelValue"])]),o("div",j,[t(f,{modelValue:r.value,"onUpdate:modelValue":n[4]||(n[4]=u=>r.value=u)},{default:e(()=>[t(_,{label:"1",border:""},{default:e(()=>[q]),_:1}),t(_,{label:"2",border:"",disabled:""},{default:e(()=>[I]),_:1}),t(_,{label:"3",border:""},{default:e(()=>[J]),_:1})]),_:1},8,["modelValue"])]),o("div",K,[t(f,{modelValue:s.value,"onUpdate:modelValue":n[5]||(n[5]=u=>s.value=u),disabled:""},{default:e(()=>[t(_,{label:"1",border:""},{default:e(()=>[L]),_:1}),t(_,{label:"2",border:""},{default:e(()=>[M]),_:1}),t(_,{label:"3",border:""},{default:e(()=>[O]),_:1})]),_:1},8,["modelValue"])])],64)}}},Q={class:"markdown-body"},W=o("h1",null,"Radio \u5355\u9009\u6846",-1),Y=o("h4",null,"\u5728\u4E00\u7EC4\u5907\u9009\u9879\u4E2D\u8FDB\u884C\u5355\u9009",-1),Z=o("br",null,null,-1),tt=o("h2",null,"\u57FA\u7840\u7528\u6CD5",-1),et=o("p",null,"\u8981\u4F7F\u7528 Radio \u7EC4\u4EF6\uFF0C\u53EA\u9700\u8981\u8BBE\u7F6Ev-model\u7ED1\u5B9A\u53D8\u91CF\uFF0C\u9009\u4E2D\u610F\u5473\u7740\u53D8\u91CF\u7684\u503C\u4E3A\u76F8\u5E94 Radio label\u5C5E\u6027\u7684\u503C\uFF0Clabel\u53EF\u4EE5\u662FString\u3001Number\u6216Boolean",-1),dt={class:"source"},ot=o("h2",null,"\u7981\u7528\u72B6\u6001",-1),lt=o("h4",null,"\u5355\u9009\u6846\u4E0D\u53EF\u7528\u7684\u72B6\u6001\uFF0C\u901A\u8FC7\u8BBE\u7F6E disabled \u5C5E\u6027\u5B9E\u73B0",-1),at={class:"source"},st=o("h2",null,"\u5355\u9009\u6846\u7EC4",-1),rt=o("h4",null,"\u9002\u7528\u4E8E\u5728\u591A\u4E2A\u4E92\u65A5\u7684\u9009\u9879\u4E2D\u9009\u62E9\u7684\u573A\u666F",-1),nt={class:"source"},_t=o("h2",null,"\u6309\u94AE\u6837\u5F0F",-1),ut=o("h4",null,"\u6309\u94AE\u6837\u5F0F\u7684\u5355\u9009\u7EC4\u5408",-1),it={class:"source"},mt=o("h2",null,"\u5E26\u6709\u8FB9\u6846",-1),bt=o("h4",null,"\u8BBE\u7F6E border \u5C5E\u6027\u4E3A true \u53EF\u4EE5\u6E32\u67D3\u4E3A\u5E26\u6709\u8FB9\u6846\u7684\u5355\u9009\u6846",-1),ht={class:"source"},ct=g("<h2>Radio 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>value / v-model</td><td>\u7ED1\u5B9A\u503C</td><td>string / number / boolean</td><td>\u2014</td><td>\u2014</td></tr><tr><td>label</td><td>Radio \u7684 value</td><td>string / number / boolean</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><tr><td>border</td><td>\u662F\u5426\u663E\u793A\u8FB9\u6846</td><td>boolean</td><td>\u2014</td><td>false</td></tr><tr><td>name</td><td>\u539F\u751F name \u5C5E\u6027</td><td>string</td><td>\u2014</td><td>\u2014</td></tr></tbody></table><br><h2>Radio 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>\u7ED1\u5B9A\u503C\u53D8\u5316\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6</td><td>\u9009\u4E2D\u7684 Radio label \u503C</td></tr></tbody></table><br><h2>Radio-group 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>value / v-model</td><td>\u7ED1\u5B9A\u503C</td><td>string / number / boolean</td><td>\u2014</td><td>\u2014</td></tr><tr><td>size</td><td>\u5355\u9009\u6846\u7EC4\u5C3A\u5BF8\uFF0C\u4EC5\u5BF9\u6309\u94AE\u5F62\u5F0F\u7684 Radio \u6216\u5E26\u6709\u8FB9\u6846\u7684 Radio \u6709\u6548</td><td>string</td><td>medium / small / mini</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>Radio-group 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>\u7ED1\u5B9A\u503C\u53D8\u5316\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6</td><td>\u9009\u4E2D\u7684 Radio label \u503C</td></tr></tbody></table><br><h2>Radio-button 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>label</td><td>Radio \u7684 value</td><td>string / number</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><tr><td>name</td><td>\u539F\u751F name \u5C5E\u6027</td><td>string</td><td>\u2014</td><td>\u2014</td></tr></tbody></table><br>",15),Nt={__name:"doc",setup(c,{expose:d}){return d({frontmatter:{}}),(r,s)=>(h(),v("div",Q,[W,Y,Z,tt,et,o("div",dt,[t(R)]),t(p,{compName:"radio",demoName:"demo1"}),ot,lt,o("div",at,[t(B)]),t(p,{compName:"radio",demoName:"demo2"}),st,rt,o("div",nt,[t(E)]),t(p,{compName:"radio",demoName:"demo3"}),_t,ut,o("div",it,[t(F)]),t(p,{compName:"radio",demoName:"demo4"}),mt,bt,o("div",ht,[t(P)]),t(p,{compName:"radio",demoName:"demo5"}),ct]))}};export{Nt as default};
|