hfn-components 0.5.5 → 0.5.7

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.
@@ -21,9 +21,9 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
21
21
  key: string;
22
22
  }[]>;
23
23
  props: import("@vue/shared").LooseRequired<{
24
+ readonly loading: boolean;
24
25
  readonly dataSource: unknown[];
25
26
  readonly tableColumn: import("./src/elTable").ElTableColumns[];
26
- readonly loading: boolean;
27
27
  readonly headerColor: string;
28
28
  } & {}>;
29
29
  readonly ElTable: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
@@ -801,9 +801,9 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
801
801
  readonly default: "#f0f0f0";
802
802
  };
803
803
  }>>, {
804
+ readonly loading: boolean;
804
805
  readonly dataSource: unknown[];
805
806
  readonly tableColumn: import("./src/elTable").ElTableColumns[];
806
- readonly loading: boolean;
807
807
  readonly headerColor: string;
808
808
  }, {}>> & Record<string, any>;
809
809
  export default HtElTable;
@@ -21,9 +21,9 @@ declare const _default: import("vue").DefineComponent<{
21
21
  key: string;
22
22
  }[]>;
23
23
  props: import("@vue/shared").LooseRequired<{
24
+ readonly loading: boolean;
24
25
  readonly dataSource: unknown[];
25
26
  readonly tableColumn: import("./elTable").ElTableColumns[];
26
- readonly loading: boolean;
27
27
  readonly headerColor: string;
28
28
  } & {}>;
29
29
  readonly ElTable: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
@@ -801,9 +801,9 @@ declare const _default: import("vue").DefineComponent<{
801
801
  readonly default: "#f0f0f0";
802
802
  };
803
803
  }>>, {
804
+ readonly loading: boolean;
804
805
  readonly dataSource: unknown[];
805
806
  readonly tableColumn: import("./elTable").ElTableColumns[];
806
- readonly loading: boolean;
807
807
  readonly headerColor: string;
808
808
  }, {}>;
809
809
  export default _default;
