mrxy-yk 1.2.1 → 1.2.3

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.
@@ -417,8 +417,8 @@ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, Comp
417
417
  onChange?: (...args: any[]) => any;
418
418
  onError?: (...args: any[]) => any;
419
419
  }>, {
420
- accept: string;
421
420
  maxSize: number;
421
+ accept: string;
422
422
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
423
423
  uploadRef: {
424
424
  $: ComponentInternalInstance;
@@ -436,10 +436,10 @@ declare const __VLS_component: DefineComponent<__VLS_Props, {
436
436
  width: string;
437
437
  height: string;
438
438
  drag: boolean;
439
+ maxSize: number;
439
440
  isJoin: boolean;
440
441
  uploadClass: string;
441
442
  accept: string;
442
- maxSize: number;
443
443
  limit: number;
444
444
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
445
445
  uploadRef: {
@@ -434,10 +434,10 @@ declare const __VLS_component: DefineComponent<__VLS_Props, {
434
434
  }>, {
435
435
  width: string;
436
436
  height: string;
437
+ maxSize: number;
437
438
  isJoin: boolean;
438
439
  uploadClass: string;
439
440
  accept: string;
440
- maxSize: number;
441
441
  limit: number;
442
442
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
443
443
  uploadRef: {
@@ -18,7 +18,7 @@ export declare class EcBasicOption {
18
18
  * 更新EChart配置项,不更新内部配置项
19
19
  * @param option { EcOptionBasicOption }
20
20
  */
21
- setOption(option: EcOptionBasicOption): void;
21
+ setOption(option: EcOptionBasicOption | EChartsOption): void;
22
22
  /**
23
23
  * 清空Echarts,同时清空内部系列信息
24
24
  */
@@ -31,7 +31,7 @@ export declare class EcBasicOption {
31
31
  * 更新内部配置项
32
32
  * @param option { EcOptionBasicOption }
33
33
  */
34
- updateOption(option?: EcOptionBasicOption): this;
34
+ updateOption(option?: EcOptionBasicOption | EChartsOption): this;
35
35
  }
36
36
  /**
37
37
  * ECharts系列对象
@@ -94,13 +94,17 @@ class EcBasicOption {
94
94
  if (this.ec) {
95
95
  this.ec.clear();
96
96
  }
97
- this.clearSeries();
97
+ this.currentOption.series = [];
98
98
  }
99
99
  /**
100
100
  * 清空系列
101
101
  */
102
102
  clearSeries() {
103
103
  this.currentOption.series = [];
104
+ if (this.ec) {
105
+ this.ec.clear();
106
+ this.ec.setOption(this.valueOf());
107
+ }
104
108
  }
105
109
  /**
106
110
  * 更新内部配置项
@@ -1,4 +1,4 @@
1
- import { BarSeriesOption, EChartsOption, LineSeriesOption } from 'echarts';
1
+ import { BarSeriesOption, EChartsOption, LineSeriesOption, SeriesOption } from 'echarts';
2
2
  import { EcBasicSeries } from '.';
3
3
  // region 根配置
4
4
  export type EcOptionBasicOption = EChartsOption & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mrxy-yk",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "A collection of Vue 3 components and utilities",
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "mrxy-yk",
4
- "version": "1.2.1",
4
+ "version": "1.2.3",
5
5
  "js-types-syntax": "typescript",
6
6
  "contributions": {
7
7
  "html": {