wupengfei
16 小时以前 08bcae11d27cf2b5f0f23d413192c5367cb05b3d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<template>
  <Tooltip v-if="isOne" :content="$t('quick.copy')">
    <Button long @click="clone" icon="ios-copy" type="text"></Button>
  </Tooltip>
</template>
 
<script setup name="Clone">
import useSelect from '@/hooks/select';
import { debounce } from 'lodash-es';
 
const { canvasEditor, isOne } = useSelect();
const clone = debounce(function () {
  canvasEditor.clone();
}, 300);
</script>