1234567891011121314 |
- import{_ as c}from"./BasicForm.vue_vue_type_script_setup_true_lang-CSERouAH.js";import"./BasicForm.vue_vue_type_style_index_0_lang-C6dSYv9K.js";import"./componentMap-D1eJl6zq.js";import{C as d,a as f}from"./entry/index-DHk75Dkc.js";import{P as _}from"./index-C3JMvybM.js";import{M as a,C as i}from"./index-CiSJFW1O.js";import{d as g,Z as C,a7 as b,a8 as n,k as s,u as o,l as p}from"./vue-ByATgq5d.js";import"./FormItem.vue_vue_type_script_lang-kwkG2Igb.js";import"./helper-My4ihbg8.js";import"./antd-B5uHptHh.js";import"./index-_MAnPjxT.js";import"./useWindowSizeFn-D9YbvWYE.js";import"./useFormItem-Bv5-d0zE.js";import"./RadioButtonGroup.vue_vue_type_script_setup_true_lang-CUK54Qtj.js";import"./index-CWmHSpPl.js";import"./uuid-D0SLUWHI.js";import"./useSortable-BmaEIOXj.js";import"./download-_Tt1MCao.js";import"./base64Conver-bBv-IO2K.js";import"./index-DMPvzyL-.js";import"./IconPicker.vue_vue_type_script_setup_true_lang-CyxzsS6k.js";import"./copyTextToClipboard-Cwa_x1Ip.js";import"./index-N1vfajO3.js";import"./index--gfULm8y.js";import"./useContentViewHeight-D8mdT192.js";import"./onMountedOrActivated-BDlj7Upy.js";const A=g({__name:"Editor",setup(h){const m=[{field:"title",component:"Input",label:"title",defaultValue:"标题",rules:[{required:!0}]},{field:"JSON",component:"Input",label:"JSON",defaultValue:`{
- "name":"BeJson",
- "url":"http://www.xxx.com",
- "page":88,
- "isNonProfit":true,"
- address:{
- "street":"科技园路.",
- "city":"江苏苏州",
- "country":"中国"
- },
- }`,rules:[{required:!0,trigger:"blur"}],render:({model:e,field:t})=>p(i,{value:e[t],mode:a.JSON,onChange:r=>{e[t]=r},config:{tabSize:10}})},{field:"PYTHON",component:"Input",label:"PYTHON",defaultValue:`def functionname( parameters ):
- "函数_文档字符串"
- function_suite
- return [expression]`,rules:[{required:!0,trigger:"blur"}],render:({model:e,field:t})=>p(i,{value:e[t],mode:a.PYTHON,onChange:r=>{e[t]=r}})}],{createMessage:u}=f();function l(e){u.success("click search,values:"+JSON.stringify(e))}return(e,t)=>(C(),b(o(_),{title:"代码编辑器组件嵌入Form示例"},{default:n(()=>[s(o(d),{title:"代码编辑器组件"},{default:n(()=>[s(o(c),{labelWidth:100,schemas:m,actionColOptions:{span:24},baseColProps:{span:24},onSubmit:l})]),_:1})]),_:1}))}});export{A as default};
|