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.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix(sheets-ui): fix incorrect JSDoc for attachRangePopup (#6824)
白熱dba94e905374
diff --git a/packages/sheets-ui/src/facade/f-range.ts b/packages/sheets-ui/src/facade/f-range.tsindex 6d5f31b9df..7470381830 100644--- a/packages/sheets-ui/src/facade/f-range.ts+++ b/packages/sheets-ui/src/facade/f-range.ts@@ -306,16 +306,19 @@ class FRangeSheetsUIMixin extends FRange implements IFRangeSheetsUIMixin {}/**- * attachDOMPopup+ * attachRangePopup* @param popup* @returns {IDisposable} disposable- let sheet = univerAPI.getActiveWorkbook().getActiveSheet();- let range = sheet.getRange(2, 2, 3, 3);- univerAPI.getActiveWorkbook().setActiveRange(range);- let disposable = range.attachDOMPopup({- componentKey: 'univer.sheet.single-dom-popup',- extraProps: { alert: { type: 0, title: 'This is an Info', message: 'This is an info message' } },- });+ * @example+ * ```typescript+ * let sheet = univerAPI.getActiveWorkbook().getActiveSheet();+ * let range = sheet.getRange(2, 2, 3, 3);+ * univerAPI.getActiveWorkbook().setActiveRange(range);+ * let disposable = range.attachRangePopup({+ * componentKey: 'univer.sheet.single-dom-popup',+ * extraProps: { alert: { type: 0, title: 'This is an Info', message: 'This is an info message' } },+ * });+ * ```*/override attachRangePopup(popup: IFCanvasPopup): Nullable<IDisposable> {popup.direction = popup.direction ?? 'top-center';