hfn-components 0.6.0 → 0.6.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.
- package/component.ts +15 -0
- package/defaults.ts +5 -0
- package/index.ts +6 -0
- package/make-installer.ts +17 -0
- package/package.json +1 -1
- package/plugin.ts +1 -0
- package/dist/index.css +0 -1
- package/es/_virtual/_plugin-vue_export-helper.mjs +0 -9
- package/es/component.d.ts +0 -3
- package/es/component.mjs +0 -14
- package/es/components/chart/index.d.ts +0 -201
- package/es/components/chart/index.mjs +0 -7
- package/es/components/chart/src/HtChart.d.ts +0 -77
- package/es/components/chart/src/HtChart.mjs +0 -93
- package/es/components/chart/src/HtChart.vue.d.ts +0 -207
- package/es/components/chart/src/HtChart.vue.mjs +0 -90
- package/es/components/chart/src/HtChart.vue2.mjs +0 -109
- package/es/components/chart/src/chartConfig.d.ts +0 -7
- package/es/components/chart/src/chartConfig.mjs +0 -88
- package/es/components/chart/style/index.d.ts +0 -1
- package/es/components/chart/style/index.mjs +0 -1
- package/es/components/elTable/index.d.ts +0 -810
- package/es/components/elTable/index.mjs +0 -7
- package/es/components/elTable/src/columnDeal.vue.d.ts +0 -65
- package/es/components/elTable/src/columnDeal.vue.mjs +0 -42
- package/es/components/elTable/src/columnDeal.vue2.mjs +0 -19
- package/es/components/elTable/src/elTable.d.ts +0 -52
- package/es/components/elTable/src/elTable.mjs +0 -44
- package/es/components/elTable/src/elTable.vue.d.ts +0 -809
- package/es/components/elTable/src/elTable.vue.mjs +0 -108
- package/es/components/elTable/src/elTable.vue2.mjs +0 -46
- package/es/components/htTarget/index.d.ts +0 -2028
- package/es/components/htTarget/index.mjs +0 -6
- package/es/components/htTarget/src/htTarget.d.ts +0 -25
- package/es/components/htTarget/src/htTarget.mjs +0 -20
- package/es/components/htTarget/src/htTarget.vue.d.ts +0 -2027
- package/es/components/htTarget/src/htTarget.vue.mjs +0 -240
- package/es/components/htTarget/src/htTarget.vue2.mjs +0 -158
- package/es/components/htTarget/style/index.d.ts +0 -1
- package/es/components/htTarget/style/index.mjs +0 -1
- package/es/components/index.d.ts +0 -4
- package/es/components/index.mjs +0 -7
- package/es/components/pieChart/index.d.ts +0 -104
- package/es/components/pieChart/index.mjs +0 -7
- package/es/components/pieChart/src/HtPieChart.d.ts +0 -36
- package/es/components/pieChart/src/HtPieChart.mjs +0 -42
- package/es/components/pieChart/src/HtPieChart.vue.d.ts +0 -109
- package/es/components/pieChart/src/HtPieChart.vue.mjs +0 -61
- package/es/components/pieChart/src/HtPieChart.vue2.mjs +0 -103
- package/es/components/pieChart/style/index.d.ts +0 -1
- package/es/components/pieChart/style/index.mjs +0 -1
- 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/constants/chartConfig.d.ts +0 -8
- package/es/constants/chartConfig.mjs +0 -148
- package/es/constants/index.d.ts +0 -4
- package/es/constants/index.mjs +0 -4
- package/es/constants/key.d.ts +0 -1
- package/es/constants/key.mjs +0 -3
- package/es/constants/table.d.ts +0 -125
- package/es/constants/table.mjs +0 -156
- package/es/constants/target.d.ts +0 -15
- package/es/constants/target.mjs +0 -59
- package/es/css/index.css +0 -59
- package/es/defaults.d.ts +0 -4
- package/es/defaults.mjs +0 -7
- package/es/index.d.ts +0 -5
- package/es/index.mjs +0 -13
- package/es/make-installer.d.ts +0 -4
- package/es/make-installer.mjs +0 -15
- package/es/plugin.d.ts +0 -2
- package/es/plugin.mjs +0 -3
- package/es/utils/chart.d.ts +0 -8
- package/es/utils/chart.mjs +0 -197
- package/es/utils/common.d.ts +0 -3
- package/es/utils/common.mjs +0 -15
- package/es/utils/index.d.ts +0 -4
- package/es/utils/index.mjs +0 -4
- package/es/utils/table.d.ts +0 -2
- package/es/utils/table.mjs +0 -31
- package/es/utils/tool.d.ts +0 -2
- package/es/utils/tool.mjs +0 -42
- package/global.d.ts +0 -14
- package/theme-chalk/ht-chart.css +0 -1
- package/theme-chalk/ht-target.css +0 -1
- package/theme-chalk/index.css +0 -1
- package/theme-chalk/src/chart.scss +0 -58
- package/theme-chalk/src/index.scss +0 -2
- package/theme-chalk/src/target.scss +0 -39
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import _sfc_main from './elTable.vue2.mjs';
|
|
2
|
-
import { withDirectives, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString, renderSlot } from 'vue';
|
|
3
|
-
import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
4
|
-
|
|
5
|
-
const _hoisted_1 = { key: 0 };
|
|
6
|
-
const _hoisted_2 = { key: 0 };
|
|
7
|
-
const _hoisted_3 = { key: 1 };
|
|
8
|
-
const _hoisted_4 = { key: 1 };
|
|
9
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10
|
-
return withDirectives((openBlock(), createBlock($setup["ElTable"], {
|
|
11
|
-
data: $setup.props.dataSource,
|
|
12
|
-
style: { "width": "100%" },
|
|
13
|
-
height: "100%",
|
|
14
|
-
"header-cell-style": {
|
|
15
|
-
background: $setup.props.headerColor,
|
|
16
|
-
color: "#000",
|
|
17
|
-
"font-weight": 500,
|
|
18
|
-
"font-size": "12px"
|
|
19
|
-
}
|
|
20
|
-
}, {
|
|
21
|
-
default: withCtx(() => [
|
|
22
|
-
(openBlock(true), createElementBlock(
|
|
23
|
-
Fragment,
|
|
24
|
-
null,
|
|
25
|
-
renderList($setup.props.tableColumn, (item) => {
|
|
26
|
-
return openBlock(), createBlock($setup["ElTableColumn"], {
|
|
27
|
-
resizable: "",
|
|
28
|
-
key: item.key,
|
|
29
|
-
prop: item.key,
|
|
30
|
-
width: item.width
|
|
31
|
-
}, {
|
|
32
|
-
header: withCtx(() => [
|
|
33
|
-
item.customizeLabel ? (openBlock(), createElementBlock("span", _hoisted_1, [
|
|
34
|
-
item.customizeLabel === "target" ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
35
|
-
createElementVNode(
|
|
36
|
-
"div",
|
|
37
|
-
null,
|
|
38
|
-
toDisplayString($setup.targetHead.filter((items) => items.key === item.key.split("_")[0])[0].name),
|
|
39
|
-
1
|
|
40
|
-
/* TEXT */
|
|
41
|
-
),
|
|
42
|
-
createElementVNode(
|
|
43
|
-
"div",
|
|
44
|
-
null,
|
|
45
|
-
toDisplayString($setup.TARGET_END_KEY.filter((items) => items.key === item.key.split("_")[1])[0].name),
|
|
46
|
-
1
|
|
47
|
-
/* TEXT */
|
|
48
|
-
)
|
|
49
|
-
])) : (openBlock(), createElementBlock(
|
|
50
|
-
"div",
|
|
51
|
-
_hoisted_3,
|
|
52
|
-
toDisplayString(item.customizeLabel),
|
|
53
|
-
1
|
|
54
|
-
/* TEXT */
|
|
55
|
-
))
|
|
56
|
-
])) : (openBlock(), createElementBlock("span", _hoisted_4, [
|
|
57
|
-
createElementVNode(
|
|
58
|
-
"div",
|
|
59
|
-
null,
|
|
60
|
-
toDisplayString($setup.TABLE_KEY[item.key]),
|
|
61
|
-
1
|
|
62
|
-
/* TEXT */
|
|
63
|
-
)
|
|
64
|
-
]))
|
|
65
|
-
]),
|
|
66
|
-
default: withCtx((scope) => [
|
|
67
|
-
item.dealType === "other" ? (openBlock(), createBlock($setup["ColumnDeal"], {
|
|
68
|
-
key: 0,
|
|
69
|
-
dealType: scope.row.dealType,
|
|
70
|
-
text: $setup.convertKey(scope.row, item.key)
|
|
71
|
-
}, null, 8, ["dealType", "text"])) : item.dealType === "customSlot" ? (openBlock(), createBlock($setup["ColumnDeal"], {
|
|
72
|
-
key: 1,
|
|
73
|
-
dealType: item.dealType,
|
|
74
|
-
slot: item.slot
|
|
75
|
-
}, {
|
|
76
|
-
[item.slot]: withCtx(() => [
|
|
77
|
-
renderSlot(_ctx.$slots, item.slot, {
|
|
78
|
-
text: $setup.convertKey(scope.row, item.key),
|
|
79
|
-
row: scope.row
|
|
80
|
-
})
|
|
81
|
-
]),
|
|
82
|
-
_: 2
|
|
83
|
-
/* DYNAMIC */
|
|
84
|
-
}, 1032, ["dealType", "slot"])) : (openBlock(), createBlock($setup["ColumnDeal"], {
|
|
85
|
-
key: 2,
|
|
86
|
-
dealType: item.dealType,
|
|
87
|
-
text: $setup.convertKey(scope.row, item.key),
|
|
88
|
-
row: scope.row,
|
|
89
|
-
"deal-function": item.dealFunction
|
|
90
|
-
}, null, 8, ["dealType", "text", "row", "deal-function"]))
|
|
91
|
-
]),
|
|
92
|
-
_: 2
|
|
93
|
-
/* DYNAMIC */
|
|
94
|
-
}, 1032, ["prop", "width"]);
|
|
95
|
-
}),
|
|
96
|
-
128
|
|
97
|
-
/* KEYED_FRAGMENT */
|
|
98
|
-
))
|
|
99
|
-
]),
|
|
100
|
-
_: 3
|
|
101
|
-
/* FORWARDED */
|
|
102
|
-
}, 8, ["data", "header-cell-style"])), [
|
|
103
|
-
[$setup["vLoading"], $setup.props.loading]
|
|
104
|
-
]);
|
|
105
|
-
}
|
|
106
|
-
var elTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/zhanghang/Documents/project/component-library/packages/components/elTable/src/elTable.vue"]]);
|
|
107
|
-
|
|
108
|
-
export { elTable as default };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted } from 'vue';
|
|
2
|
-
import { ElTable, ElTableColumn, vLoading } from 'element-plus';
|
|
3
|
-
import { TABLE_KEY, convertKey } from '../../../constants/table.mjs';
|
|
4
|
-
import { TARGET_HEAD_KEY, TARGET_END_KEY } from '../../../constants/target.mjs';
|
|
5
|
-
import '../../../constants/chartConfig.mjs';
|
|
6
|
-
import cloneDeep from 'lodash.clonedeep';
|
|
7
|
-
import ColumnDeal from './columnDeal.vue.mjs';
|
|
8
|
-
import { elTableProps } from './elTable.mjs';
|
|
9
|
-
|
|
10
|
-
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
-
__name: "elTable",
|
|
12
|
-
props: elTableProps,
|
|
13
|
-
setup(__props, { expose: __expose }) {
|
|
14
|
-
__expose();
|
|
15
|
-
const targetHead = ref(cloneDeep(TARGET_HEAD_KEY));
|
|
16
|
-
onMounted(() => {
|
|
17
|
-
let startYear = 2018;
|
|
18
|
-
const nowYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
19
|
-
while (startYear <= nowYear) {
|
|
20
|
-
targetHead.value.push({
|
|
21
|
-
name: `${startYear}`,
|
|
22
|
-
key: `${startYear}`
|
|
23
|
-
});
|
|
24
|
-
startYear++;
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
const props = __props;
|
|
28
|
-
const __returned__ = { targetHead, props, get ElTable() {
|
|
29
|
-
return ElTable;
|
|
30
|
-
}, get ElTableColumn() {
|
|
31
|
-
return ElTableColumn;
|
|
32
|
-
}, get vLoading() {
|
|
33
|
-
return vLoading;
|
|
34
|
-
}, get TABLE_KEY() {
|
|
35
|
-
return TABLE_KEY;
|
|
36
|
-
}, get convertKey() {
|
|
37
|
-
return convertKey;
|
|
38
|
-
}, get TARGET_END_KEY() {
|
|
39
|
-
return TARGET_END_KEY;
|
|
40
|
-
}, ColumnDeal };
|
|
41
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
42
|
-
return __returned__;
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
export { _sfc_main as default };
|