@@ -1,4 +1,8 @@
1
1
  export declare const HtTarget: import("hfn-components/es/utils").SFCWithInstall<import("vue").DefineComponent<{
2
+ readonly fundType: {
3
+ readonly type: StringConstructor;
4
+ readonly default: "fund";
5
+ };
2
6
  readonly targetType: {
3
7
  readonly type: StringConstructor;
4
8
  readonly default: "";
@@ -14,6 +18,7 @@ export declare const HtTarget: import("hfn-components/es/utils").SFCWithInstall<
14
18
  }, {
15
19
  props: import("@vue/shared").LooseRequired<{
16
20
  readonly targetData: import("./src/htTarget").target[];
21
+ readonly fundType: string;
17
22
  readonly targetType: string;
18
23
  readonly dialogShow: boolean;
19
24
  readonly onChoiceTarget?: ((...args: any[]) => any) | undefined;
@@ -1990,8 +1995,13 @@ export declare const HtTarget: import("hfn-components/es/utils").SFCWithInstall<
1990
1995
  name: string;
1991
1996
  key: string;
1992
1997
  dealType: string;
1998
+ type: string;
1993
1999
  }[];
1994
2000
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("choiceTarget" | "choiceCancel")[], "choiceTarget" | "choiceCancel", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
2001
+ readonly fundType: {
2002
+ readonly type: StringConstructor;
2003
+ readonly default: "fund";
2004
+ };
1995
2005
  readonly targetType: {
1996
2006
  readonly type: StringConstructor;
1997
2007
  readonly default: "";
@@ -2009,6 +2019,7 @@ export declare const HtTarget: import("hfn-components/es/utils").SFCWithInstall<
2009
2019
  onChoiceCancel?: ((...args: any[]) => any) | undefined;
2010
2020
  }, {
2011
2021
  readonly targetData: import("./src/htTarget").target[];
2022
+ readonly fundType: string;
2012
2023
  readonly targetType: string;
2013
2024
  readonly dialogShow: boolean;
2014
2025
  }, {}>> & Record<string, any>;
@@ -5,6 +5,10 @@ export interface target {
5
5
  dealType: string;
6
6
  }
7
7
  export declare const targetProps: {
8
+ readonly fundType: {
9
+ readonly type: StringConstructor;
10
+ readonly default: "fund";
11
+ };
8
12
  readonly targetType: {
9
13
  readonly type: StringConstructor;
10
14
  readonly default: "";
@@ -1,4 +1,8 @@
1
1
  const targetProps = {
2
+ fundType: {
3
+ type: String,
4
+ default: "fund"
5
+ },
2
6
  targetType: {
3
7
  type: String,
4
8
  default: ""
@@ -1,4 +1,8 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
+ readonly fundType: {
3
+ readonly type: StringConstructor;
4
+ readonly default: "fund";
5
+ };
2
6
  readonly targetType: {
3
7
  readonly type: StringConstructor;
4
8
  readonly default: "";
@@ -14,6 +18,7 @@ declare const _default: import("vue").DefineComponent<{
14
18
  }, {
15
19
  props: import("@vue/shared").LooseRequired<{
16
20
  readonly targetData: import("./htTarget").target[];
21
+ readonly fundType: string;
17
22
  readonly targetType: string;
18
23
  readonly dialogShow: boolean;
19
24
  readonly onChoiceTarget?: ((...args: any[]) => any) | undefined;
@@ -1990,8 +1995,13 @@ declare const _default: import("vue").DefineComponent<{
1990
1995
  name: string;
1991
1996
  key: string;
1992
1997
  dealType: string;
1998
+ type: string;
1993
1999
  }[];
1994
2000
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("choiceTarget" | "choiceCancel")[], "choiceTarget" | "choiceCancel", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
2001
+ readonly fundType: {
2002
+ readonly type: StringConstructor;
2003
+ readonly default: "fund";
2004
+ };
1995
2005
  readonly targetType: {
1996
2006
  readonly type: StringConstructor;
1997
2007
  readonly default: "";
@@ -2009,6 +2019,7 @@ declare const _default: import("vue").DefineComponent<{
2009
2019
  onChoiceCancel?: ((...args: any[]) => any) | undefined;
2010
2020
  }, {
2011
2021
  readonly targetData: import("./htTarget").target[];
2022
+ readonly fundType: string;
2012
2023
  readonly targetType: string;
2013
2024
  readonly dialogShow: boolean;
2014
2025
  }, {}>;
@@ -161,7 +161,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
161
161
  (openBlock(true), createElementBlock(
162
162
  Fragment,
163
163
  null,
164
- renderList($setup.BASIC_KEY, (item) => {
164
+ renderList($setup.BASIC_KEY.filter((v) => v.type === _ctx.fundType), (item) => {
165
165
  return openBlock(), createElementBlock("div", {
166
166
  class: "factor_item",
167
167
  key: item.key
@@ -79,7 +79,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
79
79
  const filterFoot = TARGET_END_KEY.filter((item) => item.key === val);
80
80
  const headName = filterHead.length > 0 ? filterHead[0].name : "";
81
81
  const footName = filterFoot.length > 0 ? filterFoot[0].name : "";
82
- console.log(headKey);
83
82
  itemObj = {
84
83
  name: headName + footName,
85
84
  key: `${headKey}_${val}`,
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -11,4 +11,5 @@ export declare const BASIC_KEY: {
11
11
  name: string;
12
12
  key: string;
13
13
  dealType: string;
14
+ type: string;
14
15
  }[];
@@ -40,16 +40,20 @@ const TARGET_END_KEY = [
40
40
  { name: "\u6708\u80DC\u7387", key: "monthlyPositiveRatio", dealType: "percentage" }
41
41
  ];
42
42
  const BASIC_KEY = [
43
- { name: "\u51C0\u503C\u65E5\u671F", key: "priceDate", dealType: "notProcessed" },
43
+ //基金
44
+ { name: "\u51C0\u503C\u65E5\u671F", key: "priceDate", dealType: "notProcessed", type: "fund" },
44
45
  // { name: '管理人', key: 'advisor', dealType: '' },
45
46
  // { name: '策略', key: 'strategyOne', dealType: '' },
46
- { name: "\u5355\u4F4D\u51C0\u503C", key: "nav", dealType: "basicText4" },
47
+ { name: "\u5355\u4F4D\u51C0\u503C", key: "nav", dealType: "basicText4", type: "fund" },
47
48
  // { name: '单位净值涨跌幅', key: 'navPriceChange', dealType: '' },
48
- { name: "\u7D2F\u8BA1\u51C0\u503C", key: "cumulativeNavWithdrawal", dealType: "basicText4" }
49
+ { name: "\u7D2F\u8BA1\u51C0\u503C", key: "cumulativeNavWithdrawal", dealType: "basicText4", type: "fund" },
49
50
  // { name: '成立日期', key: 'inceptionDate', dealType: '' },
50
51
  // { name: '封闭期', key: 'closedPeriod', dealType: '' },
51
52
  // { name: '开放日', key: 'openDay', dealType: '' },
52
53
  // { name: '备案号/代码', key: 'registerNumber', dealType: '' }
54
+ //指数
55
+ { name: "\u65E5\u671F", key: "priceDate", dealType: "notProcessed", type: "index" },
56
+ { name: "\u6307\u6570\u70B9\u4F4D", key: "priceNav", dealType: "basicText4", type: "index" }
53
57
  ];
54
58
 
55
59
  export { BASIC_KEY, TARGET_END_KEY, TARGET_HEAD_KEY };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hfn-components",
3
- "version": "0.5.5",
3
+ "version": "0.5.7",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "module": "es/index.mjs",