hfn-components 0.3.4 → 0.3.5

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.
@@ -85,6 +85,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
85
85
  $setup.noData ? (openBlock(), createElementBlock("div", _hoisted_5, "\u6682\u65E0\u6570\u636E")) : createCommentVNode("v-if", true)
86
86
  ]);
87
87
  }
88
- var chart = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/chart/src/HtChart.vue"]]);
88
+ var chart = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/zhanghang/Documents/project/component-library/packages/components/chart/src/HtChart.vue"]]);
89
89
 
90
90
  export { chart as default };
@@ -717,7 +717,7 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
717
717
  }[];
718
718
  ColumnDeal: import("vue").DefineComponent<{
719
719
  readonly dealType: {
720
- readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "notProcessed" | "other" | "customDeal">;
720
+ readonly type: import("vue").PropType<"colorPercentage" | "percentage" | "basicText4" | "notProcessed" | "colorText" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "other" | "customDeal" | "customSlot">;
721
721
  readonly default: "";
722
722
  };
723
723
  readonly text: {
@@ -732,6 +732,10 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
732
732
  readonly type: ObjectConstructor;
733
733
  readonly default: () => void;
734
734
  };
735
+ readonly slot: {
736
+ readonly type: StringConstructor;
737
+ readonly default: "";
738
+ };
735
739
  }, {
736
740
  readonly CLOUMN_DEAL: {
737
741
  basicText4: (val: string | number | undefined) => string;
@@ -745,10 +749,11 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
745
749
  notProcessed: null;
746
750
  other: null;
747
751
  customDeal: null;
752
+ customSlot: null;
748
753
  };
749
754
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
750
755
  readonly dealType: {
751
- readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "notProcessed" | "other" | "customDeal">;
756
+ readonly type: import("vue").PropType<"colorPercentage" | "percentage" | "basicText4" | "notProcessed" | "colorText" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "other" | "customDeal" | "customSlot">;
752
757
  readonly default: "";
753
758
  };
754
759
  readonly text: {
@@ -763,11 +768,16 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
763
768
  readonly type: ObjectConstructor;
764
769
  readonly default: () => void;
765
770
  };
771
+ readonly slot: {
772
+ readonly type: StringConstructor;
773
+ readonly default: "";
774
+ };
766
775
  }>>, {
767
776
  readonly text: string | number | undefined;
768
- readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "notProcessed" | "other" | "customDeal";
777
+ readonly dealType: "colorPercentage" | "percentage" | "basicText4" | "notProcessed" | "colorText" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "other" | "customDeal" | "customSlot";
769
778
  readonly dealFunction: Function;
770
779
  readonly row: Record<string, any>;
780
+ readonly slot: string;
771
781
  }, {}>;
