1234567891011121314151617181920 |
- import Color from "./color.vue";
- export const colorType = "color";
- export const propertyComponents = {
- [colorType]: Color,
- };
- export type PropertyType = keyof typeof propertyComponents;
- export type PropertyComponents<T extends PropertyType> =
- (typeof propertyComponents)[T];
- export type PropertyValue<T extends PropertyType> = InstanceType<PropertyComponents<T>>['$props']['value']
- export type PropertyDescribes = Record<string, { type: PropertyType; label: string }>
- export type PropertysData<T extends PropertyDescribes = PropertyDescribes> = {
- [K in keyof T]: PropertyValue<T[K]['type']>
- }
- export { default as Propertys } from './propertys.vue'
|