hfn-components 0.3.4 → 0.3.6

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.
@@ -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,9 +27,11 @@ 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 */
@@ -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,8 +97,8 @@ 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
  ]);
@@ -1,15 +1,20 @@
1
1
  export declare const HtTarget: import("hfn-components/es/utils").SFCWithInstall<import("vue").DefineComponent<{
2
+ readonly targetType: {
3
+ readonly type: StringConstructor;
4
+ readonly default: "";
5
+ };
2
6
  readonly dialogShow: {
3
7
  readonly type: BooleanConstructor;
4
8
  readonly default: false;
5
9
  };
6
10
  readonly targetData: {
7
- readonly type: import("vue").PropType<string[]>;
11
+ readonly type: import("vue").PropType<import("./src/htTarget").target[]>;
8
12
  readonly default: readonly [];
9
13
  };
10
14
  }, {
11
15
  props: import("@vue/shared").LooseRequired<{
12
- readonly targetData: string[];
16
+ readonly targetData: import("./src/htTarget").target[];
17
+ readonly targetType: string;
13
18
  readonly dialogShow: boolean;
14
19
  readonly onChoiceTarget?: ((...args: any[]) => any) | undefined;
15
20
  readonly onChoiceCancel?: ((...args: any[]) => any) | undefined;
@@ -1987,19 +1992,24 @@ export declare const HtTarget: import("hfn-components/es/utils").SFCWithInstall<
1987
1992
  dealType: string;
1988
1993
  }[];
1989
1994
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("choiceTarget" | "choiceCancel")[], "choiceTarget" | "choiceCancel", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1995
+ readonly targetType: {
1996
+ readonly type: StringConstructor;
1997
+ readonly default: "";
1998
+ };
1990
1999
  readonly dialogShow: {
1991
2000
  readonly type: BooleanConstructor;
1992
2001
  readonly default: false;
1993
2002
  };
1994
2003
  readonly targetData: {
1995
- readonly type: import("vue").PropType<string[]>;
2004
+ readonly type: import("vue").PropType<import("./src/htTarget").target[]>;
1996
2005
  readonly default: readonly [];
1997
2006
  };
1998
2007
  }>> & {
1999
2008
  onChoiceTarget?: ((...args: any[]) => any) | undefined;
2000
2009
  onChoiceCancel?: ((...args: any[]) => any) | undefined;
2001
2010
  }, {
2002
- readonly targetData: string[];
2011
+ readonly targetData: import("./src/htTarget").target[];
2012
+ readonly targetType: string;
2003
2013
  readonly dialogShow: boolean;
2004
2014
  }, {}>> & Record<string, any>;
2005
2015
  export default HtTarget;
@@ -1,11 +1,20 @@
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: {
8
+ readonly targetType: {
9
+ readonly type: StringConstructor;
10
+ readonly default: "";
11
+ };
3
12
  readonly dialogShow: {
4
13
  readonly type: BooleanConstructor;
5
14
  readonly default: false;
6
15
  };
7
16
  readonly targetData: {
8
- readonly type: PropType<string[]>;
17
+ readonly type: PropType<target[]>;
9
18
  readonly default: readonly [];
10
19
  };
11
20
  };
