Skip to content

Commit

Permalink
Deploying to docs from @ 178f75e 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
imzbf committed Sep 4, 2023
1 parent 178f75e commit b89c48f
Show file tree
Hide file tree
Showing 22 changed files with 198 additions and 86 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import{u as h,r as e,j as i,I as a}from"./index-8c501523.js";const s=`## About md-editor-rt
import{a as h,r as e,j as i,I as a}from"./index-c31d12ca.js";const s=`## About md-editor-rt
![](https://img.shields.io/github/stars/imzbf/md-editor-rt?style=social) ![](https://img.shields.io/npm/dm/md-editor-rt) ![](https://img.shields.io/bundlephobia/min/md-editor-rt) ![](https://img.shields.io/github/license/imzbf/md-editor-rt) ![](https://img.shields.io/github/package-json/v/imzbf/md-editor-rt) ![](https://img.shields.io/badge/ssr-%3E1.6.0-brightgreen)
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import{u as l,r as t,j as n,I as c,d as p,e as u}from"./index-8c501523.js";const r=`## 😁 Basic Usage
import{a as l,r as t,j as n,I as c,d as p,f as u}from"./index-c31d12ca.js";const r=`## 😁 Basic Usage
It has been developing iteratively, so update the latest version please. Publish logs: [releases](https://github.com/imzbf/md-editor-rt/releases)
Expand Down
58 changes: 57 additions & 1 deletion docs/assets/index-d30f1b3c.js → docs/assets/index-595a96bc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import{u as c,r as t,j as n,I as m,d as u}from"./index-8c501523.js";const o=`> Use it online: [Go](https://codesandbox.io/s/elated-khorana-65jmr)
import{a as c,r as t,j as n,I as m,d as u}from"./index-c31d12ca.js";const o=`> Use it online: [Go](https://codesandbox.io/s/elated-khorana-65jmr)
## 🔖 MdPreview Props
Expand Down Expand Up @@ -849,6 +849,34 @@ export default () => {
---
### 🔖 onDrop
- **type**: \`(event: DragEvent) => void\`
The event occurs when a selection is being dragged.
\`\`\`jsx
import { useState } from 'react';
import { MdEditor } from 'md-editor-rt';
import 'md-editor-rt/lib/style.css';
export default () => {
const [text, setText] = useState('');
return (
<MdEditor
modelValue={text}
onChange={setText}
onDrop={(e) => {
e.preventDefault();
console.log(e.dataTransfer?.files[0]);
}}
/>
);
};
\`\`\`
---
## 🤱🏼 Expose
After 2.5.0, Editor exposes several methods on the instance, used to get or change the internal status of the editor.
Expand Down Expand Up @@ -2647,6 +2675,34 @@ export default () => {
---
### 🔖 onDrop
- **类型**:\`(event: DragEvent) => void\`
拖放内容事件。
\`\`\`jsx
import { useState } from 'react';
import { MdEditor } from 'md-editor-rt';
import 'md-editor-rt/lib/style.css';
export default () => {
const [text, setText] = useState('');
return (
<MdEditor
modelValue={text}
onChange={setText}
onDrop={(e) => {
e.preventDefault();
console.log(e.dataTransfer?.files[0]);
}}
/>
);
};
\`\`\`
---
## 🤱🏼 实例暴露
2.5.0 版本之后,编辑器暴露了若干方法在组件实例上,用来快捷监听编辑器内部状态或对调整内部状态。
Expand Down
Loading

0 comments on commit b89c48f

Please sign in to comment.