vue2-client 1.9.194 → 1.9.195

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.9.194",
3
+ "version": "1.9.195",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -251,6 +251,28 @@ const init = (config = {}, requestParameters = {}) => {
251
251
  colors10: config.colorIndex !== undefined ? colorItems[config.colorIndex].map(item => item.color) : undefined,
252
252
  },
253
253
  }
254
+ // 如果data 超过 50 增加缩略图
255
+ if (sortedData.length > 500) {
256
+ baseOptions.slider = {
257
+ start: 0,
258
+ end: 0.2,
259
+ }
260
+ } else if (sortedData.length > 200) {
261
+ baseOptions.slider = {
262
+ start: 0,
263
+ end: 0.4,
264
+ }
265
+ } else if (sortedData.length > 100) {
266
+ baseOptions.slider = {
267
+ start: 0,
268
+ end: 0.6,
269
+ }
270
+ } else if (sortedData.length > 50) {
271
+ baseOptions.slider = {
272
+ start: 0,
273
+ end: 0.8,
274
+ }
275
+ }
254
276
  if (config.type !== 'pie') {
255
277
  baseOptions.isGroup = true
256
278
  }