import { FieldConfigItem, StyleData, StyleRule } from './types'; import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives } from 'vue'; import { EditorView } from 'codemirror'; /** * 组件属性定义 */ type __VLS_Props = { /** 是否显示对话框 */ show: boolean; /** 样式列表数据 */ historyRules?: StyleData[]; /** 字段配置数组(每项包含:显示名称、字段值、字段类型) */ fields?: FieldConfigItem[]; /** 初始规则数据 */ initialRule?: StyleRule[]; applyFunction?: (data: StyleRule[]) => void; /** 解析回调函数 */ resolve: (data: StyleRule[] | undefined) => void; }; declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, { show: boolean; historyRules: StyleData[]; fields: FieldConfigItem[]; initialRule: StyleRule[]; }, {}, {}, {}, string, ComponentProvideOptions, false, { editorContainer: CreateComponentPublicInstanceWithMixins & Readonly<{ onLoad?: ((view: EditorView) => any) | undefined; onChange?: ((value: string) => any) | undefined; }>, { getVal: () => string; setVal: (value: string) => void; formatCode: () => void; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & { load: (view: EditorView) => any; change: (value: string) => any; }, PublicProps, { readonly: boolean; content: string; theme: "dark" | "light"; language: "json" | "js" | "html" | "string" | "markdown"; }, false, {}, {}, GlobalComponents, GlobalDirectives, string, { editorContainer: HTMLDivElement; }, HTMLDivElement, ComponentProvideOptions, { P: {}; B: {}; D: {}; C: {}; M: {}; Defaults: {}; }, Readonly<{ content?: string; readonly?: boolean; theme?: "dark" | "light"; language?: "json" | "js" | "html" | "string" | "markdown"; }> & Readonly<{ onLoad?: ((view: EditorView) => any) | undefined; onChange?: ((value: string) => any) | undefined; }>, { getVal: () => string; setVal: (value: string) => void; formatCode: () => void; }, {}, {}, {}, { readonly: boolean; content: string; theme: "dark" | "light"; language: "json" | "js" | "html" | "string" | "markdown"; }> | null; }, any>; export default _default;