-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yaochuxia
committed
Aug 15, 2021
1 parent
e3d8b78
commit 73104c5
Showing
3 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import Markdown, { importAll } from '../../../component/Markdown'; | ||
|
||
export default class Page extends Markdown { | ||
path="/packages/core/src/NoticeBar/README.md" | ||
getMarkdown = async () => { | ||
const md = await import('@uiw/react-native/lib/NoticeBar/README.md'); | ||
// 支持 markdown 中,相对于当前 index.tsx 相对路径引入图片资源 | ||
importAll((require as any).context('./', true, /\.(png|gif|jpg|svg)$/), this.imageFiles); | ||
return md.default || md; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters