@finema/core 3.16.4 → 3.16.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.
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -7,11 +7,11 @@ type __VLS_Props = {
|
|
|
7
7
|
target?: string | ((row: any) => string | undefined);
|
|
8
8
|
preserveQuery?: boolean;
|
|
9
9
|
};
|
|
10
|
-
declare var __VLS_25: {}, __VLS_32: {}, __VLS_34: {}, __VLS_47: any, __VLS_48: any,
|
|
10
|
+
declare var __VLS_25: {}, __VLS_32: {}, __VLS_34: {}, __VLS_47: any, __VLS_48: any, __VLS_67: any, __VLS_68: any;
|
|
11
11
|
type __VLS_Slots = {} & {
|
|
12
12
|
[K in NonNullable<typeof __VLS_47>]?: (props: typeof __VLS_48) => any;
|
|
13
13
|
} & {
|
|
14
|
-
[K in NonNullable<typeof
|
|
14
|
+
[K in NonNullable<typeof __VLS_67>]?: (props: typeof __VLS_68) => any;
|
|
15
15
|
} & {
|
|
16
16
|
loading?: (props: typeof __VLS_25) => any;
|
|
17
17
|
} & {
|
|
@@ -79,16 +79,25 @@
|
|
|
79
79
|
v-bind="slotProps"
|
|
80
80
|
>
|
|
81
81
|
<component
|
|
82
|
-
:is="
|
|
83
|
-
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
82
|
+
:is="column.component"
|
|
83
|
+
v-if="column.type === COLUMN_TYPES.COMPONENT && column.component"
|
|
84
|
+
:value="transformValue(column, slotProps.row)"
|
|
85
|
+
:column="column"
|
|
86
|
+
:row="slotProps.row"
|
|
87
|
+
/>
|
|
88
|
+
<component
|
|
89
|
+
:is="columnTypeComponents[column.type]"
|
|
90
|
+
v-else-if="
|
|
91
|
+
column.type !== COLUMN_TYPES.COMPONENT && columnTypeComponents[column.type]
|
|
87
92
|
"
|
|
88
93
|
:value="transformValue(column, slotProps.row)"
|
|
89
94
|
:column="column"
|
|
90
95
|
:row="slotProps.row"
|
|
91
96
|
/>
|
|
97
|
+
<VNodeRenderer
|
|
98
|
+
v-else-if="typeof column.cell === 'function'"
|
|
99
|
+
:vnode="transformValue(column, slotProps.row)"
|
|
100
|
+
/>
|
|
92
101
|
<template v-else>
|
|
93
102
|
{{ transformValue(column, slotProps.row) }}
|
|
94
103
|
</template>
|
|
@@ -121,7 +130,7 @@
|
|
|
121
130
|
</template>
|
|
122
131
|
|
|
123
132
|
<script setup>
|
|
124
|
-
import { computed, ref, useSlots } from "vue";
|
|
133
|
+
import { computed, defineComponent, ref, useSlots } from "vue";
|
|
125
134
|
import {
|
|
126
135
|
COLUMN_TYPES
|
|
127
136
|
} from "#core/components/Table/types";
|
|
@@ -149,6 +158,17 @@ const props = defineProps({
|
|
|
149
158
|
target: { type: [String, Function], required: false },
|
|
150
159
|
preserveQuery: { type: Boolean, required: false }
|
|
151
160
|
});
|
|
161
|
+
const VNodeRenderer = defineComponent({
|
|
162
|
+
props: {
|
|
163
|
+
vnode: {
|
|
164
|
+
type: null,
|
|
165
|
+
required: true
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
setup(props2) {
|
|
169
|
+
return () => props2.vnode;
|
|
170
|
+
}
|
|
171
|
+
});
|
|
152
172
|
const route = useRoute();
|
|
153
173
|
const slots = useSlots();
|
|
154
174
|
const forwardedSlotNames = computed(
|
|
@@ -7,11 +7,11 @@ type __VLS_Props = {
|
|
|
7
7
|
target?: string | ((row: any) => string | undefined);
|
|
8
8
|
preserveQuery?: boolean;
|
|
9
9
|
};
|
|
10
|
-
declare var __VLS_25: {}, __VLS_32: {}, __VLS_34: {}, __VLS_47: any, __VLS_48: any,
|
|
10
|
+
declare var __VLS_25: {}, __VLS_32: {}, __VLS_34: {}, __VLS_47: any, __VLS_48: any, __VLS_67: any, __VLS_68: any;
|
|
11
11
|
type __VLS_Slots = {} & {
|
|
12
12
|
[K in NonNullable<typeof __VLS_47>]?: (props: typeof __VLS_48) => any;
|
|
13
13
|
} & {
|
|
14
|
-
[K in NonNullable<typeof
|
|
14
|
+
[K in NonNullable<typeof __VLS_67>]?: (props: typeof __VLS_68) => any;
|
|
15
15
|
} & {
|
|
16
16
|
loading?: (props: typeof __VLS_25) => any;
|
|
17
17
|
} & {
|