mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-11-10 02:57:12 +08:00
refactor: eslint src --fix
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user