@ecan-bi/datav 1.0.38 → 1.0.41
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.es.js +32 -45
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +31 -44
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/types/common/echarts/Echarts.d.ts +418 -0
- package/types/common/echarts/index.d.ts +2 -2
- package/types/common/index.d.ts +1 -1
- package/types/common/skeleton/Skeleton.vue.d.ts +14 -0
- package/types/common/skeleton/index.d.ts +2 -0
- package/types/container/modal/Modal.vue.d.ts +2 -2
- package/types/container/modal/index.d.ts +2 -2
- package/types/control/range-picker/RangePicker.vue.d.ts +2 -2
- package/types/control/range-picker/index.d.ts +2 -2
- package/dist/src/_utils/constant.d.ts +0 -7
- package/dist/src/_utils/hooks/index.d.ts +0 -13
- package/dist/src/_utils/hooks/useDownloadFile.d.ts +0 -2
- package/dist/src/_utils/hooks/useEmitEvent.d.ts +0 -7
- package/dist/src/_utils/hooks/useImagePath.d.ts +0 -2
- package/dist/src/_utils/hooks/useOnEvent.d.ts +0 -6
- package/dist/src/_utils/hooks/usePageUrl.d.ts +0 -2
- package/dist/src/_utils/hooks/usePickComponentStyle.d.ts +0 -9
- package/dist/src/_utils/hooks/usePickEchartsData.d.ts +0 -2
- package/dist/src/_utils/hooks/useRequestData.d.ts +0 -6
- package/dist/src/_utils/hooks/useRequestDiagramData.d.ts +0 -6
- package/dist/src/_utils/hooks/useTooltipFormatter.d.ts +0 -4
- package/dist/src/_utils/hooks/useTransformChartDataByAttrKey.d.ts +0 -13
- package/dist/src/_utils/hooks/useTransformChartDataByAttrValue.d.ts +0 -13
- package/dist/src/_utils/hooks/useValueFormatter.d.ts +0 -2
- package/dist/src/_utils/hooks/useVariablesInText.d.ts +0 -4
- package/dist/src/_utils/props.d.ts +0 -71
- package/dist/src/_utils/request.d.ts +0 -2
- package/dist/src/_utils/util.d.ts +0 -20
- package/dist/src/_utils/withInstall.d.ts +0 -5
- package/dist/src/common/echarts/composables/api.d.ts +0 -7
- package/dist/src/common/echarts/composables/autoresize.d.ts +0 -6
- package/dist/src/common/echarts/composables/index.d.ts +0 -3
- package/dist/src/common/echarts/composables/loading.d.ts +0 -10
- package/dist/src/common/echarts/index.d.ts +0 -2
- package/dist/src/common/echarts/types.d.ts +0 -20
- package/dist/src/common/echarts/utils.d.ts +0 -6
- package/dist/src/common/index.d.ts +0 -3
- package/dist/src/common/spin/Spin.vue.d.ts +0 -18
- package/dist/src/common/spin/index.d.ts +0 -2
- package/dist/src/components.d.ts +0 -9
- package/dist/src/container/border/Border.vue.d.ts +0 -494
- package/dist/src/container/border/index.d.ts +0 -494
- package/dist/src/container/border/props.d.ts +0 -255
- package/dist/src/container/index.d.ts +0 -2
- package/dist/src/container/modal/Modal.vue.d.ts +0 -505
- package/dist/src/container/modal/index.d.ts +0 -506
- package/dist/src/container/modal/props.d.ts +0 -179
- package/dist/src/control/button/Button.vue.d.ts +0 -404
- package/dist/src/control/button/index.d.ts +0 -404
- package/dist/src/control/button/props.d.ts +0 -205
- package/dist/src/control/date-picker/DatePicker.vue.d.ts +0 -480
- package/dist/src/control/date-picker/index.d.ts +0 -479
- package/dist/src/control/date-picker/props.d.ts +0 -245
- package/dist/src/control/index.d.ts +0 -6
- package/dist/src/control/input/Input.vue.d.ts +0 -438
- package/dist/src/control/input/index.d.ts +0 -439
- package/dist/src/control/input/props.d.ts +0 -224
- package/dist/src/control/range-picker/RangePicker.vue.d.ts +0 -596
- package/dist/src/control/range-picker/index.d.ts +0 -595
- package/dist/src/control/range-picker/props.d.ts +0 -245
- package/dist/src/control/select/Select.vue.d.ts +0 -613
- package/dist/src/control/select/index.d.ts +0 -613
- package/dist/src/control/select/props.d.ts +0 -321
- package/dist/src/control/tabs/Tabs.vue.d.ts +0 -447
- package/dist/src/control/tabs/index.d.ts +0 -448
- package/dist/src/control/tabs/props.d.ts +0 -235
- package/dist/src/graph/bar/Bar.vue.d.ts +0 -1963
- package/dist/src/graph/bar/index.d.ts +0 -1963
- package/dist/src/graph/bar/props.d.ts +0 -954
- package/dist/src/graph/combo-graph/ComboGraph.vue.d.ts +0 -853
- package/dist/src/graph/combo-graph/index.d.ts +0 -854
- package/dist/src/graph/combo-graph/props.d.ts +0 -429
- package/dist/src/graph/custom-graph/CustomGraph.vue.d.ts +0 -537
- package/dist/src/graph/custom-graph/index.d.ts +0 -537
- package/dist/src/graph/custom-graph/props.d.ts +0 -274
- package/dist/src/graph/index.d.ts +0 -6
- package/dist/src/graph/line/Line.vue.d.ts +0 -818
- package/dist/src/graph/line/index.d.ts +0 -819
- package/dist/src/graph/line/props.d.ts +0 -409
- package/dist/src/graph/pie/Pie.vue.d.ts +0 -894
- package/dist/src/graph/pie/index.d.ts +0 -895
- package/dist/src/graph/pie/props.d.ts +0 -461
- package/dist/src/graph/scatter/Scatter.vue.d.ts +0 -794
- package/dist/src/graph/scatter/index.d.ts +0 -795
- package/dist/src/graph/scatter/props.d.ts +0 -396
- package/dist/src/index.d.ts +0 -6
- package/dist/src/map/index.d.ts +0 -1
- package/dist/src/map/map/Map.vue.d.ts +0 -1699
- package/dist/src/map/map/index.d.ts +0 -1700
- package/dist/src/map/map/props.d.ts +0 -829
- package/dist/src/media/image/Image.vue.d.ts +0 -476
- package/dist/src/media/image/index.d.ts +0 -477
- package/dist/src/media/image/props.d.ts +0 -244
- package/dist/src/media/index.d.ts +0 -1
- package/dist/src/setting/index.d.ts +0 -2
- package/dist/src/setting/page-config/PageConfig.vue.d.ts +0 -112
- package/dist/src/setting/page-config/index.d.ts +0 -113
- package/dist/src/setting/page-config/props.d.ts +0 -61
- package/dist/src/setting/provider-config/ProviderConfig.vue.d.ts +0 -48
- package/dist/src/setting/provider-config/index.d.ts +0 -49
- package/dist/src/setting/provider-config/props.d.ts +0 -29
- package/dist/src/table/index.d.ts +0 -1
- package/dist/src/table/table/Table.vue.d.ts +0 -552
- package/dist/src/table/table/index.d.ts +0 -553
- package/dist/src/table/table/props.d.ts +0 -285
- package/dist/src/text/index.d.ts +0 -5
- package/dist/src/text/list/List.vue.d.ts +0 -849
- package/dist/src/text/list/index.d.ts +0 -849
- package/dist/src/text/list/props.d.ts +0 -441
- package/dist/src/text/proportion/Proportion.vue.d.ts +0 -760
- package/dist/src/text/proportion/index.d.ts +0 -760
- package/dist/src/text/proportion/props.d.ts +0 -395
- package/dist/src/text/scroll-text/ScrollText.vue.d.ts +0 -4
- package/dist/src/text/scroll-text/index.d.ts +0 -4
- package/dist/src/text/text/Text.vue.d.ts +0 -736
- package/dist/src/text/text/index.d.ts +0 -736
- package/dist/src/text/text/props.d.ts +0 -383
- package/dist/src/text/time-display/TimeDisplay.vue.d.ts +0 -547
- package/dist/src/text/time-display/index.d.ts +0 -548
- package/dist/src/text/time-display/props.d.ts +0 -284
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Data, KeyTypeDataFieldNames } from '../props';
|
|
2
|
-
/**
|
|
3
|
-
* 图形转化数据
|
|
4
|
-
* @param data 数据
|
|
5
|
-
* @param dataFieldNames 字段映射
|
|
6
|
-
*/
|
|
7
|
-
export declare const useTransformChartDataByAttrKey: (data: Data, dataFieldNames: KeyTypeDataFieldNames) => {
|
|
8
|
-
dimensions: unknown[];
|
|
9
|
-
dataset: {
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
}[];
|
|
12
|
-
};
|
|
13
|
-
export default useTransformChartDataByAttrKey;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Data, ValueTypeDataFieldNames } from '../props';
|
|
2
|
-
/**
|
|
3
|
-
* 图形转化数据
|
|
4
|
-
* @param data 数据
|
|
5
|
-
* @param dataFieldNames 字段映射
|
|
6
|
-
*/
|
|
7
|
-
export declare const useTransformChartDataByAttrValue: (data: Data, dataFieldNames?: ValueTypeDataFieldNames) => {
|
|
8
|
-
dimensions: unknown[];
|
|
9
|
-
dataset: {
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
}[];
|
|
12
|
-
};
|
|
13
|
-
export default useTransformChartDataByAttrValue;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
interface Event {
|
|
2
|
-
on: string;
|
|
3
|
-
target: string;
|
|
4
|
-
emit: string;
|
|
5
|
-
}
|
|
6
|
-
export declare type Events = Event[];
|
|
7
|
-
export declare type RequestMethod = 'get' | 'post' | 'put' | 'delete' | 'head';
|
|
8
|
-
export interface RequestParam {
|
|
9
|
-
key: string;
|
|
10
|
-
value: {
|
|
11
|
-
id: string;
|
|
12
|
-
prop: string;
|
|
13
|
-
} | string;
|
|
14
|
-
}
|
|
15
|
-
export declare type RequestParams = RequestParam[];
|
|
16
|
-
export interface Props {
|
|
17
|
-
id: string;
|
|
18
|
-
name: string;
|
|
19
|
-
keyName: string;
|
|
20
|
-
type: string;
|
|
21
|
-
width: string;
|
|
22
|
-
height: string;
|
|
23
|
-
position: string;
|
|
24
|
-
top: string;
|
|
25
|
-
left: string;
|
|
26
|
-
zIndex: number;
|
|
27
|
-
rotate: string;
|
|
28
|
-
isShow: boolean;
|
|
29
|
-
isRender: boolean;
|
|
30
|
-
events: Events;
|
|
31
|
-
requestUrl: string;
|
|
32
|
-
requestMethod: RequestMethod;
|
|
33
|
-
requestHeaders: {
|
|
34
|
-
[key: string]: any;
|
|
35
|
-
};
|
|
36
|
-
isOpenRequestTimer: boolean;
|
|
37
|
-
requestInterval: number;
|
|
38
|
-
requestParams: RequestParams;
|
|
39
|
-
requestSort: number;
|
|
40
|
-
dataType: 'static' | 'request' | 'indicator';
|
|
41
|
-
}
|
|
42
|
-
export declare const props: Props;
|
|
43
|
-
export declare const transformToComponentProps: <T extends {}>(props: T) => { [P in keyof T]: {
|
|
44
|
-
type?: undefined;
|
|
45
|
-
default?: undefined;
|
|
46
|
-
} | {
|
|
47
|
-
type: any;
|
|
48
|
-
default: T[keyof T];
|
|
49
|
-
}; };
|
|
50
|
-
export interface EventsProp {
|
|
51
|
-
events: Events;
|
|
52
|
-
}
|
|
53
|
-
interface DataItem {
|
|
54
|
-
name: string | number;
|
|
55
|
-
value: string | number;
|
|
56
|
-
type?: string;
|
|
57
|
-
}
|
|
58
|
-
export declare type Data = DataItem[];
|
|
59
|
-
export interface KeyTypeDataFieldNames {
|
|
60
|
-
name: string;
|
|
61
|
-
types: {
|
|
62
|
-
label: string;
|
|
63
|
-
value: string;
|
|
64
|
-
}[];
|
|
65
|
-
}
|
|
66
|
-
export interface ValueTypeDataFieldNames {
|
|
67
|
-
name: string;
|
|
68
|
-
value: string;
|
|
69
|
-
type: string;
|
|
70
|
-
}
|
|
71
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare const handleAxisLabelFormatter: (formatter: string) => string;
|
|
2
|
-
/**
|
|
3
|
-
* 处理图表format, 目前只做 \\n => \n 转化
|
|
4
|
-
* @param formatter 格式化字符串
|
|
5
|
-
*/
|
|
6
|
-
export declare const handleFormatter: (formatter: string) => string;
|
|
7
|
-
/**
|
|
8
|
-
* 格式化金额
|
|
9
|
-
* @param value 数值
|
|
10
|
-
* @param decimalPlaces 格式化位数
|
|
11
|
-
*/
|
|
12
|
-
export declare const formatMoney: (value: string | number, decimalPlaces?: number) => string | number;
|
|
13
|
-
export declare const formatPercentage: (value: string | number, decimalPlaces?: number) => string | number;
|
|
14
|
-
/**
|
|
15
|
-
* 字符串1 中是否包含 字符串2 (会全部转成小写)
|
|
16
|
-
* @param v1 字符串1
|
|
17
|
-
* @param v2 字符串2
|
|
18
|
-
* @constructor
|
|
19
|
-
*/
|
|
20
|
-
export declare const lowerCaseIncludes: (v1: any, v2: any) => boolean;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Plugin } from 'vue';
|
|
2
|
-
export declare type SFCWithInstall<T> = T & Plugin;
|
|
3
|
-
export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E) => SFCWithInstall<T> & E;
|
|
4
|
-
export declare const withInstallFunction: <T>(fn: T, name: string) => SFCWithInstall<T>;
|
|
5
|
-
export declare const withNoopInstall: <T>(component: T) => SFCWithInstall<T>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { EChartsType, Option } from '../types';
|
|
3
|
-
declare const METHOD_NAMES: readonly ["getWidth", "getHeight", "getDom", "getOption", "resize", "dispatchAction", "convertToPixel", "convertFromPixel", "containPixel", "getDataURL", "getConnectedDataURL", "appendData", "clear", "isDisposed", "dispose"];
|
|
4
|
-
declare type MethodName = typeof METHOD_NAMES[number];
|
|
5
|
-
declare type PublicMethods = Pick<EChartsType, MethodName>;
|
|
6
|
-
export declare function usePublicAPI(chart: Ref<EChartsType | undefined>, init: (option?: Option) => void): PublicMethods;
|
|
7
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { EChartsType } from '../types';
|
|
3
|
-
export declare function useAutoresize(chart: Ref<EChartsType | undefined>, autoresize: Ref<boolean>, root: Ref<HTMLElement | undefined>): void;
|
|
4
|
-
export declare const autoresizeProps: {
|
|
5
|
-
autoresize: BooleanConstructor;
|
|
6
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { EChartsType } from '../types';
|
|
3
|
-
export declare const LOADING_OPTIONS_KEY = "ecLoadingOptions";
|
|
4
|
-
declare type UnknownRecord = Record<string, unknown>;
|
|
5
|
-
export declare function useLoading(chart: Ref<EChartsType | undefined>, loading: Ref<boolean>, loadingOptions: Ref<UnknownRecord | undefined>): void;
|
|
6
|
-
export declare const loadingProps: {
|
|
7
|
-
loading: BooleanConstructor;
|
|
8
|
-
loadingOptions: ObjectConstructor;
|
|
9
|
-
};
|
|
10
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { init } from 'echarts/core';
|
|
2
|
-
import { Ref } from 'vue';
|
|
3
|
-
declare type InitType = typeof init;
|
|
4
|
-
export declare type InitParameters = Parameters<InitType>;
|
|
5
|
-
export declare type Theme = NonNullable<InitParameters[1]>;
|
|
6
|
-
export declare type ThemeInjection = Theme | null | Ref<Theme | null>;
|
|
7
|
-
export declare type InitOptions = NonNullable<InitParameters[2]>;
|
|
8
|
-
export declare type InitOptionsInjection = InitOptions | null | Ref<InitOptions | null>;
|
|
9
|
-
export declare type EChartsType = ReturnType<InitType>;
|
|
10
|
-
declare type SetOptionType = EChartsType['setOption'];
|
|
11
|
-
export declare type Option = Parameters<SetOptionType>[0];
|
|
12
|
-
export interface UpdateOptions {
|
|
13
|
-
notMerge?: boolean;
|
|
14
|
-
lazyUpdate?: boolean;
|
|
15
|
-
silent?: boolean;
|
|
16
|
-
replaceMerge?: any;
|
|
17
|
-
transition?: any;
|
|
18
|
-
}
|
|
19
|
-
export declare type UpdateOptionsInjection = UpdateOptions | null | Ref<UpdateOptions | null>;
|
|
20
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
-
spinning: {
|
|
3
|
-
type: BooleanConstructor;
|
|
4
|
-
default: boolean;
|
|
5
|
-
};
|
|
6
|
-
}, {
|
|
7
|
-
indicator: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}>;
|
|
10
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
-
spinning: {
|
|
12
|
-
type: BooleanConstructor;
|
|
13
|
-
default: boolean;
|
|
14
|
-
};
|
|
15
|
-
}>>, {
|
|
16
|
-
spinning: boolean;
|
|
17
|
-
}>;
|
|
18
|
-
export default _sfc_main;
|
package/dist/src/components.d.ts
DELETED