@antv/s2-vue 1.0.1 → 1.0.2
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/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 +3376 -743
- package/esm/index.js +2 -3
- package/esm/index.js.map +1 -1
- package/esm/style.css +66 -21
- package/lib/index.js +2 -3
- package/lib/index.js.map +1 -1
- package/lib/style.css +66 -21
- package/package.json +3 -5
package/esm/style.css
CHANGED
|
@@ -96,16 +96,43 @@
|
|
|
96
96
|
width: 12px;
|
|
97
97
|
height: 12px;
|
|
98
98
|
}
|
|
99
|
-
.antv-s2-tooltip-container
|
|
99
|
+
.antv-s2-tooltip-container {
|
|
100
|
+
position: fixed;
|
|
101
|
+
min-width: 200px;
|
|
102
|
+
max-width: 640px;
|
|
103
|
+
z-index: 1024;
|
|
104
|
+
display: inline-block;
|
|
105
|
+
background: rgba(255, 255, 255, 0.96);
|
|
106
|
+
border-radius: 2px;
|
|
107
|
+
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
|
|
108
|
+
font-size: 12px;
|
|
109
|
+
font-family: 'Roboto', 'PingFang SC', 'Chinese Quote', 'BlinkMacSystemFont', 'Segoe UI', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
110
|
+
}
|
|
111
|
+
.antv-s2-tooltip-container-hide {
|
|
112
|
+
opacity: 0;
|
|
113
|
+
visibility: hidden;
|
|
114
|
+
pointer-events: none;
|
|
115
|
+
}
|
|
116
|
+
.antv-s2-tooltip-container-hide * {
|
|
117
|
+
transition: none;
|
|
118
|
+
}
|
|
119
|
+
.antv-s2-tooltip-container-show {
|
|
120
|
+
opacity: 1;
|
|
121
|
+
visibility: visible;
|
|
122
|
+
pointer-events: all;
|
|
123
|
+
}
|
|
124
|
+
.antv-s2-tooltip-tips,
|
|
100
125
|
.antv-s2-tooltip-name {
|
|
101
126
|
padding: 12px;
|
|
102
127
|
line-height: 16px;
|
|
103
128
|
overflow-wrap: break-word;
|
|
104
129
|
color: rgba(0, 0, 0, 0.85);
|
|
105
|
-
}
|
|
130
|
+
}
|
|
131
|
+
.antv-s2-tooltip-tips {
|
|
106
132
|
padding: 4px 12px;
|
|
107
133
|
color: rgba(0, 0, 0, 0.45);
|
|
108
|
-
}
|
|
134
|
+
}
|
|
135
|
+
.antv-s2-tooltip-infos {
|
|
109
136
|
padding: 4px 12px;
|
|
110
137
|
line-height: 20px;
|
|
111
138
|
color: rgba(0, 0, 0, 0.45);
|
|
@@ -118,63 +145,81 @@
|
|
|
118
145
|
background: rgba(249, 249, 249, 0.96);
|
|
119
146
|
border-radius: 0 0 2px 2px;
|
|
120
147
|
background-color: #f9f9f9;
|
|
121
|
-
}
|
|
148
|
+
}
|
|
149
|
+
.antv-s2-tooltip-summary {
|
|
122
150
|
line-height: 20px;
|
|
123
151
|
color: rgba(0, 0, 0, 0.65);
|
|
124
152
|
overflow: hidden;
|
|
125
153
|
padding: 12px;
|
|
126
|
-
}
|
|
154
|
+
}
|
|
155
|
+
.antv-s2-tooltip-summary-item {
|
|
127
156
|
display: flex;
|
|
128
|
-
}
|
|
157
|
+
}
|
|
158
|
+
.antv-s2-tooltip-summary-key {
|
|
129
159
|
margin-right: 20px;
|
|
130
|
-
}
|
|
160
|
+
}
|
|
161
|
+
.antv-s2-tooltip-summary-val {
|
|
131
162
|
flex: 1;
|
|
132
163
|
text-align: right;
|
|
133
164
|
text-overflow: ellipsis;
|
|
134
165
|
white-space: nowrap;
|
|
135
166
|
overflow: hidden;
|
|
136
|
-
}
|
|
167
|
+
}
|
|
168
|
+
.antv-s2-tooltip-interpretation {
|
|
137
169
|
color: rgba(0, 0, 0, 0.65);
|
|
138
170
|
overflow: hidden;
|
|
139
171
|
padding: 12px;
|
|
140
|
-
}
|
|
172
|
+
}
|
|
173
|
+
.antv-s2-tooltip-interpretation + .antv-s2-tooltip-head-info-list {
|
|
141
174
|
border-top: 1px solid #e9e9e9;
|
|
142
|
-
}
|
|
175
|
+
}
|
|
176
|
+
.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head {
|
|
143
177
|
margin-bottom: 12px;
|
|
144
|
-
}
|
|
178
|
+
}
|
|
179
|
+
.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head .antv-s2-tooltip-interpretation-icon {
|
|
145
180
|
width: 14px;
|
|
146
181
|
height: 14px;
|
|
147
|
-
}
|
|
182
|
+
}
|
|
183
|
+
.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head .antv-s2-tooltip-interpretation-name {
|
|
148
184
|
color: #000;
|
|
149
|
-
}
|
|
185
|
+
}
|
|
186
|
+
.antv-s2-tooltip-head-info-list {
|
|
150
187
|
color: #a2a2a2;
|
|
151
188
|
padding: 12px 12px 4px;
|
|
152
189
|
line-height: 20px;
|
|
153
|
-
}
|
|
190
|
+
}
|
|
191
|
+
.antv-s2-tooltip-bold,
|
|
154
192
|
.antv-s2-tooltip-selected {
|
|
155
193
|
font-weight: bold;
|
|
156
|
-
}
|
|
194
|
+
}
|
|
195
|
+
.antv-s2-tooltip-selected {
|
|
157
196
|
margin-right: 5px;
|
|
158
|
-
}
|
|
197
|
+
}
|
|
198
|
+
.antv-s2-tooltip-highlight {
|
|
159
199
|
color: rgba(0, 0, 0, 0.85);
|
|
160
|
-
}
|
|
200
|
+
}
|
|
201
|
+
.antv-s2-tooltip-detail-list {
|
|
161
202
|
padding: 2px 12px 8px;
|
|
162
|
-
}
|
|
203
|
+
}
|
|
204
|
+
.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item {
|
|
163
205
|
color: rgba(0, 0, 0, 0.65);
|
|
164
206
|
overflow: hidden;
|
|
165
207
|
margin: 4px 0;
|
|
166
208
|
display: flex;
|
|
167
209
|
justify-content: space-around;
|
|
168
210
|
align-items: center;
|
|
169
|
-
}
|
|
211
|
+
}
|
|
212
|
+
.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item-key {
|
|
170
213
|
margin-right: 20px;
|
|
171
|
-
}
|
|
214
|
+
}
|
|
215
|
+
.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item-val {
|
|
172
216
|
flex: 1;
|
|
173
217
|
text-align: right;
|
|
174
218
|
text-overflow: ellipsis;
|
|
175
219
|
white-space: nowrap;
|
|
176
220
|
overflow: hidden;
|
|
177
|
-
}
|
|
221
|
+
}
|
|
222
|
+
.ant-dropdown-menu-item.operation-item {
|
|
178
223
|
font-size: 12px;
|
|
179
224
|
}
|
|
180
225
|
.antv-s2-spin.ant-spin-nested-loading,
|
package/lib/index.js
CHANGED
|
@@ -1254,7 +1254,7 @@ const createResizeObserver = (params) => {
|
|
|
1254
1254
|
};
|
|
1255
1255
|
const debounceRender = debounce(render, RESIZE_RENDER_DELAY);
|
|
1256
1256
|
const onResize = () => {
|
|
1257
|
-
const {
|
|
1257
|
+
const { clientWidth: nodeWidth, clientHeight: nodeHeight } = container;
|
|
1258
1258
|
const width = adaptiveWidth ? Math.floor(nodeWidth != null ? nodeWidth : s22.options.width) : s22.options.width;
|
|
1259
1259
|
const height = adaptiveHeight ? Math.floor(nodeHeight != null ? nodeHeight : s22.options.height) : s22.options.height;
|
|
1260
1260
|
if (!adaptiveWidth && !adaptiveHeight) {
|
|
@@ -2101,9 +2101,8 @@ function useSpreadSheet(props, emit) {
|
|
|
2101
2101
|
const rawDataCfg = vue.toRaw(dataCfg);
|
|
2102
2102
|
const rawOptions = vue.toRaw(options);
|
|
2103
2103
|
const s2Options = getSheetComponentOptions(rawOptions);
|
|
2104
|
-
const s2Constructor = [container, rawDataCfg, s2Options];
|
|
2105
2104
|
if (onSpreadsheet) {
|
|
2106
|
-
return onSpreadsheet(
|
|
2105
|
+
return onSpreadsheet(container, rawDataCfg, s2Options);
|
|
2107
2106
|
}
|
|
2108
2107
|
if (sheetType === "table") {
|
|
2109
2108
|
return new s2.TableSheet(container, rawDataCfg, s2Options);
|