hfn-components 0.0.9 → 0.1.0

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.
@@ -7,10 +7,15 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
7
7
  readonly type: import("vue").PropType<import("./src/elTable").ElTableColumns[]>;
8
8
  readonly default: () => never[];
9
9
  };
10
+ readonly loading: {
11
+ readonly type: BooleanConstructor;
12
+ readonly default: false;
13
+ };
10
14
  }, {
11
15
  props: import("@vue/shared").LooseRequired<{
12
16
  readonly dataSource: unknown[];
13
17
  readonly tableColumn: import("./src/elTable").ElTableColumns[];
18
+ readonly loading: boolean;
14
19
  } & {}>;
15
20
  readonly ElTable: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
16
21
  data: {
@@ -590,6 +595,7 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
590
595
  reserveSelection: boolean;
591
596
  filterMultiple: boolean;
592
597
  }, {}>>;
598
+ readonly vLoading: import("vue").Directive<import("element-plus/es/components/loading/src/directive").ElementLoading, import("element-plus/es/components/loading/src/directive").LoadingBinding>;
593
599
  ColumnDeal: import("vue").DefineComponent<{
594
600
  dealType: {
595
601
  type: StringConstructor;
@@ -622,9 +628,14 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
622
628
  readonly type: import("vue").PropType<import("./src/elTable").ElTableColumns[]>;
623
629
  readonly default: () => never[];
624
630
  };
631
+ readonly loading: {
632
+ readonly type: BooleanConstructor;
633
+ readonly default: false;
634
+ };
625
635
  }>>, {
626
636
  readonly dataSource: unknown[];
627
637
  readonly tableColumn: import("./src/elTable").ElTableColumns[];
638
+ readonly loading: boolean;
628
639
  }, {}>> & Record<string, any>;
629
640
  export default HtElTable;
630
641
  export * from './src/elTable';
@@ -13,5 +13,9 @@ export declare const elTableProps: {
13
13
  readonly type: PropType<ElTableColumns[]>;
14
14
  readonly default: () => never[];
15
15
  };
16
+ readonly loading: {
17
+ readonly type: BooleanConstructor;
18
+ readonly default: false;
19
+ };
16
20
  };
17
21
  export type ElTableProps = ExtractPropTypes<typeof elTableProps>;
@@ -6,6 +6,10 @@ const elTableProps = {
6
6
  tableColumn: {
7
7
  type: Array,
8
8
  default: () => []
9
+ },
10
+ loading: {
11
+ type: Boolean,
12
+ default: false
9
13
  }
10
14
  };
11
15
 
@@ -7,10 +7,15 @@ declare const _default: import("vue").DefineComponent<{
7
7
  readonly type: import("vue").PropType<import("./elTable").ElTableColumns[]>;
8
8
  readonly default: () => never[];
9
9
  };
10
+ readonly loading: {
11
+ readonly type: BooleanConstructor;
12
+ readonly default: false;
13
+ };
10
14
  }, {
11
15
  props: import("@vue/shared").LooseRequired<{
12
16
  readonly dataSource: unknown[];
13
17
  readonly tableColumn: import("./elTable").ElTableColumns[];
18
+ readonly loading: boolean;
14
19
  } & {}>;
15
20
  readonly ElTable: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
16
21
  data: {
@@ -590,6 +595,7 @@ declare const _default: import("vue").DefineComponent<{
590
595
  reserveSelection: boolean;
591
596
  filterMultiple: boolean;
592
597
  }, {}>>;
598
+ readonly vLoading: import("vue").Directive<import("element-plus/es/components/loading/src/directive").ElementLoading, import("element-plus/es/components/loading/src/directive").LoadingBinding>;
593
599
  ColumnDeal: import("vue").DefineComponent<{
594
600
  dealType: {
595
601
  type: StringConstructor;
@@ -622,8 +628,13 @@ declare const _default: import("vue").DefineComponent<{
622
628
  readonly type: import("vue").PropType<import("./elTable").ElTableColumns[]>;
623
629
  readonly default: () => never[];
624
630
  };
631
+ readonly loading: {
632
+ readonly type: BooleanConstructor;
633
+ readonly default: false;
634
+ };
625
635
  }>>, {
626
636
  readonly dataSource: unknown[];
627
637
  readonly tableColumn: import("./elTable").ElTableColumns[];
638
+ readonly loading: boolean;
628
639
  }, {}>;
629
640
  export default _default;
@@ -1,11 +1,12 @@
1
1
  import _sfc_main from './elTable.vue2.mjs';
2
- import { openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createVNode } from 'vue';
2
+ import { withDirectives, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createVNode } 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) {
6
- return openBlock(), createBlock($setup["ElTable"], {
6
+ return withDirectives((openBlock(), createBlock($setup["ElTable"], {
7
7
  data: $setup.props.dataSource,
8
8
  style: { "width": "100%" },
9
+ height: "100%",
9
10
  "header-cell-style": { background: "#f0f0f0", color: "#000", "font-weight": 500, "font-size": "12px" }
10
11
  }, {
11
12
  default: withCtx(() => [
@@ -34,7 +35,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
34
35
  ]),
35
36
  _: 1
36
37
  /* STABLE */
37
- }, 8, ["data"]);
38
+ }, 8, ["data"])), [
39
+ [$setup["vLoading"], $setup.props.loading]
40
+ ]);
38
41
  }
39
42
  var elTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/elTable/src/elTable.vue"]]);
40
43
 
@@ -1,5 +1,5 @@
1
1
  import { defineComponent } from 'vue';
2
- import { ElTable, ElTableColumn } from 'element-plus';
2
+ import { ElTable, ElTableColumn, vLoading } from 'element-plus';
3
3
  import ColumnDeal from './columnDeal.vue.mjs';
4
4
  import { TABLE_KEY } from '../../../constants/table.mjs';
5
5
  import { elTableProps } from './elTable.mjs';
@@ -14,6 +14,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  return ElTable;
15
15
  }, get ElTableColumn() {
16
16
  return ElTableColumn;
17
+ }, get vLoading() {
18
+ return vLoading;
17
19
  }, ColumnDeal, get TABLE_KEY() {
18
20
  return TABLE_KEY;
19
21
  } };
