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,65 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
readonly dealType: {
|
|
3
|
-
readonly type: import("vue").PropType<"colorPercentage" | "percentage" | "basicText4" | "notProcessed" | "colorText" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "other" | "customDeal" | "customSlot">;
|
|
4
|
-
readonly default: "";
|
|
5
|
-
};
|
|
6
|
-
readonly text: {
|
|
7
|
-
readonly type: import("vue").PropType<string | number | undefined>;
|
|
8
|
-
readonly default: undefined;
|
|
9
|
-
};
|
|
10
|
-
readonly dealFunction: {
|
|
11
|
-
readonly type: FunctionConstructor;
|
|
12
|
-
readonly default: () => void;
|
|
13
|
-
};
|
|
14
|
-
readonly row: {
|
|
15
|
-
readonly type: ObjectConstructor;
|
|
16
|
-
readonly default: () => void;
|
|
17
|
-
};
|
|
18
|
-
readonly slot: {
|
|
19
|
-
readonly type: StringConstructor;
|
|
20
|
-
readonly default: "";
|
|
21
|
-
};
|
|
22
|
-
}, {
|
|
23
|
-
readonly CLOUMN_DEAL: {
|
|
24
|
-
basicText4: (val: string | number | undefined) => string;
|
|
25
|
-
colorText: (val: string | number | undefined) => string;
|
|
26
|
-
colorPercentage: (val: string | number | undefined) => string;
|
|
27
|
-
percentage: (val: string | number | undefined) => string;
|
|
28
|
-
percentage4: (val: string | number | undefined) => string;
|
|
29
|
-
absPercentage: (val: string | number | undefined) => string;
|
|
30
|
-
thoundsandText2: (val: string | number | undefined) => string;
|
|
31
|
-
thoundsandText4: (val: string | number | undefined) => string;
|
|
32
|
-
notProcessed: null;
|
|
33
|
-
other: null;
|
|
34
|
-
customDeal: null;
|
|
35
|
-
customSlot: null;
|
|
36
|
-
};
|
|
37
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
|
-
readonly dealType: {
|
|
39
|
-
readonly type: import("vue").PropType<"colorPercentage" | "percentage" | "basicText4" | "notProcessed" | "colorText" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "other" | "customDeal" | "customSlot">;
|
|
40
|
-
readonly default: "";
|
|
41
|
-
};
|
|
42
|
-
readonly text: {
|
|
43
|
-
readonly type: import("vue").PropType<string | number | undefined>;
|
|
44
|
-
readonly default: undefined;
|
|
45
|
-
};
|
|
46
|
-
readonly dealFunction: {
|
|
47
|
-
readonly type: FunctionConstructor;
|
|
48
|
-
readonly default: () => void;
|
|
49
|
-
};
|
|
50
|
-
readonly row: {
|
|
51
|
-
readonly type: ObjectConstructor;
|
|
52
|
-
readonly default: () => void;
|
|
53
|
-
};
|
|
54
|
-
readonly slot: {
|
|
55
|
-
readonly type: StringConstructor;
|
|
56
|
-
readonly default: "";
|
|
57
|
-
};
|
|
58
|
-
}>>, {
|
|
59
|
-
readonly text: string | number | undefined;
|
|
60
|
-
readonly dealType: "colorPercentage" | "percentage" | "basicText4" | "notProcessed" | "colorText" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "other" | "customDeal" | "customSlot";
|
|
61
|
-
readonly dealFunction: Function;
|
|
62
|
-
readonly row: Record<string, any>;
|
|
63
|
-
readonly slot: string;
|
|
64
|
-
}, {}>;
|
|
65
|
-
export default _default;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import _sfc_main from './columnDeal.vue2.mjs';
|
|
2
|
-
import { openBlock, createElementBlock, toDisplayString, createElementVNode, normalizeStyle, 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: 1 };
|
|
7
|
-
const _hoisted_3 = ["innerHTML"];
|
|
8
|
-
const _hoisted_4 = { key: 3 };
|
|
9
|
-
const _hoisted_5 = { key: 4 };
|
|
10
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11
|
-
return _ctx.dealType === "notProcessed" || _ctx.dealType === "other" ? (openBlock(), createElementBlock(
|
|
12
|
-
"div",
|
|
13
|
-
_hoisted_1,
|
|
14
|
-
toDisplayString(_ctx.text),
|
|
15
|
-
1
|
|
16
|
-
/* TEXT */
|
|
17
|
-
)) : _ctx.dealType === "colorText" || _ctx.dealType === "colorPercentage" ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
18
|
-
createElementVNode(
|
|
19
|
-
"span",
|
|
20
|
-
{
|
|
21
|
-
style: normalizeStyle({ color: _ctx.text > 0 ? "red" : _ctx.text < 0 ? "green" : "" })
|
|
22
|
-
},
|
|
23
|
-
toDisplayString(_ctx.text !== void 0 ? $setup.CLOUMN_DEAL[_ctx.dealType](_ctx.text) : "-"),
|
|
24
|
-
5
|
|
25
|
-
/* TEXT, STYLE */
|
|
26
|
-
)
|
|
27
|
-
])) : _ctx.dealType === "customDeal" ? (openBlock(), createElementBlock("div", {
|
|
28
|
-
key: 2,
|
|
29
|
-
innerHTML: _ctx.dealFunction(_ctx.row, _ctx.text)
|
|
30
|
-
}, null, 8, _hoisted_3)) : _ctx.dealType === "customSlot" ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
31
|
-
renderSlot(_ctx.$slots, _ctx.slot)
|
|
32
|
-
])) : (openBlock(), createElementBlock(
|
|
33
|
-
"div",
|
|
34
|
-
_hoisted_5,
|
|
35
|
-
toDisplayString(_ctx.text !== void 0 ? $setup.CLOUMN_DEAL[_ctx.dealType](_ctx.text) : "-"),
|
|
36
|
-
1
|
|
37
|
-
/* TEXT */
|
|
38
|
-
));
|
|
39
|
-
}
|
|
40
|
-
var ColumnDeal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/zhanghang/Documents/project/component-library/packages/components/elTable/src/columnDeal.vue"]]);
|
|
41
|
-
|
|
42
|
-
export { ColumnDeal as default };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { defineComponent } from 'vue';
|
|
2
|
-
import { CLOUMN_DEAL } from '../../../constants/table.mjs';
|
|
3
|
-
import '../../../constants/chartConfig.mjs';
|
|
4
|
-
import { columnDealProps } from './elTable.mjs';
|
|
5
|
-
|
|
6
|
-
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
-
__name: "columnDeal",
|
|
8
|
-
props: columnDealProps,
|
|
9
|
-
setup(__props, { expose: __expose }) {
|
|
10
|
-
__expose();
|
|
11
|
-
const __returned__ = { get CLOUMN_DEAL() {
|
|
12
|
-
return CLOUMN_DEAL;
|
|
13
|
-
} };
|
|
14
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
15
|
-
return __returned__;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
export { _sfc_main as default };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import type { clounmKyeType, dealKeyType } from 'hfn-components/es/constants';
|
|
3
|
-
export interface ElTableColumns {
|
|
4
|
-
key: clounmKyeType;
|
|
5
|
-
dealType: dealKeyType;
|
|
6
|
-
dealFunction?: Function;
|
|
7
|
-
width: string | number;
|
|
8
|
-
customizeLabel?: string;
|
|
9
|
-
slot?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const elTableProps: {
|
|
12
|
-
readonly dataSource: {
|
|
13
|
-
readonly type: ArrayConstructor;
|
|
14
|
-
readonly default: () => never[];
|
|
15
|
-
};
|
|
16
|
-
readonly tableColumn: {
|
|
17
|
-
readonly type: PropType<ElTableColumns[]>;
|
|
18
|
-
readonly default: () => never[];
|
|
19
|
-
};
|
|
20
|
-
readonly loading: {
|
|
21
|
-
readonly type: BooleanConstructor;
|
|
22
|
-
readonly default: false;
|
|
23
|
-
};
|
|
24
|
-
readonly headerColor: {
|
|
25
|
-
readonly type: StringConstructor;
|
|
26
|
-
readonly default: "#f0f0f0";
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
export declare const columnDealProps: {
|
|
30
|
-
readonly dealType: {
|
|
31
|
-
readonly type: PropType<"colorPercentage" | "percentage" | "basicText4" | "notProcessed" | "colorText" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "other" | "customDeal" | "customSlot">;
|
|
32
|
-
readonly default: "";
|
|
33
|
-
};
|
|
34
|
-
readonly text: {
|
|
35
|
-
readonly type: PropType<string | number | undefined>;
|
|
36
|
-
readonly default: undefined;
|
|
37
|
-
};
|
|
38
|
-
readonly dealFunction: {
|
|
39
|
-
readonly type: FunctionConstructor;
|
|
40
|
-
readonly default: () => void;
|
|
41
|
-
};
|
|
42
|
-
readonly row: {
|
|
43
|
-
readonly type: ObjectConstructor;
|
|
44
|
-
readonly default: () => void;
|
|
45
|
-
};
|
|
46
|
-
readonly slot: {
|
|
47
|
-
readonly type: StringConstructor;
|
|
48
|
-
readonly default: "";
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
export type ElTableProps = ExtractPropTypes<typeof elTableProps>;
|
|
52
|
-
export type ColumnDealProps = ExtractPropTypes<typeof columnDealProps>;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
const elTableProps = {
|
|
2
|
-
dataSource: {
|
|
3
|
-
type: Array,
|
|
4
|
-
default: () => []
|
|
5
|
-
},
|
|
6
|
-
tableColumn: {
|
|
7
|
-
type: Array,
|
|
8
|
-
default: () => []
|
|
9
|
-
},
|
|
10
|
-
loading: {
|
|
11
|
-
type: Boolean,
|
|
12
|
-
default: false
|
|
13
|
-
},
|
|
14
|
-
headerColor: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: "#f0f0f0"
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
const columnDealProps = {
|
|
20
|
-
dealType: {
|
|
21
|
-
type: String,
|
|
22
|
-
default: ""
|
|
23
|
-
},
|
|
24
|
-
text: {
|
|
25
|
-
type: [String, Number],
|
|
26
|
-
default: void 0
|
|
27
|
-
},
|
|
28
|
-
dealFunction: {
|
|
29
|
-
type: Function,
|
|
30
|
-
default: () => {
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
row: {
|
|
34
|
-
type: Object,
|
|
35
|
-
default: () => {
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
slot: {
|
|
39
|
-
type: String,
|
|
40
|
-
default: ""
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export { columnDealProps, elTableProps };
|