forked from github/dataease
commit
6a6bca4d68
@ -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'
|
||||
|
@ -47,7 +47,7 @@
|
||||
}})</span
|
||||
>
|
||||
<span v-show="state.templateFilterText">
|
||||
<span style="color: #3370ff">{{ state.currentTemplateLabel }} </span>
|
||||
<span style="color: #3370ff">{{ state.templateFilterText }} </span>
|
||||
<span>的搜索结果 {{ currentTemplateShowListComputed.length }} 个</span>
|
||||
</span>
|
||||
</div>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user