hfn-components 0.1.0 → 0.1.2
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.css +1 -0
- package/es/component.mjs +2 -0
- package/es/components/chart/index.d.ts +151 -0
- package/es/components/chart/index.mjs +7 -0
- package/es/components/chart/src/HtChart.d.ts +57 -0
- package/es/components/chart/src/HtChart.mjs +77 -0
- package/es/components/chart/src/HtChart.vue.d.ts +157 -0
- package/es/components/chart/src/HtChart.vue.mjs +91 -0
- package/es/components/chart/src/HtChart.vue2.mjs +94 -0
- package/es/components/chart/src/chartConfig.d.ts +7 -0
- package/es/components/chart/src/chartConfig.mjs +88 -0
- package/es/components/chart/style/index.d.ts +1 -0
- package/es/components/elTable/index.d.ts +84 -37
- package/es/components/elTable/index.mjs +1 -1
- package/es/components/elTable/src/columnDeal.vue.d.ts +27 -15
- package/es/components/elTable/src/columnDeal.vue.mjs +2 -2
- package/es/components/elTable/src/columnDeal.vue2.mjs +2 -4
- package/es/components/elTable/src/elTable.d.ts +14 -2
- package/es/components/elTable/src/elTable.mjs +11 -1
- package/es/components/elTable/src/elTable.vue.d.ts +84 -37
- package/es/components/elTable/src/elTable.vue.mjs +9 -3
- package/es/components/elTable/src/elTable.vue2.mjs +3 -3
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +3 -1
- package/es/components/table/HtTable.d.ts +1 -1
- package/es/components/table/HtTable.vue.d.ts +6 -6
- package/es/components/table/HtTable.vue.mjs +8 -2
- package/es/components/table/HtTable.vue2.mjs +11 -15
- package/es/components/table/index.d.ts +6 -6
- package/es/constants/table.d.ts +45 -2
- package/es/constants/table.mjs +4 -3
- package/es/css/index.css +59 -0
- package/es/index.mjs +3 -1
- package/es/utils/chart.d.ts +7 -0
- package/es/utils/chart.mjs +163 -0
- package/es/utils/common.d.ts +1 -1
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.mjs +1 -0
- package/es/utils/tool.mjs +1 -1
- package/global.d.ts +8 -9
- package/package.json +4 -2
- package/theme-chalk/ht-chart.css +1 -0
- package/theme-chalk/index.css +1 -0
- package/theme-chalk/src/chart.scss +53 -0
- package/theme-chalk/src/index.scss +1 -0
- package/es/components/button/HtButton.vue.d.ts +0 -19
- package/es/components/button/HtButton.vue.mjs +0 -16
- package/es/components/button/HtButton.vue2.mjs +0 -42
- package/es/components/button/index.d.ts +0 -20
- package/es/components/button/index.mjs +0 -6
- package/es/components/button/instance.d.ts +0 -2
- package/es/components/button/instance.mjs +0 -1
- package/es/components/eleTable/index.d.ts +0 -0
- package/es/components/eleTable/src/eleTable.d.ts +0 -0
- package/es/components/eleTable/src/eleTable.mjs +0 -1
- package/es/components/eleTable/src/eleTable.vue.mjs +0 -10
- /package/es/components/{eleTable → chart/style}/index.mjs +0 -0
|
@@ -13,9 +13,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
};
|
|
14
14
|
}, {
|
|
15
15
|
props: import("@vue/shared").LooseRequired<{
|
|
16
|
+
readonly loading: boolean;
|
|
16
17
|
readonly dataSource: unknown[];
|
|
17
18
|
readonly tableColumn: import("./elTable").ElTableColumns[];
|
|
18
|
-
readonly loading: boolean;
|
|
19
19
|
} & {}>;
|
|
20
20
|
readonly ElTable: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
21
21
|
data: {
|
|
@@ -23,14 +23,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
23
23
|
default: () => never[];
|
|
24
24
|
};
|
|
25
25
|
size: {
|
|
26
|
-
readonly type: import("vue").PropType<import("element-plus").ButtonType<StringConstructor, "" | "
|
|
26
|
+
readonly type: import("vue").PropType<import("element-plus").ButtonType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
27
27
|
readonly required: false;
|
|
28
28
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
29
29
|
__epPropKey: true;
|
|
30
30
|
};
|
|
31
|
-
width: (
|
|
32
|
-
height: (
|
|
33
|
-
maxHeight: (
|
|
31
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
32
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
33
|
+
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
34
34
|
fit: {
|
|
35
35
|
type: BooleanConstructor;
|
|
36
36
|
default: boolean;
|
|
@@ -54,7 +54,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
54
|
headerCellClassName: import("vue").PropType<import("element-plus").CellCls<any> | undefined>;
|
|
55
55
|
headerCellStyle: import("vue").PropType<import("element-plus").CellStyle<any> | undefined>;
|
|
56
56
|
highlightCurrentRow: BooleanConstructor;
|
|
57
|
-
currentRowKey: (
|
|
57
|
+
currentRowKey: (StringConstructor | NumberConstructor)[];
|
|
58
58
|
emptyText: StringConstructor;
|
|
59
59
|
expandRowKeys: import("vue").PropType<any[] | undefined>;
|
|
60
60
|
defaultExpandAll: BooleanConstructor;
|
|
@@ -130,7 +130,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
130
130
|
handleHeaderFooterMousewheel: (event: any, data: any) => void;
|
|
131
131
|
handleMouseLeave: () => void;
|
|
132
132
|
tableId: string;
|
|
133
|
-
tableSize: import("vue").ComputedRef<"" | "
|
|
133
|
+
tableSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
134
134
|
isHidden: import("vue").Ref<boolean>;
|
|
135
135
|
isEmpty: import("vue").ComputedRef<boolean>;
|
|
136
136
|
renderExpanded: import("vue").Ref<null>;
|
|
@@ -201,14 +201,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
201
201
|
default: () => never[];
|
|
202
202
|
};
|
|
203
203
|
size: {
|
|
204
|
-
readonly type: import("vue").PropType<import("element-plus").ButtonType<StringConstructor, "" | "
|
|
204
|
+
readonly type: import("vue").PropType<import("element-plus").ButtonType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
205
205
|
readonly required: false;
|
|
206
206
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
207
207
|
__epPropKey: true;
|
|
208
208
|
};
|
|
209
|
-
width: (
|
|
210
|
-
height: (
|
|
211
|
-
maxHeight: (
|
|
209
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
210
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
211
|
+
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
212
212
|
fit: {
|
|
213
213
|
type: BooleanConstructor;
|
|
214
214
|
default: boolean;
|
|
@@ -232,7 +232,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
232
232
|
headerCellClassName: import("vue").PropType<import("element-plus").CellCls<any> | undefined>;
|
|
233
233
|
headerCellStyle: import("vue").PropType<import("element-plus").CellStyle<any> | undefined>;
|
|
234
234
|
highlightCurrentRow: BooleanConstructor;
|
|
235
|
-
currentRowKey: (
|
|
235
|
+
currentRowKey: (StringConstructor | NumberConstructor)[];
|
|
236
236
|
emptyText: StringConstructor;
|
|
237
237
|
expandRowKeys: import("vue").PropType<any[] | undefined>;
|
|
238
238
|
defaultExpandAll: BooleanConstructor;
|
|
@@ -335,11 +335,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
335
335
|
property: StringConstructor;
|
|
336
336
|
prop: StringConstructor;
|
|
337
337
|
width: {
|
|
338
|
-
type: (
|
|
338
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
339
339
|
default: string;
|
|
340
340
|
};
|
|
341
341
|
minWidth: {
|
|
342
|
-
type: (
|
|
342
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
343
343
|
default: string;
|
|
344
344
|
};
|
|
345
345
|
renderHeader: import("vue").PropType<(data: {
|
|
@@ -397,11 +397,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
397
397
|
property: StringConstructor;
|
|
398
398
|
prop: StringConstructor;
|
|
399
399
|
width: {
|
|
400
|
-
type: (
|
|
400
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
401
401
|
default: string;
|
|
402
402
|
};
|
|
403
403
|
minWidth: {
|
|
404
|
-
type: (
|
|
404
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
405
405
|
default: string;
|
|
406
406
|
};
|
|
407
407
|
renderHeader: import("vue").PropType<(data: {
|
|
@@ -471,11 +471,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
471
471
|
property: StringConstructor;
|
|
472
472
|
prop: StringConstructor;
|
|
473
473
|
width: {
|
|
474
|
-
type: (
|
|
474
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
475
475
|
default: string;
|
|
476
476
|
};
|
|
477
477
|
minWidth: {
|
|
478
|
-
type: (
|
|
478
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
479
479
|
default: string;
|
|
480
480
|
};
|
|
481
481
|
renderHeader: import("vue").PropType<(data: {
|
|
@@ -533,11 +533,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
533
533
|
property: StringConstructor;
|
|
534
534
|
prop: StringConstructor;
|
|
535
535
|
width: {
|
|
536
|
-
type: (
|
|
536
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
537
537
|
default: string;
|
|
538
538
|
};
|
|
539
539
|
minWidth: {
|
|
540
|
-
type: (
|
|
540
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
541
541
|
default: string;
|
|
542
542
|
};
|
|
543
543
|
renderHeader: import("vue").PropType<(data: {
|
|
@@ -596,29 +596,76 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
596
596
|
filterMultiple: boolean;
|
|
597
597
|
}, {}>>;
|
|
598
598
|
readonly vLoading: import("vue").Directive<import("element-plus/es/components/loading/src/directive").ElementLoading, import("element-plus/es/components/loading/src/directive").LoadingBinding>;
|
|
599
|
+
readonly TABLE_KEY: {
|
|
600
|
+
readonly index: "序号";
|
|
601
|
+
readonly year: "年份";
|
|
602
|
+
readonly cucmulativeReturn: "区间收益";
|
|
603
|
+
readonly excessReturn: "超额区间收益";
|
|
604
|
+
readonly vol: "年化波动率";
|
|
605
|
+
readonly excessVol: "超额年化波动率";
|
|
606
|
+
readonly sharpeRatio: "夏普比率";
|
|
607
|
+
readonly excessSharpeRatio: "超额夏普比率";
|
|
608
|
+
readonly calmarRatio: "卡玛比率";
|
|
609
|
+
readonly excessCalmarRatio: "超额卡玛比率";
|
|
610
|
+
readonly sortinoRatio: "索提诺比率";
|
|
611
|
+
readonly excessSortinoRatio: "超额索提诺比率";
|
|
612
|
+
readonly downsideDev: "下行风险";
|
|
613
|
+
readonly excessDownsideDev: "超额下行风险";
|
|
614
|
+
readonly maxDrawdown: "最大回撤";
|
|
615
|
+
readonly excessMaxDrawdown: "超额最大回撤";
|
|
616
|
+
readonly maxDrawdownDays: "最大回撤回补期(天)";
|
|
617
|
+
readonly excessMaxDrawdownDays: "超额最大回撤回补期(天)";
|
|
618
|
+
readonly maxNormalDays: "最长连续不创新高天数(天)";
|
|
619
|
+
readonly excessMaxNormalDays: "超额最长连续不创新高天数(天)";
|
|
620
|
+
readonly '01': "1月";
|
|
621
|
+
readonly '02': "2月";
|
|
622
|
+
readonly '03': "3月";
|
|
623
|
+
readonly '04': "4月";
|
|
624
|
+
readonly '05': "5月";
|
|
625
|
+
readonly '06': "6月";
|
|
626
|
+
readonly '07': "7月";
|
|
627
|
+
readonly '08': "8月";
|
|
628
|
+
readonly '09': "9月";
|
|
629
|
+
readonly '10': "10月";
|
|
630
|
+
readonly '11': "11月";
|
|
631
|
+
readonly '12': "12月";
|
|
632
|
+
readonly MonthlyPositiveRatio: "月胜率";
|
|
633
|
+
readonly all_year: "全年";
|
|
634
|
+
};
|
|
599
635
|
ColumnDeal: import("vue").DefineComponent<{
|
|
600
|
-
dealType: {
|
|
601
|
-
type:
|
|
602
|
-
|
|
636
|
+
readonly dealType: {
|
|
637
|
+
readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "notProcessed">;
|
|
638
|
+
readonly default: "";
|
|
603
639
|
};
|
|
604
|
-
text: {
|
|
605
|
-
type: (
|
|
606
|
-
|
|
640
|
+
readonly text: {
|
|
641
|
+
readonly type: import("vue").PropType<string | number | undefined>;
|
|
642
|
+
readonly default: undefined;
|
|
607
643
|
};
|
|
608
644
|
}, {
|
|
609
|
-
props:
|
|
610
|
-
|
|
645
|
+
props: import("@vue/shared").LooseRequired<{
|
|
646
|
+
readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "notProcessed";
|
|
647
|
+
readonly text?: string | number | undefined;
|
|
648
|
+
} & {}>;
|
|
649
|
+
readonly CLOUMN_DEAL: {
|
|
650
|
+
basicText4: (val: string | number | undefined) => string;
|
|
651
|
+
colorText: (val: string | number | undefined) => string;
|
|
652
|
+
colorPercentage: (val: string | number | undefined) => string;
|
|
653
|
+
percentage: (val: string | number | undefined) => string;
|
|
654
|
+
notProcessed: null;
|
|
655
|
+
};
|
|
611
656
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
612
|
-
dealType: {
|
|
613
|
-
type:
|
|
614
|
-
|
|
657
|
+
readonly dealType: {
|
|
658
|
+
readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "notProcessed">;
|
|
659
|
+
readonly default: "";
|
|
615
660
|
};
|
|
616
|
-
text: {
|
|
617
|
-
type: (
|
|
618
|
-
|
|
661
|
+
readonly text: {
|
|
662
|
+
readonly type: import("vue").PropType<string | number | undefined>;
|
|
663
|
+
readonly default: undefined;
|
|
619
664
|
};
|
|
620
|
-
}>>, {
|
|
621
|
-
|
|
665
|
+
}>>, {
|
|
666
|
+
readonly text: string | number | undefined;
|
|
667
|
+
readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "notProcessed";
|
|
668
|
+
}, {}>;
|
|
622
669
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
623
670
|
readonly dataSource: {
|
|
624
671
|
readonly type: ArrayConstructor;
|
|
@@ -633,8 +680,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
633
680
|
readonly default: false;
|
|
634
681
|
};
|
|
635
682
|
}>>, {
|
|
683
|
+
readonly loading: boolean;
|
|
636
684
|
readonly dataSource: unknown[];
|
|
637
685
|
readonly tableColumn: import("./elTable").ElTableColumns[];
|
|
638
|
-
readonly loading: boolean;
|
|
639
686
|
}, {}>;
|
|
640
687
|
export default _default;
|
|
@@ -7,7 +7,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7
7
|
data: $setup.props.dataSource,
|
|
8
8
|
style: { "width": "100%" },
|
|
9
9
|
height: "100%",
|
|
10
|
-
"header-cell-style": {
|
|
10
|
+
"header-cell-style": {
|
|
11
|
+
background: "#f0f0f0",
|
|
12
|
+
color: "#000",
|
|
13
|
+
"font-weight": 500,
|
|
14
|
+
"font-size": "12px"
|
|
15
|
+
}
|
|
11
16
|
}, {
|
|
12
17
|
default: withCtx(() => [
|
|
13
18
|
(openBlock(true), createElementBlock(
|
|
@@ -15,6 +20,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15
20
|
null,
|
|
16
21
|
renderList($setup.props.tableColumn, (item) => {
|
|
17
22
|
return openBlock(), createBlock($setup["ElTableColumn"], {
|
|
23
|
+
key: item.key,
|
|
18
24
|
prop: item.key,
|
|
19
25
|
label: $setup.TABLE_KEY[item.key],
|
|
20
26
|
width: item.width
|
|
@@ -29,8 +35,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29
35
|
/* DYNAMIC */
|
|
30
36
|
}, 1032, ["prop", "label", "width"]);
|
|
31
37
|
}),
|
|
32
|
-
|
|
33
|
-
/*
|
|
38
|
+
128
|
|
39
|
+
/* KEYED_FRAGMENT */
|
|
34
40
|
))
|
|
35
41
|
]),
|
|
36
42
|
_: 1
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
2
|
import { ElTable, ElTableColumn, vLoading } from 'element-plus';
|
|
3
|
-
import ColumnDeal from './columnDeal.vue.mjs';
|
|
4
3
|
import { TABLE_KEY } from '../../../constants/table.mjs';
|
|
4
|
+
import ColumnDeal from './columnDeal.vue.mjs';
|
|
5
5
|
import { elTableProps } from './elTable.mjs';
|
|
6
6
|
|
|
7
7
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -16,9 +16,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
return ElTableColumn;
|
|
17
17
|
}, get vLoading() {
|
|
18
18
|
return vLoading;
|
|
19
|
-
},
|
|
19
|
+
}, get TABLE_KEY() {
|
|
20
20
|
return TABLE_KEY;
|
|
21
|
-
} };
|
|
21
|
+
}, ColumnDeal };
|
|
22
22
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
23
23
|
return __returned__;
|
|
24
24
|
}
|
package/es/components/index.d.ts
CHANGED
package/es/components/index.mjs
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export { HtElTable } from './elTable/index.mjs';
|
|
2
|
-
export {
|
|
2
|
+
export { HtChart } from './chart/index.mjs';
|
|
3
|
+
export { columnDealProps, elTableProps } from './elTable/src/elTable.mjs';
|
|
4
|
+
export { chartProps } from './chart/src/HtChart.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type HtTable from './HtTable.vue';
|
|
2
|
-
import type { ExtractPropTypes, PropType } from
|
|
2
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
import { ColumnGroupType, ColumnType, TablePaginationConfig, SortOrder } from 'ant-design-vue/es/table/interface';
|
|
4
4
|
import { TableColumnType } from 'ant-design-vue';
|
|
5
5
|
interface CustomColumn {
|
|
@@ -108,11 +108,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
108
108
|
};
|
|
109
109
|
}, {
|
|
110
110
|
props: import("@vue/shared").LooseRequired<{
|
|
111
|
-
readonly dataSource: unknown[];
|
|
112
111
|
readonly loading: boolean;
|
|
113
112
|
readonly pageSize: number;
|
|
114
113
|
readonly total: number;
|
|
115
114
|
readonly columns: TableColumns[];
|
|
115
|
+
readonly dataSource: unknown[];
|
|
116
116
|
readonly selectedKeys: (string | number)[];
|
|
117
117
|
readonly actions: import("./HtTable").ActionItem[];
|
|
118
118
|
readonly nowPage: number;
|
|
@@ -325,7 +325,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
325
325
|
};
|
|
326
326
|
};
|
|
327
327
|
showTotal: import("vue").PropType<(total: number, range: [number, number]) => any>;
|
|
328
|
-
size: import("vue").PropType<"
|
|
328
|
+
size: import("vue").PropType<"default" | "small">;
|
|
329
329
|
simple: {
|
|
330
330
|
type: BooleanConstructor;
|
|
331
331
|
default: any;
|
|
@@ -395,7 +395,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
395
395
|
};
|
|
396
396
|
};
|
|
397
397
|
showTotal: import("vue").PropType<(total: number, range: [number, number]) => any>;
|
|
398
|
-
size: import("vue").PropType<"
|
|
398
|
+
size: import("vue").PropType<"default" | "small">;
|
|
399
399
|
simple: {
|
|
400
400
|
type: BooleanConstructor;
|
|
401
401
|
default: any;
|
|
@@ -481,7 +481,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
481
481
|
};
|
|
482
482
|
};
|
|
483
483
|
showTotal: import("vue").PropType<(total: number, range: [number, number]) => any>;
|
|
484
|
-
size: import("vue").PropType<"
|
|
484
|
+
size: import("vue").PropType<"default" | "small">;
|
|
485
485
|
simple: {
|
|
486
486
|
type: BooleanConstructor;
|
|
487
487
|
default: any;
|
|
@@ -541,7 +541,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
541
541
|
};
|
|
542
542
|
};
|
|
543
543
|
showTotal: import("vue").PropType<(total: number, range: [number, number]) => any>;
|
|
544
|
-
size: import("vue").PropType<"
|
|
544
|
+
size: import("vue").PropType<"default" | "small">;
|
|
545
545
|
simple: {
|
|
546
546
|
type: BooleanConstructor;
|
|
547
547
|
default: any;
|
|
@@ -1817,11 +1817,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1817
1817
|
onHandleSelectAll?: ((...args: any[]) => any) | undefined;
|
|
1818
1818
|
onResizeColumn?: ((...args: any[]) => any) | undefined;
|
|
1819
1819
|
}, {
|
|
1820
|
-
readonly dataSource: unknown[];
|
|
1821
1820
|
readonly loading: boolean;
|
|
1822
1821
|
readonly pageSize: number;
|
|
1823
1822
|
readonly total: number;
|
|
1824
1823
|
readonly columns: TableColumns[];
|
|
1824
|
+
readonly dataSource: unknown[];
|
|
1825
1825
|
readonly selectedKeys: (string | number)[];
|
|
1826
1826
|
readonly actions: import("./HtTable").ActionItem[];
|
|
1827
1827
|
readonly nowPage: number;
|
|
@@ -54,8 +54,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
54
54
|
pagination: $setup.props.showOriginalPagination,
|
|
55
55
|
showSorterTooltip: false,
|
|
56
56
|
scroll: $setup.tableScroll,
|
|
57
|
-
class: normalizeClass({
|
|
58
|
-
"row-selection": _ctx.selectShow ? {
|
|
57
|
+
class: normalizeClass({ t44: _ctx.smallHeader, t54: !_ctx.smallHeader }),
|
|
58
|
+
"row-selection": _ctx.selectShow ? {
|
|
59
|
+
selectedRowKeys: $setup.selectedRowKeys,
|
|
60
|
+
onChange: $setup.onSelectChange,
|
|
61
|
+
onSelect: $setup.handleSelect,
|
|
62
|
+
onSelectAll: $setup.handleSelectAll,
|
|
63
|
+
getCheckboxProps: $setup.getCheckboxProps
|
|
64
|
+
} : void 0,
|
|
59
65
|
onResizeColumn: $setup.resizeColumn,
|
|
60
66
|
onChange: $setup.handleTableChange
|
|
61
67
|
}, {
|
|
@@ -10,14 +10,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
10
|
},
|
|
11
11
|
__name: "HtTable",
|
|
12
12
|
props: tableProps,
|
|
13
|
-
emits: [
|
|
14
|
-
"pageChange",
|
|
15
|
-
"filterChange",
|
|
16
|
-
"onSelectChange",
|
|
17
|
-
"handleSelect",
|
|
18
|
-
"handleSelectAll",
|
|
19
|
-
"resizeColumn"
|
|
20
|
-
],
|
|
13
|
+
emits: ["pageChange", "filterChange", "onSelectChange", "handleSelect", "handleSelectAll", "resizeColumn"],
|
|
21
14
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
22
15
|
__expose();
|
|
23
16
|
const props = __props;
|
|
@@ -60,13 +53,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
60
53
|
const tableColumns = computed(() => {
|
|
61
54
|
console.log(props.columns);
|
|
62
55
|
if (props.actions?.length > 0) {
|
|
63
|
-
return [
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
56
|
+
return [
|
|
57
|
+
...props.columns,
|
|
58
|
+
{
|
|
59
|
+
title: "\u64CD\u4F5C",
|
|
60
|
+
dataIndex: "action",
|
|
61
|
+
key: "action",
|
|
62
|
+
align: "center",
|
|
63
|
+
fixed: "right"
|
|
64
|
+
}
|
|
65
|
+
];
|
|
70
66
|
} else return [...props.columns];
|
|
71
67
|
});
|
|
72
68
|
const getIconComponent = (iconType) => {
|
|
@@ -105,11 +105,11 @@ export declare const HtTable: import("hfn-components/es/utils").SFCWithInstall<i
|
|
|
105
105
|
};
|
|
106
106
|
}, {
|
|
107
107
|
props: import("@vue/shared").LooseRequired<{
|
|
108
|
-
readonly dataSource: unknown[];
|
|
109
108
|
readonly loading: boolean;
|
|
110
109
|
readonly pageSize: number;
|
|
111
110
|
readonly total: number;
|
|
112
111
|
readonly columns: import("./HtTable").TableColumns[];
|
|
112
|
+
readonly dataSource: unknown[];
|
|
113
113
|
readonly selectedKeys: (string | number)[];
|
|
114
114
|
readonly actions: import("./HtTable").ActionItem[];
|
|
115
115
|
readonly nowPage: number;
|
|
@@ -322,7 +322,7 @@ export declare const HtTable: import("hfn-components/es/utils").SFCWithInstall<i
|
|
|
322
322
|
};
|
|
323
323
|
};
|
|
324
324
|
showTotal: import("vue").PropType<(total: number, range: [number, number]) => any>;
|
|
325
|
-
size: import("vue").PropType<"
|
|
325
|
+
size: import("vue").PropType<"default" | "small">;
|
|
326
326
|
simple: {
|
|
327
327
|
type: BooleanConstructor;
|
|
328
328
|
default: any;
|
|
@@ -392,7 +392,7 @@ export declare const HtTable: import("hfn-components/es/utils").SFCWithInstall<i
|
|
|
392
392
|
};
|
|
393
393
|
};
|
|
394
394
|
showTotal: import("vue").PropType<(total: number, range: [number, number]) => any>;
|
|
395
|
-
size: import("vue").PropType<"
|
|
395
|
+
size: import("vue").PropType<"default" | "small">;
|
|
396
396
|
simple: {
|
|
397
397
|
type: BooleanConstructor;
|
|
398
398
|
default: any;
|
|
@@ -478,7 +478,7 @@ export declare const HtTable: import("hfn-components/es/utils").SFCWithInstall<i
|
|
|
478
478
|
};
|
|
479
479
|
};
|
|
480
480
|
showTotal: import("vue").PropType<(total: number, range: [number, number]) => any>;
|
|
481
|
-
size: import("vue").PropType<"
|
|
481
|
+
size: import("vue").PropType<"default" | "small">;
|
|
482
482
|
simple: {
|
|
483
483
|
type: BooleanConstructor;
|
|
484
484
|
default: any;
|
|
@@ -538,7 +538,7 @@ export declare const HtTable: import("hfn-components/es/utils").SFCWithInstall<i
|
|
|
538
538
|
};
|
|
539
539
|
};
|
|
540
540
|
showTotal: import("vue").PropType<(total: number, range: [number, number]) => any>;
|
|
541
|
-
size: import("vue").PropType<"
|
|
541
|
+
size: import("vue").PropType<"default" | "small">;
|
|
542
542
|
simple: {
|
|
543
543
|
type: BooleanConstructor;
|
|
544
544
|
default: any;
|
|
@@ -1814,11 +1814,11 @@ export declare const HtTable: import("hfn-components/es/utils").SFCWithInstall<i
|
|
|
1814
1814
|
onHandleSelectAll?: ((...args: any[]) => any) | undefined;
|
|
1815
1815
|
onResizeColumn?: ((...args: any[]) => any) | undefined;
|
|
1816
1816
|
}, {
|
|
1817
|
-
readonly dataSource: unknown[];
|
|
1818
1817
|
readonly loading: boolean;
|
|
1819
1818
|
readonly pageSize: number;
|
|
1820
1819
|
readonly total: number;
|
|
1821
1820
|
readonly columns: import("./HtTable").TableColumns[];
|
|
1821
|
+
readonly dataSource: unknown[];
|
|
1822
1822
|
readonly selectedKeys: (string | number)[];
|
|
1823
1823
|
readonly actions: import("./HtTable").ActionItem[];
|
|
1824
1824
|
readonly nowPage: number;
|
package/es/constants/table.d.ts
CHANGED
|
@@ -1,2 +1,45 @@
|
|
|
1
|
-
export declare const TABLE_KEY:
|
|
2
|
-
|
|
1
|
+
export declare const TABLE_KEY: {
|
|
2
|
+
readonly index: "序号";
|
|
3
|
+
readonly year: "年份";
|
|
4
|
+
readonly cucmulativeReturn: "区间收益";
|
|
5
|
+
readonly excessReturn: "超额区间收益";
|
|
6
|
+
readonly vol: "年化波动率";
|
|
7
|
+
readonly excessVol: "超额年化波动率";
|
|
8
|
+
readonly sharpeRatio: "夏普比率";
|
|
9
|
+
readonly excessSharpeRatio: "超额夏普比率";
|
|
10
|
+
readonly calmarRatio: "卡玛比率";
|
|
11
|
+
readonly excessCalmarRatio: "超额卡玛比率";
|
|
12
|
+
readonly sortinoRatio: "索提诺比率";
|
|
13
|
+
readonly excessSortinoRatio: "超额索提诺比率";
|
|
14
|
+
readonly downsideDev: "下行风险";
|
|
15
|
+
readonly excessDownsideDev: "超额下行风险";
|
|
16
|
+
readonly maxDrawdown: "最大回撤";
|
|
17
|
+
readonly excessMaxDrawdown: "超额最大回撤";
|
|
18
|
+
readonly maxDrawdownDays: "最大回撤回补期(天)";
|
|
19
|
+
readonly excessMaxDrawdownDays: "超额最大回撤回补期(天)";
|
|
20
|
+
readonly maxNormalDays: "最长连续不创新高天数(天)";
|
|
21
|
+
readonly excessMaxNormalDays: "超额最长连续不创新高天数(天)";
|
|
22
|
+
readonly '01': "1月";
|
|
23
|
+
readonly '02': "2月";
|
|
24
|
+
readonly '03': "3月";
|
|
25
|
+
readonly '04': "4月";
|
|
26
|
+
readonly '05': "5月";
|
|
27
|
+
readonly '06': "6月";
|
|
28
|
+
readonly '07': "7月";
|
|
29
|
+
readonly '08': "8月";
|
|
30
|
+
readonly '09': "9月";
|
|
31
|
+
readonly '10': "10月";
|
|
32
|
+
readonly '11': "11月";
|
|
33
|
+
readonly '12': "12月";
|
|
34
|
+
readonly MonthlyPositiveRatio: "月胜率";
|
|
35
|
+
readonly all_year: "全年";
|
|
36
|
+
};
|
|
37
|
+
export declare const CLOUMN_DEAL: {
|
|
38
|
+
basicText4: (val: number | string | undefined) => string;
|
|
39
|
+
colorText: (val: number | string | undefined) => string;
|
|
40
|
+
colorPercentage: (val: number | string | undefined) => string;
|
|
41
|
+
percentage: (val: number | string | undefined) => string;
|
|
42
|
+
notProcessed: null;
|
|
43
|
+
};
|
|
44
|
+
export type clounmKyeType = keyof typeof TABLE_KEY;
|
|
45
|
+
export type dealKeyType = keyof typeof CLOUMN_DEAL;
|
package/es/constants/table.mjs
CHANGED
|
@@ -35,16 +35,17 @@ const TABLE_KEY = {
|
|
|
35
35
|
all_year: "\u5168\u5E74"
|
|
36
36
|
};
|
|
37
37
|
const basicText4 = (val) => {
|
|
38
|
-
return val === "-" ? "-" : val.toFixed(4);
|
|
38
|
+
return val === "-" || val === void 0 ? "-" : val.toFixed(4);
|
|
39
39
|
};
|
|
40
40
|
const percentage = (val) => {
|
|
41
|
-
return val === "-" ? "-" : (val * 100).toFixed(2) + "%";
|
|
41
|
+
return val === "-" || val === void 0 ? "-" : (val * 100).toFixed(2) + "%";
|
|
42
42
|
};
|
|
43
43
|
const CLOUMN_DEAL = {
|
|
44
44
|
basicText4,
|
|
45
45
|
colorText: basicText4,
|
|
46
46
|
colorPercentage: percentage,
|
|
47
|
-
percentage
|
|
47
|
+
percentage,
|
|
48
|
+
notProcessed: null
|
|
48
49
|
};
|
|
49
50
|
|
|
50
51
|
export { CLOUMN_DEAL, TABLE_KEY };
|
package/es/css/index.css
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
.echart-box {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
position: relative;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.echart-content {
|
|
10
|
+
flex: auto;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.echart-lenged {
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: auto;
|
|
16
|
+
margin-top: 6px;
|
|
17
|
+
padding-right: 22px;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-wrap: wrap;
|
|
21
|
+
font-size: 12px;
|
|
22
|
+
position: relative;
|
|
23
|
+
z-index: 999;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.bg-span {
|
|
27
|
+
display: inline-block;
|
|
28
|
+
width: 14px;
|
|
29
|
+
height: 2px;
|
|
30
|
+
margin-right: 6px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.bg-span-bar {
|
|
34
|
+
display: inline-block;
|
|
35
|
+
width: 16px;
|
|
36
|
+
height: 10px;
|
|
37
|
+
border-radius: 2px;
|
|
38
|
+
margin-right: 6px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.span-box {
|
|
42
|
+
margin-left: 5px;
|
|
43
|
+
margin-right: 6px;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.noData {
|
|
50
|
+
width: 100%;
|
|
51
|
+
height: 100%;
|
|
52
|
+
font-size: 16px;
|
|
53
|
+
display: flex;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
align-items: center;
|
|
56
|
+
position: absolute;
|
|
57
|
+
bottom: 0px;
|
|
58
|
+
color: #ccc;
|
|
59
|
+
}
|
package/es/index.mjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import installer from './defaults.mjs';
|
|
2
2
|
export { makeInstaller } from './make-installer.mjs';
|
|
3
3
|
export { HtElTable } from './components/elTable/index.mjs';
|
|
4
|
-
export {
|
|
4
|
+
export { HtChart } from './components/chart/index.mjs';
|
|
5
|
+
export { columnDealProps, elTableProps } from './components/elTable/src/elTable.mjs';
|
|
6
|
+
export { chartProps } from './components/chart/src/HtChart.mjs';
|
|
5
7
|
|
|
6
8
|
const install = installer.install;
|
|
7
9
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { chartProp } from 'hfn-components/es/components/chart';
|
|
2
|
+
export type chartType = 'category' | 'time';
|
|
3
|
+
export declare const legendEnterOperate: (options: any, name: string) => void;
|
|
4
|
+
export declare const legendLeaveOperate: (options: any) => void;
|
|
5
|
+
export declare const setEchartXAxis: (options: any, type: chartType, xAxisData: string[]) => void;
|
|
6
|
+
export declare const setEchartYAxis: (options: any) => void;
|
|
7
|
+
export declare const setEchartTooltip: (options: any, props: chartProp) => void;
|