This commit is contained in:
X1627315083@163.com
2026-03-12 17:07:04 +08:00
parent deff3410bf
commit 01a843e71f
14 changed files with 328 additions and 61 deletions

View File

@@ -10,6 +10,8 @@ interface NodeData {
disableDelete?: boolean// 是否禁用删除
disableCopy?: boolean// 是否禁用复制
originalImage?: string// 要进行生成的图片
createIndexPosition?: number// 创建索引位置
isActive?: boolean// 是否激活
}
interface NodeOptions {
id?: string
@@ -68,9 +70,11 @@ export class NodeManager {
const options_ = {
...(options ? options : {}),
component: NODE_COMPONENT.RESULT_IMAGE,
positionY: options?.positionY || 0,
data: {
tier: NODE_DATATIER.RESULT_IMAGE,
type: NODE_DATATYPE.RESULT_IMAGE,
createIndexPosition: options?.data?.createIndexPosition || 1,
isHeader: true,
...(options?.data || {}),
},