import{d as l,e as u,w as f,n as g,U as h,a2 as b,ad as k,ag as _}from"./vue-vendor-CxLCUzY4.js";import{M as w}from"./index-BZa-EKMZ.js";import{F as p,_ as C}from"./index-CLZzJyTP.js";import{a5 as M}from"./antd-vue-vendor-CahNzUUa.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";const v=l({name:"JMarkdownEditor",inheritAttrs:!1,components:{MarkDown:w},props:{value:p.string.def(""),disabled:p.bool.def(!1)},emits:["change","update:value"],setup(o,{emit:r,attrs:s}){let a=null,n=null;const i=u(()=>Object.assign({},o,s)),e=M.useInjectFormItemContext();function d(t){a=t,n=a.getVditor(),f(()=>o.disabled,c=>c?n.disabled():n.enable(),{immediate:!0})}function m(t){r("change",t),r("update:value",t),g(()=>{e==null||e.onFieldChange()})}return{bindProps:i,onChange:m,onGetVditor:d}}});function F(o,r,s,a,n,i){const e=h("MarkDown");return b(),k(e,_(o.bindProps,{onChange:o.onChange,onGet:o.onGetVditor}),null,16,["onChange","onGet"])}const O=C(v,[["render",F]]);export{O as default};
