Merge pull request #7451 from dataease/pr@dev-v2_dzz

Pr@dev v2 dzz
This commit is contained in:
dataeaseShu 2023-12-28 17:42:45 +08:00 committed by GitHub
commit 6a6bca4d68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -50,6 +50,7 @@ document.querySelector('head').appendChild = <T extends Node>(node: T) => {
return newNode
}
import { App, createApp } from 'vue'
import '../../assets/font/index.css'
import '@/style/index.less'
import '@/plugins/svg-icon'
import 'normalize.css/normalize.css'

View File

@ -47,7 +47,7 @@
}})</span
>
<span v-show="state.templateFilterText">
<span style="color: #3370ff">{{ state.currentTemplateLabel }}&nbsp;&nbsp;</span>
<span style="color: #3370ff">{{ state.templateFilterText }}&nbsp;&nbsp;</span>
<span>的搜索结果&nbsp;{{ currentTemplateShowListComputed.length }}&nbsp;</span>
</span>
</div>

View File

@ -45,15 +45,15 @@ onBeforeMount(() => {
})
const remove = (index: number) => {
if (isDisable(index)) return
if (isDisable()) return
//
items.value.splice(index, 1)
}
const change = () => {
items.value.push(new KeyValue({ enable: true }))
}
const isDisable = (index: number) => {
return items.value.length - 1 === index
const isDisable = () => {
return items.value.length === 1
}
const querySearch = (queryString, cb) => {
const results = queryString
@ -128,7 +128,7 @@ const createFilter = (queryString: string) => {
</el-col>
<el-col :span="1">
<el-button text :disabled="isDisable(index)" @click="remove(index)">
<el-button text :disabled="isDisable()" @click="remove(index)">
<template #icon>
<Icon name="icon_delete-trash_outlined"></Icon>
</template>