hfn-components 0.1.6 → 0.1.8

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.
@@ -55,6 +55,10 @@ export declare const HtChart: import("hfn-components/es/utils").SFCWithInstall<i
55
55
  readonly type: BooleanConstructor;
56
56
  readonly default: false;
57
57
  };
58
+ readonly lineColor: {
59
+ readonly type: import("vue").PropType<string[]>;
60
+ readonly default: readonly [];
61
+ };
58
62
  }, {
59
63
  props: import("@vue/shared").LooseRequired<{
60
64
  readonly chartData: any[];
@@ -71,6 +75,7 @@ export declare const HtChart: import("hfn-components/es/utils").SFCWithInstall<i
71
75
  readonly watchResize: boolean;
72
76
  readonly showLegend: boolean;
73
77
  readonly downLoadAutn: boolean;
78
+ readonly lineColor: string[];
74
79
  } & {}>;
75
80
  myChart: import("vue").ShallowRef<any>;
76
81
  isEmpty: import("vue").Ref<boolean>;
@@ -141,6 +146,10 @@ export declare const HtChart: import("hfn-components/es/utils").SFCWithInstall<i
141
146
  readonly type: BooleanConstructor;
142
147
  readonly default: false;
143
148
  };
149
+ readonly lineColor: {
150
+ readonly type: import("vue").PropType<string[]>;
151
+ readonly default: readonly [];
152
+ };
144
153
  }>>, {
145
154
  readonly chartData: any[];
146
155
  readonly chartId: string;
@@ -156,6 +165,7 @@ export declare const HtChart: import("hfn-components/es/utils").SFCWithInstall<i
156
165
  readonly watchResize: boolean;
157
166
  readonly showLegend: boolean;
158
167
  readonly downLoadAutn: boolean;
168
+ readonly lineColor: string[];
159
169
  }, {}>> & Record<string, any>;
160
170
  export default HtChart;
161
171
  export * from './src/HtChart';
@@ -57,5 +57,9 @@ export declare const chartProps: {
57
57
  readonly type: BooleanConstructor;
58
58
  readonly default: false;
59
59
  };
60
+ readonly lineColor: {
61
+ readonly type: PropType<string[]>;
62
+ readonly default: readonly [];
63
+ };
60
64
  };
61
65
  export type chartProp = ExtractPropTypes<typeof chartProps>;
@@ -76,6 +76,10 @@ const chartProps = {
76
76
  downLoadAutn: {
77
77
  type: Boolean,
78
78
  default: false
79
+ },
80
+ lineColor: {
81
+ type: Array,
82
+ default: []
79
83
  }
80
84
  };
81
85
 
@@ -62,6 +62,10 @@ declare const _default: import("vue").DefineComponent<{
62
62
  readonly type: BooleanConstructor;
63
63
  readonly default: false;
64
64
  };
65
+ readonly lineColor: {
66
+ readonly type: import("vue").PropType<string[]>;
67
+ readonly default: readonly [];
68
+ };
65
69
  }, {
66
70
  props: import("@vue/shared").LooseRequired<{
67
71
  readonly chartData: any[];
@@ -78,6 +82,7 @@ declare const _default: import("vue").DefineComponent<{
78
82
  readonly watchResize: boolean;
79
83
  readonly showLegend: boolean;
80
84
  readonly downLoadAutn: boolean;
85
+ readonly lineColor: string[];
81
86
  } & {}>;
82
87
  myChart: import("vue").ShallowRef<any>;
83
88
  isEmpty: Ref<boolean>;
@@ -148,6 +153,10 @@ declare const _default: import("vue").DefineComponent<{
148
153
  readonly type: BooleanConstructor;
149
154
  readonly default: false;
150
155
  };
156
+ readonly lineColor: {
157
+ readonly type: import("vue").PropType<string[]>;
158
+ readonly default: readonly [];
159
+ };
151
160
  }>>, {
152
161
  readonly chartData: any[];
153
162
  readonly chartId: string;
@@ -163,5 +172,6 @@ declare const _default: import("vue").DefineComponent<{
163
172
  readonly watchResize: boolean;
164
173
  readonly showLegend: boolean;
165
174
  readonly downLoadAutn: boolean;
175
+ readonly lineColor: string[];
166
176
  }, {}>;
167
177
  export default _default;
@@ -31,6 +31,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
31
31
  }
32
32
  );
