mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
2 lines
4.1 KiB
JavaScript
2 lines
4.1 KiB
JavaScript
import{aw as i,ag as l,y as o,z as m,A as t,P as r,L as a}from"./chunks/framework.BCBheFgR.js";const g=JSON.parse('{"title":"布局","description":"","frontmatter":{},"headers":[],"relativePath":"form-config/layout.md","filePath":"form-config/layout.md"}'),s={name:"form-config/layout.md"};function x(d,e,p,f,b,h){const n=l("demo-block");return m(),o("div",null,[e[0]||(e[0]=t("h1",{id:"布局",tabindex:"-1"},[a("布局 "),t("a",{class:"header-anchor",href:"#布局","aria-label":'Permalink to "布局"'},"")],-1)),e[1]||(e[1]=t("h2",{id:"基础用法",tabindex:"-1"},[a("基础用法 "),t("a",{class:"header-anchor",href:"#基础用法","aria-label":'Permalink to "基础用法"'},"")],-1)),r(n,{type:"form",config:[{name:"text",text:"配置1"},{name:"text2",text:"配置2"},{name:"text3",text:"配置3"}]}),e[2]||(e[2]=t("h2",{id:"行内布局",tabindex:"-1"},[a("行内布局 "),t("a",{class:"header-anchor",href:"#行内布局","aria-label":'Permalink to "行内布局"'},"")],-1)),e[3]||(e[3]=t("p",null,"可以通过配置span,来指定行内的配置项占用多少位置,一行为24,例如一行要显示三个配置则 span 可以配置 8;四个则为 6。默认会自动调节在一行中显示。",-1)),r(n,{type:"form",config:[{type:"row",labelWidth:"100px",span:8,items:[{name:"text",text:"配置1"},{name:"text2",text:"配置2"},{name:"text3",text:"配置3"}]},{type:"row",span:12,labelWidth:"100px",items:[{name:"text4",text:"配置1"},{name:"text5",text:"配置2"},{name:"text6",text:"配置3"}]}]}),e[4]||(e[4]=t("h2",{id:"混合布局",tabindex:"-1"},[a("混合布局 "),t("a",{class:"header-anchor",href:"#混合布局","aria-label":'Permalink to "混合布局"'},"")],-1)),r(n,{type:"form",config:[{name:"text0",labelWidth:"100px",text:"配置0"},{type:"row",labelWidth:"100px",items:[{name:"text",text:"配置1"},{name:"text2",text:"配置2"},{name:"text3",text:"配置3"}]}]}),e[5]||(e[5]=t("h2",{id:"对象容器",tabindex:"-1"},[a("对象容器 "),t("a",{class:"header-anchor",href:"#对象容器","aria-label":'Permalink to "对象容器"'},"")],-1)),e[6]||(e[6]=t("h3",{id:"object",tabindex:"-1"},[a("Object "),t("a",{class:"header-anchor",href:"#object","aria-label":'Permalink to "Object"'},"")],-1)),r(n,{type:"form",config:[{name:"data",items:[{name:"text2",text:"配置2"},{name:"text3",text:"配置3"}]}]}),e[7]||(e[7]=t("h3",{id:"fieldset",tabindex:"-1"},[a("fieldset "),t("a",{class:"header-anchor",href:"#fieldset","aria-label":'Permalink to "fieldset"'},"")],-1)),r(n,{type:"form",config:[{type:"fieldset",labelWidth:"100px",legend:"fieldset",items:[{name:"text",text:"配置1"},{type:"row",items:[{name:"text2",text:"配置2"},{name:"text3",text:"配置3"}]}]}]}),e[8]||(e[8]=t("h3",{id:"panel",tabindex:"-1"},[a("panel "),t("a",{class:"header-anchor",href:"#panel","aria-label":'Permalink to "panel"'},"")],-1)),r(n,{type:"form",config:[{type:"panel",title:"panel",items:[{name:"text",text:"配置1"},{type:"row",items:[{name:"text2",text:"配置2"},{name:"text3",text:"配置3"}]}]}]}),e[9]||(e[9]=t("h3",{id:"tabs",tabindex:"-1"},[a("tabs "),t("a",{class:"header-anchor",href:"#tabs","aria-label":'Permalink to "tabs"'},"")],-1)),r(n,{type:"form",config:[{type:"tab",items:[{title:"tab1",items:[{name:"text",text:"配置1"}]},{title:"tab2",items:[{name:"text2",text:"配置2"},{name:"text3",text:"配置3"}]}]}]}),e[10]||(e[10]=t("h2",{id:"数组容器",tabindex:"-1"},[a("数组容器 "),t("a",{class:"header-anchor",href:"#数组容器","aria-label":'Permalink to "数组容器"'},"")],-1)),e[11]||(e[11]=t("h3",{id:"grouplist",tabindex:"-1"},[a("groupList "),t("a",{class:"header-anchor",href:"#grouplist","aria-label":'Permalink to "groupList"'},"")],-1)),r(n,{type:"form",config:[{type:"groupList",name:"group",items:[{name:"text",text:"配置1"},{type:"row",items:[{name:"text2",text:"配置2"},{name:"text3",text:"配置3"}]}]}]}),e[12]||(e[12]=t("h3",{id:"table",tabindex:"-1"},[a("table "),t("a",{class:"header-anchor",href:"#table","aria-label":'Permalink to "table"'},"")],-1)),r(n,{type:"form",config:[{type:"table",name:"table",items:[{name:"text",label:"配置1"}]}]})])}const k=i(s,[["render",x]]);export{g as __pageData,k as default};
|