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