fix: add UniverSheetsFormulaPlugin for SheetsConditionalFormatting & SheetsDataValidation (#6329)

This commit is contained in:
白熱
2025-12-17 17:23:34 +08:00
committed by GitHub
parent 6fd9e3618f
commit 21b2d38fbd
4 changed files with 6 additions and 6 deletions
@@ -17,7 +17,7 @@
import type { Dependency } from '@univerjs/core';
import type { IUniverSheetsConditionalFormattingConfig } from './controllers/config.schema';
import { DependentOn, ICommandService, IConfigService, Inject, Injector, merge, Plugin, touchDependencies, UniverInstanceType } from '@univerjs/core';
import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';
import { UniverSheetsFormulaPlugin } from '@univerjs/sheets-formula';
import { SHEET_CONDITIONAL_FORMATTING_PLUGIN } from './base/const';
import { AddCfCommand } from './commands/commands/add-cf.command';
import { ClearRangeCfCommand } from './commands/commands/clear-range-cf.command';
@@ -38,7 +38,7 @@ import { ConditionalFormattingViewModel } from './models/conditional-formatting-
import { ConditionalFormattingFormulaService } from './services/conditional-formatting-formula.service';
import { ConditionalFormattingService } from './services/conditional-formatting.service';
@DependentOn(UniverFormulaEnginePlugin)
@DependentOn(UniverSheetsFormulaPlugin)
export class UniverSheetsConditionalFormattingPlugin extends Plugin {
static override pluginName = SHEET_CONDITIONAL_FORMATTING_PLUGIN;
static override type = UniverInstanceType.UNIVER_SHEET;
@@ -27,6 +27,7 @@ import {
UniverInstanceType,
} from '@univerjs/core';
import { UniverDataValidationPlugin } from '@univerjs/data-validation';
import { UniverSheetsFormulaPlugin } from '@univerjs/sheets-formula';
import {
AddSheetDataValidationCommand,
ClearRangeDataValidationCommand,
@@ -50,7 +51,7 @@ import { DataValidationFormulaService } from './services/dv-formula.service';
import { DataValidationListCacheService } from './services/dv-list-cache.service';
import { SheetsDataValidationValidatorService } from './services/dv-validator-service';
@DependentOn(UniverDataValidationPlugin)
@DependentOn(UniverSheetsFormulaPlugin, UniverDataValidationPlugin)
export class UniverSheetsDataValidationPlugin extends Plugin {
static override pluginName = DATA_VALIDATION_PLUGIN_NAME;
static override type = UniverInstanceType.UNIVER_SHEET;
+1 -2
View File
@@ -17,7 +17,6 @@
import type { Dependency } from '@univerjs/core';
import type { IUniverSheetsFormulaUIConfig } from './controllers/config.schema';
import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, registerDependencies, touchDependencies, UniverInstanceType } from '@univerjs/core';
import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';
import { IRenderManagerService } from '@univerjs/engine-render';
import { UniverSheetsFormulaPlugin } from '@univerjs/sheets-formula';
import { EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY, RANGE_SELECTOR_COMPONENT_KEY } from '@univerjs/sheets-ui';
@@ -45,7 +44,7 @@ import { GlobalRangeSelector } from './views/range-selector/global';
/**
* The configuration of the formula UI plugin.
*/
@DependentOn(UniverFormulaEnginePlugin, UniverSheetsFormulaPlugin)
@DependentOn(UniverSheetsFormulaPlugin)
export class UniverSheetsFormulaUIPlugin extends Plugin {
static override pluginName = FORMULA_UI_PLUGIN_NAME;
static override type = UniverInstanceType.UNIVER_SHEET;
+1 -1
View File
@@ -71,7 +71,7 @@ export class UniverRemoteSheetsFormulaPlugin extends Plugin {
}
}
@DependentOn(UniverFormulaEnginePlugin, UniverSheetsPlugin)
@DependentOn(UniverSheetsPlugin)
export class UniverSheetsFormulaPlugin extends Plugin {
static override pluginName = SHEETS_FORMULA_PLUGIN_NAME;
static override type = UniverInstanceType.UNIVER_SHEET;