772
782
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
773
783
  readonly dataSource: {
@@ -1,6 +1,6 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
2
  readonly dealType: {
3
- readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "notProcessed" | "other" | "customDeal">;
3
+ readonly type: import("vue").PropType<"colorPercentage" | "percentage" | "basicText4" | "notProcessed" | "colorText" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "other" | "customDeal" | "customSlot">;
4
4
  readonly default: "";
5
5
  };
6
6
  readonly text: {
@@ -15,6 +15,10 @@ declare const _default: import("vue").DefineComponent<{
15
15
  readonly type: ObjectConstructor;
16
16
  readonly default: () => void;
17
17
  };
18
+ readonly slot: {
19
+ readonly type: StringConstructor;
20
+ readonly default: "";
21
+ };
18
22
  }, {
19
23
  readonly CLOUMN_DEAL: {
20
24
  basicText4: (val: string | number | undefined) => string;
@@ -28,10 +32,11 @@ declare const _default: import("vue").DefineComponent<{
28
32
  notProcessed: null;
29
33
  other: null;
30
34
  customDeal: null;
35
+ customSlot: null;
31
36
  };
32
37
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
33
38
  readonly dealType: {
34
- readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "notProcessed" | "other" | "customDeal">;
39
+ readonly type: import("vue").PropType<"colorPercentage" | "percentage" | "basicText4" | "notProcessed" | "colorText" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "other" | "customDeal" | "customSlot">;
35
40
  readonly default: "";
36
41
  };
37
42
  readonly text: {
@@ -46,10 +51,15 @@ declare const _default: import("vue").DefineComponent<{
46
51
  readonly type: ObjectConstructor;
47
52
  readonly default: () => void;
48
53
  };
54
+ readonly slot: {
55
+ readonly type: StringConstructor;
56
+ readonly default: "";
57
+ };
49
58
  }>>, {
50
59
  readonly text: string | number | undefined;
51
- readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "notProcessed" | "other" | "customDeal";
60
+ readonly dealType: "colorPercentage" | "percentage" | "basicText4" | "notProcessed" | "colorText" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "other" | "customDeal" | "customSlot";
52
61
  readonly dealFunction: Function;
53
62
  readonly row: Record<string, any>;
63
+ readonly slot: string;
54
64
  }, {}>;
55
65
  export default _default;
@@ -1,11 +1,12 @@
1
1
  import _sfc_main from './columnDeal.vue2.mjs';
2
- import { openBlock, createElementBlock, toDisplayString, createElementVNode, normalizeStyle } from 'vue';
2
+ import { openBlock, createElementBlock, toDisplayString, createElementVNode, normalizeStyle, renderSlot } from 'vue';
3
3
  import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
4
4
 
5
5
  const _hoisted_1 = { key: 0 };
6
6
  const _hoisted_2 = { key: 1 };
7
7
  const _hoisted_3 = ["innerHTML"];
8
8
  const _hoisted_4 = { key: 3 };
9
+ const _hoisted_5 = { key: 4 };
9
10
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
10
11
  return _ctx.dealType === "notProcessed" || _ctx.dealType === "other" ? (openBlock(), createElementBlock(
11
12
  "div",
@@ -26,14 +27,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
26
27
  ])) : _ctx.dealType === "customDeal" ? (openBlock(), createElementBlock("div", {
27
28
  key: 2,
28
29
  innerHTML: _ctx.dealFunction(_ctx.row, _ctx.text)
29
- }, null, 8, _hoisted_3)) : (openBlock(), createElementBlock(
30
+ }, null, 8, _hoisted_3)) : _ctx.dealType === "customSlot" ? (openBlock(), createElementBlock("div", _hoisted_4, [
31
+ renderSlot(_ctx.$slots, _ctx.slot)
32
+ ])) : (openBlock(), createElementBlock(
30
33
  "div",
31
- _hoisted_4,
34
+ _hoisted_5,
32
35
  toDisplayString(_ctx.text !== void 0 ? $setup.CLOUMN_DEAL[_ctx.dealType](_ctx.text) : "-"),
33
36
  1
34
37
  /* TEXT */
35
38
  ));
36
39
  }
37
- var ColumnDeal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/elTable/src/columnDeal.vue"]]);
40
+ var ColumnDeal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/zhanghang/Documents/project/component-library/packages/components/elTable/src/columnDeal.vue"]]);
38
41
 
39
42
  export { ColumnDeal as default };
@@ -6,6 +6,7 @@ export interface ElTableColumns {
6
6
  dealFunction?: Function;
7
7
  width: string | number;
8
8
  customizeLabel?: string;
9
+ slot?: string;
9
10
  }
