@vtj/designer
Version:
VTJ 是一款基于 Vue3 + Typescript 的低代码页面可视化设计器。内置低代码引擎、渲染器和代码生成器,面向前端开发者,开箱即用。 无缝嵌入本地开发工程,不改变前端开发流程和编码习惯。
302 lines (301 loc) • 12 kB
TypeScript
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComputedRef, Ref, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
import { Props } from './empty';
import { Props } from './brand';
import { Widget, RegionType } from '../..';
import { Props } from './toolbar';
import { Props } from './actions';
import { Props } from './apps';
import { Props } from './workspace';
import { Props } from './settings';
import { Props } from './status';
import { Props } from './preview';
export declare const regions: {
EmptyRegion: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
Brand: DefineComponent<Props, {
widgets: ComputedRef< Widget[]>;
widgetsRef: Ref<any, any>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
widgetsRef: ( CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
region: {
type: PropType<RegionType>;
required: true;
};
widget: {
type: PropType<Widget>;
required: true;
};
}>> & Readonly<{}>, {
widgetRef: Ref<any, any>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly< ExtractPropTypes<{
region: {
type: PropType<RegionType>;
required: true;
};
widget: {
type: PropType<Widget>;
required: true;
};
}>> & Readonly<{}>, {
widgetRef: Ref<any, any>;
}, {}, {}, {}, {}> | null)[];
}, any>;
Toolbar: DefineComponent<Props, {
widgets: ComputedRef< Widget[]>;
widgetsRef: Ref<any, any>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
widgetsRef: ( CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
region: {
type: PropType<RegionType>;
required: true;
};
widget: {
type: PropType<Widget>;
required: true;
};
}>> & Readonly<{}>, {
widgetRef: Ref<any, any>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly< ExtractPropTypes<{
region: {
type: PropType<RegionType>;
required: true;
};
widget: {
type: PropType<Widget>;
required: true;
};
}>> & Readonly<{}>, {
widgetRef: Ref<any, any>;
}, {}, {}, {}, {}> | null)[];
}, HTMLDivElement>;
Actions: DefineComponent<Props, {
widgets: ComputedRef< Widget[]>;
widgetsRef: Ref<any, any>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
widgetsRef: ( CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
region: {
type: PropType<RegionType>;
required: true;
};
widget: {
type: PropType<Widget>;
required: true;
};
}>> & Readonly<{}>, {
widgetRef: Ref<any, any>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly< ExtractPropTypes<{
region: {
type: PropType<RegionType>;
required: true;
};
widget: {
type: PropType<Widget>;
required: true;
};
}>> & Readonly<{}>, {
widgetRef: Ref<any, any>;
}, {}, {}, {}, {}> | null)[];
}, any>;
Apps: DefineComponent<Props, {
widgets: ComputedRef< Widget[]>;
widgetsRef: Ref<any, any>;
setActive: (name: string) => void;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< Props> & Readonly<{}>, {
index: number;
}, {}, {}, {}, string, ComponentProvideOptions, false, {
widgetsRef: ( CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
region: {
type: PropType<RegionType>;
required: true;
};
widget: {
type: PropType<Widget>;
required: true;
};
}>> & Readonly<{}>, {
widgetRef: Ref<any, any>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly< ExtractPropTypes<{
region: {
type: PropType<RegionType>;
required: true;
};
widget: {
type: PropType<Widget>;
required: true;
};
}>> & Readonly<{}>, {
widgetRef: Ref<any, any>;
}, {}, {}, {}, {}> | null)[];
}, any>;
Workspace: DefineComponent<Props, {
currentTab: Ref<string, string>;
widgets: ComputedRef< Widget[]>;
widgetsRef: Ref<any, any>;
openTab: (name: string, props?: Record<string, any>) => void;
reload: () => void;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
widgetsRef: ( CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
region: {
type: PropType<RegionType>;
required: true;
};
widget: {
type: PropType<Widget>;
required: true;
};
}>> & Readonly<{}>, {
widgetRef: Ref<any, any>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly< ExtractPropTypes<{
region: {
type: PropType<RegionType>;
required: true;
};
widget: {
type: PropType<Widget>;
required: true;
};
}>> & Readonly<{}>, {
widgetRef: Ref<any, any>;
}, {}, {}, {}, {}> | null)[];
}, any>;
Settings: DefineComponent<Props, {
widgets: ComputedRef< Widget[]>;
widgetsRef: Ref<any, any>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
widgetsRef: ( CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
region: {
type: PropType<RegionType>;
required: true;
};
widget: {
type: PropType<Widget>;
required: true;
};
}>> & Readonly<{}>, {
widgetRef: Ref<any, any>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly< ExtractPropTypes<{
region: {
type: PropType<RegionType>;
required: true;
};
widget: {
type: PropType<Widget>;
required: true;
};
}>> & Readonly<{}>, {
widgetRef: Ref<any, any>;
}, {}, {}, {}, {}> | null)[];
}, any>;
Status: DefineComponent<Props, {
widgets: ComputedRef< Widget[]>;
widgetsRef: Ref<any, any>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
widgetsRef: ( CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
region: {
type: PropType<RegionType>;
required: true;
};
widget: {
type: PropType<Widget>;
required: true;
};
}>> & Readonly<{}>, {
widgetRef: Ref<any, any>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly< ExtractPropTypes<{
region: {
type: PropType<RegionType>;
required: true;
};
widget: {
type: PropType<Widget>;
required: true;
};
}>> & Readonly<{}>, {
widgetRef: Ref<any, any>;
}, {}, {}, {}, {}> | null)[];
}, any>;
Preview: DefineComponent<Props, {
currentTab: Ref<string, string>;
widgets: ComputedRef< Widget[]>;
widgetsRef: Ref<any, any>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
widgetsRef: ( CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
region: {
type: PropType<RegionType>;
required: true;
};
widget: {
type: PropType<Widget>;
required: true;
};
}>> & Readonly<{}>, {
widgetRef: Ref<any, any>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly< ExtractPropTypes<{
region: {
type: PropType<RegionType>;
required: true;
};
widget: {
type: PropType<Widget>;
required: true;
};
}>> & Readonly<{}>, {
widgetRef: Ref<any, any>;
}, {}, {}, {}, {}> | null)[];
}, any>;
};