@fmdevui/fm-dev 1.0.115 → 1.0.117
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/es/core/index.d.ts +1 -0
- package/es/core/plugins/index.d.ts +1 -0
- package/es/core/ui/components/fmHBarChart/index.vue.d.ts +121 -8
- package/es/core/ui/components/index.d.ts +120 -7
- package/es/index.mjs +3 -0
- package/es/packages/core/hook/useChart.mjs +2 -0
- package/es/packages/core/index.mjs +4 -0
- package/es/packages/core/plugins/index.mjs +3 -0
- package/es/packages/core/ui/components/fmHBarChart/index.vue2.mjs +40 -10
- package/{lib/index.css → es/version.css} +2 -2
- package/index.js +1566 -172
- package/index.min.js +60 -59
- package/index.min.mjs +60 -59
- package/index.mjs +1564 -172
- package/lib/core/index.d.ts +1 -0
- package/lib/core/plugins/index.d.ts +1 -0
- package/lib/core/ui/components/fmHBarChart/index.vue.d.ts +121 -8
- package/lib/core/ui/components/index.d.ts +120 -7
- package/lib/index.js +4 -0
- package/lib/packages/core/hook/useChart.js +2 -0
- package/lib/packages/core/index.js +5 -0
- package/lib/packages/core/plugins/index.js +9 -0
- package/lib/packages/core/ui/components/fmHBarChart/index.vue2.js +40 -10
- package/package.json +1 -1
- /package/{es/make-installer.css → lib/defaults.css} +0 -0
package/lib/core/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './echarts';
|
|
@@ -1,10 +1,123 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
3
|
+
height: {
|
|
4
|
+
type: NumberConstructor;
|
|
5
|
+
default: () => string;
|
|
6
|
+
};
|
|
7
|
+
loading: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
isEmpty: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
colors: {
|
|
16
|
+
type: PropType<string[]>;
|
|
17
|
+
default: () => string[];
|
|
18
|
+
};
|
|
19
|
+
data: {
|
|
20
|
+
type: PropType<number[]>;
|
|
21
|
+
default: () => number[];
|
|
22
|
+
};
|
|
23
|
+
xAxisData: {
|
|
24
|
+
type: PropType<string[]>;
|
|
25
|
+
default: () => never[];
|
|
26
|
+
};
|
|
27
|
+
barWidth: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
stack: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
showAxisLabel: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
showAxisLine: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
showSplitLine: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
showTooltip: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
showLegend: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
legendPosition: {
|
|
56
|
+
type: PropType<"top" | "bottom" | "left" | "right">;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
60
|
+
height: {
|
|
61
|
+
type: NumberConstructor;
|
|
62
|
+
default: () => string;
|
|
63
|
+
};
|
|
64
|
+
loading: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
isEmpty: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
colors: {
|
|
73
|
+
type: PropType<string[]>;
|
|
74
|
+
default: () => string[];
|
|
75
|
+
};
|
|
76
|
+
data: {
|
|
77
|
+
type: PropType<number[]>;
|
|
78
|
+
default: () => number[];
|
|
79
|
+
};
|
|
80
|
+
xAxisData: {
|
|
81
|
+
type: PropType<string[]>;
|
|
82
|
+
default: () => never[];
|
|
83
|
+
};
|
|
84
|
+
barWidth: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
stack: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
showAxisLabel: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
showAxisLine: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
showSplitLine: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
104
|
+
showTooltip: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
108
|
+
showLegend: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
legendPosition: {
|
|
113
|
+
type: PropType<"top" | "bottom" | "left" | "right">;
|
|
114
|
+
default: string;
|
|
115
|
+
};
|
|
116
|
+
}>> & Readonly<{}>, {
|
|
117
|
+
data: number[];
|
|
118
|
+
height: number;
|
|
6
119
|
xAxisData: string[];
|
|
7
|
-
barWidth: string
|
|
120
|
+
barWidth: string;
|
|
8
121
|
stack: boolean;
|
|
9
122
|
loading: boolean;
|
|
10
123
|
isEmpty: boolean;
|
|
@@ -14,8 +127,8 @@ declare const _default: DefineComponent<BarChartProps, {}, {}, {}, {}, Component
|
|
|
14
127
|
showSplitLine: boolean;
|
|
15
128
|
showTooltip: boolean;
|
|
16
129
|
showLegend: boolean;
|
|
17
|
-
legendPosition:
|
|
18
|
-
}, {}, {}, {}, string, ComponentProvideOptions,
|
|
130
|
+
legendPosition: "left" | "right" | "bottom" | "top";
|
|
131
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
19
132
|
chartRef: HTMLDivElement;
|
|
20
133
|
}, HTMLDivElement>;
|
|
21
134
|
export default _default;
|
|
@@ -4,7 +4,6 @@ import { TreeKey } from 'element-plus';
|
|
|
4
4
|
import { TQueryConditionProps } from './querycondition/type';
|
|
5
5
|
import { FmSelectTableProps } from './selecttable/type';
|
|
6
6
|
import { FmButtonSelfProps } from './fmbutton/type';
|
|
7
|
-
import { BarChartProps, BarDataItem, LegendPosition } from 'fm-dev';
|
|
8
7
|
export * from './selecttable/type';
|
|
9
8
|
export * from './selecttable/ClickOutside';
|
|
10
9
|
export * from './fmbutton/type';
|
|
@@ -2330,11 +2329,125 @@ declare const FmAddressParsing: DefineComponent<ExtractPropTypes<{
|
|
|
2330
2329
|
fcity: string;
|
|
2331
2330
|
fcounty: string;
|
|
2332
2331
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2333
|
-
declare const FmHBarChart: DefineComponent<
|
|
2334
|
-
|
|
2335
|
-
|
|
2332
|
+
declare const FmHBarChart: DefineComponent<ExtractPropTypes<{
|
|
2333
|
+
height: {
|
|
2334
|
+
type: NumberConstructor;
|
|
2335
|
+
default: () => string;
|
|
2336
|
+
};
|
|
2337
|
+
loading: {
|
|
2338
|
+
type: BooleanConstructor;
|
|
2339
|
+
default: boolean;
|
|
2340
|
+
};
|
|
2341
|
+
isEmpty: {
|
|
2342
|
+
type: BooleanConstructor;
|
|
2343
|
+
default: boolean;
|
|
2344
|
+
};
|
|
2345
|
+
colors: {
|
|
2346
|
+
type: PropType<string[]>;
|
|
2347
|
+
default: () => string[];
|
|
2348
|
+
};
|
|
2349
|
+
data: {
|
|
2350
|
+
type: PropType<number[]>;
|
|
2351
|
+
default: () => number[];
|
|
2352
|
+
};
|
|
2353
|
+
xAxisData: {
|
|
2354
|
+
type: PropType<string[]>;
|
|
2355
|
+
default: () => never[];
|
|
2356
|
+
};
|
|
2357
|
+
barWidth: {
|
|
2358
|
+
type: StringConstructor;
|
|
2359
|
+
default: string;
|
|
2360
|
+
};
|
|
2361
|
+
stack: {
|
|
2362
|
+
type: BooleanConstructor;
|
|
2363
|
+
default: boolean;
|
|
2364
|
+
};
|
|
2365
|
+
showAxisLabel: {
|
|
2366
|
+
type: BooleanConstructor;
|
|
2367
|
+
default: boolean;
|
|
2368
|
+
};
|
|
2369
|
+
showAxisLine: {
|
|
2370
|
+
type: BooleanConstructor;
|
|
2371
|
+
default: boolean;
|
|
2372
|
+
};
|
|
2373
|
+
showSplitLine: {
|
|
2374
|
+
type: BooleanConstructor;
|
|
2375
|
+
default: boolean;
|
|
2376
|
+
};
|
|
2377
|
+
showTooltip: {
|
|
2378
|
+
type: BooleanConstructor;
|
|
2379
|
+
default: boolean;
|
|
2380
|
+
};
|
|
2381
|
+
showLegend: {
|
|
2382
|
+
type: BooleanConstructor;
|
|
2383
|
+
default: boolean;
|
|
2384
|
+
};
|
|
2385
|
+
legendPosition: {
|
|
2386
|
+
type: PropType<"top" | "bottom" | "left" | "right">;
|
|
2387
|
+
default: string;
|
|
2388
|
+
};
|
|
2389
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
2390
|
+
height: {
|
|
2391
|
+
type: NumberConstructor;
|
|
2392
|
+
default: () => string;
|
|
2393
|
+
};
|
|
2394
|
+
loading: {
|
|
2395
|
+
type: BooleanConstructor;
|
|
2396
|
+
default: boolean;
|
|
2397
|
+
};
|
|
2398
|
+
isEmpty: {
|
|
2399
|
+
type: BooleanConstructor;
|
|
2400
|
+
default: boolean;
|
|
2401
|
+
};
|
|
2402
|
+
colors: {
|
|
2403
|
+
type: PropType<string[]>;
|
|
2404
|
+
default: () => string[];
|
|
2405
|
+
};
|
|
2406
|
+
data: {
|
|
2407
|
+
type: PropType<number[]>;
|
|
2408
|
+
default: () => number[];
|
|
2409
|
+
};
|
|
2410
|
+
xAxisData: {
|
|
2411
|
+
type: PropType<string[]>;
|
|
2412
|
+
default: () => never[];
|
|
2413
|
+
};
|
|
2414
|
+
barWidth: {
|
|
2415
|
+
type: StringConstructor;
|
|
2416
|
+
default: string;
|
|
2417
|
+
};
|
|
2418
|
+
stack: {
|
|
2419
|
+
type: BooleanConstructor;
|
|
2420
|
+
default: boolean;
|
|
2421
|
+
};
|
|
2422
|
+
showAxisLabel: {
|
|
2423
|
+
type: BooleanConstructor;
|
|
2424
|
+
default: boolean;
|
|
2425
|
+
};
|
|
2426
|
+
showAxisLine: {
|
|
2427
|
+
type: BooleanConstructor;
|
|
2428
|
+
default: boolean;
|
|
2429
|
+
};
|
|
2430
|
+
showSplitLine: {
|
|
2431
|
+
type: BooleanConstructor;
|
|
2432
|
+
default: boolean;
|
|
2433
|
+
};
|
|
2434
|
+
showTooltip: {
|
|
2435
|
+
type: BooleanConstructor;
|
|
2436
|
+
default: boolean;
|
|
2437
|
+
};
|
|
2438
|
+
showLegend: {
|
|
2439
|
+
type: BooleanConstructor;
|
|
2440
|
+
default: boolean;
|
|
2441
|
+
};
|
|
2442
|
+
legendPosition: {
|
|
2443
|
+
type: PropType<"top" | "bottom" | "left" | "right">;
|
|
2444
|
+
default: string;
|
|
2445
|
+
};
|
|
2446
|
+
}>> & Readonly<{}>, {
|
|
2447
|
+
data: number[];
|
|
2448
|
+
height: number;
|
|
2336
2449
|
xAxisData: string[];
|
|
2337
|
-
barWidth: string
|
|
2450
|
+
barWidth: string;
|
|
2338
2451
|
stack: boolean;
|
|
2339
2452
|
loading: boolean;
|
|
2340
2453
|
isEmpty: boolean;
|
|
@@ -2344,8 +2457,8 @@ declare const FmHBarChart: DefineComponent<BarChartProps, {}, {}, {}, {}, Compon
|
|
|
2344
2457
|
showSplitLine: boolean;
|
|
2345
2458
|
showTooltip: boolean;
|
|
2346
2459
|
showLegend: boolean;
|
|
2347
|
-
legendPosition:
|
|
2348
|
-
}, {}, {}, {}, string, ComponentProvideOptions,
|
|
2460
|
+
legendPosition: "left" | "right" | "bottom" | "top";
|
|
2461
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
2349
2462
|
chartRef: HTMLDivElement;
|
|
2350
2463
|
}, HTMLDivElement>;
|
|
2351
2464
|
export { FmTransfer, FmNoticeBar, FmDragImg, Fmselect, FmAutocomplete, Fminputdropdown, Fminputtable, FmTree, Fmdatepicker, FmQueryCondition, FmMoreChoose, FmRenderComp, FmSelectTable, FmRenderCol, FmButton, FmAddressParsing, FmHBarChart, elSvg };
|
package/lib/index.js
CHANGED
|
@@ -43,6 +43,8 @@ var index$h = require('./packages/core/auth/index.js');
|
|
|
43
43
|
var dateTimeShortCust = require('./packages/core/hook/dateTimeShortCust.js');
|
|
44
44
|
var useVxeTableOptionsHook = require('./packages/core/hook/useVxeTableOptionsHook.js');
|
|
45
45
|
var useChart = require('./packages/core/hook/useChart.js');
|
|
46
|
+
var core = require('./node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/core.js');
|
|
47
|
+
var echarts = require('./packages/core/plugins/echarts.js');
|
|
46
48
|
var index$i = require('./packages/core/utils/cityparess/index.js');
|
|
47
49
|
|
|
48
50
|
const install = defaults.default.install;
|
|
@@ -176,5 +178,7 @@ exports.useVxeTable = useVxeTableOptionsHook.useVxeTable;
|
|
|
176
178
|
exports.useChart = useChart.useChart;
|
|
177
179
|
exports.useChartComponent = useChart.useChartComponent;
|
|
178
180
|
exports.useChartOps = useChart.useChartOps;
|
|
181
|
+
exports.echarts = core;
|
|
182
|
+
exports.graphic = echarts.graphic;
|
|
179
183
|
exports.addressparsing = index$i.addressparsing;
|
|
180
184
|
exports.install = install;
|
|
@@ -74,6 +74,8 @@ function useChart(options = {}) {
|
|
|
74
74
|
let menuOpenStopHandle = null;
|
|
75
75
|
let menuTypeStopHandle = null;
|
|
76
76
|
const setupMenuWatchers = () => {
|
|
77
|
+
vue.nextTick(requestAnimationResize);
|
|
78
|
+
setTimeout(() => multiDelayResize(MENU_RESIZE_DELAYS), 0);
|
|
77
79
|
};
|
|
78
80
|
const cleanupMenuWatchers = () => {
|
|
79
81
|
menuOpenStopHandle?.();
|
|
@@ -12,6 +12,7 @@ var index$g = require('./auth/index.js');
|
|
|
12
12
|
var dateTimeShortCust = require('./hook/dateTimeShortCust.js');
|
|
13
13
|
var useVxeTableOptionsHook = require('./hook/useVxeTableOptionsHook.js');
|
|
14
14
|
var useChart = require('./hook/useChart.js');
|
|
15
|
+
require('./plugins/index.js');
|
|
15
16
|
var index$h = require('./utils/cityparess/index.js');
|
|
16
17
|
require('./types/index.js');
|
|
17
18
|
var index$1 = require('./ui/components/svgIcon/index.js');
|
|
@@ -40,6 +41,8 @@ var gloabdata = require('./utils/comm/gloabdata.js');
|
|
|
40
41
|
var commonFunction = require('./utils/comm/commonFunction.js');
|
|
41
42
|
var index$e = require('./utils/comm/index.js');
|
|
42
43
|
var index$f = require('./utils/const/index.js');
|
|
44
|
+
var core = require('../../node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/core.js');
|
|
45
|
+
var echarts = require('./plugins/echarts.js');
|
|
43
46
|
|
|
44
47
|
|
|
45
48
|
|
|
@@ -169,3 +172,5 @@ exports.getAppItemText = gloabdata.getAppItemText;
|
|
|
169
172
|
exports.commonFunction = commonFunction.default;
|
|
170
173
|
exports.commonFunctionObj = index$e.commonFunctionObj;
|
|
171
174
|
exports.PUB = index$f.PUB;
|
|
175
|
+
exports.echarts = core;
|
|
176
|
+
exports.graphic = echarts.graphic;
|
|
@@ -10,21 +10,51 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
10
10
|
...{ name: "FmHBarChart" },
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
// 基础配置
|
|
14
|
+
height: {
|
|
15
|
+
type: Number,
|
|
16
|
+
default: () => useChart.useChartOps().chartHeight
|
|
17
|
+
},
|
|
18
|
+
loading: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: false
|
|
21
|
+
},
|
|
22
|
+
isEmpty: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: false
|
|
25
|
+
},
|
|
26
|
+
colors: {
|
|
27
|
+
type: Array,
|
|
28
|
+
default: () => useChart.useChartOps().colors
|
|
29
|
+
},
|
|
30
|
+
// 数据配置
|
|
31
|
+
data: {
|
|
32
|
+
type: Array,
|
|
33
|
+
default: () => [0, 0, 0, 0, 0, 0, 0]
|
|
34
|
+
},
|
|
35
|
+
xAxisData: {
|
|
36
|
+
type: Array,
|
|
37
|
+
default: () => []
|
|
38
|
+
},
|
|
39
|
+
barWidth: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: "36%"
|
|
42
|
+
},
|
|
43
|
+
stack: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: false
|
|
46
|
+
},
|
|
47
|
+
// 轴线显示配置
|
|
22
48
|
showAxisLabel: { type: Boolean, default: true },
|
|
23
49
|
showAxisLine: { type: Boolean, default: true },
|
|
24
50
|
showSplitLine: { type: Boolean, default: true },
|
|
51
|
+
// 交互配置
|
|
25
52
|
showTooltip: { type: Boolean, default: true },
|
|
26
53
|
showLegend: { type: Boolean, default: false },
|
|
27
|
-
legendPosition: {
|
|
54
|
+
legendPosition: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: "bottom"
|
|
57
|
+
}
|
|
28
58
|
},
|
|
29
59
|
setup(__props) {
|
|
30
60
|
const props = __props;
|
package/package.json
CHANGED
|
File without changes
|