hfn-components 0.2.6 → 0.2.7

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.
Files changed (77) hide show
  1. package/component.ts +13 -0
  2. package/defaults.ts +5 -0
  3. package/index.ts +6 -0
  4. package/make-installer.ts +17 -0
  5. package/package.json +1 -1
  6. package/plugin.ts +1 -0
  7. package/dist/index.css +0 -1
  8. package/es/_virtual/_plugin-vue_export-helper.mjs +0 -9
  9. package/es/component.d.ts +0 -3
  10. package/es/component.mjs +0 -10
  11. package/es/components/chart/index.d.ts +0 -171
  12. package/es/components/chart/index.mjs +0 -7
  13. package/es/components/chart/src/HtChart.d.ts +0 -65
  14. package/es/components/chart/src/HtChart.mjs +0 -77
  15. package/es/components/chart/src/HtChart.vue.d.ts +0 -177
  16. package/es/components/chart/src/HtChart.vue.mjs +0 -91
  17. package/es/components/chart/src/HtChart.vue2.mjs +0 -109
  18. package/es/components/chart/src/chartConfig.d.ts +0 -7
  19. package/es/components/chart/src/chartConfig.mjs +0 -88
  20. package/es/components/chart/style/index.d.ts +0 -1
  21. package/es/components/chart/style/index.mjs +0 -1
  22. package/es/components/elTable/index.d.ts +0 -770
  23. package/es/components/elTable/index.mjs +0 -7
  24. package/es/components/elTable/src/columnDeal.vue.d.ts +0 -38
  25. package/es/components/elTable/src/columnDeal.vue.mjs +0 -35
  26. package/es/components/elTable/src/columnDeal.vue2.mjs +0 -19
  27. package/es/components/elTable/src/elTable.d.ts +0 -38
  28. package/es/components/elTable/src/elTable.mjs +0 -30
  29. package/es/components/elTable/src/elTable.vue.d.ts +0 -769
  30. package/es/components/elTable/src/elTable.vue.mjs +0 -56
  31. package/es/components/elTable/src/elTable.vue2.mjs +0 -29
  32. package/es/components/htTarget/index.d.ts +0 -748
  33. package/es/components/htTarget/index.mjs +0 -6
  34. package/es/components/htTarget/src/htTarget.vue.d.ts +0 -747
  35. package/es/components/htTarget/src/htTarget.vue.mjs +0 -27
  36. package/es/components/htTarget/src/htTarget.vue2.mjs +0 -31
  37. package/es/components/index.d.ts +0 -3
  38. package/es/components/index.mjs +0 -5
  39. package/es/components/table/HtTable.d.ts +0 -142
  40. package/es/components/table/HtTable.mjs +0 -136
  41. package/es/components/table/HtTable.vue.d.ts +0 -1847
  42. package/es/components/table/HtTable.vue.mjs +0 -449
  43. package/es/components/table/HtTable.vue2.mjs +0 -124
  44. package/es/components/table/index.d.ts +0 -1845
  45. package/es/components/table/index.mjs +0 -7
  46. package/es/constants/index.d.ts +0 -3
  47. package/es/constants/index.mjs +0 -3
  48. package/es/constants/key.d.ts +0 -1
  49. package/es/constants/key.mjs +0 -3
  50. package/es/constants/table.d.ts +0 -117
  51. package/es/constants/table.mjs +0 -140
  52. package/es/constants/target.d.ts +0 -4
  53. package/es/constants/target.mjs +0 -16
  54. package/es/css/index.css +0 -59
  55. package/es/defaults.d.ts +0 -4
  56. package/es/defaults.mjs +0 -7
  57. package/es/index.d.ts +0 -5
  58. package/es/index.mjs +0 -11
  59. package/es/make-installer.d.ts +0 -4
  60. package/es/make-installer.mjs +0 -14
  61. package/es/plugin.d.ts +0 -2
  62. package/es/plugin.mjs +0 -3
  63. package/es/utils/chart.d.ts +0 -7
  64. package/es/utils/chart.mjs +0 -172
  65. package/es/utils/common.d.ts +0 -3
  66. package/es/utils/common.mjs +0 -15
  67. package/es/utils/index.d.ts +0 -4
  68. package/es/utils/index.mjs +0 -4
  69. package/es/utils/table.d.ts +0 -2
  70. package/es/utils/table.mjs +0 -31
  71. package/es/utils/tool.d.ts +0 -2
  72. package/es/utils/tool.mjs +0 -42
  73. package/global.d.ts +0 -14
  74. package/theme-chalk/ht-chart.css +0 -1
  75. package/theme-chalk/index.css +0 -1
  76. package/theme-chalk/src/chart.scss +0 -53
  77. package/theme-chalk/src/index.scss +0 -1
