hfn-components 0.6.7 → 0.6.8
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.
- package/es/components/htTable/index.d.ts +6 -6
- package/es/components/htTable/src/htTable.vue.d.ts +2 -2
- package/es/components/htTable/src/htTable.vue.mjs +2 -2
- package/es/components/htTable/src/htTable.vue2.mjs +10 -10
- package/es/constants/index.d.ts +1 -0
- package/es/constants/index.mjs +2 -0
- package/package.json +25 -1
|
@@ -37,21 +37,21 @@ export declare const HtTable: import("hfn-components/es/utils").SFCWithInstall<{
|
|
|
37
37
|
readonly default: undefined;
|
|
38
38
|
};
|
|
39
39
|
}>> & {
|
|
40
|
-
"onSelection-change"?: ((rows: any[]) => any) | undefined;
|
|
41
40
|
"onSort-change"?: ((args_0: {
|
|
42
41
|
field: string;
|
|
43
42
|
order: "ascending" | "descending" | null;
|
|
44
43
|
}) => any) | undefined;
|
|
45
44
|
"onFilter-change"?: ((args_0: Record<string, string[]>) => any) | undefined;
|
|
45
|
+
"onSelection-change"?: ((rows: any[]) => any) | undefined;
|
|
46
46
|
"onPage-change"?: ((current: number) => any) | undefined;
|
|
47
47
|
"onSize-change"?: ((pageSize: number) => any) | undefined;
|
|
48
48
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
49
|
-
"selection-change": (rows: any[]) => void;
|
|
50
49
|
"sort-change": (args_0: {
|
|
51
50
|
field: string;
|
|
52
51
|
order: "ascending" | "descending" | null;
|
|
53
52
|
}) => void;
|
|
54
53
|
"filter-change": (args_0: Record<string, string[]>) => void;
|
|
54
|
+
"selection-change": (rows: any[]) => void;
|
|
55
55
|
"page-change": (current: number) => void;
|
|
56
56
|
"size-change": (pageSize: number) => void;
|
|
57
57
|
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -92,12 +92,12 @@ export declare const HtTable: import("hfn-components/es/utils").SFCWithInstall<{
|
|
|
92
92
|
readonly default: undefined;
|
|
93
93
|
};
|
|
94
94
|
}>> & {
|
|
95
|
-
"onSelection-change"?: ((rows: any[]) => any) | undefined;
|
|
96
95
|
"onSort-change"?: ((args_0: {
|
|
97
96
|
field: string;
|
|
98
97
|
order: "ascending" | "descending" | null;
|
|
99
98
|
}) => any) | undefined;
|
|
100
99
|
"onFilter-change"?: ((args_0: Record<string, string[]>) => any) | undefined;
|
|
100
|
+
"onSelection-change"?: ((rows: any[]) => any) | undefined;
|
|
101
101
|
"onPage-change"?: ((current: number) => any) | undefined;
|
|
102
102
|
"onSize-change"?: ((pageSize: number) => any) | undefined;
|
|
103
103
|
}, {
|
|
@@ -155,12 +155,12 @@ export declare const HtTable: import("hfn-components/es/utils").SFCWithInstall<{
|
|
|
155
155
|
readonly default: undefined;
|
|
156
156
|
};
|
|
157
157
|
}>> & {
|
|
158
|
-
"onSelection-change"?: ((rows: any[]) => any) | undefined;
|
|
159
158
|
"onSort-change"?: ((args_0: {
|
|
160
159
|
field: string;
|
|
161
160
|
order: "ascending" | "descending" | null;
|
|
162
161
|
}) => any) | undefined;
|
|
163
162
|
"onFilter-change"?: ((args_0: Record<string, string[]>) => any) | undefined;
|
|
163
|
+
"onSelection-change"?: ((rows: any[]) => any) | undefined;
|
|
164
164
|
"onPage-change"?: ((current: number) => any) | undefined;
|
|
165
165
|
"onSize-change"?: ((pageSize: number) => any) | undefined;
|
|
166
166
|
}, {}, {}, {}, {}, {
|
|
@@ -215,21 +215,21 @@ export declare const HtTable: import("hfn-components/es/utils").SFCWithInstall<{
|
|
|
215
215
|
readonly default: undefined;
|
|
216
216
|
};
|
|
217
217
|
}>> & {
|
|
218
|
-
"onSelection-change"?: ((rows: any[]) => any) | undefined;
|
|
219
218
|
"onSort-change"?: ((args_0: {
|
|
220
219
|
field: string;
|
|
221
220
|
order: "ascending" | "descending" | null;
|
|
222
221
|
}) => any) | undefined;
|
|
223
222
|
"onFilter-change"?: ((args_0: Record<string, string[]>) => any) | undefined;
|
|
223
|
+
"onSelection-change"?: ((rows: any[]) => any) | undefined;
|
|
224
224
|
"onPage-change"?: ((current: number) => any) | undefined;
|
|
225
225
|
"onSize-change"?: ((pageSize: number) => any) | undefined;
|
|
226
226
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
227
|
-
"selection-change": (rows: any[]) => void;
|
|
228
227
|
"sort-change": (args_0: {
|
|
229
228
|
field: string;
|
|
230
229
|
order: "ascending" | "descending" | null;
|
|
231
230
|
}) => void;
|
|
232
231
|
"filter-change": (args_0: Record<string, string[]>) => void;
|
|
232
|
+
"selection-change": (rows: any[]) => void;
|
|
233
233
|
"page-change": (current: number) => void;
|
|
234
234
|
"size-change": (pageSize: number) => void;
|
|
235
235
|
}, string, {
|
|
@@ -40,12 +40,12 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
|
40
40
|
readonly default: undefined;
|
|
41
41
|
};
|
|
42
42
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
|
-
"selection-change": (rows: any[]) => void;
|
|
44
43
|
"sort-change": (args_0: {
|
|
45
44
|
field: string;
|
|
46
45
|
order: "ascending" | "descending" | null;
|
|
47
46
|
}) => void;
|
|
48
47
|
"filter-change": (args_0: Record<string, string[]>) => void;
|
|
48
|
+
"selection-change": (rows: any[]) => void;
|
|
49
49
|
"page-change": (current: number) => void;
|
|
50
50
|
"size-change": (pageSize: number) => void;
|
|
51
51
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -86,12 +86,12 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
|
86
86
|
readonly default: undefined;
|
|
87
87
|
};
|
|
88
88
|
}>> & {
|
|
89
|
-
"onSelection-change"?: ((rows: any[]) => any) | undefined;
|
|
90
89
|
"onSort-change"?: ((args_0: {
|
|
91
90
|
field: string;
|
|
92
91
|
order: "ascending" | "descending" | null;
|
|
93
92
|
}) => any) | undefined;
|
|
94
93
|
"onFilter-change"?: ((args_0: Record<string, string[]>) => any) | undefined;
|
|
94
|
+
"onSelection-change"?: ((rows: any[]) => any) | undefined;
|
|
95
95
|
"onPage-change"?: ((current: number) => any) | undefined;
|
|
96
96
|
"onSize-change"?: ((pageSize: number) => any) | undefined;
|
|
97
97
|
}, {
|
|
@@ -132,7 +132,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
132
132
|
/* TEXT */
|
|
133
133
|
)) : item.dealType === "customSlot" ? renderSlot(_ctx.$slots, item.slot, {
|
|
134
134
|
key: 1,
|
|
135
|
-
text: item.dataKey ? scope.row[item.dataKey] :
|
|
135
|
+
text: item.dataKey ? scope.row[item.dataKey] : scope.row[item.key],
|
|
136
136
|
row: scope.row
|
|
137
137
|
}) : item.dealType === "other" ? (openBlock(), createBlock($setup["ColumnDeal"], {
|
|
138
138
|
key: 2,
|
|
@@ -161,7 +161,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
161
161
|
default: withCtx(() => [
|
|
162
162
|
createVNode($setup["ElIcon"], {
|
|
163
163
|
class: "ht-copy-icon",
|
|
164
|
-
onClick: withModifiers(($event) => $setup.handleCopy(item.dataKey ? scope.row[item.dataKey] :
|
|
164
|
+
onClick: withModifiers(($event) => $setup.handleCopy(item.dataKey ? scope.row[item.dataKey] : scope.row[item.key]), ["stop"]),
|
|
165
165
|
onMouseenter: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
166
166
|
}, ["stop"]))
|
|
167
167
|
}, {
|
|
@@ -30,15 +30,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
30
|
const handleFilterChange = (filters) => {
|
|
31
31
|
emit("filter-change", filters);
|
|
32
32
|
};
|
|
33
|
-
const { handleSelectionChange } = useSelection(
|
|
34
|
-
{
|
|
35
|
-
tableRef,
|
|
36
|
-
dataSource: () => props.dataSource,
|
|
37
|
-
selectedRows: () => props.selectedRows,
|
|
38
|
-
rowKey: () => props.rowKey
|
|
39
|
-
},
|
|
40
|
-
(rows) => emit("selection-change", rows)
|
|
41
|
-
);
|
|
42
33
|
const targetHead = getTargetHeadWithYears();
|
|
43
34
|
const {
|
|
44
35
|
currentPage,
|
|
@@ -50,10 +41,19 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
50
41
|
} = usePagination({
|
|
51
42
|
pagination: () => props.pagination
|
|
52
43
|
});
|
|
44
|
+
const { handleSelectionChange } = useSelection(
|
|
45
|
+
{
|
|
46
|
+
tableRef,
|
|
47
|
+
dataSource: () => props.dataSource,
|
|
48
|
+
selectedRows: () => props.selectedRows,
|
|
49
|
+
rowKey: () => props.rowKey
|
|
50
|
+
},
|
|
51
|
+
(rows) => emit("selection-change", rows)
|
|
52
|
+
);
|
|
53
53
|
const handleCurrentChange = (page) => onCurrentChange(page, emit);
|
|
54
54
|
const handleSizeChange = (size) => onSizeChange(size, emit);
|
|
55
55
|
const { handleCopy } = useCopy();
|
|
56
|
-
const __returned__ = { emit, props, tableRef, handleSortChange, handleFilterChange,
|
|
56
|
+
const __returned__ = { emit, props, tableRef, handleSortChange, handleFilterChange, targetHead, currentPage, pageSize, total, getRowIndex, onCurrentChange, onSizeChange, handleSelectionChange, handleCurrentChange, handleSizeChange, handleCopy, get ElTable() {
|
|
57
57
|
return ElTable;
|
|
58
58
|
}, get ElTableColumn() {
|
|
59
59
|
return ElTableColumn;
|
package/es/constants/index.d.ts
CHANGED
package/es/constants/index.mjs
CHANGED
|
@@ -2,3 +2,5 @@ export { INSTALLED_KEY } from './key.mjs';
|
|
|
2
2
|
export { CLOUMN_DEAL, TABLE_KEY } from './table.mjs';
|
|
3
3
|
export { BASIC_KEY, TARGET_END_KEY, TARGET_HEAD_KEY } from './target.mjs';
|
|
4
4
|
export { BASIC_CHART_CONFIG, useBasicPieConfig } from './chartConfig.mjs';
|
|
5
|
+
import * as echarts from 'echarts/core';
|
|
6
|
+
export { echarts };
|
package/package.json
CHANGED
|
@@ -1,10 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hfn-components",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "es/index.mjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
7
7
|
"types": "es/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./es/index.d.ts",
|
|
11
|
+
"import": "./es/index.mjs"
|
|
12
|
+
},
|
|
13
|
+
"./es": {
|
|
14
|
+
"types": "./es/index.d.ts",
|
|
15
|
+
"import": "./es/index.mjs"
|
|
16
|
+
},
|
|
17
|
+
"./es/*": {
|
|
18
|
+
"types": "./es/*.d.ts",
|
|
19
|
+
"import": "./es/*.mjs"
|
|
20
|
+
},
|
|
21
|
+
"./constants": {
|
|
22
|
+
"types": "./es/constants/index.d.ts",
|
|
23
|
+
"import": "./es/constants/index.mjs"
|
|
24
|
+
},
|
|
25
|
+
"./utils": {
|
|
26
|
+
"types": "./es/utils/index.d.ts",
|
|
27
|
+
"import": "./es/utils/index.mjs"
|
|
28
|
+
},
|
|
29
|
+
"./theme-chalk/index.css": "./theme-chalk/index.css",
|
|
30
|
+
"./dist/index.css": "./dist/index.css"
|
|
31
|
+
},
|
|
8
32
|
"scripts": {
|
|
9
33
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
10
34
|
},
|