10
11
  export declare const elTableProps: {
11
12
  readonly dataSource: {
@@ -27,7 +28,7 @@ export declare const elTableProps: {
27
28
  };
28
29
  export declare const columnDealProps: {
29
30
  readonly dealType: {
30
- readonly type: PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "notProcessed" | "other" | "customDeal">;
31
+ readonly type: PropType<"colorPercentage" | "percentage" | "basicText4" | "notProcessed" | "colorText" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "other" | "customDeal" | "customSlot">;
31
32
  readonly default: "";
32
33
  };
33
34
  readonly text: {
@@ -42,6 +43,10 @@ export declare const columnDealProps: {
42
43
  readonly type: ObjectConstructor;
43
44
  readonly default: () => void;
44
45
  };
46
+ readonly slot: {
47
+ readonly type: StringConstructor;
48
+ readonly default: "";
49
+ };
45
50
  };
46
51
  export type ElTableProps = ExtractPropTypes<typeof elTableProps>;
47
52
  export type ColumnDealProps = ExtractPropTypes<typeof columnDealProps>;
@@ -34,6 +34,10 @@ const columnDealProps = {
34
34
  type: Object,
35
35
  default: () => {
36
36
  }
37
+ },
38
+ slot: {
39
+ type: String,
40
+ default: ""
37
41
  }
38
42
  };
39
43
 
@@ -717,7 +717,7 @@ declare const _default: import("vue").DefineComponent<{
717
717
  }[];
718
718
  ColumnDeal: import("vue").DefineComponent<{
719
719
  readonly dealType: {
720
- readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "notProcessed" | "other" | "customDeal">;
720
+ readonly type: import("vue").PropType<"colorPercentage" | "percentage" | "basicText4" | "notProcessed" | "colorText" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "other" | "customDeal" | "customSlot">;
721
721
  readonly default: "";
722
722
  };
723
723
  readonly text: {
@@ -732,6 +732,10 @@ declare const _default: import("vue").DefineComponent<{
732
732
  readonly type: ObjectConstructor;
733
733
  readonly default: () => void;
734
734
  };
735
+ readonly slot: {
736
+ readonly type: StringConstructor;
737
+ readonly default: "";
738
+ };
735
739
  }, {
736
740
  readonly CLOUMN_DEAL: {
737
741
  basicText4: (val: string | number | undefined) => string;
@@ -745,10 +749,11 @@ declare const _default: import("vue").DefineComponent<{
745
749
  notProcessed: null;
746
750
  other: null;
747
751
  customDeal: null;
752
+ customSlot: null;
748
753
  };
749
754
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
750
755
  readonly dealType: {
751
- readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "notProcessed" | "other" | "customDeal">;
756
+ readonly type: import("vue").PropType<"colorPercentage" | "percentage" | "basicText4" | "notProcessed" | "colorText" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "other" | "customDeal" | "customSlot">;
752
757
  readonly default: "";
753
758
  };
754
759
  readonly text: {
@@ -763,11 +768,16 @@ declare const _default: import("vue").DefineComponent<{
763
768
  readonly type: ObjectConstructor;
764
769
  readonly default: () => void;
765
770
  };
771
+ readonly slot: {
772
+ readonly type: StringConstructor;
773
+ readonly default: "";
774
+ };
766
775
  }>>, {
767
776
  readonly text: string | number | undefined;
768
- readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "notProcessed" | "other" | "customDeal";
777
+ readonly dealType: "colorPercentage" | "percentage" | "basicText4" | "notProcessed" | "colorText" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "other" | "customDeal" | "customSlot";
769
778
  readonly dealFunction: Function;
770
779
  readonly row: Record<string, any>;
780
+ readonly slot: string;
771
781
  }, {}>;
772
782
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
773
783
  readonly dataSource: {
@@ -1,5 +1,5 @@
1
1
  import _sfc_main from './elTable.vue2.mjs';
2
- import { withDirectives, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString } from 'vue';
2
+ import { withDirectives, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString, renderSlot } from 'vue';
3
3
  import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
4
4
 
5
5
  const _hoisted_1 = { key: 0 };
@@ -68,9 +68,22 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
68
68
  key: 0,
69
69
  dealType: scope.row.dealType,
70
70
  text: $setup.convertKey(scope.row, item.key)
71
- }, null, 8, ["dealType", "text"])) : (openBlock(), createBlock($setup["ColumnDeal"], {
71
+ }, null, 8, ["dealType", "text"])) : item.dealType === "customSlot" ? (openBlock(), createBlock($setup["ColumnDeal"], {
72
72
  key: 1,
73
73
  dealType: item.dealType,
74
+ slot: item.slot
75
+ }, {
76
+ [item.slot]: withCtx(() => [
77
+ renderSlot(_ctx.$slots, item.slot, {
78
+ text: $setup.convertKey(scope.row, item.key),
79
+ row: scope.row
80
+ })
81
+ ]),
82
+ _: 2
83
+ /* DYNAMIC */
84
+ }, 1032, ["dealType", "slot"])) : (openBlock(), createBlock($setup["ColumnDeal"], {
85
+ key: 2,
86
+ dealType: item.dealType,
74
87
  text: $setup.convertKey(scope.row, item.key),
75
88
  row: scope.row,
76
89
  "deal-function": item.dealFunction
@@ -84,12 +97,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
84
97
  /* KEYED_FRAGMENT */
85
98
  ))
86
99
  ]),
87
- _: 1
88
- /* STABLE */
100
+ _: 3
101
+ /* FORWARDED */
89
102
  }, 8, ["data", "header-cell-style"])), [
90
103
  [$setup["vLoading"], $setup.props.loading]
91
104
  ]);
