chore: 优化 ESLint 配置并更正问题代码(eslint src --fix)

This commit is contained in:
2024-05-08 22:47:37 +08:00
parent 8f63576512
commit 5d9fedc354
22 changed files with 37 additions and 27 deletions

View File

@@ -4,9 +4,9 @@
<template v-for="(item, index) in columns" :key="item.field">
<a-col
v-if="!isHide(item.hide)"
v-show="index <= (options.fold?.index || 0) || (index >= (options.fold?.index || 0) && !collapsed)"
:span="item.span || 12"
v-bind="item.col || item.span ? item.col : options.col"
v-show="index <= (options.fold?.index || 0) || (index >= (options.fold?.index || 0) && !collapsed)"
>
<a-form-item
v-bind="item.item"
@@ -148,7 +148,7 @@
</a-form-item>
</a-col>
</template>
<a-col :span="options.btns?.span || 12" v-bind="options.btns?.col" v-if="!options.btns?.hide">
<a-col v-if="!options.btns?.hide" :span="options.btns?.span || 12" v-bind="options.btns?.col">
<a-space wrap>
<slot name="suffix">
<a-button type="primary" @click="emit('search')">

View File

@@ -43,7 +43,7 @@
<section class="icon-list">
<a-row wrap :gutter="4">
<a-col :span="isGridView ? 4 : 8" v-for="item of currentPageIconList" :key="item">
<a-col v-for="item of currentPageIconList" :key="item" :span="isGridView ? 4 : 8">
<div class="icon-item" :class="{ active: modelValue === item }" @click="handleSelectedIcon(item)">
<GiSvgIcon :name="item" :size="20"></GiSvgIcon>
<div class="gi_line_1 icon-name">{{ item }}</div>

View File

@@ -1,5 +1,5 @@
<template>
<div class="gi-table" :class="{ 'gi-table--fullscreen': isFullscreen }" ref="giTableRef">
<div ref="giTableRef" class="gi-table" :class="{ 'gi-table--fullscreen': isFullscreen }">
<a-row justify="space-between" align="center" class="gi-table__toolbar">
<a-space wrap class="gi-table__toolbar-left" :size="[8, 8]">
<slot name="custom-left"></slot>

View File

@@ -1,6 +1,6 @@
<template>
<div class="json_pretty_container">
<vue-json-pretty :path="'res'" :data="JSONObject" :show-length="true" />
<VueJsonPretty :path="'res'" :data="JSONObject" :show-length="true" />
<icon-copy class="copy_icon" @click="onCopy(JSONObject)" />
</div>
</template>

View File

@@ -3,6 +3,7 @@
<icon-copy :size="16" @click="copyText" />
</div>
</template>
<script setup lang="ts">
import { Message } from '@arco-design/web-vue'
interface Props {
@@ -19,6 +20,7 @@ const copyText = () => {
Message.success('复制成功')
}
</script>
<style scoped lang="scss">
.content {
display: inline-block;