@8wave/ai-elements 0.112.0-beta.3 → 0.112.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
1
|
+
import { Ref, VNode } from 'vue';
|
|
2
2
|
export type TableColumnRecord<T = Record<string, unknown>> = {
|
|
3
3
|
name: string;
|
|
4
4
|
field?: string;
|
|
@@ -8,7 +8,12 @@ export type TableColumnRecord<T = Record<string, unknown>> = {
|
|
|
8
8
|
classTh?: string;
|
|
9
9
|
classTd?: string;
|
|
10
10
|
wrapperClass?: string;
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* The cell content, rendered through `<component :is>`: a bare string
|
|
13
|
+
* would be read as a tag name, so return a vnode (`h('span', text)`), or
|
|
14
|
+
* `null` or `undefined` for an empty cell.
|
|
15
|
+
*/
|
|
16
|
+
render?: (row: T, index?: number) => VNode | null | undefined;
|
|
12
17
|
hidden?: boolean | Ref<boolean | undefined>;
|
|
13
18
|
};
|
|
14
19
|
export type TableColumn<T = Record<string, unknown>> = TableColumnRecord<T> | string;
|