分数,评查点分组数据对接上

This commit is contained in:
2025-04-07 19:41:22 +08:00
parent 8885aec931
commit 046dd109e0
7 changed files with 1403 additions and 448 deletions
+26
View File
@@ -0,0 +1,26 @@
import { createContext } from 'react';
/**
* 规则上下文类型
* 用于在抽取设置和评查设置之间共享数据
*/
export interface RuleContextType {
/**
* 抽取的字段列表
*/
extractionFields: string[];
/**
* 更新字段列表的函数
*/
updateFields: (fields: string[]) => void;
}
/**
* 创建规则上下文
* 用于在抽取设置和评查设置组件之间共享字段数据
*/
export const RuleContext = createContext<RuleContextType>({
extractionFields: [],
updateFields: () => {}
});