var $=Object.defineProperty,x=Object.defineProperties;var N=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var q=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var k=(r,o,t)=>o in r?$(r,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[o]=t,w=(r,o)=>{for(var t in o||(o={}))q.call(o,t)&&k(r,t,o[t]);if(y)for(var t of y(o))E.call(o,t)&&k(r,t,o[t]);return r},v=(r,o)=>x(r,N(o));var V=(r,o,t)=>new Promise((f,l)=>{var c=i=>{try{a(t.next(i))}catch(n){l(n)}},b=i=>{try{a(t.throw(i))}catch(n){l(n)}},a=i=>i.done?f(i.value):Promise.resolve(i.value).then(c,b);a((t=t.apply(r,o)).next())});import{d as F,U as _,a2 as J,a3 as R,a4 as z,k as s,af as m,G as d,u as B}from"./vue-vendor-CxLCUzY4.js";import"./index-BN26Feep.js";import{u as D}from"./index-Cy4uayzW.js";import{u as O,B as P}from"./useForm-DfoT2G6J.js";import"./componentMap-0iK4HQBq.js";import"./antd-vue-vendor-CahNzUUa.js";import"./useFormItem-IOFWTdED.js";import"./index-zKZnG1QC.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-Bdn0r8CG.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-Bn4f3tzD.js";import"./base64Conver-24EVOS6V.js";import"./index-D6H6KsT6.js";import"./index-CLxBW_h0.js";import"./useCountdown-2P9HvnfJ.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JAddInput-DP4caUmw.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-tDBMxW9-.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./depart.api-B8q8MC-j.js";import"./JImageUpload-C5OCTlCG.js";import"./JDictSelectTag-CalJXNVe.js";import"./JSelectDept-D-TUaHvK.js";import"./JPopup-CVHkQZFq.js";import"./JEllipsis-TuDc52fh.js";import"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.js";import"./JAreaLinkage-CTMEfTuh.js";import"./JCodeEditor-U9QIstNN.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CZdChTcP.js";const j={class:"p-4"},A={class:"p-4 bg-white"},G={title:"富文本 | Markdown",name:"MarkdownDemo"},At=F(v(w({},G),{setup(r){const{createMessage:o,createSuccessModal:t}=D(),f=[{field:"name",component:"Input",label:"姓名",required:!0,defaultValue:"zhangsan"},{field:"tinymce",component:"JEditor",label:"富文本",defaultValue:"defaultValue",required:!0},{field:"markdown",component:"JMarkdownEditor",label:"Markdown",defaultValue:"# 张三",required:!0,componentProps:{height:300}}],[l,{setProps:c,validate:b,setFieldsValue:a}]=O({labelWidth:120,schemas:f,actionColOptions:{span:24},compact:!0,showResetButton:!1,showSubmitButton:!1,showAdvancedButton:!1,disabled:!1});function i(p){}function n(p){c({disabled:!!p})}function C(){return V(this,null,function*(){try{const p=yield b();t({title:"校验通过",content:`${JSON.stringify(p)}`})}catch(p){o.warning("检验不通过")}})}function M(){a({name:"LiSi",markdown:"# 李四",tinymce:'<p><strong><span style="font-size: 18pt;">张<span style="color: #e03e2d;">三</span>丰</span></strong></p>'})}return(p,e)=>{const u=_("a-button"),S=_("a-button-group");return J(),R("div",j,[z("div",A,[s(S,{class:"j-table-operator"},{default:m(()=>[s(u,{type:"primary",onClick:e[0]||(e[0]=g=>n(0))},{default:m(()=>e[4]||(e[4]=[d("启用")])),_:1}),s(u,{type:"primary",onClick:e[1]||(e[1]=g=>n(1))},{default:m(()=>e[5]||(e[5]=[d("禁用")])),_:1}),s(u,{type:"primary",onClick:e[2]||(e[2]=g=>C())},{default:m(()=>e[6]||(e[6]=[d("校验表单并获取值")])),_:1}),s(u,{type:"primary",onClick:e[3]||(e[3]=g=>M())},{default:m(()=>e[7]||(e[7]=[d("设置值")])),_:1})]),_:1}),s(B(P),{onRegister:B(l),onSubmit:i},null,8,["onRegister"])])])}}}));export{At as default};
