@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 +11 -8
- package/lib/cjs/index.js +281 -175
- package/lib/es/facade.js +11 -8
- package/lib/es/index.js +284 -178
- package/lib/facade.js +11 -8
- package/lib/index.css +8 -0
- package/lib/index.js +284 -178
- package/lib/types/services/scroll-manager.service.d.ts +1 -0
- package/lib/types/services/sheet-skeleton-manager.service.d.ts +1 -0
- package/lib/types/services/utils/defined-name-utils.d.ts +52 -0
- package/lib/umd/index.js +11 -11
- package/package.json +13 -13
package/lib/es/facade.js
CHANGED
|
@@ -1274,16 +1274,19 @@ var FRangeSheetsUIMixin = class extends FRange {
|
|
|
1274
1274
|
} };
|
|
1275
1275
|
}
|
|
1276
1276
|
/**
|
|
1277
|
-
*
|
|
1277
|
+
* attachRangePopup
|
|
1278
1278
|
* @param popup
|
|
1279
1279
|
* @returns {IDisposable} disposable
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
univerAPI.getActiveWorkbook().
|
|
1283
|
-
let
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1280
|
+
* @example
|
|
1281
|
+
* ```typescript
|
|
1282
|
+
* let sheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
1283
|
+
* let range = sheet.getRange(2, 2, 3, 3);
|
|
1284
|
+
* univerAPI.getActiveWorkbook().setActiveRange(range);
|
|
1285
|
+
* let disposable = range.attachRangePopup({
|
|
1286
|
+
* componentKey: 'univer.sheet.single-dom-popup',
|
|
1287
|
+
* extraProps: { alert: { type: 0, title: 'This is an Info', message: 'This is an info message' } },
|
|
1288
|
+
* });
|
|
1289
|
+
* ```
|
|
1287
1290
|
*/
|
|
1288
1291
|
attachRangePopup(popup) {
|
|
1289
1292
|
var _popup$direction2, _popup$extraProps2, _popup$offset2;
|