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-DmeKrdZg.js";import{F as p,_ as C}from"./index-Cy4uayzW.js";import{a5 as M}from"./antd-vue-vendor-CahNzUUa.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";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};
