refactor: eslint src --fix

This commit is contained in:
2024-04-15 20:35:37 +08:00
parent c75c7092bd
commit 7ecfbb9c15
38 changed files with 187 additions and 227 deletions

View File

@@ -1,15 +1,15 @@
<template>
<div class="content">
<icon-copy :size="16" @click="copyText"/>
<icon-copy :size="16" @click="copyText" />
</div>
</template>
<script setup lang="ts">
import { Message } from "@arco-design/web-vue"
interface Props{
value:any
import { Message } from '@arco-design/web-vue'
interface Props {
value: any
}
const props = withDefaults(defineProps<Props>(), {})
const copyText=()=>{
const copyText = () => {
const textarea = document.createElement('textarea')
textarea.value = props.value
document.body.appendChild(textarea)
@@ -20,9 +20,9 @@ const copyText=()=>{
}
</script>
<style scoped lang="scss">
.content{
.content {
display: inline-block;
margin-left: 5px;
cursor: pointer;
}
</style>
</style>