wargerm 0.4.26 → 0.4.29

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.
@@ -8,6 +8,7 @@ interface IsliderTabs {
8
8
  tabClassName?: string;
9
9
  activeTabClassName?: string;
10
10
  components: Array<ReactNode>;
11
+ onChange?: (event: any) => void;
11
12
  }
12
13
  declare type Props = {
13
14
  title: ReactNode;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ declare type config = {
3
+ config: {
4
+ list: [
5
+ {
6
+ name: String;
7
+ color: String;
8
+ data: String | Number[];
9
+ }
10
+ ];
11
+ xdata: String | Number[];
12
+ };
13
+ };
14
+ export default function LineEcharts({ config }: config): JSX.Element;
15
+ export {};
@@ -0,0 +1,13 @@
1
+ declare type RAFType = 'interval' | 'timeout';
2
+ declare type RAFCallback = (...args: any[]) => void;
3
+ export default class RAF {
4
+ private _timerIdMap;
5
+ constructor();
6
+ run(type: RAFType | undefined, cb: RAFCallback, interval?: number): symbol;
7
+ setIdMap(timerSymbol: symbol, type: RAFType, loop: () => void): void;
8
+ setTimeout(cb: RAFCallback, interval: number): symbol;
9
+ clearTimeout(timer: symbol): void;
10
+ setInterval(cb: RAFCallback, interval: number): symbol;
11
+ clearInterval(timer: symbol): void;
12
+ }
13
+ export {};
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ declare type Props = {
3
+ option: Record<string, any>;
4
+ style?: Record<string, any>;
5
+ onChartReady?: (echarts: any, option: any) => void;
6
+ EventsDict?: Record<string, any>;
7
+ opts?: Record<string, any>;
8
+ ref?: any;
9
+ otherProps?: any;
10
+ autoLoop?: boolean;
11
+ duration?: number;
12
+ seriesIndex?: number;
13
+ data?: Array<any>;
14
+ };
15
+ declare const _default: React.MemoExoticComponent<({ option, onChartReady, EventsDict, style, ref, autoLoop, duration, seriesIndex, opts, otherProps, }: Props) => JSX.Element>;
16
+ export default _default;
@@ -0,0 +1,138 @@
1
+ declare const theme: {
2
+ darkMode: boolean;
3
+ color: string[];
4
+ backgroundColor: string;
5
+ axisPointer: {
6
+ lineStyle: {
7
+ color: string;
8
+ };
9
+ crossStyle: {
10
+ color: string;
11
+ };
12
+ label: {
13
+ color: string;
14
+ backgroundColor: string;
15
+ };
16
+ };
17
+ legend: {
18
+ textStyle: {
19
+ color: string;
20
+ };
21
+ };
22
+ textStyle: {
23
+ color: string;
24
+ };
25
+ title: {
26
+ textStyle: {
27
+ color: string;
28
+ };
29
+ subtextStyle: {
30
+ color: string;
31
+ };
32
+ };
33
+ toolbox: {
34
+ iconStyle: {
35
+ borderColor: string;
36
+ };
37
+ };
38
+ dataZoom: {
39
+ borderColor: string;
40
+ textStyle: {
41
+ color: string;
42
+ };
43
+ brushStyle: {
44
+ color: string;
45
+ };
46
+ handleStyle: {
47
+ color: string;
48
+ borderColor: string;
49
+ };
50
+ moveHandleStyle: {
51
+ color: string;
52
+ opacity: number;
53
+ };
54
+ fillerColor: string;
55
+ emphasis: {
56
+ handleStyle: {
57
+ borderColor: string;
58
+ color: string;
59
+ };
60
+ moveHandleStyle: {
61
+ color: string;
62
+ opacity: number;
63
+ };
64
+ };
65
+ dataBackground: {
66
+ lineStyle: {
67
+ color: string;
68
+ width: number;
69
+ };
70
+ areaStyle: {
71
+ color: string;
72
+ };
73
+ };
74
+ selectedDataBackground: {
75
+ lineStyle: {
76
+ color: string;
77
+ };
78
+ areaStyle: {
79
+ color: string;
80
+ };
81
+ };
82
+ };
83
+ visualMap: {
84
+ textStyle: {
85
+ color: string;
86
+ };
87
+ };
88
+ timeline: {
89
+ lineStyle: {
90
+ color: string;
91
+ };
92
+ label: {
93
+ color: string;
94
+ };
95
+ controlStyle: {
96
+ color: string;
97
+ borderColor: string;
98
+ };
99
+ };
100
+ calendar: {
101
+ itemStyle: {
102
+ color: string;
103
+ };
104
+ dayLabel: {
105
+ color: string;
106
+ };
107
+ monthLabel: {
108
+ color: string;
109
+ };
110
+ yearLabel: {
111
+ color: string;
112
+ };
113
+ };
114
+ timeAxis: any;
115
+ logAxis: any;
116
+ valueAxis: any;
117
+ categoryAxis: any;
118
+ line: {
119
+ symbol: string;
120
+ };
121
+ graph: {
122
+ color: string[];
123
+ };
124
+ gauge: {
125
+ title: {
126
+ color: string;
127
+ };
128
+ };
129
+ candlestick: {
130
+ itemStyle: {
131
+ color: string;
132
+ color0: string;
133
+ borderColor: string;
134
+ borderColor0: string;
135
+ };
136
+ };
137
+ };
138
+ export default theme;
@@ -0,0 +1,4 @@
1
+ import RAF from './RAF';
2
+ export declare function useRAF(): {
3
+ raf: RAF;
4
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: () => JSX.Element;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: () => JSX.Element;
3
+ export default _default;
@@ -5,6 +5,7 @@ declare type propsType = {
5
5
  height: number | string;
6
6
  width: number | string;
7
7
  };
8
+ layouts?: Array<any>;
8
9
  layoutIndex?: number;
9
10
  config?: Object;
10
11
  url?: string[];
@@ -53,6 +53,7 @@ export interface WFormProps extends FormProps {
53
53
  extraColumns?: ColumnProps[];
54
54
  disabled?: boolean;
55
55
  disabledHideInSearch?: boolean;
56
+ setForm?: (form: any) => void;
56
57
  onSubmit?: (params: Record<string, any>) => void;
57
58
  onFormChange?: (changedValues: Record<string, any>, allValues: Record<string, any>, form: any) => void;
58
59
  onReset?: () => void;
package/dist/index.d.ts CHANGED
@@ -28,3 +28,4 @@ export { default as Cascader } from './components/Cascader';
28
28
  export { default as WebsocketHeart } from './components/WebsocketHeart';
29
29
  export { default as VideoPlayer } from './components/VideoPlayer';
30
30
  export { default as Video } from './components/Video';
31
+ export { default as LineEcharts } from './components/LineEcharts';