fix:更新ts配置文件
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import {defineStore} from 'pinia'
|
||||
import {IPageComponent} from '../type/IPageComponent';
|
||||
import {IPageComponent} from '@/type/IPageComponent';
|
||||
import {ref} from 'vue';
|
||||
|
||||
function findObjectById(obj, targetId) {
|
||||
|
||||
@ -8,6 +8,7 @@ export interface IComponent {
|
||||
style: string;
|
||||
class: string;
|
||||
events:JSON;
|
||||
slots:IComponent[];
|
||||
orchestrations:JSON;
|
||||
version:string;
|
||||
loop:JSON
|
||||
|
||||
@ -1,37 +0,0 @@
|
||||
interface IMaterial {
|
||||
version: string;
|
||||
componentName: string;
|
||||
title: string;
|
||||
icon?: string;
|
||||
group?: string;
|
||||
npm?: {
|
||||
componentName?: string;
|
||||
package: string;
|
||||
version?: string;
|
||||
};
|
||||
props?: Array<{
|
||||
name: string;
|
||||
propType: string;
|
||||
description: string;
|
||||
defaultValue?: any;
|
||||
}>;
|
||||
style?: {
|
||||
width?: string;
|
||||
height?: string;
|
||||
[key: string]: string | number | undefined; // 允许其他样式属性,可以是 string | number | undefined 类型
|
||||
};
|
||||
events?: Array<{
|
||||
name: string;
|
||||
description: string;
|
||||
}>;
|
||||
slots: {
|
||||
default: string; // 默认插槽必须有值
|
||||
[key: string]: string | undefined; // 其他插槽可以是 string | undefined 类型
|
||||
};
|
||||
loop?: {
|
||||
propName: string;
|
||||
description: string;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user