mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2026-01-01 02:52:48 +00:00
feat: 设置加搜索
This commit is contained in:
parent
b7a406db56
commit
f182754823
|
|
@ -6,7 +6,7 @@
|
|||
class="p-24 pt-0 pb-0 mb-16 mt-4"
|
||||
/>
|
||||
<div class="p-24 pt-0">
|
||||
<el-table :data="data" :max-height="tableHeight">
|
||||
<el-table :data="filterData" :max-height="tableHeight">
|
||||
<el-table-column prop="name" :label="isApplication ? '应用名称' : '知识库名称'">
|
||||
<template #default="{ row }">
|
||||
<div class="flex align-center">
|
||||
|
|
@ -77,6 +77,8 @@ const allChecked: any = ref({
|
|||
|
||||
const filterText = ref('')
|
||||
|
||||
const filterData = computed(() => props.data.filter((v) => v.name.includes(filterText.value)))
|
||||
|
||||
watch(
|
||||
() => props.data,
|
||||
(val) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue