@veltra/sheet 2.5.6 → 2.5.7
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/dist/components/sheet/formula-bar.js +114 -14
- package/dist/components/sheet/popups/functions-popup.js +117 -0
- package/dist/components/sheet/popups/import.worker.d.ts +2 -3
- package/dist/components/sheet/sheet.js +33 -23
- package/dist/components/sheet/style2.css +100 -0
- package/dist/components/sheet/use-formula-suggest.js +17 -1
- package/dist/components/sheet/use-sheet-grid.js +1 -1
- package/dist/components/sheet/use-tool-popup.js +4 -2
- package/dist/tools/builtin.js +11 -1
- package/dist/tools/context.d.ts +4 -5
- package/dist/tools/export.worker.d.ts +3 -4
- package/dist/tools/registry.d.ts +8 -9
- package/dist/types/sheet.d.ts +5 -6
- package/package.json +5 -5
- package/src/components/sheet/__test__/formula-bar.test.ts +312 -0
- package/src/components/sheet/__test__/functions-popup.test.ts +182 -0
- package/src/components/sheet/__test__/sheet-component.test.ts +1 -0
- package/src/components/sheet/__test__/use-formula-suggest.test.ts +4 -3
- package/src/components/sheet/formula-bar.vue +131 -6
- package/src/components/sheet/popups/functions-popup.vue +141 -0
- package/src/components/sheet/sheet.vue +15 -2
- package/src/components/sheet/style.scss +117 -0
- package/src/components/sheet/use-formula-suggest.ts +19 -0
- package/src/components/sheet/use-sheet-grid.ts +10 -2
- package/src/components/sheet/use-tool-popup.ts +4 -2
- package/src/tools/__test__/builtin.test.ts +9 -1
- package/src/tools/builtin.ts +13 -1
- package/src/tools/registry.ts +1 -0
package/src/tools/builtin.ts
CHANGED
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
Underline,
|
|
19
19
|
UnmergeCells,
|
|
20
20
|
Upload,
|
|
21
|
+
Variable,
|
|
21
22
|
VerticalAlignCenter,
|
|
22
23
|
VerticalAlignLeft,
|
|
23
24
|
VerticalAlignRight,
|
|
@@ -365,7 +366,7 @@ registerTool({
|
|
|
365
366
|
}
|
|
366
367
|
})
|
|
367
368
|
|
|
368
|
-
// ─── edit
|
|
369
|
+
// ─── edit(查找 / 函数)──────────────────────────────────────
|
|
369
370
|
|
|
370
371
|
registerTool({
|
|
371
372
|
id: 'find',
|
|
@@ -378,6 +379,17 @@ registerTool({
|
|
|
378
379
|
onClick: () => {}
|
|
379
380
|
})
|
|
380
381
|
|
|
382
|
+
registerTool({
|
|
383
|
+
id: 'functions',
|
|
384
|
+
title: '函数',
|
|
385
|
+
icon: Variable,
|
|
386
|
+
tooltip: '按分类浏览并插入函数',
|
|
387
|
+
group: 'edit',
|
|
388
|
+
order: 1,
|
|
389
|
+
popup: 'functions',
|
|
390
|
+
onClick: () => {}
|
|
391
|
+
})
|
|
392
|
+
|
|
381
393
|
// ─── insert(插入图片)─────────────────────────────────────
|
|
382
394
|
|
|
383
395
|
registerTool({
|