forked from github/dataease
commit
6a6bca4d68
@ -50,6 +50,7 @@ document.querySelector('head').appendChild = <T extends Node>(node: T) => {
|
|||||||
return newNode
|
return newNode
|
||||||
}
|
}
|
||||||
import { App, createApp } from 'vue'
|
import { App, createApp } from 'vue'
|
||||||
|
import '../../assets/font/index.css'
|
||||||
import '@/style/index.less'
|
import '@/style/index.less'
|
||||||
import '@/plugins/svg-icon'
|
import '@/plugins/svg-icon'
|
||||||
import 'normalize.css/normalize.css'
|
import 'normalize.css/normalize.css'
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
}})</span
|
}})</span
|
||||||
>
|
>
|
||||||
<span v-show="state.templateFilterText">
|
<span v-show="state.templateFilterText">
|
||||||
<span style="color: #3370ff">{{ state.currentTemplateLabel }} </span>
|
<span style="color: #3370ff">{{ state.templateFilterText }} </span>
|
||||||
<span>的搜索结果 {{ currentTemplateShowListComputed.length }} 个</span>
|
<span>的搜索结果 {{ currentTemplateShowListComputed.length }} 个</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -45,15 +45,15 @@ onBeforeMount(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const remove = (index: number) => {
|
const remove = (index: number) => {
|
||||||
if (isDisable(index)) return
|
if (isDisable()) return
|
||||||
// 移除整行输入控件及内容
|
// 移除整行输入控件及内容
|
||||||
items.value.splice(index, 1)
|
items.value.splice(index, 1)
|
||||||
}
|
}
|
||||||
const change = () => {
|
const change = () => {
|
||||||
items.value.push(new KeyValue({ enable: true }))
|
items.value.push(new KeyValue({ enable: true }))
|
||||||
}
|
}
|
||||||
const isDisable = (index: number) => {
|
const isDisable = () => {
|
||||||
return items.value.length - 1 === index
|
return items.value.length === 1
|
||||||
}
|
}
|
||||||
const querySearch = (queryString, cb) => {
|
const querySearch = (queryString, cb) => {
|
||||||
const results = queryString
|
const results = queryString
|
||||||
@ -128,7 +128,7 @@ const createFilter = (queryString: string) => {
|
|||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="1">
|
<el-col :span="1">
|
||||||
<el-button text :disabled="isDisable(index)" @click="remove(index)">
|
<el-button text :disabled="isDisable()" @click="remove(index)">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<Icon name="icon_delete-trash_outlined"></Icon>
|
<Icon name="icon_delete-trash_outlined"></Icon>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user