Releases: uiwjs/react-code-preview-layout
v2.1.0
Documentation v2.1.0: https://raw.githack.com/uiwjs/react-code-preview-layout/c53ce81/index.html
Comparing Changes: v2.0.7...v2.1.0
npm i [email protected]
v2.0.7
Documentation v2.0.7: https://raw.githack.com/uiwjs/react-code-preview-layout/ef3f1b8/index.html
Comparing Changes: v2.0.6...v2.0.7
npm i [email protected]
v2.0.6
Documentation v2.0.6: https://raw.githack.com/uiwjs/react-code-preview-layout/7e22113/index.html
Comparing Changes: v2.0.5...v2.0.6
npm i [email protected]
v2.0.5
Documentation v2.0.5: https://raw.githack.com/uiwjs/react-code-preview-layout/1bb96b1/index.html
Comparing Changes: v2.0.4...v2.0.5
npm i [email protected]
- 🎨 style: modify code preview style. d273c60
v2.0.4
Documentation v2.0.4: https://raw.githack.com/uiwjs/react-code-preview-layout/b607a16/index.html
Comparing Changes: v2.0.3...v2.0.4
npm i [email protected]
v2.0.3
Documentation v2.0.3: https://raw.githack.com/uiwjs/react-code-preview-layout/b607a16/index.html
Comparing Changes: v2.0.2...v2.0.3
npm i [email protected]
v2.0.2
Documentation v2.0.2: https://raw.githack.com/uiwjs/react-code-preview-layout/fda0cb0/index.html
Comparing Changes: v2.0.1...v2.0.2
npm i [email protected]
- 📖 doc: Update README.md 82eccfd
v2.0.1
Documentation v2.0.1: https://raw.githack.com/uiwjs/react-code-preview-layout/51f7ca8/index.html
Comparing Changes: v2.0.0...v2.0.1
npm i [email protected]
v2.0.0
Documentation v2.0.0: https://raw.githack.com/uiwjs/react-code-preview-layout/51f7ca8/index.html
Comparing Changes: v1.0.0...v2.0.0
npm i [email protected]
- 💄 chore: update workflows config. 690d881
- 📖 doc: Update README.md 19e1487
- 🌍 website: update website/public/index.html ef67ac5
- 🎨 style:修改复制按钮层级问题 7719efc @SunLxy
- 📄 Merge branch 'main' of github.com:uiwjs/react-code-preview-layout fd0fa48 @SunLxy
- 📖 doc: Update README.md 68380b8
- 🌟 feat: add isMeta method. f1aea21
- 💄 chore: update workflows config. 9f91d17
- 💄 chore(deps): Update dependency lint-staged to v13 (#8) c79258f @renovate-bot
- 💄 chore(deps): Update dependency markdown-react-code-preview-loader to v2 (#4) a7ab8dc @renovate-bot
- 💄 chore(deps): Update dependency husky to v8 (#2) 9ab6263 @renovate-bot
- 💄 chore(deps): Update dependency @types/react-dom to v18.0.5 (#5) b2809e4 @renovate-bot
- 💄 chore(deps): Update dependency react-test-renderer to ~18.1.0 (#1) d4d6330 @renovate-bot
- 🐝 refactor: refactor code. 95c681f
- export interface CodeProps {
- /** 原始 代码块 渲染**/
- code?: React.ReactNode;
- /** 代码块字符串 **/
- copyNodes?: string;
- /* 自定义操作按钮 **/
- customButton?: React.ReactNode;
- /** 展示代码块内边距 **/
- codePadding?: number;
- /** codeSandbox参数 **/
- codeSandboxOptions?: CodeSandboxProps;
- /** codePen参数 **/
- codePenOptions?: CodePenOption & {
- /** 不需要注释的包 **/
- includeModule?: string[];
- };
- /** 标题部分 **/
- title?: React.ReactNode;
- }
- export interface CodeLayoutProps extends CodeProps {
+ interface CodeLayoutProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
className?: string;
children?: React.ReactNode;
prefixCls?: string;
- /** 只显示效果 **/
- noButton?: boolean;
/** 是否需要边框 */
bordered?: boolean;
+ /** 原始 代码块 渲染**/
+ code?: React.ReactNode;
+ text?: string;
+ /** 标题部分,也可以放置按钮 **/
+ toolbar?: React.ReactNode;
+ /** 额外内容,展示 toolbar 右侧内容 */
+ toolbarExtra?: React.ReactNode;
+ disableToolbar?: boolean;
+ disableCode?: boolean;
+ disablePreview?: boolean;
+ /** 禁用方格背景 */
+ disableCheckered?: boolean;
+ /**
+ * 是否显示复制按钮
+ * @default true
+ */
+ copied?: boolean;
}
v1.0.0
released v1.0.0