@antv/s2-vue 2.0.0-next.6 → 2.0.0-next.8
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/README.md +1 -0
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/style.min.css +1 -1
- package/esm/index.d.ts +1398 -503
- package/esm/index.js +64 -56
- package/esm/index.js.map +1 -1
- package/esm/style.css +55 -42
- package/lib/index.js +64 -56
- package/lib/index.js.map +1 -1
- package/lib/style.css +55 -42
- package/package.json +8 -8
package/esm/style.css
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
.antv-s2-tooltip-operator {
|
|
2
|
-
color: rgba(0, 0, 0, 0.65);
|
|
2
|
+
color: var(--antv-s2-font, rgba(0, 0, 0, 0.65));
|
|
3
|
+
background: var(--antv-s2-tooltip-operator-background, #f9f9f9);
|
|
3
4
|
font-size: 12px;
|
|
4
|
-
line-height:
|
|
5
|
-
background: #f9f9f9;
|
|
6
|
-
padding: 0 12px;
|
|
5
|
+
line-height: 36px;
|
|
7
6
|
border: 0;
|
|
8
7
|
cursor: pointer;
|
|
9
8
|
}
|
|
9
|
+
.antv-s2-tooltip-operator .ant-menu-horizontal:not(.ant-menu-dark) {
|
|
10
|
+
background: transparent;
|
|
11
|
+
line-height: 36px;
|
|
12
|
+
}
|
|
10
13
|
.antv-s2-tooltip-operator .ant-dropdown-trigger,
|
|
11
14
|
.antv-s2-tooltip-operator-dropdown {
|
|
12
15
|
padding: 0 6px 0 0;
|
|
13
16
|
}
|
|
14
17
|
.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu {
|
|
15
18
|
font-size: 12px;
|
|
16
|
-
|
|
17
|
-
color: rgba(0, 0, 0, 0.65);
|
|
19
|
+
color: var(--antv-s2-font, rgba(0, 0, 0, 0.65));
|
|
18
20
|
border: 0;
|
|
19
|
-
|
|
21
|
+
user-select: none;
|
|
22
|
+
padding: 4px;
|
|
20
23
|
}
|
|
21
24
|
.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-item {
|
|
22
|
-
height:
|
|
23
|
-
}
|
|
24
|
-
.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-item:not(:last-child) {
|
|
25
|
-
margin: 0;
|
|
25
|
+
height: 36px;
|
|
26
26
|
}
|
|
27
27
|
.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-submenu > .ant-menu-submenu-title {
|
|
28
|
-
height:
|
|
28
|
+
height: 36px;
|
|
29
|
+
width: 100%;
|
|
29
30
|
}
|
|
30
31
|
.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-submenu-arrow {
|
|
31
|
-
color: rgba(0, 0, 0, 0.65);
|
|
32
|
+
color: var(--antv-s2-font, rgba(0, 0, 0, 0.65));
|
|
32
33
|
}
|
|
33
34
|
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-item,
|
|
34
35
|
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-item,
|
|
35
36
|
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-item,
|
|
36
37
|
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-item {
|
|
37
38
|
font-size: 12px;
|
|
38
|
-
line-height:
|
|
39
|
+
line-height: 36px;
|
|
39
40
|
padding: 0 12px;
|
|
40
41
|
border: 0;
|
|
41
|
-
margin: 0;
|
|
42
42
|
}
|
|
43
43
|
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-item:not(.ant-menu-item-active),
|
|
44
44
|
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-item:not(.ant-menu-item-active),
|
|
45
45
|
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-item:not(.ant-menu-item-active),
|
|
46
46
|
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-item:not(.ant-menu-item-active) {
|
|
47
|
-
color: rgba(0, 0, 0, 0.65);
|
|
47
|
+
color: var(--antv-s2-font, rgba(0, 0, 0, 0.65));
|
|
48
48
|
}
|
|
49
49
|
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title,
|
|
50
50
|
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title,
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title,
|
|
55
55
|
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title,
|
|
56
56
|
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title {
|
|
57
|
-
padding: 0 12px;
|
|
57
|
+
padding: 0 0 0 12px;
|
|
58
58
|
font-size: 12px;
|
|
59
|
-
line-height:
|
|
59
|
+
line-height: 36px;
|
|
60
60
|
margin: 0;
|
|
61
61
|
}
|
|
62
62
|
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),
|
|
68
68
|
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active),
|
|
69
69
|
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active) {
|
|
70
|
-
color: rgba(0, 0, 0, 0.65);
|
|
70
|
+
color: var(--antv-s2-font, rgba(0, 0, 0, 0.65));
|
|
71
71
|
}
|
|
72
72
|
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,
|
|
73
73
|
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,
|
|
@@ -90,28 +90,29 @@
|
|
|
90
90
|
.antv-s2-tooltip-operator-submenu-popup .ant-dropdown-menu-item,
|
|
91
91
|
.antv-s2-tooltip-operator-submenu-popup .ant-menu-item {
|
|
92
92
|
font-size: 12px;
|
|
93
|
-
line-height:
|
|
93
|
+
line-height: 36px;
|
|
94
94
|
padding: 0 12px;
|
|
95
95
|
}
|
|
96
96
|
.antv-s2-tooltip-operator-submenu-popup .ant-dropdown-menu-item:not(.ant-menu-item-active),
|
|
97
97
|
.antv-s2-tooltip-operator-submenu-popup .ant-menu-item:not(.ant-menu-item-active) {
|
|
98
|
-
color: rgba(0, 0, 0, 0.65);
|
|
98
|
+
color: var(--antv-s2-font, rgba(0, 0, 0, 0.65));
|
|
99
99
|
}
|
|
100
100
|
.antv-s2-tooltip-operator-submenu-popup .ant-menu-vertical .ant-menu-item {
|
|
101
101
|
margin: 0;
|
|
102
|
-
height:
|
|
103
|
-
line-height:
|
|
102
|
+
height: 36px;
|
|
103
|
+
line-height: 36px;
|
|
104
|
+
width: 100%;
|
|
104
105
|
}
|
|
105
106
|
.antv-s2-tooltip-operator-submenu-popup .ant-menu-vertical .ant-menu-item:not(:last-child) {
|
|
106
107
|
margin: 0;
|
|
107
108
|
}
|
|
108
109
|
.antv-s2-tooltip-operator-icon {
|
|
109
110
|
vertical-align: middle;
|
|
110
|
-
margin-right: 4px;
|
|
111
111
|
}
|
|
112
112
|
.antv-s2-tooltip-operator-icon svg {
|
|
113
113
|
width: 12px;
|
|
114
114
|
height: 12px;
|
|
115
|
+
fill: var(--antv-s2-font);
|
|
115
116
|
}
|
|
116
117
|
@media only screen and (max-device-width: 480px) {
|
|
117
118
|
.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu {
|
|
@@ -144,7 +145,7 @@
|
|
|
144
145
|
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),
|
|
145
146
|
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active),
|
|
146
147
|
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active) {
|
|
147
|
-
color: rgba(0, 0, 0, 0.65);
|
|
148
|
+
color: var(--antv-s2-font, rgba(0, 0, 0, 0.65));
|
|
148
149
|
}
|
|
149
150
|
.antv-s2-tooltip-operator-submenu-popup .ant-dropdown-menu-item,
|
|
150
151
|
.antv-s2-tooltip-operator-submenu-popup .ant-menu-item {
|
|
@@ -152,7 +153,7 @@
|
|
|
152
153
|
}
|
|
153
154
|
.antv-s2-tooltip-operator-submenu-popup .ant-dropdown-menu-item:not(.ant-menu-item-active),
|
|
154
155
|
.antv-s2-tooltip-operator-submenu-popup .ant-menu-item:not(.ant-menu-item-active) {
|
|
155
|
-
color: rgba(0, 0, 0, 0.65);
|
|
156
|
+
color: var(--antv-s2-font, rgba(0, 0, 0, 0.65));
|
|
156
157
|
}
|
|
157
158
|
.antv-s2-tooltip-operator-icon svg {
|
|
158
159
|
width: 12px;
|
|
@@ -168,8 +169,8 @@
|
|
|
168
169
|
overflow: auto;
|
|
169
170
|
z-index: 1024;
|
|
170
171
|
display: inline-block;
|
|
171
|
-
background: rgba(255, 255, 255, 0.
|
|
172
|
-
border-radius:
|
|
172
|
+
background: var(--antv-s2-tooltip-background, rgba(255, 255, 255, 0.95));
|
|
173
|
+
border-radius: 4px;
|
|
173
174
|
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
|
|
174
175
|
font-size: 12px;
|
|
175
176
|
font-family: Roboto, 'PingFang SC', 'Chinese Quote', BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
@@ -192,22 +193,22 @@
|
|
|
192
193
|
padding: 12px;
|
|
193
194
|
line-height: 16px;
|
|
194
195
|
overflow-wrap: break-word;
|
|
195
|
-
color: rgba(0, 0, 0, 0.85);
|
|
196
|
+
color: var(--antv-s2-font-85, rgba(0, 0, 0, 0.85));
|
|
196
197
|
}
|
|
197
198
|
.antv-s2-tooltip-description {
|
|
198
199
|
padding: 0 12px 12px;
|
|
199
200
|
line-height: 16px;
|
|
200
201
|
overflow-wrap: break-word;
|
|
201
|
-
color: rgba(0, 0, 0, 0.45);
|
|
202
|
+
color: var(--antv-s2-font-45, rgba(0, 0, 0, 0.45));
|
|
202
203
|
}
|
|
203
204
|
.antv-s2-tooltip-tips {
|
|
204
205
|
padding: 4px 12px;
|
|
205
|
-
color: rgba(0, 0, 0, 0.45);
|
|
206
|
+
color: var(--antv-s2-font-45, rgba(0, 0, 0, 0.45));
|
|
206
207
|
}
|
|
207
208
|
.antv-s2-tooltip-infos {
|
|
208
209
|
padding: 4px 12px;
|
|
209
210
|
line-height: 20px;
|
|
210
|
-
color: rgba(0, 0, 0, 0.45);
|
|
211
|
+
color: var(--antv-s2-font-45, rgba(0, 0, 0, 0.45));
|
|
211
212
|
overflow: hidden;
|
|
212
213
|
text-overflow: ellipsis;
|
|
213
214
|
-webkit-line-clamp: 2;
|
|
@@ -220,7 +221,7 @@
|
|
|
220
221
|
}
|
|
221
222
|
.antv-s2-tooltip-summary {
|
|
222
223
|
line-height: 20px;
|
|
223
|
-
color: rgba(0, 0, 0, 0.65);
|
|
224
|
+
color: var(--antv-s2-font-65, rgba(0, 0, 0, 0.65));
|
|
224
225
|
overflow: hidden;
|
|
225
226
|
padding: 12px;
|
|
226
227
|
}
|
|
@@ -243,7 +244,7 @@
|
|
|
243
244
|
padding: 12px;
|
|
244
245
|
}
|
|
245
246
|
.antv-s2-tooltip-interpretation + .antv-s2-tooltip-head-info-list {
|
|
246
|
-
border-top: 1px solid #e9e9e9;
|
|
247
|
+
border-top: 1px solid var(--antv-s2-border, #e9e9e9);
|
|
247
248
|
}
|
|
248
249
|
.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head {
|
|
249
250
|
margin-bottom: 12px;
|
|
@@ -253,10 +254,10 @@
|
|
|
253
254
|
height: 14px;
|
|
254
255
|
}
|
|
255
256
|
.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head .antv-s2-tooltip-interpretation-name {
|
|
256
|
-
color: #000;
|
|
257
|
+
color: var(--antv-s2-font, #000);
|
|
257
258
|
}
|
|
258
259
|
.antv-s2-tooltip-head-info-list {
|
|
259
|
-
color: #a2a2a2;
|
|
260
|
+
color: var(--antv-s2-font-65, #a2a2a2);
|
|
260
261
|
padding: 12px 12px 4px;
|
|
261
262
|
line-height: 24px;
|
|
262
263
|
word-break: break-word;
|
|
@@ -269,13 +270,13 @@
|
|
|
269
270
|
margin-right: 5px;
|
|
270
271
|
}
|
|
271
272
|
.antv-s2-tooltip-highlight {
|
|
272
|
-
color: rgba(0, 0, 0, 0.85);
|
|
273
|
+
color: var(--antv-s2-font-85, rgba(0, 0, 0, 0.85));
|
|
273
274
|
}
|
|
274
275
|
.antv-s2-tooltip-detail-list {
|
|
275
276
|
padding: 2px 12px 8px;
|
|
276
277
|
}
|
|
277
278
|
.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item {
|
|
278
|
-
color: rgba(0, 0, 0, 0.65);
|
|
279
|
+
color: var(--antv-s2-font-65, rgba(0, 0, 0, 0.65));
|
|
279
280
|
overflow: hidden;
|
|
280
281
|
margin: 4px 0;
|
|
281
282
|
display: flex;
|
|
@@ -328,6 +329,7 @@
|
|
|
328
329
|
width: 260px;
|
|
329
330
|
min-height: 20px;
|
|
330
331
|
position: relative;
|
|
332
|
+
color: var(--antv-s2-font-70, #fff);
|
|
331
333
|
}
|
|
332
334
|
.antv-s2-drill-down-header[data-v-8dd920ec] {
|
|
333
335
|
display: flex;
|
|
@@ -351,16 +353,27 @@
|
|
|
351
353
|
margin: 0 16px;
|
|
352
354
|
border: 1px solid rgba(0, 0, 0, 0.15);
|
|
353
355
|
border-radius: 2px;
|
|
354
|
-
background-color: #fff;
|
|
355
356
|
}
|
|
356
357
|
.antv-s2-drill-down-search input[data-v-8dd920ec],
|
|
357
358
|
.antv-s2-drill-down-search span[data-v-8dd920ec] {
|
|
358
359
|
font-size: 12px;
|
|
359
360
|
}
|
|
361
|
+
.antv-s2-drill-down-search[data-v-8dd920ec],
|
|
362
|
+
.antv-s2-drill-down-search .ant-input[data-v-8dd920ec]::placeholder {
|
|
363
|
+
background-color: var(--antv-s2-block-background, #fff);
|
|
364
|
+
}
|
|
365
|
+
.antv-s2-drill-down-extra[data-v-8dd920ec] {
|
|
366
|
+
margin: 4px 16px;
|
|
367
|
+
}
|
|
360
368
|
.antv-s2-drill-down-menu[data-v-8dd920ec] {
|
|
361
369
|
max-height: 314px;
|
|
362
|
-
overflow
|
|
363
|
-
|
|
370
|
+
overflow: hidden auto;
|
|
371
|
+
}
|
|
372
|
+
.antv-s2-drill-down-menu.ant-menu[data-v-8dd920ec] {
|
|
373
|
+
background: var(--antv-s2-tooltip-background, #fff);
|
|
374
|
+
}
|
|
375
|
+
.antv-s2-drill-down-menu.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected[data-v-8dd920ec] {
|
|
376
|
+
background-color: var(--antv-s2-block-background, #e6f7ff);
|
|
364
377
|
}
|
|
365
378
|
.antv-s2-drill-down-menu-item[data-v-8dd920ec] {
|
|
366
379
|
height: 32px !important;
|
|
@@ -375,6 +388,6 @@
|
|
|
375
388
|
margin-right: 8px;
|
|
376
389
|
}
|
|
377
390
|
.antv-s2-drill-down-empty[data-v-8dd920ec] {
|
|
378
|
-
padding:
|
|
391
|
+
padding: 12px;
|
|
379
392
|
font-size: 12px;
|
|
380
393
|
}
|
package/lib/index.js
CHANGED
|
@@ -93,7 +93,7 @@ const Locale = {
|
|
|
93
93
|
};
|
|
94
94
|
const SHEET_COMPONENT_DEFAULT_OPTIONS = {
|
|
95
95
|
tooltip: {
|
|
96
|
-
|
|
96
|
+
enable: true,
|
|
97
97
|
autoAdjustBoundary: "body",
|
|
98
98
|
operation: {
|
|
99
99
|
hiddenColumns: true,
|
|
@@ -449,7 +449,9 @@ function arrayLikeKeys(value, inherited) {
|
|
|
449
449
|
var isArr = isArray$1(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
450
450
|
for (var key in value) {
|
|
451
451
|
if ((inherited || hasOwnProperty$8.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
452
|
-
(key == "length" ||
|
|
452
|
+
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
453
|
+
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
454
|
+
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
453
455
|
isIndex(key, length)))) {
|
|
454
456
|
result.push(key);
|
|
455
457
|
}
|
|
@@ -1724,21 +1726,23 @@ const buildDrillDownOptions = (options, partDrillDown, callback) => {
|
|
|
1724
1726
|
const nextHeaderIcons = ((_a = options == null ? void 0 : options.headerActionIcons) == null ? void 0 : _a.length) ? [...options.headerActionIcons] : [];
|
|
1725
1727
|
if (!isEmpty(partDrillDown)) {
|
|
1726
1728
|
const drillDownActionIcon = {
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
});
|
|
1729
|
+
icons: [
|
|
1730
|
+
{
|
|
1731
|
+
name: "DrillDownIcon",
|
|
1732
|
+
position: "right",
|
|
1733
|
+
onClick: ({ meta, event }) => {
|
|
1734
|
+
meta.spreadsheet.store.set("drillDownNode", meta);
|
|
1735
|
+
handleActionIconClick({
|
|
1736
|
+
meta,
|
|
1737
|
+
event,
|
|
1738
|
+
callback
|
|
1739
|
+
});
|
|
1740
|
+
}
|
|
1740
1741
|
}
|
|
1741
|
-
|
|
1742
|
+
],
|
|
1743
|
+
belongsCell: "rowCell",
|
|
1744
|
+
defaultHide: false,
|
|
1745
|
+
displayCondition: (partDrillDown == null ? void 0 : partDrillDown.displayCondition) || defaultPartDrillDownDisplayCondition
|
|
1742
1746
|
};
|
|
1743
1747
|
nextHeaderIcons.push(drillDownActionIcon);
|
|
1744
1748
|
}
|
|
@@ -1978,7 +1982,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1978
1982
|
}, null, 10, _hoisted_1$3)) : vue.createCommentVNode("", true),
|
|
1979
1983
|
vue.createElementVNode("span", {
|
|
1980
1984
|
class: vue.normalizeClass(`${_ctx.TOOLTIP_PREFIX_CLS}-operator-text`)
|
|
1981
|
-
}, vue.toDisplayString(_ctx.menu.
|
|
1985
|
+
}, vue.toDisplayString(_ctx.menu.label), 3)
|
|
1982
1986
|
]);
|
|
1983
1987
|
}
|
|
1984
1988
|
const TooltipOperatorTitle = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9]]);
|
|
@@ -1986,9 +1990,10 @@ const _sfc_main$8 = vue.defineComponent({
|
|
|
1986
1990
|
name: "TooltipOperatorMenu",
|
|
1987
1991
|
props: ["menu", "cell"],
|
|
1988
1992
|
setup(props) {
|
|
1993
|
+
const { menu, cell } = props;
|
|
1989
1994
|
const onMenuTitleClick = () => {
|
|
1990
1995
|
var _a, _b;
|
|
1991
|
-
(_b = (_a = props.menu).onClick) == null ? void 0 : _b.call(_a,
|
|
1996
|
+
(_b = (_a = props.menu).onClick) == null ? void 0 : _b.call(_a, menu, cell);
|
|
1992
1997
|
};
|
|
1993
1998
|
return {
|
|
1994
1999
|
onMenuTitleClick,
|
|
@@ -2030,7 +2035,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2030
2035
|
menu: subMenu,
|
|
2031
2036
|
cell: _ctx.cell
|
|
2032
2037
|
}, null, 8, ["menu", "cell"])) : (vue.openBlock(), vue.createBlock(_component_MenuItem, {
|
|
2033
|
-
title: subMenu.
|
|
2038
|
+
title: subMenu.label,
|
|
2034
2039
|
key: subMenu.key
|
|
2035
2040
|
}, {
|
|
2036
2041
|
default: vue.withCtx(() => [
|
|
@@ -2047,7 +2052,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2047
2052
|
_: 1
|
|
2048
2053
|
}, 8, ["popupClassName", "onTitleClick"])) : vue.createCommentVNode("", true),
|
|
2049
2054
|
_ctx.isEmpty(_ctx.menu.children) ? (vue.openBlock(), vue.createBlock(_component_MenuItem, {
|
|
2050
|
-
title: _ctx.menu.
|
|
2055
|
+
title: _ctx.menu.label,
|
|
2051
2056
|
key: _ctx.menu.key
|
|
2052
2057
|
}, {
|
|
2053
2058
|
default: vue.withCtx(() => [
|
|
@@ -2064,18 +2069,24 @@ const TooltipOperatorMenu = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render",
|
|
|
2064
2069
|
const _sfc_main$7 = vue.defineComponent({
|
|
2065
2070
|
name: "TooltipOperator",
|
|
2066
2071
|
props: [
|
|
2067
|
-
"
|
|
2068
|
-
"
|
|
2069
|
-
"onClick",
|
|
2072
|
+
"menu",
|
|
2073
|
+
"onlyShowOperator",
|
|
2070
2074
|
"cell"
|
|
2071
2075
|
],
|
|
2072
|
-
setup(
|
|
2076
|
+
setup(props) {
|
|
2077
|
+
const { menu, cell } = props;
|
|
2073
2078
|
const onMenuClick = (menuInfo) => {
|
|
2074
|
-
|
|
2079
|
+
var _a;
|
|
2080
|
+
(_a = menu == null ? void 0 : menu.onClick) == null ? void 0 : _a.call(menu, menuInfo, cell);
|
|
2081
|
+
};
|
|
2082
|
+
const onMenuTitleClick = (subMenu) => () => {
|
|
2083
|
+
subMenu == null ? void 0 : subMenu.onClick(subMenu, cell);
|
|
2075
2084
|
};
|
|
2076
2085
|
return {
|
|
2077
2086
|
TOOLTIP_PREFIX_CLS: s2.TOOLTIP_PREFIX_CLS,
|
|
2078
|
-
onMenuClick
|
|
2087
|
+
onMenuClick,
|
|
2088
|
+
onMenuTitleClick,
|
|
2089
|
+
menus: menu == null ? void 0 : menu.items
|
|
2079
2090
|
};
|
|
2080
2091
|
},
|
|
2081
2092
|
components: {
|
|
@@ -2094,7 +2105,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2094
2105
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
2095
2106
|
class: vue.normalizeClass(`${_ctx.TOOLTIP_PREFIX_CLS}-operator`)
|
|
2096
2107
|
}, [
|
|
2097
|
-
_ctx.
|
|
2108
|
+
_ctx.onlyShowOperator ? (vue.openBlock(), vue.createBlock(_component_Menu, {
|
|
2098
2109
|
key: 0,
|
|
2099
2110
|
class: vue.normalizeClass(`${_ctx.TOOLTIP_PREFIX_CLS}-operator-menus`),
|
|
2100
2111
|
onClick: _ctx.onMenuClick
|
|
@@ -2138,10 +2149,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2138
2149
|
default: vue.withCtx(() => [
|
|
2139
2150
|
vue.createVNode(_component_TooltipOperatorTitle, {
|
|
2140
2151
|
menu,
|
|
2141
|
-
onClick: ($event) =>
|
|
2142
|
-
var _a;
|
|
2143
|
-
return (_a = menu.onClick) == null ? void 0 : _a.call(menu, _ctx.cell);
|
|
2144
|
-
}
|
|
2152
|
+
onClick: ($event) => _ctx.onMenuTitleClick(menu)
|
|
2145
2153
|
}, null, 8, ["menu", "onClick"])
|
|
2146
2154
|
]),
|
|
2147
2155
|
_: 2
|
|
@@ -2161,10 +2169,12 @@ const _sfc_main$6 = vue.defineComponent({
|
|
|
2161
2169
|
"content"
|
|
2162
2170
|
],
|
|
2163
2171
|
setup(props) {
|
|
2164
|
-
const { operator,
|
|
2172
|
+
const { operator, onlyShowOperator } = s2.getTooltipDefaultOptions(
|
|
2173
|
+
props.options
|
|
2174
|
+
);
|
|
2165
2175
|
return {
|
|
2166
2176
|
operator,
|
|
2167
|
-
|
|
2177
|
+
onlyShowOperator
|
|
2168
2178
|
};
|
|
2169
2179
|
},
|
|
2170
2180
|
components: {
|
|
@@ -2178,45 +2188,43 @@ const _sfc_main$6 = vue.defineComponent({
|
|
|
2178
2188
|
});
|
|
2179
2189
|
const index_vue_vue_type_style_index_0_lang = "";
|
|
2180
2190
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2181
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n
|
|
2191
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
2182
2192
|
const _component_TooltipOperator = vue.resolveComponent("TooltipOperator");
|
|
2183
2193
|
const _component_TooltipSimpleTips = vue.resolveComponent("TooltipSimpleTips");
|
|
2184
2194
|
const _component_TooltipSummary = vue.resolveComponent("TooltipSummary");
|
|
2185
2195
|
const _component_TooltipHeadInfo = vue.resolveComponent("TooltipHeadInfo");
|
|
2186
2196
|
const _component_TooltipDetail = vue.resolveComponent("TooltipDetail");
|
|
2187
2197
|
const _component_TooltipInfos = vue.resolveComponent("TooltipInfos");
|
|
2188
|
-
return _ctx.
|
|
2198
|
+
return _ctx.onlyShowOperator ? (vue.openBlock(), vue.createBlock(_component_TooltipOperator, {
|
|
2189
2199
|
key: 0,
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
cell: _ctx.cell
|
|
2193
|
-
|
|
2194
|
-
}, null, 8, ["menus", "cell", "onClick"])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
2200
|
+
menu: (_a = _ctx.operator) == null ? void 0 : _a.menu,
|
|
2201
|
+
onlyShowOperator: true,
|
|
2202
|
+
cell: _ctx.cell
|
|
2203
|
+
}, null, 8, ["menu", "cell"])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
2195
2204
|
vue.createVNode(_component_TooltipOperator, {
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
cell: _ctx.cell
|
|
2199
|
-
|
|
2200
|
-
}, null, 8, ["menus", "cell", "onClick"]),
|
|
2205
|
+
menu: (_b = _ctx.operator) == null ? void 0 : _b.menu,
|
|
2206
|
+
onlyShowOperator: false,
|
|
2207
|
+
cell: _ctx.cell
|
|
2208
|
+
}, null, 8, ["menu", "cell"]),
|
|
2201
2209
|
_ctx.content ? vue.renderSlot(_ctx.$slots, "content", { key: 0 }) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
2202
2210
|
vue.createVNode(_component_TooltipSimpleTips, {
|
|
2203
|
-
name: (
|
|
2204
|
-
tips: (
|
|
2211
|
+
name: (_c = _ctx.data) == null ? void 0 : _c.name,
|
|
2212
|
+
tips: (_d = _ctx.data) == null ? void 0 : _d.tips
|
|
2205
2213
|
}, null, 8, ["name", "tips"]),
|
|
2206
|
-
((
|
|
2214
|
+
((_f = (_e = _ctx.data) == null ? void 0 : _e.summaries) == null ? void 0 : _f.length) ? (vue.openBlock(), vue.createBlock(_component_TooltipSummary, {
|
|
2207
2215
|
key: 0,
|
|
2208
|
-
summaries: (
|
|
2216
|
+
summaries: (_g = _ctx.data) == null ? void 0 : _g.summaries
|
|
2209
2217
|
}, null, 8, ["summaries"])) : vue.createCommentVNode("", true),
|
|
2210
2218
|
vue.createVNode(_component_TooltipHeadInfo, {
|
|
2211
|
-
rows: ((
|
|
2212
|
-
cols: ((
|
|
2219
|
+
rows: ((_i = (_h = _ctx.data) == null ? void 0 : _h.headInfo) == null ? void 0 : _i.rows) || [],
|
|
2220
|
+
cols: ((_k = (_j = _ctx.data) == null ? void 0 : _j.headInfo) == null ? void 0 : _k.cols) || []
|
|
2213
2221
|
}, null, 8, ["rows", "cols"]),
|
|
2214
2222
|
vue.createVNode(_component_TooltipDetail, {
|
|
2215
|
-
list: ((
|
|
2223
|
+
list: ((_l = _ctx.data) == null ? void 0 : _l.details) || []
|
|
2216
2224
|
}, null, 8, ["list"]),
|
|
2217
|
-
((
|
|
2225
|
+
((_m = _ctx.data) == null ? void 0 : _m.infos) ? (vue.openBlock(), vue.createBlock(_component_TooltipInfos, {
|
|
2218
2226
|
key: 1,
|
|
2219
|
-
infos: (
|
|
2227
|
+
infos: (_n = _ctx.data) == null ? void 0 : _n.infos
|
|
2220
2228
|
}, null, 8, ["infos"])) : vue.createCommentVNode("", true)
|
|
2221
2229
|
], 64))
|
|
2222
2230
|
], 64));
|
|
@@ -2386,7 +2394,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2386
2394
|
const S2Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5]]);
|
|
2387
2395
|
const RENDER_TOOLTIP_OPTION = {
|
|
2388
2396
|
tooltip: {
|
|
2389
|
-
|
|
2397
|
+
render: (spreadsheet) => new CustomTooltip(spreadsheet)
|
|
2390
2398
|
}
|
|
2391
2399
|
};
|
|
2392
2400
|
const getSheetComponentOptions = (...options) => getBaseSheetComponentOptions(RENDER_TOOLTIP_OPTION, ...options);
|
|
@@ -2710,7 +2718,7 @@ const useSheetUpdate = (s2Ref, props) => {
|
|
|
2710
2718
|
(dataCfg, prevDataCfg) => {
|
|
2711
2719
|
var _a, _b, _c, _d, _e, _f;
|
|
2712
2720
|
if (((_b = (_a = prevDataCfg == null ? void 0 : prevDataCfg.fields) == null ? void 0 : _a.columns) == null ? void 0 : _b.length) !== ((_d = (_c = dataCfg == null ? void 0 : dataCfg.fields) == null ? void 0 : _c.columns) == null ? void 0 : _d.length)) {
|
|
2713
|
-
(_e = s2Ref.value) == null ? void 0 : _e.
|
|
2721
|
+
(_e = s2Ref.value) == null ? void 0 : _e.facet.clearInitColLeafNodes();
|
|
2714
2722
|
}
|
|
2715
2723
|
updateFlag.rerender = true;
|
|
2716
2724
|
updateFlag.reloadData = true;
|