hfn-components 0.2.3 → 0.2.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.
@@ -1 +1 @@
1
- import 'hfn-components/es/theme-chalk/src/chart.scss';
1
+ import 'hfn-components/theme-chalk/src/chart.scss';
@@ -1 +1 @@
1
-
1
+ import 'hfn-components/theme-chalk/src/chart.scss';
@@ -653,7 +653,7 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
653
653
  readonly convertKey: (data: any, key: string) => any;
654
654
  ColumnDeal: import("vue").DefineComponent<{
655
655
  readonly dealType: {
656
- readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed">;
656
+ readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed" | "other">;
657
657
  readonly default: "";
658
658
  };
659
659
  readonly text: {
@@ -662,7 +662,7 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
662
662
  };
663
663
  }, {
664
664
  props: import("@vue/shared").LooseRequired<{
665
- readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed";
665
+ readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed" | "other";
666
666
  readonly text?: string | number | undefined;
667
667
  } & {}>;
668
668
  readonly CLOUMN_DEAL: {
@@ -672,10 +672,11 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
672
672
  percentage: (val: string | number | undefined) => string;
673
673
  absPercentage: (val: string | number | undefined) => string;
674
674
  notProcessed: null;
675
+ other: null;
675
676
  };
676
677
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
677
678
  readonly dealType: {
678
- readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed">;
679
+ readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed" | "other">;
679
680
  readonly default: "";
680
681
  };
681
682
  readonly text: {
@@ -684,7 +685,7 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
684
685
  };
685
686
  }>>, {
686
687
  readonly text: string | number | undefined;
687
- readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed";
688
+ readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed" | "other";
688
689
  }, {}>;
689
690
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
690
691
  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" | "absPercentage" | "notProcessed">;
3
+ readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed" | "other">;
4
4
  readonly default: "";
5
5
  };
6
6
  readonly text: {
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<{
9
9
  };
10
10
  }, {
11
11
  props: import("@vue/shared").LooseRequired<{
12
- readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed";
12
+ readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed" | "other";
13
13
  readonly text?: string | number | undefined;
14
14
  } & {}>;
15
15
  readonly CLOUMN_DEAL: {
@@ -19,10 +19,11 @@ declare const _default: import("vue").DefineComponent<{
19
19
  percentage: (val: string | number | undefined) => string;
20
20
  absPercentage: (val: string | number | undefined) => string;
21
21
  notProcessed: null;
22
+ other: null;
22
23
  };
23
24
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
24
25
  readonly dealType: {
25
- readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed">;
26
+ readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed" | "other">;
26
27
  readonly default: "";
27
28
  };
28
29
  readonly text: {
@@ -31,6 +32,6 @@ declare const _default: import("vue").DefineComponent<{
31
32
  };
32
33
  }>>, {
33
34
  readonly text: string | number | undefined;
34
- readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed";
35
+ readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed" | "other";
35
36
  }, {}>;
36
37
  export default _default;
@@ -6,7 +6,7 @@ const _hoisted_1 = { key: 0 };
6
6
  const _hoisted_2 = { key: 1 };
7
7
  const _hoisted_3 = { key: 2 };
8
8
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
9
- return $setup.props.dealType === "notProcessed" ? (openBlock(), createElementBlock(
9
+ return $setup.props.dealType === "notProcessed" || $setup.props.dealType === "other" ? (openBlock(), createElementBlock(
10
10
  "div",
11
11
  _hoisted_1,
12
12
  toDisplayString($setup.props.text),
@@ -26,7 +26,7 @@ export declare const elTableProps: {
26
26
  };
27
27
  export declare const columnDealProps: {
28
28
  readonly dealType: {
29
- readonly type: PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed">;
29
+ readonly type: PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed" | "other">;
30
30
  readonly default: "";
31
31
  };
32
32
  readonly text: {
@@ -653,7 +653,7 @@ declare const _default: import("vue").DefineComponent<{
653
653
  readonly convertKey: (data: any, key: string) => any;
654
654
  ColumnDeal: import("vue").DefineComponent<{
655
655
  readonly dealType: {
656
- readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed">;
656
+ readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed" | "other">;
657
657
  readonly default: "";
658
658
  };
659
659
  readonly text: {
@@ -662,7 +662,7 @@ declare const _default: import("vue").DefineComponent<{
662
662
  };
663
663
  }, {
664
664
  props: import("@vue/shared").LooseRequired<{
665
- readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed";
665
+ readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed" | "other";
666
666
  readonly text?: string | number | undefined;
667
667
  } & {}>;
668
668
  readonly CLOUMN_DEAL: {
@@ -672,10 +672,11 @@ declare const _default: import("vue").DefineComponent<{
672
672
  percentage: (val: string | number | undefined) => string;
673
673
  absPercentage: (val: string | number | undefined) => string;
674
674
  notProcessed: null;
675
+ other: null;
675
676
  };
676
677
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
677
678
  readonly dealType: {
678
- readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed">;
679
+ readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed" | "other">;
679
680
  readonly default: "";
680
681
  };
681
682
  readonly text: {
@@ -684,7 +685,7 @@ declare const _default: import("vue").DefineComponent<{
684
685
  };
685
686
  }>>, {
686
687
  readonly text: string | number | undefined;
687
- readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed";
688
+ readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "notProcessed" | "other";
688
689
  }, {}>;
689
690
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
690
691
  readonly dataSource: {
@@ -1,5 +1,5 @@
1
1
  import _sfc_main from './elTable.vue2.mjs';
2
- import { withDirectives, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createVNode } from 'vue';
2
+ import { withDirectives, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList } 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) {
@@ -27,10 +27,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
27
27
  width: item.width
28
28
  }, {
29
29
  default: withCtx((scope) => [
30
- createVNode($setup["ColumnDeal"], {
30
+ item.dealType === "other" ? (openBlock(), createBlock($setup["ColumnDeal"], {
31
+ key: 0,
32
+ dealType: scope.row.dealType,
33
+ text: $setup.convertKey(scope.row, item.key)
34
+ }, null, 8, ["dealType", "text"])) : (openBlock(), createBlock($setup["ColumnDeal"], {
35
+ key: 1,
31
36
  dealType: item.dealType,
32
37
  text: $setup.convertKey(scope.row, item.key)
33
- }, null, 8, ["dealType", "text"])
38
+ }, null, 8, ["dealType", "text"]))
34
39
  ]),
35
40
  _: 2
36
41
  /* DYNAMIC */
@@ -54,6 +54,7 @@ export declare const CLOUMN_DEAL: {
54
54
  percentage: (val: number | string | undefined) => string;
55
55
  absPercentage: (val: number | string | undefined) => string;
56
56
  notProcessed: null;
57
+ other: null;
57
58
  };
58
59
  export declare const convertKey: (data: any, key: string) => any;
59
60
  export type clounmKyeType = keyof typeof TABLE_KEY;
@@ -62,7 +62,8 @@ const CLOUMN_DEAL = {
62
62
  colorPercentage: percentage,
63
63
  percentage,
64
64
  absPercentage,
65
- notProcessed: null
65
+ notProcessed: null,
66
+ other: null
66
67
  };
67
68
  const convertKey = (data, key) => {
68
69
  const newKey = key.replace(/([A-Z])/g, "_$1").toLowerCase();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hfn-components",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "module": "es/index.mjs",
package/es/css/index.css DELETED
@@ -1,59 +0,0 @@
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
- }