Build lightweight AI agent admin
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
import type { Component } from 'vue';
|
||||
|
||||
import { defineComponent, h } from 'vue';
|
||||
|
||||
export type DesignEditorData = Record<string, any>;
|
||||
export type AppDesignData = Record<string, any>;
|
||||
export type DashboardBasicInfoData = Record<string, any>;
|
||||
export type DashboardDesignData = Record<string, any>;
|
||||
export type DashboardPublishData = Record<string, any>;
|
||||
export type SystemSummaryData = Record<string, any>;
|
||||
|
||||
export interface FormEditorProps {
|
||||
readonly?: boolean;
|
||||
schema?: Record<string, any>;
|
||||
}
|
||||
|
||||
export interface PageEditorProps {
|
||||
readonly?: boolean;
|
||||
schema?: Record<string, any>;
|
||||
}
|
||||
|
||||
export const FORM_EDITOR_LIGHTWEIGHT = true;
|
||||
|
||||
function createLitePanel(name: string): Component {
|
||||
return defineComponent({
|
||||
name,
|
||||
setup(_, { slots }) {
|
||||
return () => h('div', { class: 'form-editor-lite-placeholder' }, slots.default?.());
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
export const BasicInfoEditor = createLitePanel('BasicInfoEditor');
|
||||
export const PublishInfoEditor = createLitePanel('PublishInfoEditor');
|
||||
export const PageBasicInfoEditor = createLitePanel('PageBasicInfoEditor');
|
||||
export const PagePublishInfoEditor = createLitePanel('PagePublishInfoEditor');
|
||||
export const FormEditorContent = createLitePanel('FormEditorContent');
|
||||
export const PageEditorContent = createLitePanel('PageEditorContent');
|
||||
export const DesignEditorPanel = createLitePanel('DesignEditorPanel');
|
||||
export const AppDesignPanel = createLitePanel('AppDesignPanel');
|
||||
export const AppSettingsPanel = createLitePanel('AppSettingsPanel');
|
||||
export const DashboardBasicInfoConfirmPanel = createLitePanel('DashboardBasicInfoConfirmPanel');
|
||||
export const DashboardDesignConfirmPanel = createLitePanel('DashboardDesignConfirmPanel');
|
||||
export const DashboardPublishConfirmPanel = createLitePanel('DashboardPublishConfirmPanel');
|
||||
export const SystemSummaryConfirmPanel = createLitePanel('SystemSummaryConfirmPanel');
|
||||
Reference in New Issue
Block a user