refactor(components): [transfer] remove useless code (#10971)

This commit is contained in:
Hefty
2022-12-13 19:39:01 +08:00
committed by GitHub
parent 0ad451f25e
commit db60c0578b
2 changed files with 1 additions and 5 deletions

View File

@@ -9,7 +9,6 @@ export interface TransferPanelState {
checked: TransferKey[]
allChecked: boolean
query: string
inputHover: boolean
checkChangeByUser: boolean
}

View File

@@ -22,8 +22,6 @@
:prefix-icon="Search"
clearable
:validate-event="false"
@mouseenter="inputHover = true"
@mouseleave="inputHover = false"
/>
<el-checkbox-group
v-show="!hasNoMatch && !isEmpty(data)"
@@ -82,7 +80,6 @@ const panelState = reactive<TransferPanelState>({
checked: [],
allChecked: false,
query: '',
inputHover: false,
checkChangeByUser: true,
})
@@ -101,7 +98,7 @@ const hasNoMatch = computed(
const hasFooter = computed(() => !isEmpty(slots.default!()[0].children))
const { checked, allChecked, query, inputHover } = toRefs(panelState)
const { checked, allChecked, query } = toRefs(panelState)
defineExpose({
/** @description filter keyword */