@@ -1,4 +1,8 @@
1
1
  const targetProps = {
2
+ targetType: {
3
+ type: String,
4
+ default: ""
5
+ },
2
6
  dialogShow: {
3
7
  type: Boolean,
4
8
  default: false
@@ -1,15 +1,20 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
+ readonly targetType: {
3
+ readonly type: StringConstructor;
4
+ readonly default: "";
5
+ };
2
6
  readonly dialogShow: {
3
7
  readonly type: BooleanConstructor;
4
8
  readonly default: false;
5
9
  };
6
10
  readonly targetData: {
7
- readonly type: import("vue").PropType<string[]>;
11
+ readonly type: import("vue").PropType<import("./htTarget").target[]>;
8
12
  readonly default: readonly [];
9
13
  };
10
14
  }, {
11
15
  props: import("@vue/shared").LooseRequired<{
12
- readonly targetData: string[];
16
+ readonly targetData: import("./htTarget").target[];
17
+ readonly targetType: string;
13
18
  readonly dialogShow: boolean;
14
19
  readonly onChoiceTarget?: ((...args: any[]) => any) | undefined;
15
20
  readonly onChoiceCancel?: ((...args: any[]) => any) | undefined;
@@ -1987,19 +1992,24 @@ declare const _default: import("vue").DefineComponent<{
1987
1992
  dealType: string;
1988
1993
  }[];
1989
1994
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("choiceTarget" | "choiceCancel")[], "choiceTarget" | "choiceCancel", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1995
+ readonly targetType: {
1996
+ readonly type: StringConstructor;
1997
+ readonly default: "";
1998
+ };
1990
1999
  readonly dialogShow: {
1991
2000
  readonly type: BooleanConstructor;
1992
2001
  readonly default: false;
1993
2002
  };
1994
2003
  readonly targetData: {
1995
- readonly type: import("vue").PropType<string[]>;
2004
+ readonly type: import("vue").PropType<import("./htTarget").target[]>;
1996
2005
  readonly default: readonly [];
1997
2006
  };
1998
2007
  }>> & {
1999
2008
  onChoiceTarget?: ((...args: any[]) => any) | undefined;
2000
2009
  onChoiceCancel?: ((...args: any[]) => any) | undefined;
2001
2010
  }, {
2002
- readonly targetData: string[];
2011
+ readonly targetData: import("./htTarget").target[];
2012
+ readonly targetType: string;
2003
2013
  readonly dialogShow: boolean;
2004
2014
  }, {}>;
2005
2015
  export default _default;
@@ -1,14 +1,14 @@
1
1
  import _sfc_main from './htTarget.vue2.mjs';
2
- import { openBlock, createElementBlock, createVNode, withCtx, createElementVNode, createTextVNode, Fragment, renderList, createBlock, toDisplayString } from 'vue';
2
+ import { openBlock, createElementBlock, createVNode, withCtx, createElementVNode, createTextVNode, createBlock, createCommentVNode, Fragment, renderList, toDisplayString } from 'vue';
3
3
  import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
4
4
 
5
5
  const _hoisted_1 = {
6
- key: 0,
6
+ key: 1,
7
7
  style: { "width": "100%" }
8
8
  };
9
9
  const _hoisted_2 = { class: "factor-content" };
10
10
  const _hoisted_3 = {
11
- key: 1,
11
+ key: 2,
12
12
  style: { "width": "100%" }
13
13
  };
14
14
  const _hoisted_4 = { class: "factor-content" };
@@ -43,7 +43,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
43
43
  default: withCtx(() => [
44
44
  createVNode($setup["ElRow"], { span: 20 }, {
45
45
  default: withCtx(() => [
46
- createVNode($setup["ElRadioGroup"], {
46
+ $setup.props.targetType === "all" ? (openBlock(), createBlock($setup["ElRadioGroup"], {
47
+ key: 0,
47
48
  modelValue: $setup.typeTag,
48
49
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.typeTag = $event)
49
50
  }, {
@@ -59,7 +60,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
59
60
  ]),
60
61
  _: 1
61
62
  /* STABLE */
62
- }, 8, ["modelValue"]),
63
+ }, 8, ["modelValue"])) : createCommentVNode("v-if", true),
63
64
  $setup.typeTag === "target" ? (openBlock(), createElementBlock("div", _hoisted_1, [
64
65
  createVNode($setup["ElRadioGroup"], {
65
66
  modelValue: $setup.selectedHead,
@@ -34,31 +34,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
34
34
  () => props.dialogShow,
35
35
  (val) => {
36
36
  dialogShow.value = val;
37
- }
38
- );
39
- watch(
40
- () => props.targetData,
41
- (val) => {
42
- console.log("---", val);
43
- val.forEach((item) => {
44
- if (item.startsWith("basic_")) {
45
- const strSplit = item.split("_");
37
+ props.targetData.forEach((item) => {
38
+ if (item.key.startsWith("basic_")) {
39
+ const strSplit = item.key.split("_");
46
40
  selectedTarget(strSplit[1], "", "basic");
47
41
  } else {
48
- const strSplit = item.split("_");
49
- console.log(strSplit);
42
+ const strSplit = item.key.split("_");
50
43
  selectedTarget(strSplit[1], strSplit[0], "target");
51
44
  }
52
45
  });
53
- },
54
- { deep: true }
46
+ }
55
47
  );
56
48
  const headChange = () => {
57
49
  if (selectedHead.value === "thisWeek" || selectedHead.value === "thisMonth") {
58
- allfoot.value = [
59
- { name: "\u6536\u76CA", key: "return", dealType: "color_text_precent" },
60
- { name: "\u5E74\u5316\u6536\u76CA", key: "yearReturn", dealType: "color_text_precent" }
61
- ];
50
+ allfoot.value = cloneDeep(TARGET_END_KEY).splice(0, 2);
62
51
  } else {
63
52
  allfoot.value = cloneDeep(TARGET_END_KEY);
64
53
  }
@@ -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: "" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hfn-components",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "module": "es/index.mjs",