Open Ctepan opened 1 year ago
Updating to 0.13.9+ version causes an error with InstanceType
. Install vue-component-type-helpers
and use ComponentExposed
instead:
import type { ComponentExposed } from 'vue-component-type-helpers';
const table = ref<ComponentExposed<typeof STable> | null>(null);
Formatter property and similar are left to be implemented.
https://blog.vuejs.org/posts/vue-3-3#generic-components
For example, now
STable
fordata
prop has typeRecord<string, unknown>[]
, so row data passed with emit or slot-scope now has this type, instead of origin type of provided data.