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-ByX9XNkE.js";import{u as D}from"./index-CLZzJyTP.js";import{u as O,B as P}from"./useForm-Dx3lJ3DG.js";import"./componentMap-DpsJvoqz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./useFormItem-IOFWTdED.js";import"./index-XZKTTfG1.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-DvqyyN77.js";import"./useWindowSizeFn-D9PllI8g.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-DopMSmFN.js";import"./base64Conver-24EVOS6V.js";import"./index-CDa2_aYE.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JAddInput-B36c3B5x.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-C7yPiS0L.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./depart.api-DHG2p2Yd.js";import"./JImageUpload-BFwNYdm5.js";import"./JDictSelectTag-CfF54ALX.js";import"./JSelectDept-CaEHrQp6.js";import"./JPopup-BvqhHpPl.js";import"./JEllipsis-C_gT_vEQ.js";import"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./JAreaLinkage-M9TGy8nY.js";import"./JCodeEditor-CR57XeIe.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CWOTSpxK.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};
