[Bug] Data verification requires an interface for querying the verification status of the entire table/sub-table
weird94 opened this issue · comments
在您提交此问题之前,您是否检查了以下内容?
- 这真的是个问题吗?
- 我已经在 Github Issues 中搜索过了,但没有找到类似的问题。
受影响的包和版本
@univerjs/sheets-data-validation
复现链接
预期行为
支持
实际行为
不支持
运行环境
Chrome
系统信息
No response
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Origin Title: [Bug] 数据验证需要整表/子表校验状态查询的接口
Title: [Bug] Data verification requires an interface for querying the verification status of the entire table/sub-table
Before you submitted this question, did you check the following?
- Is this really a problem?
- I've searched Github Issues but haven't found any similar issues.
Affected packages and versions
@univerjs/sheets-data-validation
Recurrence link
Expected behavior
support
Actual behavior
not support
Running environment
Chrome
system message
No response
import { SheetsDataValidationValidatorService } from '@univerjs/sheets-data-validation';
// get injector from you univer instance
const injector = univer.__getInjector();
const validatorService = injector.get(SheetsDataValidationValidatorService);
validatorService.validatorCell(unitId, sheetId, row, col);
validatorService.validatorWorksheet(unitId, sheetId);
validatorService.validatorWorkbook(unitId);