92
105
  }
93
- var elTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/elTable/src/elTable.vue"]]);
106
+ var elTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/zhanghang/Documents/project/component-library/packages/components/elTable/src/elTable.vue"]]);
94
107
 
95
108
  export { elTable as default };
@@ -4,12 +4,12 @@ export declare const HtTarget: import("hfn-components/es/utils").SFCWithInstall<
4
4
  readonly default: false;
5
5
  };
6
6
  readonly targetData: {
7
- readonly type: import("vue").PropType<string[]>;
7
+ readonly type: import("vue").PropType<import("./src/htTarget").target[]>;
8
8
  readonly default: readonly [];
9
9
  };
10
10
  }, {
11
11
  props: import("@vue/shared").LooseRequired<{
12
- readonly targetData: string[];
12
+ readonly targetData: import("./src/htTarget").target[];
13
13
  readonly dialogShow: boolean;
14
14
  readonly onChoiceTarget?: ((...args: any[]) => any) | undefined;
15
15
  readonly onChoiceCancel?: ((...args: any[]) => any) | undefined;
@@ -1992,14 +1992,14 @@ export declare const HtTarget: import("hfn-components/es/utils").SFCWithInstall<
1992
1992
  readonly default: false;
1993
1993
  };
1994
1994
  readonly targetData: {
1995
- readonly type: import("vue").PropType<string[]>;
1995
+ readonly type: import("vue").PropType<import("./src/htTarget").target[]>;
1996
1996
  readonly default: readonly [];
1997
1997
  };
1998
1998
  }>> & {
1999
1999
  onChoiceTarget?: ((...args: any[]) => any) | undefined;
2000
2000
  onChoiceCancel?: ((...args: any[]) => any) | undefined;
2001
2001
  }, {
2002
- readonly targetData: string[];
2002
+ readonly targetData: import("./src/htTarget").target[];
2003
2003
  readonly dialogShow: boolean;
2004
2004
  }, {}>> & Record<string, any>;
2005
2005
  export default HtTarget;
@@ -1,11 +1,16 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
+ export interface target {
3
+ name: string;
4
+ key: string;
5
+ dealType: string;
6
+ }
2
7
  export declare const targetProps: {
3
8
  readonly dialogShow: {
4
9
  readonly type: BooleanConstructor;
5
10
  readonly default: false;
6
11
  };
7
12
  readonly targetData: {
8
- readonly type: PropType<string[]>;
13
+ readonly type: PropType<target[]>;
9
14
  readonly default: readonly [];
10
15
  };
11
16
  };
