fix(editor): 修复CodeSelectColConfig interface找不到问题

fix #525
This commit is contained in:
roymondchen 2023-07-18 15:58:01 +08:00
parent fa2862090f
commit 1a546c326c
2 changed files with 10 additions and 2 deletions

View File

@ -18,7 +18,7 @@
import type { Component } from 'vue';
import type { FormConfig, FormItem } from '@tmagic/form';
import type { FilterFunction, FormConfig, FormItem } from '@tmagic/form';
import type { CodeBlockContent, CodeBlockDSL, Id, MApp, MContainer, MNode, MPage } from '@tmagic/schema';
import type StageCore from '@tmagic/stage';
import type {
@ -485,3 +485,11 @@ export interface KeyBindingCacheItem {
eventType: 'keyup' | 'keydown';
binded: boolean;
}
export interface CodeSelectColConfig {
type: 'code-select-col';
name: string;
labelWidth?: number | string;
disabled?: boolean | FilterFunction;
display?: boolean | FilterFunction;
}

View File

@ -146,7 +146,7 @@ export type TypeFunction = (
},
) => string;
type FilterFunction = (
export type FilterFunction = (
mForm: FormState | undefined,
data: {
model: Record<any, any>;