qidian-vue-ui 2.0.2 → 2.0.4
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/codemirror/index.vue.d.ts +3 -3
- package/dist/components/config-provider/index.d.ts +13 -7
- package/dist/components/config-provider/types.d.ts +6 -2
- package/dist/components/config-provider/useConfig.d.ts +16 -8
- package/dist/components/config-renderer/utils.mjs +1 -1
- package/dist/components/crud/search/index.vue.d.ts +6 -6
- package/dist/components/crud/search/index.vue2.mjs +1 -0
- package/dist/components/crud/table/index.vue2.mjs +1 -1
- package/dist/components/crud/tabs-table/index.vue.d.ts +33 -33
- package/dist/components/crud/tabs-table/index.vue2.mjs +1 -1
- package/dist/components/dialog/form.vue.mjs +1 -0
- package/dist/components/dict/checkbox-group/index.vue.d.ts +2 -2
- package/dist/components/dict/radio-group/index.vue.d.ts +1 -1
- package/dist/components/dict/select/index.vue.d.ts +1 -1
- package/dist/components/drawer/index.vue.d.ts +1 -1
- package/dist/components/form/index.css +17 -12
- package/dist/components/form/index.vue.mjs +1 -1
- package/dist/components/form/index.vue2.mjs +14 -3
- package/dist/components/form/item.css +2 -2
- package/dist/components/form/item.vue.mjs +1 -1
- package/dist/components/form/item.vue2.mjs +2 -1
- package/dist/components/form/types.d.ts +4 -2
- package/dist/components/form/utils.mjs +1 -0
- package/dist/components/input-number/index.vue.d.ts +2 -3
- package/dist/components/input-number/props.d.ts +0 -1
- package/dist/components/input-number/props.mjs +0 -1
- package/dist/components/md-editor/index.vue.d.ts +5 -5
- package/dist/components/service/table/index.css +26 -18
- package/dist/components/service/table/index.vue.mjs +1 -1
- package/dist/components/service/table/index.vue2.mjs +165 -146
- package/dist/components/service/table/types.d.ts +2 -1
- package/dist/components/tinymce/index.vue.d.ts +5 -5
- package/package.json +1 -1
|
@@ -12,8 +12,8 @@ declare const _default: import("vue").DefineComponent<QdCodemirrorProps, {
|
|
|
12
12
|
}> & Omit<{
|
|
13
13
|
readonly modelValue: string;
|
|
14
14
|
readonly style?: import("vue").CSSProperties | undefined;
|
|
15
|
-
readonly placeholder?: string | undefined;
|
|
16
15
|
readonly disabled?: boolean | undefined;
|
|
16
|
+
readonly placeholder?: string | undefined;
|
|
17
17
|
readonly autofocus?: boolean | undefined;
|
|
18
18
|
readonly root?: ShadowRoot | Document | undefined;
|
|
19
19
|
readonly selection?: import("@codemirror/state").EditorSelection | {
|
|
@@ -141,10 +141,10 @@ declare const _default: import("vue").DefineComponent<QdCodemirrorProps, {
|
|
|
141
141
|
autoDestroy: boolean;
|
|
142
142
|
modelValue: string;
|
|
143
143
|
style?: import("vue").CSSProperties | undefined;
|
|
144
|
+
onChange?: ((value: string, viewUpdate: import("@codemirror/view").ViewUpdate) => any) | undefined | undefined;
|
|
144
145
|
placeholder?: string | undefined;
|
|
145
146
|
onFocus?: ((viewUpdate: import("@codemirror/view").ViewUpdate) => any) | undefined | undefined;
|
|
146
147
|
onBlur?: ((viewUpdate: import("@codemirror/view").ViewUpdate) => any) | undefined | undefined;
|
|
147
|
-
onChange?: ((value: string, viewUpdate: import("@codemirror/view").ViewUpdate) => any) | undefined | undefined;
|
|
148
148
|
"onUpdate:modelValue"?: ((value: string, viewUpdate: import("@codemirror/view").ViewUpdate) => any) | undefined | undefined;
|
|
149
149
|
root?: ShadowRoot | Document | undefined;
|
|
150
150
|
selection?: import("@codemirror/state").EditorSelection | {
|
|
@@ -166,8 +166,8 @@ declare const _default: import("vue").DefineComponent<QdCodemirrorProps, {
|
|
|
166
166
|
"onUpdate:modelValue"?: ((args_0: string | undefined) => any) | undefined;
|
|
167
167
|
}>, {
|
|
168
168
|
style: import("vue").CSSProperties;
|
|
169
|
-
placeholder: string;
|
|
170
169
|
disabled: boolean;
|
|
170
|
+
placeholder: string;
|
|
171
171
|
autofocus: boolean;
|
|
172
172
|
language: import("./types").QdCodemirrorLanguageName;
|
|
173
173
|
indentWithTab: boolean;
|
|
@@ -91,14 +91,16 @@ export declare const QdConfigProvider: import("vue").DefineComponent<{
|
|
|
91
91
|
successText?: string;
|
|
92
92
|
failText?: string;
|
|
93
93
|
};
|
|
94
|
-
form?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["form"] & {
|
|
94
|
+
form?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["form"]>, "size"> & {
|
|
95
|
+
size?: import("..").QdFormProps["size"];
|
|
95
96
|
submitFailed?: string;
|
|
96
97
|
selectText?: string;
|
|
97
98
|
orgSelectText?: string;
|
|
98
99
|
uploadText?: string;
|
|
99
100
|
inputText?: string;
|
|
100
101
|
};
|
|
101
|
-
table?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"] & {
|
|
102
|
+
table?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"]>, "size"> & {
|
|
103
|
+
size?: import("..").QdServiceTableProps["size"];
|
|
102
104
|
bordered?: boolean;
|
|
103
105
|
};
|
|
104
106
|
wrapper?: {
|
|
@@ -230,14 +232,16 @@ export declare const QdConfigProvider: import("vue").DefineComponent<{
|
|
|
230
232
|
successText?: string;
|
|
231
233
|
failText?: string;
|
|
232
234
|
};
|
|
233
|
-
form?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["form"] & {
|
|
235
|
+
form?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["form"]>, "size"> & {
|
|
236
|
+
size?: import("..").QdFormProps["size"];
|
|
234
237
|
submitFailed?: string;
|
|
235
238
|
selectText?: string;
|
|
236
239
|
orgSelectText?: string;
|
|
237
240
|
uploadText?: string;
|
|
238
241
|
inputText?: string;
|
|
239
242
|
};
|
|
240
|
-
table?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"] & {
|
|
243
|
+
table?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"]>, "size"> & {
|
|
244
|
+
size?: import("..").QdServiceTableProps["size"];
|
|
241
245
|
bordered?: boolean;
|
|
242
246
|
};
|
|
243
247
|
wrapper?: {
|
|
@@ -354,14 +358,16 @@ export declare const QdConfigProvider: import("vue").DefineComponent<{
|
|
|
354
358
|
successText?: string;
|
|
355
359
|
failText?: string;
|
|
356
360
|
};
|
|
357
|
-
form?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["form"] & {
|
|
361
|
+
form?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["form"]>, "size"> & {
|
|
362
|
+
size?: import("..").QdFormProps["size"];
|
|
358
363
|
submitFailed?: string;
|
|
359
364
|
selectText?: string;
|
|
360
365
|
orgSelectText?: string;
|
|
361
366
|
uploadText?: string;
|
|
362
367
|
inputText?: string;
|
|
363
368
|
};
|
|
364
|
-
table?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"] & {
|
|
369
|
+
table?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"]>, "size"> & {
|
|
370
|
+
size?: import("..").QdServiceTableProps["size"];
|
|
365
371
|
bordered?: boolean;
|
|
366
372
|
};
|
|
367
373
|
wrapper?: {
|
|
@@ -408,9 +414,9 @@ export declare const QdConfigProvider: import("vue").DefineComponent<{
|
|
|
408
414
|
pdfStandardFontDataUrl?: string | undefined;
|
|
409
415
|
} | undefined;
|
|
410
416
|
tinymce: Pick<import("../tinymce").QdTinymceProps, "name" | "action" | "headers" | "method" | "formatResponse" | "bucketConfigKey" | "skinUrl" | "skinDarkUrl" | "localeUrl" | "contentCss" | "emoticonsUrl" | "externalPlugins"> | undefined;
|
|
417
|
+
locale: string | undefined;
|
|
411
418
|
dict: import("../..").QdDictBaseOptions<import("../..").QdDictItem, unknown, string, string> | undefined;
|
|
412
419
|
avatar: import("../..").QdAvatarBaseOptions | undefined;
|
|
413
|
-
locale: string | undefined;
|
|
414
420
|
user: import("./types").QdUser | undefined;
|
|
415
421
|
org: {
|
|
416
422
|
search?: Pick<import("..").QdOrgSelectProps, "service" | "transformParams" | "transformRes">;
|
|
@@ -3,8 +3,10 @@ import type { UseAgentChatOptions } from '../../hooks/useAgentChat';
|
|
|
3
3
|
import type { QdDictBaseOptions } from '../../hooks/useDict';
|
|
4
4
|
import type { QdAvatarBaseOptions } from '../../hooks/useUserAvatar';
|
|
5
5
|
import type { QdDialogProps } from '../dialog';
|
|
6
|
+
import type { QdFormProps } from '../form/types';
|
|
6
7
|
import type { QdOfficePdfProps } from '../office';
|
|
7
8
|
import type { QdOrgListByIdsOptions, QdOrgSelectProps } from '../org';
|
|
9
|
+
import type { QdServiceTableProps } from '../service/table/types';
|
|
8
10
|
import type { QdTinymceProps } from '../tinymce';
|
|
9
11
|
import type { QdUploadProps } from '../upload';
|
|
10
12
|
export interface QdUser {
|
|
@@ -106,14 +108,16 @@ export interface QdConfigProviderProps {
|
|
|
106
108
|
successText?: string;
|
|
107
109
|
failText?: string;
|
|
108
110
|
};
|
|
109
|
-
form?: NonNullable<TdConfigProviderProps['globalConfig']>['form'] & {
|
|
111
|
+
form?: Omit<NonNullable<NonNullable<TdConfigProviderProps['globalConfig']>['form']>, 'size'> & {
|
|
112
|
+
size?: QdFormProps['size'];
|
|
110
113
|
submitFailed?: string;
|
|
111
114
|
selectText?: string;
|
|
112
115
|
orgSelectText?: string;
|
|
113
116
|
uploadText?: string;
|
|
114
117
|
inputText?: string;
|
|
115
118
|
};
|
|
116
|
-
table?: NonNullable<TdConfigProviderProps['globalConfig']>['table'] & {
|
|
119
|
+
table?: Omit<NonNullable<NonNullable<TdConfigProviderProps['globalConfig']>['table']>, 'size'> & {
|
|
120
|
+
size?: QdServiceTableProps['size'];
|
|
117
121
|
bordered?: boolean;
|
|
118
122
|
};
|
|
119
123
|
wrapper?: {
|
|
@@ -79,14 +79,16 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
|
|
|
79
79
|
successText?: string;
|
|
80
80
|
failText?: string;
|
|
81
81
|
};
|
|
82
|
-
form?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["form"] & {
|
|
82
|
+
form?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["form"]>, "size"> & {
|
|
83
|
+
size?: import("..").QdFormProps["size"];
|
|
83
84
|
submitFailed?: string;
|
|
84
85
|
selectText?: string;
|
|
85
86
|
orgSelectText?: string;
|
|
86
87
|
uploadText?: string;
|
|
87
88
|
inputText?: string;
|
|
88
89
|
};
|
|
89
|
-
table?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"] & {
|
|
90
|
+
table?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"]>, "size"> & {
|
|
91
|
+
size?: import("..").QdServiceTableProps["size"];
|
|
90
92
|
bordered?: boolean;
|
|
91
93
|
};
|
|
92
94
|
wrapper?: {
|
|
@@ -201,14 +203,16 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
|
|
|
201
203
|
successText?: string;
|
|
202
204
|
failText?: string;
|
|
203
205
|
};
|
|
204
|
-
form?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["form"] & {
|
|
206
|
+
form?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["form"]>, "size"> & {
|
|
207
|
+
size?: import("..").QdFormProps["size"];
|
|
205
208
|
submitFailed?: string;
|
|
206
209
|
selectText?: string;
|
|
207
210
|
orgSelectText?: string;
|
|
208
211
|
uploadText?: string;
|
|
209
212
|
inputText?: string;
|
|
210
213
|
};
|
|
211
|
-
table?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"] & {
|
|
214
|
+
table?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"]>, "size"> & {
|
|
215
|
+
size?: import("..").QdServiceTableProps["size"];
|
|
212
216
|
bordered?: boolean;
|
|
213
217
|
};
|
|
214
218
|
wrapper?: {
|
|
@@ -323,14 +327,16 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
|
|
|
323
327
|
successText?: string;
|
|
324
328
|
failText?: string;
|
|
325
329
|
};
|
|
326
|
-
form?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["form"] & {
|
|
330
|
+
form?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["form"]>, "size"> & {
|
|
331
|
+
size?: import("..").QdFormProps["size"];
|
|
327
332
|
submitFailed?: string;
|
|
328
333
|
selectText?: string;
|
|
329
334
|
orgSelectText?: string;
|
|
330
335
|
uploadText?: string;
|
|
331
336
|
inputText?: string;
|
|
332
337
|
};
|
|
333
|
-
table?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"] & {
|
|
338
|
+
table?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"]>, "size"> & {
|
|
339
|
+
size?: import("..").QdServiceTableProps["size"];
|
|
334
340
|
bordered?: boolean;
|
|
335
341
|
};
|
|
336
342
|
wrapper?: {
|
|
@@ -446,14 +452,16 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
|
|
|
446
452
|
successText?: string;
|
|
447
453
|
failText?: string;
|
|
448
454
|
};
|
|
449
|
-
form?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["form"] & {
|
|
455
|
+
form?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["form"]>, "size"> & {
|
|
456
|
+
size?: import("..").QdFormProps["size"];
|
|
450
457
|
submitFailed?: string;
|
|
451
458
|
selectText?: string;
|
|
452
459
|
orgSelectText?: string;
|
|
453
460
|
uploadText?: string;
|
|
454
461
|
inputText?: string;
|
|
455
462
|
};
|
|
456
|
-
table?: NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"] & {
|
|
463
|
+
table?: Omit<NonNullable<NonNullable<import("tdesign-vue-next").TdConfigProviderProps["globalConfig"]>["table"]>, "size"> & {
|
|
464
|
+
size?: import("..").QdServiceTableProps["size"];
|
|
457
465
|
bordered?: boolean;
|
|
458
466
|
};
|
|
459
467
|
wrapper?: {
|
|
@@ -41,7 +41,7 @@ function resolveVModelBinding(context, vModel, defaultValue) {
|
|
|
41
41
|
return bindings;
|
|
42
42
|
}
|
|
43
43
|
const RENDERER_INTERNAL_KEYS = /* @__PURE__ */ new Set(["context", "config", "crudMode", "fnInjectCtx"]);
|
|
44
|
-
const RENDERER_VNODE_PRIORITY_KEYS = /* @__PURE__ */ new Set(["placeholder", "clearable"]);
|
|
44
|
+
const RENDERER_VNODE_PRIORITY_KEYS = /* @__PURE__ */ new Set(["placeholder", "clearable", "size"]);
|
|
45
45
|
const functionalRendererCache = /* @__PURE__ */ new WeakMap();
|
|
46
46
|
function wrapFunctionalRenderer(fn) {
|
|
47
47
|
const cached = functionalRendererCache.get(fn);
|
|
@@ -25,17 +25,17 @@ declare const __VLS_component: import("vue").DefineComponent<QdCrudSearchProps,
|
|
|
25
25
|
data: import("tdesign-vue-next").Data;
|
|
26
26
|
requiredMark: boolean;
|
|
27
27
|
requiredMarkPosition: "left" | "right";
|
|
28
|
-
gutter: number | import("tdesign-vue-next").GutterObject | (number | import("tdesign-vue-next").GutterObject)[];
|
|
29
|
-
grid: import("../..").QdGridItemProps;
|
|
30
|
-
labelWidth: string | number;
|
|
31
|
-
showErrorMessage: boolean;
|
|
32
|
-
statusIcon: boolean | import("tdesign-vue-next").TNode<import("tdesign-vue-next").TdFormItemProps>;
|
|
33
|
-
defaultClearable: boolean;
|
|
34
28
|
disabled: boolean;
|
|
29
|
+
labelWidth: string | number;
|
|
35
30
|
preventSubmitDefault: boolean;
|
|
36
31
|
readonly: boolean;
|
|
37
32
|
resetType: "empty" | "initial";
|
|
38
33
|
scrollToFirstError: "" | "smooth" | "auto";
|
|
34
|
+
showErrorMessage: boolean;
|
|
35
|
+
statusIcon: boolean | import("tdesign-vue-next").TNode<import("tdesign-vue-next").TdFormItemProps>;
|
|
36
|
+
gutter: number | import("tdesign-vue-next").GutterObject | (number | import("tdesign-vue-next").GutterObject)[];
|
|
37
|
+
grid: import("../..").QdGridItemProps;
|
|
38
|
+
defaultClearable: boolean;
|
|
39
39
|
btnDisabled: boolean;
|
|
40
40
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
41
41
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -76,6 +76,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
76
|
cacheColumnsKey: {},
|
|
77
77
|
columns: {},
|
|
78
78
|
rowKey: {},
|
|
79
|
+
size: {},
|
|
79
80
|
selectType: {},
|
|
80
81
|
headerBg: {
|
|
81
82
|
type: Boolean
|
|
@@ -280,7 +281,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
280
281
|
showHeader: {
|
|
281
282
|
type: Boolean
|
|
282
283
|
},
|
|
283
|
-
size: {},
|
|
284
284
|
stripe: {
|
|
285
285
|
type: Boolean
|
|
286
286
|
},
|
|
@@ -51,9 +51,7 @@ declare const _default: <D extends TableRowData = TableRowData, R = unknown, P =
|
|
|
51
51
|
maxLevel?: number;
|
|
52
52
|
delCheckChildren?: boolean | ((context: import("../../service/table/types").QdServiceTableDeleteCheckContext<D>) => import("../../service/table/types").QdServiceTableDeleteCheckResult | Promise<import("../../service/table/types").QdServiceTableDeleteCheckResult>) | undefined;
|
|
53
53
|
}) | undefined;
|
|
54
|
-
|
|
55
|
-
attach?: import("tdesign-vue-next").AttachNode | undefined;
|
|
56
|
-
size?: import("tdesign-vue-next").SizeEnum | undefined;
|
|
54
|
+
size?: import("tdesign-vue-next").SizeEnum | "mini" | undefined;
|
|
57
55
|
expandIcon?: boolean | ((h: typeof import("vue").h, props: import("tdesign-vue-next").ExpandArrowRenderParams<D>) => import("tdesign-vue-next").TNodeReturnValue) | undefined;
|
|
58
56
|
filterIcon?: ((h: typeof import("vue").h, props: {
|
|
59
57
|
col: import("tdesign-vue-next").PrimaryTableCol<D>;
|
|
@@ -65,42 +63,17 @@ declare const _default: <D extends TableRowData = TableRowData, R = unknown, P =
|
|
|
65
63
|
type: "expand" | "fold";
|
|
66
64
|
row: D;
|
|
67
65
|
}) => import("tdesign-vue-next").TNodeReturnValue) | undefined;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
service?: ((params: TP) => Promise<R>) | undefined;
|
|
71
|
-
transformParams?: ((params: ServiceMaybePageParams<Pag>) => TP | Promise<TP>) | undefined;
|
|
72
|
-
onChange?: ((data: import("tdesign-vue-next").TableChangeData, context: import("tdesign-vue-next").TableChangeContext<D>) => void) | undefined;
|
|
73
|
-
onError?: ((error: Error) => void) | undefined;
|
|
74
|
-
onScroll?: ((params: {
|
|
75
|
-
e: WheelEvent;
|
|
76
|
-
}) => void) | undefined;
|
|
66
|
+
emptyText?: string | undefined;
|
|
67
|
+
attach?: import("tdesign-vue-next").AttachNode | undefined;
|
|
77
68
|
onValidate?: ((context: import("tdesign-vue-next").PrimaryTableValidateContext) => void) | undefined;
|
|
78
|
-
|
|
69
|
+
rowKey?: string | undefined;
|
|
79
70
|
scroll?: import("../..").QdServiceTableScroll | undefined;
|
|
80
|
-
locale?: import("tdesign-vue-next").TableConfig | undefined;
|
|
81
|
-
hover?: boolean | undefined;
|
|
82
|
-
onBefore?: (() => void) | undefined;
|
|
83
|
-
onAfter?: (() => void) | undefined;
|
|
84
|
-
onSuccess?: ((data: import("qidian-shared").ServicePageDataType<D>) => void) | undefined;
|
|
85
|
-
manual?: boolean | undefined;
|
|
86
|
-
height?: string | number | undefined;
|
|
87
|
-
resizable?: boolean | undefined;
|
|
88
|
-
onSelectChange?: ((selectedRowKeys: Array<string | number>, options: import("tdesign-vue-next").SelectOptions<D>) => void) | undefined;
|
|
89
|
-
maxHeight?: string | number | undefined;
|
|
90
|
-
onScrollY?: ((params: {
|
|
91
|
-
e: WheelEvent;
|
|
92
|
-
}) => void) | undefined;
|
|
93
|
-
onScrollX?: ((params: {
|
|
94
|
-
e: WheelEvent;
|
|
95
|
-
}) => void) | undefined;
|
|
96
|
-
asyncLoading?: ("loading" | "load-more" | import("tdesign-vue-next").TNode) | undefined;
|
|
97
|
-
stripe?: boolean | undefined;
|
|
98
|
-
loadingWithData?: boolean | undefined;
|
|
99
71
|
onCellClick?: ((context: import("tdesign-vue-next").PrimaryTableCellEventContext<D>) => void) | undefined;
|
|
100
72
|
activeRowKeys?: Array<string | number> | undefined;
|
|
101
73
|
defaultActiveRowKeys?: Array<string | number> | undefined;
|
|
102
74
|
activeRowType?: "single" | "multiple" | undefined;
|
|
103
75
|
allowResizeColumnWidth?: boolean | undefined;
|
|
76
|
+
bordered?: boolean | undefined;
|
|
104
77
|
bottomContent?: (string | import("tdesign-vue-next").TNode) | undefined;
|
|
105
78
|
cellEmptyContent?: string | ((h: typeof import("vue").h, props: import("tdesign-vue-next").BaseTableCellParams<D>) => import("tdesign-vue-next").TNodeReturnValue) | undefined;
|
|
106
79
|
disableDataPage?: boolean | undefined;
|
|
@@ -113,16 +86,22 @@ declare const _default: <D extends TableRowData = TableRowData, R = unknown, P =
|
|
|
113
86
|
footerSummary?: (string | import("tdesign-vue-next").TNode) | undefined;
|
|
114
87
|
headerAffixProps?: Partial<import("tdesign-vue-next").AffixProps> | undefined;
|
|
115
88
|
headerAffixedTop?: (boolean | Partial<import("tdesign-vue-next").AffixProps>) | undefined;
|
|
89
|
+
height?: string | number | undefined;
|
|
116
90
|
horizontalScrollAffixedBottom?: (boolean | Partial<import("tdesign-vue-next").AffixProps>) | undefined;
|
|
91
|
+
hover?: boolean | undefined;
|
|
117
92
|
keyboardRowHover?: boolean | undefined;
|
|
118
93
|
lastFullRow?: (string | import("tdesign-vue-next").TNode) | undefined;
|
|
94
|
+
loadingProps?: Partial<import("tdesign-vue-next").LoadingProps> | undefined;
|
|
95
|
+
locale?: import("tdesign-vue-next").TableConfig | undefined;
|
|
96
|
+
maxHeight?: string | number | undefined;
|
|
119
97
|
paginationAffixedBottom?: (boolean | Partial<import("tdesign-vue-next").AffixProps>) | undefined;
|
|
98
|
+
resizable?: boolean | undefined;
|
|
120
99
|
rowAttributes?: import("tdesign-vue-next").TableRowAttributes<D> | undefined;
|
|
121
100
|
rowClassName?: import("tdesign-vue-next").ClassName | ((params: import("tdesign-vue-next").RowClassNameParams<D>) => import("tdesign-vue-next").ClassName) | undefined;
|
|
122
|
-
rowKey?: string | undefined;
|
|
123
101
|
rowspanAndColspan?: import("tdesign-vue-next").TableRowspanAndColspanFunc<D> | undefined;
|
|
124
102
|
rowspanAndColspanInFooter?: import("tdesign-vue-next").TableRowspanAndColspanFunc<D> | undefined;
|
|
125
103
|
showHeader?: boolean | undefined;
|
|
104
|
+
stripe?: boolean | undefined;
|
|
126
105
|
tableContentWidth?: string | undefined;
|
|
127
106
|
tableLayout?: "auto" | "fixed" | undefined;
|
|
128
107
|
topContent?: (string | import("tdesign-vue-next").TNode) | undefined;
|
|
@@ -142,12 +121,22 @@ declare const _default: <D extends TableRowData = TableRowData, R = unknown, P =
|
|
|
142
121
|
onRowMouseleave?: ((context: import("tdesign-vue-next").RowEventContext<D>) => void) | undefined;
|
|
143
122
|
onRowMouseover?: ((context: import("tdesign-vue-next").RowEventContext<D>) => void) | undefined;
|
|
144
123
|
onRowMouseup?: ((context: import("tdesign-vue-next").RowEventContext<D>) => void) | undefined;
|
|
124
|
+
onScroll?: ((params: {
|
|
125
|
+
e: WheelEvent;
|
|
126
|
+
}) => void) | undefined;
|
|
127
|
+
onScrollX?: ((params: {
|
|
128
|
+
e: WheelEvent;
|
|
129
|
+
}) => void) | undefined;
|
|
130
|
+
onScrollY?: ((params: {
|
|
131
|
+
e: WheelEvent;
|
|
132
|
+
}) => void) | undefined;
|
|
145
133
|
beforeDragSort?: ((context: import("tdesign-vue-next").DragSortContext<D>) => boolean) | undefined;
|
|
146
134
|
expandedTreeNodes?: Array<string | number> | undefined;
|
|
147
135
|
defaultExpandedTreeNodes?: Array<string | number> | undefined;
|
|
148
136
|
onAbnormalDragSort?: ((context: import("tdesign-vue-next").TableAbnormalDragSortContext<D>) => void) | undefined;
|
|
149
137
|
onExpandedTreeNodesChange?: ((expandedTreeNodes: Array<string | number>, options: import("tdesign-vue-next").TableTreeNodeExpandOptions<D>) => void) | undefined;
|
|
150
138
|
onTreeExpandChange?: ((context: import("tdesign-vue-next").TableTreeExpandChangeContext<D>) => void) | undefined;
|
|
139
|
+
asyncLoading?: ("loading" | "load-more" | import("tdesign-vue-next").TNode) | undefined;
|
|
151
140
|
columnController?: import("tdesign-vue-next").TableColumnController | undefined;
|
|
152
141
|
columnControllerVisible?: boolean | undefined;
|
|
153
142
|
defaultColumnControllerVisible?: boolean | undefined;
|
|
@@ -177,6 +166,7 @@ declare const _default: <D extends TableRowData = TableRowData, R = unknown, P =
|
|
|
177
166
|
onAsyncLoadingClick?: ((context: {
|
|
178
167
|
status: "loading" | "load-more";
|
|
179
168
|
}) => void) | undefined;
|
|
169
|
+
onChange?: ((data: import("tdesign-vue-next").TableChangeData, context: import("tdesign-vue-next").TableChangeContext<D>) => void) | undefined;
|
|
180
170
|
onColumnChange?: ((context: import("tdesign-vue-next").PrimaryTableColumnChange<D>) => void) | undefined;
|
|
181
171
|
onColumnControllerVisibleChange?: ((visible: boolean, context: {
|
|
182
172
|
trigger: "cancel" | "confirm" | "open";
|
|
@@ -188,10 +178,20 @@ declare const _default: <D extends TableRowData = TableRowData, R = unknown, P =
|
|
|
188
178
|
onFilterChange?: ((filterValue: import("tdesign-vue-next").FilterValue, context: import("tdesign-vue-next").TableFilterChangeContext<D>) => void) | undefined;
|
|
189
179
|
onRowEdit?: ((context: import("tdesign-vue-next").PrimaryTableRowEditContext<D>) => void) | undefined;
|
|
190
180
|
onRowValidate?: ((context: import("tdesign-vue-next").PrimaryTableRowValidateContext<D>) => void) | undefined;
|
|
181
|
+
onSelectChange?: ((selectedRowKeys: Array<string | number>, options: import("tdesign-vue-next").SelectOptions<D>) => void) | undefined;
|
|
191
182
|
onSortChange?: ((sort: import("tdesign-vue-next").TableSort, options: import("tdesign-vue-next").SortOptions<D>) => void) | undefined;
|
|
183
|
+
transformRes?: ((res: R) => import("qidian-shared").ServicePageRes<D> | Promise<import("qidian-shared").ServicePageRes<D>>) | undefined;
|
|
184
|
+
service?: ((params: TP) => Promise<R>) | undefined;
|
|
185
|
+
transformParams?: ((params: ServiceMaybePageParams<Pag>) => TP | Promise<TP>) | undefined;
|
|
186
|
+
onError?: ((error: Error) => void) | undefined;
|
|
187
|
+
onBefore?: (() => void) | undefined;
|
|
188
|
+
onAfter?: (() => void) | undefined;
|
|
189
|
+
onSuccess?: ((data: import("qidian-shared").ServicePageDataType<D>) => void) | undefined;
|
|
190
|
+
manual?: boolean | undefined;
|
|
192
191
|
selectType?: "single" | "multiple" | undefined;
|
|
193
192
|
headerBg?: boolean | undefined;
|
|
194
193
|
lazyForm?: boolean | undefined;
|
|
194
|
+
loadingWithData?: boolean | undefined;
|
|
195
195
|
disableHorizontalScroll?: boolean | undefined;
|
|
196
196
|
cacheKey?: string | ((params?: unknown[] | undefined) => string) | undefined;
|
|
197
197
|
cacheTime?: number | undefined;
|
|
@@ -41,6 +41,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
41
|
cacheColumnsKey: {},
|
|
42
42
|
columns: {},
|
|
43
43
|
rowKey: {},
|
|
44
|
+
size: {},
|
|
44
45
|
selectType: {},
|
|
45
46
|
headerBg: { type: Boolean },
|
|
46
47
|
emptyText: {},
|
|
@@ -131,7 +132,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
131
132
|
rowspanAndColspan: { type: Function },
|
|
132
133
|
rowspanAndColspanInFooter: { type: Function },
|
|
133
134
|
showHeader: { type: Boolean },
|
|
134
|
-
size: {},
|
|
135
135
|
stripe: { type: Boolean },
|
|
136
136
|
tableContentWidth: {},
|
|
137
137
|
tableLayout: {},
|
|
@@ -4,10 +4,10 @@ declare const _default: import("vue").DefineComponent<QdDictCheckboxGroupProps,
|
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<QdDictCheckboxGroupProps> & Readonly<{
|
|
5
5
|
"onUpdate:modelValue"?: ((args_0: string | import("tdesign-vue-next").CheckboxGroupValue | undefined) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
|
-
value: import("tdesign-vue-next").CheckboxGroupValue;
|
|
8
|
-
max: number;
|
|
9
7
|
disabled: boolean;
|
|
10
8
|
readonly: boolean;
|
|
9
|
+
value: import("tdesign-vue-next").CheckboxGroupValue;
|
|
10
|
+
max: number;
|
|
11
11
|
modelValue: import("tdesign-vue-next").CheckboxGroupValue | string;
|
|
12
12
|
defaultValue: import("tdesign-vue-next").CheckboxGroupValue;
|
|
13
13
|
convStr: boolean | string;
|
|
@@ -5,9 +5,9 @@ declare const _default: import("vue").DefineComponent<QdDictRadioGroupProps, {},
|
|
|
5
5
|
"onUpdate:modelValue"?: ((args_0: import("tdesign-vue-next").RadioValue | undefined) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
7
|
theme: "radio" | "button";
|
|
8
|
-
variant: "outline" | "primary-filled" | "default-filled";
|
|
9
8
|
disabled: boolean;
|
|
10
9
|
readonly: boolean;
|
|
10
|
+
variant: "outline" | "primary-filled" | "default-filled";
|
|
11
11
|
allowUncheck: boolean;
|
|
12
12
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
export default _default;
|
|
@@ -14,9 +14,9 @@ declare const __VLS_component: import("vue").DefineComponent<QdDictSelectProps,
|
|
|
14
14
|
"onUpdate:inputValue"?: ((args_0: string | undefined) => any) | undefined;
|
|
15
15
|
"onUpdate:popupVisible"?: ((args_0: boolean | undefined) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
|
-
filterable: boolean;
|
|
18
17
|
disabled: boolean;
|
|
19
18
|
readonly: boolean;
|
|
19
|
+
filterable: boolean;
|
|
20
20
|
clearable: boolean;
|
|
21
21
|
showArrow: boolean;
|
|
22
22
|
defaultSelectFirst: boolean;
|
|
@@ -13,6 +13,7 @@ declare const __VLS_component: import("vue").DefineComponent<QdDrawerProps, {
|
|
|
13
13
|
}>, {
|
|
14
14
|
footer: boolean | import("tdesign-vue-next").TNode;
|
|
15
15
|
header: string | boolean | import("tdesign-vue-next").TNode;
|
|
16
|
+
size: string;
|
|
16
17
|
closeBtn: string | boolean | import("tdesign-vue-next").TNode;
|
|
17
18
|
closeOnEscKeydown: boolean;
|
|
18
19
|
closeOnOverlayClick: boolean;
|
|
@@ -20,7 +21,6 @@ declare const __VLS_component: import("vue").DefineComponent<QdDrawerProps, {
|
|
|
20
21
|
lazy: boolean;
|
|
21
22
|
preventScrollThrough: boolean;
|
|
22
23
|
showOverlay: boolean;
|
|
23
|
-
size: string;
|
|
24
24
|
hideOnDeactivated: boolean;
|
|
25
25
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
.qd-form--descriptions[data-v-
|
|
1
|
+
.qd-form--descriptions[data-v-0b8e1c15] .qd-grid {
|
|
2
2
|
border-top: 1px solid var(--td-component-border);
|
|
3
3
|
border-left: 1px solid var(--td-component-border);
|
|
4
4
|
}
|
|
5
|
-
.qd-form--descriptions[data-v-
|
|
5
|
+
.qd-form--descriptions[data-v-0b8e1c15] .qd-grid-item {
|
|
6
6
|
border-right: 1px solid var(--td-component-border);
|
|
7
7
|
border-bottom: 1px solid var(--td-component-border);
|
|
8
8
|
}
|
|
9
|
-
.qd-form--descriptions[data-v-
|
|
9
|
+
.qd-form--descriptions[data-v-0b8e1c15] .t-form__item {
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: stretch;
|
|
12
12
|
height: 100%;
|
|
13
13
|
}
|
|
14
|
-
.qd-form--descriptions[data-v-
|
|
14
|
+
.qd-form--descriptions[data-v-0b8e1c15] .t-form__label {
|
|
15
15
|
display: flex;
|
|
16
16
|
flex-direction: column;
|
|
17
17
|
justify-content: center;
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
padding: var(--td-comp-paddingLR-m) var(--td-comp-paddingLR-l);
|
|
20
20
|
height: 100%;
|
|
21
21
|
}
|
|
22
|
-
.qd-form--descriptions[data-v-
|
|
22
|
+
.qd-form--descriptions[data-v-0b8e1c15] .t-form__label--top {
|
|
23
23
|
border-bottom: 1px solid var(--td-component-border);
|
|
24
24
|
align-items: center;
|
|
25
25
|
height: var(--qd-form-description-label-height, auto);
|
|
26
26
|
white-space: normal;
|
|
27
27
|
}
|
|
28
|
-
.qd-form--descriptions[data-v-
|
|
28
|
+
.qd-form--descriptions[data-v-0b8e1c15] .t-form__label--top + .t-form__controls > .t-form__controls-content {
|
|
29
29
|
justify-content: center;
|
|
30
30
|
text-align: center;
|
|
31
31
|
}
|
|
32
|
-
.qd-form--descriptions[data-v-
|
|
32
|
+
.qd-form--descriptions[data-v-0b8e1c15] .t-form__controls {
|
|
33
33
|
flex: 1 1 0;
|
|
34
34
|
overflow: hidden;
|
|
35
35
|
display: flex;
|
|
@@ -39,23 +39,28 @@
|
|
|
39
39
|
margin-left: 0 !important;
|
|
40
40
|
height: 100%;
|
|
41
41
|
}
|
|
42
|
-
.qd-form--descriptions[data-v-
|
|
42
|
+
.qd-form--descriptions[data-v-0b8e1c15] .qd-form-item--label-top {
|
|
43
43
|
display: grid;
|
|
44
44
|
grid-template-rows: auto minmax(min-content, auto);
|
|
45
45
|
grid-row: span 2 !important;
|
|
46
46
|
}
|
|
47
|
-
.qd-form--descriptions[data-v-
|
|
47
|
+
.qd-form--descriptions[data-v-0b8e1c15] .qd-form-item--label-top > .t-form__item {
|
|
48
48
|
display: contents;
|
|
49
49
|
}
|
|
50
|
-
.qd-form--descriptions[data-v-
|
|
50
|
+
.qd-form--descriptions[data-v-0b8e1c15] .qd-form-item--label-top .t-form__controls-content {
|
|
51
51
|
white-space: normal;
|
|
52
52
|
}
|
|
53
|
-
.qd-form--descriptions[data-v-
|
|
53
|
+
.qd-form--descriptions[data-v-0b8e1c15] .qd-form-item--empty-content .t-form__controls {
|
|
54
54
|
padding: 0 !important;
|
|
55
55
|
min-height: 0;
|
|
56
56
|
height: 0;
|
|
57
57
|
overflow: hidden;
|
|
58
58
|
}
|
|
59
|
-
.qd-form--descriptions[data-v-
|
|
59
|
+
.qd-form--descriptions[data-v-0b8e1c15] .qd-form-item:not(.qd-form-item--label-top):not(.qd-form-item--label-width-full) .t-form__label {
|
|
60
60
|
border-right: 1px solid var(--td-component-border);
|
|
61
61
|
}
|
|
62
|
+
.qd-form--descriptions-mini[data-v-0b8e1c15] .t-form__label,
|
|
63
|
+
.qd-form--descriptions-mini[data-v-0b8e1c15] .t-form__controls {
|
|
64
|
+
padding: var(--td-comp-paddingTB-xxs) var(--td-comp-paddingLR-xxs);
|
|
65
|
+
font: var(--td-font-body-small);
|
|
66
|
+
}
|
|
@@ -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 QdForm = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const QdForm = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0b8e1c15"]]);
|
|
6
6
|
export {
|
|
7
7
|
QdForm as default
|
|
8
8
|
};
|
|
@@ -17,6 +17,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
__name: "index",
|
|
18
18
|
props: /* @__PURE__ */ mergeDefaults({
|
|
19
19
|
crudMode: {},
|
|
20
|
+
size: {},
|
|
20
21
|
items: {},
|
|
21
22
|
loading: { type: Boolean },
|
|
22
23
|
loadingProps: {},
|
|
@@ -53,7 +54,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
53
54
|
const props = __props;
|
|
54
55
|
const emit = __emit;
|
|
55
56
|
const { data } = useVModels(props, emit, { passive: true });
|
|
56
|
-
const { t } = useConfig("form");
|
|
57
|
+
const { t, global: formConfig } = useConfig("form");
|
|
58
|
+
const { global: tableConfig } = useConfig("table");
|
|
57
59
|
const { msgError } = useModal();
|
|
58
60
|
const beforeSubmitQueue = [];
|
|
59
61
|
provide(PROVIDE_FORM_ADD_BEFORE_SUBMIT_QUEUE, (item) => {
|
|
@@ -97,9 +99,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
97
99
|
data: data2,
|
|
98
100
|
scrollToFirstError,
|
|
99
101
|
loading: externalLoad,
|
|
102
|
+
size,
|
|
100
103
|
onReset,
|
|
101
104
|
...formOptions
|
|
102
105
|
} = props;
|
|
106
|
+
const reSize = size ?? formConfig.value.size ?? (descriptions ? tableConfig.value.size : void 0);
|
|
107
|
+
const mini = reSize === "mini";
|
|
108
|
+
const componentSize = mini ? "small" : reSize;
|
|
103
109
|
const reOnReset = (context) => {
|
|
104
110
|
resetQueue.forEach((item) => item());
|
|
105
111
|
onReset?.(context);
|
|
@@ -107,8 +113,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
107
113
|
return {
|
|
108
114
|
descriptions,
|
|
109
115
|
externalLoad,
|
|
116
|
+
mini,
|
|
117
|
+
size: componentSize,
|
|
110
118
|
formOptions: {
|
|
111
119
|
...formOptions,
|
|
120
|
+
size: componentSize,
|
|
112
121
|
labelAlign: !formOptions.labelAlign && descriptions ? "left" : formOptions.labelAlign ?? "top",
|
|
113
122
|
scrollToFirstError: submitShowErrorMessage.value === false ? "" : submitScrollToFirstError.value ?? scrollToFirstError,
|
|
114
123
|
onReset: reOnReset
|
|
@@ -291,7 +300,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
291
300
|
"qd-form",
|
|
292
301
|
reProps.value.formOptions.labelAlign ? `qd-form--label-${reProps.value.formOptions.labelAlign}` : "",
|
|
293
302
|
_ctx.$slots.footer ? "qd-form--has-footer" : "",
|
|
294
|
-
reProps.value.descriptions ? "qd-form--descriptions" : ""
|
|
303
|
+
reProps.value.descriptions ? "qd-form--descriptions" : "",
|
|
304
|
+
reProps.value.descriptions && reProps.value.mini ? "qd-form--descriptions-mini" : ""
|
|
295
305
|
]
|
|
296
306
|
}, reProps.value.formOptions, {
|
|
297
307
|
data: unref(data),
|
|
@@ -308,8 +318,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
308
318
|
"crud-mode": __props.crudMode,
|
|
309
319
|
context: unref(data),
|
|
310
320
|
"default-clearable": __props.defaultClearable,
|
|
321
|
+
size: reProps.value.size,
|
|
311
322
|
"label-align": item.labelAlign ?? reProps.value.formOptions.labelAlign
|
|
312
|
-
}, { ref_for: true }, item), null, 16, ["crud-mode", "context", "default-clearable", "label-align"]);
|
|
323
|
+
}, { ref_for: true }, item), null, 16, ["crud-mode", "context", "default-clearable", "size", "label-align"]);
|
|
313
324
|
}), 128))
|
|
314
325
|
]),
|
|
315
326
|
_: 1
|