33
33
  const drawGraph = () => {
34
+ echartOptions.color = props.lineColor;
34
35
  setEchartXAxis(echartOptions, props.chartType, props.xAxisData);
35
36
  setEchartYAxis(echartOptions, props);
36
37
  setEchartTooltip(echartOptions, props);
@@ -604,6 +604,7 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
604
604
  readonly TABLE_KEY: {
605
605
  readonly index: "序号";
606
606
  readonly year: "年份";
607
+ readonly fundName: "基金名称";
607
608
  readonly cucmulativeReturn: "区间收益";
608
609
  readonly excessReturn: "超额区间收益";
609
610
  readonly vol: "年化波动率";
@@ -616,12 +617,15 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
616
617
  readonly excessSortinoRatio: "超额索提诺比率";
617
618
  readonly downsideDev: "下行风险";
618
619
  readonly excessDownsideDev: "超额下行风险";
620
+ readonly interval: "最大回撤起止区间";
619
621
  readonly maxDrawdown: "最大回撤";
620
622
  readonly excessMaxDrawdown: "超额最大回撤";
621
623
  readonly maxDrawdownDays: "最大回撤回补期(天)";
622
624
  readonly excessMaxDrawdownDays: "超额最大回撤回补期(天)";
623
625
  readonly maxNormalDays: "最长连续不创新高天数(天)";
624
626
  readonly excessMaxNormalDays: "超额最长连续不创新高天数(天)";
627
+ readonly annualReturn: "年化收益";
628
+ readonly excessAnnualReturn: "超额年化收益";
625
629
  readonly corr: "相关系数";
626
630
  readonly informationRatio: "信息比率";
627
631
  readonly trackingError: "跟踪误差";
@@ -630,6 +634,7 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
630
634
  readonly skew: "偏度";
631
635
  readonly kurt: "峰度";
632
636
  readonly cVaR: "VaR(95%置信)";
637
+ readonly indexReturns: "同期指数收益";
633
638
  readonly '01': "1月";
634
639
  readonly '02': "2月";
635
640
  readonly '03': "3月";
@@ -4,6 +4,7 @@ export interface ElTableColumns {
4
4
  key: clounmKyeType;
5
5
  dealType: dealKeyType;
6
6
  width: string | number;
7
+ customizeLabel?: string;
7
8
  }
8
9
  export declare const elTableProps: {
9
10
  readonly dataSource: {
@@ -604,6 +604,7 @@ declare const _default: import("vue").DefineComponent<{
604
604
  readonly TABLE_KEY: {
605
605
  readonly index: "序号";
606
606
  readonly year: "年份";
607
+ readonly fundName: "基金名称";
607
608
  readonly cucmulativeReturn: "区间收益";
608
609
  readonly excessReturn: "超额区间收益";
609
610
  readonly vol: "年化波动率";
@@ -616,12 +617,15 @@ declare const _default: import("vue").DefineComponent<{
616
617
  readonly excessSortinoRatio: "超额索提诺比率";
617
618
  readonly downsideDev: "下行风险";
618
619
  readonly excessDownsideDev: "超额下行风险";
620
+ readonly interval: "最大回撤起止区间";
619
621
  readonly maxDrawdown: "最大回撤";
620
622
  readonly excessMaxDrawdown: "超额最大回撤";
621
623
  readonly maxDrawdownDays: "最大回撤回补期(天)";
622
624
  readonly excessMaxDrawdownDays: "超额最大回撤回补期(天)";
623
625
  readonly maxNormalDays: "最长连续不创新高天数(天)";
624
626
  readonly excessMaxNormalDays: "超额最长连续不创新高天数(天)";
627
+ readonly annualReturn: "年化收益";
628
+ readonly excessAnnualReturn: "超额年化收益";
625
629
  readonly corr: "相关系数";
626
630
  readonly informationRatio: "信息比率";
627
631
  readonly trackingError: "跟踪误差";
@@ -630,6 +634,7 @@ declare const _default: import("vue").DefineComponent<{
630
634
  readonly skew: "偏度";
631
635
  readonly kurt: "峰度";
632
636
  readonly cVaR: "VaR(95%置信)";
637
+ readonly indexReturns: "同期指数收益";
633
638
  readonly '01': "1月";
634
639
  readonly '02': "2月";
635
640
  readonly '03': "3月";
@@ -23,7 +23,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
23
23
  resizable: "",
24
24
  key: item.key,
25
25
  prop: item.key,
26
- label: $setup.TABLE_KEY[item.key],
26
+ label: item.customizeLabel ? item.customizeLabel : $setup.TABLE_KEY[item.key],
27
27
  width: item.width
28
28
  }, {
29
29
  default: withCtx((scope) => [
@@ -1,6 +1,7 @@
1
1
  export declare const TABLE_KEY: {
2
2
  readonly index: "序号";
3
3
  readonly year: "年份";
4
+ readonly fundName: "基金名称";
4
5
  readonly cucmulativeReturn: "区间收益";
5
6
  readonly excessReturn: "超额区间收益";
6
7
  readonly vol: "年化波动率";
@@ -13,12 +14,15 @@ export declare const TABLE_KEY: {
13
14
  readonly excessSortinoRatio: "超额索提诺比率";
14
15
  readonly downsideDev: "下行风险";
15
16
  readonly excessDownsideDev: "超额下行风险";
17
+ readonly interval: "最大回撤起止区间";
16
18
  readonly maxDrawdown: "最大回撤";
17
19
  readonly excessMaxDrawdown: "超额最大回撤";
18
20
  readonly maxDrawdownDays: "最大回撤回补期(天)";
19
21
  readonly excessMaxDrawdownDays: "超额最大回撤回补期(天)";
20
22
  readonly maxNormalDays: "最长连续不创新高天数(天)";
21
23
  readonly excessMaxNormalDays: "超额最长连续不创新高天数(天)";
24
+ readonly annualReturn: "年化收益";
25
+ readonly excessAnnualReturn: "超额年化收益";
22
26
  readonly corr: "相关系数";
23
27
  readonly informationRatio: "信息比率";
24
28
  readonly trackingError: "跟踪误差";
@@ -27,6 +31,7 @@ export declare const TABLE_KEY: {
27
31
  readonly skew: "偏度";
28
32
  readonly kurt: "峰度";
29
33
  readonly cVaR: "VaR(95%置信)";
34
+ readonly indexReturns: "同期指数收益";
30
35
  readonly '01': "1月";
31
36
  readonly '02': "2月";
32
37
  readonly '03': "3月";
@@ -1,6 +1,7 @@
1
1
  const TABLE_KEY = {
2
2
  index: "\u5E8F\u53F7",
3
3
  year: "\u5E74\u4EFD",
4
+ fundName: "\u57FA\u91D1\u540D\u79F0",
4
5
  cucmulativeReturn: "\u533A\u95F4\u6536\u76CA",
5
6
  excessReturn: "\u8D85\u989D\u533A\u95F4\u6536\u76CA",
6
7
  vol: "\u5E74\u5316\u6CE2\u52A8\u7387",
@@ -13,12 +14,15 @@ const TABLE_KEY = {
13
14
  excessSortinoRatio: "\u8D85\u989D\u7D22\u63D0\u8BFA\u6BD4\u7387",
14
15
  downsideDev: "\u4E0B\u884C\u98CE\u9669",
15
16
  excessDownsideDev: "\u8D85\u989D\u4E0B\u884C\u98CE\u9669",
17
+ interval: "\u6700\u5927\u56DE\u64A4\u8D77\u6B62\u533A\u95F4",
16
18
  maxDrawdown: "\u6700\u5927\u56DE\u64A4",
17
19
  excessMaxDrawdown: "\u8D85\u989D\u6700\u5927\u56DE\u64A4",
18
20
  maxDrawdownDays: "\u6700\u5927\u56DE\u64A4\u56DE\u8865\u671F\uFF08\u5929\uFF09",
19
21
  excessMaxDrawdownDays: "\u8D85\u989D\u6700\u5927\u56DE\u64A4\u56DE\u8865\u671F\uFF08\u5929\uFF09",
20
22
  maxNormalDays: "\u6700\u957F\u8FDE\u7EED\u4E0D\u521B\u65B0\u9AD8\u5929\u6570\uFF08\u5929\uFF09",
21
23
  excessMaxNormalDays: "\u8D85\u989D\u6700\u957F\u8FDE\u7EED\u4E0D\u521B\u65B0\u9AD8\u5929\u6570\uFF08\u5929\uFF09",
24
+ annualReturn: "\u5E74\u5316\u6536\u76CA",
25
+ excessAnnualReturn: "\u8D85\u989D\u5E74\u5316\u6536\u76CA",
22
26
  corr: "\u76F8\u5173\u7CFB\u6570",
23
27
  informationRatio: "\u4FE1\u606F\u6BD4\u7387",
24
28
  trackingError: "\u8DDF\u8E2A\u8BEF\u5DEE",
@@ -27,6 +31,7 @@ const TABLE_KEY = {
27
31
  skew: "\u504F\u5EA6",
28
32
  kurt: "\u5CF0\u5EA6",
29
33
  cVaR: "VaR\uFF0895%\u7F6E\u4FE1\uFF09",
34
+ indexReturns: "\u540C\u671F\u6307\u6570\u6536\u76CA",
30
35
  "01": "1\u6708",
31
36
  "02": "2\u6708",
32
37
  "03": "3\u6708",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hfn-components",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "module": "es/index.mjs",