@@ -1,27 +0,0 @@
1
- import _sfc_main from './htTarget.vue2.mjs';
2
- import { openBlock, createElementBlock, createVNode, withCtx, createElementVNode, createTextVNode } from 'vue';
3
- import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
4
-
5
- const _hoisted_1 = { class: "dialog-footer" };
6
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
7
- return openBlock(), createElementBlock("div", null, [
8
- createVNode($setup["ElDialog"], null, {
9
- footer: withCtx(() => [
10
- createElementVNode("div", _hoisted_1, [
11
- createVNode($setup["ElButton"], { type: "primary" }, {
12
- default: withCtx(() => [
13
- createTextVNode(" Confirm ")
14
- ]),
15
- _: 1
16
- /* STABLE */
17
- })
18
- ])
19
- ]),
20
- _: 1
21
- /* STABLE */
22
- })
23
- ]);
24
- }
25
- var htTarget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/zhanghang/Documents/project/component-library/packages/components/htTarget/src/htTarget.vue"]]);
26
-
27
- export { htTarget as default };
@@ -1,31 +0,0 @@
1
- import { defineComponent, ref, onMounted } from 'vue';
2
- import { ElDialog, ElButton } from 'element-plus';
3
- import { TARGET_HEAD_KEY } from '../../../constants/target.mjs';
4
-
5
- var _sfc_main = /* @__PURE__ */ defineComponent({
6
- __name: "htTarget",
7
- setup(__props, { expose: __expose }) {
8
- __expose();
9
- const targetHead = ref(TARGET_HEAD_KEY);
10
- onMounted(() => {
11
- let startYear = 2018;
12
- const nowYear = (/* @__PURE__ */ new Date()).getFullYear();
13
- while (startYear <= nowYear) {
14
- targetHead.value.push({
15
- name: `${startYear}`,
16
- key: `${startYear}`
17
- });
18
- startYear++;
19
- }
20
- });
21
- const __returned__ = { targetHead, get ElDialog() {
22
- return ElDialog;
23
- }, get ElButton() {
24
- return ElButton;
25
- } };
26
- Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
27
- return __returned__;
28
- }
29
- });
30
-
31
- export { _sfc_main as default };
@@ -1,3 +0,0 @@
1
- export * from './elTable';
2
- export * from './chart';
3
- export * from './htTarget';
@@ -1,5 +0,0 @@
1
- export { HtElTable } from './elTable/index.mjs';
2
- export { HtChart } from './chart/index.mjs';
3
- export { HtTarget } from './htTarget/index.mjs';
4
- export { columnDealProps, elTableProps } from './elTable/src/elTable.mjs';
5
- export { chartProps } from './chart/src/HtChart.mjs';
@@ -1,142 +0,0 @@
1
- import type HtTable from './HtTable.vue';
2
- import type { ExtractPropTypes, PropType } from 'vue';
3
- import { ColumnGroupType, ColumnType, TablePaginationConfig, SortOrder } from 'ant-design-vue/es/table/interface';
4
- import { TableColumnType } from 'ant-design-vue';
5
- interface CustomColumn {
6
- title: string;
7
- key: string;
8
- titles: string[];
9
- dataIndex?: string;
10
- width?: string | number;
11
- align?: 'left' | 'center' | 'right';
12
- slotData?: string;
13
- fixed?: 'left' | 'right';
14
- filters?: any[];
15
- filterMultiple?: boolean;
16
- sorter?: boolean;
17
- sortOrder?: SortOrder;
18
- }
19
- export type TableColumns = CustomColumn | ColumnGroupType<any> | ColumnType<any>;
20
- export interface ActionItem {
21
- label?: string;
22
- disabled?: boolean;
23
- type: string;
24
- icon?: string;
25
- iconType?: string;
26
- menu?: Array<any>;
27
- url?: string;
28
- handler: (record: any) => void;
29
- showAction?: (record: any) => boolean;
30
- }
31
- export interface HtTableColumnType extends TableColumnType {
32
- componentType: string;
33
- }
34
- export declare const tableProps: {
35
- readonly loading: {
36
- readonly type: BooleanConstructor;
37
- readonly default: false;
38
- };
39
- readonly columns: {
40
- readonly type: PropType<TableColumns[]>;
41
- readonly default: () => never[];
42
- };
43
- readonly actions: {
44
- readonly type: PropType<ActionItem[]>;
45
- readonly default: () => never[];
46
- };
47
- readonly dataSource: {
48
- readonly type: ArrayConstructor;
49
- readonly default: () => never[];
50
- };
51
- readonly total: {
52
- readonly type: NumberConstructor;
53
- readonly default: 0;
54
- };
55
- readonly pageSize: {
56
- readonly type: NumberConstructor;
57
- readonly default: 20;
58
- };
59
- readonly nowPage: {
60
- readonly type: NumberConstructor;
61
- readonly default: 1;
62
- };
63
- readonly selectShow: {
64
- readonly type: BooleanConstructor;
65
- readonly default: false;
66
- };
67
- readonly selectedKeys: {
68
- readonly type: PropType<(string | number)[]>;
69
- readonly default: () => never[];
70
- };
71
- readonly isPagination: {
72
- readonly type: BooleanConstructor;
73
- readonly default: true;
74
- };
75
- readonly showOriginalPagination: {
76
- readonly type: PropType<false | object | TablePaginationConfig>;
77
- readonly default: false;
78
- };
79
- readonly isScroll: {
80
- readonly type: BooleanConstructor;
81
- readonly default: true;
82
- };
83
- readonly categoryList: {
84
- readonly type: ArrayConstructor;
85
- readonly default: () => never[];
86
- };
87
- readonly yIsScroll: {
88
- readonly type: BooleanConstructor;
89
- readonly default: false;
90
- };
91
- readonly yHeight: {
92
- readonly type: NumberConstructor;
93
- readonly default: 0;
94
- };
95
- readonly isPeople: {
96
- readonly type: BooleanConstructor;
97
- readonly default: false;
98
- };
99
- readonly switching: {
100
- readonly type: BooleanConstructor;
101
- readonly default: false;
102
- };
103
- readonly selectKey: {
104
- readonly type: StringConstructor;
105
- readonly default: "";
106
- };
107
- readonly isTeam: {
108
- readonly type: BooleanConstructor;
109
- readonly default: false;
110
- };
111
- readonly isTotal: {
112
- readonly type: BooleanConstructor;
113
- readonly default: false;
114
- };
115
- readonly totalData: {
116
- readonly type: ArrayConstructor;
117
- readonly default: () => never[];
118
- };
119
- readonly totalIndex: {
120
- readonly type: BooleanConstructor;
121
- readonly default: true;
122
- };
123
- readonly isExcess: {
124
- readonly type: BooleanConstructor;
125
- readonly default: false;
126
- };
127
- readonly isRowKey: {
128
- readonly type: BooleanConstructor;
129
- readonly default: true;
130
- };
131
- readonly isSticky: {
132
- readonly type: BooleanConstructor;
133
- readonly default: false;
134
- };
135
- readonly smallHeader: {
136
- readonly type: BooleanConstructor;
137
- readonly default: true;
138
- };
139
- };
140
- export type TableProps = ExtractPropTypes<typeof tableProps>;
141
- export type HtTabletInstance = InstanceType<typeof HtTable>;
142
- export {};
@@ -1,136 +0,0 @@
1
- const tableProps = {
2
- // loading状态
3
- loading: {
4
- type: Boolean,
5
- default: false
6
- },
7
- // 表格列配置
8
- columns: {
9
- type: Array,
10
- default: () => []
11
- },
12
- actions: {
13
- type: Array,
14
- default: () => []
15
- },
16
- // 表格数据
17
- dataSource: {
18
- type: Array,
19
- default: () => []
20
- },
21
- // 表格数据总数
22
- total: {
23
- type: Number,
24
- default: 0
25
- },
26
- // 每页条数
27
- pageSize: {
28
- type: Number,
29
- default: 20
30
- },
31
- // 当前页
32
- nowPage: {
33
- type: Number,
34
- default: 1
35
- },
36
- // 是否显示选择框
37
- selectShow: {
38
- type: Boolean,
39
- default: false
40
- },
41
- // 选中数据
42
- selectedKeys: {
43
- type: Array,
44
- default: () => []
45
- },
46
- // isClear: {
47
- // type: Boolean,
48
- // default: false
49
- // },
50
- // isAdvisor: {
51
- // type: Boolean,
52
- // default: false
53
- // },
54
- // 是否显示分页
55
- isPagination: {
56
- type: Boolean,
57
- default: true
58
- },
59
- // 是否启用表格分页器
60
- showOriginalPagination: {
61
- type: [Boolean, Object],
62
- default: false
63
- },
64
- // 表格x轴是否可滚动
65
- isScroll: {
66
- type: Boolean,
67
- default: true
68
- },
69
- categoryList: {
70
- type: Array,
71
- default: () => []
72
- },
73
- // isStrategy: {
74
- // type: Number,
75
- // default: 1
76
- // },
77
- // 表格y轴是否可滚动
78
- yIsScroll: {
79
- type: Boolean,
80
- default: false
81
- },
82
- // y轴滚动高度
83
- yHeight: {
84
- type: Number,
85
- default: 0
86
- },
87
- // 是否是个人
88
- isPeople: {
89
- type: Boolean,
90
- default: false
91
- },
92
- switching: {
93
- type: Boolean,
94
- default: false
95
- },
96
- selectKey: {
97
- // 多选时默认选择的字段
98
- type: String,
99
- default: ""
100
- },
101
- isTeam: {
102
- // 区分个人&团队
103
- type: Boolean,
104
- default: false
105
- },
106
- isTotal: {
107
- type: Boolean,
108
- default: false
109
- },
110
- totalData: {
111
- type: Array,
112
- default: () => []
113
- },
114
- totalIndex: {
115
- type: Boolean,
116
- default: true
117
- },
118
- isExcess: {
119
- type: Boolean,
120
- default: false
121
- },
122
- isRowKey: {
123
- type: Boolean,
124
- default: true
125
- },
126
- isSticky: {
127
- type: Boolean,
128
- default: false
129
- },
130
- smallHeader: {
131
- type: Boolean,
132
- default: true
133
- }
134
- };
135
-
136
- export { tableProps };