@haoyulong1112/jh-ui 0.1.0
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/components/alert/index.d.ts +125 -0
- package/dist/components/alert/src/alert.vue.d.ts +73 -0
- package/dist/components/alert/src/props.d.ts +32 -0
- package/dist/components/alert/src/types.d.ts +2 -0
- package/dist/components/backtop/index.d.ts +102 -0
- package/dist/components/backtop/src/backtop.vue.d.ts +57 -0
- package/dist/components/backtop/src/props.d.ts +22 -0
- package/dist/components/backtop/src/types.d.ts +3 -0
- package/dist/components/badge/index.d.ts +101 -0
- package/dist/components/badge/src/badge.vue.d.ts +59 -0
- package/dist/components/badge/src/props.d.ts +24 -0
- package/dist/components/badge/src/types.d.ts +2 -0
- package/dist/components/button/index.d.ts +123 -0
- package/dist/components/button/src/button.vue.d.ts +69 -0
- package/dist/components/button/src/props.d.ts +33 -0
- package/dist/components/button/src/types.d.ts +3 -0
- package/dist/components/carousel/index.d.ts +187 -0
- package/dist/components/carousel/src/carousel-item.vue.d.ts +24 -0
- package/dist/components/carousel/src/carousel.vue.d.ts +86 -0
- package/dist/components/carousel/src/props.d.ts +44 -0
- package/dist/components/carousel/src/types.d.ts +11 -0
- package/dist/components/cascader/index.d.ts +68 -0
- package/dist/components/cascader/src/cascader.vue.d.ts +67 -0
- package/dist/components/cascader/src/props.d.ts +33 -0
- package/dist/components/cascader/src/types.d.ts +13 -0
- package/dist/components/checkbox/index.d.ts +139 -0
- package/dist/components/checkbox/src/checkbox-group.vue.d.ts +34 -0
- package/dist/components/checkbox/src/checkbox.vue.d.ts +44 -0
- package/dist/components/checkbox/src/props.d.ts +31 -0
- package/dist/components/checkbox/src/types.d.ts +8 -0
- package/dist/components/collapse/index.d.ts +120 -0
- package/dist/components/collapse/src/collapse-item.vue.d.ts +37 -0
- package/dist/components/collapse/src/collapse.vue.d.ts +33 -0
- package/dist/components/collapse/src/props.d.ts +24 -0
- package/dist/components/collapse/src/types.d.ts +8 -0
- package/dist/components/date-picker/index.d.ts +32 -0
- package/dist/components/date-picker/src/date-picker.vue.d.ts +30 -0
- package/dist/components/date-picker/src/props.d.ts +16 -0
- package/dist/components/date-picker/src/types.d.ts +1 -0
- package/dist/components/date-time-picker/index.d.ts +32 -0
- package/dist/components/date-time-picker/src/date-time-picker.vue.d.ts +30 -0
- package/dist/components/date-time-picker/src/props.d.ts +16 -0
- package/dist/components/date-time-picker/src/types.d.ts +1 -0
- package/dist/components/dialog/index.d.ts +97 -0
- package/dist/components/dialog/src/dialog.vue.d.ts +54 -0
- package/dist/components/dialog/src/props.d.ts +22 -0
- package/dist/components/dialog/src/types.d.ts +1 -0
- package/dist/components/drawer/index.d.ts +139 -0
- package/dist/components/drawer/src/drawer.vue.d.ts +79 -0
- package/dist/components/drawer/src/props.d.ts +33 -0
- package/dist/components/drawer/src/types.d.ts +2 -0
- package/dist/components/dropdown/index.d.ts +115 -0
- package/dist/components/dropdown/src/dropdown.vue.d.ts +67 -0
- package/dist/components/dropdown/src/props.d.ts +30 -0
- package/dist/components/dropdown/src/types.d.ts +9 -0
- package/dist/components/form/index.d.ts +127 -0
- package/dist/components/form/src/form-item.vue.d.ts +27 -0
- package/dist/components/form/src/form.vue.d.ts +45 -0
- package/dist/components/form/src/props.d.ts +24 -0
- package/dist/components/form/src/types.d.ts +19 -0
- package/dist/components/icon/index.d.ts +53 -0
- package/dist/components/icon/src/icon.vue.d.ts +31 -0
- package/dist/components/icon/src/props.d.ts +13 -0
- package/dist/components/icon/src/types.d.ts +1 -0
- package/dist/components/index.d.ts +6387 -0
- package/dist/components/infinite-scroll/index.d.ts +107 -0
- package/dist/components/infinite-scroll/src/infinite-scroll.vue.d.ts +59 -0
- package/dist/components/infinite-scroll/src/props.d.ts +21 -0
- package/dist/components/infinite-scroll/src/types.d.ts +5 -0
- package/dist/components/input/index.d.ts +110 -0
- package/dist/components/input/src/input.vue.d.ts +58 -0
- package/dist/components/input/src/props.d.ts +26 -0
- package/dist/components/input/src/types.d.ts +1 -0
- package/dist/components/link/index.d.ts +84 -0
- package/dist/components/link/src/link.vue.d.ts +48 -0
- package/dist/components/link/src/props.d.ts +23 -0
- package/dist/components/link/src/types.d.ts +2 -0
- package/dist/components/message/index.d.ts +7 -0
- package/dist/components/message/src/message.vue.d.ts +79 -0
- package/dist/components/message/src/props.d.ts +33 -0
- package/dist/components/message/src/types.d.ts +32 -0
- package/dist/components/message-box/index.d.ts +7 -0
- package/dist/components/message-box/src/message-box.vue.d.ts +101 -0
- package/dist/components/message-box/src/props.d.ts +42 -0
- package/dist/components/message-box/src/types.d.ts +27 -0
- package/dist/components/notification/index.d.ts +7 -0
- package/dist/components/notification/src/notification.vue.d.ts +95 -0
- package/dist/components/notification/src/props.d.ts +46 -0
- package/dist/components/notification/src/types.d.ts +36 -0
- package/dist/components/pagination/index.d.ts +45 -0
- package/dist/components/pagination/src/pagination.vue.d.ts +43 -0
- package/dist/components/pagination/src/props.d.ts +23 -0
- package/dist/components/pagination/src/types.d.ts +4 -0
- package/dist/components/radio/index.d.ts +112 -0
- package/dist/components/radio/src/props.d.ts +25 -0
- package/dist/components/radio/src/radio-group.vue.d.ts +27 -0
- package/dist/components/radio/src/radio.vue.d.ts +36 -0
- package/dist/components/radio/src/types.d.ts +8 -0
- package/dist/components/scrollbar/index.d.ts +60 -0
- package/dist/components/scrollbar/src/props.d.ts +14 -0
- package/dist/components/scrollbar/src/scrollbar.vue.d.ts +33 -0
- package/dist/components/scrollbar/src/types.d.ts +4 -0
- package/dist/components/select/index.d.ts +43 -0
- package/dist/components/select/src/props.d.ts +22 -0
- package/dist/components/select/src/select.vue.d.ts +42 -0
- package/dist/components/select/src/types.d.ts +6 -0
- package/dist/components/table/index.d.ts +147 -0
- package/dist/components/table/src/props.d.ts +31 -0
- package/dist/components/table/src/table.vue.d.ts +88 -0
- package/dist/components/table/src/types.d.ts +11 -0
- package/dist/components/tabs/index.d.ts +112 -0
- package/dist/components/tabs/src/props.d.ts +23 -0
- package/dist/components/tabs/src/tab-pane.vue.d.ts +35 -0
- package/dist/components/tabs/src/tabs.vue.d.ts +31 -0
- package/dist/components/tabs/src/types.d.ts +14 -0
- package/dist/components/text/index.d.ts +86 -0
- package/dist/components/text/src/props.d.ts +23 -0
- package/dist/components/text/src/text.vue.d.ts +51 -0
- package/dist/components/text/src/types.d.ts +3 -0
- package/dist/components/time-select/index.d.ts +64 -0
- package/dist/components/time-select/src/props.d.ts +29 -0
- package/dist/components/time-select/src/time-select.vue.d.ts +63 -0
- package/dist/components/time-select/src/types.d.ts +4 -0
- package/dist/components/tree/index.d.ts +167 -0
- package/dist/components/tree/src/props.d.ts +39 -0
- package/dist/components/tree/src/tree.vue.d.ts +97 -0
- package/dist/components/tree/src/types.d.ts +21 -0
- package/dist/components/upload/index.d.ts +89 -0
- package/dist/components/upload/src/props.d.ts +41 -0
- package/dist/components/upload/src/types.d.ts +11 -0
- package/dist/components/upload/src/upload.vue.d.ts +88 -0
- package/dist/components/waterfall/index.d.ts +195 -0
- package/dist/components/waterfall/src/props.d.ts +42 -0
- package/dist/components/waterfall/src/types.d.ts +17 -0
- package/dist/components/waterfall/src/waterfall.vue.d.ts +122 -0
- package/dist/es/components/alert/style/css.js +1 -0
- package/dist/es/components/alert/style/style.css +128 -0
- package/dist/es/components/backtop/style/css.js +1 -0
- package/dist/es/components/backtop/style/style.css +67 -0
- package/dist/es/components/badge/style/css.js +1 -0
- package/dist/es/components/badge/style/style.css +88 -0
- package/dist/es/components/button/style/css.js +1 -0
- package/dist/es/components/button/style/style.css +207 -0
- package/dist/es/components/carousel/style/css.js +1 -0
- package/dist/es/components/carousel/style/style.css +118 -0
- package/dist/es/components/cascader/style/css.js +1 -0
- package/dist/es/components/cascader/style/style.css +172 -0
- package/dist/es/components/checkbox/style/css.js +1 -0
- package/dist/es/components/checkbox/style/style.css +95 -0
- package/dist/es/components/collapse/style/css.js +1 -0
- package/dist/es/components/collapse/style/style.css +91 -0
- package/dist/es/components/date-picker/style/css.js +1 -0
- package/dist/es/components/date-picker/style/style.css +78 -0
- package/dist/es/components/date-time-picker/style/css.js +1 -0
- package/dist/es/components/date-time-picker/style/style.css +78 -0
- package/dist/es/components/dialog/style/css.js +1 -0
- package/dist/es/components/dialog/style/style.css +129 -0
- package/dist/es/components/drawer/style/css.js +1 -0
- package/dist/es/components/drawer/style/style.css +162 -0
- package/dist/es/components/dropdown/style/css.js +1 -0
- package/dist/es/components/dropdown/style/style.css +138 -0
- package/dist/es/components/form/style/css.js +1 -0
- package/dist/es/components/form/style/style.css +73 -0
- package/dist/es/components/icon/style/css.js +1 -0
- package/dist/es/components/icon/style/style.css +61 -0
- package/dist/es/components/infinite-scroll/style/css.js +1 -0
- package/dist/es/components/infinite-scroll/style/style.css +54 -0
- package/dist/es/components/input/style/css.js +1 -0
- package/dist/es/components/input/style/style.css +152 -0
- package/dist/es/components/link/style/css.js +1 -0
- package/dist/es/components/link/style/style.css +82 -0
- package/dist/es/components/message/style/css.js +1 -0
- package/dist/es/components/message/style/style.css +111 -0
- package/dist/es/components/message-box/style/css.js +1 -0
- package/dist/es/components/message-box/style/style.css +156 -0
- package/dist/es/components/notification/style/css.js +1 -0
- package/dist/es/components/notification/style/style.css +128 -0
- package/dist/es/components/pagination/style/css.js +1 -0
- package/dist/es/components/pagination/style/style.css +89 -0
- package/dist/es/components/radio/style/css.js +1 -0
- package/dist/es/components/radio/style/style.css +91 -0
- package/dist/es/components/scrollbar/style/css.js +1 -0
- package/dist/es/components/scrollbar/style/style.css +75 -0
- package/dist/es/components/select/style/css.js +1 -0
- package/dist/es/components/select/style/style.css +140 -0
- package/dist/es/components/table/style/css.js +1 -0
- package/dist/es/components/table/style/style.css +177 -0
- package/dist/es/components/tabs/style/css.js +1 -0
- package/dist/es/components/tabs/style/style.css +85 -0
- package/dist/es/components/text/style/css.js +1 -0
- package/dist/es/components/text/style/style.css +84 -0
- package/dist/es/components/time-select/style/css.js +1 -0
- package/dist/es/components/time-select/style/style.css +153 -0
- package/dist/es/components/tree/style/css.js +1 -0
- package/dist/es/components/tree/style/style.css +113 -0
- package/dist/es/components/upload/style/css.js +1 -0
- package/dist/es/components/upload/style/style.css +148 -0
- package/dist/es/components/waterfall/style/css.js +1 -0
- package/dist/es/components/waterfall/style/style.css +85 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +63 -0
- package/dist/index.mjs +3341 -0
- package/dist/index.mjs.map +1 -0
- package/dist/resolver.cjs +2 -0
- package/dist/resolver.cjs.map +1 -0
- package/dist/resolver.d.ts +14 -0
- package/dist/resolver.mjs +59 -0
- package/dist/resolver.mjs.map +1 -0
- package/dist/utils/src/index.d.ts +1 -0
- package/dist/utils/src/install.d.ts +3 -0
- package/package.json +70 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
export declare const JhWaterfall: import("../../utils/src/index").SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
3
|
+
readonly data: {
|
|
4
|
+
readonly type: import("vue").PropType<import("./index.js").WaterfallItem[]>;
|
|
5
|
+
readonly default: () => never[];
|
|
6
|
+
};
|
|
7
|
+
readonly columns: {
|
|
8
|
+
readonly type: NumberConstructor;
|
|
9
|
+
readonly default: 2;
|
|
10
|
+
readonly validator: (value: number) => boolean;
|
|
11
|
+
};
|
|
12
|
+
readonly gap: {
|
|
13
|
+
readonly type: import("vue").PropType<number | string>;
|
|
14
|
+
readonly default: 16;
|
|
15
|
+
};
|
|
16
|
+
readonly itemKey: {
|
|
17
|
+
readonly type: import("vue").PropType<import("./index.js").WaterfallItemKey>;
|
|
18
|
+
readonly default: "id";
|
|
19
|
+
};
|
|
20
|
+
readonly itemHeight: {
|
|
21
|
+
readonly type: import("vue").PropType<import("./index.js").WaterfallItemHeight>;
|
|
22
|
+
readonly default: "height";
|
|
23
|
+
};
|
|
24
|
+
readonly batchSize: {
|
|
25
|
+
readonly type: NumberConstructor;
|
|
26
|
+
readonly default: 40;
|
|
27
|
+
readonly validator: (value: number) => boolean;
|
|
28
|
+
};
|
|
29
|
+
readonly emptyText: {
|
|
30
|
+
readonly type: StringConstructor;
|
|
31
|
+
readonly default: "No data";
|
|
32
|
+
};
|
|
33
|
+
readonly immediate: {
|
|
34
|
+
readonly type: BooleanConstructor;
|
|
35
|
+
readonly default: true;
|
|
36
|
+
};
|
|
37
|
+
}>> & Readonly<{
|
|
38
|
+
"onLayout-start"?: (() => any) | undefined;
|
|
39
|
+
"onLayout-end"?: (() => any) | undefined;
|
|
40
|
+
}>, {
|
|
41
|
+
refresh: () => void;
|
|
42
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
|
+
"layout-start": () => void;
|
|
44
|
+
"layout-end": () => void;
|
|
45
|
+
}, import("vue").PublicProps, {
|
|
46
|
+
readonly data: import("./index.js").WaterfallItem[];
|
|
47
|
+
readonly columns: number;
|
|
48
|
+
readonly gap: string | number;
|
|
49
|
+
readonly itemKey: import("./index.js").WaterfallItemKey;
|
|
50
|
+
readonly itemHeight: import("./index.js").WaterfallItemHeight;
|
|
51
|
+
readonly batchSize: number;
|
|
52
|
+
readonly emptyText: string;
|
|
53
|
+
readonly immediate: boolean;
|
|
54
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
55
|
+
P: {};
|
|
56
|
+
B: {};
|
|
57
|
+
D: {};
|
|
58
|
+
C: {};
|
|
59
|
+
M: {};
|
|
60
|
+
Defaults: {};
|
|
61
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
62
|
+
readonly data: {
|
|
63
|
+
readonly type: import("vue").PropType<import("./index.js").WaterfallItem[]>;
|
|
64
|
+
readonly default: () => never[];
|
|
65
|
+
};
|
|
66
|
+
readonly columns: {
|
|
67
|
+
readonly type: NumberConstructor;
|
|
68
|
+
readonly default: 2;
|
|
69
|
+
readonly validator: (value: number) => boolean;
|
|
70
|
+
};
|
|
71
|
+
readonly gap: {
|
|
72
|
+
readonly type: import("vue").PropType<number | string>;
|
|
73
|
+
readonly default: 16;
|
|
74
|
+
};
|
|
75
|
+
readonly itemKey: {
|
|
76
|
+
readonly type: import("vue").PropType<import("./index.js").WaterfallItemKey>;
|
|
77
|
+
readonly default: "id";
|
|
78
|
+
};
|
|
79
|
+
readonly itemHeight: {
|
|
80
|
+
readonly type: import("vue").PropType<import("./index.js").WaterfallItemHeight>;
|
|
81
|
+
readonly default: "height";
|
|
82
|
+
};
|
|
83
|
+
readonly batchSize: {
|
|
84
|
+
readonly type: NumberConstructor;
|
|
85
|
+
readonly default: 40;
|
|
86
|
+
readonly validator: (value: number) => boolean;
|
|
87
|
+
};
|
|
88
|
+
readonly emptyText: {
|
|
89
|
+
readonly type: StringConstructor;
|
|
90
|
+
readonly default: "No data";
|
|
91
|
+
};
|
|
92
|
+
readonly immediate: {
|
|
93
|
+
readonly type: BooleanConstructor;
|
|
94
|
+
readonly default: true;
|
|
95
|
+
};
|
|
96
|
+
}>> & Readonly<{
|
|
97
|
+
"onLayout-start"?: (() => any) | undefined;
|
|
98
|
+
"onLayout-end"?: (() => any) | undefined;
|
|
99
|
+
}>, {
|
|
100
|
+
refresh: () => void;
|
|
101
|
+
}, {}, {}, {}, {
|
|
102
|
+
readonly data: import("./index.js").WaterfallItem[];
|
|
103
|
+
readonly columns: number;
|
|
104
|
+
readonly gap: string | number;
|
|
105
|
+
readonly itemKey: import("./index.js").WaterfallItemKey;
|
|
106
|
+
readonly itemHeight: import("./index.js").WaterfallItemHeight;
|
|
107
|
+
readonly batchSize: number;
|
|
108
|
+
readonly emptyText: string;
|
|
109
|
+
readonly immediate: boolean;
|
|
110
|
+
}>;
|
|
111
|
+
__isFragment?: never;
|
|
112
|
+
__isTeleport?: never;
|
|
113
|
+
__isSuspense?: never;
|
|
114
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
115
|
+
readonly data: {
|
|
116
|
+
readonly type: import("vue").PropType<import("./index.js").WaterfallItem[]>;
|
|
117
|
+
readonly default: () => never[];
|
|
118
|
+
};
|
|
119
|
+
readonly columns: {
|
|
120
|
+
readonly type: NumberConstructor;
|
|
121
|
+
readonly default: 2;
|
|
122
|
+
readonly validator: (value: number) => boolean;
|
|
123
|
+
};
|
|
124
|
+
readonly gap: {
|
|
125
|
+
readonly type: import("vue").PropType<number | string>;
|
|
126
|
+
readonly default: 16;
|
|
127
|
+
};
|
|
128
|
+
readonly itemKey: {
|
|
129
|
+
readonly type: import("vue").PropType<import("./index.js").WaterfallItemKey>;
|
|
130
|
+
readonly default: "id";
|
|
131
|
+
};
|
|
132
|
+
readonly itemHeight: {
|
|
133
|
+
readonly type: import("vue").PropType<import("./index.js").WaterfallItemHeight>;
|
|
134
|
+
readonly default: "height";
|
|
135
|
+
};
|
|
136
|
+
readonly batchSize: {
|
|
137
|
+
readonly type: NumberConstructor;
|
|
138
|
+
readonly default: 40;
|
|
139
|
+
readonly validator: (value: number) => boolean;
|
|
140
|
+
};
|
|
141
|
+
readonly emptyText: {
|
|
142
|
+
readonly type: StringConstructor;
|
|
143
|
+
readonly default: "No data";
|
|
144
|
+
};
|
|
145
|
+
readonly immediate: {
|
|
146
|
+
readonly type: BooleanConstructor;
|
|
147
|
+
readonly default: true;
|
|
148
|
+
};
|
|
149
|
+
}>> & Readonly<{
|
|
150
|
+
"onLayout-start"?: (() => any) | undefined;
|
|
151
|
+
"onLayout-end"?: (() => any) | undefined;
|
|
152
|
+
}>, {
|
|
153
|
+
refresh: () => void;
|
|
154
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
155
|
+
"layout-start": () => void;
|
|
156
|
+
"layout-end": () => void;
|
|
157
|
+
}, string, {
|
|
158
|
+
readonly data: import("./index.js").WaterfallItem[];
|
|
159
|
+
readonly columns: number;
|
|
160
|
+
readonly gap: string | number;
|
|
161
|
+
readonly itemKey: import("./index.js").WaterfallItemKey;
|
|
162
|
+
readonly itemHeight: import("./index.js").WaterfallItemHeight;
|
|
163
|
+
readonly batchSize: number;
|
|
164
|
+
readonly emptyText: string;
|
|
165
|
+
readonly immediate: boolean;
|
|
166
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
167
|
+
$slots: {
|
|
168
|
+
empty?: (props: {}) => any;
|
|
169
|
+
} & {
|
|
170
|
+
default?: (props: {
|
|
171
|
+
item: {
|
|
172
|
+
[x: string]: unknown;
|
|
173
|
+
id?: import("./index.js").WaterfallKey | undefined;
|
|
174
|
+
height?: number | undefined;
|
|
175
|
+
};
|
|
176
|
+
index: number;
|
|
177
|
+
columnIndex: number;
|
|
178
|
+
height: number;
|
|
179
|
+
}) => any;
|
|
180
|
+
} & {
|
|
181
|
+
default?: (props: {
|
|
182
|
+
item: {
|
|
183
|
+
[x: string]: unknown;
|
|
184
|
+
id?: import("./index.js").WaterfallKey | undefined;
|
|
185
|
+
height?: number | undefined;
|
|
186
|
+
};
|
|
187
|
+
index: number;
|
|
188
|
+
columnIndex: number;
|
|
189
|
+
height: number;
|
|
190
|
+
}) => any;
|
|
191
|
+
};
|
|
192
|
+
})>;
|
|
193
|
+
export default JhWaterfall;
|
|
194
|
+
export * from './src/props';
|
|
195
|
+
export * from './src/types';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { WaterfallItem, WaterfallItemHeight, WaterfallItemKey } from './types';
|
|
3
|
+
export declare const waterfallProps: {
|
|
4
|
+
readonly data: {
|
|
5
|
+
readonly type: PropType<WaterfallItem[]>;
|
|
6
|
+
readonly default: () => never[];
|
|
7
|
+
};
|
|
8
|
+
readonly columns: {
|
|
9
|
+
readonly type: NumberConstructor;
|
|
10
|
+
readonly default: 2;
|
|
11
|
+
readonly validator: (value: number) => boolean;
|
|
12
|
+
};
|
|
13
|
+
readonly gap: {
|
|
14
|
+
readonly type: PropType<number | string>;
|
|
15
|
+
readonly default: 16;
|
|
16
|
+
};
|
|
17
|
+
readonly itemKey: {
|
|
18
|
+
readonly type: PropType<WaterfallItemKey>;
|
|
19
|
+
readonly default: "id";
|
|
20
|
+
};
|
|
21
|
+
readonly itemHeight: {
|
|
22
|
+
readonly type: PropType<WaterfallItemHeight>;
|
|
23
|
+
readonly default: "height";
|
|
24
|
+
};
|
|
25
|
+
readonly batchSize: {
|
|
26
|
+
readonly type: NumberConstructor;
|
|
27
|
+
readonly default: 40;
|
|
28
|
+
readonly validator: (value: number) => boolean;
|
|
29
|
+
};
|
|
30
|
+
readonly emptyText: {
|
|
31
|
+
readonly type: StringConstructor;
|
|
32
|
+
readonly default: "No data";
|
|
33
|
+
};
|
|
34
|
+
readonly immediate: {
|
|
35
|
+
readonly type: BooleanConstructor;
|
|
36
|
+
readonly default: true;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare const waterfallEmits: {
|
|
40
|
+
'layout-start': () => boolean;
|
|
41
|
+
'layout-end': () => boolean;
|
|
42
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type WaterfallKey = string | number;
|
|
2
|
+
export interface WaterfallItem extends Record<string, unknown> {
|
|
3
|
+
id?: WaterfallKey;
|
|
4
|
+
height?: number;
|
|
5
|
+
}
|
|
6
|
+
export interface WaterfallRenderItem {
|
|
7
|
+
item: WaterfallItem;
|
|
8
|
+
index: number;
|
|
9
|
+
key: WaterfallKey;
|
|
10
|
+
height: number;
|
|
11
|
+
}
|
|
12
|
+
export interface WaterfallColumn {
|
|
13
|
+
height: number;
|
|
14
|
+
items: WaterfallRenderItem[];
|
|
15
|
+
}
|
|
16
|
+
export type WaterfallItemKey = string | ((item: WaterfallItem, index: number) => WaterfallKey);
|
|
17
|
+
export type WaterfallItemHeight = number | string | ((item: WaterfallItem, index: number) => number);
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import type { WaterfallItem } from './types';
|
|
2
|
+
declare var __VLS_1: {}, __VLS_3: {
|
|
3
|
+
item: {
|
|
4
|
+
[x: string]: unknown;
|
|
5
|
+
id?: import("./types").WaterfallKey | undefined;
|
|
6
|
+
height?: number | undefined;
|
|
7
|
+
};
|
|
8
|
+
index: number;
|
|
9
|
+
columnIndex: number;
|
|
10
|
+
height: number;
|
|
11
|
+
}, __VLS_5: {
|
|
12
|
+
item: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
id?: import("./types").WaterfallKey | undefined;
|
|
15
|
+
height?: number | undefined;
|
|
16
|
+
};
|
|
17
|
+
index: number;
|
|
18
|
+
columnIndex: number;
|
|
19
|
+
height: number;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_Slots = {} & {
|
|
22
|
+
empty?: (props: typeof __VLS_1) => any;
|
|
23
|
+
} & {
|
|
24
|
+
default?: (props: typeof __VLS_3) => any;
|
|
25
|
+
} & {
|
|
26
|
+
default?: (props: typeof __VLS_5) => any;
|
|
27
|
+
};
|
|
28
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
29
|
+
readonly data: {
|
|
30
|
+
readonly type: import("vue").PropType<WaterfallItem[]>;
|
|
31
|
+
readonly default: () => never[];
|
|
32
|
+
};
|
|
33
|
+
readonly columns: {
|
|
34
|
+
readonly type: NumberConstructor;
|
|
35
|
+
readonly default: 2;
|
|
36
|
+
readonly validator: (value: number) => boolean;
|
|
37
|
+
};
|
|
38
|
+
readonly gap: {
|
|
39
|
+
readonly type: import("vue").PropType<number | string>;
|
|
40
|
+
readonly default: 16;
|
|
41
|
+
};
|
|
42
|
+
readonly itemKey: {
|
|
43
|
+
readonly type: import("vue").PropType<import("./types").WaterfallItemKey>;
|
|
44
|
+
readonly default: "id";
|
|
45
|
+
};
|
|
46
|
+
readonly itemHeight: {
|
|
47
|
+
readonly type: import("vue").PropType<import("./types").WaterfallItemHeight>;
|
|
48
|
+
readonly default: "height";
|
|
49
|
+
};
|
|
50
|
+
readonly batchSize: {
|
|
51
|
+
readonly type: NumberConstructor;
|
|
52
|
+
readonly default: 40;
|
|
53
|
+
readonly validator: (value: number) => boolean;
|
|
54
|
+
};
|
|
55
|
+
readonly emptyText: {
|
|
56
|
+
readonly type: StringConstructor;
|
|
57
|
+
readonly default: "No data";
|
|
58
|
+
};
|
|
59
|
+
readonly immediate: {
|
|
60
|
+
readonly type: BooleanConstructor;
|
|
61
|
+
readonly default: true;
|
|
62
|
+
};
|
|
63
|
+
}>, {
|
|
64
|
+
refresh: () => void;
|
|
65
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
66
|
+
"layout-start": () => void;
|
|
67
|
+
"layout-end": () => void;
|
|
68
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
69
|
+
readonly data: {
|
|
70
|
+
readonly type: import("vue").PropType<WaterfallItem[]>;
|
|
71
|
+
readonly default: () => never[];
|
|
72
|
+
};
|
|
73
|
+
readonly columns: {
|
|
74
|
+
readonly type: NumberConstructor;
|
|
75
|
+
readonly default: 2;
|
|
76
|
+
readonly validator: (value: number) => boolean;
|
|
77
|
+
};
|
|
78
|
+
readonly gap: {
|
|
79
|
+
readonly type: import("vue").PropType<number | string>;
|
|
80
|
+
readonly default: 16;
|
|
81
|
+
};
|
|
82
|
+
readonly itemKey: {
|
|
83
|
+
readonly type: import("vue").PropType<import("./types").WaterfallItemKey>;
|
|
84
|
+
readonly default: "id";
|
|
85
|
+
};
|
|
86
|
+
readonly itemHeight: {
|
|
87
|
+
readonly type: import("vue").PropType<import("./types").WaterfallItemHeight>;
|
|
88
|
+
readonly default: "height";
|
|
89
|
+
};
|
|
90
|
+
readonly batchSize: {
|
|
91
|
+
readonly type: NumberConstructor;
|
|
92
|
+
readonly default: 40;
|
|
93
|
+
readonly validator: (value: number) => boolean;
|
|
94
|
+
};
|
|
95
|
+
readonly emptyText: {
|
|
96
|
+
readonly type: StringConstructor;
|
|
97
|
+
readonly default: "No data";
|
|
98
|
+
};
|
|
99
|
+
readonly immediate: {
|
|
100
|
+
readonly type: BooleanConstructor;
|
|
101
|
+
readonly default: true;
|
|
102
|
+
};
|
|
103
|
+
}>> & Readonly<{
|
|
104
|
+
"onLayout-start"?: (() => any) | undefined;
|
|
105
|
+
"onLayout-end"?: (() => any) | undefined;
|
|
106
|
+
}>, {
|
|
107
|
+
readonly data: WaterfallItem[];
|
|
108
|
+
readonly columns: number;
|
|
109
|
+
readonly gap: string | number;
|
|
110
|
+
readonly itemKey: import("./types").WaterfallItemKey;
|
|
111
|
+
readonly itemHeight: import("./types").WaterfallItemHeight;
|
|
112
|
+
readonly batchSize: number;
|
|
113
|
+
readonly emptyText: string;
|
|
114
|
+
readonly immediate: boolean;
|
|
115
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
116
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
117
|
+
export default _default;
|
|
118
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
119
|
+
new (): {
|
|
120
|
+
$slots: S;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './style.css'
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--jh-color-white: #ffffff;
|
|
3
|
+
--jh-color-black: #000000;
|
|
4
|
+
--jh-color-primary: #7958d5;
|
|
5
|
+
--jh-color-success: #67c23a;
|
|
6
|
+
--jh-color-warning: #e6a23c;
|
|
7
|
+
--jh-color-danger: #f56c6c;
|
|
8
|
+
--jh-color-info: #909399;
|
|
9
|
+
--jh-text-color-primary: #303133;
|
|
10
|
+
--jh-text-color-regular: #606266;
|
|
11
|
+
--jh-border-color: #dcdfe6;
|
|
12
|
+
--jh-border-color-light: #e4e7ed;
|
|
13
|
+
--jh-fill-color-light: #f5f7fa;
|
|
14
|
+
--jh-disabled-bg-color: #f5f7fa;
|
|
15
|
+
--jh-disabled-text-color: #a8abb2;
|
|
16
|
+
--jh-border-radius-base: 4px;
|
|
17
|
+
--jh-border-radius-round: 20px;
|
|
18
|
+
--jh-transition-duration: 0.2s;
|
|
19
|
+
--jh-font-size-base: 14px;
|
|
20
|
+
--jh-font-size-small: 12px;
|
|
21
|
+
--jh-font-size-large: 16px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
html.dark {
|
|
25
|
+
--jh-color-white: #1d1e1f;
|
|
26
|
+
--jh-color-black: #ffffff;
|
|
27
|
+
--jh-text-color-primary: #e5eaf3;
|
|
28
|
+
--jh-text-color-regular: #cfd3dc;
|
|
29
|
+
--jh-border-color: #4c4d4f;
|
|
30
|
+
--jh-border-color-light: #363637;
|
|
31
|
+
--jh-fill-color-light: #262727;
|
|
32
|
+
--jh-disabled-bg-color: #262727;
|
|
33
|
+
--jh-disabled-text-color: #6c6e72;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.jh-alert {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: flex-start;
|
|
39
|
+
gap: 10px;
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
width: 100%;
|
|
42
|
+
padding: 10px 12px;
|
|
43
|
+
border: 1px solid transparent;
|
|
44
|
+
border-radius: var(--jh-border-radius-base);
|
|
45
|
+
font-size: var(--jh-font-size-base);
|
|
46
|
+
line-height: 1.5;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.jh-alert__icon {
|
|
50
|
+
flex: 0 0 auto;
|
|
51
|
+
width: 8px;
|
|
52
|
+
height: 8px;
|
|
53
|
+
margin-top: 7px;
|
|
54
|
+
border-radius: 50%;
|
|
55
|
+
background-color: currentColor;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.jh-alert__content {
|
|
59
|
+
flex: 1 1 auto;
|
|
60
|
+
min-width: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.jh-alert__title {
|
|
64
|
+
color: inherit;
|
|
65
|
+
font-weight: 600;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.jh-alert__description {
|
|
69
|
+
color: inherit;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.jh-alert__title + .jh-alert__description {
|
|
73
|
+
margin-top: 2px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.jh-alert__close {
|
|
77
|
+
display: inline-flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
flex: 0 0 auto;
|
|
81
|
+
width: 22px;
|
|
82
|
+
height: 22px;
|
|
83
|
+
padding: 0;
|
|
84
|
+
border: 0;
|
|
85
|
+
background: transparent;
|
|
86
|
+
color: inherit;
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
opacity: 0.72;
|
|
89
|
+
}
|
|
90
|
+
.jh-alert__close:hover, .jh-alert__close:focus {
|
|
91
|
+
opacity: 1;
|
|
92
|
+
outline: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.jh-alert--success {
|
|
96
|
+
color: var(--jh-color-success);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.jh-alert--warning {
|
|
100
|
+
color: var(--jh-color-warning);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.jh-alert--info {
|
|
104
|
+
color: var(--jh-color-info);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.jh-alert--danger {
|
|
108
|
+
color: var(--jh-color-danger);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.jh-alert--light {
|
|
112
|
+
background-color: var(--jh-fill-color-light);
|
|
113
|
+
border-color: var(--jh-border-color-light);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.jh-alert--dark {
|
|
117
|
+
background-color: currentColor;
|
|
118
|
+
border-color: currentColor;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.jh-alert--dark .jh-alert__content,
|
|
122
|
+
.jh-alert--dark .jh-alert__close {
|
|
123
|
+
color: var(--jh-color-white);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.jh-alert--dark .jh-alert__icon {
|
|
127
|
+
background-color: var(--jh-color-white);
|
|
128
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './style.css'
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--jh-color-white: #ffffff;
|
|
3
|
+
--jh-color-black: #000000;
|
|
4
|
+
--jh-color-primary: #7958d5;
|
|
5
|
+
--jh-color-success: #67c23a;
|
|
6
|
+
--jh-color-warning: #e6a23c;
|
|
7
|
+
--jh-color-danger: #f56c6c;
|
|
8
|
+
--jh-color-info: #909399;
|
|
9
|
+
--jh-text-color-primary: #303133;
|
|
10
|
+
--jh-text-color-regular: #606266;
|
|
11
|
+
--jh-border-color: #dcdfe6;
|
|
12
|
+
--jh-border-color-light: #e4e7ed;
|
|
13
|
+
--jh-fill-color-light: #f5f7fa;
|
|
14
|
+
--jh-disabled-bg-color: #f5f7fa;
|
|
15
|
+
--jh-disabled-text-color: #a8abb2;
|
|
16
|
+
--jh-border-radius-base: 4px;
|
|
17
|
+
--jh-border-radius-round: 20px;
|
|
18
|
+
--jh-transition-duration: 0.2s;
|
|
19
|
+
--jh-font-size-base: 14px;
|
|
20
|
+
--jh-font-size-small: 12px;
|
|
21
|
+
--jh-font-size-large: 16px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
html.dark {
|
|
25
|
+
--jh-color-white: #1d1e1f;
|
|
26
|
+
--jh-color-black: #ffffff;
|
|
27
|
+
--jh-text-color-primary: #e5eaf3;
|
|
28
|
+
--jh-text-color-regular: #cfd3dc;
|
|
29
|
+
--jh-border-color: #4c4d4f;
|
|
30
|
+
--jh-border-color-light: #363637;
|
|
31
|
+
--jh-fill-color-light: #262727;
|
|
32
|
+
--jh-disabled-bg-color: #262727;
|
|
33
|
+
--jh-disabled-text-color: #6c6e72;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.jh-backtop {
|
|
37
|
+
position: fixed;
|
|
38
|
+
z-index: 1200;
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
width: 40px;
|
|
43
|
+
height: 40px;
|
|
44
|
+
padding: 0;
|
|
45
|
+
border: 1px solid var(--jh-border-color-light);
|
|
46
|
+
border-radius: 50%;
|
|
47
|
+
background-color: var(--jh-color-white);
|
|
48
|
+
color: var(--jh-color-primary);
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
|
|
51
|
+
transform: rotate(90deg);
|
|
52
|
+
transition: color var(--jh-transition-duration), border-color var(--jh-transition-duration), opacity var(--jh-transition-duration);
|
|
53
|
+
}
|
|
54
|
+
.jh-backtop:hover, .jh-backtop:focus {
|
|
55
|
+
border-color: var(--jh-color-primary);
|
|
56
|
+
outline: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.jh-backtop-fade-enter-active,
|
|
60
|
+
.jh-backtop-fade-leave-active {
|
|
61
|
+
transition: opacity var(--jh-transition-duration);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.jh-backtop-fade-enter-from,
|
|
65
|
+
.jh-backtop-fade-leave-to {
|
|
66
|
+
opacity: 0;
|
|
67
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './style.css'
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--jh-color-white: #ffffff;
|
|
3
|
+
--jh-color-black: #000000;
|
|
4
|
+
--jh-color-primary: #7958d5;
|
|
5
|
+
--jh-color-success: #67c23a;
|
|
6
|
+
--jh-color-warning: #e6a23c;
|
|
7
|
+
--jh-color-danger: #f56c6c;
|
|
8
|
+
--jh-color-info: #909399;
|
|
9
|
+
--jh-text-color-primary: #303133;
|
|
10
|
+
--jh-text-color-regular: #606266;
|
|
11
|
+
--jh-border-color: #dcdfe6;
|
|
12
|
+
--jh-border-color-light: #e4e7ed;
|
|
13
|
+
--jh-fill-color-light: #f5f7fa;
|
|
14
|
+
--jh-disabled-bg-color: #f5f7fa;
|
|
15
|
+
--jh-disabled-text-color: #a8abb2;
|
|
16
|
+
--jh-border-radius-base: 4px;
|
|
17
|
+
--jh-border-radius-round: 20px;
|
|
18
|
+
--jh-transition-duration: 0.2s;
|
|
19
|
+
--jh-font-size-base: 14px;
|
|
20
|
+
--jh-font-size-small: 12px;
|
|
21
|
+
--jh-font-size-large: 16px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
html.dark {
|
|
25
|
+
--jh-color-white: #1d1e1f;
|
|
26
|
+
--jh-color-black: #ffffff;
|
|
27
|
+
--jh-text-color-primary: #e5eaf3;
|
|
28
|
+
--jh-text-color-regular: #cfd3dc;
|
|
29
|
+
--jh-border-color: #4c4d4f;
|
|
30
|
+
--jh-border-color-light: #363637;
|
|
31
|
+
--jh-fill-color-light: #262727;
|
|
32
|
+
--jh-disabled-bg-color: #262727;
|
|
33
|
+
--jh-disabled-text-color: #6c6e72;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.jh-badge {
|
|
37
|
+
position: relative;
|
|
38
|
+
display: inline-flex;
|
|
39
|
+
vertical-align: middle;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.jh-badge__content {
|
|
43
|
+
position: absolute;
|
|
44
|
+
top: 0;
|
|
45
|
+
right: 0;
|
|
46
|
+
display: inline-flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
box-sizing: border-box;
|
|
50
|
+
min-width: 18px;
|
|
51
|
+
height: 18px;
|
|
52
|
+
padding: 0 6px;
|
|
53
|
+
border: 1px solid var(--jh-color-white);
|
|
54
|
+
border-radius: 999px;
|
|
55
|
+
background-color: var(--jh-color-danger);
|
|
56
|
+
color: var(--jh-color-white);
|
|
57
|
+
font-size: 12px;
|
|
58
|
+
line-height: 1;
|
|
59
|
+
white-space: nowrap;
|
|
60
|
+
transform: translate(50%, -50%);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.jh-badge__content.is-dot {
|
|
64
|
+
width: 8px;
|
|
65
|
+
min-width: 8px;
|
|
66
|
+
height: 8px;
|
|
67
|
+
padding: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.jh-badge__content--primary {
|
|
71
|
+
background-color: var(--jh-color-primary);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.jh-badge__content--success {
|
|
75
|
+
background-color: var(--jh-color-success);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.jh-badge__content--warning {
|
|
79
|
+
background-color: var(--jh-color-warning);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.jh-badge__content--danger {
|
|
83
|
+
background-color: var(--jh-color-danger);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.jh-badge__content--info {
|
|
87
|
+
background-color: var(--jh-color-info);
|
|
88
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './style.css'
|