File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
packages/devui-vue/docs/.vitepress/demo Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change 5353import { useRoute , useData } from ' vitepress' ;
5454import { throttle } from ' lodash' ;
5555import copy from ' clipboard-copy' ;
56- // import clipboardCopy from
5756import {
5857 ref ,
5958 computed ,
@@ -63,18 +62,6 @@ import {
6362 nextTick ,
6463 defineAsyncComponent
6564} from ' vue' ;
66- const clipboardCopy = async (text ) => {
67- try {
68- await copyClipboardApi (text)
69- } catch (err) {
70- // ...Otherwise, use document.execCommand() fallback
71- try {
72- await copyExecCommand (text)
73- } catch (err2) {
74- throw err2 || err || makeError ()
75- }
76- }
77- }
7865export default {
7966 name: ' Demo' ,
8067 props: {
@@ -162,7 +149,6 @@ export default {
162149 }
163150
164151 const onCopy = () => {
165- // clipboardCopy(props.sourceCode)
166152 copy (props .sourceCode )
167153 isShowTip .value = true
168154 setTimeout (() => {
You can’t perform that action at this time.
0 commit comments