hfn-components 0.4.2 → 0.5.1

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<{
@@ -797,9 +797,9 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
797
797
  readonly default: "#f0f0f0";
798
798
  };
799
799
  }>>, {
800
+ readonly loading: boolean;
800
801
  readonly dataSource: unknown[];
801
802
  readonly tableColumn: import("./src/elTable").ElTableColumns[];
802
- readonly loading: boolean;
803
803
  readonly headerColor: string;
804
804
  }, {}>> & Record<string, any>;
805
805
  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<{
@@ -797,9 +797,9 @@ declare const _default: import("vue").DefineComponent<{
797
797
  readonly default: "#f0f0f0";
798
798
  };
799
799
  }>>, {
800
+ readonly loading: boolean;
800
801
  readonly dataSource: unknown[];
801
802
  readonly tableColumn: import("./elTable").ElTableColumns[];
802
- readonly loading: boolean;
803
803
  readonly headerColor: string;
804
804
  }, {}>;
805
805
  export default _default;
@@ -48,8 +48,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
48
48
  }
49
49
  );
50
50
  const headChange = () => {
51
- if (selectedHead.value === "thisWeek" || selectedHead.value === "thisMonth") {
51
+ if (selectedHead.value === "thisWeek" || selectedHead.value === "thisMonth" || selectedHead.value === "pastWeek") {
52
52
  allfoot.value = cloneDeep(TARGET_END_KEY).splice(0, 2);
53
+ } else if (selectedHead.value === "lastOneMonth" || selectedHead.value === "lastThreeMonth" || selectedHead.value === "lastSixMonth") {
54
+ allfoot.value = cloneDeep(TARGET_END_KEY).filter((item) => item.key !== "monthlyPositiveRatio");
53
55
  } else {
54
56
  allfoot.value = cloneDeep(TARGET_END_KEY);
55
57
  }
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hfn-components",
3
- "version": "0.4.2",
3
+ "version": "0.5.1",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "module": "es/index.mjs",
@@ -20,10 +20,5 @@
20
20
  "vue": "^3.2.0",
21
21
  "echarts": "^5.5.1",
22
22
  "lodash.clonedeep": "^4.5.0"
23
- },
24
- "exports": {
25
- "./constants": {
26
- "import": "./es/constants/index.mjs"
27
- }
28
23
  }
29
24
  }