qidian-vue-ui 2.0.36 → 2.0.38
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 +3 -0
- package/dist/components/config-provider/types.d.ts +2 -1
- package/dist/components/config-provider/useConfig.d.ts +4 -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/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/styles/index.css +32 -0
- package/package.json +1 -1
|
@@ -106,6 +106,7 @@ export declare const QdConfigProvider: import("vue").DefineComponent<{
|
|
|
106
106
|
table?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"]>, "size"> & {
|
|
107
107
|
size?: import("..").QdServiceTableProps["size"];
|
|
108
108
|
bordered?: boolean;
|
|
109
|
+
pagination?: import("..").QdServiceTablePaginationConfig;
|
|
109
110
|
filterItemInputPlaceholder?: string;
|
|
110
111
|
filterItemSearchPlaceholder?: string;
|
|
111
112
|
filterItemAllText?: string;
|
|
@@ -254,6 +255,7 @@ export declare const QdConfigProvider: import("vue").DefineComponent<{
|
|
|
254
255
|
table?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"]>, "size"> & {
|
|
255
256
|
size?: import("..").QdServiceTableProps["size"];
|
|
256
257
|
bordered?: boolean;
|
|
258
|
+
pagination?: import("..").QdServiceTablePaginationConfig;
|
|
257
259
|
filterItemInputPlaceholder?: string;
|
|
258
260
|
filterItemSearchPlaceholder?: string;
|
|
259
261
|
filterItemAllText?: string;
|
|
@@ -387,6 +389,7 @@ export declare const QdConfigProvider: import("vue").DefineComponent<{
|
|
|
387
389
|
table?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"]>, "size"> & {
|
|
388
390
|
size?: import("..").QdServiceTableProps["size"];
|
|
389
391
|
bordered?: boolean;
|
|
392
|
+
pagination?: import("..").QdServiceTablePaginationConfig;
|
|
390
393
|
filterItemInputPlaceholder?: string;
|
|
391
394
|
filterItemSearchPlaceholder?: string;
|
|
392
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 {
|
|
@@ -123,6 +123,7 @@ export interface QdConfigProviderProps {
|
|
|
123
123
|
table?: Omit<NonNullable<NonNullable<TdConfigProviderProps['globalConfig']>['table']>, 'size'> & {
|
|
124
124
|
size?: QdServiceTableProps['size'];
|
|
125
125
|
bordered?: boolean;
|
|
126
|
+
pagination?: QdServiceTablePaginationConfig;
|
|
126
127
|
filterItemInputPlaceholder?: string;
|
|
127
128
|
filterItemSearchPlaceholder?: string;
|
|
128
129
|
filterItemAllText?: string;
|
|
@@ -94,6 +94,7 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
|
|
|
94
94
|
table?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"]>, "size"> & {
|
|
95
95
|
size?: import("..").QdServiceTableProps["size"];
|
|
96
96
|
bordered?: boolean;
|
|
97
|
+
pagination?: import("..").QdServiceTablePaginationConfig;
|
|
97
98
|
filterItemInputPlaceholder?: string;
|
|
98
99
|
filterItemSearchPlaceholder?: string;
|
|
99
100
|
filterItemAllText?: string;
|
|
@@ -225,6 +226,7 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
|
|
|
225
226
|
table?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"]>, "size"> & {
|
|
226
227
|
size?: import("..").QdServiceTableProps["size"];
|
|
227
228
|
bordered?: boolean;
|
|
229
|
+
pagination?: import("..").QdServiceTablePaginationConfig;
|
|
228
230
|
filterItemInputPlaceholder?: string;
|
|
229
231
|
filterItemSearchPlaceholder?: string;
|
|
230
232
|
filterItemAllText?: string;
|
|
@@ -356,6 +358,7 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
|
|
|
356
358
|
table?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"]>, "size"> & {
|
|
357
359
|
size?: import("..").QdServiceTableProps["size"];
|
|
358
360
|
bordered?: boolean;
|
|
361
|
+
pagination?: import("..").QdServiceTablePaginationConfig;
|
|
359
362
|
filterItemInputPlaceholder?: string;
|
|
360
363
|
filterItemSearchPlaceholder?: string;
|
|
361
364
|
filterItemAllText?: string;
|
|
@@ -488,6 +491,7 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
|
|
|
488
491
|
table?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"]>, "size"> & {
|
|
489
492
|
size?: import("..").QdServiceTableProps["size"];
|
|
490
493
|
bordered?: boolean;
|
|
494
|
+
pagination?: import("..").QdServiceTablePaginationConfig;
|
|
491
495
|
filterItemInputPlaceholder?: string;
|
|
492
496
|
filterItemSearchPlaceholder?: string;
|
|
493
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
|
};
|
|
@@ -1,156 +1,156 @@
|
|
|
1
|
-
.qd-service-table[data-v-
|
|
1
|
+
.qd-service-table[data-v-d1efcb11] {
|
|
2
2
|
height: 100%;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
}
|
|
6
|
-
.qd-service-table[data-v-
|
|
6
|
+
.qd-service-table[data-v-d1efcb11] > .t-table__content {
|
|
7
7
|
flex: 1;
|
|
8
8
|
}
|
|
9
|
-
.qd-service-table--mini[data-v-
|
|
9
|
+
.qd-service-table--mini[data-v-d1efcb11] {
|
|
10
10
|
font: var(--td-font-body-small);
|
|
11
11
|
}
|
|
12
|
-
.qd-service-table--mini[data-v-
|
|
13
|
-
.qd-service-table--mini[data-v-
|
|
12
|
+
.qd-service-table--mini[data-v-d1efcb11] th,
|
|
13
|
+
.qd-service-table--mini[data-v-d1efcb11] tr:not(.t-table__expanded-row) > td {
|
|
14
14
|
padding: var(--td-comp-paddingTB-xxs) var(--td-comp-paddingLR-xxs);
|
|
15
15
|
line-height: var(--td-line-height-body-small);
|
|
16
16
|
}
|
|
17
|
-
.qd-service-table--mini[data-v-
|
|
17
|
+
.qd-service-table--mini[data-v-d1efcb11] .t-table__row-full-element {
|
|
18
18
|
padding: var(--td-comp-paddingTB-xs) var(--td-comp-paddingLR-s);
|
|
19
19
|
}
|
|
20
|
-
.qd-service-table--hide-empty-image[data-v-
|
|
20
|
+
.qd-service-table--hide-empty-image[data-v-d1efcb11] .t-table__empty {
|
|
21
21
|
min-height: auto;
|
|
22
22
|
}
|
|
23
|
-
.qd-service-table--hide-empty-image[data-v-
|
|
23
|
+
.qd-service-table--hide-empty-image[data-v-d1efcb11] .t-table__empty .t-empty {
|
|
24
24
|
padding: 0 !important;
|
|
25
25
|
}
|
|
26
|
-
.qd-service-table--hide-empty-image[data-v-
|
|
26
|
+
.qd-service-table--hide-empty-image[data-v-d1efcb11] .t-table__empty .t-empty__image {
|
|
27
27
|
display: none;
|
|
28
28
|
}
|
|
29
|
-
.qd-service-table--hide-empty-image[data-v-
|
|
29
|
+
.qd-service-table--hide-empty-image[data-v-d1efcb11] .t-table__empty .t-empty__title {
|
|
30
30
|
margin-top: 0;
|
|
31
31
|
}
|
|
32
|
-
.qd-service-table[data-v-
|
|
32
|
+
.qd-service-table[data-v-d1efcb11] .t-table__tree-col:not(:has(.t-table__tree-op-icon)) {
|
|
33
33
|
margin-left: calc(var(--td-font-size-body-large) + var(--td-comp-margin-s));
|
|
34
34
|
}
|
|
35
|
-
.qd-service-table[data-v-
|
|
35
|
+
.qd-service-table[data-v-d1efcb11] .t-table__tree-leaf-node .t-table__tree-op-icon:empty {
|
|
36
36
|
width: calc(var(--td-font-size-body-large) + var(--td-comp-margin-s));
|
|
37
37
|
}
|
|
38
|
-
.qd-service-table[data-v-
|
|
39
|
-
.qd-service-table[data-v-
|
|
40
|
-
transform: var(--
|
|
38
|
+
.qd-service-table[data-v-d1efcb11] .t-affix > .t-table__affixed-header-elm-wrap,
|
|
39
|
+
.qd-service-table[data-v-d1efcb11] .t-affix > .t-table__scrollbar--obvious {
|
|
40
|
+
transform: var(--v4f239c13);
|
|
41
41
|
}
|
|
42
|
-
.qd-service-table--horizontal-bar-static[data-v-
|
|
42
|
+
.qd-service-table--horizontal-bar-static[data-v-d1efcb11] .t-table__scrollbar--obvious {
|
|
43
43
|
visibility: hidden;
|
|
44
44
|
pointer-events: none;
|
|
45
45
|
}
|
|
46
|
-
.qd-service-table[data-v-
|
|
46
|
+
.qd-service-table[data-v-d1efcb11] .t-table__expanded-row .qd-service-table--horizontal-bar-static > div:has(> div > .t-table__scrollbar--obvious) {
|
|
47
47
|
display: none;
|
|
48
48
|
}
|
|
49
|
-
.qd-service-table[data-v-
|
|
49
|
+
.qd-service-table[data-v-d1efcb11] .t-table__expanded-row > td {
|
|
50
50
|
height: 0;
|
|
51
51
|
}
|
|
52
|
-
.qd-service-table[data-v-
|
|
52
|
+
.qd-service-table[data-v-d1efcb11] .t-table__affixed-header-elm-wrap {
|
|
53
53
|
height: auto !important;
|
|
54
54
|
}
|
|
55
|
-
.qd-service-table[data-v-
|
|
55
|
+
.qd-service-table[data-v-d1efcb11] .t-table__affixed-header-elm {
|
|
56
56
|
position: relative;
|
|
57
57
|
scrollbar-width: none;
|
|
58
58
|
}
|
|
59
|
-
.qd-service-table[data-v-
|
|
59
|
+
.qd-service-table[data-v-d1efcb11] .t-table__affixed-header-elm::-webkit-scrollbar {
|
|
60
60
|
display: none;
|
|
61
61
|
width: 0;
|
|
62
62
|
height: 0;
|
|
63
63
|
}
|
|
64
|
-
.qd-service-table[data-v-
|
|
64
|
+
.qd-service-table[data-v-d1efcb11] .t-table__virtual-scroll-cursor + table {
|
|
65
65
|
border-collapse: separate;
|
|
66
66
|
}
|
|
67
|
-
.qd-service-table[data-v-
|
|
67
|
+
.qd-service-table[data-v-d1efcb11] .t-table__expanded-row-inner {
|
|
68
68
|
display: block;
|
|
69
69
|
position: sticky;
|
|
70
70
|
left: 0;
|
|
71
|
-
width: var(--
|
|
71
|
+
width: var(--v1c611d48) !important;
|
|
72
72
|
}
|
|
73
|
-
.qd-service-table[data-v-
|
|
73
|
+
.qd-service-table[data-v-d1efcb11] .t-table__cell-wrap > .t-form__controls > .t-form__controls-content > *:not(.t-switch):not(.t-tag):not(.t-icon):not(.qd-file-icon) {
|
|
74
74
|
width: 100%;
|
|
75
75
|
}
|
|
76
|
-
.qd-service-table[data-v-
|
|
76
|
+
.qd-service-table[data-v-d1efcb11] .qd-service-table__non-editable-col {
|
|
77
77
|
background-color: color-mix(in srgb, var(--td-bg-color-component) 50%, transparent);
|
|
78
78
|
}
|
|
79
|
-
.qd-service-table[data-v-
|
|
79
|
+
.qd-service-table[data-v-d1efcb11] .qd-service-table__non-editable-col:is(
|
|
80
80
|
.t-table__cell--fixed-left,
|
|
81
81
|
.t-table__cell--fixed-right
|
|
82
82
|
) {
|
|
83
83
|
background-color: inherit;
|
|
84
84
|
background-image: linear-gradient(color-mix(in srgb, var(--td-bg-color-secondarycontainer) 50%, transparent), color-mix(in srgb, var(--td-bg-color-secondarycontainer) 50%, transparent));
|
|
85
85
|
}
|
|
86
|
-
.qd-service-table--disable-horizontal-scroll[data-v-
|
|
86
|
+
.qd-service-table--disable-horizontal-scroll[data-v-d1efcb11] colgroup > col {
|
|
87
87
|
width: auto !important;
|
|
88
88
|
}
|
|
89
|
-
.qd-service-table[data-v-
|
|
89
|
+
.qd-service-table[data-v-d1efcb11] .t-table__filter-pop-content-inner {
|
|
90
90
|
padding: var(--td-comp-paddingTB-s) var(--td-comp-paddingLR-s) 0;
|
|
91
91
|
}
|
|
92
|
-
.qd-service-table[data-v-
|
|
92
|
+
.qd-service-table[data-v-d1efcb11] .t-table__filter-pop-content-inner:has(.qd-service-table-filter-item) {
|
|
93
93
|
padding: 0;
|
|
94
94
|
}
|
|
95
|
-
.qd-service-table[data-v-
|
|
95
|
+
.qd-service-table[data-v-d1efcb11] .t-table__filter-pop-content-inner:has(
|
|
96
96
|
.qd-service-table-filter-input,
|
|
97
97
|
.qd-service-table-filter-custom
|
|
98
98
|
) {
|
|
99
99
|
padding-bottom: var(--td-comp-paddingTB-s);
|
|
100
100
|
}
|
|
101
|
-
.qd-service-table[data-v-
|
|
101
|
+
.qd-service-table[data-v-d1efcb11] .t-table__filter--bottom-buttons {
|
|
102
102
|
padding: var(--td-comp-paddingTB-s) var(--td-comp-paddingLR-s);
|
|
103
103
|
}
|
|
104
|
-
.qd-service-table--mini[data-v-
|
|
104
|
+
.qd-service-table--mini[data-v-d1efcb11] .t-table__filter-pop-content-inner {
|
|
105
105
|
padding: var(--td-comp-paddingTB-xs) var(--td-comp-paddingLR-xs) 0;
|
|
106
106
|
}
|
|
107
|
-
.qd-service-table--mini[data-v-
|
|
107
|
+
.qd-service-table--mini[data-v-d1efcb11] .t-table__filter--bottom-buttons {
|
|
108
108
|
padding: var(--td-comp-paddingTB-xs) var(--td-comp-paddingLR-xs);
|
|
109
109
|
}
|
|
110
|
-
.qd-service-table--mini[data-v-
|
|
110
|
+
.qd-service-table--mini[data-v-d1efcb11] .t-table__filter-pop-content-inner:has(.qd-service-table-filter-item) {
|
|
111
111
|
padding: 0;
|
|
112
112
|
}
|
|
113
|
-
.qd-service-table--mini[data-v-
|
|
113
|
+
.qd-service-table--mini[data-v-d1efcb11] .t-table__filter-pop-content-inner:has(
|
|
114
114
|
.qd-service-table-filter-input,
|
|
115
115
|
.qd-service-table-filter-custom
|
|
116
116
|
) {
|
|
117
117
|
padding-bottom: var(--td-comp-paddingTB-xs);
|
|
118
118
|
}
|
|
119
|
-
.qd-service-table[data-v-
|
|
119
|
+
.qd-service-table[data-v-d1efcb11] .qd-service-table-filter-item {
|
|
120
120
|
width: 266px;
|
|
121
121
|
}
|
|
122
|
-
.qd-service-table[data-v-
|
|
123
|
-
.qd-service-table[data-v-
|
|
124
|
-
.qd-service-table[data-v-
|
|
122
|
+
.qd-service-table[data-v-d1efcb11] .qd-service-table-filter-item__search,
|
|
123
|
+
.qd-service-table[data-v-d1efcb11] .qd-service-table-filter-item__all,
|
|
124
|
+
.qd-service-table[data-v-d1efcb11] .qd-service-table-filter-item__options {
|
|
125
125
|
padding: var(--td-comp-paddingTB-s) var(--td-comp-paddingLR-s) 0;
|
|
126
126
|
}
|
|
127
|
-
.qd-service-table[data-v-
|
|
127
|
+
.qd-service-table[data-v-d1efcb11] .qd-service-table-filter-item__all {
|
|
128
128
|
padding: 0 var(--td-comp-paddingLR-s);
|
|
129
129
|
border-bottom: 1px solid var(--td-component-stroke);
|
|
130
130
|
}
|
|
131
|
-
.qd-service-table[data-v-
|
|
131
|
+
.qd-service-table[data-v-d1efcb11] .qd-service-table-filter-item__options {
|
|
132
132
|
display: flex;
|
|
133
133
|
flex-direction: column;
|
|
134
134
|
height: 206px;
|
|
135
135
|
padding: 0 var(--td-comp-paddingLR-s);
|
|
136
136
|
overflow-y: auto;
|
|
137
137
|
}
|
|
138
|
-
.qd-service-table[data-v-
|
|
138
|
+
.qd-service-table[data-v-d1efcb11] .qd-service-table-filter-item__count {
|
|
139
139
|
margin-left: var(--td-comp-margin-xs);
|
|
140
140
|
color: var(--td-text-color-placeholder);
|
|
141
141
|
}
|
|
142
|
-
.qd-service-table[data-v-
|
|
142
|
+
.qd-service-table[data-v-d1efcb11] .qd-service-table-filter-item__cell {
|
|
143
143
|
pointer-events: none;
|
|
144
144
|
}
|
|
145
|
-
.qd-service-table[data-v-
|
|
146
|
-
.qd-service-table[data-v-
|
|
145
|
+
.qd-service-table[data-v-d1efcb11] .qd-service-table-filter-item .t-checkbox__label,
|
|
146
|
+
.qd-service-table[data-v-d1efcb11] .qd-service-table-filter-item .t-radio__label {
|
|
147
147
|
display: inline-flex;
|
|
148
148
|
align-items: center;
|
|
149
149
|
}
|
|
150
|
-
.qd-service-table--mini[data-v-
|
|
150
|
+
.qd-service-table--mini[data-v-d1efcb11] .qd-service-table-filter-item__search {
|
|
151
151
|
padding: var(--td-comp-paddingTB-xs) var(--td-comp-paddingLR-xs) 0;
|
|
152
152
|
}
|
|
153
|
-
.qd-service-table--mini[data-v-
|
|
154
|
-
.qd-service-table--mini[data-v-
|
|
153
|
+
.qd-service-table--mini[data-v-d1efcb11] .qd-service-table-filter-item__all,
|
|
154
|
+
.qd-service-table--mini[data-v-d1efcb11] .qd-service-table-filter-item__options {
|
|
155
155
|
padding: 0 var(--td-comp-paddingLR-xs);
|
|
156
156
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as QdServiceTable } from './index.vue';
|
|
2
|
-
export type { QdServiceTableCol, QdServiceTableFilterItem, QdServiceTableFilterOption, QdServiceTableFormItem, QdServiceTableInstanceFunctions, QdServiceTableProps, QdServiceTableScroll, QdServiceTableSubmitRowContext, QdServiceTableSubmitTableContext, QdServiceTableValidateParams, QdServiceTableValidateRowContext, QdServiceTableValidateTableContext } from './types';
|
|
2
|
+
export type { QdServiceTableCol, QdServiceTableFilterItem, QdServiceTableFilterOption, QdServiceTableFormItem, QdServiceTableInstanceFunctions, QdServiceTablePagination, QdServiceTablePaginationConfig, QdServiceTableProps, QdServiceTableScroll, QdServiceTableSubmitRowContext, QdServiceTableSubmitTableContext, QdServiceTableValidateParams, QdServiceTableValidateRowContext, QdServiceTableValidateTableContext } from './types';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ServicePageParams, ServicePagination } from 'qidian-shared';
|
|
2
2
|
import type { TableRowData } from 'tdesign-vue-next';
|
|
3
3
|
import type { TableSort } from 'tdesign-vue-next';
|
|
4
|
-
import type { QdServiceTableInstanceFunctions, QdServiceTableProps } from './types';
|
|
5
|
-
declare const _default: <D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination =
|
|
4
|
+
import type { QdServiceTableInstanceFunctions, QdServiceTablePagination, QdServiceTableProps } from './types';
|
|
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<{
|
|
6
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
7
7
|
readonly "onUpdate:data"?: ((args_0: D[] | undefined) => any) | undefined;
|
|
8
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 QdServiceTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const QdServiceTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d1efcb11"]]);
|
|
6
6
|
export {
|
|
7
7
|
QdServiceTable as default
|
|
8
8
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import { defineComponent, mergeDefaults, useCssVars, computed, ref, useSlots, useTemplateRef, shallowRef, inject, getCurrentInstance, reactive, createVNode, watch, nextTick, onMounted, onActivated, onDeactivated, onBeforeUnmount, withDirectives, createBlock, openBlock, resolveDynamicComponent,
|
|
2
|
+
import { defineComponent, mergeDefaults, useCssVars, computed, ref, useSlots, useTemplateRef, shallowRef, inject, getCurrentInstance, reactive, createVNode, unref, watch, nextTick, onMounted, onActivated, onDeactivated, onBeforeUnmount, withDirectives, createBlock, openBlock, resolveDynamicComponent, mergeProps, isRef, createSlots, withCtx, renderList, renderSlot, normalizeProps, guardReactiveProps, h, render } from "vue";
|
|
3
3
|
import { useVModels, useElementSize, useElementBounding, useIntersectionObserver } from "../../../node_modules/.pnpm/@vueuse_core@14.2.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs";
|
|
4
4
|
import { useActivated, useTimer, useServicePagination, easyCopy, isEmpty, suspectedWrapperPromise, getScrollEl, createExposeProxy, resizeDirective } from "qidian-shared";
|
|
5
5
|
import { LoadingIcon, AddRectangleIcon, MinusRectangleIcon } from "tdesign-icons-vue-next";
|
|
@@ -332,8 +332,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
332
332
|
emit: __emit
|
|
333
333
|
}) {
|
|
334
334
|
useCssVars((_ctx) => ({
|
|
335
|
-
"
|
|
336
|
-
"
|
|
335
|
+
"v4f239c13": affixedHeaderTransform.value,
|
|
336
|
+
"v1c611d48": expandedRowWidth.value
|
|
337
337
|
}));
|
|
338
338
|
const props = __props;
|
|
339
339
|
const emit = __emit;
|
|
@@ -832,6 +832,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
832
832
|
}
|
|
833
833
|
} : false;
|
|
834
834
|
const reSize = size ?? tableT("size");
|
|
835
|
+
const paginationValue = unref(pagination);
|
|
836
|
+
const globalPagination = tableT("pagination");
|
|
837
|
+
const reServicePagination = paginationValue === false ? false : {
|
|
838
|
+
...globalPagination,
|
|
839
|
+
...paginationValue,
|
|
840
|
+
pageSize: paginationValue?.pageSize ?? globalPagination?.pageSize ?? 10,
|
|
841
|
+
pageSizeOptions: paginationValue?.pageSizeOptions ?? globalPagination?.pageSizeOptions ?? [5, 10, 20, 50, 100]
|
|
842
|
+
};
|
|
843
|
+
const servicePagination = reServicePagination;
|
|
835
844
|
return {
|
|
836
845
|
loadingWithData,
|
|
837
846
|
columns: adaptedColumns.value,
|
|
@@ -859,7 +868,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
859
868
|
manual,
|
|
860
869
|
transformParams: transformServiceParams,
|
|
861
870
|
transformRes: reTransformRes,
|
|
862
|
-
pagination,
|
|
871
|
+
pagination: servicePagination,
|
|
863
872
|
cacheKey,
|
|
864
873
|
cacheTime,
|
|
865
874
|
pollingInterval,
|
|
@@ -959,11 +968,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
959
968
|
return false;
|
|
960
969
|
});
|
|
961
970
|
const rePagination = computed(() => {
|
|
962
|
-
|
|
971
|
+
const {
|
|
972
|
+
service,
|
|
973
|
+
pagination
|
|
974
|
+
} = reProps.value.serviceOptions;
|
|
975
|
+
const paginationValue = unref(pagination);
|
|
976
|
+
if (!service || paginationValue === false) {
|
|
977
|
+
return void 0;
|
|
978
|
+
}
|
|
979
|
+
const pageSizeOptions = [...paginationValue?.pageSizeOptions ?? []];
|
|
980
|
+
const requiredPageSizes = [paginationValue?.pageSize ?? pageSize.value, pageSize.value];
|
|
981
|
+
requiredPageSizes.forEach((requiredPageSize) => {
|
|
982
|
+
const hasPageSize = pageSizeOptions.some((option) => typeof option === "number" ? option === requiredPageSize : option.value === requiredPageSize);
|
|
983
|
+
if (!hasPageSize) pageSizeOptions.push(requiredPageSize);
|
|
984
|
+
});
|
|
985
|
+
pageSizeOptions.sort((a, b) => {
|
|
986
|
+
const aValue = typeof a === "number" ? a : a.value;
|
|
987
|
+
const bValue = typeof b === "number" ? b : b.value;
|
|
988
|
+
return aValue - bValue;
|
|
989
|
+
});
|
|
990
|
+
return {
|
|
963
991
|
current: current.value,
|
|
964
992
|
pageSize: pageSize.value,
|
|
965
993
|
total: total.value,
|
|
966
|
-
pageSizeOptions
|
|
994
|
+
pageSizeOptions,
|
|
967
995
|
onCurrentChange: changeCurrent,
|
|
968
996
|
onPageSizeChange: changePageSize
|
|
969
997
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ServicePageParams, ServicePageRes, ServicePagination, ServicePaginationOptions, useServicePagination } from 'qidian-shared';
|
|
2
|
-
import type { BaseTableCellParams, EnhancedTableInstanceFunctions, ErrorListObjectType, OptionData, PrimaryTableInstanceFunctions, TableColumnFilter, TableErrorListMap, TableRowData, TableRowValue, TableTreeNodeExpandOptions, TdEmptyProps, TdEnhancedTableProps, TNode } from 'tdesign-vue-next';
|
|
2
|
+
import type { BaseTableCellParams, EnhancedTableInstanceFunctions, ErrorListObjectType, OptionData, PrimaryTableInstanceFunctions, TableColumnFilter, TableErrorListMap, TableRowData, TableRowValue, TableTreeNodeExpandOptions, TdEmptyProps, TdEnhancedTableProps, TdPaginationProps, TNode } from 'tdesign-vue-next';
|
|
3
|
+
import type { MaybeRef } from 'vue';
|
|
3
4
|
import type { QdComponentConfig } from '../../config-renderer';
|
|
4
5
|
import type { QdFormItemProps } from '../../form';
|
|
5
6
|
type TDesignServiceTableCol<D extends TableRowData> = NonNullable<TdEnhancedTableProps<D>['columns']>[number];
|
|
@@ -29,6 +30,11 @@ export type QdServiceTableFormItem = Omit<QdFormItemProps, 'name' | 'label' | 'c
|
|
|
29
30
|
virtualValidateRender?: boolean;
|
|
30
31
|
};
|
|
31
32
|
export type QdServiceTableEditCellValidationBlock = 'none' | 'error' | 'warning' | 'all';
|
|
33
|
+
export interface QdServiceTablePaginationConfig {
|
|
34
|
+
pageSize?: number;
|
|
35
|
+
pageSizeOptions?: TdPaginationProps['pageSizeOptions'];
|
|
36
|
+
}
|
|
37
|
+
export type QdServiceTablePagination = MaybeRef<false | QdServiceTablePaginationConfig>;
|
|
32
38
|
export type QdServiceTableDeleteCheckResult = void | boolean | {
|
|
33
39
|
success: boolean;
|
|
34
40
|
message?: string;
|
|
@@ -65,7 +71,7 @@ export interface QdServiceTableSubmitRowContext<D extends TableRowData = TableRo
|
|
|
65
71
|
showErrorMessage: boolean;
|
|
66
72
|
rowData?: D;
|
|
67
73
|
}
|
|
68
|
-
export interface QdServiceTableProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination =
|
|
74
|
+
export interface QdServiceTableProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = QdServiceTablePagination> extends Omit<TdEnhancedTableProps<D>, 'columns' | 'rowKey' | 'pagination' | 'tree' | 'lazyLoad' | 'scroll' | 'size'>, ServicePaginationOptions<D, R, P, TP, Pag> {
|
|
69
75
|
columns?: QdServiceTableCol<D>[];
|
|
70
76
|
rowKey?: string;
|
|
71
77
|
size?: TdEnhancedTableProps<D>['size'] | 'mini';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ServicePageParams, ServicePagination } from 'qidian-shared';
|
|
2
2
|
import type { TableRowData } from 'tdesign-vue-next';
|
|
3
3
|
import type { VNodeRef } from 'vue';
|
|
4
|
+
import type { QdServiceTablePagination } from '../service';
|
|
4
5
|
import type { QdServiceDialogTableSelectProps } from './types';
|
|
5
|
-
export declare function defineQdServiceDialogTableSelect<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination =
|
|
6
|
+
export declare function defineQdServiceDialogTableSelect<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = QdServiceTablePagination>(config: QdServiceDialogTableSelectProps<D, R, P, TP, Pag> & {
|
|
6
7
|
ref?: VNodeRef;
|
|
7
8
|
}): QdServiceDialogTableSelectProps<D, R, P, TP, Pag>;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
.qd-dialog-table-select[data-v-
|
|
1
|
+
.qd-dialog-table-select[data-v-f977aab9] {
|
|
2
2
|
width: 100%;
|
|
3
3
|
}
|
|
4
|
-
.qd-dialog-table-select__trigger[data-v-
|
|
4
|
+
.qd-dialog-table-select__trigger[data-v-f977aab9] {
|
|
5
5
|
width: 100%;
|
|
6
6
|
}
|
|
7
|
-
.qd-dialog-table-select__trigger[data-v-
|
|
7
|
+
.qd-dialog-table-select__trigger[data-v-f977aab9]:not(.qd-dialog-table-select__trigger--readonly):not(.qd-dialog-table-select__trigger--disabled) {
|
|
8
8
|
cursor: pointer;
|
|
9
9
|
}
|
|
10
|
-
.qd-dialog-table-select__input-trigger[data-v-
|
|
10
|
+
.qd-dialog-table-select__input-trigger[data-v-f977aab9] {
|
|
11
11
|
border-top-left-radius: 0;
|
|
12
12
|
border-bottom-left-radius: 0;
|
|
13
13
|
}
|
|
14
|
-
.qd-dialog-table-select__table[data-v-
|
|
15
|
-
.qd-dialog-table-select__table[data-v-
|
|
14
|
+
.qd-dialog-table-select__table[data-v-f977aab9] .qd-crud-search > .t-loading__parent > .t-card__body,
|
|
15
|
+
.qd-dialog-table-select__table[data-v-f977aab9] .qd-crud-table__body > .t-loading__parent > .t-card__body {
|
|
16
16
|
padding: 0 !important;
|
|
17
17
|
}
|
|
18
|
-
.qd-dialog-table-select__table[data-v-
|
|
18
|
+
.qd-dialog-table-select__table[data-v-f977aab9] .qd-crud-table__toolbar {
|
|
19
19
|
display: none;
|
|
20
20
|
}
|
|
21
|
-
.qd-dialog-table-select__table[data-v-
|
|
21
|
+
.qd-dialog-table-select__table[data-v-f977aab9] .qd-service-table {
|
|
22
22
|
margin-top: 0;
|
|
23
23
|
}
|
|
24
|
-
.qd-dialog-table-select__table-add[data-v-
|
|
24
|
+
.qd-dialog-table-select__table-add[data-v-f977aab9] {
|
|
25
25
|
margin-top: var(--td-comp-margin-m);
|
|
26
26
|
display: flex;
|
|
27
27
|
}
|
|
28
|
-
.qd-dialog-table-select__table-add .t-input__wrap[data-v-
|
|
28
|
+
.qd-dialog-table-select__table-add .t-input__wrap[data-v-f977aab9] {
|
|
29
29
|
flex: 1 1 0;
|
|
30
30
|
overflow: hidden;
|
|
31
31
|
margin-right: var(--td-comp-margin-m);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ServicePageParams, ServicePagination } from 'qidian-shared';
|
|
2
2
|
import type { SelectValue, TableRowData } from 'tdesign-vue-next';
|
|
3
|
+
import type { QdServiceTablePagination } from '../service';
|
|
3
4
|
import type { QdServiceDialogTableSelectInstanceFunctions, QdServiceDialogTableSelectProps } 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:modelValue"?: ((args_0: SelectValue<import("tdesign-vue-next").SelectOption> | undefined) => any) | undefined;
|
|
7
8
|
readonly "onUpdate:visible"?: ((args_0: boolean | 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 index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f977aab9"]]);
|
|
6
6
|
export {
|
|
7
7
|
index as default
|
|
8
8
|
};
|
|
@@ -3,8 +3,9 @@ import type { KeysType, SelectValue, SelectValueChangeTrigger, TableRowData, TdB
|
|
|
3
3
|
import type { QdCrudTableInstanceFunctions, QdCrudTableProps } from '../crud';
|
|
4
4
|
import type { QdDialogInstanceFunctions, QdDialogProps } from '../dialog';
|
|
5
5
|
import type { QdDialogDone } from '../dialog';
|
|
6
|
+
import type { QdServiceTablePagination } from '../service';
|
|
6
7
|
import type { QdServiceSelectProps } from '../service-select';
|
|
7
|
-
export interface QdServiceDialogTableSelectProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination =
|
|
8
|
+
export interface QdServiceDialogTableSelectProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = QdServiceTablePagination> extends Omit<QdCrudTableProps<D, R, P, TP, Pag>, 'add' | 'actions' | 'edit' | 'view' | 'del' | 'rowActions' | 'form' | 'fitParentHeight' | 'selectedRowKeys' | 'activeRowKeys' | 'activeRowType' | 'rowKey' | 'selectType' | 'size' | 'reserveSelectedRowOnPaginate' | 'onAsyncLoadingClick' | 'onCellClick' | 'onChange' | 'onColumnChange' | 'onColumnControllerVisibleChange' | 'onDataChange' | 'onDisplayColumnsChange' | 'onDragSort' | 'onExpandChange' | 'onFilterChange' | 'onRowEdit' | 'onRowValidate' | 'onRowClick' | 'onRowDbClick' | 'onSelectChange' | 'onSortChange' | 'onValidate'>, Pick<QdServiceSelectProps<D, R, P, TP, Pag>, 'modelValue' | 'multiple' | 'readonly' | 'disabled' | 'placeholder' | 'clearable' | 'creatable' | 'size' | 'valueType' | 'fillOptions' | 'onClear' | 'onChange'>, Pick<QdDialogProps, 'onCancel'> {
|
|
8
9
|
keys?: KeysType;
|
|
9
10
|
onCreate?: (value: string | number | boolean, done: QdDialogDone) => void;
|
|
10
11
|
onConfirm?: (value: SelectValue, context: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ServicePageParams, ServicePagination } from 'qidian-shared';
|
|
2
2
|
import type { TableRowData } from 'tdesign-vue-next';
|
|
3
3
|
import type { VNodeRef } from 'vue';
|
|
4
|
+
import type { QdServiceTablePagination } from '../service';
|
|
4
5
|
import type { QdServiceDialogTabsTableSelectProps } from './types';
|
|
5
|
-
export declare function defineQdServiceDialogTabsTableSelect<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination =
|
|
6
|
+
export declare function defineQdServiceDialogTabsTableSelect<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = QdServiceTablePagination>(config: QdServiceDialogTabsTableSelectProps<D, R, P, TP, Pag> & {
|
|
6
7
|
ref?: VNodeRef;
|
|
7
8
|
}): QdServiceDialogTabsTableSelectProps<D, R, P, TP, Pag>;
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
.qd-dialog-tabs-table-select[data-v-
|
|
1
|
+
.qd-dialog-tabs-table-select[data-v-62e461e2] {
|
|
2
2
|
width: 100%;
|
|
3
3
|
}
|
|
4
|
-
.qd-dialog-tabs-table-select__trigger[data-v-
|
|
4
|
+
.qd-dialog-tabs-table-select__trigger[data-v-62e461e2] {
|
|
5
5
|
width: 100%;
|
|
6
6
|
}
|
|
7
|
-
.qd-dialog-tabs-table-select__trigger[data-v-
|
|
7
|
+
.qd-dialog-tabs-table-select__trigger[data-v-62e461e2]:not(.qd-dialog-tabs-table-select__trigger--readonly):not(.qd-dialog-tabs-table-select__trigger--disabled) {
|
|
8
8
|
cursor: pointer;
|
|
9
9
|
}
|
|
10
|
-
.qd-dialog-tabs-table-select__input-trigger[data-v-
|
|
10
|
+
.qd-dialog-tabs-table-select__input-trigger[data-v-62e461e2] {
|
|
11
11
|
border-top-left-radius: 0;
|
|
12
12
|
border-bottom-left-radius: 0;
|
|
13
13
|
}
|
|
14
|
-
.qd-dialog-tabs-table-select__table[data-v-
|
|
14
|
+
.qd-dialog-tabs-table-select__table[data-v-62e461e2] .qd-crud-search > .t-loading__parent > .t-card__body {
|
|
15
15
|
padding-left: 0 !important;
|
|
16
16
|
padding-right: 0 !important;
|
|
17
17
|
padding-bottom: 0 !important;
|
|
18
18
|
}
|
|
19
|
-
.qd-dialog-tabs-table-select__table[data-v-
|
|
19
|
+
.qd-dialog-tabs-table-select__table[data-v-62e461e2] .qd-crud-table__body > .t-loading__parent > .t-card__body {
|
|
20
20
|
padding-left: 0 !important;
|
|
21
21
|
padding-right: 0 !important;
|
|
22
22
|
padding-bottom: 0 !important;
|
|
23
23
|
}
|
|
24
|
-
.qd-dialog-tabs-table-select__table[data-v-
|
|
24
|
+
.qd-dialog-tabs-table-select__table[data-v-62e461e2] .qd-crud-table__toolbar {
|
|
25
25
|
display: none;
|
|
26
26
|
}
|
|
27
|
-
.qd-dialog-tabs-table-select__table[data-v-
|
|
27
|
+
.qd-dialog-tabs-table-select__table[data-v-62e461e2] .qd-service-table {
|
|
28
28
|
margin-top: 0;
|
|
29
29
|
}
|
|
30
|
-
.qd-dialog-tabs-table-select__table-add[data-v-
|
|
30
|
+
.qd-dialog-tabs-table-select__table-add[data-v-62e461e2] {
|
|
31
31
|
margin-top: var(--td-comp-margin-m);
|
|
32
32
|
display: flex;
|
|
33
33
|
}
|
|
34
|
-
.qd-dialog-tabs-table-select__table-add .t-input__wrap[data-v-
|
|
34
|
+
.qd-dialog-tabs-table-select__table-add .t-input__wrap[data-v-62e461e2] {
|
|
35
35
|
flex: 1 1 0;
|
|
36
36
|
overflow: hidden;
|
|
37
37
|
margin-right: var(--td-comp-margin-m);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ServicePageParams, ServicePagination } from 'qidian-shared';
|
|
2
2
|
import type { SelectValue, TableRowData } from 'tdesign-vue-next';
|
|
3
|
+
import type { QdServiceTablePagination } from '../service';
|
|
3
4
|
import type { QdServiceDialogTabsTableSelectInstanceFunctions, QdServiceDialogTabsTableSelectProps } 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:modelValue"?: ((args_0: SelectValue<import("tdesign-vue-next").SelectOption> | undefined) => any) | undefined;
|
|
7
8
|
readonly "onUpdate:visible"?: ((args_0: boolean | 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 index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-62e461e2"]]);
|
|
6
6
|
export {
|
|
7
7
|
index as default
|
|
8
8
|
};
|
|
@@ -2,8 +2,9 @@ import type { ServicePageParams, ServicePagination } from 'qidian-shared';
|
|
|
2
2
|
import type { KeysType, SelectValue, SelectValueChangeTrigger, TableRowData, TdButtonProps, TdInputProps } from 'tdesign-vue-next';
|
|
3
3
|
import type { QdCrudTabsTableInstanceFunctions, QdCrudTabsTableProps } from '../crud';
|
|
4
4
|
import type { QdDialogDone, QdDialogInstanceFunctions, QdDialogProps } from '../dialog';
|
|
5
|
+
import type { QdServiceTablePagination } from '../service';
|
|
5
6
|
import type { QdServiceSelectProps } from '../service-select';
|
|
6
|
-
export interface QdServiceDialogTabsTableSelectProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination =
|
|
7
|
+
export interface QdServiceDialogTabsTableSelectProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = QdServiceTablePagination> extends Omit<QdCrudTabsTableProps<D, R, P, TP, Pag>, 'add' | 'actions' | 'edit' | 'view' | 'del' | 'rowActions' | 'form' | 'selectType' | 'rowKey' | 'activeRowType' | 'reserveSelectedRowOnPaginate' | 'size' | 'onAsyncLoadingClick' | 'onCellClick' | 'onChange' | 'onColumnChange' | 'onColumnControllerVisibleChange' | 'onDataChange' | 'onDisplayColumnsChange' | 'onDragSort' | 'onExpandChange' | 'onFilterChange' | 'onRowEdit' | 'onRowValidate' | 'onRowClick' | 'onRowDbClick' | 'onSelectChange' | 'onSortChange' | 'onValidate'>, Pick<QdServiceSelectProps<D, R, P, TP, Pag>, 'modelValue' | 'multiple' | 'readonly' | 'disabled' | 'placeholder' | 'clearable' | 'creatable' | 'size' | 'valueType' | 'fillOptions' | 'onClear' | 'onChange'>, Pick<QdDialogProps, 'onCancel'> {
|
|
7
8
|
keys?: KeysType;
|
|
8
9
|
onCreate?: (value: string | number | boolean, done: QdDialogDone) => void;
|
|
9
10
|
onConfirm?: (value: SelectValue, context: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ServicePageParams, ServicePagination } from 'qidian-shared';
|
|
2
2
|
import type { TableRowData } from 'tdesign-vue-next';
|
|
3
3
|
import type { VNodeRef } from 'vue';
|
|
4
|
+
import type { QdServiceTablePagination } from '../service';
|
|
4
5
|
import type { QdServicePopupTableSelectProps } from './types';
|
|
5
|
-
export declare function defineQdServicePopupTableSelect<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination =
|
|
6
|
+
export declare function defineQdServicePopupTableSelect<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = QdServiceTablePagination>(config: QdServicePopupTableSelectProps<D, R, P, TP, Pag> & {
|
|
6
7
|
ref?: VNodeRef;
|
|
7
8
|
}): QdServicePopupTableSelectProps<D, R, P, TP, Pag>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ServicePageParams, ServicePagination } from 'qidian-shared';
|
|
2
2
|
import type { SelectValue, TableRowData } from 'tdesign-vue-next';
|
|
3
|
+
import type { QdServiceTablePagination } from '../service';
|
|
3
4
|
import type { QdServicePopupTableSelectInstanceFunctions, QdServicePopupTableSelectProps } 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:modelValue"?: ((args_0: SelectValue<import("tdesign-vue-next").SelectOption> | undefined) => any) | undefined;
|
|
7
8
|
readonly "onUpdate:data"?: ((args_0: D[] | undefined) => any) | undefined;
|
|
@@ -4,7 +4,7 @@ import _sfc_main from "./index.vue2.mjs";
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
7
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
7
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b01d19a7"]]);
|
|
8
8
|
export {
|
|
9
9
|
index as default
|
|
10
10
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
.qd-popup-table-select__table[data-v-
|
|
2
|
-
.qd-popup-table-select__table[data-v-
|
|
1
|
+
.qd-popup-table-select__table[data-v-b01d19a7] .qd-crud-search > .t-loading__parent > .t-card__body,
|
|
2
|
+
.qd-popup-table-select__table[data-v-b01d19a7] .qd-crud-table__body > .t-loading__parent > .t-card__body {
|
|
3
3
|
padding: 0 !important;
|
|
4
4
|
}
|
|
5
|
-
.qd-popup-table-select__table[data-v-
|
|
5
|
+
.qd-popup-table-select__table[data-v-b01d19a7] .qd-crud-table__toolbar {
|
|
6
6
|
display: none;
|
|
7
7
|
}
|
|
8
|
-
.qd-popup-table-select__table[data-v-
|
|
8
|
+
.qd-popup-table-select__table[data-v-b01d19a7] .qd-service-table {
|
|
9
9
|
margin-top: 0;
|
|
10
10
|
}
|
|
11
|
-
.qd-popup-table-select__table-add[data-v-
|
|
11
|
+
.qd-popup-table-select__table-add[data-v-b01d19a7] {
|
|
12
12
|
margin-top: var(--td-comp-margin-m);
|
|
13
13
|
display: flex;
|
|
14
14
|
}
|
|
15
|
-
.qd-popup-table-select__table-add .t-input__wrap[data-v-
|
|
15
|
+
.qd-popup-table-select__table-add .t-input__wrap[data-v-b01d19a7] {
|
|
16
16
|
flex: 1 1 0;
|
|
17
17
|
overflow: hidden;
|
|
18
18
|
margin-right: var(--td-comp-margin-m);
|
|
19
19
|
}
|
|
20
|
-
.qd-popup-table-select__input-trigger[data-v-
|
|
20
|
+
.qd-popup-table-select__input-trigger[data-v-b01d19a7] {
|
|
21
21
|
border-top-left-radius: 0;
|
|
22
22
|
border-bottom-left-radius: 0;
|
|
23
23
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { ServicePageParams, ServicePagination } from 'qidian-shared';
|
|
2
2
|
import type { KeysType, TableRowData, TdButtonProps, TdInputProps } from 'tdesign-vue-next';
|
|
3
3
|
import type { QdCrudTableInstanceFunctions, QdCrudTableProps } from '../crud';
|
|
4
|
+
import type { QdServiceTablePagination } from '../service';
|
|
4
5
|
import type { QdServiceSelectProps } from '../service-select';
|
|
5
|
-
export interface QdServicePopupTableSelectProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination =
|
|
6
|
+
export interface QdServicePopupTableSelectProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = QdServiceTablePagination> extends Omit<QdCrudTableProps<D, R, P, TP, Pag>, 'add' | 'actions' | 'edit' | 'view' | 'del' | 'rowActions' | 'form' | 'fitParentHeight' | 'selectedRowKeys' | 'activeRowKeys' | 'activeRowType' | 'rowKey' | 'selectType' | 'size' | 'reserveSelectedRowOnPaginate' | 'onAsyncLoadingClick' | 'onCellClick' | 'onChange' | 'onColumnChange' | 'onColumnControllerVisibleChange' | 'onDataChange' | 'onDisplayColumnsChange' | 'onDragSort' | 'onExpandChange' | 'onFilterChange' | 'onRowEdit' | 'onRowValidate' | 'onSelectChange' | 'onSortChange' | 'onValidate'>, Pick<QdServiceSelectProps<D, R, P, TP, Pag>, 'modelValue' | 'multiple' | 'readonly' | 'disabled' | 'placeholder' | 'clearable' | 'creatable' | 'size' | 'valueType' | 'fillOptions' | 'popupVisible' | 'popupProps' | 'onClear' | 'onCreate' | 'onChange'> {
|
|
6
7
|
keys?: KeysType;
|
|
7
8
|
tableSize?: QdCrudTableProps['size'];
|
|
8
9
|
addBtn?: string | TdButtonProps | null;
|
package/dist/styles/index.css
CHANGED
|
@@ -168,6 +168,38 @@ p {
|
|
|
168
168
|
.t-form__item {
|
|
169
169
|
margin-bottom: var(--td-comp-margin-xl) !important;
|
|
170
170
|
}
|
|
171
|
+
.t-form__controls .t-form__item {
|
|
172
|
+
margin-right: 0 !important;
|
|
173
|
+
}
|
|
174
|
+
.t-input.t-is-readonly:not(.t-is-disabled),
|
|
175
|
+
.t-textarea.t-is-readonly .t-textarea__inner {
|
|
176
|
+
background-color: var(--td-bg-color-component-disabled);
|
|
177
|
+
border-color: var(--td-border-level-2-color);
|
|
178
|
+
}
|
|
179
|
+
.t-input.t-is-readonly:not(.t-is-disabled):hover,
|
|
180
|
+
.t-textarea.t-is-readonly .t-textarea__inner:hover {
|
|
181
|
+
border-color: var(--td-border-level-2-color);
|
|
182
|
+
}
|
|
183
|
+
.t-select-input:not(.t-select-input--readonly) .t-input.t-is-readonly:not(.t-is-disabled) {
|
|
184
|
+
background-color: var(--td-bg-color-specialcomponent);
|
|
185
|
+
border-color: var(--td-border-level-2-color);
|
|
186
|
+
}
|
|
187
|
+
.t-select-input:not(.t-select-input--readonly) .t-input.t-is-readonly:not(.t-is-disabled):hover,
|
|
188
|
+
.t-select-input:not(.t-select-input--readonly) .t-input.t-is-readonly:not(.t-is-disabled).t-input--focused {
|
|
189
|
+
border-color: var(--td-brand-color);
|
|
190
|
+
}
|
|
191
|
+
.t-radio:not(.t-is-checked) > .t-radio__former[readonly] + .t-radio__input {
|
|
192
|
+
background-color: var(--td-bg-color-component-disabled);
|
|
193
|
+
}
|
|
194
|
+
.t-radio:not(.t-is-checked):hover > .t-radio__former[readonly] + .t-radio__input {
|
|
195
|
+
border-color: var(--td-border-level-2-color);
|
|
196
|
+
}
|
|
197
|
+
.t-checkbox:not(.t-is-checked) > .t-checkbox__former[readonly] + .t-checkbox__input {
|
|
198
|
+
background-color: var(--td-bg-color-component-disabled);
|
|
199
|
+
}
|
|
200
|
+
.t-checkbox:not(.t-is-checked):hover > .t-checkbox__former[readonly] + .t-checkbox__input {
|
|
201
|
+
border-color: var(--td-border-level-2-color);
|
|
202
|
+
}
|
|
171
203
|
.t-table__header > tr > th {
|
|
172
204
|
background-color: var(--td-bg-color-secondarycontainer);
|
|
173
205
|
}
|