mirror of
https://gitee.com/wonderful-code/buildadmin
synced 2024-11-21 22:55:36 +00:00
refactor(baInput):优化 FormItem 的 props.tip
This commit is contained in:
parent
a85d7b727e
commit
7db6514a08
@ -45,6 +45,7 @@ export default defineComponent({
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
tip: [String, Object],
|
||||
...formItemProps,
|
||||
},
|
||||
emits: ['update:modelValue'],
|
||||
@ -91,7 +92,7 @@ export default defineComponent({
|
||||
|
||||
if (attrs.tip) {
|
||||
const createTipNode = () => {
|
||||
const tipProps = typeof attrs.tip === 'string' ? { content: attrs.tip } : attrs.tip
|
||||
const tipProps = typeof attrs.tip === 'string' ? { content: attrs.tip, placement: 'top' } : attrs.tip
|
||||
return createVNode(resolveComponent('el-tooltip'), tipProps, {
|
||||
default: () => [
|
||||
createVNode('i', {
|
||||
|
Loading…
Reference in New Issue
Block a user