el-plus 0.0.30 → 0.0.33
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/CHANGELOG.md +18 -0
- package/dist/index.full.js +283 -49
- package/dist/index.full.min.js +1 -1
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +1 -1
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +280 -47
- package/es/components/attachment/index.d.ts +174 -0
- package/es/components/attachment/index.mjs +8 -0
- package/es/components/attachment/index.mjs.map +1 -0
- package/es/components/attachment/src/attachment.d.ts +23 -0
- package/es/components/attachment/src/attachment.mjs +31 -0
- package/es/components/attachment/src/attachment.mjs.map +1 -0
- package/es/components/attachment/src/attachment.vue.d.ts +71 -0
- package/es/components/attachment/src/attachment.vue.mjs +6 -0
- package/es/components/attachment/src/attachment.vue.mjs.map +1 -0
- package/es/components/attachment/src/attachment.vue2.mjs +65 -0
- package/es/components/attachment/src/attachment.vue2.mjs.map +1 -0
- package/es/components/attachment/src/use-attachment.d.ts +212 -0
- package/es/components/attachment/src/use-attachment.mjs +80 -0
- package/es/components/attachment/src/use-attachment.mjs.map +1 -0
- package/es/components/attachment/style/css.d.ts +2 -0
- package/es/components/attachment/style/css.mjs +5 -0
- package/es/components/attachment/style/css.mjs.map +1 -0
- package/es/components/attachment/style/index.d.ts +2 -0
- package/es/components/attachment/style/index.mjs +5 -0
- package/es/components/attachment/style/index.mjs.map +1 -0
- package/es/components/form/src/hooks/use-form-item.mjs +9 -12
- package/es/components/form/src/hooks/use-form-item.mjs.map +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +2 -0
- package/es/components/index.mjs.map +1 -1
- package/es/components/search-list-page/index.d.ts +213 -192
- package/es/components/search-list-page/src/search-list-page.d.ts +1 -1
- package/es/components/search-list-page/src/search-list-page.vue.d.ts +54 -49
- package/es/components/search-list-page/src/use-search-list-page.d.ts +52 -47
- package/es/components/table/index.d.ts +51 -46
- package/es/components/table/src/table.d.ts +1 -1
- package/es/components/table/src/table.mjs.map +1 -1
- package/es/components/table/src/table.vue.d.ts +12 -11
- package/es/components/table/src/table.vue2.mjs +1 -2
- package/es/components/table/src/table.vue2.mjs.map +1 -1
- package/es/components/table/src/use-table.d.ts +1 -71
- package/es/components/table/src/use-table.mjs +7 -9
- package/es/components/table/src/use-table.mjs.map +1 -1
- package/es/components.mjs +3 -1
- package/es/components.mjs.map +1 -1
- package/es/index.mjs +2 -0
- package/es/index.mjs.map +1 -1
- package/es/package.json.mjs +1 -1
- package/es/utils/env.d.ts +2 -1
- package/es/utils/env.mjs +9 -1
- package/es/utils/env.mjs.map +1 -1
- package/es/utils/file.d.ts +2 -0
- package/es/utils/file.mjs +13 -3
- package/es/utils/file.mjs.map +1 -1
- package/es/utils/index.mjs +1 -1
- package/lib/components/attachment/index.d.ts +174 -0
- package/lib/components/attachment/index.js +14 -0
- package/lib/components/attachment/index.js.map +1 -0
- package/lib/components/attachment/src/attachment.d.ts +23 -0
- package/lib/components/attachment/src/attachment.js +33 -0
- package/lib/components/attachment/src/attachment.js.map +1 -0
- package/lib/components/attachment/src/attachment.vue.d.ts +71 -0
- package/lib/components/attachment/src/attachment.vue.js +10 -0
- package/lib/components/attachment/src/attachment.vue.js.map +1 -0
- package/lib/components/attachment/src/attachment.vue2.js +69 -0
- package/lib/components/attachment/src/attachment.vue2.js.map +1 -0
- package/lib/components/attachment/src/use-attachment.d.ts +212 -0
- package/lib/components/attachment/src/use-attachment.js +82 -0
- package/lib/components/attachment/src/use-attachment.js.map +1 -0
- package/lib/components/attachment/style/css.d.ts +2 -0
- package/lib/components/attachment/style/css.js +7 -0
- package/lib/components/attachment/style/css.js.map +1 -0
- package/lib/components/attachment/style/index.d.ts +2 -0
- package/lib/components/attachment/style/index.js +7 -0
- package/lib/components/attachment/style/index.js.map +1 -0
- package/lib/components/form/src/hooks/use-form-item.js +9 -12
- package/lib/components/form/src/hooks/use-form-item.js.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +4 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/search-list-page/index.d.ts +213 -192
- package/lib/components/search-list-page/src/search-list-page.d.ts +1 -1
- package/lib/components/search-list-page/src/search-list-page.vue.d.ts +54 -49
- package/lib/components/search-list-page/src/use-search-list-page.d.ts +52 -47
- package/lib/components/table/index.d.ts +51 -46
- package/lib/components/table/src/table.d.ts +1 -1
- package/lib/components/table/src/table.js.map +1 -1
- package/lib/components/table/src/table.vue.d.ts +12 -11
- package/lib/components/table/src/table.vue2.js +1 -2
- package/lib/components/table/src/table.vue2.js.map +1 -1
- package/lib/components/table/src/use-table.d.ts +1 -71
- package/lib/components/table/src/use-table.js +7 -9
- package/lib/components/table/src/use-table.js.map +1 -1
- package/lib/components.js +3 -1
- package/lib/components.js.map +1 -1
- package/lib/index.js +10 -6
- package/lib/index.js.map +1 -1
- package/lib/package.json.js +1 -1
- package/lib/utils/env.d.ts +2 -1
- package/lib/utils/env.js +9 -0
- package/lib/utils/env.js.map +1 -1
- package/lib/utils/file.d.ts +2 -0
- package/lib/utils/file.js +13 -1
- package/lib/utils/file.js.map +1 -1
- package/lib/utils/index.js +1 -0
- package/lib/utils/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -32,7 +32,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
32
32
|
readonly default: () => never[];
|
|
33
33
|
};
|
|
34
34
|
readonly formatColumns: {
|
|
35
|
-
readonly type: import("vue").PropType<import("el-plus/es/components/
|
|
35
|
+
readonly type: import("vue").PropType<import("el-plus/es/components/table").TableColumn[]>;
|
|
36
36
|
readonly default: () => never[];
|
|
37
37
|
};
|
|
38
38
|
readonly showSelectionCol: BooleanConstructor;
|
|
@@ -159,15 +159,16 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
159
159
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
160
160
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
161
161
|
}>[];
|
|
162
|
-
readonly formatColumns: Partial<
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
162
|
+
readonly formatColumns: Partial<import("element-plus").TableColumnCtx & {
|
|
163
|
+
[key: string]: any;
|
|
164
|
+
required: boolean | (() => boolean);
|
|
165
|
+
cellRequired: (scope: import("el-plus/es/components/table").TableScope) => boolean;
|
|
166
|
+
headerRender: import("element-plus").TableColumnCtx["renderHeader"];
|
|
167
|
+
disabled: boolean | ((scope: import("el-plus/es/components/table").TableScope) => boolean);
|
|
168
|
+
type: string;
|
|
169
|
+
props: Record<string, any>;
|
|
170
|
+
filter: boolean;
|
|
171
|
+
editable: boolean | ((formData: Record<string, any>) => void);
|
|
171
172
|
} & {} & {
|
|
172
173
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
173
174
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
@@ -266,15 +267,16 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
266
267
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
267
268
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
268
269
|
}>[];
|
|
269
|
-
readonly formatColumns: Partial<
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
270
|
+
readonly formatColumns: Partial<import("element-plus").TableColumnCtx & {
|
|
271
|
+
[key: string]: any;
|
|
272
|
+
required: boolean | (() => boolean);
|
|
273
|
+
cellRequired: (scope: import("el-plus/es/components/table").TableScope) => boolean;
|
|
274
|
+
headerRender: import("element-plus").TableColumnCtx["renderHeader"];
|
|
275
|
+
disabled: boolean | ((scope: import("el-plus/es/components/table").TableScope) => boolean);
|
|
276
|
+
type: string;
|
|
277
|
+
props: Record<string, any>;
|
|
278
|
+
filter: boolean;
|
|
279
|
+
editable: boolean | ((formData: Record<string, any>) => void);
|
|
278
280
|
} & {} & {
|
|
279
281
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
280
282
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
@@ -394,7 +396,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
394
396
|
default: () => never[];
|
|
395
397
|
};
|
|
396
398
|
readonly formatColumns: {
|
|
397
|
-
type: import("vue").PropType<import("el-plus/es/components/
|
|
399
|
+
type: import("vue").PropType<import("el-plus/es/components/table").TableColumn[]>;
|
|
398
400
|
default: () => never[];
|
|
399
401
|
};
|
|
400
402
|
readonly isInitSearch: {
|
|
@@ -1207,15 +1209,16 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
1207
1209
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
1208
1210
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
1209
1211
|
}>[];
|
|
1210
|
-
readonly formatColumns: Partial<
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1212
|
+
readonly formatColumns: Partial<import("element-plus").TableColumnCtx & {
|
|
1213
|
+
[key: string]: any;
|
|
1214
|
+
required: boolean | (() => boolean);
|
|
1215
|
+
cellRequired: (scope: import("el-plus/es/components/table").TableScope) => boolean;
|
|
1216
|
+
headerRender: import("element-plus").TableColumnCtx["renderHeader"];
|
|
1217
|
+
disabled: boolean | ((scope: import("el-plus/es/components/table").TableScope) => boolean);
|
|
1218
|
+
type: string;
|
|
1219
|
+
props: Record<string, any>;
|
|
1220
|
+
filter: boolean;
|
|
1221
|
+
editable: boolean | ((formData: Record<string, any>) => void);
|
|
1219
1222
|
} & {} & {
|
|
1220
1223
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
1221
1224
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
@@ -1334,15 +1337,16 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
1334
1337
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
1335
1338
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
1336
1339
|
}>[];
|
|
1337
|
-
readonly formatColumns: Partial<
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1340
|
+
readonly formatColumns: Partial<import("element-plus").TableColumnCtx & {
|
|
1341
|
+
[key: string]: any;
|
|
1342
|
+
required: boolean | (() => boolean);
|
|
1343
|
+
cellRequired: (scope: import("el-plus/es/components/table").TableScope) => boolean;
|
|
1344
|
+
headerRender: import("element-plus").TableColumnCtx["renderHeader"];
|
|
1345
|
+
disabled: boolean | ((scope: import("el-plus/es/components/table").TableScope) => boolean);
|
|
1346
|
+
type: string;
|
|
1347
|
+
props: Record<string, any>;
|
|
1348
|
+
filter: boolean;
|
|
1349
|
+
editable: boolean | ((formData: Record<string, any>) => void);
|
|
1346
1350
|
} & {} & {
|
|
1347
1351
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
1348
1352
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
@@ -1405,7 +1409,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
1405
1409
|
default: () => never[];
|
|
1406
1410
|
};
|
|
1407
1411
|
readonly formatColumns: {
|
|
1408
|
-
type: import("vue").PropType<import("el-plus/es/components/
|
|
1412
|
+
type: import("vue").PropType<import("el-plus/es/components/table").TableColumn[]>;
|
|
1409
1413
|
default: () => never[];
|
|
1410
1414
|
};
|
|
1411
1415
|
readonly isInitSearch: {
|
|
@@ -2438,7 +2442,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
2438
2442
|
readonly default: () => never[];
|
|
2439
2443
|
};
|
|
2440
2444
|
readonly formatColumns: {
|
|
2441
|
-
readonly type: import("vue").PropType<import("el-plus/es/components/
|
|
2445
|
+
readonly type: import("vue").PropType<import("el-plus/es/components/table").TableColumn[]>;
|
|
2442
2446
|
readonly default: () => never[];
|
|
2443
2447
|
};
|
|
2444
2448
|
readonly showSelectionCol: BooleanConstructor;
|
|
@@ -2516,15 +2520,16 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
2516
2520
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
2517
2521
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
2518
2522
|
}>[];
|
|
2519
|
-
readonly formatColumns: Partial<
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2523
|
+
readonly formatColumns: Partial<import("element-plus").TableColumnCtx & {
|
|
2524
|
+
[key: string]: any;
|
|
2525
|
+
required: boolean | (() => boolean);
|
|
2526
|
+
cellRequired: (scope: import("el-plus/es/components/table").TableScope) => boolean;
|
|
2527
|
+
headerRender: import("element-plus").TableColumnCtx["renderHeader"];
|
|
2528
|
+
disabled: boolean | ((scope: import("el-plus/es/components/table").TableScope) => boolean);
|
|
2529
|
+
type: string;
|
|
2530
|
+
props: Record<string, any>;
|
|
2531
|
+
filter: boolean;
|
|
2532
|
+
editable: boolean | ((formData: Record<string, any>) => void);
|
|
2528
2533
|
} & {} & {
|
|
2529
2534
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
2530
2535
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
@@ -42,15 +42,16 @@ export declare const useSearchListPage: (props: SearchListPageProps, config?: {}
|
|
|
42
42
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
43
43
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
44
44
|
}>[] | undefined;
|
|
45
|
-
formatColumns: Partial<
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
45
|
+
formatColumns: Partial<import("element-plus").TableColumnCtx & {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
required: boolean | (() => boolean);
|
|
48
|
+
cellRequired: (scope: import("el-plus/es/components/table").TableScope) => boolean;
|
|
49
|
+
headerRender: import("element-plus").TableColumnCtx["renderHeader"];
|
|
50
|
+
disabled: boolean | ((scope: import("el-plus/es/components/table").TableScope) => boolean);
|
|
51
|
+
type: string;
|
|
52
|
+
props: Record<string, any>;
|
|
53
|
+
filter: boolean;
|
|
54
|
+
editable: boolean | ((formData: Record<string, any>) => void);
|
|
54
55
|
} & {} & {
|
|
55
56
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
56
57
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
@@ -159,15 +160,16 @@ export declare const useSearchListPage: (props: SearchListPageProps, config?: {}
|
|
|
159
160
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
160
161
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
161
162
|
}>[];
|
|
162
|
-
readonly formatColumns: Partial<
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
163
|
+
readonly formatColumns: Partial<import("element-plus").TableColumnCtx & {
|
|
164
|
+
[key: string]: any;
|
|
165
|
+
required: boolean | (() => boolean);
|
|
166
|
+
cellRequired: (scope: import("el-plus/es/components/table").TableScope) => boolean;
|
|
167
|
+
headerRender: import("element-plus").TableColumnCtx["renderHeader"];
|
|
168
|
+
disabled: boolean | ((scope: import("el-plus/es/components/table").TableScope) => boolean);
|
|
169
|
+
type: string;
|
|
170
|
+
props: Record<string, any>;
|
|
171
|
+
filter: boolean;
|
|
172
|
+
editable: boolean | ((formData: Record<string, any>) => void);
|
|
171
173
|
} & {} & {
|
|
172
174
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
173
175
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
@@ -266,15 +268,16 @@ export declare const useSearchListPage: (props: SearchListPageProps, config?: {}
|
|
|
266
268
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
267
269
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
268
270
|
}>[];
|
|
269
|
-
readonly formatColumns: Partial<
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
271
|
+
readonly formatColumns: Partial<import("element-plus").TableColumnCtx & {
|
|
272
|
+
[key: string]: any;
|
|
273
|
+
required: boolean | (() => boolean);
|
|
274
|
+
cellRequired: (scope: import("el-plus/es/components/table").TableScope) => boolean;
|
|
275
|
+
headerRender: import("element-plus").TableColumnCtx["renderHeader"];
|
|
276
|
+
disabled: boolean | ((scope: import("el-plus/es/components/table").TableScope) => boolean);
|
|
277
|
+
type: string;
|
|
278
|
+
props: Record<string, any>;
|
|
279
|
+
filter: boolean;
|
|
280
|
+
editable: boolean | ((formData: Record<string, any>) => void);
|
|
278
281
|
} & {} & {
|
|
279
282
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
280
283
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
@@ -394,7 +397,7 @@ export declare const useSearchListPage: (props: SearchListPageProps, config?: {}
|
|
|
394
397
|
default: () => never[];
|
|
395
398
|
};
|
|
396
399
|
readonly formatColumns: {
|
|
397
|
-
type: import("vue").PropType<import("el-plus/es/components/
|
|
400
|
+
type: import("vue").PropType<import("el-plus/es/components/table").TableColumn[]>;
|
|
398
401
|
default: () => never[];
|
|
399
402
|
};
|
|
400
403
|
readonly isInitSearch: {
|
|
@@ -1207,15 +1210,16 @@ export declare const useSearchListPage: (props: SearchListPageProps, config?: {}
|
|
|
1207
1210
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
1208
1211
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
1209
1212
|
}>[];
|
|
1210
|
-
readonly formatColumns: Partial<
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1213
|
+
readonly formatColumns: Partial<import("element-plus").TableColumnCtx & {
|
|
1214
|
+
[key: string]: any;
|
|
1215
|
+
required: boolean | (() => boolean);
|
|
1216
|
+
cellRequired: (scope: import("el-plus/es/components/table").TableScope) => boolean;
|
|
1217
|
+
headerRender: import("element-plus").TableColumnCtx["renderHeader"];
|
|
1218
|
+
disabled: boolean | ((scope: import("el-plus/es/components/table").TableScope) => boolean);
|
|
1219
|
+
type: string;
|
|
1220
|
+
props: Record<string, any>;
|
|
1221
|
+
filter: boolean;
|
|
1222
|
+
editable: boolean | ((formData: Record<string, any>) => void);
|
|
1219
1223
|
} & {} & {
|
|
1220
1224
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
1221
1225
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
@@ -1334,15 +1338,16 @@ export declare const useSearchListPage: (props: SearchListPageProps, config?: {}
|
|
|
1334
1338
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
1335
1339
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
1336
1340
|
}>[];
|
|
1337
|
-
readonly formatColumns: Partial<
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1341
|
+
readonly formatColumns: Partial<import("element-plus").TableColumnCtx & {
|
|
1342
|
+
[key: string]: any;
|
|
1343
|
+
required: boolean | (() => boolean);
|
|
1344
|
+
cellRequired: (scope: import("el-plus/es/components/table").TableScope) => boolean;
|
|
1345
|
+
headerRender: import("element-plus").TableColumnCtx["renderHeader"];
|
|
1346
|
+
disabled: boolean | ((scope: import("el-plus/es/components/table").TableScope) => boolean);
|
|
1347
|
+
type: string;
|
|
1348
|
+
props: Record<string, any>;
|
|
1349
|
+
filter: boolean;
|
|
1350
|
+
editable: boolean | ((formData: Record<string, any>) => void);
|
|
1346
1351
|
} & {} & {
|
|
1347
1352
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
1348
1353
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
@@ -1405,7 +1410,7 @@ export declare const useSearchListPage: (props: SearchListPageProps, config?: {}
|
|
|
1405
1410
|
default: () => never[];
|
|
1406
1411
|
};
|
|
1407
1412
|
readonly formatColumns: {
|
|
1408
|
-
type: import("vue").PropType<import("el-plus/es/components/
|
|
1413
|
+
type: import("vue").PropType<import("el-plus/es/components/table").TableColumn[]>;
|
|
1409
1414
|
default: () => never[];
|
|
1410
1415
|
};
|
|
1411
1416
|
readonly isInitSearch: {
|
|
@@ -66,15 +66,16 @@ export declare const EpTable: {
|
|
|
66
66
|
default: () => never[];
|
|
67
67
|
};
|
|
68
68
|
readonly formatColumns: {
|
|
69
|
-
type: import("vue").PropType<Partial<
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
69
|
+
type: import("vue").PropType<Partial<import("element-plus").TableColumnCtx & {
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
required: boolean | (() => boolean);
|
|
72
|
+
cellRequired: (scope: import("./src/table").TableScope) => boolean;
|
|
73
|
+
headerRender: import("element-plus").TableColumnCtx["renderHeader"];
|
|
74
|
+
disabled: boolean | ((scope: import("./src/table").TableScope) => boolean);
|
|
75
|
+
type: string;
|
|
76
|
+
props: Record<string, any>;
|
|
77
|
+
filter: boolean;
|
|
78
|
+
editable: boolean | ((formData: Record<string, any>) => void);
|
|
78
79
|
} & {} & {
|
|
79
80
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
80
81
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
@@ -891,15 +892,16 @@ export declare const EpTable: {
|
|
|
891
892
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
892
893
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
893
894
|
}>[];
|
|
894
|
-
readonly formatColumns: Partial<
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
895
|
+
readonly formatColumns: Partial<import("element-plus").TableColumnCtx & {
|
|
896
|
+
[key: string]: any;
|
|
897
|
+
required: boolean | (() => boolean);
|
|
898
|
+
cellRequired: (scope: import("./src/table").TableScope) => boolean;
|
|
899
|
+
headerRender: import("element-plus").TableColumnCtx["renderHeader"];
|
|
900
|
+
disabled: boolean | ((scope: import("./src/table").TableScope) => boolean);
|
|
901
|
+
type: string;
|
|
902
|
+
props: Record<string, any>;
|
|
903
|
+
filter: boolean;
|
|
904
|
+
editable: boolean | ((formData: Record<string, any>) => void);
|
|
903
905
|
} & {} & {
|
|
904
906
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
905
907
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
@@ -994,15 +996,16 @@ export declare const EpTable: {
|
|
|
994
996
|
default: () => never[];
|
|
995
997
|
};
|
|
996
998
|
readonly formatColumns: {
|
|
997
|
-
type: import("vue").PropType<Partial<
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
999
|
+
type: import("vue").PropType<Partial<import("element-plus").TableColumnCtx & {
|
|
1000
|
+
[key: string]: any;
|
|
1001
|
+
required: boolean | (() => boolean);
|
|
1002
|
+
cellRequired: (scope: import("./src/table").TableScope) => boolean;
|
|
1003
|
+
headerRender: import("element-plus").TableColumnCtx["renderHeader"];
|
|
1004
|
+
disabled: boolean | ((scope: import("./src/table").TableScope) => boolean);
|
|
1005
|
+
type: string;
|
|
1006
|
+
props: Record<string, any>;
|
|
1007
|
+
filter: boolean;
|
|
1008
|
+
editable: boolean | ((formData: Record<string, any>) => void);
|
|
1006
1009
|
} & {} & {
|
|
1007
1010
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
1008
1011
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
@@ -1819,15 +1822,16 @@ export declare const EpTable: {
|
|
|
1819
1822
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
1820
1823
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
1821
1824
|
}>[];
|
|
1822
|
-
readonly formatColumns: Partial<
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1825
|
+
readonly formatColumns: Partial<import("element-plus").TableColumnCtx & {
|
|
1826
|
+
[key: string]: any;
|
|
1827
|
+
required: boolean | (() => boolean);
|
|
1828
|
+
cellRequired: (scope: import("./src/table").TableScope) => boolean;
|
|
1829
|
+
headerRender: import("element-plus").TableColumnCtx["renderHeader"];
|
|
1830
|
+
disabled: boolean | ((scope: import("./src/table").TableScope) => boolean);
|
|
1831
|
+
type: string;
|
|
1832
|
+
props: Record<string, any>;
|
|
1833
|
+
filter: boolean;
|
|
1834
|
+
editable: boolean | ((formData: Record<string, any>) => void);
|
|
1831
1835
|
} & {} & {
|
|
1832
1836
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
1833
1837
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
@@ -1894,7 +1898,7 @@ export declare const EpTable: {
|
|
|
1894
1898
|
default: () => never[];
|
|
1895
1899
|
};
|
|
1896
1900
|
readonly formatColumns: {
|
|
1897
|
-
type: import("vue").PropType<import("
|
|
1901
|
+
type: import("vue").PropType<import("./src/table").TableColumn[]>;
|
|
1898
1902
|
default: () => never[];
|
|
1899
1903
|
};
|
|
1900
1904
|
readonly isInitSearch: {
|
|
@@ -2707,15 +2711,16 @@ export declare const EpTable: {
|
|
|
2707
2711
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
2708
2712
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
2709
2713
|
}>[];
|
|
2710
|
-
readonly formatColumns: Partial<
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2714
|
+
readonly formatColumns: Partial<import("element-plus").TableColumnCtx & {
|
|
2715
|
+
[key: string]: any;
|
|
2716
|
+
required: boolean | (() => boolean);
|
|
2717
|
+
cellRequired: (scope: import("./src/table").TableScope) => boolean;
|
|
2718
|
+
headerRender: import("element-plus").TableColumnCtx["renderHeader"];
|
|
2719
|
+
disabled: boolean | ((scope: import("./src/table").TableScope) => boolean);
|
|
2720
|
+
type: string;
|
|
2721
|
+
props: Record<string, any>;
|
|
2722
|
+
filter: boolean;
|
|
2723
|
+
editable: boolean | ((formData: Record<string, any>) => void);
|
|
2719
2724
|
} & {} & {
|
|
2720
2725
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
2721
2726
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.mjs","sources":["../../../../../../packages/components/table/src/table.ts"],"sourcesContent":["import type { PropType, ExtractPublicPropTypes } from 'vue'\nimport elTableProps from 'element-plus/es/components/table/src/table/defaults'\nimport { ElTable } from 'element-plus'\nimport { apiProps, type VisibleProps } from '@el-plus/utils/props'\nimport type { WithOnPrefixAndCamelCase } from '@el-plus/types'\nimport type {\n TableColumnCtx,\n PaginationProps,\n PaginationEmits,\n} from 'element-plus'\nimport type { ButtonProps } from '@el-plus/components/buttons'\nimport { customColumnProps } from '@el-plus/components/custom-column'\nconst inheritTableProps = {\n ...elTableProps,\n // Table 的尺寸\n size: {\n ...elTableProps.size,\n default: 'default',\n },\n // 是否带有纵向边框\n border: {\n ...elTableProps.border,\n default: true,\n },\n // 表头样式\n headerCellStyle: {\n ...elTableProps.headerCellStyle,\n default: () => ({\n background: '#EEEFF3',\n // textAlign: 'center',\n fontSize: '14px',\n color: '#505050',\n }),\n },\n}\nexport type TableColumn = Partial<\n TableColumnCtx & {\n required: boolean | (() => boolean)\n cellRequired: (scope: TableScope) => boolean\n headerRender: TableColumnCtx['renderHeader']\n disabled: boolean | ((scope: TableScope) => boolean)\n type: string\n props: Record<string, any> // eslint-disable-line @typescript-eslint/no-explicit-any\n filter: boolean // 是否显示筛选\n editable: boolean | ((formData: Record<string, any>) => void) // 是否可批量编辑\n [key: string]: any\n } & VisibleProps\n>\nexport type TableScope<\n T extends Record<string, unknown> = Record<string, unknown>,\n> = {\n column: TableColumnCtx<T>\n row: T\n $index: number\n store: unknown\n _self: unknown\n}\nconst expandTableProps = {\n ...apiProps,\n columns: {\n type: Array as PropType<TableColumn[]>,\n default: () => [],\n },\n // 是否显示复选勾选列\n showSelectionCol: Boolean,\n // 是否显示单选勾选列\n showSingleSelectionCol: Boolean,\n // 是否显示序号列\n showIndexCol: {\n type: Boolean,\n default: true,\n },\n // 对齐方式\n align: {\n type: String as PropType<'left' | 'center' | 'right'>,\n default: 'center',\n },\n // 最小宽度\n minWidth: {\n type: [Number, String] as PropType<TableColumnCtx['minWidth']>,\n },\n // 操作列宽度\n actionColWidth: {\n type: [Number, String] as PropType<TableColumnCtx['width']>,\n default: 200,\n },\n // 序号列自定义\n indexFormatter: {\n type: [Number, Function] as PropType<TableColumnCtx['index']>,\n },\n disabled: Boolean,\n reserveSelection: Boolean,\n selectable: {\n type: Function as PropType<TableColumnCtx['selectable']>,\n },\n paginationProps: {\n type: Object as PropType<\n Partial<PaginationProps & WithOnPrefixAndCamelCase<PaginationEmits>>\n >,\n default: () => ({}),\n },\n showPagination: Boolean,\n isFrontPage: Boolean,\n // 操作列\n actionButtons: {\n type: Array as PropType<ButtonProps[]>,\n default: () => [],\n },\n // 格式化列\n formatColumns: {\n type: Array as PropType<
|
|
1
|
+
{"version":3,"file":"table.mjs","sources":["../../../../../../packages/components/table/src/table.ts"],"sourcesContent":["import type { PropType, ExtractPublicPropTypes } from 'vue'\nimport elTableProps from 'element-plus/es/components/table/src/table/defaults'\nimport { ElTable } from 'element-plus'\nimport { apiProps, type VisibleProps } from '@el-plus/utils/props'\nimport type { WithOnPrefixAndCamelCase } from '@el-plus/types'\nimport type {\n TableColumnCtx,\n PaginationProps,\n PaginationEmits,\n} from 'element-plus'\nimport type { ButtonProps } from '@el-plus/components/buttons'\nimport { customColumnProps } from '@el-plus/components/custom-column'\nconst inheritTableProps = {\n ...elTableProps,\n // Table 的尺寸\n size: {\n ...elTableProps.size,\n default: 'default',\n },\n // 是否带有纵向边框\n border: {\n ...elTableProps.border,\n default: true,\n },\n // 表头样式\n headerCellStyle: {\n ...elTableProps.headerCellStyle,\n default: () => ({\n background: '#EEEFF3',\n // textAlign: 'center',\n fontSize: '14px',\n color: '#505050',\n }),\n },\n}\nexport type TableColumn = Partial<\n TableColumnCtx & {\n required: boolean | (() => boolean)\n cellRequired: (scope: TableScope) => boolean\n headerRender: TableColumnCtx['renderHeader']\n disabled: boolean | ((scope: TableScope) => boolean)\n type: string\n props: Record<string, any> // eslint-disable-line @typescript-eslint/no-explicit-any\n filter: boolean // 是否显示筛选\n editable: boolean | ((formData: Record<string, any>) => void) // 是否可批量编辑\n [key: string]: any\n } & VisibleProps\n>\nexport type TableScope<\n T extends Record<string, unknown> = Record<string, unknown>,\n> = {\n column: TableColumnCtx<T>\n row: T\n $index: number\n store: unknown\n _self: unknown\n}\nconst expandTableProps = {\n ...apiProps,\n columns: {\n type: Array as PropType<TableColumn[]>,\n default: () => [],\n },\n // 是否显示复选勾选列\n showSelectionCol: Boolean,\n // 是否显示单选勾选列\n showSingleSelectionCol: Boolean,\n // 是否显示序号列\n showIndexCol: {\n type: Boolean,\n default: true,\n },\n // 对齐方式\n align: {\n type: String as PropType<'left' | 'center' | 'right'>,\n default: 'center',\n },\n // 最小宽度\n minWidth: {\n type: [Number, String] as PropType<TableColumnCtx['minWidth']>,\n },\n // 操作列宽度\n actionColWidth: {\n type: [Number, String] as PropType<TableColumnCtx['width']>,\n default: 200,\n },\n // 序号列自定义\n indexFormatter: {\n type: [Number, Function] as PropType<TableColumnCtx['index']>,\n },\n disabled: Boolean,\n reserveSelection: Boolean,\n selectable: {\n type: Function as PropType<TableColumnCtx['selectable']>,\n },\n paginationProps: {\n type: Object as PropType<\n Partial<PaginationProps & WithOnPrefixAndCamelCase<PaginationEmits>>\n >,\n default: () => ({}),\n },\n showPagination: Boolean,\n isFrontPage: Boolean,\n // 操作列\n actionButtons: {\n type: Array as PropType<ButtonProps[]>,\n default: () => [],\n },\n // 格式化列\n formatColumns: {\n type: Array as PropType<TableColumn[]>,\n default: () => [],\n },\n // 是否初始化加载数据\n isInitSearch: {\n type: Boolean,\n default: true,\n },\n // 自定义列模块\n customColumnModule: {\n ...customColumnProps.module,\n },\n}\n\nexport const tableProps = {\n ...inheritTableProps,\n ...expandTableProps,\n} as const\nexport type TableProps = ExtractPublicPropTypes<typeof tableProps>\nexport const expandTablePropsKeys = Object.keys(expandTableProps)\n\nexport const tableEmits = [...ElTable.emits!, 'single-selection-change']\nexport type TableEmits = typeof tableEmits\nexport const tableEmitsKeys = tableEmits\n"],"names":[],"mappings":";;;;;AAYA,MAAM,iBAAA,GAAoB;AAAA,EACxB,GAAG,YAAA;AAAA;AAAA,EAEH,IAAA,EAAM;AAAA,IACJ,GAAG,YAAA,CAAa,IAAA;AAAA,IAChB,OAAA,EAAS;AAAA,GACX;AAAA;AAAA,EAEA,MAAA,EAAQ;AAAA,IACN,GAAG,YAAA,CAAa,MAAA;AAAA,IAChB,OAAA,EAAS;AAAA,GACX;AAAA;AAAA,EAEA,eAAA,EAAiB;AAAA,IACf,GAAG,YAAA,CAAa,eAAA;AAAA,IAChB,SAAS,OAAO;AAAA,MACd,UAAA,EAAY,SAAA;AAAA;AAAA,MAEZ,QAAA,EAAU,MAAA;AAAA,MACV,KAAA,EAAO;AAAA,KACT;AAAA;AAEJ,CAAA;AAuBA,MAAM,gBAAA,GAAmB;AAAA,EACvB,GAAG,QAAA;AAAA,EACH,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,KAAA;AAAA,IACN,OAAA,EAAS,MAAM;AAAC,GAClB;AAAA;AAAA,EAEA,gBAAA,EAAkB,OAAA;AAAA;AAAA,EAElB,sBAAA,EAAwB,OAAA;AAAA;AAAA,EAExB,YAAA,EAAc;AAAA,IACZ,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA,EAEA,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA,EAEA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM;AAAA,GACvB;AAAA;AAAA,EAEA,cAAA,EAAgB;AAAA,IACd,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,IACrB,OAAA,EAAS;AAAA,GACX;AAAA;AAAA,EAEA,cAAA,EAAgB;AAAA,IACd,IAAA,EAAM,CAAC,MAAA,EAAQ,QAAQ;AAAA,GACzB;AAAA,EACA,QAAA,EAAU,OAAA;AAAA,EACV,gBAAA,EAAkB,OAAA;AAAA,EAClB,UAAA,EAAY;AAAA,IACV,IAAA,EAAM;AAAA,GACR;AAAA,EACA,eAAA,EAAiB;AAAA,IACf,IAAA,EAAM,MAAA;AAAA,IAGN,OAAA,EAAS,OAAO,EAAC;AAAA,GACnB;AAAA,EACA,cAAA,EAAgB,OAAA;AAAA,EAChB,WAAA,EAAa,OAAA;AAAA;AAAA,EAEb,aAAA,EAAe;AAAA,IACb,IAAA,EAAM,KAAA;AAAA,IACN,OAAA,EAAS,MAAM;AAAC,GAClB;AAAA;AAAA,EAEA,aAAA,EAAe;AAAA,IACb,IAAA,EAAM,KAAA;AAAA,IACN,OAAA,EAAS,MAAM;AAAC,GAClB;AAAA;AAAA,EAEA,YAAA,EAAc;AAAA,IACZ,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA,EAEA,kBAAA,EAAoB;AAAA,IAClB,GAAG,iBAAA,CAAkB;AAAA;AAEzB,CAAA;AAEO,MAAM,UAAA,GAAa;AAAA,EACxB,GAAG,iBAAA;AAAA,EACH,GAAG;AACL;AAEO,MAAM,oBAAA,GAAuB,MAAA,CAAO,IAAA,CAAK,gBAAgB;AAEzD,MAAM,UAAA,GAAa,CAAC,GAAG,OAAA,CAAQ,OAAQ,yBAAyB;AAEhE,MAAM,cAAA,GAAiB;;;;"}
|
|
@@ -43,7 +43,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
43
43
|
default: () => never[];
|
|
44
44
|
};
|
|
45
45
|
readonly formatColumns: {
|
|
46
|
-
type: import("vue").PropType<import("
|
|
46
|
+
type: import("vue").PropType<import("./table").TableColumn[]>;
|
|
47
47
|
default: () => never[];
|
|
48
48
|
};
|
|
49
49
|
readonly isInitSearch: {
|
|
@@ -820,7 +820,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
820
820
|
default: () => never[];
|
|
821
821
|
};
|
|
822
822
|
readonly formatColumns: {
|
|
823
|
-
type: import("vue").PropType<import("
|
|
823
|
+
type: import("vue").PropType<import("./table").TableColumn[]>;
|
|
824
824
|
default: () => never[];
|
|
825
825
|
};
|
|
826
826
|
readonly isInitSearch: {
|
|
@@ -1625,15 +1625,16 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
1625
1625
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
1626
1626
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
1627
1627
|
}>[];
|
|
1628
|
-
readonly formatColumns: Partial<
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1628
|
+
readonly formatColumns: Partial<import("element-plus").TableColumnCtx & {
|
|
1629
|
+
[key: string]: any;
|
|
1630
|
+
required: boolean | (() => boolean);
|
|
1631
|
+
cellRequired: (scope: import("./table").TableScope) => boolean;
|
|
1632
|
+
headerRender: import("element-plus").TableColumnCtx["renderHeader"];
|
|
1633
|
+
disabled: boolean | ((scope: import("./table").TableScope) => boolean);
|
|
1634
|
+
type: string;
|
|
1635
|
+
props: Record<string, any>;
|
|
1636
|
+
filter: boolean;
|
|
1637
|
+
editable: boolean | ((formData: Record<string, any>) => void);
|
|
1637
1638
|
} & {} & {
|
|
1638
1639
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
1639
1640
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
@@ -53,7 +53,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
53
53
|
customColumns
|
|
54
54
|
} = useTable(props);
|
|
55
55
|
const {
|
|
56
|
-
columnProps,
|
|
57
56
|
columnList
|
|
58
57
|
} = useTableColumn(props, data, customColumns);
|
|
59
58
|
const {
|
|
@@ -155,7 +154,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
155
154
|
key: index
|
|
156
155
|
}, {
|
|
157
156
|
ref_for: true
|
|
158
|
-
},
|
|
157
|
+
}, item), {
|
|
159
158
|
default: withCtx((scope) => [item.type || item.render ? (openBlock(), createBlock(unref(EpFormItem), mergeProps({
|
|
160
159
|
key: 0,
|
|
161
160
|
"form-data": scope.row,
|