@fangzhongya/fang-ui 0.0.29 → 0.0.30
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/box/index.css +12 -12
- package/dist/components/box/index.scss +1 -6
- package/dist/components/box-local/index.css +12 -12
- package/dist/components/dialog/src/index.cjs +5 -5
- package/dist/components/dialog/src/index.js +2 -2
- package/dist/components/dialog/style/index2.scss +1 -1
- package/dist/components/forms/index.d.ts +52 -149
- package/dist/components/forms/src/index.cjs +9 -8
- package/dist/components/forms/src/index.d.ts +102 -297
- package/dist/components/forms/src/index.js +2 -1
- package/dist/components/forms/style/index2.scss +6 -0
- package/dist/components/forms-div/style/index2.scss +1 -0
- package/dist/components/forms-item/src/index.cjs +6 -6
- package/dist/components/forms-item/src/index.js +1 -1
- package/dist/components/forms-item/style/index2.scss +4 -0
- package/dist/components/forms-items/style/index2.scss +2 -0
- package/dist/components/index.cjs +16 -14
- package/dist/components/index.d.ts +5 -4
- package/dist/components/index.js +10 -8
- package/dist/components/index.scss +6 -4
- package/dist/components/lists/common/img.cjs +1 -1
- package/dist/components/lists/common/img.d.ts +2 -0
- package/dist/components/lists/common/img.js +1 -1
- package/dist/components/lists/common/img2.cjs +5 -8
- package/dist/components/lists/common/img2.js +6 -9
- package/dist/components/menus/src/index.cjs +2 -2
- package/dist/components/menus/src/index.js +1 -1
- package/dist/components/menus/src/menu-ll.cjs +6 -6
- package/dist/components/menus/src/menu-ll.js +1 -1
- package/dist/components/menus/style/index2.scss +5 -0
- package/dist/components/page/index.css +245 -0
- package/dist/components/page/index.d.ts +3073 -0
- package/dist/components/page/index.scss +4 -0
- package/dist/components/page/src/index.cjs +16 -14
- package/dist/components/page/src/index.d.ts +5111 -0
- package/dist/components/page/src/index.js +5 -3
- package/dist/components/page/style/index2.scss +9 -0
- package/dist/components/{pagin → paging}/index.cjs +3 -3
- package/dist/components/{pagin → paging}/index.css +4 -3
- package/dist/components/{pagin → paging}/index.d.ts +2 -2
- package/dist/components/{pagin → paging}/index.js +3 -3
- package/dist/components/{pagin → paging}/index.scss +3 -2
- package/dist/components/{pagin → paging}/src/index.cjs +3 -3
- package/dist/components/{pagin → paging}/src/index.js +2 -2
- package/dist/components/paging/style/index2.scss +3 -0
- package/dist/components/tables/index.css +12 -15
- package/dist/components/tables/index.d.ts +1730 -0
- package/dist/components/tables/index.scss +17 -23
- package/dist/components/{el-tables → tables}/src/column.cjs +3 -3
- package/dist/components/{el-tables → tables}/src/column.js +2 -2
- package/dist/components/{el-tables → tables}/src/columns.cjs +3 -3
- package/dist/components/{el-tables → tables}/src/columns.js +3 -3
- package/dist/components/{el-tables → tables}/src/columns3.cjs +6 -6
- package/dist/components/{el-tables → tables}/src/columns3.js +2 -2
- package/dist/components/tables/src/index.cjs +158 -97
- package/dist/components/tables/src/index.d.ts +3103 -0
- package/dist/components/tables/src/index.js +158 -97
- package/dist/components/tables/style/index2.scss +5 -0
- package/dist/components/tables-form/index.cjs +1 -0
- package/dist/components/tables-form/index.js +1 -0
- package/dist/components/tables-form/index.scss +0 -0
- package/dist/components/tables-form/style/index.scss.cjs +1 -0
- package/dist/components/tables-form/style/index.scss.js +1 -0
- package/dist/components/tables-form/style/index2.scss +0 -0
- package/dist/components/{el-tables → tablesp}/index.cjs +3 -3
- package/dist/components/{tables-pagin → tablesp}/index.css +10 -9
- package/dist/components/tablesp/index.d.ts +1939 -0
- package/dist/components/{el-tables → tablesp}/index.js +3 -3
- package/dist/components/{tables-pagin → tablesp}/index.scss +5 -5
- package/dist/components/{tables-pagin → tablesp}/src/index.cjs +5 -5
- package/dist/components/tablesp/src/index.d.ts +3540 -0
- package/dist/components/{tables-pagin → tablesp}/src/index.js +5 -5
- package/dist/components/tablesp/style/index2.scss +4 -0
- package/dist/components/{vxe-tables → tabless}/index.cjs +3 -3
- package/dist/components/{el-tables → tabless}/index.css +15 -12
- package/dist/components/tabless/index.d.ts +1939 -0
- package/dist/components/{vxe-tables → tabless}/index.js +3 -3
- package/dist/components/tabless/index.scss +32 -0
- package/dist/components/tabless/src/index.cjs +118 -0
- package/dist/components/tabless/src/index.d.ts +3540 -0
- package/dist/components/tabless/src/index.js +118 -0
- package/dist/components/tabless/style/index2.scss +5 -0
- package/dist/components/{tables-pagin → tablesv}/index.cjs +3 -3
- package/dist/components/{vxe-tables → tablesv}/index.css +17 -17
- package/dist/components/{vxe-tables → tablesv}/index.d.ts +2 -2
- package/dist/components/{tables-pagin → tablesv}/index.js +3 -3
- package/dist/components/{vxe-tables → tablesv}/index.scss +2 -2
- package/dist/components/{vxe-tables → tablesv}/src/index.cjs +1 -1
- package/dist/components/{vxe-tables → tablesv}/src/index.js +1 -1
- package/dist/components/tablesv/style/index2.scss +1 -0
- package/dist/components/tablesvp/index.cjs +8 -0
- package/dist/components/tablesvp/index.css +130 -0
- package/dist/components/tablesvp/index.d.ts +480 -0
- package/dist/components/tablesvp/index.js +8 -0
- package/dist/components/tablesvp/index.scss +33 -0
- package/dist/components/tablesvp/src/data.d.ts +14 -0
- package/dist/components/tablesvp/src/index.cjs +86 -0
- package/dist/components/tablesvp/src/index.d.ts +630 -0
- package/dist/components/tablesvp/src/index.js +86 -0
- package/dist/components/tablesvp/src/index2.cjs +4 -0
- package/dist/components/tablesvp/src/index2.js +4 -0
- package/dist/components/tablesvp/style/index2.scss +4 -0
- package/dist/expand/{chunk-B6EXENNS.cjs → chunk-P5447R3I.cjs} +5 -4
- package/dist/expand/{chunk-Y7QESZWG.js → chunk-VZAQ2FM7.js} +5 -4
- package/dist/expand/components.cjs +5 -5
- package/dist/expand/components.js +1 -1
- package/dist/expand/config.cjs +2 -2
- package/dist/expand/config.js +1 -1
- package/dist/index.cjs +34 -32
- package/dist/index.css +130 -50
- package/dist/index.js +10 -8
- package/dist/index2.css +1 -1
- package/package.json +6 -6
- package/dist/components/el-tables/index.scss +0 -26
- package/dist/components/el-tables/src/index.cjs +0 -174
- package/dist/components/el-tables/src/index.js +0 -174
- /package/dist/components/{pagin → paging}/src/index.d.ts +0 -0
- /package/dist/components/{el-tables → paging}/src/index2.cjs +0 -0
- /package/dist/components/{el-tables → paging}/src/index2.js +0 -0
- /package/dist/components/{el-tables → tables}/src/column.d.ts +0 -0
- /package/dist/components/{el-tables → tables}/src/columns.d.ts +0 -0
- /package/dist/components/{el-tables → tables}/src/columns2.cjs +0 -0
- /package/dist/components/{el-tables → tables}/src/columns2.js +0 -0
- /package/dist/components/{el-tables → tables}/src/data.cjs +0 -0
- /package/dist/components/{el-tables → tables}/src/data.d.ts +0 -0
- /package/dist/components/{el-tables → tables}/src/data.js +0 -0
- /package/dist/components/{tables-pagin → tablesp}/src/data.d.ts +0 -0
- /package/dist/components/{pagin → tablesp}/src/index2.cjs +0 -0
- /package/dist/components/{pagin → tablesp}/src/index2.js +0 -0
- /package/dist/components/{tables-pagin → tabless}/src/index2.cjs +0 -0
- /package/dist/components/{tables-pagin → tabless}/src/index2.js +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/column.cjs +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/column.d.ts +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/column.js +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/columns.cjs +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/columns.d.ts +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/columns.js +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/columns2.cjs +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/columns2.js +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/columns3.cjs +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/columns3.js +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/data.cjs +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/data.d.ts +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/data.js +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/index.d.ts +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/index2.cjs +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/index2.js +0 -0
|
@@ -0,0 +1,480 @@
|
|
|
1
|
+
import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, Component, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, Plugin } from 'vue';
|
|
2
|
+
import { DefaultSort } from '../tablesv/src/data';
|
|
3
|
+
import { OnCleanup } from '@vue/reactivity';
|
|
4
|
+
declare const Tablesvp: {
|
|
5
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
6
|
+
configs: {
|
|
7
|
+
type: () => Config;
|
|
8
|
+
};
|
|
9
|
+
config: {
|
|
10
|
+
type: () => TableConfig;
|
|
11
|
+
default(): {};
|
|
12
|
+
};
|
|
13
|
+
list: {
|
|
14
|
+
type: {
|
|
15
|
+
(arrayLength: number): ListObj[];
|
|
16
|
+
(...items: ListObj[]): ListObj[];
|
|
17
|
+
new (arrayLength: number): ListObj[];
|
|
18
|
+
new (...items: ListObj[]): ListObj[];
|
|
19
|
+
isArray(arg: any): arg is any[];
|
|
20
|
+
readonly prototype: any[];
|
|
21
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
22
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
23
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
24
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
25
|
+
of<T>(...items: T[]): T[];
|
|
26
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
27
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
28
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
29
|
+
};
|
|
30
|
+
default(): never[];
|
|
31
|
+
};
|
|
32
|
+
load: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
options: {
|
|
37
|
+
type: ObjectConstructor;
|
|
38
|
+
default(): {};
|
|
39
|
+
};
|
|
40
|
+
compons: {
|
|
41
|
+
type: () => {
|
|
42
|
+
[key: string]: Component;
|
|
43
|
+
};
|
|
44
|
+
default(): {};
|
|
45
|
+
};
|
|
46
|
+
value: {
|
|
47
|
+
type: () => ObjAny;
|
|
48
|
+
};
|
|
49
|
+
ajax: {
|
|
50
|
+
type: (FunctionConstructor | StringConstructor)[];
|
|
51
|
+
};
|
|
52
|
+
param: {
|
|
53
|
+
type: ObjectConstructor;
|
|
54
|
+
default(): {};
|
|
55
|
+
};
|
|
56
|
+
ajaxConfig: {
|
|
57
|
+
type: ObjectConstructor;
|
|
58
|
+
};
|
|
59
|
+
onRequestAfter: {
|
|
60
|
+
type: FunctionConstructor;
|
|
61
|
+
};
|
|
62
|
+
onRequestBefore: {
|
|
63
|
+
type: FunctionConstructor;
|
|
64
|
+
};
|
|
65
|
+
}>> & Readonly<{}>, {
|
|
66
|
+
getSelection: typeof getSelection;
|
|
67
|
+
initData: (callback?: () => void) => void;
|
|
68
|
+
getList: (p?: ObjAny, callback?: (d?: ObjAny) => void) => void;
|
|
69
|
+
empty: () => void;
|
|
70
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
71
|
+
config: TableConfig;
|
|
72
|
+
param: Record<string, any>;
|
|
73
|
+
list: ListObj[];
|
|
74
|
+
options: Record<string, any>;
|
|
75
|
+
load: boolean;
|
|
76
|
+
compons: {
|
|
77
|
+
[key: string]: Component;
|
|
78
|
+
};
|
|
79
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
80
|
+
refTable: ({
|
|
81
|
+
$: ComponentInternalInstance;
|
|
82
|
+
$data: {};
|
|
83
|
+
$props: Partial<{
|
|
84
|
+
size: string;
|
|
85
|
+
value: ObjAny[];
|
|
86
|
+
list: ListObj[];
|
|
87
|
+
loading: boolean;
|
|
88
|
+
options: Record<string, any>;
|
|
89
|
+
height: string | number;
|
|
90
|
+
compons: {
|
|
91
|
+
[key: string]: Component;
|
|
92
|
+
};
|
|
93
|
+
defaultSort: DefaultSort;
|
|
94
|
+
adaptive: boolean;
|
|
95
|
+
}> & Omit<{
|
|
96
|
+
readonly size: string;
|
|
97
|
+
readonly value: ObjAny[];
|
|
98
|
+
readonly list: ListObj[];
|
|
99
|
+
readonly loading: boolean;
|
|
100
|
+
readonly options: Record<string, any>;
|
|
101
|
+
readonly height: string | number;
|
|
102
|
+
readonly compons: {
|
|
103
|
+
[key: string]: Component;
|
|
104
|
+
};
|
|
105
|
+
readonly defaultSort: DefaultSort;
|
|
106
|
+
readonly adaptive: boolean;
|
|
107
|
+
readonly lineHeight?: string | number | undefined;
|
|
108
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "size" | "value" | "list" | "loading" | "options" | "height" | "compons" | "defaultSort" | "adaptive">;
|
|
109
|
+
$attrs: {
|
|
110
|
+
[x: string]: unknown;
|
|
111
|
+
};
|
|
112
|
+
$refs: {
|
|
113
|
+
[x: string]: unknown;
|
|
114
|
+
} & {
|
|
115
|
+
tableRef: unknown;
|
|
116
|
+
};
|
|
117
|
+
$slots: Readonly<{
|
|
118
|
+
[name: string]: Slot<any> | undefined;
|
|
119
|
+
}>;
|
|
120
|
+
$root: ComponentPublicInstance | null;
|
|
121
|
+
$parent: ComponentPublicInstance | null;
|
|
122
|
+
$host: Element | null;
|
|
123
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
124
|
+
$el: HTMLDivElement;
|
|
125
|
+
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
126
|
+
defaultSort: {
|
|
127
|
+
type: () => DefaultSort;
|
|
128
|
+
default(): {};
|
|
129
|
+
};
|
|
130
|
+
height: {
|
|
131
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
132
|
+
default(): string;
|
|
133
|
+
};
|
|
134
|
+
loading: {
|
|
135
|
+
type: BooleanConstructor;
|
|
136
|
+
default: boolean;
|
|
137
|
+
};
|
|
138
|
+
adaptive: BooleanConstructor;
|
|
139
|
+
list: {
|
|
140
|
+
type: {
|
|
141
|
+
(arrayLength: number): ListObj[];
|
|
142
|
+
(...items: ListObj[]): ListObj[];
|
|
143
|
+
new (arrayLength: number): ListObj[];
|
|
144
|
+
new (...items: ListObj[]): ListObj[];
|
|
145
|
+
isArray(arg: any): arg is any[];
|
|
146
|
+
readonly prototype: any[];
|
|
147
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
148
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
149
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
150
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
151
|
+
of<T>(...items: T[]): T[];
|
|
152
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
153
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
154
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
155
|
+
};
|
|
156
|
+
default(): never[];
|
|
157
|
+
};
|
|
158
|
+
value: {
|
|
159
|
+
type: {
|
|
160
|
+
(arrayLength: number): ObjAny[];
|
|
161
|
+
(...items: ObjAny[]): ObjAny[];
|
|
162
|
+
new (arrayLength: number): ObjAny[];
|
|
163
|
+
new (...items: ObjAny[]): ObjAny[];
|
|
164
|
+
isArray(arg: any): arg is any[];
|
|
165
|
+
readonly prototype: any[];
|
|
166
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
167
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
168
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
169
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
170
|
+
of<T>(...items: T[]): T[];
|
|
171
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
172
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
173
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
174
|
+
};
|
|
175
|
+
default(): never[];
|
|
176
|
+
};
|
|
177
|
+
lineHeight: {
|
|
178
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
179
|
+
};
|
|
180
|
+
size: {
|
|
181
|
+
type: StringConstructor;
|
|
182
|
+
default(): string;
|
|
183
|
+
};
|
|
184
|
+
options: {
|
|
185
|
+
type: ObjectConstructor;
|
|
186
|
+
default(): {};
|
|
187
|
+
};
|
|
188
|
+
compons: {
|
|
189
|
+
type: () => {
|
|
190
|
+
[key: string]: Component;
|
|
191
|
+
};
|
|
192
|
+
default(): {};
|
|
193
|
+
};
|
|
194
|
+
}>> & Readonly<{}>, {
|
|
195
|
+
clearSelection: () => void;
|
|
196
|
+
clearRadioRow: () => void;
|
|
197
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
198
|
+
size: string;
|
|
199
|
+
value: ObjAny[];
|
|
200
|
+
list: ListObj[];
|
|
201
|
+
loading: boolean;
|
|
202
|
+
options: Record<string, any>;
|
|
203
|
+
height: string | number;
|
|
204
|
+
compons: {
|
|
205
|
+
[key: string]: Component;
|
|
206
|
+
};
|
|
207
|
+
defaultSort: DefaultSort;
|
|
208
|
+
adaptive: boolean;
|
|
209
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
210
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
211
|
+
created?: (() => void) | (() => void)[];
|
|
212
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
213
|
+
mounted?: (() => void) | (() => void)[];
|
|
214
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
215
|
+
updated?: (() => void) | (() => void)[];
|
|
216
|
+
activated?: (() => void) | (() => void)[];
|
|
217
|
+
deactivated?: (() => void) | (() => void)[];
|
|
218
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
219
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
220
|
+
destroyed?: (() => void) | (() => void)[];
|
|
221
|
+
unmounted?: (() => void) | (() => void)[];
|
|
222
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
223
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
224
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
225
|
+
};
|
|
226
|
+
$forceUpdate: () => void;
|
|
227
|
+
$nextTick: nextTick;
|
|
228
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
229
|
+
} & Readonly<{
|
|
230
|
+
size: string;
|
|
231
|
+
value: ObjAny[];
|
|
232
|
+
list: ListObj[];
|
|
233
|
+
loading: boolean;
|
|
234
|
+
options: Record<string, any>;
|
|
235
|
+
height: string | number;
|
|
236
|
+
compons: {
|
|
237
|
+
[key: string]: Component;
|
|
238
|
+
};
|
|
239
|
+
defaultSort: DefaultSort;
|
|
240
|
+
adaptive: boolean;
|
|
241
|
+
}> & Omit<Readonly< ExtractPropTypes<{
|
|
242
|
+
defaultSort: {
|
|
243
|
+
type: () => DefaultSort;
|
|
244
|
+
default(): {};
|
|
245
|
+
};
|
|
246
|
+
height: {
|
|
247
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
248
|
+
default(): string;
|
|
249
|
+
};
|
|
250
|
+
loading: {
|
|
251
|
+
type: BooleanConstructor;
|
|
252
|
+
default: boolean;
|
|
253
|
+
};
|
|
254
|
+
adaptive: BooleanConstructor;
|
|
255
|
+
list: {
|
|
256
|
+
type: {
|
|
257
|
+
(arrayLength: number): ListObj[];
|
|
258
|
+
(...items: ListObj[]): ListObj[];
|
|
259
|
+
new (arrayLength: number): ListObj[];
|
|
260
|
+
new (...items: ListObj[]): ListObj[];
|
|
261
|
+
isArray(arg: any): arg is any[];
|
|
262
|
+
readonly prototype: any[];
|
|
263
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
264
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
265
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
266
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
267
|
+
of<T>(...items: T[]): T[];
|
|
268
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
269
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
270
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
271
|
+
};
|
|
272
|
+
default(): never[];
|
|
273
|
+
};
|
|
274
|
+
value: {
|
|
275
|
+
type: {
|
|
276
|
+
(arrayLength: number): ObjAny[];
|
|
277
|
+
(...items: ObjAny[]): ObjAny[];
|
|
278
|
+
new (arrayLength: number): ObjAny[];
|
|
279
|
+
new (...items: ObjAny[]): ObjAny[];
|
|
280
|
+
isArray(arg: any): arg is any[];
|
|
281
|
+
readonly prototype: any[];
|
|
282
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
283
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
284
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
285
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
286
|
+
of<T>(...items: T[]): T[];
|
|
287
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
288
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
289
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
290
|
+
};
|
|
291
|
+
default(): never[];
|
|
292
|
+
};
|
|
293
|
+
lineHeight: {
|
|
294
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
295
|
+
};
|
|
296
|
+
size: {
|
|
297
|
+
type: StringConstructor;
|
|
298
|
+
default(): string;
|
|
299
|
+
};
|
|
300
|
+
options: {
|
|
301
|
+
type: ObjectConstructor;
|
|
302
|
+
default(): {};
|
|
303
|
+
};
|
|
304
|
+
compons: {
|
|
305
|
+
type: () => {
|
|
306
|
+
[key: string]: Component;
|
|
307
|
+
};
|
|
308
|
+
default(): {};
|
|
309
|
+
};
|
|
310
|
+
}>> & Readonly<{}>, "clearSelection" | ("size" | "value" | "list" | "loading" | "options" | "height" | "compons" | "defaultSort" | "adaptive") | "clearRadioRow"> & ShallowUnwrapRef<{
|
|
311
|
+
clearSelection: () => void;
|
|
312
|
+
clearRadioRow: () => void;
|
|
313
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
314
|
+
$slots: Partial<Record<string, (_: any) => any>> & {
|
|
315
|
+
'no-data'?(_: {}): any;
|
|
316
|
+
};
|
|
317
|
+
}) | null;
|
|
318
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
319
|
+
P: {};
|
|
320
|
+
B: {};
|
|
321
|
+
D: {};
|
|
322
|
+
C: {};
|
|
323
|
+
M: {};
|
|
324
|
+
Defaults: {};
|
|
325
|
+
}, Readonly< ExtractPropTypes<{
|
|
326
|
+
configs: {
|
|
327
|
+
type: () => Config;
|
|
328
|
+
};
|
|
329
|
+
config: {
|
|
330
|
+
type: () => TableConfig;
|
|
331
|
+
default(): {};
|
|
332
|
+
};
|
|
333
|
+
list: {
|
|
334
|
+
type: {
|
|
335
|
+
(arrayLength: number): ListObj[];
|
|
336
|
+
(...items: ListObj[]): ListObj[];
|
|
337
|
+
new (arrayLength: number): ListObj[];
|
|
338
|
+
new (...items: ListObj[]): ListObj[];
|
|
339
|
+
isArray(arg: any): arg is any[];
|
|
340
|
+
readonly prototype: any[];
|
|
341
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
342
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
343
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
344
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
345
|
+
of<T>(...items: T[]): T[];
|
|
346
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
347
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
348
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
349
|
+
};
|
|
350
|
+
default(): never[];
|
|
351
|
+
};
|
|
352
|
+
load: {
|
|
353
|
+
type: BooleanConstructor;
|
|
354
|
+
default: boolean;
|
|
355
|
+
};
|
|
356
|
+
options: {
|
|
357
|
+
type: ObjectConstructor;
|
|
358
|
+
default(): {};
|
|
359
|
+
};
|
|
360
|
+
compons: {
|
|
361
|
+
type: () => {
|
|
362
|
+
[key: string]: Component;
|
|
363
|
+
};
|
|
364
|
+
default(): {};
|
|
365
|
+
};
|
|
366
|
+
value: {
|
|
367
|
+
type: () => ObjAny;
|
|
368
|
+
};
|
|
369
|
+
ajax: {
|
|
370
|
+
type: (FunctionConstructor | StringConstructor)[];
|
|
371
|
+
};
|
|
372
|
+
param: {
|
|
373
|
+
type: ObjectConstructor;
|
|
374
|
+
default(): {};
|
|
375
|
+
};
|
|
376
|
+
ajaxConfig: {
|
|
377
|
+
type: ObjectConstructor;
|
|
378
|
+
};
|
|
379
|
+
onRequestAfter: {
|
|
380
|
+
type: FunctionConstructor;
|
|
381
|
+
};
|
|
382
|
+
onRequestBefore: {
|
|
383
|
+
type: FunctionConstructor;
|
|
384
|
+
};
|
|
385
|
+
}>> & Readonly<{}>, {
|
|
386
|
+
getSelection: typeof getSelection;
|
|
387
|
+
initData: (callback?: () => void) => void;
|
|
388
|
+
getList: (p?: ObjAny, callback?: (d?: ObjAny) => void) => void;
|
|
389
|
+
empty: () => void;
|
|
390
|
+
}, {}, {}, {}, {
|
|
391
|
+
config: TableConfig;
|
|
392
|
+
param: Record<string, any>;
|
|
393
|
+
list: ListObj[];
|
|
394
|
+
options: Record<string, any>;
|
|
395
|
+
load: boolean;
|
|
396
|
+
compons: {
|
|
397
|
+
[key: string]: Component;
|
|
398
|
+
};
|
|
399
|
+
}>;
|
|
400
|
+
__isFragment?: never;
|
|
401
|
+
__isTeleport?: never;
|
|
402
|
+
__isSuspense?: never;
|
|
403
|
+
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
404
|
+
configs: {
|
|
405
|
+
type: () => Config;
|
|
406
|
+
};
|
|
407
|
+
config: {
|
|
408
|
+
type: () => TableConfig;
|
|
409
|
+
default(): {};
|
|
410
|
+
};
|
|
411
|
+
list: {
|
|
412
|
+
type: {
|
|
413
|
+
(arrayLength: number): ListObj[];
|
|
414
|
+
(...items: ListObj[]): ListObj[];
|
|
415
|
+
new (arrayLength: number): ListObj[];
|
|
416
|
+
new (...items: ListObj[]): ListObj[];
|
|
417
|
+
isArray(arg: any): arg is any[];
|
|
418
|
+
readonly prototype: any[];
|
|
419
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
420
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
421
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
422
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
423
|
+
of<T>(...items: T[]): T[];
|
|
424
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
425
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
426
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
427
|
+
};
|
|
428
|
+
default(): never[];
|
|
429
|
+
};
|
|
430
|
+
load: {
|
|
431
|
+
type: BooleanConstructor;
|
|
432
|
+
default: boolean;
|
|
433
|
+
};
|
|
434
|
+
options: {
|
|
435
|
+
type: ObjectConstructor;
|
|
436
|
+
default(): {};
|
|
437
|
+
};
|
|
438
|
+
compons: {
|
|
439
|
+
type: () => {
|
|
440
|
+
[key: string]: Component;
|
|
441
|
+
};
|
|
442
|
+
default(): {};
|
|
443
|
+
};
|
|
444
|
+
value: {
|
|
445
|
+
type: () => ObjAny;
|
|
446
|
+
};
|
|
447
|
+
ajax: {
|
|
448
|
+
type: (FunctionConstructor | StringConstructor)[];
|
|
449
|
+
};
|
|
450
|
+
param: {
|
|
451
|
+
type: ObjectConstructor;
|
|
452
|
+
default(): {};
|
|
453
|
+
};
|
|
454
|
+
ajaxConfig: {
|
|
455
|
+
type: ObjectConstructor;
|
|
456
|
+
};
|
|
457
|
+
onRequestAfter: {
|
|
458
|
+
type: FunctionConstructor;
|
|
459
|
+
};
|
|
460
|
+
onRequestBefore: {
|
|
461
|
+
type: FunctionConstructor;
|
|
462
|
+
};
|
|
463
|
+
}>> & Readonly<{}>, {
|
|
464
|
+
getSelection: typeof getSelection;
|
|
465
|
+
initData: (callback?: () => void) => void;
|
|
466
|
+
getList: (p?: ObjAny, callback?: (d?: ObjAny) => void) => void;
|
|
467
|
+
empty: () => void;
|
|
468
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
469
|
+
config: TableConfig;
|
|
470
|
+
param: Record<string, any>;
|
|
471
|
+
list: ListObj[];
|
|
472
|
+
options: Record<string, any>;
|
|
473
|
+
load: boolean;
|
|
474
|
+
compons: {
|
|
475
|
+
[key: string]: Component;
|
|
476
|
+
};
|
|
477
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
478
|
+
$slots: Partial<Record<string, (_: any) => any>>;
|
|
479
|
+
}) & Plugin;
|
|
480
|
+
export { Tablesvp, Tablesvp as default };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@use '../css/common.scss' as *;
|
|
2
|
+
@use '../tablesv/index.scss' as *;
|
|
3
|
+
@use '../paging/index.scss' as *;
|
|
4
|
+
$tablesvp: 'tablesvp';
|
|
5
|
+
@include b($tablesvp) {
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: var(#{vdm('height', $tablesvp)});
|
|
8
|
+
// flex: 1;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
|
|
12
|
+
&-main {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
flex: 1;
|
|
16
|
+
width: 100%;
|
|
17
|
+
&.is-radio {
|
|
18
|
+
.#{e()}table__header {
|
|
19
|
+
.#{e()}table-column--selection {
|
|
20
|
+
.#{e()}checkbox {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
&-paginat {
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
.#{e()}pagination {
|
|
30
|
+
justify-content: flex-end;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* @title {h2} TablesPagin 输入框
|
|
4
|
+
* @text 目前完全继承 element-plus 中 el-tables-pagin
|
|
5
|
+
*/
|
|
6
|
+
export declare const dataProps: {};
|
|
7
|
+
export type DataProps = ExtractPublicPropTypes<typeof dataProps>;
|
|
8
|
+
export declare const dataEmits: never[];
|
|
9
|
+
export type DataEmits = typeof dataEmits;
|
|
10
|
+
export declare const dataSlot: {};
|
|
11
|
+
/**
|
|
12
|
+
* @expose refEl 获取当前组件在element-plus中暴露的方法
|
|
13
|
+
*/
|
|
14
|
+
export declare const dataExpose: {};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const index$1 = require("../../tablesv/index.cjs");
|
|
5
|
+
const index$2 = require("../../paging/index.cjs");
|
|
6
|
+
const pagin = require("../../tables/common/pagin.cjs");
|
|
7
|
+
const index = require("../../../hooks/cssname/index.cjs");
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
9
|
+
__name: "index",
|
|
10
|
+
props: pagin.dataProps,
|
|
11
|
+
emits: pagin.dataEmit,
|
|
12
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
13
|
+
const cs = index.useCssName("tablesvp");
|
|
14
|
+
const slots = vue.useSlots();
|
|
15
|
+
const props = __props;
|
|
16
|
+
const emit = __emit;
|
|
17
|
+
const refTable = vue.ref();
|
|
18
|
+
const {
|
|
19
|
+
height,
|
|
20
|
+
getSelection,
|
|
21
|
+
initData,
|
|
22
|
+
getData,
|
|
23
|
+
empty,
|
|
24
|
+
loading,
|
|
25
|
+
tableList,
|
|
26
|
+
tableConfig,
|
|
27
|
+
onRadioChange,
|
|
28
|
+
onSortChange,
|
|
29
|
+
onListEvents,
|
|
30
|
+
onChange,
|
|
31
|
+
pagconfig,
|
|
32
|
+
formEvent,
|
|
33
|
+
onSizeChange,
|
|
34
|
+
onCurrentChange,
|
|
35
|
+
paginat,
|
|
36
|
+
data
|
|
37
|
+
} = pagin.useInit(props, emit, refTable);
|
|
38
|
+
__expose({
|
|
39
|
+
getSelection,
|
|
40
|
+
initData,
|
|
41
|
+
getList: getData,
|
|
42
|
+
empty
|
|
43
|
+
});
|
|
44
|
+
return (_ctx, _cache) => {
|
|
45
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
46
|
+
class: vue.normalizeClass(vue.unref(cs).z()),
|
|
47
|
+
style: vue.normalizeStyle(vue.unref(cs).vdo({ height: vue.unref(height) }))
|
|
48
|
+
}, [
|
|
49
|
+
vue.createVNode(vue.unref(index$1.Tablesv), vue.mergeProps(vue.unref(tableConfig).config, vue.toHandlers(vue.unref(formEvent)), {
|
|
50
|
+
height: vue.unref(height) == "auto" ? "auto" : "100%",
|
|
51
|
+
ref_key: "refTable",
|
|
52
|
+
ref: refTable,
|
|
53
|
+
class: [vue.unref(cs).z("main")],
|
|
54
|
+
size: vue.unref(tableConfig).config?.size,
|
|
55
|
+
value: vue.unref(data).list,
|
|
56
|
+
list: vue.unref(tableList),
|
|
57
|
+
paginat: vue.unref(paginat),
|
|
58
|
+
loading: vue.unref(loading),
|
|
59
|
+
options: props.options,
|
|
60
|
+
compons: props.compons,
|
|
61
|
+
onSortChange: vue.unref(onSortChange),
|
|
62
|
+
onRadioChange: vue.unref(onRadioChange),
|
|
63
|
+
onSelectionChange: vue.unref(onChange),
|
|
64
|
+
onListEvents: vue.unref(onListEvents)
|
|
65
|
+
}), vue.createSlots({ _: 2 }, [
|
|
66
|
+
vue.renderList(Object.keys(vue.unref(slots)), (k, i) => {
|
|
67
|
+
return {
|
|
68
|
+
name: k,
|
|
69
|
+
fn: vue.withCtx((scope) => [
|
|
70
|
+
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)))
|
|
71
|
+
])
|
|
72
|
+
};
|
|
73
|
+
})
|
|
74
|
+
]), 1040, ["height", "class", "size", "value", "list", "paginat", "loading", "options", "compons", "onSortChange", "onRadioChange", "onSelectionChange", "onListEvents"]),
|
|
75
|
+
vue.unref(tableConfig).paginat?.is ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.Paging), vue.mergeProps({ key: 0 }, vue.unref(pagconfig), {
|
|
76
|
+
class: vue.unref(cs).z("paginat"),
|
|
77
|
+
paginat: vue.unref(paginat),
|
|
78
|
+
total: vue.unref(data).total,
|
|
79
|
+
onSizeChange: vue.unref(onSizeChange),
|
|
80
|
+
onCurrentChange: vue.unref(onCurrentChange)
|
|
81
|
+
}), null, 16, ["class", "paginat", "total", "onSizeChange", "onCurrentChange"])) : vue.createCommentVNode("", true)
|
|
82
|
+
], 6);
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
exports.default = _sfc_main;
|