Skip to content

Releases: uiwjs/react-code-preview-layout

v2.1.0

06 Mar 15:42
Compare
Choose a tag to compare

npm version

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 react-code-preview-layout@2.1.0
  • 💄 chore: update workflows config. 210c331
  • 🌟 feat: add codeProps props. d41d52e

v2.0.7

10 Oct 04:04
Compare
Choose a tag to compare

npm version

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 react-code-preview-layout@2.0.7
  • 🐞 fix: Fix disableToolbar props issue. 3bd3909
  • 💄 chore: update workflows config. ea3d2bd
  • 💄 chore: update devDependencies. b8924b7
  • 💄 chore: update workflows config. 6c89db5

v2.0.6

28 Jun 10:11
Compare
Choose a tag to compare

npm version

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 react-code-preview-layout@2.0.6
  • 🌟 feat: add background props. 96c1582
  • 💄 chore: update workflow config. 3d4a283

v2.0.5

12 Jun 10:58
Compare
Choose a tag to compare

npm version

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 react-code-preview-layout@2.0.5
  • 🎨 style: modify code preview style. d273c60

v2.0.4

09 Jun 11:34
Compare
Choose a tag to compare

npm version

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 react-code-preview-layout@2.0.4

v2.0.3

09 Jun 06:39
Compare
Choose a tag to compare

npm version

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 react-code-preview-layout@2.0.3
  • 💄 chore: update lerna.json 4f72895
  • 🌍 website: update example preview. c6bbc31
  • 💄 chore: modify peerDependencies. 0836ec1

v2.0.2

09 Jun 01:19
Compare
Choose a tag to compare

npm version

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 react-code-preview-layout@2.0.2
  • 📖 doc: Update README.md 82eccfd

v2.0.1

09 Jun 01:13
Compare
Choose a tag to compare

npm version

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 react-code-preview-layout@2.0.1
  • 💄 chore: update workflows config. 257126a
  • 💄 chore: update homepage field in package.json a799c36

v2.0.0

09 Jun 01:05
Compare
Choose a tag to compare

npm version

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 react-code-preview-layout@2.0.0
- 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

10 May 08:51
Compare
Choose a tag to compare
released v1.0.0