@@ -4,12 +4,12 @@ declare const _default: import("vue").DefineComponent<{
4
4
  readonly default: false;
5
5
  };
6
6
  readonly targetData: {
7
- readonly type: import("vue").PropType<string[]>;
7
+ readonly type: import("vue").PropType<import("./htTarget").target[]>;
8
8
  readonly default: readonly [];
9
9
  };
10
10
  }, {
11
11
  props: import("@vue/shared").LooseRequired<{
12
- readonly targetData: string[];
12
+ readonly targetData: import("./htTarget").target[];
13
13
  readonly dialogShow: boolean;
14
14
  readonly onChoiceTarget?: ((...args: any[]) => any) | undefined;
15
15
  readonly onChoiceCancel?: ((...args: any[]) => any) | undefined;
@@ -1992,14 +1992,14 @@ declare const _default: import("vue").DefineComponent<{
1992
1992
  readonly default: false;
1993
1993
  };
1994
1994
  readonly targetData: {
1995
- readonly type: import("vue").PropType<string[]>;
1995
+ readonly type: import("vue").PropType<import("./htTarget").target[]>;
1996
1996
  readonly default: readonly [];
1997
1997
  };
1998
1998
  }>> & {
1999
1999
  onChoiceTarget?: ((...args: any[]) => any) | undefined;
2000
2000
  onChoiceCancel?: ((...args: any[]) => any) | undefined;
2001
2001
  }, {
2002
- readonly targetData: string[];
2002
+ readonly targetData: import("./htTarget").target[];
2003
2003
  readonly dialogShow: boolean;
2004
2004
  }, {}>;
2005
2005
  export default _default;
@@ -203,6 +203,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
203
203
  }, 8, ["modelValue"])
204
204
  ]);
205
205
  }
206
- var htTarget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/htTarget/src/htTarget.vue"]]);
206
+ var htTarget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/zhanghang/Documents/project/component-library/packages/components/htTarget/src/htTarget.vue"]]);
207
207
 
208
208
  export { htTarget as default };
@@ -39,14 +39,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
39
39
  watch(
40
40
  () => props.targetData,
41
41
  (val) => {
42
- console.log("---", val);
43
42
  val.forEach((item) => {
44
- if (item.startsWith("basic_")) {
45
- const strSplit = item.split("_");
43
+ if (item.key.startsWith("basic_")) {
44
+ const strSplit = item.key.split("_");
46
45
  selectedTarget(strSplit[1], "", "basic");
47
46
  } else {
48
- const strSplit = item.split("_");
49
- console.log(strSplit);
47
+ const strSplit = item.key.split("_");
50
48
  selectedTarget(strSplit[1], strSplit[0], "target");
51
49
  }
52
50
  });
@@ -18,6 +18,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
18
18
  $setup.noData ? (openBlock(), createElementBlock("div", _hoisted_3, "\u6682\u65E0\u6570\u636E")) : createCommentVNode("v-if", true)
19
19
  ]);
20
20
  }
21
- var htPieChart = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/pieChart/src/HtPieChart.vue"]]);
21
+ var htPieChart = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/zhanghang/Documents/project/component-library/packages/components/pieChart/src/HtPieChart.vue"]]);
22
22
 
23
23
  export { htPieChart as default };
@@ -444,6 +444,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
444
444
  /* STABLE_FRAGMENT */
445
445
  );
446
446
  }
447
- var Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/table/HtTable.vue"]]);
447
+ var Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/zhanghang/Documents/project/component-library/packages/components/table/HtTable.vue"]]);
448
448
 
449
449
  export { Table as default };
@@ -114,6 +114,7 @@ export declare const CLOUMN_DEAL: {
114
114
  notProcessed: null;
115
115
  other: null;
116
116
  customDeal: null;
117
+ customSlot: null;
117
118
  };
