tmagic-editor/docs/assets/form-config_fields_radio.md.CNVjIAaP.lean.js
2025-03-31 12:39:00 +00:00

2 lines
1.3 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{aw as n,ag as d,y as l,z as o,b0 as i,P as e,A as a,H as r,L as p}from"./chunks/framework.BCBheFgR.js";const y=JSON.parse('{"title":"Radio 单选框","description":"","frontmatter":{},"headers":[],"relativePath":"form-config/fields/radio.md","filePath":"form-config/fields/radio.md"}'),h={name:"form-config/fields/radio.md"};function k(g,t,c,m,u,b){const s=d("demo-block");return o(),l("div",null,[t[2]||(t[2]=i("",7)),e(s,{type:"form",config:[{type:"radio-group",name:"radio",text:"选项",options:[{text:"选项1",value:1},{text:"选项2",value:2}]}]},{source:r(()=>t[0]||(t[0]=[a("p",null," 要使用 Radio 组件只需要配置type: 'radio-group'。 ",-1)])),_:1}),t[3]||(t[3]=a("h2",{id:"禁用状态",tabindex:"-1"},[p("禁用状态 "),a("a",{class:"header-anchor",href:"#禁用状态","aria-label":'Permalink to "禁用状态"'},"")],-1)),t[4]||(t[4]=a("p",null,"单选框不可用的状态。",-1)),e(s,{type:"form",config:[{type:"radio-group",name:"radio",text:"选项",options:[{text:"选项1",value:1},{text:"选项2",value:2}],disabled:()=>!0}]},{source:r(()=>t[1]||(t[1]=[a("p",null," 只要在配置中设置 disabled 属性即可,它接受一个 Boolean true 为禁用,也可以接受一个返回 Boolean 的函数。 ",-1)])),_:1}),t[5]||(t[5]=i("",2))])}const E=n(h,[["render",k]]);export{y as __pageData,E as default};