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-BkgeZpOO.js";import{u as D}from"./index-CYriLmQo.js";import{u as O,B as P}from"./useForm-8o5KRzWo.js";import"./componentMap-7D1QIeNI.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./useFormItem-CWa0w7fA.js";import"./index-CF_FJn6P.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useTimeout-DC8132dd.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-CxQILSKV.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-CkbK5et1.js";import"./base64Conver-24EVOS6V.js";import"./index-QMJkXEyl.js";import"./index-Bb_NRLur.js";import"./useCountdown-C3-PRPLY.js";import"./useFormItemSingle-DM34aWgK.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JAddInput-CXT54-j9.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-BTSd5ebC.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./depart.api-C9T5xfw6.js";import"./JDictSelectTag-Jqy9TBcS.js";import"./JSelectDept-DorRVguN.js";import"./JPopup-KP1kIsae.js";import"./JEllipsis-287cEHxd.js";import"./JUpload-pyrTRFCz.js";import"./index-Bx9Mnn3N.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.js";import"./JAreaLinkage-DFTeDmm8.js";import"./JCodeEditor-_KZ8XnNK.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-XK54XB3r.js";const j={class:"p-4"},A={class:"p-4 bg-white"},G={title:"富文本 | Markdown",name:"MarkdownDemo"},jt=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{jt as default};
