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-ARbUvvsq.js";import{u as D}from"./index-B_2CoVdl.js";import{u as O,B as P}from"./useForm-CcjrODHR.js";import"./componentMap-CzCGDP7x.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./useFormItem-CWa0w7fA.js";import"./index-D2AmS0aU.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useTimeout-CB9F1PLu.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-DAURrYyA.js";import"./useWindowSizeFn-C3WExEpc.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-2tYEzlDW.js";import"./base64Conver-24EVOS6V.js";import"./index-Cgt544dC.js";import"./index-BZ9ST2iq.js";import"./useCountdown-ImUE7YaG.js";import"./useFormItemSingle-DM34aWgK.js";import"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./JAddInput-YFlAniYT.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-CkL00Q0a.js";import"./index-BKs2x_To.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./useContextMenu-CSt5a1-F.js";import"./depart.api-0qTriT9h.js";import"./JDictSelectTag-CxpDdimB.js";import"./JSelectDept-wKz_Qtmc.js";import"./JPopup-BJBYqoWe.js";import"./JEllipsis-Cn7GCKHR.js";import"./JUpload-DzM-D4DX.js";import"./index-khU3p_On.js";import"./index-DPEnuI0R.js";import"./index-Cnb8BkwG.js";import"./JAreaLinkage-CSgDAlrn.js";import"./JCodeEditor-esTLnfS3.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-DclSHT47.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};
