fix:更新ts配置文件

This commit is contained in:
lhj
2024-11-06 23:07:51 +08:00
parent c1b60a7042
commit 6fc1097a34
6 changed files with 25 additions and 53 deletions

View File

@ -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) {

View File

@ -8,6 +8,7 @@ export interface IComponent {
style: string;
class: string;
events:JSON;
slots:IComponent[];
orchestrations:JSON;
version:string;
loop:JSON

View File

@ -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;
};
}