mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
2 lines
1.4 KiB
JavaScript
2 lines
1.4 KiB
JavaScript
import{aw as i,ag as f,y as m,z as c,A as t,P as s,L as n}from"./chunks/framework.BCBheFgR.js";const $=JSON.parse('{"title":"联动","description":"","frontmatter":{},"headers":[],"relativePath":"form-config/relate.md","filePath":"form-config/relate.md"}'),d={name:"form-config/relate.md"};function p(u,a,h,x,N,g){const l=f("demo-block");return c(),m("div",null,[a[0]||(a[0]=t("h1",{id:"联动",tabindex:"-1"},[n("联动 "),t("a",{class:"header-anchor",href:"#联动","aria-label":'Permalink to "联动"'},"")],-1)),a[1]||(a[1]=t("h2",{id:"显隐",tabindex:"-1"},[n("显隐 "),t("a",{class:"header-anchor",href:"#显隐","aria-label":'Permalink to "显隐"'},"")],-1)),s(l,{type:"form",config:[{name:"switch",text:"显示text",type:"switch"},{name:"text2",text:"配置2",display:(o,{model:r})=>r.switch}]},null,8,["config"]),a[2]||(a[2]=t("h2",{id:"输入关联",tabindex:"-1"},[n("输入关联 "),t("a",{class:"header-anchor",href:"#输入关联","aria-label":'Permalink to "输入关联"'},"")],-1)),s(l,{type:"form",config:[{name:"firstName",text:"名",onChange:(o,r,{model:e})=>{e.fullName=`${e.lastName}${e.firstName}`},defaultValue:"三"},{name:"lastName",text:"姓",onChange:(o,r,{model:e})=>{e.fullName=`${e.lastName}${e.firstName}`},defaultValue:"张"},{name:"fullName",text:"姓名",type:"display",defaultValue:"张三"}]},null,8,["config"])])}const k=i(d,[["render",p]]);export{$ as __pageData,k as default};
|