@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/lib/style.css CHANGED
@@ -96,16 +96,43 @@
96
96
  width: 12px;
97
97
  height: 12px;
98
98
  }
99
- .antv-s2-tooltip-container{background:hsla(0,0%,100%,.96);border-radius:2px;box-shadow:0 1px 4px 0 rgba(0,0,0,.2);display:inline-block;font-family:Roboto,PingFang SC,Chinese Quote,BlinkMacSystemFont,Segoe UI,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;max-width:640px;min-width:200px;position:fixed;z-index:1024}.antv-s2-tooltip-container-show{opacity:1;pointer-events:all;visibility:visible}.antv-s2-tooltip-container-hide{opacity:0;pointer-events:none;visibility:hidden}.antv-s2-tooltip-container-hide *{transition:none}.antv-s2-tooltip-tips,
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
- }.antv-s2-tooltip-tips {
130
+ }
131
+ .antv-s2-tooltip-tips {
106
132
  padding: 4px 12px;
107
133
  color: rgba(0, 0, 0, 0.45);
108
- }.antv-s2-tooltip-infos {
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
- }.antv-s2-tooltip-summary {
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
- }.antv-s2-tooltip-summary-item {
154
+ }
155
+ .antv-s2-tooltip-summary-item {
127
156
  display: flex;
128
- }.antv-s2-tooltip-summary-key {
157
+ }
158
+ .antv-s2-tooltip-summary-key {
129
159
  margin-right: 20px;
130
- }.antv-s2-tooltip-summary-val {
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
- }.antv-s2-tooltip-interpretation {
167
+ }
168
+ .antv-s2-tooltip-interpretation {
137
169
  color: rgba(0, 0, 0, 0.65);
138
170
  overflow: hidden;
139
171
  padding: 12px;
140
- }.antv-s2-tooltip-interpretation + .antv-s2-tooltip-head-info-list {
172
+ }
173
+ .antv-s2-tooltip-interpretation + .antv-s2-tooltip-head-info-list {
141
174
  border-top: 1px solid #e9e9e9;
142
- }.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head {
175
+ }
176
+ .antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head {
143
177
  margin-bottom: 12px;
144
- }.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head .antv-s2-tooltip-interpretation-icon {
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
- }.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head .antv-s2-tooltip-interpretation-name {
182
+ }
183
+ .antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head .antv-s2-tooltip-interpretation-name {
148
184
  color: #000;
149
- }.antv-s2-tooltip-head-info-list {
185
+ }
186
+ .antv-s2-tooltip-head-info-list {
150
187
  color: #a2a2a2;
151
188
  padding: 12px 12px 4px;
152
189
  line-height: 20px;
153
- }.antv-s2-tooltip-bold,
190
+ }
191
+ .antv-s2-tooltip-bold,
154
192
  .antv-s2-tooltip-selected {
155
193
  font-weight: bold;
156
- }.antv-s2-tooltip-selected {
194
+ }
195
+ .antv-s2-tooltip-selected {
157
196
  margin-right: 5px;
158
- }.antv-s2-tooltip-highlight {
197
+ }
198
+ .antv-s2-tooltip-highlight {
159
199
  color: rgba(0, 0, 0, 0.85);
160
- }.antv-s2-tooltip-detail-list {
200
+ }
201
+ .antv-s2-tooltip-detail-list {
161
202
  padding: 2px 12px 8px;
162
- }.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item {
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
- }.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item-key {
211
+ }
212
+ .antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item-key {
170
213
  margin-right: 20px;
171
- }.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item-val {
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
- }.ant-dropdown-menu-item.operation-item {
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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@antv/s2-vue",
4
- "version": "1.0.1",
4
+ "version": "1.0.2",
5
5
  "main": "lib/index.js",
6
- "module": "esm/index.js",
7
6
  "unpkg": "dist/index.min.js",
7
+ "module": "esm/index.js",
8
8
  "types": "esm/index.d.ts",
9
9
  "description": "use S2 with vue",
10
10
  "license": "MIT",
@@ -39,16 +39,14 @@
39
39
  "scripts": {
40
40
  "start": "cross-env PLAYGROUND=true vite",
41
41
  "clean": "rimraf lib esm dist temp",
42
- "build": "npm-run-all clean --parallel build:umd build:cjs build:esm --sequential build:dts",
42
+ "build": "npm-run-all clean --parallel build:umd build:cjs build:esm build:dts",
43
43
  "build:esm": "cross-env FORMAT=es vite build",
44
44
  "build:cjs": "cross-env FORMAT=cjs vite build",
45
45
  "build:umd": "cross-env FORMAT=umd vite build",
46
46
  "build:analysis": "cross-env FORMAT=es ANALYSIS=true vite build",
47
47
  "build:dts": "run-s dts:*",
48
- "dts:build-shared": "yarn workspace @antv/s2-shared build:dts",
49
48
  "dts:build": "vue-tsc -p tsconfig.declaration.json",
50
49
  "dts:extract": "cross-env LIB=s2-vue node ../../scripts/dts.js",
51
- "dts:clean": "rimraf temp",
52
50
  "bundle:size": "bundlesize",
53
51
  "test": "jest --passWithNoTests",
54
52
  "test:coverage": "yarn test --coverage",