118
119
  export declare const convertKey: (data: any, key: string) => any;
119
120
  export type clounmKyeType = keyof typeof TABLE_KEY;
@@ -139,7 +139,8 @@ const CLOUMN_DEAL = {
139
139
  thoundsandText4,
140
140
  notProcessed: null,
141
141
  other: null,
142
- customDeal: null
142
+ customDeal: null,
143
+ customSlot: null
143
144
  };
144
145
  const convertKey = (data, key) => {
145
146
  const newKey = key.replace(/([A-Z])/g, "_$1").toLowerCase();
@@ -13,31 +13,31 @@ const TARGET_HEAD_KEY = [
13
13
  { name: "\u6210\u7ACB\u4EE5\u6765", key: "cucmulative" }
14
14
  ];
15
15
  const TARGET_END_KEY = [
16
- { name: "\u6536\u76CA", key: "return", dealType: "color_text_precent" },
17
- { name: "\u5E74\u5316\u6536\u76CA", key: "yearReturn", dealType: "color_text_precent" },
18
- { name: "\u8D85\u989D\u6536\u76CA", key: "excessReturn", dealType: "color_text_precent" },
19
- { name: "\u8D85\u989D\u5E74\u5316\u6536\u76CA", key: "excessYearReturn", dealType: "color_text_precent" },
20
- { name: "\u5E74\u5316\u6CE2\u52A8\u7387", key: "vol", dealType: "color_text_nocolor_noprecent" },
21
- { name: "\u8D85\u989D\u5E74\u5316\u6CE2\u52A8\u7387", key: "excessVol", dealType: "color_text_nocolor_noprecent" },
22
- { name: "\u590F\u666E\u6BD4\u7387", key: "sharpeRatio", dealType: "color_text_no_thousandths" },
23
- { name: "\u8D85\u989D\u590F\u666E\u6BD4\u7387", key: "excessSharpeRatio", dealType: "color_text_no_thousandths" },
24
- { name: "\u5361\u739B\u6BD4\u7387", key: "calmarRatio", dealType: "color_text_no_thousandths" },
25
- { name: "\u8D85\u989D\u5361\u739B\u6BD4\u7387", key: "excessCalmarRatio", dealType: "color_text_no_thousandths" },
26
- { name: "\u7D22\u63D0\u8BFA\u6BD4\u7387", key: "sortinoRatio", dealType: "color_text_no_thousandths" },
27
- { name: "\u4E0B\u884C\u6807\u51C6\u5DEE", key: "downsideStd", dealType: "color_text_nocolor_noprecent" },
28
- { name: "\u4E0B\u884C\u98CE\u9669", key: "downsideDev", dealType: "color_text_nocolor_noprecent" },
29
- { name: "\u6700\u5927\u56DE\u64A4", key: "maxDrawdown", dealType: "color_text_nocolor_noprecent" },
30
- { name: "\u8D85\u989D\u6700\u5927\u56DE\u64A4", key: "excessMaxDrawdown", dealType: "color_text_nocolor_noprecent" },
31
- { name: "\u6700\u5927\u56DE\u64A4\u56DE\u8865\u671F\uFF08\u5929\uFF09", key: "maxDrawdownDays", dealType: "" },
32
- { name: "Alpha", key: "alpha", dealType: "color_text_precent" },
33
- { name: "Beta", key: "beta", dealType: "color_text_no_thousandths" },
34
- { name: "\u8DDF\u8E2A\u8BEF\u5DEE", key: "trackingError", dealType: "color_text_nocolor_noprecent" },
35
- { name: "\u4FE1\u606F\u6BD4\u7387", key: "informationRatio", dealType: "color_text_no_thousandths" },
36
- { name: "\u504F\u5EA6", key: "skew", dealType: "color_text_no_thousandths" },
37
- { name: "\u5CF0\u5EA6", key: "kurt", dealType: "color_text_no_thousandths" },
38
- { name: "VaR\uFF0895%\u7F6E\u4FE1\uFF09", key: "cVaR", dealType: "color_text_no_thousandths" },
39
- { name: "\u5468\u80DC\u7387", key: "positiveRatio", dealType: "color_text_nocolor_noprecent" },
40
- { name: "\u6708\u80DC\u7387", key: "monthlyPositiveRatio", dealType: "color_text_nocolor_noprecent" }
16
+ { name: "\u6536\u76CA", key: "return", dealType: "colorPercentage" },
17
+ { name: "\u5E74\u5316\u6536\u76CA", key: "yearReturn", dealType: "colorPercentage" },
18
+ { name: "\u8D85\u989D\u6536\u76CA", key: "excessReturn", dealType: "colorPercentage" },
19
+ { name: "\u8D85\u989D\u5E74\u5316\u6536\u76CA", key: "excessYearReturn", dealType: "colorPercentage" },
20
+ { name: "\u5E74\u5316\u6CE2\u52A8\u7387", key: "vol", dealType: "percentage" },
21
+ { name: "\u8D85\u989D\u5E74\u5316\u6CE2\u52A8\u7387", key: "excessVol", dealType: "percentage" },
22
+ { name: "\u590F\u666E\u6BD4\u7387", key: "sharpeRatio", dealType: "basicText4" },
23
+ { name: "\u8D85\u989D\u590F\u666E\u6BD4\u7387", key: "excessSharpeRatio", dealType: "basicText4" },
24
+ { name: "\u5361\u739B\u6BD4\u7387", key: "calmarRatio", dealType: "basicText4" },
25
+ { name: "\u8D85\u989D\u5361\u739B\u6BD4\u7387", key: "excessCalmarRatio", dealType: "basicText4" },
26
+ { name: "\u7D22\u63D0\u8BFA\u6BD4\u7387", key: "sortinoRatio", dealType: "basicText4" },
27
+ { name: "\u4E0B\u884C\u6807\u51C6\u5DEE", key: "downsideStd", dealType: "percentage" },
28
+ { name: "\u4E0B\u884C\u98CE\u9669", key: "downsideDev", dealType: "percentage" },
29
+ { name: "\u6700\u5927\u56DE\u64A4", key: "maxDrawdown", dealType: "percentage" },
30
+ { name: "\u8D85\u989D\u6700\u5927\u56DE\u64A4", key: "excessMaxDrawdown", dealType: "percentage" },
31
+ { name: "\u6700\u5927\u56DE\u64A4\u56DE\u8865\u671F\uFF08\u5929\uFF09", key: "maxDrawdownDays", dealType: "notProcessed" },
32
+ { name: "Alpha", key: "alpha", dealType: "colorPercentage" },
33
+ { name: "Beta", key: "beta", dealType: "basicText4" },
34
+ { name: "\u8DDF\u8E2A\u8BEF\u5DEE", key: "trackingError", dealType: "percentage" },
35
+ { name: "\u4FE1\u606F\u6BD4\u7387", key: "informationRatio", dealType: "basicText4" },
36
+ { name: "\u504F\u5EA6", key: "skew", dealType: "basicText4" },
37
+ { name: "\u5CF0\u5EA6", key: "kurt", dealType: "basicText4" },
38
+ { name: "VaR\uFF0895%\u7F6E\u4FE1\uFF09", key: "cVaR", dealType: "basicText4" },
39
+ { name: "\u5468\u80DC\u7387", key: "positiveRatio", dealType: "percentage" },
40
+ { name: "\u6708\u80DC\u7387", key: "monthlyPositiveRatio", dealType: "percentage" }
41
41
  ];
42
42
  const BASIC_KEY = [
43
43
  { name: "\u7BA1\u7406\u4EBA", key: "advisor", dealType: "" },
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hfn-components",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "module": "es/index.mjs",