zhengyiming
11 小时以前 97f29024ce18babeb4b635c5d73f907ac493976e
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>