Skip to content

Commit 7b312fc

Browse files
committed
doc: Update README.md
1 parent 8be8c48 commit 7b312fc

File tree

2 files changed

+38
-38
lines changed

2 files changed

+38
-38
lines changed

core/README-zh.md

+18-19
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ mdObj.codeBlock // => 组件源码索引对象,从 markdown 索引到的示
8686
codeBlock: {
8787
17: 'import React from ...',
8888
77: 'import React from ...',
89-
base23: 'import React from ...'
89+
demo12: 'import React from ...'
9090
},
91-
components: { 17: ƒ, 77: ƒ, base23: ƒ },
92-
languages: { 17: 'jsx', 77: 'jsx', base23: 'jsx'},
91+
components: { 17: ƒ, 77: ƒ, demo12: ƒ },
92+
languages: { 17: 'jsx', 77: 'jsx', demo12: 'jsx'},
9393
source: "# Alert 确认对话框...."
9494
}
9595
```
@@ -115,25 +115,24 @@ export type CodeBlockData = {
115115
2. `mdx:preview` 控制是否进行进行示例索引,通过对应所在行号,获取需要的示例对象。
116116
3. `mdx:preview:demo12` 通过 `demo12` 唯一标识,准确获取索引的 `示例代码``示例组件对象`
117117

118-
```markdown
119-
\```tsx mdx:preview
120-
import React from "react"
121-
const Demo = ()=>{
122-
return <div>测试</div>
123-
}
118+
```tsx mdx:preview
119+
import React from "react"
120+
const Demo = ()=>{
121+
return <div>测试</div>
122+
}
124123

125-
export default Demo
126-
\```
124+
export default Demo
125+
```
127126

128-
\```tsx mdx:preview:demo12
129-
import React from "react"
130-
const Demo = ()=>{
131-
return <div>测试</div>
132-
}
133127

134-
export default Demo
135-
\```
136-
```
128+
```tsx mdx:preview:demo12
129+
import React from "react"
130+
const Demo = ()=>{
131+
return <div>测试</div>
132+
}
133+
134+
export default Demo
135+
```
137136

138137
## 开发
139138

core/README.md

+20-19
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ mdObj.codeBlock // => The component source code index object, the sample sour
8686
codeBlock: {
8787
17: 'import React from ...',
8888
77: 'import React from ...',
89-
base23: 'import React from ...'
89+
demo12: 'import React from ...'
9090
},
91-
components: { 17: ƒ, 77: ƒ, base23: ƒ },
92-
languages: { 17: 'jsx', 77: 'jsx', base23: 'jsx'},
91+
components: { 17: ƒ, 77: ƒ, demo12: ƒ },
92+
languages: { 17: 'jsx', 77: 'jsx', demo12: 'jsx'},
9393
source: "# Alert 确认对话框...."
9494
}
9595
```
@@ -115,25 +115,26 @@ Note: You need to add a special `meta` identifier to the code block example, and
115115
2. `mdx:preview` Controls whether to perform example indexing, and obtain the required example object through the corresponding line number.
116116
3. `mdx:preview:demo12` Uniquely identified by `demo12`, accurately obtain the `example code` or `example component object` of the index.
117117

118-
```markdown
119-
\```tsx mdx:preview
120-
import React from "react"
121-
const Demo = ()=>{
122-
return <div>测试</div>
123-
}
124118

125-
export default Demo
126-
\```
119+
```tsx mdx:preview
120+
import React from "react"
121+
const Demo = ()=>{
122+
return <div>测试</div>
123+
}
127124

128-
\```tsx mdx:preview:demo12
129-
import React from "react"
130-
const Demo = ()=>{
131-
return <div>测试</div>
132-
}
125+
export default Demo
126+
```
127+
128+
129+
```tsx mdx:preview:demo12
130+
import React from "react"
131+
const Demo = ()=>{
132+
return <div>测试</div>
133+
}
134+
135+
export default Demo
136+
```
133137

134-
export default Demo
135-
\```
136-
```
137138

138139
## Development
139140

0 commit comments

Comments
 (0)