@antv/s2-vue 1.4.0-alpha.1 → 1.5.0
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 -1
- 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 +302 -126
- package/esm/index.js +8 -2
- package/esm/index.js.map +1 -1
- package/esm/style.css +19 -2
- package/lib/index.js +8 -2
- package/lib/index.js.map +1 -1
- package/lib/style.css +19 -2
- package/package.json +3 -3
package/esm/style.css
CHANGED
|
@@ -37,10 +37,15 @@
|
|
|
37
37
|
font-size: 12px;
|
|
38
38
|
line-height: 32px;
|
|
39
39
|
padding: 0 12px;
|
|
40
|
-
color: rgba(0, 0, 0, 0.65);
|
|
41
40
|
border: 0;
|
|
42
41
|
margin: 0;
|
|
43
42
|
}
|
|
43
|
+
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-item:not(.ant-menu-item-active),
|
|
44
|
+
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-item:not(.ant-menu-item-active),
|
|
45
|
+
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-item:not(.ant-menu-item-active),
|
|
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);
|
|
48
|
+
}
|
|
44
49
|
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title,
|
|
45
50
|
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title,
|
|
46
51
|
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title,
|
|
@@ -52,9 +57,18 @@
|
|
|
52
57
|
padding: 0 12px;
|
|
53
58
|
font-size: 12px;
|
|
54
59
|
line-height: 32px;
|
|
55
|
-
color: rgba(0, 0, 0, 0.65);
|
|
56
60
|
margin: 0;
|
|
57
61
|
}
|
|
62
|
+
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),
|
|
63
|
+
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),
|
|
64
|
+
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active),
|
|
65
|
+
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active),
|
|
66
|
+
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),
|
|
67
|
+
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title:not(.ant-menu-item-active),
|
|
68
|
+
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title:not(.ant-menu-item-active),
|
|
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);
|
|
71
|
+
}
|
|
58
72
|
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,
|
|
59
73
|
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,
|
|
60
74
|
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title .ant-dropdown-menu-title-content,
|
|
@@ -78,6 +92,9 @@
|
|
|
78
92
|
font-size: 12px;
|
|
79
93
|
line-height: 32px;
|
|
80
94
|
padding: 0 12px;
|
|
95
|
+
}
|
|
96
|
+
.antv-s2-tooltip-operator-submenu-popup .ant-dropdown-menu-item:not(.ant-menu-item-active),
|
|
97
|
+
.antv-s2-tooltip-operator-submenu-popup .ant-menu-item:not(.ant-menu-item-active) {
|
|
81
98
|
color: rgba(0, 0, 0, 0.65);
|
|
82
99
|
}
|
|
83
100
|
.antv-s2-tooltip-operator-submenu-popup .ant-menu-vertical .ant-menu-item {
|
package/lib/index.js
CHANGED
|
@@ -1718,7 +1718,7 @@ const defaultPartDrillDownDisplayCondition = (meta) => {
|
|
|
1718
1718
|
};
|
|
1719
1719
|
const buildDrillDownOptions = (options, partDrillDown, callback) => {
|
|
1720
1720
|
var _a;
|
|
1721
|
-
const nextHeaderIcons = ((_a = options.headerActionIcons) == null ? void 0 : _a.length) ? [...options.headerActionIcons] : [];
|
|
1721
|
+
const nextHeaderIcons = ((_a = options == null ? void 0 : options.headerActionIcons) == null ? void 0 : _a.length) ? [...options.headerActionIcons] : [];
|
|
1722
1722
|
if (!isEmpty(partDrillDown)) {
|
|
1723
1723
|
const drillDownActionIcon = {
|
|
1724
1724
|
belongsCell: "rowCell",
|
|
@@ -2453,6 +2453,7 @@ const useEvents = (s2Ref, emit) => {
|
|
|
2453
2453
|
useS2Event(s2Ref, emit, s2.S2Event.GLOBAL_RESET, "reset");
|
|
2454
2454
|
useS2Event(s2Ref, emit, s2.S2Event.GLOBAL_LINK_FIELD_JUMP, "linkFieldJump");
|
|
2455
2455
|
useS2Event(s2Ref, emit, s2.S2Event.GLOBAL_SCROLL, "scroll");
|
|
2456
|
+
useS2Event(s2Ref, emit, s2.S2Event.LAYOUT_AFTER_REAL_DATA_CELL_RENDER, "layoutAfterRealDataCellRender");
|
|
2456
2457
|
useS2Event(s2Ref, emit, s2.S2Event.ROW_CELL_BRUSH_SELECTION, "rowCellBrushSelection");
|
|
2457
2458
|
useS2Event(s2Ref, emit, s2.S2Event.COL_CELL_BRUSH_SELECTION, "colCellBrushSelection");
|
|
2458
2459
|
});
|
|
@@ -2543,6 +2544,7 @@ function useSpreadSheet(props, emit) {
|
|
|
2543
2544
|
loading: loadingProps,
|
|
2544
2545
|
sheetType,
|
|
2545
2546
|
onSpreadsheet,
|
|
2547
|
+
onMounted: onS2Mounted,
|
|
2546
2548
|
onGetSpreadSheet
|
|
2547
2549
|
} = props;
|
|
2548
2550
|
const wrapperRef = vue.ref();
|
|
@@ -2569,6 +2571,7 @@ function useSpreadSheet(props, emit) {
|
|
|
2569
2571
|
s2Ref.value.render();
|
|
2570
2572
|
setLoading(false);
|
|
2571
2573
|
onGetSpreadSheet == null ? void 0 : onGetSpreadSheet(s2Ref.value);
|
|
2574
|
+
onS2Mounted == null ? void 0 : onS2Mounted(s2Ref.value);
|
|
2572
2575
|
};
|
|
2573
2576
|
vue.onMounted(buildSpreadSheet);
|
|
2574
2577
|
useEvents(s2Ref, emit);
|
|
@@ -2607,7 +2610,8 @@ const initBaseSheetProps = () => ({
|
|
|
2607
2610
|
default: false
|
|
2608
2611
|
},
|
|
2609
2612
|
onSpreadsheet: Function,
|
|
2610
|
-
onGetSpreadSheet: Function
|
|
2613
|
+
onGetSpreadSheet: Function,
|
|
2614
|
+
onMounted: Function
|
|
2611
2615
|
});
|
|
2612
2616
|
const initDrillDownProps = () => ({
|
|
2613
2617
|
className: String,
|
|
@@ -2695,6 +2699,7 @@ const initBaseSheetEmits = () => {
|
|
|
2695
2699
|
"layoutColsHidden",
|
|
2696
2700
|
"beforeRender",
|
|
2697
2701
|
"afterRender",
|
|
2702
|
+
"mounted",
|
|
2698
2703
|
"destroy",
|
|
2699
2704
|
"layoutResize",
|
|
2700
2705
|
"layoutResizeSeriesWidth",
|
|
@@ -2723,6 +2728,7 @@ const initBaseSheetEmits = () => {
|
|
|
2723
2728
|
"doubleClick",
|
|
2724
2729
|
"scroll",
|
|
2725
2730
|
"hover",
|
|
2731
|
+
"layoutAfterRealDataCellRender",
|
|
2726
2732
|
"rowCellBrushSelection",
|
|
2727
2733
|
"colCellBrushSelection"
|
|
2728
2734
|
];
|