@@ -1,14 +1,38 @@
1
1
  const TABLE_KEY = {
2
+ index: "\u5E8F\u53F7",
2
3
  year: "\u5E74\u4EFD",
3
4
  cucmulativeReturn: "\u533A\u95F4\u6536\u76CA",
5
+ excessReturn: "\u8D85\u989D\u533A\u95F4\u6536\u76CA",
4
6
  vol: "\u5E74\u5316\u6CE2\u52A8\u7387",
7
+ excessVol: "\u8D85\u989D\u5E74\u5316\u6CE2\u52A8\u7387",
5
8
  sharpeRatio: "\u590F\u666E\u6BD4\u7387",
9
+ excessSharpeRatio: "\u8D85\u989D\u590F\u666E\u6BD4\u7387",
6
10
  calmarRatio: "\u5361\u739B\u6BD4\u7387",
11
+ excessCalmarRatio: "\u8D85\u989D\u5361\u739B\u6BD4\u7387",
7
12
  sortinoRatio: "\u7D22\u63D0\u8BFA\u6BD4\u7387",
13
+ excessSortinoRatio: "\u8D85\u989D\u7D22\u63D0\u8BFA\u6BD4\u7387",
8
14
  downsideDev: "\u4E0B\u884C\u98CE\u9669",
15
+ excessDownsideDev: "\u8D85\u989D\u4E0B\u884C\u98CE\u9669",
9
16
  maxDrawdown: "\u6700\u5927\u56DE\u64A4",
17
+ excessMaxDrawdown: "\u8D85\u989D\u6700\u5927\u56DE\u64A4",
10
18
  maxDrawdownDays: "\u6700\u5927\u56DE\u64A4\u56DE\u8865\u671F\uFF08\u5929\uFF09",
11
- maxNormalDays: "\u6700\u957F\u8FDE\u7EED\u4E0D\u521B\u65B0\u9AD8\u5929\u6570\uFF08\u5929\uFF09"
19
+ excessMaxDrawdownDays: "\u8D85\u989D\u6700\u5927\u56DE\u64A4\u56DE\u8865\u671F\uFF08\u5929\uFF09",
20
+ maxNormalDays: "\u6700\u957F\u8FDE\u7EED\u4E0D\u521B\u65B0\u9AD8\u5929\u6570\uFF08\u5929\uFF09",
21
+ excessMaxNormalDays: "\u8D85\u989D\u6700\u957F\u8FDE\u7EED\u4E0D\u521B\u65B0\u9AD8\u5929\u6570\uFF08\u5929\uFF09",
22
+ "01": "1\u6708",
23
+ "02": "2\u6708",
24
+ "03": "3\u6708",
25
+ "04": "4\u6708",
26
+ "05": "5\u6708",
27
+ "06": "6\u6708",
28
+ "07": "7\u6708",
29
+ "08": "8\u6708",
30
+ "09": "9\u6708",
31
+ "10": "10\u6708",
32
+ "11": "11\u6708",
33
+ "12": "12\u6708",
34
+ MonthlyPositiveRatio: "\u6708\u80DC\u7387",
35
+ all_year: "\u5168\u5E74"
12
36
  };
13
37
  const basicText4 = (val) => {
14
38
  return val === "-" ? "-" : val.toFixed(4);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hfn-components",
3
- "version": "0.0.9",
3
+ "version": "0.1.0",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "module": "es/index.mjs",