form-designer-xinyi
Version:
基于vue3的设计器,可视化开发页面表单
48 lines (46 loc) • 1.81 kB
TypeScript
import { ComponentPublicInstance } from 'vue';
import { ComponentSchema } from '../../../types/epic-designer';
export interface ComponentNodeInstance extends ComponentPublicInstance {
setValue?: (value: any) => void;
getValue?: () => any;
setAttr?: (key: string, value: any) => any;
getAttr?: (key: string) => any;
}
declare function __VLS_template(): {
"edit-node"?(_: {}): any;
};
declare const __VLS_component: import('@vue/runtime-core').DefineComponent<__VLS_TypePropsToRuntimeProps<{
componentSchema: ComponentSchema;
modelValue?: any;
ruleField?: string[];
resetFormData?: Boolean;
name?: string;
}>, {}, unknown, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {
"update:modelValue": (...args: any[]) => void;
change: (...args: any[]) => void;
}, string, import('@vue/runtime-core').PublicProps, Readonly<import('@vue/runtime-core').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
componentSchema: ComponentSchema;
modelValue?: any;
ruleField?: string[];
resetFormData?: Boolean;
name?: string;
}>>> & {
onChange?: ((...args: any[]) => any) | undefined;
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
}, {}, {}>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: import('vue').PropType<T[K]>;
required: true;
};
};
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};