feat(Table-> CustomerCell): helpMessage支持传递 tsx 和 h函数的数据
This commit is contained in:
parent
f91d777e4f
commit
c373ffd3bf
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="tsx">
|
<script lang="tsx">
|
||||||
import type { CSSProperties, PropType } from 'vue';
|
import type { CSSProperties, PropType, VNodeChild } from 'vue';
|
||||||
import { defineComponent, computed, unref } from 'vue';
|
import { defineComponent, computed, unref } from 'vue';
|
||||||
import { Tooltip } from 'ant-design-vue';
|
import { Tooltip } from 'ant-design-vue';
|
||||||
import { InfoCircleOutlined } from '@ant-design/icons-vue';
|
import { InfoCircleOutlined } from '@ant-design/icons-vue';
|
||||||
|
|
@ -36,7 +36,9 @@
|
||||||
/**
|
/**
|
||||||
* Help text list
|
* 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({
|
export default defineComponent({
|
||||||
|
|
@ -71,7 +73,7 @@
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return null;
|
return <div>{textList}</div>;
|
||||||
}
|
}
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
|
|
|
||||||
|
|
@ -440,7 +440,7 @@ export interface BasicColumn extends ColumnProps<Recordable> {
|
||||||
defaultHidden?: boolean;
|
defaultHidden?: boolean;
|
||||||
|
|
||||||
// Help text for table column header
|
// Help text for table column header
|
||||||
helpMessage?: string | string[];
|
helpMessage?: string | string[] | VNodeChild | JSX.Element;
|
||||||
|
|
||||||
format?: CellFormat;
|
format?: CellFormat;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue