import{M as C,a as w}from"./index.a0c5a7c7.js";import{P as h}from"./index.566277e5.js";import{aP as g,a as D,r as s,aQ as a,o as V,aR as M,p as n,i as m,j as r,k as B,q as c}from"./index.0d073eaa.js";import{C as E}from"./index.abdcab42.js";import"./index.78efd931.js";/* empty css              */import"./index.c05f9254.js";import"./useWindowSizeFn.ef20ece8.js";import"./FullscreenOutlined.401a7bcd.js";import"./index.e9a84cba.js";import"./index.0972fd96.js";import"./useSize.bb4e5ce5.js";import"./eagerComputed.156e81ff.js";import"./useContentViewHeight.01b9d1c6.js";import"./ArrowLeftOutlined.90d2e05e.js";import"./index.8680e4c4.js";import"./transButton.8c1b1a4f.js";import"./index.aa6b7013.js";import"./index.1d29734e.js";import"./Col.a2eadc78.js";import"./useFlexGapSupport.474c31b7.js";import"./useRefs.e81831e2.js";import"./PlusOutlined.64d8e001.js";const F=D({components:{MarkDown:C,PageWrapper:h,MarkdownViewer:w,ACard:E},setup(){const e=s(null),o=s(`
# title

# content
`);function i(){const t=B(e);if(!t)return;t.getVditor().setTheme("dark")}function p(t){o.value=t}function l(){o.value=""}return{value:o,toggleTheme:i,markDownRef:e,handleChange:p,clearValue:l}}}),A=c(" \u9ED1\u6697\u4E3B\u9898 "),P=c(" \u6E05\u7A7A\u5185\u5BB9 "),b={class:"mt-2"};function R(e,o,i,p,l,t){const u=a("a-button"),d=a("MarkDown"),f=a("MarkdownViewer"),_=a("a-card"),k=a("PageWrapper");return V(),M(k,{title:"MarkDown\u7EC4\u4EF6\u793A\u4F8B"},{default:n(()=>[m("div",null,[r(u,{onClick:e.toggleTheme,class:"mb-2",type:"primary"},{default:n(()=>[A]),_:1},8,["onClick"]),r(u,{onClick:e.clearValue,class:"mb-2",type:"default"},{default:n(()=>[P]),_:1},8,["onClick"]),r(d,{value:e.value,"onUpdate:value":o[0]||(o[0]=v=>e.value=v),onChange:e.handleChange,ref:"markDownRef",placeholder:"\u8FD9\u662F\u5360\u4F4D\u6587\u672C"},null,8,["value","onChange"])]),m("div",b,[r(_,{title:"Markdown Viewer \u7EC4\u4EF6\u6F14\u793A"},{default:n(()=>[r(f,{value:e.value},null,8,["value"])]),_:1})])]),_:1})}var oe=g(F,[["render",R]]);export{oe as default};
