mirror of
https://gitee.com/yudaocode/yudao-ui-admin-vben.git
synced 2025-12-30 10:32:25 +00:00
feat(Table-> CustomerCell): helpMessage支持传递 tsx 和 h函数的数据
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script lang="tsx">
|
||||
import type { CSSProperties } from 'vue'
|
||||
import type { CSSProperties, PropType, VNodeChild } from 'vue'
|
||||
import { computed, defineComponent, unref } from 'vue'
|
||||
import { Tooltip } from 'ant-design-vue'
|
||||
import { InfoCircleOutlined } from '@ant-design/icons-vue'
|
||||
@@ -35,7 +35,9 @@ const props = {
|
||||
/**
|
||||
* Help text list
|
||||
*/
|
||||
text: { type: [Array, String] as PropType<string[] | string> },
|
||||
text: {
|
||||
type: [Array, String, Object] as PropType<string[] | string | VNodeChild | JSX.Element>,
|
||||
},
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
@@ -65,7 +67,7 @@ export default defineComponent({
|
||||
)
|
||||
})
|
||||
}
|
||||
return null
|
||||
return <div>{textList}</div>
|
||||
}
|
||||
|
||||
return () => {
|
||||
|
||||
@@ -438,7 +438,7 @@ export interface BasicColumn extends ColumnProps<Recordable> {
|
||||
defaultHidden?: boolean
|
||||
|
||||
// Help text for table column header
|
||||
helpMessage?: string | string[]
|
||||
helpMessage?: string | string[] | VNodeChild | JSX.Element
|
||||
|
||||
format?: CellFormat
|
||||
|
||||
|
||||
Reference in New Issue
Block a user