mirror of
https://gitee.com/wonderful-code/buildadmin
synced 2024-11-22 15:24:09 +00:00
perf(baInput):远程下拉信息提示框优化
This commit is contained in:
parent
c0852ed583
commit
84e145dba0
@ -23,7 +23,7 @@
|
||||
:value="item[state.primaryKey].toString()"
|
||||
:key="item[state.primaryKey]"
|
||||
>
|
||||
<el-tooltip placement="right" effect="light" v-if="Object.keys(tooltipParams).length!==0">
|
||||
<el-tooltip placement="right" effect="light" v-if="!isEmpty(tooltipParams)">
|
||||
<template #content>
|
||||
<p v-for="(tooltipParam, key) in tooltipParams" :key="key">{{ key }}: {{ item[tooltipParam] }}</p>
|
||||
</template>
|
||||
@ -47,6 +47,7 @@ import { reactive, watch, onMounted, ref, nextTick } from 'vue'
|
||||
import { getSelectData } from '/@/api/common'
|
||||
import { uuid } from '/@/utils/random'
|
||||
import type { ElSelect } from 'element-plus'
|
||||
import { isEmpty } from 'lodash-es'
|
||||
|
||||
const selectRef = ref<InstanceType<typeof ElSelect> | undefined>()
|
||||
type valType = string | number | string[] | number[]
|
||||
|
@ -118,6 +118,7 @@ export interface InputAttr {
|
||||
pk?: string
|
||||
field?: string
|
||||
'remote-url'?: string
|
||||
'tooltip-params'?: anyObj
|
||||
// 图标选择器属性
|
||||
'show-icon-name'?: boolean
|
||||
placement?: string
|
||||
|
Loading…
Reference in New Issue
Block a user