hfn-components 0.6.5 → 0.6.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.
- package/dist/index.css +1 -1
- package/es/component.mjs +3 -3
- package/es/components/chart/index.d.ts +1 -35
- package/es/components/chart/index.mjs +1 -0
- package/es/components/chart/src/HtChart.vue.d.ts +1 -36
- package/es/components/chart/src/HtChart.vue.mjs +1 -1
- package/es/components/chart/src/HtChart.vue2.mjs +3 -0
- package/es/components/htTable/index.d.ts +252 -0
- package/es/components/htTable/index.mjs +8 -0
- package/es/components/htTable/src/columnDeal.vue.d.ts +41 -0
- package/es/components/{elTable → htTable}/src/columnDeal.vue.mjs +18 -14
- package/es/components/{elTable → htTable}/src/columnDeal.vue2.mjs +1 -1
- package/es/components/htTable/src/composables/index.d.ts +3 -0
- package/es/components/htTable/src/composables/index.mjs +3 -0
- package/es/components/htTable/src/composables/use-copy.d.ts +3 -0
- package/es/components/htTable/src/composables/use-copy.mjs +24 -0
- package/es/components/htTable/src/composables/use-pagination.d.ts +13 -0
- package/es/components/htTable/src/composables/use-pagination.mjs +33 -0
- package/es/components/htTable/src/composables/use-selection.d.ts +12 -0
- package/es/components/htTable/src/composables/use-selection.mjs +58 -0
- package/es/components/{elTable/src/elTable.d.ts → htTable/src/htTable.d.ts} +38 -7
- package/es/components/{elTable/src/elTable.mjs → htTable/src/htTable.mjs} +22 -4
- package/es/components/htTable/src/htTable.vue.d.ts +115 -0
- package/es/components/htTable/src/htTable.vue.mjs +216 -0
- package/es/components/htTable/src/htTable.vue2.mjs +84 -0
- package/es/components/htTarget/index.d.ts +7 -1987
- package/es/components/htTarget/index.mjs +1 -0
- package/es/components/htTarget/src/htTarget.vue.d.ts +5 -1985
- package/es/components/htTarget/src/htTarget.vue.mjs +54 -59
- package/es/components/htTarget/src/htTarget.vue2.mjs +26 -24
- package/es/components/index.d.ts +1 -1
- package/es/components/index.mjs +2 -2
- package/es/components/pieChart/index.d.ts +1 -27
- package/es/components/pieChart/index.mjs +1 -0
- package/es/components/pieChart/src/HtPieChart.vue.d.ts +1 -27
- package/es/components/pieChart/src/HtPieChart.vue.mjs +1 -1
- package/es/components/pieChart/src/HtPieChart.vue2.mjs +3 -0
- package/es/constants/icons.d.ts +1 -0
- package/es/constants/icons.mjs +3 -0
- package/es/constants/index.mjs +1 -1
- package/es/constants/table.d.ts +102 -83
- package/es/constants/table.mjs +73 -45
- package/es/constants/target.d.ts +166 -15
- package/es/hfn-components/component.d.ts +3 -0
- package/es/hfn-components/defaults.d.ts +4 -0
- package/es/hfn-components/index.d.ts +5 -0
- package/es/hfn-components/make-installer.d.ts +4 -0
- package/es/hfn-components/plugin.d.ts +2 -0
- package/es/icons/index.d.ts +1 -0
- package/es/icons/index.mjs +1 -0
- package/es/icons/svg/empty-simple.svg.mjs +3 -0
- package/es/index.mjs +2 -2
- package/es/utils/index.mjs +1 -1
- package/es/utils/table.d.ts +11 -2
- package/es/utils/table.mjs +36 -26
- package/es/utils/tool.d.ts +1 -1
- package/es/utils/tool.mjs +8 -36
- package/package.json +6 -8
- package/theme-chalk/ht-table.css +1 -1
- package/theme-chalk/ht-target.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/table.scss +61 -4
- package/theme-chalk/src/target.scss +23 -3
- package/es/components/chart/src/chartConfig.d.ts +0 -7
- package/es/components/chart/src/chartConfig.mjs +0 -88
- package/es/components/elTable/index.d.ts +0 -828
- package/es/components/elTable/index.mjs +0 -7
- package/es/components/elTable/src/columnDeal.vue.d.ts +0 -65
- package/es/components/elTable/src/elTable.vue.d.ts +0 -827
- package/es/components/elTable/src/elTable.vue.mjs +0 -111
- package/es/components/elTable/src/elTable.vue2.mjs +0 -51
- package/es/components/table/HtTable.d.ts +0 -142
- package/es/components/table/HtTable.mjs +0 -136
- package/es/components/table/HtTable.vue.d.ts +0 -1847
- package/es/components/table/HtTable.vue.mjs +0 -449
- package/es/components/table/HtTable.vue2.mjs +0 -124
- package/es/components/table/index.d.ts +0 -1845
- package/es/components/table/index.mjs +0 -7
- package/es/css/index.css +0 -59
|
@@ -1,5 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
.ht-table-wrapper {
|
|
2
|
+
height: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
}
|
|
6
|
+
.ht-table-wrapper .el-table {
|
|
7
|
+
flex: 1;
|
|
8
|
+
min-height: 0;
|
|
9
|
+
}
|
|
10
|
+
.ht-table-wrapper .el-table__empty-text {
|
|
11
|
+
line-height: normal;
|
|
12
|
+
}
|
|
13
|
+
.ht-table-cell-copy {
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: 4px;
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
.ht-table-cell-text {
|
|
20
|
+
flex: none;
|
|
21
|
+
max-width: calc(100% - 22px);
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
text-overflow: ellipsis;
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
}
|
|
26
|
+
.ht-copy-icon {
|
|
27
|
+
flex-shrink: 0;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
opacity: 0;
|
|
30
|
+
transition: opacity 0.2s;
|
|
31
|
+
color: #909399;
|
|
32
|
+
font-size: 14px;
|
|
33
|
+
&:hover {
|
|
34
|
+
color: #d70c19;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.el-table__row:hover .ht-copy-icon {
|
|
38
|
+
opacity: 1;
|
|
39
|
+
}
|
|
40
|
+
.ht-table-pagination {
|
|
41
|
+
display: flex;
|
|
42
|
+
justify-content: flex-end;
|
|
43
|
+
align-items: center;
|
|
44
|
+
padding: 12px 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// 替换筛选图标为 Element Plus 的 Filter 漏斗图标
|
|
48
|
+
.ht-table-wrapper .el-table__column-filter-trigger .el-icon {
|
|
49
|
+
svg {
|
|
50
|
+
display: none;
|
|
51
|
+
}
|
|
52
|
+
&::after {
|
|
53
|
+
content: '';
|
|
54
|
+
display: inline-block;
|
|
55
|
+
width: 14px;
|
|
56
|
+
height: 14px;
|
|
57
|
+
// 使用 data URI 内联 SVG,颜色设为 #909399
|
|
58
|
+
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath fill='%23909399' d='M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z'/%3E%3C/svg%3E")
|
|
59
|
+
no-repeat center;
|
|
60
|
+
background-size: contain;
|
|
61
|
+
}
|
|
5
62
|
}
|
|
@@ -27,13 +27,33 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.target-head {
|
|
30
|
-
display: grid;
|
|
31
|
-
grid: auto / repeat(5, 1fr)
|
|
30
|
+
display: grid;
|
|
31
|
+
grid: auto / repeat(5, 1fr);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.flow-col {
|
|
35
|
-
height: 520px;
|
|
35
|
+
height: 520px;
|
|
36
36
|
overflow-y: auto;
|
|
37
37
|
border-left: 1px solid #e8e8e8;
|
|
38
38
|
padding-left: 10px;
|
|
39
39
|
}
|
|
40
|
+
|
|
41
|
+
.check_item {
|
|
42
|
+
cursor: grab;
|
|
43
|
+
align-items: center;
|
|
44
|
+
}
|
|
45
|
+
.check_item:active {
|
|
46
|
+
cursor: grabbing;
|
|
47
|
+
}
|
|
48
|
+
/* 拖拽时的占位样式 */
|
|
49
|
+
.ghost {
|
|
50
|
+
opacity: 0.5;
|
|
51
|
+
background: #f0f0f0;
|
|
52
|
+
}
|
|
53
|
+
/* 关闭图标 */
|
|
54
|
+
.close-icon {
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
}
|
|
57
|
+
.close-icon:hover {
|
|
58
|
+
color: #909399 !important;
|
|
59
|
+
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as echarts from 'echarts/core';
|
|
2
|
-
import type { BarSeriesOption, LineSeriesOption } from 'echarts/charts';
|
|
3
|
-
import type { TitleComponentOption, TooltipComponentOption, GridComponentOption, DatasetComponentOption } from 'echarts/components';
|
|
4
|
-
import type { ComposeOption } from 'echarts/core';
|
|
5
|
-
export type ECOption = ComposeOption<BarSeriesOption | LineSeriesOption | TitleComponentOption | TooltipComponentOption | GridComponentOption | DatasetComponentOption>;
|
|
6
|
-
export default echarts;
|
|
7
|
-
export declare const BASIC_CHART_CONFIG: any;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import * as echarts from 'echarts/core';
|
|
2
|
-
export { echarts as default };
|
|
3
|
-
import { BarChart, LineChart } from 'echarts/charts';
|
|
4
|
-
import { TitleComponent, TooltipComponent, GridComponent, LegendComponent, DatasetComponent, TransformComponent } from 'echarts/components';
|
|
5
|
-
import { LabelLayout, UniversalTransition } from 'echarts/features';
|
|
6
|
-
import { CanvasRenderer } from 'echarts/renderers';
|
|
7
|
-
|
|
8
|
-
echarts.use([
|
|
9
|
-
TitleComponent,
|
|
10
|
-
TooltipComponent,
|
|
11
|
-
GridComponent,
|
|
12
|
-
LegendComponent,
|
|
13
|
-
DatasetComponent,
|
|
14
|
-
TransformComponent,
|
|
15
|
-
BarChart,
|
|
16
|
-
LineChart,
|
|
17
|
-
LabelLayout,
|
|
18
|
-
UniversalTransition,
|
|
19
|
-
CanvasRenderer
|
|
20
|
-
]);
|
|
21
|
-
const BASIC_CHART_CONFIG = {
|
|
22
|
-
title: {
|
|
23
|
-
text: "",
|
|
24
|
-
// top: '5%',
|
|
25
|
-
left: "0%",
|
|
26
|
-
textStyle: {
|
|
27
|
-
fontSize: 12,
|
|
28
|
-
color: "rgba(0,0,0,0.7)",
|
|
29
|
-
fontWeight: "normal"
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
// 图例
|
|
33
|
-
legend: {
|
|
34
|
-
left: "0%",
|
|
35
|
-
show: false
|
|
36
|
-
},
|
|
37
|
-
xAxis: {},
|
|
38
|
-
yAxis: {},
|
|
39
|
-
grid: {
|
|
40
|
-
// top: '12%',
|
|
41
|
-
top: "8%",
|
|
42
|
-
left: "3%",
|
|
43
|
-
right: "3%",
|
|
44
|
-
bottom: "1%",
|
|
45
|
-
containLabel: true
|
|
46
|
-
},
|
|
47
|
-
// 线条颜色
|
|
48
|
-
color: [
|
|
49
|
-
"#C13431",
|
|
50
|
-
"#1E85D2",
|
|
51
|
-
"#FD984F",
|
|
52
|
-
"#63B9BB",
|
|
53
|
-
"#BBB162",
|
|
54
|
-
"#AE76C1",
|
|
55
|
-
"#5E92F6",
|
|
56
|
-
"#F5BC32",
|
|
57
|
-
"#DA8484",
|
|
58
|
-
"#41982E",
|
|
59
|
-
"#437095",
|
|
60
|
-
"#8060A7",
|
|
61
|
-
"#7D0A0D",
|
|
62
|
-
"#572AFF",
|
|
63
|
-
"#2BE8F8",
|
|
64
|
-
"#FF1493",
|
|
65
|
-
"#E066FF",
|
|
66
|
-
"#27408B",
|
|
67
|
-
"#5191A3",
|
|
68
|
-
"#D5634C",
|
|
69
|
-
"#92d6fd",
|
|
70
|
-
"#b92e2d",
|
|
71
|
-
"#187bc9",
|
|
72
|
-
"#90bae0",
|
|
73
|
-
"#187bc9",
|
|
74
|
-
"#0070C9",
|
|
75
|
-
"#5470c6",
|
|
76
|
-
"#91cc75",
|
|
77
|
-
"#fac858",
|
|
78
|
-
"#ee6666",
|
|
79
|
-
"#73c0de",
|
|
80
|
-
"#3ba272",
|
|
81
|
-
"#fc8452",
|
|
82
|
-
"#9a60b4",
|
|
83
|
-
"#ea7ccc"
|
|
84
|
-
],
|
|
85
|
-
series: []
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
export { BASIC_CHART_CONFIG };
|