vuepress-plugin-code-copy
Advanced tools
Comparing version
@@ -22,3 +22,4 @@ import CodeCopy from './CodeCopy.vue' | ||
backgroundColor: backgroundColor, | ||
successText: successText | ||
successText: successText, | ||
staticIcon: staticIcon | ||
} | ||
@@ -25,0 +26,0 @@ instance.options = { ...options } |
@@ -9,4 +9,6 @@ const { path } = require('@vuepress/shared-utils') | ||
backgroundColor: options.backgroundColor || '#0075b8', | ||
backgroundTransition: options.backgroundTransition || true, | ||
successText: options.successText || 'Copied!' | ||
backgroundTransition: options.backgroundTransition !== false, | ||
successText: options.successText || 'Copied!', | ||
staticIcon: options.staticIcon === true | ||
}, | ||
@@ -13,0 +15,0 @@ enhanceAppFiles: [path.resolve(__dirname, 'appFile.js')], |
{ | ||
"name": "vuepress-plugin-code-copy", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A Vuepress plugin that adds copy code buttons to all code blocks.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -37,2 +37,4 @@ # Vuepress Code Copy Plugin | ||
successText: String | ||
} | ||
] | ||
] | ||
@@ -84,1 +86,8 @@ } | ||
This sets the text that displays when a user presses the copy button. | ||
### staticIcon | ||
- Type: `Boolean` | ||
- Default: `false` | ||
Copy icon is only visible when hovering over code block or is always visible. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
43955
0.99%53
3.92%91
9.64%