Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix: add EditTooltipsController.ts

jerrycfbaffdbb696
diff --git a/packages/base-sheets/src/View/Views/EditTooltipsView.ts b/packages/base-sheets/src/View/Views/EditTooltipsView.ts
index 483c6c4eda..a121d332d9 100644
--- a/packages/base-sheets/src/View/Views/EditTooltipsView.ts
+++ b/packages/base-sheets/src/View/Views/EditTooltipsView.ts
@@ -55,16 +55,21 @@ export class EditTooltips extends Rect<EditTooltipsProps> {
}
setText(text: string): void {
+ this.text = text;
this.setProps({ text });
this.makeDirty(true);
}
setTextSize(textSize: number): void {
+ this.textSize = textSize;
this.setProps({ textSize });
this.makeDirty(true);
}
setBorderColor(color: string): void {
+ this.setProps({
+ stroke: color,
+ });
this.makeDirty(true);
}