hfn-components 0.0.4 → 0.0.6
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/component.d.ts +3 -0
- package/es/component.mjs +9 -0
- package/{dist/es/packages → es}/components/button/HtButton.vue.d.ts +0 -7
- package/es/components/button/HtButton.vue.mjs +16 -0
- package/{dist/es/packages → es}/components/button/HtButton.vue2.mjs +6 -11
- package/{dist/es/packages → es}/components/button/index.d.ts +3 -9
- package/{dist/es/packages → es}/components/button/index.mjs +2 -2
- package/es/components/button/instance.d.ts +2 -0
- package/es/components/button/instance.mjs +1 -0
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +2 -0
- package/es/components/table/HtTable.d.ts +142 -0
- package/es/components/table/HtTable.mjs +136 -0
- package/es/components/table/HtTable.vue.d.ts +1847 -0
- package/es/components/table/HtTable.vue.mjs +443 -0
- package/es/components/table/HtTable.vue2.mjs +128 -0
- package/es/components/table/index.d.ts +1845 -0
- package/{dist/es/packages → es}/components/table/index.mjs +2 -1
- package/es/constants/index.d.ts +1 -0
- package/es/constants/index.mjs +1 -0
- package/es/constants/key.d.ts +1 -0
- package/es/constants/key.mjs +3 -0
- package/es/defaults.d.ts +4 -0
- package/es/defaults.mjs +7 -0
- package/es/index.d.ts +5 -0
- package/es/index.mjs +8 -0
- package/es/make-installer.d.ts +4 -0
- package/es/make-installer.mjs +14 -0
- package/es/plugin.d.ts +2 -0
- package/es/plugin.mjs +3 -0
- package/{dist/es/packages → es}/utils/common.d.ts +1 -1
- package/es/utils/index.d.ts +3 -0
- package/es/utils/index.mjs +3 -0
- package/es/utils/table.d.ts +2 -0
- package/es/utils/table.mjs +31 -0
- package/es/utils/tool.d.ts +2 -0
- package/es/utils/tool.mjs +42 -0
- package/global.d.ts +15 -0
- package/package.json +5 -10
- package/README.en.md +0 -36
- package/README.md +0 -4
- package/dist/es/node_modules/.pnpm/ant-design-vue@3.2.20_vue@3.4.21_typescript@5.3.3_/node_modules/ant-design-vue/dist/antd.css.mjs +0 -6
- package/dist/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +0 -28
- package/dist/es/packages/components/button/HtButton.vue.mjs +0 -6
- package/dist/es/packages/components/index.d.ts +0 -6
- package/dist/es/packages/components/index.mjs +0 -12
- package/dist/es/packages/components/table/HtTable.vue.d.ts +0 -280
- package/dist/es/packages/components/table/HtTable.vue.mjs +0 -6
- package/dist/es/packages/components/table/HtTable.vue2.mjs +0 -110
- package/dist/es/packages/components/table/index.d.ts +0 -278
- package/dist/es/packages/utils/index.d.ts +0 -1
- /package/{dist/es → es}/_virtual/_plugin-vue_export-helper.mjs +0 -0
- /package/{dist/es/packages → es}/utils/common.mjs +0 -0
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
function styleInject(css, ref) {
|
|
2
|
-
if ( ref === void 0 ) ref = {};
|
|
3
|
-
var insertAt = ref.insertAt;
|
|
4
|
-
|
|
5
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
6
|
-
|
|
7
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
8
|
-
var style = document.createElement('style');
|
|
9
|
-
style.type = 'text/css';
|
|
10
|
-
|
|
11
|
-
if (insertAt === 'top') {
|
|
12
|
-
if (head.firstChild) {
|
|
13
|
-
head.insertBefore(style, head.firstChild);
|
|
14
|
-
} else {
|
|
15
|
-
head.appendChild(style);
|
|
16
|
-
}
|
|
17
|
-
} else {
|
|
18
|
-
head.appendChild(style);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
if (style.styleSheet) {
|
|
22
|
-
style.styleSheet.cssText = css;
|
|
23
|
-
} else {
|
|
24
|
-
style.appendChild(document.createTextNode(css));
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export { styleInject as default };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import _sfc_main from './HtButton.vue2.mjs';
|
|
2
|
-
import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
3
|
-
|
|
4
|
-
var button = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/button/HtButton.vue"]]);
|
|
5
|
-
|
|
6
|
-
export { button as default };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import Button from './button/index.mjs';
|
|
2
|
-
import HtTable from './table/index.mjs';
|
|
3
|
-
|
|
4
|
-
const components = [
|
|
5
|
-
Button,
|
|
6
|
-
HtTable
|
|
7
|
-
];
|
|
8
|
-
const install = (app) => {
|
|
9
|
-
components.forEach((component) => app.component(component.name, component));
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export { Button as HtButton, HtTable, install as default };
|
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
import 'ant-design-vue/dist/antd.css';
|
|
2
|
-
type aa = {
|
|
3
|
-
title?: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
dataIndex?: string;
|
|
6
|
-
key: string;
|
|
7
|
-
};
|
|
8
|
-
declare const _default: import("vue").DefineComponent<{}, {
|
|
9
|
-
columns: aa[];
|
|
10
|
-
data: {
|
|
11
|
-
key: string;
|
|
12
|
-
name: string;
|
|
13
|
-
age: number;
|
|
14
|
-
address: string;
|
|
15
|
-
tags: string[];
|
|
16
|
-
}[];
|
|
17
|
-
readonly Table: {
|
|
18
|
-
new (...args: any[]): {
|
|
19
|
-
$: import("vue").ComponentInternalInstance;
|
|
20
|
-
$data: {};
|
|
21
|
-
$props: Partial<{}> & Omit<Readonly<import("ant-design-vue").TableProps<any>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
22
|
-
$attrs: {
|
|
23
|
-
[x: string]: unknown;
|
|
24
|
-
};
|
|
25
|
-
$refs: {
|
|
26
|
-
[x: string]: unknown;
|
|
27
|
-
};
|
|
28
|
-
$slots: Readonly<{
|
|
29
|
-
[name: string]: import("vue").Slot<any>;
|
|
30
|
-
}>;
|
|
31
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
|
32
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
|
33
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
34
|
-
$el: any;
|
|
35
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("ant-design-vue").TableProps<any>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & {
|
|
36
|
-
beforeCreate?: (() => void) | (() => void)[] | undefined;
|
|
37
|
-
created?: (() => void) | (() => void)[] | undefined;
|
|
38
|
-
beforeMount?: (() => void) | (() => void)[] | undefined;
|
|
39
|
-
mounted?: (() => void) | (() => void)[] | undefined;
|
|
40
|
-
beforeUpdate?: (() => void) | (() => void)[] | undefined;
|
|
41
|
-
updated?: (() => void) | (() => void)[] | undefined;
|
|
42
|
-
activated?: (() => void) | (() => void)[] | undefined;
|
|
43
|
-
deactivated?: (() => void) | (() => void)[] | undefined;
|
|
44
|
-
beforeDestroy?: (() => void) | (() => void)[] | undefined;
|
|
45
|
-
beforeUnmount?: (() => void) | (() => void)[] | undefined;
|
|
46
|
-
destroyed?: (() => void) | (() => void)[] | undefined;
|
|
47
|
-
unmounted?: (() => void) | (() => void)[] | undefined;
|
|
48
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
|
|
49
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
|
|
50
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[] | undefined;
|
|
51
|
-
};
|
|
52
|
-
$forceUpdate: () => void;
|
|
53
|
-
$nextTick: typeof import("vue").nextTick;
|
|
54
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
55
|
-
} & Readonly<import("ant-design-vue").TableProps<any>> & import("vue").ShallowUnwrapRef<{}> & import("vue").ComponentCustomProperties;
|
|
56
|
-
__isFragment?: undefined;
|
|
57
|
-
__isTeleport?: undefined;
|
|
58
|
-
__isSuspense?: undefined;
|
|
59
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("ant-design-vue").TableProps<any>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
60
|
-
SELECTION_ALL: "SELECT_ALL";
|
|
61
|
-
SELECTION_INVERT: "SELECT_INVERT";
|
|
62
|
-
SELECTION_NONE: "SELECT_NONE";
|
|
63
|
-
SELECTION_COLUMN: {};
|
|
64
|
-
EXPAND_COLUMN: {};
|
|
65
|
-
Column: import("vue").DefineComponent<import("ant-design-vue").TableColumnProps<unknown>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("ant-design-vue").TableColumnProps<unknown>>, {
|
|
66
|
-
__originColumn__?: any;
|
|
67
|
-
}, {}>;
|
|
68
|
-
ColumnGroup: import("vue").DefineComponent<import("ant-design-vue/lib/vc-table/sugar/ColumnGroup").ColumnGroupProps<any>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("ant-design-vue/lib/vc-table/sugar/ColumnGroup").ColumnGroupProps<any>>, {
|
|
69
|
-
title?: any;
|
|
70
|
-
__originColumn__?: any;
|
|
71
|
-
}, {}>;
|
|
72
|
-
Summary: {
|
|
73
|
-
new (...args: any[]): {
|
|
74
|
-
$: import("vue").ComponentInternalInstance;
|
|
75
|
-
$data: {};
|
|
76
|
-
$props: Partial<{}> & Omit<Readonly<import("ant-design-vue/lib/vc-table/Footer/Summary").SummaryProps> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
77
|
-
$attrs: {
|
|
78
|
-
[x: string]: unknown;
|
|
79
|
-
};
|
|
80
|
-
$refs: {
|
|
81
|
-
[x: string]: unknown;
|
|
82
|
-
};
|
|
83
|
-
$slots: Readonly<{
|
|
84
|
-
[name: string]: import("vue").Slot<any>;
|
|
85
|
-
}>;
|
|
86
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
|
87
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
|
88
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
89
|
-
$el: any;
|
|
90
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("ant-design-vue/lib/vc-table/Footer/Summary").SummaryProps>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & {
|
|
91
|
-
beforeCreate?: (() => void) | (() => void)[] | undefined;
|
|
92
|
-
created?: (() => void) | (() => void)[] | undefined;
|
|
93
|
-
beforeMount?: (() => void) | (() => void)[] | undefined;
|
|
94
|
-
mounted?: (() => void) | (() => void)[] | undefined;
|
|
95
|
-
beforeUpdate?: (() => void) | (() => void)[] | undefined;
|
|
96
|
-
updated?: (() => void) | (() => void)[] | undefined;
|
|
97
|
-
activated?: (() => void) | (() => void)[] | undefined;
|
|
98
|
-
deactivated?: (() => void) | (() => void)[] | undefined;
|
|
99
|
-
beforeDestroy?: (() => void) | (() => void)[] | undefined;
|
|
100
|
-
beforeUnmount?: (() => void) | (() => void)[] | undefined;
|
|
101
|
-
destroyed?: (() => void) | (() => void)[] | undefined;
|
|
102
|
-
unmounted?: (() => void) | (() => void)[] | undefined;
|
|
103
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
|
|
104
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
|
|
105
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[] | undefined;
|
|
106
|
-
};
|
|
107
|
-
$forceUpdate: () => void;
|
|
108
|
-
$nextTick: typeof import("vue").nextTick;
|
|
109
|
-
$watch<T_1 extends string | ((...args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R_1 ? (args_0: R_1, args_1: R_1) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
110
|
-
} & Readonly<import("ant-design-vue/lib/vc-table/Footer/Summary").SummaryProps> & import("vue").ShallowUnwrapRef<{}> & import("vue").ComponentCustomProperties;
|
|
111
|
-
__isFragment?: undefined;
|
|
112
|
-
__isTeleport?: undefined;
|
|
113
|
-
__isSuspense?: undefined;
|
|
114
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("ant-design-vue/lib/vc-table/Footer/Summary").SummaryProps>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
115
|
-
Cell: import("vue").DefineComponent<import("ant-design-vue/lib/vc-table/Footer/Cell").SummaryCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("ant-design-vue/lib/vc-table/Footer/Cell").SummaryCellProps>, {}, {}>;
|
|
116
|
-
Row: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
117
|
-
name: string;
|
|
118
|
-
};
|
|
119
|
-
install: (app: import("vue").App<any>) => import("vue").App<any>;
|
|
120
|
-
};
|
|
121
|
-
readonly Tag: {
|
|
122
|
-
new (...args: any[]): {
|
|
123
|
-
$: import("vue").ComponentInternalInstance;
|
|
124
|
-
$data: {};
|
|
125
|
-
$props: Partial<{
|
|
126
|
-
visible: boolean;
|
|
127
|
-
closable: boolean;
|
|
128
|
-
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
129
|
-
prefixCls: StringConstructor;
|
|
130
|
-
color: {
|
|
131
|
-
type: import("vue").PropType<string>;
|
|
132
|
-
};
|
|
133
|
-
closable: {
|
|
134
|
-
type: BooleanConstructor;
|
|
135
|
-
default: boolean;
|
|
136
|
-
};
|
|
137
|
-
closeIcon: import("vue-types").VueTypeValidableDef<any>;
|
|
138
|
-
visible: {
|
|
139
|
-
type: BooleanConstructor;
|
|
140
|
-
default: any;
|
|
141
|
-
};
|
|
142
|
-
onClose: {
|
|
143
|
-
type: import("vue").PropType<(e: MouseEvent) => void>;
|
|
144
|
-
};
|
|
145
|
-
'onUpdate:visible': import("vue").PropType<(vis: boolean) => void>;
|
|
146
|
-
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
147
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "closable" | "visible">;
|
|
148
|
-
$attrs: {
|
|
149
|
-
[x: string]: unknown;
|
|
150
|
-
};
|
|
151
|
-
$refs: {
|
|
152
|
-
[x: string]: unknown;
|
|
153
|
-
};
|
|
154
|
-
$slots: Readonly<{
|
|
155
|
-
[name: string]: import("vue").Slot<any>;
|
|
156
|
-
}>;
|
|
157
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
|
158
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
|
159
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
160
|
-
$el: any;
|
|
161
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
162
|
-
prefixCls: StringConstructor;
|
|
163
|
-
color: {
|
|
164
|
-
type: import("vue").PropType<string>;
|
|
165
|
-
};
|
|
166
|
-
closable: {
|
|
167
|
-
type: BooleanConstructor;
|
|
168
|
-
default: boolean;
|
|
169
|
-
};
|
|
170
|
-
closeIcon: import("vue-types").VueTypeValidableDef<any>;
|
|
171
|
-
visible: {
|
|
172
|
-
type: BooleanConstructor;
|
|
173
|
-
default: any;
|
|
174
|
-
};
|
|
175
|
-
onClose: {
|
|
176
|
-
type: import("vue").PropType<(e: MouseEvent) => void>;
|
|
177
|
-
};
|
|
178
|
-
'onUpdate:visible': import("vue").PropType<(vis: boolean) => void>;
|
|
179
|
-
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
180
|
-
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
181
|
-
visible: boolean;
|
|
182
|
-
closable: boolean;
|
|
183
|
-
}, {}, string, {}> & {
|
|
184
|
-
beforeCreate?: (() => void) | (() => void)[] | undefined;
|
|
185
|
-
created?: (() => void) | (() => void)[] | undefined;
|
|
186
|
-
beforeMount?: (() => void) | (() => void)[] | undefined;
|
|
187
|
-
mounted?: (() => void) | (() => void)[] | undefined;
|
|
188
|
-
beforeUpdate?: (() => void) | (() => void)[] | undefined;
|
|
189
|
-
updated?: (() => void) | (() => void)[] | undefined;
|
|
190
|
-
activated?: (() => void) | (() => void)[] | undefined;
|
|
191
|
-
deactivated?: (() => void) | (() => void)[] | undefined;
|
|
192
|
-
beforeDestroy?: (() => void) | (() => void)[] | undefined;
|
|
193
|
-
beforeUnmount?: (() => void) | (() => void)[] | undefined;
|
|
194
|
-
destroyed?: (() => void) | (() => void)[] | undefined;
|
|
195
|
-
unmounted?: (() => void) | (() => void)[] | undefined;
|
|
196
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
|
|
197
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
|
|
198
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[] | undefined;
|
|
199
|
-
};
|
|
200
|
-
$forceUpdate: () => void;
|
|
201
|
-
$nextTick: typeof import("vue").nextTick;
|
|
202
|
-
$watch<T_2 extends string | ((...args: any) => any)>(source: T_2, cb: T_2 extends (...args: any) => infer R_2 ? (args_0: R_2, args_1: R_2) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
203
|
-
} & Readonly<import("vue").ExtractPropTypes<{
|
|
204
|
-
prefixCls: StringConstructor;
|
|
205
|
-
color: {
|
|
206
|
-
type: import("vue").PropType<string>;
|
|
207
|
-
};
|
|
208
|
-
closable: {
|
|
209
|
-
type: BooleanConstructor;
|
|
210
|
-
default: boolean;
|
|
211
|
-
};
|
|
212
|
-
closeIcon: import("vue-types").VueTypeValidableDef<any>;
|
|
213
|
-
visible: {
|
|
214
|
-
type: BooleanConstructor;
|
|
215
|
-
default: any;
|
|
216
|
-
};
|
|
217
|
-
onClose: {
|
|
218
|
-
type: import("vue").PropType<(e: MouseEvent) => void>;
|
|
219
|
-
};
|
|
220
|
-
'onUpdate:visible': import("vue").PropType<(vis: boolean) => void>;
|
|
221
|
-
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
222
|
-
}>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & import("vue").ComponentCustomProperties;
|
|
223
|
-
__isFragment?: undefined;
|
|
224
|
-
__isTeleport?: undefined;
|
|
225
|
-
__isSuspense?: undefined;
|
|
226
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
227
|
-
prefixCls: StringConstructor;
|
|
228
|
-
color: {
|
|
229
|
-
type: import("vue").PropType<string>;
|
|
230
|
-
};
|
|
231
|
-
closable: {
|
|
232
|
-
type: BooleanConstructor;
|
|
233
|
-
default: boolean;
|
|
234
|
-
};
|
|
235
|
-
closeIcon: import("vue-types").VueTypeValidableDef<any>;
|
|
236
|
-
visible: {
|
|
237
|
-
type: BooleanConstructor;
|
|
238
|
-
default: any;
|
|
239
|
-
};
|
|
240
|
-
onClose: {
|
|
241
|
-
type: import("vue").PropType<(e: MouseEvent) => void>;
|
|
242
|
-
};
|
|
243
|
-
'onUpdate:visible': import("vue").PropType<(vis: boolean) => void>;
|
|
244
|
-
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
245
|
-
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
246
|
-
visible: boolean;
|
|
247
|
-
closable: boolean;
|
|
248
|
-
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]> & {
|
|
249
|
-
readonly CheckableTag: import("vue").DefineComponent<{
|
|
250
|
-
prefixCls: StringConstructor;
|
|
251
|
-
checked: {
|
|
252
|
-
type: BooleanConstructor;
|
|
253
|
-
default: any;
|
|
254
|
-
};
|
|
255
|
-
onChange: {
|
|
256
|
-
type: import("vue").PropType<(checked: boolean) => void>;
|
|
257
|
-
};
|
|
258
|
-
onClick: {
|
|
259
|
-
type: import("vue").PropType<(e: MouseEvent) => void>;
|
|
260
|
-
};
|
|
261
|
-
'onUpdate:checked': import("vue").PropType<(checked: boolean) => void>;
|
|
262
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
263
|
-
prefixCls: StringConstructor;
|
|
264
|
-
checked: {
|
|
265
|
-
type: BooleanConstructor;
|
|
266
|
-
default: any;
|
|
267
|
-
};
|
|
268
|
-
onChange: {
|
|
269
|
-
type: import("vue").PropType<(checked: boolean) => void>;
|
|
270
|
-
};
|
|
271
|
-
onClick: {
|
|
272
|
-
type: import("vue").PropType<(e: MouseEvent) => void>;
|
|
273
|
-
};
|
|
274
|
-
'onUpdate:checked': import("vue").PropType<(checked: boolean) => void>;
|
|
275
|
-
}>>, {
|
|
276
|
-
checked: boolean;
|
|
277
|
-
}, {}>;
|
|
278
|
-
};
|
|
279
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
280
|
-
export default _default;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import _sfc_main from './HtTable.vue2.mjs';
|
|
2
|
-
import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
3
|
-
|
|
4
|
-
var Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/table/HtTable.vue"]]);
|
|
5
|
-
|
|
6
|
-
export { Table as default };
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createBlock, unref, withCtx, createElementBlock, createCommentVNode, toDisplayString, Fragment, renderList, createTextVNode } from 'vue';
|
|
2
|
-
import { Table, Tag } from 'ant-design-vue';
|
|
3
|
-
import '../../../node_modules/.pnpm/ant-design-vue@3.2.20_vue@3.4.21_typescript@5.3.3_/node_modules/ant-design-vue/dist/antd.css.mjs';
|
|
4
|
-
|
|
5
|
-
const _hoisted_1 = { key: 0 };
|
|
6
|
-
const _hoisted_2 = { key: 0 };
|
|
7
|
-
const _hoisted_3 = { key: 1 };
|
|
8
|
-
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
-
...{
|
|
10
|
-
name: "HtTable"
|
|
11
|
-
},
|
|
12
|
-
__name: "HtTable",
|
|
13
|
-
setup(__props) {
|
|
14
|
-
const columns = [
|
|
15
|
-
{
|
|
16
|
-
name: "Name",
|
|
17
|
-
dataIndex: "name",
|
|
18
|
-
key: "name"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
title: "Age",
|
|
22
|
-
dataIndex: "age",
|
|
23
|
-
key: "age"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
title: "Address",
|
|
27
|
-
dataIndex: "address",
|
|
28
|
-
key: "address"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
title: "Tags",
|
|
32
|
-
key: "tags",
|
|
33
|
-
dataIndex: "tags"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
title: "Action",
|
|
37
|
-
key: "action"
|
|
38
|
-
}
|
|
39
|
-
];
|
|
40
|
-
const data = [
|
|
41
|
-
{
|
|
42
|
-
key: "1",
|
|
43
|
-
name: "John Brown",
|
|
44
|
-
age: 32,
|
|
45
|
-
address: "New York No. 1 Lake Park",
|
|
46
|
-
tags: ["nice", "developer"]
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
key: "2",
|
|
50
|
-
name: "Jim Green",
|
|
51
|
-
age: 42,
|
|
52
|
-
address: "London No. 1 Lake Park",
|
|
53
|
-
tags: ["loser"]
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
key: "3",
|
|
57
|
-
name: "Joe Black",
|
|
58
|
-
age: 32,
|
|
59
|
-
address: "Sidney No. 1 Lake Park",
|
|
60
|
-
tags: ["cool", "teacher"]
|
|
61
|
-
}
|
|
62
|
-
];
|
|
63
|
-
return (_ctx, _cache) => {
|
|
64
|
-
return openBlock(), createBlock(unref(Table), {
|
|
65
|
-
columns,
|
|
66
|
-
"data-source": data
|
|
67
|
-
}, {
|
|
68
|
-
headerCell: withCtx(({ column }) => [
|
|
69
|
-
column.key === "name" ? (openBlock(), createElementBlock("span", _hoisted_1, " Name ")) : createCommentVNode("v-if", true)
|
|
70
|
-
]),
|
|
71
|
-
bodyCell: withCtx(({ column, record }) => [
|
|
72
|
-
column.key === "name" ? (openBlock(), createElementBlock(
|
|
73
|
-
"a",
|
|
74
|
-
_hoisted_2,
|
|
75
|
-
toDisplayString(record.name),
|
|
76
|
-
1
|
|
77
|
-
/* TEXT */
|
|
78
|
-
)) : column.key === "tags" ? (openBlock(), createElementBlock("span", _hoisted_3, [
|
|
79
|
-
(openBlock(true), createElementBlock(
|
|
80
|
-
Fragment,
|
|
81
|
-
null,
|
|
82
|
-
renderList(record.tags, (tag) => {
|
|
83
|
-
return openBlock(), createBlock(unref(Tag), {
|
|
84
|
-
key: tag,
|
|
85
|
-
color: tag === "loser" ? "volcano" : tag.length > 5 ? "geekblue" : "green"
|
|
86
|
-
}, {
|
|
87
|
-
default: withCtx(() => [
|
|
88
|
-
createTextVNode(
|
|
89
|
-
toDisplayString(tag.toUpperCase()),
|
|
90
|
-
1
|
|
91
|
-
/* TEXT */
|
|
92
|
-
)
|
|
93
|
-
]),
|
|
94
|
-
_: 2
|
|
95
|
-
/* DYNAMIC */
|
|
96
|
-
}, 1032, ["color"]);
|
|
97
|
-
}),
|
|
98
|
-
128
|
|
99
|
-
/* KEYED_FRAGMENT */
|
|
100
|
-
))
|
|
101
|
-
])) : createCommentVNode("v-if", true)
|
|
102
|
-
]),
|
|
103
|
-
_: 1
|
|
104
|
-
/* STABLE */
|
|
105
|
-
});
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
export { _sfc_main as default };
|