@univerjs/sheets-ui 0.21.0 → 0.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1275,16 +1275,19 @@ var FRangeSheetsUIMixin = class extends _univerjs_sheets_facade.FRange {
1275
1275
  } };
1276
1276
  }
1277
1277
  /**
1278
- * attachDOMPopup
1278
+ * attachRangePopup
1279
1279
  * @param popup
1280
1280
  * @returns {IDisposable} disposable
1281
- let sheet = univerAPI.getActiveWorkbook().getActiveSheet();
1282
- let range = sheet.getRange(2, 2, 3, 3);
1283
- univerAPI.getActiveWorkbook().setActiveRange(range);
1284
- let disposable = range.attachDOMPopup({
1285
- componentKey: 'univer.sheet.single-dom-popup',
1286
- extraProps: { alert: { type: 0, title: 'This is an Info', message: 'This is an info message' } },
1287
- });
1281
+ * @example
1282
+ * ```typescript
1283
+ * let sheet = univerAPI.getActiveWorkbook().getActiveSheet();
1284
+ * let range = sheet.getRange(2, 2, 3, 3);
1285
+ * univerAPI.getActiveWorkbook().setActiveRange(range);
1286
+ * let disposable = range.attachRangePopup({
1287
+ * componentKey: 'univer.sheet.single-dom-popup',
1288
+ * extraProps: { alert: { type: 0, title: 'This is an Info', message: 'This is an info message' } },
1289
+ * });
1290
+ * ```
1288
1291
  */
1289
1292
  attachRangePopup(popup) {
1290
1293
  var _popup$direction2, _popup$extraProps2, _popup$offset2;