@fmdevui/fm-dev 1.0.116 → 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/ui/components/fmHBarChart/index.vue.d.ts +121 -8
- package/es/core/ui/components/index.d.ts +120 -7
- package/es/packages/core/ui/components/fmHBarChart/index.vue2.mjs +40 -10
- package/{lib/make-installer.css → es/version.css} +2 -2
- package/index.js +41 -11
- package/index.min.js +2 -2
- package/index.min.mjs +2 -2
- package/index.mjs +41 -11
- package/lib/core/ui/components/fmHBarChart/index.vue.d.ts +121 -8
- package/lib/core/ui/components/index.d.ts +120 -7
- package/lib/packages/core/ui/components/fmHBarChart/index.vue2.js +40 -10
- package/package.json +1 -1
- /package/{es → lib}/defaults.css +0 -0
|
@@ -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 };
|
|
@@ -6,21 +6,51 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6
6
|
...{ name: "FmHBarChart" },
|
|
7
7
|
__name: "index",
|
|
8
8
|
props: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
// 基础配置
|
|
10
|
+
height: {
|
|
11
|
+
type: Number,
|
|
12
|
+
default: () => useChartOps().chartHeight
|
|
13
|
+
},
|
|
14
|
+
loading: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: false
|
|
17
|
+
},
|
|
18
|
+
isEmpty: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: false
|
|
21
|
+
},
|
|
22
|
+
colors: {
|
|
23
|
+
type: Array,
|
|
24
|
+
default: () => useChartOps().colors
|
|
25
|
+
},
|
|
26
|
+
// 数据配置
|
|
27
|
+
data: {
|
|
28
|
+
type: Array,
|
|
29
|
+
default: () => [0, 0, 0, 0, 0, 0, 0]
|
|
30
|
+
},
|
|
31
|
+
xAxisData: {
|
|
32
|
+
type: Array,
|
|
33
|
+
default: () => []
|
|
34
|
+
},
|
|
35
|
+
barWidth: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: "36%"
|
|
38
|
+
},
|
|
39
|
+
stack: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: false
|
|
42
|
+
},
|
|
43
|
+
// 轴线显示配置
|
|
18
44
|
showAxisLabel: { type: Boolean, default: true },
|
|
19
45
|
showAxisLine: { type: Boolean, default: true },
|
|
20
46
|
showSplitLine: { type: Boolean, default: true },
|
|
47
|
+
// 交互配置
|
|
21
48
|
showTooltip: { type: Boolean, default: true },
|
|
22
49
|
showLegend: { type: Boolean, default: false },
|
|
23
|
-
legendPosition: {
|
|
50
|
+
legendPosition: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: "bottom"
|
|
53
|
+
}
|
|
24
54
|
},
|
|
25
55
|
setup(__props) {
|
|
26
56
|
const props = __props;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.drag_verify[data-v-9e8c9ed2]{background-color:#e8e8e8;overflow:hidden;position:relative;text-align:center}.drag_verify .dv_handler[data-v-9e8c9ed2]{cursor:move;left:0;position:absolute;top:0}.drag_verify .dv_handler i[data-v-9e8c9ed2]{color:#666;font-size:16px;padding-left:0}.drag_verify .dv_handler .el-icon-circle-check[data-v-9e8c9ed2]{color:#6c6;margin-top:9px}.drag_verify .dv_progress_bar[data-v-9e8c9ed2]{height:34px;position:absolute;width:0}.drag_verify .dv_text[data-v-9e8c9ed2]{background:-webkit-gradient(linear,left top,right top,color-stop(0,var(--textColor)),color-stop(.4,var(--textColor)),color-stop(.5,#fff),color-stop(.6,var(--textColor)),color-stop(1,var(--textColor)));-webkit-background-clip:text;color:transparent;position:absolute;top:0;-moz-user-select:none;-webkit-user-select:none;user-select:none;-o-user-select:none;-ms-user-select:none;-webkit-text-fill-color:transparent;-webkit-text-size-adjust:none;animation:slidetounlock 3s infinite}.drag_verify .dv_text[data-v-9e8c9ed2] *{-webkit-text-fill-color:var(--textColor)}.goFirst[data-v-9e8c9ed2]{left:0!important;transition:left .5s}.goOrigin[data-v-9e8c9ed2]{transition:transform .5s}.goKeep[data-v-9e8c9ed2]{transition:left .2s}.goFirst2[data-v-9e8c9ed2]{transition:width .5s;width:0!important}.drag-verify-container[data-v-9e8c9ed2]{border-radius:50%;line-height:0;position:relative}.move-bar[data-v-9e8c9ed2]{position:absolute;z-index:100}.clip-bar[data-v-9e8c9ed2]{background:hsla(0,0%,100%,.8);position:absolute}.refresh[data-v-9e8c9ed2]{cursor:pointer;font-size:20px;position:absolute;right:5px;top:5px;z-index:200}.tips[data-v-9e8c9ed2]{bottom:25px;font-size:12px;height:20px;line-height:20px;position:absolute;text-align:center;width:100%;z-index:200}.tips.success[data-v-9e8c9ed2]{background:hsla(0,0%,100%,.6);color:green}.tips.danger[data-v-9e8c9ed2]{background:rgba(0,0,0,.6);color:#ff0}.check-img[data-v-9e8c9ed2]{border-radius:50%;width:100%}
|
|
2
|
-
|
|
3
1
|
.query-form[data-v-88872668]{z-index:9999}[data-v-88872668] .el-select-dropdown{.el-scrollbar>.el-scrollbar__bar{display:none!important}}.popper-class[data-v-88872668]{min-width:400px!important}[data-v-88872668] .popper-class :deep(.el-select-dropdown__wrap){max-height:600px!important}
|
|
2
|
+
|
|
3
|
+
.drag_verify[data-v-9e8c9ed2]{background-color:#e8e8e8;overflow:hidden;position:relative;text-align:center}.drag_verify .dv_handler[data-v-9e8c9ed2]{cursor:move;left:0;position:absolute;top:0}.drag_verify .dv_handler i[data-v-9e8c9ed2]{color:#666;font-size:16px;padding-left:0}.drag_verify .dv_handler .el-icon-circle-check[data-v-9e8c9ed2]{color:#6c6;margin-top:9px}.drag_verify .dv_progress_bar[data-v-9e8c9ed2]{height:34px;position:absolute;width:0}.drag_verify .dv_text[data-v-9e8c9ed2]{background:-webkit-gradient(linear,left top,right top,color-stop(0,var(--textColor)),color-stop(.4,var(--textColor)),color-stop(.5,#fff),color-stop(.6,var(--textColor)),color-stop(1,var(--textColor)));-webkit-background-clip:text;color:transparent;position:absolute;top:0;-moz-user-select:none;-webkit-user-select:none;user-select:none;-o-user-select:none;-ms-user-select:none;-webkit-text-fill-color:transparent;-webkit-text-size-adjust:none;animation:slidetounlock 3s infinite}.drag_verify .dv_text[data-v-9e8c9ed2] *{-webkit-text-fill-color:var(--textColor)}.goFirst[data-v-9e8c9ed2]{left:0!important;transition:left .5s}.goOrigin[data-v-9e8c9ed2]{transition:transform .5s}.goKeep[data-v-9e8c9ed2]{transition:left .2s}.goFirst2[data-v-9e8c9ed2]{transition:width .5s;width:0!important}.drag-verify-container[data-v-9e8c9ed2]{border-radius:50%;line-height:0;position:relative}.move-bar[data-v-9e8c9ed2]{position:absolute;z-index:100}.clip-bar[data-v-9e8c9ed2]{background:hsla(0,0%,100%,.8);position:absolute}.refresh[data-v-9e8c9ed2]{cursor:pointer;font-size:20px;position:absolute;right:5px;top:5px;z-index:200}.tips[data-v-9e8c9ed2]{bottom:25px;font-size:12px;height:20px;line-height:20px;position:absolute;text-align:center;width:100%;z-index:200}.tips.success[data-v-9e8c9ed2]{background:hsla(0,0%,100%,.6);color:green}.tips.danger[data-v-9e8c9ed2]{background:rgba(0,0,0,.6);color:#ff0}.check-img[data-v-9e8c9ed2]{border-radius:50%;width:100%}
|
|
4
4
|
.el-select-dropdown__wrap[max-height],.popper-class .el-select-dropdown__wrap{max-height:450px!important}.el-table .selected-row,.popper-class .selected-row{background-color:var(--el-color-primary-light-9)!important;border-left:3px solid var(--el-color-primary)!important}.el-table .selected-row:hover,.popper-class .selected-row:hover{background-color:var(--el-color-primary-light-8)!important}.el-table .selected-row td,.popper-class .selected-row td{background-color:var(--el-color-primary-light-9)!important}.el-table .selected-row:hover td,.popper-class .selected-row:hover td{background-color:var(--el-color-primary-light-8)!important}
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fm-dev v1.0.
|
|
1
|
+
/*! fm-dev v1.0.117 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('crypto'), require('url'), require('http'), require('https'), require('http2'), require('util'), require('stream'), require('assert'), require('zlib'), require('element-plus')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vue', 'crypto', 'url', 'http', 'https', 'http2', 'util', 'stream', 'assert', 'zlib', 'element-plus'], factory) :
|
|
@@ -124879,21 +124879,51 @@
|
|
|
124879
124879
|
...{ name: "FmHBarChart" },
|
|
124880
124880
|
__name: "index",
|
|
124881
124881
|
props: {
|
|
124882
|
-
|
|
124883
|
-
|
|
124884
|
-
|
|
124885
|
-
|
|
124886
|
-
|
|
124887
|
-
|
|
124888
|
-
|
|
124889
|
-
|
|
124890
|
-
|
|
124882
|
+
// 基础配置
|
|
124883
|
+
height: {
|
|
124884
|
+
type: Number,
|
|
124885
|
+
default: () => useChartOps().chartHeight
|
|
124886
|
+
},
|
|
124887
|
+
loading: {
|
|
124888
|
+
type: Boolean,
|
|
124889
|
+
default: false
|
|
124890
|
+
},
|
|
124891
|
+
isEmpty: {
|
|
124892
|
+
type: Boolean,
|
|
124893
|
+
default: false
|
|
124894
|
+
},
|
|
124895
|
+
colors: {
|
|
124896
|
+
type: Array,
|
|
124897
|
+
default: () => useChartOps().colors
|
|
124898
|
+
},
|
|
124899
|
+
// 数据配置
|
|
124900
|
+
data: {
|
|
124901
|
+
type: Array,
|
|
124902
|
+
default: () => [0, 0, 0, 0, 0, 0, 0]
|
|
124903
|
+
},
|
|
124904
|
+
xAxisData: {
|
|
124905
|
+
type: Array,
|
|
124906
|
+
default: () => []
|
|
124907
|
+
},
|
|
124908
|
+
barWidth: {
|
|
124909
|
+
type: String,
|
|
124910
|
+
default: "36%"
|
|
124911
|
+
},
|
|
124912
|
+
stack: {
|
|
124913
|
+
type: Boolean,
|
|
124914
|
+
default: false
|
|
124915
|
+
},
|
|
124916
|
+
// 轴线显示配置
|
|
124891
124917
|
showAxisLabel: { type: Boolean, default: true },
|
|
124892
124918
|
showAxisLine: { type: Boolean, default: true },
|
|
124893
124919
|
showSplitLine: { type: Boolean, default: true },
|
|
124920
|
+
// 交互配置
|
|
124894
124921
|
showTooltip: { type: Boolean, default: true },
|
|
124895
124922
|
showLegend: { type: Boolean, default: false },
|
|
124896
|
-
legendPosition: {
|
|
124923
|
+
legendPosition: {
|
|
124924
|
+
type: String,
|
|
124925
|
+
default: "bottom"
|
|
124926
|
+
}
|
|
124897
124927
|
},
|
|
124898
124928
|
setup(__props) {
|
|
124899
124929
|
const props = __props;
|
package/index.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fm-dev v1.0.
|
|
1
|
+
/*! fm-dev v1.0.117 */(function(X,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("vue"),require("crypto"),require("url"),require("http"),require("https"),require("http2"),require("util"),require("stream"),require("assert"),require("zlib"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","crypto","url","http","https","http2","util","stream","assert","zlib","element-plus"],h):(X=typeof globalThis<"u"?globalThis:X||self,h(X.FmPlus={},X.Vue,X.crypto,X.require$$0,X.require$$1,X.require$$2,X.http2,X.util$2,X.stream,X.require$$4,X.zlib,X.ElementPlus))})(this,function(X,h,SN,lE,S4,T4,k4,cE,or,TN,ha,Me){"use strict";const kN={class:"fm-transfer-panel"},MN={class:"fm-transfer-panel__header"},LN={class:"fm-transfer-panel__body"},PN={class:"fm-transfer-buttons__item"},NN={class:"fm-transfer-buttons__item"},IN={class:"fm-transfer-buttons__item"},RN={class:"fm-transfer-buttons__item"},ON={class:"fm-transfer-panel"},VN={class:"fm-transfer-panel__header"},zN={class:"fm-transfer-panel__body"};var HN=h.defineComponent({name:"FmTransfer",__name:"index",props:{leftTitle:String,rightTitle:String,options:{type:Object,default:()=>({value:"id",label:"name",disabled:"disabled"})},leftData:{type:Array,default:()=>[]},rightData:{type:Array,default:()=>[]}},emits:["left","right","allLeft","allRight","update:leftData","update:rightData"],setup(e,{emit:u}){const t=e,r=u,n=h.reactive({leftAllChecked:!1,leftKeyword:"",leftChecked:[],rightAllChecked:!1,rightKeyword:"",rightChecked:[]}),a=h.computed(()=>{let m=t.leftData.filter(v=>v[t.options.label].toLowerCase().includes(n.leftKeyword.toLowerCase()));if(n.leftChecked.length>0)for(let v=n.leftChecked.length-1;v>=0;v--)m.findIndex(g=>g[t.options.value]==n.leftChecked[v])==-1&&n.leftChecked.splice(v,1);return m}),i=m=>{n.leftChecked=m?a.value.filter(v=>v[t.options.disabled]==!1).map(v=>v[t.options.value]):[]},o=h.computed(()=>{const m=n.leftChecked.length;return m>0&&m<a.value.filter(D=>D[t.options.disabled]==!1).length});h.watch(()=>n.leftChecked,m=>{n.leftAllChecked=m.length>0&&m.length==a.value.filter(v=>v[t.options.disabled]==!1).length});const s=h.computed(()=>{let m=t.rightData.filter(v=>v[t.options.label].toLowerCase().includes(n.rightKeyword.toLowerCase()));if(n.rightChecked.length>0)for(let v=n.rightChecked.length-1;v>=0;v--)m.findIndex(g=>g[t.options.value]==n.rightChecked[v])==-1&&n.rightChecked.splice(v,1);return m}),l=m=>{n.rightChecked=m?s.value.filter(v=>v[t.options.disabled]==!1).map(v=>v[t.options.value]):[]},c=h.computed(()=>{const m=n.rightChecked.length;return m>0&&m<s.value.filter(D=>D[t.options.disabled]==!1).length});h.watch(()=>n.rightChecked,m=>{n.rightAllChecked=m.length>0&&m.length==s.value.filter(v=>v[t.options.disabled]==!1).length});const E=m=>{if(m[t.options.value]&&m[t.options.disabled]===!1){let v=t.leftData.filter(g=>m[t.options.value]==g[t.options.value]),D=t.leftData.filter(g=>m[t.options.value]!=g[t.options.value]);r("update:leftData",D),r("update:rightData",t.rightData.concat(v)),r("right"),n.leftChecked=n.leftChecked.filter(g=>m[t.options.value]!=g)}},d=()=>{if(n.leftChecked?.length>0){let m=t.leftData.filter(D=>n.leftChecked.some(g=>g==D[t.options.value])),v=t.leftData.filter(D=>n.leftChecked.every(g=>g!=D[t.options.value]));r("update:leftData",v),r("update:rightData",t.rightData.concat(m)),r("right"),n.leftChecked=[]}},f=()=>{if(a.value?.length>0){let m=a.value.filter(g=>g[t.options.disabled]==!1),v=t.leftData.filter(g=>m.some(B=>B[t.options.value]==g[t.options.value])),D=t.leftData.filter(g=>m.every(B=>B[t.options.value]!=g[t.options.value]));r("update:leftData",D),r("update:rightData",t.rightData.concat(v)),r("allRight"),n.leftChecked=[]}},p=m=>{if(m[t.options.value]&&m[t.options.disabled]===!1){let v=t.rightData.filter(g=>m[t.options.value]==g[t.options.value]),D=t.rightData.filter(g=>m[t.options.value]!=g[t.options.value]);r("update:leftData",t.leftData.concat(v)),r("update:rightData",D),r("left"),n.rightChecked=n.rightChecked.filter(g=>m[t.options.value]!=g)}},F=()=>{if(n.rightChecked?.length>0){let m=t.rightData.filter(D=>n.rightChecked.some(g=>g==D[t.options.value])),v=t.rightData.filter(D=>n.rightChecked.every(g=>g!=D[t.options.value]));r("update:leftData",t.leftData.concat(m)),r("update:rightData",v),r("left"),n.rightChecked=[]}},C=()=>{if(s.value?.length>0){let m=s.value.filter(g=>g[t.options.disabled]==!1),v=t.rightData.filter(g=>m.some(B=>B[t.options.value]==g[t.options.value])),D=t.rightData.filter(g=>m.every(B=>B[t.options.value]!=g[t.options.value]));r("update:leftData",t.leftData.concat(v)),r("update:rightData",D),r("allLeft"),n.rightChecked=[]}};return(m,v)=>{const D=h.resolveComponent("el-checkbox"),g=h.resolveComponent("el-input"),B=h.resolveComponent("el-checkbox-group"),y=h.resolveComponent("el-col"),A=h.resolveComponent("el-button"),_=h.resolveComponent("el-row");return h.openBlock(),h.createBlock(_,{gutter:10},{default:h.withCtx(()=>[h.createVNode(y,{span:10},{default:h.withCtx(()=>[h.createElementVNode("div",kN,[h.createElementVNode("p",MN,[h.createVNode(D,{modelValue:n.leftAllChecked,"onUpdate:modelValue":v[0]||(v[0]=w=>n.leftAllChecked=w),indeterminate:o.value,"validate-event":!1,onChange:i},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(t.leftTitle),1)]),_:1},8,["modelValue","indeterminate"]),h.createElementVNode("span",null,h.toDisplayString(n.leftChecked.length)+"/"+h.toDisplayString(t.leftData.length),1)]),h.createElementVNode("div",LN,[h.createVNode(g,{class:"transfer-panel__filter",modelValue:n.leftKeyword,"onUpdate:modelValue":v[1]||(v[1]=w=>n.leftKeyword=w),placeholder:"\u641C\u7D22","prefix-icon":"ele-Search",clearable:"","validate-event":!1},null,8,["modelValue"]),h.withDirectives(h.createVNode(B,{modelValue:n.leftChecked,"onUpdate:modelValue":v[2]||(v[2]=w=>n.leftChecked=w),"validate-event":!1,class:"fm-transfer-panel__list"},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,(w,x)=>(h.openBlock(),h.createBlock(D,{key:x,value:w[t.options.value],label:w[t.options.label],disabled:w[t.options.disabled],"validate-event":!1,class:"fm-transfer-panel__item",onDblclick:b=>E(w)},null,8,["value","label","disabled","onDblclick"]))),128))]),_:1},8,["modelValue"]),[[h.vShow,!0]])])])]),_:1}),h.createVNode(y,{span:4,class:"fm-transfer-buttons"},{default:h.withCtx(()=>[h.createElementVNode("div",PN,[h.createVNode(A,{type:"primary",style:{},icon:"ele-ArrowRight",onClick:d})]),h.createElementVNode("div",NN,[h.createVNode(A,{type:"primary",style:{},icon:"ele-ArrowLeft",onClick:F})]),h.createElementVNode("div",IN,[h.createVNode(A,{type:"primary",style:{},icon:"ele-DArrowRight",onClick:f})]),h.createElementVNode("div",RN,[h.createVNode(A,{type:"primary",style:{},icon:"ele-DArrowLeft",onClick:C})])]),_:1}),h.createVNode(y,{span:10},{default:h.withCtx(()=>[h.createElementVNode("div",ON,[h.createElementVNode("p",VN,[h.createVNode(D,{modelValue:n.rightAllChecked,"onUpdate:modelValue":v[3]||(v[3]=w=>n.rightAllChecked=w),indeterminate:c.value,"validate-event":!1,onChange:l},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(t.rightTitle),1)]),_:1},8,["modelValue","indeterminate"]),h.createElementVNode("span",null,h.toDisplayString(n.rightChecked.length)+"/"+h.toDisplayString(t.rightData.length),1)]),h.createElementVNode("div",zN,[h.createVNode(g,{class:"transfer-panel__filter",modelValue:n.rightKeyword,"onUpdate:modelValue":v[4]||(v[4]=w=>n.rightKeyword=w),placeholder:"\u641C\u7D22","prefix-icon":"ele-Search",clearable:"","validate-event":!1},null,8,["modelValue"]),h.withDirectives(h.createVNode(B,{modelValue:n.rightChecked,"onUpdate:modelValue":v[5]||(v[5]=w=>n.rightChecked=w),"validate-event":!1,class:"fm-transfer-panel__list"},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(s.value,(w,x)=>(h.openBlock(),h.createBlock(D,{key:x,value:w[t.options.value],label:w[t.options.label],disabled:w[t.options.disabled],"validate-event":!1,class:"fm-transfer-panel__item",onDblclick:b=>p(w)},null,8,["value","label","disabled","onDblclick"]))),128))]),_:1},8,["modelValue"]),[[h.vShow,!0]])])])]),_:1})]),_:1})}}});const UN={class:"notice-bar-warp-text-box"},GN=["innerHTML"];var qN=h.defineComponent({name:"FmNoticeBar",__name:"index",props:{mode:{type:String,default:""},text:{type:String,default:""},color:{type:String,default:"var(--el-color-warning)"},background:{type:String,default:"var(--el-color-warning-light-9)"},size:{type:[Number,String],default:14},height:{type:Number,default:40},delay:{type:Number,default:1},speed:{type:Number,default:100},scrollable:{type:Boolean,default:!1},leftIcon:{type:String,default:"iconfont icon-tongzhi2"},rightIcon:{type:String,default:""}},emits:["close","link"],setup(e,{emit:u}){const t=e,r=h.ref(null),n=h.ref(null),a=h.reactive({isMode:!1,warpOWidth:0,textOWidth:0,animationDuration:0});h.onMounted(async()=>{t.scrollable||i()});const i=()=>{h.nextTick(()=>{if(r.value&&n.value){a.warpOWidth=r.value.offsetWidth,a.textOWidth=n.value.scrollWidth,a.animationDuration=(a.textOWidth+a.warpOWidth)/t.speed,n.value.style.animation="none",n.value.offsetHeight,n.value.style.animation=`marquee ${a.animationDuration}s linear infinite`;const o=`
|
|
2
2
|
@keyframes marquee {
|
|
3
3
|
0% { transform: translateX(${a.warpOWidth}px); }
|
|
4
4
|
100% { transform: translateX(-${a.textOWidth}px); }
|
|
@@ -160,7 +160,7 @@ echarts.use([`+T+"]);":"Unknown series "+b))}return}if(E==="tooltip"){if(D){proc
|
|
|
160
160
|
color: #B3B2B2;
|
|
161
161
|
background: transparent;
|
|
162
162
|
z-index: 10;
|
|
163
|
-
`,d.innerHTML="<span>\u6682\u65E0\u6570\u636E</span>",a.value.style.position!=="relative"&&a.value.style.position!=="absolute"&&(a.value.style.position="relative"),a.value.appendChild(d))},remove:()=>{d&&a.value&&(a.value.removeChild(d),d=null)},updateStyle:()=>{d&&(d.style.color="#999")}},H=(iu={},cu=!1)=>{if(!a.value||E)return;const su={...u,...iu};try{if(cu){i&&i.clear(),O.create();return}else O.remove();U(a.value)?t>0?setTimeout(()=>I(su),t):I(su):(s=su,P())}catch(hu){console.error("\u56FE\u8868\u521D\u59CB\u5316\u5931\u8D25:",hu)}},V=iu=>{if(!E)try{if(!i){H(iu);return}i.setOption(iu)}catch(cu){console.error("\u56FE\u8868\u66F4\u65B0\u5931\u8D25:",cu)}},Y=()=>{if(i&&!E)try{i.resize()}catch(iu){console.error("\u56FE\u8868resize\u5931\u8D25:",iu)}},Z=()=>{if(E=!0,i)try{i.dispose()}catch(iu){console.error("\u56FE\u8868\u9500\u6BC1\u5931\u8D25:",iu)}finally{i=null}g(),y(),O.remove(),z(),f(),w(),s=null},ou=()=>i,ru=()=>i!==null;return h.onMounted(()=>{window.addEventListener("resize",F)}),h.onBeforeUnmount(()=>{window.removeEventListener("resize",F)}),h.onUnmounted(()=>{Z()}),{chartRef:a,initChart:H,updateChart:V,handleResize:Y,destroyChart:Z,getChartInstance:ou,isChartInitialized:ru,emptyStateManager:O,getAxisLineStyle:x,getSplitLineStyle:b,getAxisLabelStyle:T,getAxisTickStyle:S,getAnimationConfig:k,getTooltipStyle:N,getLegendStyle:M,useChartOps:Xl,getGridWithLegend:R}}function uP(e){const{props:u,generateOptions:t,checkEmpty:r,watchSources:n=[],onVisible:a,chartOptions:i={}}=e,o=QL(i),{chartRef:s,initChart:l,emptyStateManager:c}=o,E=h.computed(()=>u.isEmpty?!0:r?r():!1),d=()=>{h.nextTick(()=>{E.value?(o.getChartInstance()&&o.getChartInstance()?.clear(),c.create()):(c.remove(),l(t()))})},f=()=>{a?a():d()},p=[],F=()=>{if(n.length>0){const v=h.watch(n,d,{deep:!0});p.push(v)}},C=()=>{p.forEach(v=>v()),p.length=0},m=()=>{h.onMounted(()=>{d(),s.value&&s.value.addEventListener("chartVisible",f)}),h.onBeforeUnmount(()=>{s.value&&s.value.removeEventListener("chartVisible",f),C(),c.remove()})};return F(),m(),{...o,isEmpty:E,updateChart:d,handleChartVisible:f}}var kpu=h.defineComponent({name:"FmHBarChart",__name:"index",props:{data:{default:()=>[0,0,0,0,0,0,0]},xAxisData:{default:()=>[]},barWidth:{default:"36%"},stack:{type:Boolean,default:!1},
|
|
163
|
+
`,d.innerHTML="<span>\u6682\u65E0\u6570\u636E</span>",a.value.style.position!=="relative"&&a.value.style.position!=="absolute"&&(a.value.style.position="relative"),a.value.appendChild(d))},remove:()=>{d&&a.value&&(a.value.removeChild(d),d=null)},updateStyle:()=>{d&&(d.style.color="#999")}},H=(iu={},cu=!1)=>{if(!a.value||E)return;const su={...u,...iu};try{if(cu){i&&i.clear(),O.create();return}else O.remove();U(a.value)?t>0?setTimeout(()=>I(su),t):I(su):(s=su,P())}catch(hu){console.error("\u56FE\u8868\u521D\u59CB\u5316\u5931\u8D25:",hu)}},V=iu=>{if(!E)try{if(!i){H(iu);return}i.setOption(iu)}catch(cu){console.error("\u56FE\u8868\u66F4\u65B0\u5931\u8D25:",cu)}},Y=()=>{if(i&&!E)try{i.resize()}catch(iu){console.error("\u56FE\u8868resize\u5931\u8D25:",iu)}},Z=()=>{if(E=!0,i)try{i.dispose()}catch(iu){console.error("\u56FE\u8868\u9500\u6BC1\u5931\u8D25:",iu)}finally{i=null}g(),y(),O.remove(),z(),f(),w(),s=null},ou=()=>i,ru=()=>i!==null;return h.onMounted(()=>{window.addEventListener("resize",F)}),h.onBeforeUnmount(()=>{window.removeEventListener("resize",F)}),h.onUnmounted(()=>{Z()}),{chartRef:a,initChart:H,updateChart:V,handleResize:Y,destroyChart:Z,getChartInstance:ou,isChartInitialized:ru,emptyStateManager:O,getAxisLineStyle:x,getSplitLineStyle:b,getAxisLabelStyle:T,getAxisTickStyle:S,getAnimationConfig:k,getTooltipStyle:N,getLegendStyle:M,useChartOps:Xl,getGridWithLegend:R}}function uP(e){const{props:u,generateOptions:t,checkEmpty:r,watchSources:n=[],onVisible:a,chartOptions:i={}}=e,o=QL(i),{chartRef:s,initChart:l,emptyStateManager:c}=o,E=h.computed(()=>u.isEmpty?!0:r?r():!1),d=()=>{h.nextTick(()=>{E.value?(o.getChartInstance()&&o.getChartInstance()?.clear(),c.create()):(c.remove(),l(t()))})},f=()=>{a?a():d()},p=[],F=()=>{if(n.length>0){const v=h.watch(n,d,{deep:!0});p.push(v)}},C=()=>{p.forEach(v=>v()),p.length=0},m=()=>{h.onMounted(()=>{d(),s.value&&s.value.addEventListener("chartVisible",f)}),h.onBeforeUnmount(()=>{s.value&&s.value.removeEventListener("chartVisible",f),C(),c.remove()})};return F(),m(),{...o,isEmpty:E,updateChart:d,handleChartVisible:f}}var kpu=h.defineComponent({name:"FmHBarChart",__name:"index",props:{height:{type:Number,default:()=>Xl().chartHeight},loading:{type:Boolean,default:!1},isEmpty:{type:Boolean,default:!1},colors:{type:Array,default:()=>Xl().colors},data:{type:Array,default:()=>[0,0,0,0,0,0,0]},xAxisData:{type:Array,default:()=>[]},barWidth:{type:String,default:"36%"},stack:{type:Boolean,default:!1},showAxisLabel:{type:Boolean,default:!0},showAxisLine:{type:Boolean,default:!0},showSplitLine:{type:Boolean,default:!0},showTooltip:{type:Boolean,default:!0},showLegend:{type:Boolean,default:!1},legendPosition:{type:String,default:"bottom"}},setup(e){const u=e,t=h.computed(()=>Array.isArray(u.data)&&u.data.length>0&&typeof u.data[0]=="object"&&"name"in u.data[0]),r=(C,m)=>C||(m!==void 0?u.colors[m%u.colors.length]:new C4.LinearGradient(0,0,1,0,[{offset:0,color:"#4ABEFF"},{offset:1,color:"#00E4E5"}])),n=C=>new C4.LinearGradient(0,0,1,0,[{offset:0,color:C},{offset:1,color:C}]),a=C=>({borderRadius:4,color:typeof C=="string"?n(C):C}),i=C=>{const m=d();return{name:C.name,data:C.data,type:"bar",stack:C.stack,itemStyle:a(C.color),barWidth:C.barWidth||u.barWidth,...m}},{chartRef:o,getAxisLineStyle:s,getAxisLabelStyle:l,getAxisTickStyle:c,getSplitLineStyle:E,getAnimationConfig:d,getTooltipStyle:f,getLegendStyle:p,getGridWithLegend:F}=uP({props:u,checkEmpty:()=>{if(Array.isArray(u.data)&&typeof u.data[0]=="number"){const C=u.data;return!C.length||C.every(m=>m===0)}if(Array.isArray(u.data)&&typeof u.data[0]=="object"){const C=u.data;return!C.length||C.every(m=>!m.data?.length||m.data.every(v=>v===0))}return!0},watchSources:[()=>u.data,()=>u.xAxisData,()=>u.colors],generateOptions:()=>{const C={grid:F(u.showLegend&&t.value,u.legendPosition,{top:15,right:0,left:0}),tooltip:u.showTooltip?f():void 0,xAxis:{type:"value",axisTick:c(),axisLine:s(u.showAxisLine),axisLabel:l(u.showAxisLabel),splitLine:E(u.showSplitLine)},yAxis:{type:"category",data:u.xAxisData,axisTick:c(),axisLabel:l(u.showAxisLabel),axisLine:s(u.showAxisLine)}};if(u.showLegend&&t.value&&(C.legend=p(u.legendPosition)),t.value){const m=u.data;C.series=m.map((v,D)=>{const g=r(u.colors[D],D);return i({name:v.name,data:v.data,color:g,barWidth:v.barWidth,stack:u.stack?v.stack||"total":void 0})})}else{const m=u.data,v=r();C.series=[i({data:m,color:v})]}return C}});return(C,m)=>{const v=h.resolveDirective("loading");return h.withDirectives((h.openBlock(),h.createElementBlock("div",{ref_key:"chartRef",ref:o,class:"relative w-full",style:h.normalizeStyle({height:u.height})},null,4)),[[v,u.loading]])}}});const Mpu=["src"];var Lpu=h.defineComponent({name:"svgIcon",__name:"svgicon",props:{name:{type:String},size:{type:Number,default:()=>14},color:{type:String}},setup(e){const u=e,t=["https","http","/src","/assets","data:image",window.__env__.VITE_PUBLIC_PATH],r=h.computed(()=>u?.name),n=h.computed(()=>u?.name?.startsWith("ele-")),a=h.computed(()=>t.find(l=>u.name?.startsWith(l))),i=h.computed(()=>`font-size: ${u.size}px;color: ${u.color};`),o=h.computed(()=>`width: ${u.size}px;height: ${u.size}px;display: inline-block;overflow: hidden;`),s=h.computed(()=>{const l=[];return["-webkit","-ms","-o","-moz"].forEach(E=>l.push(`${E}-filter: drop-shadow(${u.color} ${u.size}px 0);`)),`width: ${u.size}px;height: ${u.size}px;position: relative;left: -${u.size}px;${l.join("")}`});return(l,c)=>n.value?(h.openBlock(),h.createElementBlock("i",{key:0,class:"el-icon",style:h.normalizeStyle(i.value)},[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(r.value)))],4)):a.value?(h.openBlock(),h.createElementBlock("div",{key:1,style:h.normalizeStyle(o.value)},[h.createElementVNode("img",{src:r.value,style:h.normalizeStyle(s.value)},null,12,Mpu)],4)):(h.openBlock(),h.createElementBlock("i",{key:2,class:h.normalizeClass(r.value),style:h.normalizeStyle(i.value)},null,6))}});function eP(e){const u=TQ;for(const t in u)e._context.components[`ele-${u[t].name}`]||e.component(`ele-${u[t].name}`,u[t]);e._context.components.SvgIcon||e.component("SvgIcon",Lpu)}const tP=HN,rP=qN,Ppu=ZN,nP=JN,aP=UU,iP=rtu,oP=itu,sP=ftu,lP=dtu,cP=ng,EP=rg,dP=tg,fP=btu,pP=ag,hP=wtu,CP=Stu,FP=kpu,Npu=(e=[])=>({install:t=>{e.forEach(r=>{t._context.components[r.name]||t.component(r.name,r)}),t&&eP(t)}});var Ipu=h.defineComponent({name:"FmLogin",__name:"index",setup(e){const u=h.ref(!1);function t(){u.value=!0}return(r,n)=>(h.openBlock(),h.createElementBlock("div",{onClick:t},[...n[0]||(n[0]=[h.createElementVNode("h1",null,"login xxxxx ",-1)])]))}});const mP=Ipu;var vP=Npu([...[mP,tP,rP,nP,aP,oP,iP,lP,sP,cP,EP,dP,fP,pP,hP,CP,FP]]);const DP=[],gP=[];function Rpu(){if(DP.length<=0)return!1;DP.map(e=>{let u=document.createElement("link");u.rel="stylesheet",u.href=e,u.crossOrigin="anonymous",document.getElementsByTagName("head")[0].appendChild(u)})}function Opu(){if(gP.length<=0)return!1;gP.map(e=>{let u=document.createElement("script");u.src=e,document.body.appendChild(u)})}const Vpu={cssCdn:()=>{Rpu()},jsCdn:()=>{Opu()}},zpu={start:()=>{const e=document.body,u=document.createElement("div");u.setAttribute("class","loading-next");const t=`
|
|
164
164
|
<div class="loading-next-box">
|
|
165
165
|
<div class="loading-next-box-warp">
|
|
166
166
|
<div class="loading-next-box-item"></div>
|
package/index.min.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fm-dev v1.0.
|
|
1
|
+
/*! fm-dev v1.0.117 */import{defineComponent as U,reactive as bn,computed as Ee,watch as ft,resolveComponent as Nu,createBlock as Zu,openBlock as O,withCtx as Tu,createVNode as Vu,createElementVNode as L,createTextVNode as ht,toDisplayString as ke,withDirectives as pr,createElementBlock as V,Fragment as nr,renderList as rn,vShow as GE,ref as re,onMounted as wn,nextTick as xr,normalizeStyle as yt,createCommentVNode as ee,normalizeClass as Ii,withModifiers as D5,mergeModels as nn,useModel as oa,effectScope as qE,getCurrentInstance as g5,shallowRef as kO,isRef as Va,inject as J6,onUnmounted as WE,h as A9,Text as PO,createSlots as Q6,renderSlot as qt,markRaw as Oi,hasInjectionContext as $E,toRaw as c0,isReactive as jE,toRef as YE,unref as te,getCurrentScope as IO,onScopeDispose as OO,toRefs as y9,resolveDirective as Ha,mergeProps as _t,resolveDynamicComponent as m5,useSlots as _9,toHandlers as x9,onBeforeUnmount as KE,onUpdated as RO,useAttrs as NO,normalizeProps as b9,guardReactiveProps as w9}from"vue";import zO from"crypto";import XE from"url";import S9 from"http";import T9 from"https";import M9 from"http2";import ZE from"util";import an,{Readable as VO}from"stream";import HO from"assert";import Ua from"zlib";import{ElMessage as at,ElLoading as UO,dayjs as GO}from"element-plus";const qO={class:"fm-transfer-panel"},WO={class:"fm-transfer-panel__header"},$O={class:"fm-transfer-panel__body"},jO={class:"fm-transfer-buttons__item"},YO={class:"fm-transfer-buttons__item"},KO={class:"fm-transfer-buttons__item"},XO={class:"fm-transfer-buttons__item"},ZO={class:"fm-transfer-panel"},JO={class:"fm-transfer-panel__header"},QO={class:"fm-transfer-panel__body"};var uR=U({name:"FmTransfer",__name:"index",props:{leftTitle:String,rightTitle:String,options:{type:Object,default:()=>({value:"id",label:"name",disabled:"disabled"})},leftData:{type:Array,default:()=>[]},rightData:{type:Array,default:()=>[]}},emits:["left","right","allLeft","allRight","update:leftData","update:rightData"],setup(e,{emit:u}){const t=e,r=u,n=bn({leftAllChecked:!1,leftKeyword:"",leftChecked:[],rightAllChecked:!1,rightKeyword:"",rightChecked:[]}),a=Ee(()=>{let v=t.leftData.filter(F=>F[t.options.label].toLowerCase().includes(n.leftKeyword.toLowerCase()));if(n.leftChecked.length>0)for(let F=n.leftChecked.length-1;F>=0;F--)v.findIndex(g=>g[t.options.value]==n.leftChecked[F])==-1&&n.leftChecked.splice(F,1);return v}),i=v=>{n.leftChecked=v?a.value.filter(F=>F[t.options.disabled]==!1).map(F=>F[t.options.value]):[]},o=Ee(()=>{const v=n.leftChecked.length;return v>0&&v<a.value.filter(D=>D[t.options.disabled]==!1).length});ft(()=>n.leftChecked,v=>{n.leftAllChecked=v.length>0&&v.length==a.value.filter(F=>F[t.options.disabled]==!1).length});const s=Ee(()=>{let v=t.rightData.filter(F=>F[t.options.label].toLowerCase().includes(n.rightKeyword.toLowerCase()));if(n.rightChecked.length>0)for(let F=n.rightChecked.length-1;F>=0;F--)v.findIndex(g=>g[t.options.value]==n.rightChecked[F])==-1&&n.rightChecked.splice(F,1);return v}),l=v=>{n.rightChecked=v?s.value.filter(F=>F[t.options.disabled]==!1).map(F=>F[t.options.value]):[]},c=Ee(()=>{const v=n.rightChecked.length;return v>0&&v<s.value.filter(D=>D[t.options.disabled]==!1).length});ft(()=>n.rightChecked,v=>{n.rightAllChecked=v.length>0&&v.length==s.value.filter(F=>F[t.options.disabled]==!1).length});const E=v=>{if(v[t.options.value]&&v[t.options.disabled]===!1){let F=t.leftData.filter(g=>v[t.options.value]==g[t.options.value]),D=t.leftData.filter(g=>v[t.options.value]!=g[t.options.value]);r("update:leftData",D),r("update:rightData",t.rightData.concat(F)),r("right"),n.leftChecked=n.leftChecked.filter(g=>v[t.options.value]!=g)}},d=()=>{if(n.leftChecked?.length>0){let v=t.leftData.filter(D=>n.leftChecked.some(g=>g==D[t.options.value])),F=t.leftData.filter(D=>n.leftChecked.every(g=>g!=D[t.options.value]));r("update:leftData",F),r("update:rightData",t.rightData.concat(v)),r("right"),n.leftChecked=[]}},f=()=>{if(a.value?.length>0){let v=a.value.filter(g=>g[t.options.disabled]==!1),F=t.leftData.filter(g=>v.some(m=>m[t.options.value]==g[t.options.value])),D=t.leftData.filter(g=>v.every(m=>m[t.options.value]!=g[t.options.value]));r("update:leftData",D),r("update:rightData",t.rightData.concat(F)),r("allRight"),n.leftChecked=[]}},h=v=>{if(v[t.options.value]&&v[t.options.disabled]===!1){let F=t.rightData.filter(g=>v[t.options.value]==g[t.options.value]),D=t.rightData.filter(g=>v[t.options.value]!=g[t.options.value]);r("update:leftData",t.leftData.concat(F)),r("update:rightData",D),r("left"),n.rightChecked=n.rightChecked.filter(g=>v[t.options.value]!=g)}},C=()=>{if(n.rightChecked?.length>0){let v=t.rightData.filter(D=>n.rightChecked.some(g=>g==D[t.options.value])),F=t.rightData.filter(D=>n.rightChecked.every(g=>g!=D[t.options.value]));r("update:leftData",t.leftData.concat(v)),r("update:rightData",F),r("left"),n.rightChecked=[]}},p=()=>{if(s.value?.length>0){let v=s.value.filter(g=>g[t.options.disabled]==!1),F=t.rightData.filter(g=>v.some(m=>m[t.options.value]==g[t.options.value])),D=t.rightData.filter(g=>v.every(m=>m[t.options.value]!=g[t.options.value]));r("update:leftData",t.leftData.concat(F)),r("update:rightData",D),r("allLeft"),n.rightChecked=[]}};return(v,F)=>{const D=Nu("el-checkbox"),g=Nu("el-input"),m=Nu("el-checkbox-group"),A=Nu("el-col"),B=Nu("el-button"),y=Nu("el-row");return O(),Zu(y,{gutter:10},{default:Tu(()=>[Vu(A,{span:10},{default:Tu(()=>[L("div",qO,[L("p",WO,[Vu(D,{modelValue:n.leftAllChecked,"onUpdate:modelValue":F[0]||(F[0]=b=>n.leftAllChecked=b),indeterminate:o.value,"validate-event":!1,onChange:i},{default:Tu(()=>[ht(ke(t.leftTitle),1)]),_:1},8,["modelValue","indeterminate"]),L("span",null,ke(n.leftChecked.length)+"/"+ke(t.leftData.length),1)]),L("div",$O,[Vu(g,{class:"transfer-panel__filter",modelValue:n.leftKeyword,"onUpdate:modelValue":F[1]||(F[1]=b=>n.leftKeyword=b),placeholder:"\u641C\u7D22","prefix-icon":"ele-Search",clearable:"","validate-event":!1},null,8,["modelValue"]),pr(Vu(m,{modelValue:n.leftChecked,"onUpdate:modelValue":F[2]||(F[2]=b=>n.leftChecked=b),"validate-event":!1,class:"fm-transfer-panel__list"},{default:Tu(()=>[(O(!0),V(nr,null,rn(a.value,(b,_)=>(O(),Zu(D,{key:_,value:b[t.options.value],label:b[t.options.label],disabled:b[t.options.disabled],"validate-event":!1,class:"fm-transfer-panel__item",onDblclick:x=>E(b)},null,8,["value","label","disabled","onDblclick"]))),128))]),_:1},8,["modelValue"]),[[GE,!0]])])])]),_:1}),Vu(A,{span:4,class:"fm-transfer-buttons"},{default:Tu(()=>[L("div",jO,[Vu(B,{type:"primary",style:{},icon:"ele-ArrowRight",onClick:d})]),L("div",YO,[Vu(B,{type:"primary",style:{},icon:"ele-ArrowLeft",onClick:C})]),L("div",KO,[Vu(B,{type:"primary",style:{},icon:"ele-DArrowRight",onClick:f})]),L("div",XO,[Vu(B,{type:"primary",style:{},icon:"ele-DArrowLeft",onClick:p})])]),_:1}),Vu(A,{span:10},{default:Tu(()=>[L("div",ZO,[L("p",JO,[Vu(D,{modelValue:n.rightAllChecked,"onUpdate:modelValue":F[3]||(F[3]=b=>n.rightAllChecked=b),indeterminate:c.value,"validate-event":!1,onChange:l},{default:Tu(()=>[ht(ke(t.rightTitle),1)]),_:1},8,["modelValue","indeterminate"]),L("span",null,ke(n.rightChecked.length)+"/"+ke(t.rightData.length),1)]),L("div",QO,[Vu(g,{class:"transfer-panel__filter",modelValue:n.rightKeyword,"onUpdate:modelValue":F[4]||(F[4]=b=>n.rightKeyword=b),placeholder:"\u641C\u7D22","prefix-icon":"ele-Search",clearable:"","validate-event":!1},null,8,["modelValue"]),pr(Vu(m,{modelValue:n.rightChecked,"onUpdate:modelValue":F[5]||(F[5]=b=>n.rightChecked=b),"validate-event":!1,class:"fm-transfer-panel__list"},{default:Tu(()=>[(O(!0),V(nr,null,rn(s.value,(b,_)=>(O(),Zu(D,{key:_,value:b[t.options.value],label:b[t.options.label],disabled:b[t.options.disabled],"validate-event":!1,class:"fm-transfer-panel__item",onDblclick:x=>h(b)},null,8,["value","label","disabled","onDblclick"]))),128))]),_:1},8,["modelValue"]),[[GE,!0]])])])]),_:1})]),_:1})}}});const eR={class:"notice-bar-warp-text-box"},tR=["innerHTML"];var rR=U({name:"FmNoticeBar",__name:"index",props:{mode:{type:String,default:""},text:{type:String,default:""},color:{type:String,default:"var(--el-color-warning)"},background:{type:String,default:"var(--el-color-warning-light-9)"},size:{type:[Number,String],default:14},height:{type:Number,default:40},delay:{type:Number,default:1},speed:{type:Number,default:100},scrollable:{type:Boolean,default:!1},leftIcon:{type:String,default:"iconfont icon-tongzhi2"},rightIcon:{type:String,default:""}},emits:["close","link"],setup(e,{emit:u}){const t=e,r=re(null),n=re(null),a=bn({isMode:!1,warpOWidth:0,textOWidth:0,animationDuration:0});wn(async()=>{t.scrollable||i()});const i=()=>{xr(()=>{if(r.value&&n.value){a.warpOWidth=r.value.offsetWidth,a.textOWidth=n.value.scrollWidth,a.animationDuration=(a.textOWidth+a.warpOWidth)/t.speed,n.value.style.animation="none",n.value.offsetHeight,n.value.style.animation=`marquee ${a.animationDuration}s linear infinite`;const o=`
|
|
2
2
|
@keyframes marquee {
|
|
3
3
|
0% { transform: translateX(${a.warpOWidth}px); }
|
|
4
4
|
100% { transform: translateX(-${a.textOWidth}px); }
|
|
@@ -160,7 +160,7 @@ echarts.use([`+S+"]);":"Unknown series "+x))}return}if(E==="tooltip"){if(D){proc
|
|
|
160
160
|
color: #B3B2B2;
|
|
161
161
|
background: transparent;
|
|
162
162
|
z-index: 10;
|
|
163
|
-
`,d.innerHTML="<span>\u6682\u65E0\u6570\u636E</span>",a.value.style.position!=="relative"&&a.value.style.position!=="absolute"&&(a.value.style.position="relative"),a.value.appendChild(d))},remove:()=>{d&&a.value&&(a.value.removeChild(d),d=null)},updateStyle:()=>{d&&(d.style.color="#999")}},q=(su={},du=!1)=>{if(!a.value||E)return;const cu={...u,...su};try{if(du){i&&i.clear(),z.create();return}else z.remove();W(a.value)?t>0?setTimeout(()=>R(cu),t):R(cu):(s=cu,P())}catch(vu){console.error("\u56FE\u8868\u521D\u59CB\u5316\u5931\u8D25:",vu)}},H=su=>{if(!E)try{if(!i){q(su);return}i.setOption(su)}catch(du){console.error("\u56FE\u8868\u66F4\u65B0\u5931\u8D25:",du)}},Z=()=>{if(i&&!E)try{i.resize()}catch(su){console.error("\u56FE\u8868resize\u5931\u8D25:",su)}},Q=()=>{if(E=!0,i)try{i.dispose()}catch(su){console.error("\u56FE\u8868\u9500\u6BC1\u5931\u8D25:",su)}finally{i=null}g(),A(),z.remove(),G(),f(),b(),s=null},lu=()=>i,au=()=>i!==null;return wn(()=>{window.addEventListener("resize",C)}),KE(()=>{window.removeEventListener("resize",C)}),WE(()=>{Q()}),{chartRef:a,initChart:q,updateChart:H,handleResize:Z,destroyChart:Q,getChartInstance:lu,isChartInitialized:au,emptyStateManager:z,getAxisLineStyle:_,getSplitLineStyle:x,getAxisLabelStyle:S,getAxisTickStyle:w,getAnimationConfig:T,getTooltipStyle:I,getLegendStyle:M,useChartOps:w6,getGridWithLegend:N}}function uI(e){const{props:u,generateOptions:t,checkEmpty:r,watchSources:n=[],onVisible:a,chartOptions:i={}}=e,o=QP(i),{chartRef:s,initChart:l,emptyStateManager:c}=o,E=Ee(()=>u.isEmpty?!0:r?r():!1),d=()=>{xr(()=>{E.value?(o.getChartInstance()&&o.getChartInstance()?.clear(),c.create()):(c.remove(),l(t()))})},f=()=>{a?a():d()},h=[],C=()=>{if(n.length>0){const F=ft(n,d,{deep:!0});h.push(F)}},p=()=>{h.forEach(F=>F()),h.length=0},v=()=>{wn(()=>{d(),s.value&&s.value.addEventListener("chartVisible",f)}),KE(()=>{s.value&&s.value.removeEventListener("chartVisible",f),p(),c.remove()})};return C(),v(),{...o,isEmpty:E,updateChart:d,handleChartVisible:f}}var Xpu=U({name:"FmHBarChart",__name:"index",props:{data:{default:()=>[0,0,0,0,0,0,0]},xAxisData:{default:()=>[]},barWidth:{default:"36%"},stack:{type:Boolean,default:!1},
|
|
163
|
+
`,d.innerHTML="<span>\u6682\u65E0\u6570\u636E</span>",a.value.style.position!=="relative"&&a.value.style.position!=="absolute"&&(a.value.style.position="relative"),a.value.appendChild(d))},remove:()=>{d&&a.value&&(a.value.removeChild(d),d=null)},updateStyle:()=>{d&&(d.style.color="#999")}},q=(su={},du=!1)=>{if(!a.value||E)return;const cu={...u,...su};try{if(du){i&&i.clear(),z.create();return}else z.remove();W(a.value)?t>0?setTimeout(()=>R(cu),t):R(cu):(s=cu,P())}catch(vu){console.error("\u56FE\u8868\u521D\u59CB\u5316\u5931\u8D25:",vu)}},H=su=>{if(!E)try{if(!i){q(su);return}i.setOption(su)}catch(du){console.error("\u56FE\u8868\u66F4\u65B0\u5931\u8D25:",du)}},Z=()=>{if(i&&!E)try{i.resize()}catch(su){console.error("\u56FE\u8868resize\u5931\u8D25:",su)}},Q=()=>{if(E=!0,i)try{i.dispose()}catch(su){console.error("\u56FE\u8868\u9500\u6BC1\u5931\u8D25:",su)}finally{i=null}g(),A(),z.remove(),G(),f(),b(),s=null},lu=()=>i,au=()=>i!==null;return wn(()=>{window.addEventListener("resize",C)}),KE(()=>{window.removeEventListener("resize",C)}),WE(()=>{Q()}),{chartRef:a,initChart:q,updateChart:H,handleResize:Z,destroyChart:Q,getChartInstance:lu,isChartInitialized:au,emptyStateManager:z,getAxisLineStyle:_,getSplitLineStyle:x,getAxisLabelStyle:S,getAxisTickStyle:w,getAnimationConfig:T,getTooltipStyle:I,getLegendStyle:M,useChartOps:w6,getGridWithLegend:N}}function uI(e){const{props:u,generateOptions:t,checkEmpty:r,watchSources:n=[],onVisible:a,chartOptions:i={}}=e,o=QP(i),{chartRef:s,initChart:l,emptyStateManager:c}=o,E=Ee(()=>u.isEmpty?!0:r?r():!1),d=()=>{xr(()=>{E.value?(o.getChartInstance()&&o.getChartInstance()?.clear(),c.create()):(c.remove(),l(t()))})},f=()=>{a?a():d()},h=[],C=()=>{if(n.length>0){const F=ft(n,d,{deep:!0});h.push(F)}},p=()=>{h.forEach(F=>F()),h.length=0},v=()=>{wn(()=>{d(),s.value&&s.value.addEventListener("chartVisible",f)}),KE(()=>{s.value&&s.value.removeEventListener("chartVisible",f),p(),c.remove()})};return C(),v(),{...o,isEmpty:E,updateChart:d,handleChartVisible:f}}var Xpu=U({name:"FmHBarChart",__name:"index",props:{height:{type:Number,default:()=>w6().chartHeight},loading:{type:Boolean,default:!1},isEmpty:{type:Boolean,default:!1},colors:{type:Array,default:()=>w6().colors},data:{type:Array,default:()=>[0,0,0,0,0,0,0]},xAxisData:{type:Array,default:()=>[]},barWidth:{type:String,default:"36%"},stack:{type:Boolean,default:!1},showAxisLabel:{type:Boolean,default:!0},showAxisLine:{type:Boolean,default:!0},showSplitLine:{type:Boolean,default:!0},showTooltip:{type:Boolean,default:!0},showLegend:{type:Boolean,default:!1},legendPosition:{type:String,default:"bottom"}},setup(e){const u=e,t=Ee(()=>Array.isArray(u.data)&&u.data.length>0&&typeof u.data[0]=="object"&&"name"in u.data[0]),r=(p,v)=>p||(v!==void 0?u.colors[v%u.colors.length]:new r9.LinearGradient(0,0,1,0,[{offset:0,color:"#4ABEFF"},{offset:1,color:"#00E4E5"}])),n=p=>new r9.LinearGradient(0,0,1,0,[{offset:0,color:p},{offset:1,color:p}]),a=p=>({borderRadius:4,color:typeof p=="string"?n(p):p}),i=p=>{const v=d();return{name:p.name,data:p.data,type:"bar",stack:p.stack,itemStyle:a(p.color),barWidth:p.barWidth||u.barWidth,...v}},{chartRef:o,getAxisLineStyle:s,getAxisLabelStyle:l,getAxisTickStyle:c,getSplitLineStyle:E,getAnimationConfig:d,getTooltipStyle:f,getLegendStyle:h,getGridWithLegend:C}=uI({props:u,checkEmpty:()=>{if(Array.isArray(u.data)&&typeof u.data[0]=="number"){const p=u.data;return!p.length||p.every(v=>v===0)}if(Array.isArray(u.data)&&typeof u.data[0]=="object"){const p=u.data;return!p.length||p.every(v=>!v.data?.length||v.data.every(F=>F===0))}return!0},watchSources:[()=>u.data,()=>u.xAxisData,()=>u.colors],generateOptions:()=>{const p={grid:C(u.showLegend&&t.value,u.legendPosition,{top:15,right:0,left:0}),tooltip:u.showTooltip?f():void 0,xAxis:{type:"value",axisTick:c(),axisLine:s(u.showAxisLine),axisLabel:l(u.showAxisLabel),splitLine:E(u.showSplitLine)},yAxis:{type:"category",data:u.xAxisData,axisTick:c(),axisLabel:l(u.showAxisLabel),axisLine:s(u.showAxisLine)}};if(u.showLegend&&t.value&&(p.legend=h(u.legendPosition)),t.value){const v=u.data;p.series=v.map((F,D)=>{const g=r(u.colors[D],D);return i({name:F.name,data:F.data,color:g,barWidth:F.barWidth,stack:u.stack?F.stack||"total":void 0})})}else{const v=u.data,F=r();p.series=[i({data:v,color:F})]}return p}});return(p,v)=>{const F=Ha("loading");return pr((O(),V("div",{ref_key:"chartRef",ref:o,class:"relative w-full",style:yt({height:u.height})},null,4)),[[F,u.loading]])}}});const Zpu=["src"];var Jpu=U({name:"svgIcon",__name:"svgicon",props:{name:{type:String},size:{type:Number,default:()=>14},color:{type:String}},setup(e){const u=e,t=["https","http","/src","/assets","data:image",window.__env__.VITE_PUBLIC_PATH],r=Ee(()=>u?.name),n=Ee(()=>u?.name?.startsWith("ele-")),a=Ee(()=>t.find(l=>u.name?.startsWith(l))),i=Ee(()=>`font-size: ${u.size}px;color: ${u.color};`),o=Ee(()=>`width: ${u.size}px;height: ${u.size}px;display: inline-block;overflow: hidden;`),s=Ee(()=>{const l=[];return["-webkit","-ms","-o","-moz"].forEach(E=>l.push(`${E}-filter: drop-shadow(${u.color} ${u.size}px 0);`)),`width: ${u.size}px;height: ${u.size}px;position: relative;left: -${u.size}px;${l.join("")}`});return(l,c)=>n.value?(O(),V("i",{key:0,class:"el-icon",style:yt(i.value)},[(O(),Zu(m5(r.value)))],4)):a.value?(O(),V("div",{key:1,style:yt(o.value)},[L("img",{src:r.value,style:yt(s.value)},null,12,Zpu)],4)):(O(),V("i",{key:2,class:Ii(r.value),style:yt(i.value)},null,6))}});function eI(e){const u=Kuu;for(const t in u)e._context.components[`ele-${u[t].name}`]||e.component(`ele-${u[t].name}`,u[t]);e._context.components.SvgIcon||e.component("SvgIcon",Jpu)}const tI=uR,rI=rR,Qpu=cR,nI=ER,aI=oq,iI=Bru,oI=_ru,sI=Lru,lI=Mru,cI=nB,EI=rB,dI=tB,fI=$ru,hI=aB,pI=jru,CI=Yru,vI=Xpu,u8u=(e=[])=>({install:t=>{e.forEach(r=>{t._context.components[r.name]||t.component(r.name,r)}),t&&eI(t)}});var e8u=U({name:"FmLogin",__name:"index",setup(e){const u=re(!1);function t(){u.value=!0}return(r,n)=>(O(),V("div",{onClick:t},[...n[0]||(n[0]=[L("h1",null,"login xxxxx ",-1)])]))}});const FI=e8u,t8u=[FI,tI,rI,nI,aI,oI,iI,lI,sI,cI,EI,dI,fI,hI,pI,CI,vI];var DI=u8u([...t8u]);const gI=[],mI=[];function r8u(){if(gI.length<=0)return!1;gI.map(e=>{let u=document.createElement("link");u.rel="stylesheet",u.href=e,u.crossOrigin="anonymous",document.getElementsByTagName("head")[0].appendChild(u)})}function n8u(){if(mI.length<=0)return!1;mI.map(e=>{let u=document.createElement("script");u.src=e,document.body.appendChild(u)})}const a8u={cssCdn:()=>{r8u()},jsCdn:()=>{n8u()}},i8u={start:()=>{const e=document.body,u=document.createElement("div");u.setAttribute("class","loading-next");const t=`
|
|
164
164
|
<div class="loading-next-box">
|
|
165
165
|
<div class="loading-next-box-warp">
|
|
166
166
|
<div class="loading-next-box-item"></div>
|
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fm-dev v1.0.
|
|
1
|
+
/*! fm-dev v1.0.117 */
|
|
2
2
|
import { defineComponent, reactive, computed, watch, resolveComponent, createBlock, openBlock, withCtx, createVNode, createElementVNode, createTextVNode, toDisplayString as toDisplayString$1, withDirectives, createElementBlock, Fragment, renderList, vShow, ref, onMounted, nextTick, normalizeStyle as normalizeStyle$1, createCommentVNode, normalizeClass, withModifiers, mergeModels, useModel, effectScope, getCurrentInstance, shallowRef, isRef as isRef$1, inject, onUnmounted, h, Text, createSlots, renderSlot, markRaw, hasInjectionContext, toRaw as toRaw$1, isReactive as isReactive$1, toRef, unref, getCurrentScope, onScopeDispose, toRefs, resolveDirective, mergeProps, resolveDynamicComponent, useSlots, toHandlers, onBeforeUnmount, onUpdated, useAttrs, normalizeProps, guardReactiveProps } from 'vue';
|
|
3
3
|
import crypto from 'crypto';
|
|
4
4
|
import require$$0 from 'url';
|
|
@@ -124885,21 +124885,51 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
124885
124885
|
...{ name: "FmHBarChart" },
|
|
124886
124886
|
__name: "index",
|
|
124887
124887
|
props: {
|
|
124888
|
-
|
|
124889
|
-
|
|
124890
|
-
|
|
124891
|
-
|
|
124892
|
-
|
|
124893
|
-
|
|
124894
|
-
|
|
124895
|
-
|
|
124896
|
-
|
|
124888
|
+
// 基础配置
|
|
124889
|
+
height: {
|
|
124890
|
+
type: Number,
|
|
124891
|
+
default: () => useChartOps().chartHeight
|
|
124892
|
+
},
|
|
124893
|
+
loading: {
|
|
124894
|
+
type: Boolean,
|
|
124895
|
+
default: false
|
|
124896
|
+
},
|
|
124897
|
+
isEmpty: {
|
|
124898
|
+
type: Boolean,
|
|
124899
|
+
default: false
|
|
124900
|
+
},
|
|
124901
|
+
colors: {
|
|
124902
|
+
type: Array,
|
|
124903
|
+
default: () => useChartOps().colors
|
|
124904
|
+
},
|
|
124905
|
+
// 数据配置
|
|
124906
|
+
data: {
|
|
124907
|
+
type: Array,
|
|
124908
|
+
default: () => [0, 0, 0, 0, 0, 0, 0]
|
|
124909
|
+
},
|
|
124910
|
+
xAxisData: {
|
|
124911
|
+
type: Array,
|
|
124912
|
+
default: () => []
|
|
124913
|
+
},
|
|
124914
|
+
barWidth: {
|
|
124915
|
+
type: String,
|
|
124916
|
+
default: "36%"
|
|
124917
|
+
},
|
|
124918
|
+
stack: {
|
|
124919
|
+
type: Boolean,
|
|
124920
|
+
default: false
|
|
124921
|
+
},
|
|
124922
|
+
// 轴线显示配置
|
|
124897
124923
|
showAxisLabel: { type: Boolean, default: true },
|
|
124898
124924
|
showAxisLine: { type: Boolean, default: true },
|
|
124899
124925
|
showSplitLine: { type: Boolean, default: true },
|
|
124926
|
+
// 交互配置
|
|
124900
124927
|
showTooltip: { type: Boolean, default: true },
|
|
124901
124928
|
showLegend: { type: Boolean, default: false },
|
|
124902
|
-
legendPosition: {
|
|
124929
|
+
legendPosition: {
|
|
124930
|
+
type: String,
|
|
124931
|
+
default: "bottom"
|
|
124932
|
+
}
|
|
124903
124933
|
},
|
|
124904
124934
|
setup(__props) {
|
|
124905
124935
|
const props = __props;
|
|
@@ -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 };
|
|
@@ -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
/package/{es → lib}/defaults.css
RENAMED
|
File without changes
|