hfn-components 0.0.9 → 0.1.1
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 +88 -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 +93 -35
- 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 +18 -2
- package/es/components/elTable/src/elTable.mjs +15 -1
- package/es/components/elTable/src/elTable.vue.d.ts +93 -35
- package/es/components/elTable/src/elTable.vue.mjs +15 -6
- package/es/components/elTable/src/elTable.vue2.mjs +6 -4
- 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 +29 -4
- 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
|
@@ -7,8 +7,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
readonly type: import("vue").PropType<import("./elTable").ElTableColumns[]>;
|
|
8
8
|
readonly default: () => never[];
|
|
9
9
|
};
|
|
10
|
+
readonly loading: {
|
|
11
|
+
readonly type: BooleanConstructor;
|
|
12
|
+
readonly default: false;
|
|
13
|
+
};
|
|
10
14
|
}, {
|
|
11
15
|
props: import("@vue/shared").LooseRequired<{
|
|
16
|
+
readonly loading: boolean;
|
|
12
17
|
readonly dataSource: unknown[];
|
|
13
18
|
readonly tableColumn: import("./elTable").ElTableColumns[];
|
|
14
19
|
} & {}>;
|
|
@@ -18,14 +23,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
23
|
default: () => never[];
|
|
19
24
|
};
|
|
20
25
|
size: {
|
|
21
|
-
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>>;
|
|
22
27
|
readonly required: false;
|
|
23
28
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
24
29
|
__epPropKey: true;
|
|
25
30
|
};
|
|
26
|
-
width: (
|
|
27
|
-
height: (
|
|
28
|
-
maxHeight: (
|
|
31
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
32
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
33
|
+
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
29
34
|
fit: {
|
|
30
35
|
type: BooleanConstructor;
|
|
31
36
|
default: boolean;
|
|
@@ -49,7 +54,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
54
|
headerCellClassName: import("vue").PropType<import("element-plus").CellCls<any> | undefined>;
|
|
50
55
|
headerCellStyle: import("vue").PropType<import("element-plus").CellStyle<any> | undefined>;
|
|
51
56
|
highlightCurrentRow: BooleanConstructor;
|
|
52
|
-
currentRowKey: (
|
|
57
|
+
currentRowKey: (StringConstructor | NumberConstructor)[];
|
|
53
58
|
emptyText: StringConstructor;
|
|
54
59
|
expandRowKeys: import("vue").PropType<any[] | undefined>;
|
|
55
60
|
defaultExpandAll: BooleanConstructor;
|
|
@@ -125,7 +130,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
125
130
|
handleHeaderFooterMousewheel: (event: any, data: any) => void;
|
|
126
131
|
handleMouseLeave: () => void;
|
|
127
132
|
tableId: string;
|
|
128
|
-
tableSize: import("vue").ComputedRef<"" | "
|
|
133
|
+
tableSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
129
134
|
isHidden: import("vue").Ref<boolean>;
|
|
130
135
|
isEmpty: import("vue").ComputedRef<boolean>;
|
|
131
136
|
renderExpanded: import("vue").Ref<null>;
|
|
@@ -196,14 +201,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
196
201
|
default: () => never[];
|
|
197
202
|
};
|
|
198
203
|
size: {
|
|
199
|
-
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>>;
|
|
200
205
|
readonly required: false;
|
|
201
206
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
202
207
|
__epPropKey: true;
|
|
203
208
|
};
|
|
204
|
-
width: (
|
|
205
|
-
height: (
|
|
206
|
-
maxHeight: (
|
|
209
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
210
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
211
|
+
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
207
212
|
fit: {
|
|
208
213
|
type: BooleanConstructor;
|
|
209
214
|
default: boolean;
|
|
@@ -227,7 +232,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
227
232
|
headerCellClassName: import("vue").PropType<import("element-plus").CellCls<any> | undefined>;
|
|
228
233
|
headerCellStyle: import("vue").PropType<import("element-plus").CellStyle<any> | undefined>;
|
|
229
234
|
highlightCurrentRow: BooleanConstructor;
|
|
230
|
-
currentRowKey: (
|
|
235
|
+
currentRowKey: (StringConstructor | NumberConstructor)[];
|
|
231
236
|
emptyText: StringConstructor;
|
|
232
237
|
expandRowKeys: import("vue").PropType<any[] | undefined>;
|
|
233
238
|
defaultExpandAll: BooleanConstructor;
|
|
@@ -330,11 +335,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
330
335
|
property: StringConstructor;
|
|
331
336
|
prop: StringConstructor;
|
|
332
337
|
width: {
|
|
333
|
-
type: (
|
|
338
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
334
339
|
default: string;
|
|
335
340
|
};
|
|
336
341
|
minWidth: {
|
|
337
|
-
type: (
|
|
342
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
338
343
|
default: string;
|
|
339
344
|
};
|
|
340
345
|
renderHeader: import("vue").PropType<(data: {
|
|
@@ -392,11 +397,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
392
397
|
property: StringConstructor;
|
|
393
398
|
prop: StringConstructor;
|
|
394
399
|
width: {
|
|
395
|
-
type: (
|
|
400
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
396
401
|
default: string;
|
|
397
402
|
};
|
|
398
403
|
minWidth: {
|
|
399
|
-
type: (
|
|
404
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
400
405
|
default: string;
|
|
401
406
|
};
|
|
402
407
|
renderHeader: import("vue").PropType<(data: {
|
|
@@ -466,11 +471,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
466
471
|
property: StringConstructor;
|
|
467
472
|
prop: StringConstructor;
|
|
468
473
|
width: {
|
|
469
|
-
type: (
|
|
474
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
470
475
|
default: string;
|
|
471
476
|
};
|
|
472
477
|
minWidth: {
|
|
473
|
-
type: (
|
|
478
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
474
479
|
default: string;
|
|
475
480
|
};
|
|
476
481
|
renderHeader: import("vue").PropType<(data: {
|
|
@@ -528,11 +533,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
528
533
|
property: StringConstructor;
|
|
529
534
|
prop: StringConstructor;
|
|
530
535
|
width: {
|
|
531
|
-
type: (
|
|
536
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
532
537
|
default: string;
|
|
533
538
|
};
|
|
534
539
|
minWidth: {
|
|
535
|
-
type: (
|
|
540
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
536
541
|
default: string;
|
|
537
542
|
};
|
|
538
543
|
renderHeader: import("vue").PropType<(data: {
|
|
@@ -590,29 +595,77 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
590
595
|
reserveSelection: boolean;
|
|
591
596
|
filterMultiple: boolean;
|
|
592
597
|
}, {}>>;
|
|
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
|
+
};
|
|
593
635
|
ColumnDeal: import("vue").DefineComponent<{
|
|
594
|
-
dealType: {
|
|
595
|
-
type:
|
|
596
|
-
|
|
636
|
+
readonly dealType: {
|
|
637
|
+
readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "notProcessed">;
|
|
638
|
+
readonly default: "";
|
|
597
639
|
};
|
|
598
|
-
text: {
|
|
599
|
-
type: (
|
|
600
|
-
|
|
640
|
+
readonly text: {
|
|
641
|
+
readonly type: import("vue").PropType<string | number | undefined>;
|
|
642
|
+
readonly default: undefined;
|
|
601
643
|
};
|
|
602
644
|
}, {
|
|
603
|
-
props:
|
|
604
|
-
|
|
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
|
+
};
|
|
605
656
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
606
|
-
dealType: {
|
|
607
|
-
type:
|
|
608
|
-
|
|
657
|
+
readonly dealType: {
|
|
658
|
+
readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "notProcessed">;
|
|
659
|
+
readonly default: "";
|
|
609
660
|
};
|
|
610
|
-
text: {
|
|
611
|
-
type: (
|
|
612
|
-
|
|
661
|
+
readonly text: {
|
|
662
|
+
readonly type: import("vue").PropType<string | number | undefined>;
|
|
663
|
+
readonly default: undefined;
|
|
613
664
|
};
|
|
614
|
-
}>>, {
|
|
615
|
-
|
|
665
|
+
}>>, {
|
|
666
|
+
readonly text: string | number | undefined;
|
|
667
|
+
readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "notProcessed";
|
|
668
|
+
}, {}>;
|
|
616
669
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
617
670
|
readonly dataSource: {
|
|
618
671
|
readonly type: ArrayConstructor;
|
|
@@ -622,7 +675,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
622
675
|
readonly type: import("vue").PropType<import("./elTable").ElTableColumns[]>;
|
|
623
676
|
readonly default: () => never[];
|
|
624
677
|
};
|
|
678
|
+
readonly loading: {
|
|
679
|
+
readonly type: BooleanConstructor;
|
|
680
|
+
readonly default: false;
|
|
681
|
+
};
|
|
625
682
|
}>>, {
|
|
683
|
+
readonly loading: boolean;
|
|
626
684
|
readonly dataSource: unknown[];
|
|
627
685
|
readonly tableColumn: import("./elTable").ElTableColumns[];
|
|
628
686
|
}, {}>;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import _sfc_main from './elTable.vue2.mjs';
|
|
2
|
-
import { openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createVNode } from 'vue';
|
|
2
|
+
import { withDirectives, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createVNode } from 'vue';
|
|
3
3
|
import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
4
4
|
|
|
5
5
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6
|
-
return openBlock(), createBlock($setup["ElTable"], {
|
|
6
|
+
return withDirectives((openBlock(), createBlock($setup["ElTable"], {
|
|
7
7
|
data: $setup.props.dataSource,
|
|
8
8
|
style: { "width": "100%" },
|
|
9
|
-
|
|
9
|
+
height: "100%",
|
|
10
|
+
"header-cell-style": {
|
|
11
|
+
background: "#f0f0f0",
|
|
12
|
+
color: "#000",
|
|
13
|
+
"font-weight": 500,
|
|
14
|
+
"font-size": "12px"
|
|
15
|
+
}
|
|
10
16
|
}, {
|
|
11
17
|
default: withCtx(() => [
|
|
12
18
|
(openBlock(true), createElementBlock(
|
|
@@ -14,6 +20,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14
20
|
null,
|
|
15
21
|
renderList($setup.props.tableColumn, (item) => {
|
|
16
22
|
return openBlock(), createBlock($setup["ElTableColumn"], {
|
|
23
|
+
key: item.key,
|
|
17
24
|
prop: item.key,
|
|
18
25
|
label: $setup.TABLE_KEY[item.key],
|
|
19
26
|
width: item.width
|
|
@@ -28,13 +35,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28
35
|
/* DYNAMIC */
|
|
29
36
|
}, 1032, ["prop", "label", "width"]);
|
|
30
37
|
}),
|
|
31
|
-
|
|
32
|
-
/*
|
|
38
|
+
128
|
|
39
|
+
/* KEYED_FRAGMENT */
|
|
33
40
|
))
|
|
34
41
|
]),
|
|
35
42
|
_: 1
|
|
36
43
|
/* STABLE */
|
|
37
|
-
}, 8, ["data"])
|
|
44
|
+
}, 8, ["data"])), [
|
|
45
|
+
[$setup["vLoading"], $setup.props.loading]
|
|
46
|
+
]);
|
|
38
47
|
}
|
|
39
48
|
var elTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/elTable/src/elTable.vue"]]);
|
|
40
49
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
|
-
import { ElTable, ElTableColumn } from 'element-plus';
|
|
3
|
-
import ColumnDeal from './columnDeal.vue.mjs';
|
|
2
|
+
import { ElTable, ElTableColumn, vLoading } from 'element-plus';
|
|
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({
|
|
@@ -14,9 +14,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
14
|
return ElTable;
|
|
15
15
|
}, get ElTableColumn() {
|
|
16
16
|
return ElTableColumn;
|
|
17
|
-
},
|
|
17
|
+
}, get vLoading() {
|
|
18
|
+
return vLoading;
|
|
19
|
+
}, get TABLE_KEY() {
|
|
18
20
|
return TABLE_KEY;
|
|
19
|
-
} };
|
|
21
|
+
}, ColumnDeal };
|
|
20
22
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
21
23
|
return __returned__;
|
|
22
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
|
@@ -1,26 +1,51 @@
|
|
|
1
1
|
const TABLE_KEY = {
|
|
2
|
+
index: "\u5E8F\u53F7",
|
|
2
3
|
year: "\u5E74\u4EFD",
|
|
3
4
|
cucmulativeReturn: "\u533A\u95F4\u6536\u76CA",
|
|
5
|
+
excessReturn: "\u8D85\u989D\u533A\u95F4\u6536\u76CA",
|
|
4
6
|
vol: "\u5E74\u5316\u6CE2\u52A8\u7387",
|
|
7
|
+
excessVol: "\u8D85\u989D\u5E74\u5316\u6CE2\u52A8\u7387",
|
|
5
8
|
sharpeRatio: "\u590F\u666E\u6BD4\u7387",
|
|
9
|
+
excessSharpeRatio: "\u8D85\u989D\u590F\u666E\u6BD4\u7387",
|
|
6
10
|
calmarRatio: "\u5361\u739B\u6BD4\u7387",
|
|
11
|
+
excessCalmarRatio: "\u8D85\u989D\u5361\u739B\u6BD4\u7387",
|
|
7
12
|
sortinoRatio: "\u7D22\u63D0\u8BFA\u6BD4\u7387",
|
|
13
|
+
excessSortinoRatio: "\u8D85\u989D\u7D22\u63D0\u8BFA\u6BD4\u7387",
|
|
8
14
|
downsideDev: "\u4E0B\u884C\u98CE\u9669",
|
|
15
|
+
excessDownsideDev: "\u8D85\u989D\u4E0B\u884C\u98CE\u9669",
|
|
9
16
|
maxDrawdown: "\u6700\u5927\u56DE\u64A4",
|
|
17
|
+
excessMaxDrawdown: "\u8D85\u989D\u6700\u5927\u56DE\u64A4",
|
|
10
18
|
maxDrawdownDays: "\u6700\u5927\u56DE\u64A4\u56DE\u8865\u671F\uFF08\u5929\uFF09",
|
|
11
|
-
|
|
19
|
+
excessMaxDrawdownDays: "\u8D85\u989D\u6700\u5927\u56DE\u64A4\u56DE\u8865\u671F\uFF08\u5929\uFF09",
|
|
20
|
+
maxNormalDays: "\u6700\u957F\u8FDE\u7EED\u4E0D\u521B\u65B0\u9AD8\u5929\u6570\uFF08\u5929\uFF09",
|
|
21
|
+
excessMaxNormalDays: "\u8D85\u989D\u6700\u957F\u8FDE\u7EED\u4E0D\u521B\u65B0\u9AD8\u5929\u6570\uFF08\u5929\uFF09",
|
|
22
|
+
"01": "1\u6708",
|
|
23
|
+
"02": "2\u6708",
|
|
24
|
+
"03": "3\u6708",
|
|
25
|
+
"04": "4\u6708",
|
|
26
|
+
"05": "5\u6708",
|
|
27
|
+
"06": "6\u6708",
|
|
28
|
+
"07": "7\u6708",
|
|
29
|
+
"08": "8\u6708",
|
|
30
|
+
"09": "9\u6708",
|
|
31
|
+
"10": "10\u6708",
|
|
32
|
+
"11": "11\u6708",
|
|
33
|
+
"12": "12\u6708",
|
|
34
|
+
MonthlyPositiveRatio: "\u6708\u80DC\u7387",
|
|
35
|
+
all_year: "\u5168\u5E74"
|
|
12
36
|
};
|
|
13
37
|
const basicText4 = (val) => {
|
|
14
|
-
return val === "-" ? "-" : val.toFixed(4);
|
|
38
|
+
return val === "-" || val === void 0 ? "-" : val.toFixed(4);
|
|
15
39
|
};
|
|
16
40
|
const percentage = (val) => {
|
|
17
|
-
return val === "-" ? "-" : (val * 100).toFixed(2) + "%";
|
|
41
|
+
return val === "-" || val === void 0 ? "-" : (val * 100).toFixed(2) + "%";
|
|
18
42
|
};
|
|
19
43
|
const CLOUMN_DEAL = {
|
|
20
44
|
basicText4,
|
|
21
45
|
colorText: basicText4,
|
|
22
46
|
colorPercentage: percentage,
|
|
23
|
-
percentage
|
|
47
|
+
percentage,
|
|
48
|
+
notProcessed: null
|
|
24
49
|
};
|
|
25
50
|
|
|
26
51
|
export { CLOUMN_DEAL, TABLE_KEY };
|