qidian-vue-ui 2.0.35 → 2.0.37
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/config-provider/index.d.ts +6 -0
- package/dist/components/config-provider/types.d.ts +3 -1
- package/dist/components/config-provider/useConfig.d.ts +8 -0
- package/dist/components/crud/define.d.ts +3 -2
- package/dist/components/crud/table/index.css +11 -11
- package/dist/components/crud/table/index.vue.d.ts +2 -1
- package/dist/components/crud/table/index.vue.mjs +1 -1
- package/dist/components/crud/table/types.d.ts +4 -4
- package/dist/components/crud/tabs-table/index.css +15 -15
- package/dist/components/crud/tabs-table/index.vue.d.ts +2 -1
- package/dist/components/crud/tabs-table/index.vue.mjs +1 -1
- package/dist/components/crud/tabs-table/types.d.ts +4 -3
- package/dist/components/import-dialog/index.vue.d.ts +1 -0
- package/dist/components/import-dialog/index.vue.mjs +35 -5
- package/dist/components/import-dialog/props.d.ts +1 -0
- package/dist/components/import-dialog/props.mjs +2 -1
- package/dist/components/import-dialog/types.d.ts +1 -0
- package/dist/components/service/table/index.css +49 -49
- package/dist/components/service/table/index.d.ts +1 -1
- package/dist/components/service/table/index.vue.d.ts +2 -2
- package/dist/components/service/table/index.vue.mjs +1 -1
- package/dist/components/service/table/index.vue2.mjs +34 -6
- package/dist/components/service/table/types.d.ts +8 -2
- package/dist/components/service-dialog-table-select/define.d.ts +2 -1
- package/dist/components/service-dialog-table-select/index.css +10 -10
- package/dist/components/service-dialog-table-select/index.vue.d.ts +2 -1
- package/dist/components/service-dialog-table-select/index.vue.mjs +1 -1
- package/dist/components/service-dialog-table-select/types.d.ts +2 -1
- package/dist/components/service-dialog-tabs-table-select/define.d.ts +2 -1
- package/dist/components/service-dialog-tabs-table-select/index.css +10 -10
- package/dist/components/service-dialog-tabs-table-select/index.vue.d.ts +2 -1
- package/dist/components/service-dialog-tabs-table-select/index.vue.mjs +1 -1
- package/dist/components/service-dialog-tabs-table-select/types.d.ts +2 -1
- package/dist/components/service-popup-table-select/define.d.ts +2 -1
- package/dist/components/service-popup-table-select/index.vue.d.ts +2 -1
- package/dist/components/service-popup-table-select/index.vue.mjs +1 -1
- package/dist/components/service-popup-table-select/index2.css +7 -7
- package/dist/components/service-popup-table-select/types.d.ts +2 -1
- package/dist/components/upload/index.css +36 -33
- package/dist/components/upload/index.vue.mjs +1 -1
- package/dist/components/upload/index.vue2.mjs +1 -1
- package/dist/locales/en-US.d.ts +1 -0
- package/dist/locales/en-US.mjs +2 -1
- package/dist/locales/zh-CN.d.ts +1 -0
- package/dist/locales/zh-CN.mjs +2 -1
- package/dist/locales/zh-TW.d.ts +1 -0
- package/dist/locales/zh-TW.mjs +2 -1
- package/package.json +1 -1
|
@@ -93,6 +93,7 @@ export declare const QdConfigProvider: import("vue").DefineComponent<{
|
|
|
93
93
|
downloadTplText?: string;
|
|
94
94
|
successText?: string;
|
|
95
95
|
failText?: string;
|
|
96
|
+
updateSupportText?: string;
|
|
96
97
|
};
|
|
97
98
|
form?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["form"]>, "size"> & {
|
|
98
99
|
size?: import("..").QdFormProps["size"];
|
|
@@ -105,6 +106,7 @@ export declare const QdConfigProvider: import("vue").DefineComponent<{
|
|
|
105
106
|
table?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"]>, "size"> & {
|
|
106
107
|
size?: import("..").QdServiceTableProps["size"];
|
|
107
108
|
bordered?: boolean;
|
|
109
|
+
pagination?: import("..").QdServiceTablePaginationConfig;
|
|
108
110
|
filterItemInputPlaceholder?: string;
|
|
109
111
|
filterItemSearchPlaceholder?: string;
|
|
110
112
|
filterItemAllText?: string;
|
|
@@ -240,6 +242,7 @@ export declare const QdConfigProvider: import("vue").DefineComponent<{
|
|
|
240
242
|
downloadTplText?: string;
|
|
241
243
|
successText?: string;
|
|
242
244
|
failText?: string;
|
|
245
|
+
updateSupportText?: string;
|
|
243
246
|
};
|
|
244
247
|
form?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["form"]>, "size"> & {
|
|
245
248
|
size?: import("..").QdFormProps["size"];
|
|
@@ -252,6 +255,7 @@ export declare const QdConfigProvider: import("vue").DefineComponent<{
|
|
|
252
255
|
table?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"]>, "size"> & {
|
|
253
256
|
size?: import("..").QdServiceTableProps["size"];
|
|
254
257
|
bordered?: boolean;
|
|
258
|
+
pagination?: import("..").QdServiceTablePaginationConfig;
|
|
255
259
|
filterItemInputPlaceholder?: string;
|
|
256
260
|
filterItemSearchPlaceholder?: string;
|
|
257
261
|
filterItemAllText?: string;
|
|
@@ -372,6 +376,7 @@ export declare const QdConfigProvider: import("vue").DefineComponent<{
|
|
|
372
376
|
downloadTplText?: string;
|
|
373
377
|
successText?: string;
|
|
374
378
|
failText?: string;
|
|
379
|
+
updateSupportText?: string;
|
|
375
380
|
};
|
|
376
381
|
form?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["form"]>, "size"> & {
|
|
377
382
|
size?: import("..").QdFormProps["size"];
|
|
@@ -384,6 +389,7 @@ export declare const QdConfigProvider: import("vue").DefineComponent<{
|
|
|
384
389
|
table?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"]>, "size"> & {
|
|
385
390
|
size?: import("..").QdServiceTableProps["size"];
|
|
386
391
|
bordered?: boolean;
|
|
392
|
+
pagination?: import("..").QdServiceTablePaginationConfig;
|
|
387
393
|
filterItemInputPlaceholder?: string;
|
|
388
394
|
filterItemSearchPlaceholder?: string;
|
|
389
395
|
filterItemAllText?: string;
|
|
@@ -6,7 +6,7 @@ import type { QdDialogProps } from '../dialog';
|
|
|
6
6
|
import type { QdFormProps } from '../form/types';
|
|
7
7
|
import type { QdOfficePdfProps } from '../office';
|
|
8
8
|
import type { QdOrgListByIdsOptions, QdOrgSelectProps } from '../org';
|
|
9
|
-
import type { QdServiceTableProps } from '../service/table/types';
|
|
9
|
+
import type { QdServiceTablePaginationConfig, QdServiceTableProps } from '../service/table/types';
|
|
10
10
|
import type { QdTinymceProps } from '../tinymce';
|
|
11
11
|
import type { QdUploadProps } from '../upload';
|
|
12
12
|
export interface QdUser {
|
|
@@ -110,6 +110,7 @@ export interface QdConfigProviderProps {
|
|
|
110
110
|
downloadTplText?: string;
|
|
111
111
|
successText?: string;
|
|
112
112
|
failText?: string;
|
|
113
|
+
updateSupportText?: string;
|
|
113
114
|
};
|
|
114
115
|
form?: Omit<NonNullable<NonNullable<TdConfigProviderProps['globalConfig']>['form']>, 'size'> & {
|
|
115
116
|
size?: QdFormProps['size'];
|
|
@@ -122,6 +123,7 @@ export interface QdConfigProviderProps {
|
|
|
122
123
|
table?: Omit<NonNullable<NonNullable<TdConfigProviderProps['globalConfig']>['table']>, 'size'> & {
|
|
123
124
|
size?: QdServiceTableProps['size'];
|
|
124
125
|
bordered?: boolean;
|
|
126
|
+
pagination?: QdServiceTablePaginationConfig;
|
|
125
127
|
filterItemInputPlaceholder?: string;
|
|
126
128
|
filterItemSearchPlaceholder?: string;
|
|
127
129
|
filterItemAllText?: string;
|
|
@@ -81,6 +81,7 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
|
|
|
81
81
|
downloadTplText?: string;
|
|
82
82
|
successText?: string;
|
|
83
83
|
failText?: string;
|
|
84
|
+
updateSupportText?: string;
|
|
84
85
|
};
|
|
85
86
|
form?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["form"]>, "size"> & {
|
|
86
87
|
size?: import("..").QdFormProps["size"];
|
|
@@ -93,6 +94,7 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
|
|
|
93
94
|
table?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"]>, "size"> & {
|
|
94
95
|
size?: import("..").QdServiceTableProps["size"];
|
|
95
96
|
bordered?: boolean;
|
|
97
|
+
pagination?: import("..").QdServiceTablePaginationConfig;
|
|
96
98
|
filterItemInputPlaceholder?: string;
|
|
97
99
|
filterItemSearchPlaceholder?: string;
|
|
98
100
|
filterItemAllText?: string;
|
|
@@ -211,6 +213,7 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
|
|
|
211
213
|
downloadTplText?: string;
|
|
212
214
|
successText?: string;
|
|
213
215
|
failText?: string;
|
|
216
|
+
updateSupportText?: string;
|
|
214
217
|
};
|
|
215
218
|
form?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["form"]>, "size"> & {
|
|
216
219
|
size?: import("..").QdFormProps["size"];
|
|
@@ -223,6 +226,7 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
|
|
|
223
226
|
table?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"]>, "size"> & {
|
|
224
227
|
size?: import("..").QdServiceTableProps["size"];
|
|
225
228
|
bordered?: boolean;
|
|
229
|
+
pagination?: import("..").QdServiceTablePaginationConfig;
|
|
226
230
|
filterItemInputPlaceholder?: string;
|
|
227
231
|
filterItemSearchPlaceholder?: string;
|
|
228
232
|
filterItemAllText?: string;
|
|
@@ -341,6 +345,7 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
|
|
|
341
345
|
downloadTplText?: string;
|
|
342
346
|
successText?: string;
|
|
343
347
|
failText?: string;
|
|
348
|
+
updateSupportText?: string;
|
|
344
349
|
};
|
|
345
350
|
form?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["form"]>, "size"> & {
|
|
346
351
|
size?: import("..").QdFormProps["size"];
|
|
@@ -353,6 +358,7 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
|
|
|
353
358
|
table?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"]>, "size"> & {
|
|
354
359
|
size?: import("..").QdServiceTableProps["size"];
|
|
355
360
|
bordered?: boolean;
|
|
361
|
+
pagination?: import("..").QdServiceTablePaginationConfig;
|
|
356
362
|
filterItemInputPlaceholder?: string;
|
|
357
363
|
filterItemSearchPlaceholder?: string;
|
|
358
364
|
filterItemAllText?: string;
|
|
@@ -472,6 +478,7 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
|
|
|
472
478
|
downloadTplText?: string;
|
|
473
479
|
successText?: string;
|
|
474
480
|
failText?: string;
|
|
481
|
+
updateSupportText?: string;
|
|
475
482
|
};
|
|
476
483
|
form?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["form"]>, "size"> & {
|
|
477
484
|
size?: import("..").QdFormProps["size"];
|
|
@@ -484,6 +491,7 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
|
|
|
484
491
|
table?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"]>, "size"> & {
|
|
485
492
|
size?: import("..").QdServiceTableProps["size"];
|
|
486
493
|
bordered?: boolean;
|
|
494
|
+
pagination?: import("..").QdServiceTablePaginationConfig;
|
|
487
495
|
filterItemInputPlaceholder?: string;
|
|
488
496
|
filterItemSearchPlaceholder?: string;
|
|
489
497
|
filterItemAllText?: string;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import type { ServicePageParams, ServicePagination } from 'qidian-shared';
|
|
2
2
|
import type { TableRowData } from 'tdesign-vue-next';
|
|
3
3
|
import type { MaybeRef, VNodeRef } from 'vue';
|
|
4
|
+
import type { QdServiceTablePagination } from '../service';
|
|
4
5
|
import type { QdCrudListProps } from './list';
|
|
5
6
|
import type { QdCrudTableProps } from './table';
|
|
6
7
|
import type { QdCrudTabsTableProps } from './tabs-table';
|
|
7
8
|
type DeepMaybeRef<T, Depth extends number = 5> = Depth extends 0 ? T : T extends (...args: any[]) => any ? T : T extends object ? {
|
|
8
9
|
[K in keyof T]: MaybeRef<DeepMaybeRef<T[K], Depth extends 5 ? 4 : Depth extends 4 ? 3 : Depth extends 3 ? 2 : Depth extends 2 ? 1 : 0>>;
|
|
9
10
|
} : MaybeRef<T>;
|
|
10
|
-
export declare function defineQdCrudTable<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination =
|
|
11
|
+
export declare function defineQdCrudTable<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = QdServiceTablePagination>(config: DeepMaybeRef<QdCrudTableProps<D, R, P, TP, Pag>> & {
|
|
11
12
|
ref?: VNodeRef;
|
|
12
13
|
}): QdCrudTableProps<D, R, P, TP, Pag>;
|
|
13
|
-
export declare function defineQdCrudTabsTable<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination =
|
|
14
|
+
export declare function defineQdCrudTabsTable<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = QdServiceTablePagination>(config: DeepMaybeRef<QdCrudTabsTableProps<D, R, P, TP, Pag>> & {
|
|
14
15
|
ref?: VNodeRef;
|
|
15
16
|
}): QdCrudTabsTableProps<D, R, P, TP, Pag>;
|
|
16
17
|
export declare function defineQdCrudList<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = ServicePagination>(config: DeepMaybeRef<QdCrudListProps<D, R, P, TP, Pag>> & {
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
.qd-crud-table[data-v-
|
|
1
|
+
.qd-crud-table[data-v-1dee2810] {
|
|
2
2
|
width: 100%;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
}
|
|
6
|
-
.qd-crud-table > .qd-crud-search:not(.qd-crud-search--hide) + .qd-crud-table__body[data-v-
|
|
6
|
+
.qd-crud-table > .qd-crud-search:not(.qd-crud-search--hide) + .qd-crud-table__body[data-v-1dee2810] {
|
|
7
7
|
margin-top: var(--td-comp-margin-l);
|
|
8
8
|
}
|
|
9
|
-
.qd-crud-table__body[data-v-
|
|
9
|
+
.qd-crud-table__body[data-v-1dee2810] > .t-loading__parent > .t-card__body {
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
}
|
|
13
|
-
.qd-crud-table__body[data-v-
|
|
13
|
+
.qd-crud-table__body[data-v-1dee2810] > .t-loading__parent > .t-card__body > .qd-service-table .t-table__pagination {
|
|
14
14
|
padding-bottom: 0;
|
|
15
15
|
}
|
|
16
|
-
.qd-crud-table--fit-parent-height[data-v-
|
|
16
|
+
.qd-crud-table--fit-parent-height[data-v-1dee2810] {
|
|
17
17
|
height: 100%;
|
|
18
18
|
}
|
|
19
|
-
.qd-crud-table--fit-parent-height > .qd-crud-table__body[data-v-
|
|
19
|
+
.qd-crud-table--fit-parent-height > .qd-crud-table__body[data-v-1dee2810] {
|
|
20
20
|
flex: auto;
|
|
21
21
|
}
|
|
22
|
-
.qd-crud-table--fit-parent-height > .qd-crud-table__body[data-v-
|
|
22
|
+
.qd-crud-table--fit-parent-height > .qd-crud-table__body[data-v-1dee2810] > .t-loading__parent > .t-card__body {
|
|
23
23
|
height: 100%;
|
|
24
24
|
min-height: 443px;
|
|
25
25
|
}
|
|
26
|
-
.qd-crud-table--fit-parent-height > .qd-crud-table__body[data-v-
|
|
26
|
+
.qd-crud-table--fit-parent-height > .qd-crud-table__body[data-v-1dee2810] > .t-loading__parent > .t-card__body > .qd-service-table {
|
|
27
27
|
flex: 1 1 0;
|
|
28
28
|
overflow: hidden;
|
|
29
29
|
}
|
|
30
|
-
.qd-crud-table__toolbar[data-v-
|
|
30
|
+
.qd-crud-table__toolbar[data-v-1dee2810] {
|
|
31
31
|
display: flex;
|
|
32
32
|
justify-content: space-between;
|
|
33
33
|
}
|
|
34
|
-
.qd-crud-table__toolbar--has-space-item + .qd-service-table[data-v-
|
|
34
|
+
.qd-crud-table__toolbar--has-space-item + .qd-service-table[data-v-1dee2810] {
|
|
35
35
|
margin-top: var(--td-comp-margin-l);
|
|
36
36
|
}
|
|
37
|
-
.qd-crud-table__toolbar-separator[data-v-
|
|
37
|
+
.qd-crud-table__toolbar-separator[data-v-1dee2810] {
|
|
38
38
|
display: inline-block;
|
|
39
39
|
padding-left: var(--td-comp-paddingLR-s);
|
|
40
40
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ServicePageParams, ServicePagination } from 'qidian-shared';
|
|
2
2
|
import type { TableRowData } from 'tdesign-vue-next';
|
|
3
|
+
import type { QdServiceTablePagination } from '../../service';
|
|
3
4
|
import type { QdCrudTableInstanceFunctions, QdCrudTableProps } from './types';
|
|
4
|
-
declare const _default: <D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination =
|
|
5
|
+
declare const _default: <D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = QdServiceTablePagination>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
7
|
readonly "onUpdate:data"?: ((args_0: D[] | undefined) => any) | undefined;
|
|
7
8
|
readonly "onUpdate:selectedRowKeys"?: ((args_0: (string | number)[] | undefined) => any) | undefined;
|
|
@@ -2,7 +2,7 @@ import './index.css'
|
|
|
2
2
|
import _sfc_main from "./index.vue2.mjs";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const QdCrudTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const QdCrudTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1dee2810"]]);
|
|
6
6
|
export {
|
|
7
7
|
QdCrudTable as default
|
|
8
8
|
};
|
|
@@ -3,7 +3,7 @@ import type { DialogOptions, PrimaryTableCellParams, TableRowData, TdButtonProps
|
|
|
3
3
|
import type { VNodeRef } from 'vue';
|
|
4
4
|
import type { Qd2ConfigValue, QdComponentConfig } from '../../config-renderer';
|
|
5
5
|
import type { QdDialogFormProps } from '../../dialog';
|
|
6
|
-
import type { QdServiceTableCol, QdServiceTableInstanceFunctions, QdServiceTableProps } from '../../service';
|
|
6
|
+
import type { QdServiceTableCol, QdServiceTableInstanceFunctions, QdServiceTablePagination, QdServiceTableProps } from '../../service';
|
|
7
7
|
import type { QdCrudSearchProps } from '../search';
|
|
8
8
|
export type TableDialogServiceRes = void | boolean | {
|
|
9
9
|
success: boolean;
|
|
@@ -67,7 +67,7 @@ export interface QdCrudTableTool<D extends TableRowData = TableRowData> {
|
|
|
67
67
|
disabled?: boolean | ((ctx: QdCrudTableToolContext<D>) => boolean);
|
|
68
68
|
onClick?: (ctx: QdCrudTableToolContext<D>, e: MouseEvent) => void | Promise<void>;
|
|
69
69
|
}
|
|
70
|
-
export interface QdCrudTableProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination =
|
|
70
|
+
export interface QdCrudTableProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = QdServiceTablePagination> extends Omit<QdServiceTableProps<D, R, P, TP, Pag>, 'columns' | 'displayColumns' | 'searchData'> {
|
|
71
71
|
title?: string;
|
|
72
72
|
permiPrefix?: string;
|
|
73
73
|
tableMinHeight?: string | number | boolean;
|
|
@@ -90,8 +90,8 @@ export interface QdCrudTableProps<D extends TableRowData = TableRowData, R = unk
|
|
|
90
90
|
cacheColumnsKey?: string;
|
|
91
91
|
columns?: QdCrudTableCol<D>[];
|
|
92
92
|
}
|
|
93
|
-
type QdCrudTableServiceInstanceFunctions<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination =
|
|
94
|
-
export type QdCrudTableInstanceFunctions<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination =
|
|
93
|
+
type QdCrudTableServiceInstanceFunctions<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = QdServiceTablePagination, HasTree extends boolean = boolean> = QdServiceTableInstanceFunctions<D, R, P, TP, Pag, HasTree>;
|
|
94
|
+
export type QdCrudTableInstanceFunctions<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = QdServiceTablePagination, HasTree extends boolean = boolean> = Omit<QdCrudTableServiceInstanceFunctions<D, R, P, TP, Pag, HasTree>, 'refreshAsync'> & {
|
|
95
95
|
validateSearch: () => Promise<boolean>;
|
|
96
96
|
refreshAsync: () => Promise<Awaited<ReturnType<QdCrudTableServiceInstanceFunctions<D, R, P, TP, Pag, HasTree>['refreshAsync']>> | undefined>;
|
|
97
97
|
};
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
.qd-crud-tabs-table[data-v-
|
|
1
|
+
.qd-crud-tabs-table[data-v-dc3aa08b] {
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 100%;
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
}
|
|
7
|
-
.qd-crud-tabs-table__nav[data-v-
|
|
7
|
+
.qd-crud-tabs-table__nav[data-v-dc3aa08b] {
|
|
8
8
|
width: 100%;
|
|
9
9
|
flex-shrink: 0;
|
|
10
10
|
border-top-left-radius: var(--td-radius-medium);
|
|
11
11
|
border-top-right-radius: var(--td-radius-medium);
|
|
12
12
|
overflow: hidden;
|
|
13
13
|
}
|
|
14
|
-
.qd-crud-tabs-table__nav[data-v-
|
|
14
|
+
.qd-crud-tabs-table__nav[data-v-dc3aa08b] .t-tabs__content {
|
|
15
15
|
display: none;
|
|
16
16
|
}
|
|
17
|
-
.qd-crud-tabs-table__nav[data-v-
|
|
17
|
+
.qd-crud-tabs-table__nav[data-v-dc3aa08b] .t-tabs__nav-item {
|
|
18
18
|
overflow: visible;
|
|
19
19
|
}
|
|
20
|
-
.qd-crud-tabs-table__shared-search[data-v-
|
|
20
|
+
.qd-crud-tabs-table__shared-search[data-v-dc3aa08b] {
|
|
21
21
|
border-top-left-radius: 0;
|
|
22
22
|
border-top-right-radius: 0;
|
|
23
23
|
}
|
|
24
|
-
.qd-crud-tabs-table__shared-search + .qd-crud-tabs-table__content[data-v-
|
|
24
|
+
.qd-crud-tabs-table__shared-search + .qd-crud-tabs-table__content[data-v-dc3aa08b] {
|
|
25
25
|
margin-top: var(--td-comp-margin-l);
|
|
26
26
|
}
|
|
27
|
-
.qd-crud-tabs-table__shared-search + .qd-crud-tabs-table__content[data-v-
|
|
27
|
+
.qd-crud-tabs-table__shared-search + .qd-crud-tabs-table__content[data-v-dc3aa08b] .qd-crud-table__body {
|
|
28
28
|
border-top-left-radius: var(--td-radius-medium);
|
|
29
29
|
border-top-right-radius: var(--td-radius-medium);
|
|
30
30
|
}
|
|
31
|
-
.qd-crud-tabs-table__content[data-v-
|
|
31
|
+
.qd-crud-tabs-table__content[data-v-dc3aa08b] {
|
|
32
32
|
flex: auto;
|
|
33
33
|
overflow: visible;
|
|
34
34
|
background-color: transparent;
|
|
35
35
|
}
|
|
36
|
-
.qd-crud-tabs-table__content[data-v-
|
|
36
|
+
.qd-crud-tabs-table__content[data-v-dc3aa08b] .t-tabs__header {
|
|
37
37
|
display: none;
|
|
38
38
|
}
|
|
39
|
-
.qd-crud-tabs-table__content[data-v-
|
|
39
|
+
.qd-crud-tabs-table__content[data-v-dc3aa08b] .t-tabs__content {
|
|
40
40
|
height: 100%;
|
|
41
41
|
}
|
|
42
|
-
.qd-crud-tabs-table__content[data-v-
|
|
42
|
+
.qd-crud-tabs-table__content[data-v-dc3aa08b] .t-tabs__nav-item {
|
|
43
43
|
overflow: visible;
|
|
44
44
|
}
|
|
45
|
-
.qd-crud-tabs-table__content[data-v-
|
|
45
|
+
.qd-crud-tabs-table__content[data-v-dc3aa08b] .t-tab-panel {
|
|
46
46
|
height: 100%;
|
|
47
47
|
}
|
|
48
|
-
.qd-crud-tabs-table__content[data-v-
|
|
49
|
-
.qd-crud-tabs-table__content[data-v-
|
|
48
|
+
.qd-crud-tabs-table__content[data-v-dc3aa08b] .qd-crud-table .qd-crud-search,
|
|
49
|
+
.qd-crud-tabs-table__content[data-v-dc3aa08b] .qd-crud-table__body {
|
|
50
50
|
border-top-left-radius: 0;
|
|
51
51
|
border-top-right-radius: 0;
|
|
52
52
|
}
|
|
53
|
-
.qd-crud-tabs-table__content[data-v-
|
|
53
|
+
.qd-crud-tabs-table__content[data-v-dc3aa08b] .qd-crud-table .qd-crud-search + .qd-crud-table__body {
|
|
54
54
|
border-top-left-radius: var(--td-radius-medium);
|
|
55
55
|
border-top-right-radius: var(--td-radius-medium);
|
|
56
56
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ServiceMaybePageParams, ServicePageParams, ServicePagination } from 'qidian-shared';
|
|
2
2
|
import type { TableRowData } from 'tdesign-vue-next';
|
|
3
|
+
import type { QdServiceTablePagination } from '../../service';
|
|
3
4
|
import type { QdCrudTabsTableInstanceFunctions, QdCrudTabsTableProps } from './types';
|
|
4
|
-
declare const _default: <D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination =
|
|
5
|
+
declare const _default: <D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = QdServiceTablePagination>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
7
|
readonly "onUpdate:searchData"?: ((args_0: import("tdesign-vue-next").Data | undefined) => any) | undefined;
|
|
7
8
|
readonly "onUpdate:activeTab"?: ((args_0: import("tdesign-vue-next").TabValue | undefined) => any) | undefined;
|
|
@@ -2,7 +2,7 @@ import './index.css'
|
|
|
2
2
|
import _sfc_main from "./index.vue2.mjs";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const QdCrudTabsTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const QdCrudTabsTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-dc3aa08b"]]);
|
|
6
6
|
export {
|
|
7
7
|
QdCrudTabsTable as default
|
|
8
8
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { ServicePageParams, ServicePagination } from 'qidian-shared';
|
|
2
2
|
import type { TableRowData, TdTabPanelProps } from 'tdesign-vue-next';
|
|
3
|
+
import type { QdServiceTablePagination } from '../../service';
|
|
3
4
|
import type { QdCrudTableInstanceFunctions, QdCrudTableProps } from '../table';
|
|
4
5
|
export type QdCrudTabsTableTabItem = Pick<TdTabPanelProps, 'value' | 'label'>;
|
|
5
|
-
export type QdCrudTabsTableBaseProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination =
|
|
6
|
-
export interface QdCrudTabsTableProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination =
|
|
6
|
+
export type QdCrudTabsTableBaseProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = QdServiceTablePagination> = Omit<QdCrudTableProps<D, R, P, TP, Pag>, 'data' | 'selectedRowKeys' | 'activeRowKeys' | 'columnControllerVisible' | 'displayColumns' | 'expandedRowKeys' | 'filterValue' | 'sort' | 'expandedTreeNodes'>;
|
|
7
|
+
export interface QdCrudTabsTableProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = QdServiceTablePagination> extends QdCrudTabsTableBaseProps<D, R, P, TP, Pag> {
|
|
7
8
|
tabs: QdCrudTabsTableTabItem[];
|
|
8
9
|
tabsEmptyText?: string;
|
|
9
10
|
activeTab?: QdCrudTabsTableTabItem['value'];
|
|
@@ -13,7 +14,7 @@ export interface QdCrudTabsTableProps<D extends TableRowData = TableRowData, R =
|
|
|
13
14
|
sharedSearch?: boolean;
|
|
14
15
|
syncServiceKey?: string;
|
|
15
16
|
}
|
|
16
|
-
export type QdCrudTabsTableInstanceFunctions<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination =
|
|
17
|
+
export type QdCrudTabsTableInstanceFunctions<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = QdServiceTablePagination, HasTree extends boolean = boolean> = QdCrudTableInstanceFunctions<D, R, P, TP, Pag, HasTree> & {
|
|
17
18
|
refreshAll: () => void;
|
|
18
19
|
changeAllCurrent: (current: number) => void;
|
|
19
20
|
};
|
|
@@ -10,5 +10,6 @@ declare const _default: import("vue").DefineComponent<QdImportDialogProps, {
|
|
|
10
10
|
name: string;
|
|
11
11
|
accept: string[] | "*";
|
|
12
12
|
method: "POST" | "GET" | "PUT" | "OPTIONS" | "PATCH" | "post" | "get" | "put" | "options" | "patch";
|
|
13
|
+
updateSupport: boolean | string;
|
|
13
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
15
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, mergeDefaults,
|
|
1
|
+
import { defineComponent, mergeDefaults, ref, computed, createVNode, createBlock, openBlock, unref, isRef, isVNode } from "vue";
|
|
2
2
|
import { useVModels } from "../../node_modules/.pnpm/@vueuse_core@14.2.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs";
|
|
3
|
-
import { isEmpty, easyDownload, suspectedWrapperPromise } from "qidian-shared";
|
|
4
|
-
import { Alert, Space, Button } from "tdesign-vue-next";
|
|
3
|
+
import { isEmpty, setUrlParam, easyDownload, suspectedWrapperPromise } from "qidian-shared";
|
|
4
|
+
import { Alert, Space, Button, Checkbox } from "tdesign-vue-next";
|
|
5
5
|
import { useConfig } from "../config-provider/useConfig.mjs";
|
|
6
6
|
import { qdImportDialogProps } from "./props.mjs";
|
|
7
7
|
import QdUpload from "../upload/index.vue.mjs";
|
|
@@ -21,6 +21,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
onSuccess: {
|
|
22
22
|
type: Function
|
|
23
23
|
},
|
|
24
|
+
updateSupport: {
|
|
25
|
+
type: [Boolean, String]
|
|
26
|
+
},
|
|
24
27
|
wrapper: {},
|
|
25
28
|
visible: {
|
|
26
29
|
type: Boolean
|
|
@@ -54,6 +57,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
57
|
msgSuccess,
|
|
55
58
|
alertError
|
|
56
59
|
} = useModal();
|
|
60
|
+
const formData = ref({});
|
|
61
|
+
const downloadTplLoad = ref(false);
|
|
57
62
|
const reProps = computed(() => {
|
|
58
63
|
const {
|
|
59
64
|
visible: visible2,
|
|
@@ -63,17 +68,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
68
|
onSuccess,
|
|
64
69
|
tips,
|
|
65
70
|
accept,
|
|
71
|
+
action,
|
|
72
|
+
updateSupport,
|
|
66
73
|
wrapper,
|
|
67
74
|
...uploadOptions
|
|
68
75
|
} = props;
|
|
69
76
|
const isAcceptUnlimited = accept === "*" || isEmpty(accept);
|
|
70
77
|
const reAccept = isAcceptUnlimited ? void 0 : accept;
|
|
78
|
+
const updateSupportKey = updateSupport === false ? void 0 : typeof updateSupport === "string" ? updateSupport : "updateSupport";
|
|
79
|
+
const updateSupportValue = updateSupportKey === void 0 ? false : formData.value[updateSupportKey] === true;
|
|
80
|
+
const reAction = updateSupportKey === void 0 || !action ? action : typeof action === "string" ? setUrlParam(updateSupportKey, updateSupportValue, action) : (bucketConfigKey) => setUrlParam(updateSupportKey, updateSupportValue, action(bucketConfigKey));
|
|
71
81
|
const reUploadOptions = {
|
|
72
82
|
...uploadOptions,
|
|
73
83
|
listOssByIds: {
|
|
74
84
|
service: void 0
|
|
75
85
|
},
|
|
76
86
|
accept,
|
|
87
|
+
action: reAction,
|
|
77
88
|
tips: tips || !reAccept ? tips : `${t("fileSupport")[0]} ${reAccept.join(",")} ${t("fileSupport")[1]}`
|
|
78
89
|
};
|
|
79
90
|
const qdDialogOptions = {
|
|
@@ -89,10 +100,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
89
100
|
onSuccess,
|
|
90
101
|
qdUploadOptions: reUploadOptions,
|
|
91
102
|
qdDialogOptions,
|
|
103
|
+
updateSupportKey,
|
|
92
104
|
models: visible2
|
|
93
105
|
};
|
|
94
106
|
});
|
|
95
|
-
const downloadTplLoad = ref(false);
|
|
96
107
|
const items = computed(() => [{
|
|
97
108
|
ifRender: !!reProps.value.downloadTpl,
|
|
98
109
|
col: 12,
|
|
@@ -143,6 +154,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
143
154
|
},
|
|
144
155
|
...reProps.value.qdUploadOptions
|
|
145
156
|
}
|
|
157
|
+
}, {
|
|
158
|
+
ifRender: reProps.value.updateSupportKey !== void 0,
|
|
159
|
+
col: 12,
|
|
160
|
+
component: {
|
|
161
|
+
is: () => {
|
|
162
|
+
let _slot2;
|
|
163
|
+
return createVNode(Checkbox, {
|
|
164
|
+
"style": {
|
|
165
|
+
color: "var(--td-text-color-secondary)"
|
|
166
|
+
}
|
|
167
|
+
}, _isSlot(_slot2 = t("updateSupportText")) ? _slot2 : {
|
|
168
|
+
default: () => [_slot2]
|
|
169
|
+
});
|
|
170
|
+
},
|
|
171
|
+
vModel: reProps.value.updateSupportKey ?? "updateSupport",
|
|
172
|
+
defaultModelValue: false
|
|
173
|
+
}
|
|
146
174
|
}]);
|
|
147
175
|
async function handleDownloadTpl() {
|
|
148
176
|
const {
|
|
@@ -173,9 +201,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
173
201
|
return openBlock(), createBlock(unref(_sfc_main$1), {
|
|
174
202
|
visible: unref(visible),
|
|
175
203
|
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => isRef(visible) ? visible.value = $event : null),
|
|
204
|
+
data: formData.value,
|
|
205
|
+
"onUpdate:data": _cache[1] || (_cache[1] = ($event) => formData.value = $event),
|
|
176
206
|
wrapper: reProps.value.qdDialogOptions,
|
|
177
207
|
items: items.value
|
|
178
|
-
}, null, 8, ["visible", "wrapper", "items"]);
|
|
208
|
+
}, null, 8, ["visible", "data", "wrapper", "items"]);
|
|
179
209
|
};
|
|
180
210
|
}
|
|
181
211
|
});
|
|
@@ -5,5 +5,6 @@ export interface QdImportDialogProps extends Pick<QdDialogProps, 'visible'>, Pic
|
|
|
5
5
|
downloadTpl?: string | (() => void) | (() => Promise<void>);
|
|
6
6
|
downloadTplName?: string;
|
|
7
7
|
onSuccess?: () => void;
|
|
8
|
+
updateSupport?: boolean | string;
|
|
8
9
|
wrapper?: Pick<QdDialogProps, 'header' | 'width'>;
|
|
9
10
|
}
|