Skip to content

Home > @zero-dim/designer > createPageTemplate

createPageTemplate() function

创建AlDragBox

Signature:

typescript
export declare function createPageTemplate(schema?: Schema, props?: Record<string, any>): {
    type: string;
    id: string;
    label: string;
    icon: string;
    props: {
        class: string;
    };
    children: {
        type: string;
        id: string;
        icon: string;
        props: Record<string, any> | undefined;
        children: Schema[];
    }[];
};

Parameters

Parameter

Type

Description

schema

Schema

(Optional)

props

Record<string, any>

(Optional)

**Returns:**

{ type: string; id: string; label: string; icon: string; props: { class: string; }; children: { type: string; id: string; icon: string; props: Record<string, any> | undefined; children: Schema[]; }[]; }