qidian-vue-ui 2.0.3 → 2.0.6

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.
Files changed (35) hide show
  1. package/dist/components/codemirror/index.vue.d.ts +3 -3
  2. package/dist/components/config-provider/index.d.ts +13 -7
  3. package/dist/components/config-provider/types.d.ts +6 -2
  4. package/dist/components/config-provider/useConfig.d.ts +17 -8
  5. package/dist/components/config-provider/useConfig.mjs +5 -1
  6. package/dist/components/config-renderer/utils.mjs +1 -1
  7. package/dist/components/crud/search/index.vue.d.ts +6 -6
  8. package/dist/components/crud/search/index.vue2.mjs +1 -0
  9. package/dist/components/crud/table/index.vue2.mjs +1 -1
  10. package/dist/components/crud/tabs-table/index.vue.d.ts +33 -33
  11. package/dist/components/crud/tabs-table/index.vue2.mjs +1 -1
  12. package/dist/components/dialog/form.vue.mjs +1 -0
  13. package/dist/components/dict/checkbox-group/index.vue.d.ts +2 -2
  14. package/dist/components/dict/radio-group/index.vue.d.ts +1 -1
  15. package/dist/components/dict/select/index.vue.d.ts +1 -1
  16. package/dist/components/drawer/index.vue.d.ts +1 -1
  17. package/dist/components/form/index.css +24 -12
  18. package/dist/components/form/index.vue.mjs +1 -1
  19. package/dist/components/form/index.vue2.mjs +16 -3
  20. package/dist/components/form/item.css +2 -2
  21. package/dist/components/form/item.vue.mjs +1 -1
  22. package/dist/components/form/item.vue2.mjs +2 -1
  23. package/dist/components/form/types.d.ts +4 -2
  24. package/dist/components/form/utils.mjs +1 -0
  25. package/dist/components/input-number/index.vue.d.ts +2 -3
  26. package/dist/components/input-number/props.d.ts +0 -1
  27. package/dist/components/input-number/props.mjs +0 -1
  28. package/dist/components/md-editor/index.vue.d.ts +5 -5
  29. package/dist/components/service/table/index.css +26 -18
  30. package/dist/components/service/table/index.vue.mjs +1 -1
  31. package/dist/components/service/table/index.vue2.mjs +8 -4
  32. package/dist/components/service/table/types.d.ts +2 -1
  33. package/dist/components/tinymce/index.vue.d.ts +5 -5
  34. package/dist/styles/index.css +7 -3
  35. 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?: {
@@ -490,4 +498,5 @@ export declare function useConfig<T extends keyof NonNullable<QdConfigProviderPr
490
498
  indicatorSuffix?: string;
491
499
  };
492
500
  })[T]>>;
501
+ size: import("vue").ComputedRef<import("tdesign-vue-next").SizeEnum | undefined>;
493
502
  };
@@ -6,6 +6,9 @@ import get from "../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-
6
6
  function useConfig(key, componentLocale) {
7
7
  const injectGlobalConfig = getCurrentInstance?.() ? inject(PROVIDE_GLOBAL_CONFIG, void 0) : computed(() => window.__QIDIAN_GLOBAL_CONFIG__);
8
8
  const mergedGlobalConfig = computed(() => injectGlobalConfig?.value || zhCN);
9
+ const size = computed(
10
+ () => mergedGlobalConfig.value.size
11
+ );
9
12
  const globalConfig = computed(
10
13
  () => merge(
11
14
  {},
@@ -18,7 +21,8 @@ function useConfig(key, componentLocale) {
18
21
  };
19
22
  return {
20
23
  t,
21
- global: globalConfig
24
+ global: globalConfig,
25
+ size
22
26
  };
23
27
  }
24
28
  export {
@@ -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>;
@@ -19,6 +19,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19
19
  onSearch: { type: Function },
20
20
  onReset: { type: Function },
21
21
  crudMode: {},
22
+ size: {},
22
23
  items: {},
23
24
  loading: { type: Boolean },
24
25
  loadingProps: {},
@@ -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
  },
@@ -41,6 +41,7 @@ declare const _default: <D extends TableRowData = TableRowData, R = unknown, P =
41
41
  columns?: import("..").QdCrudTableCol<D>[] | undefined;
42
42
  data?: D[] | undefined;
43
43
  sort?: import("tdesign-vue-next").TableSort | undefined;
44
+ size?: import("tdesign-vue-next").SizeEnum | "mini" | undefined;
44
45
  empty?: (string | import("tdesign-vue-next").TNode) | undefined;
45
46
  loading?: (boolean | import("tdesign-vue-next").TNode) | undefined;
46
47
  pagination?: (Pag extends ServicePagination ? false | Pag : Pag) | undefined;
@@ -51,9 +52,6 @@ declare const _default: <D extends TableRowData = TableRowData, R = unknown, P =
51
52
  maxLevel?: number;
52
53
  delCheckChildren?: boolean | ((context: import("../../service/table/types").QdServiceTableDeleteCheckContext<D>) => import("../../service/table/types").QdServiceTableDeleteCheckResult | Promise<import("../../service/table/types").QdServiceTableDeleteCheckResult>) | undefined;
53
54
  }) | undefined;
54
- emptyText?: string | undefined;
55
- attach?: import("tdesign-vue-next").AttachNode | undefined;
56
- size?: import("tdesign-vue-next").SizeEnum | 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
- bordered?: boolean | undefined;
69
- transformRes?: ((res: R) => import("qidian-shared").ServicePageRes<D> | Promise<import("qidian-shared").ServicePageRes<D>>) | undefined;
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
- loadingProps?: Partial<import("tdesign-vue-next").LoadingProps> | undefined;
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: {},
@@ -17,6 +17,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17
17
  onSubmit: { type: Function },
18
18
  wrapper: {},
19
19
  crudMode: {},
20
+ size: {},
20
21
  items: {},
21
22
  loading: { type: Boolean },
22
23
  loadingProps: {},
@@ -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,24 @@
1
- .qd-form--descriptions[data-v-63d91dd6] .qd-grid {
1
+ .qd-form--small[data-v-8ce97fd3] {
2
+ font: var(--td-font-body-medium);
3
+ }
4
+ .qd-form--small[data-v-8ce97fd3] .t-form__label--top {
5
+ min-height: var(--td-comp-margin-xxl);
6
+ line-height: var(--td-comp-margin-xxl);
7
+ }
8
+ .qd-form--descriptions[data-v-8ce97fd3] .qd-grid {
2
9
  border-top: 1px solid var(--td-component-border);
3
10
  border-left: 1px solid var(--td-component-border);
4
11
  }
5
- .qd-form--descriptions[data-v-63d91dd6] .qd-grid-item {
12
+ .qd-form--descriptions[data-v-8ce97fd3] .qd-grid-item {
6
13
  border-right: 1px solid var(--td-component-border);
7
14
  border-bottom: 1px solid var(--td-component-border);
8
15
  }
9
- .qd-form--descriptions[data-v-63d91dd6] .t-form__item {
16
+ .qd-form--descriptions[data-v-8ce97fd3] .t-form__item {
10
17
  display: flex;
11
18
  align-items: stretch;
12
19
  height: 100%;
13
20
  }
14
- .qd-form--descriptions[data-v-63d91dd6] .t-form__label {
21
+ .qd-form--descriptions[data-v-8ce97fd3] .t-form__label {
15
22
  display: flex;
16
23
  flex-direction: column;
17
24
  justify-content: center;
@@ -19,17 +26,17 @@
19
26
  padding: var(--td-comp-paddingLR-m) var(--td-comp-paddingLR-l);
20
27
  height: 100%;
21
28
  }
22
- .qd-form--descriptions[data-v-63d91dd6] .t-form__label--top {
29
+ .qd-form--descriptions[data-v-8ce97fd3] .t-form__label--top {
23
30
  border-bottom: 1px solid var(--td-component-border);
24
31
  align-items: center;
25
32
  height: var(--qd-form-description-label-height, auto);
26
33
  white-space: normal;
27
34
  }
28
- .qd-form--descriptions[data-v-63d91dd6] .t-form__label--top + .t-form__controls > .t-form__controls-content {
35
+ .qd-form--descriptions[data-v-8ce97fd3] .t-form__label--top + .t-form__controls > .t-form__controls-content {
29
36
  justify-content: center;
30
37
  text-align: center;
31
38
  }
32
- .qd-form--descriptions[data-v-63d91dd6] .t-form__controls {
39
+ .qd-form--descriptions[data-v-8ce97fd3] .t-form__controls {
33
40
  flex: 1 1 0;
34
41
  overflow: hidden;
35
42
  display: flex;
@@ -39,23 +46,28 @@
39
46
  margin-left: 0 !important;
40
47
  height: 100%;
41
48
  }
42
- .qd-form--descriptions[data-v-63d91dd6] .qd-form-item--label-top {
49
+ .qd-form--descriptions[data-v-8ce97fd3] .qd-form-item--label-top {
43
50
  display: grid;
44
51
  grid-template-rows: auto minmax(min-content, auto);
45
52
  grid-row: span 2 !important;
46
53
  }
47
- .qd-form--descriptions[data-v-63d91dd6] .qd-form-item--label-top > .t-form__item {
54
+ .qd-form--descriptions[data-v-8ce97fd3] .qd-form-item--label-top > .t-form__item {
48
55
  display: contents;
49
56
  }
50
- .qd-form--descriptions[data-v-63d91dd6] .qd-form-item--label-top .t-form__controls-content {
57
+ .qd-form--descriptions[data-v-8ce97fd3] .qd-form-item--label-top .t-form__controls-content {
51
58
  white-space: normal;
52
59
  }
53
- .qd-form--descriptions[data-v-63d91dd6] .qd-form-item--empty-content .t-form__controls {
60
+ .qd-form--descriptions[data-v-8ce97fd3] .qd-form-item--empty-content .t-form__controls {
54
61
  padding: 0 !important;
55
62
  min-height: 0;
56
63
  height: 0;
57
64
  overflow: hidden;
58
65
  }
59
- .qd-form--descriptions[data-v-63d91dd6] .qd-form-item:not(.qd-form-item--label-top):not(.qd-form-item--label-width-full) .t-form__label {
66
+ .qd-form--descriptions[data-v-8ce97fd3] .qd-form-item:not(.qd-form-item--label-top):not(.qd-form-item--label-width-full) .t-form__label {
60
67
  border-right: 1px solid var(--td-component-border);
61
68
  }
69
+ .qd-form--descriptions-mini[data-v-8ce97fd3] .t-form__label,
70
+ .qd-form--descriptions-mini[data-v-8ce97fd3] .t-form__controls {
71
+ padding: var(--td-comp-paddingTB-xxs) var(--td-comp-paddingLR-xxs);
72
+ font: var(--td-font-body-small);
73
+ }
@@ -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-63d91dd6"]]);
5
+ const QdForm = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8ce97fd3"]]);
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, size: globalSize } = 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) ?? globalSize.value;
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,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
107
113
  return {
108
114
  descriptions,
109
115
  externalLoad,
116
+ mini,
117
+ small: componentSize === "small" && !(descriptions && mini),
118
+ size: componentSize,
110
119
  formOptions: {
111
120
  ...formOptions,
121
+ size: componentSize,
112
122
  labelAlign: !formOptions.labelAlign && descriptions ? "left" : formOptions.labelAlign ?? "top",
113
123
  scrollToFirstError: submitShowErrorMessage.value === false ? "" : submitScrollToFirstError.value ?? scrollToFirstError,
114
124
  onReset: reOnReset
@@ -291,7 +301,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
291
301
  "qd-form",
292
302
  reProps.value.formOptions.labelAlign ? `qd-form--label-${reProps.value.formOptions.labelAlign}` : "",
293
303
  _ctx.$slots.footer ? "qd-form--has-footer" : "",
294
- reProps.value.descriptions ? "qd-form--descriptions" : ""
304
+ reProps.value.descriptions ? "qd-form--descriptions" : "",
305
+ reProps.value.descriptions && reProps.value.mini ? "qd-form--descriptions-mini" : "",
306
+ reProps.value.small ? "qd-form--small" : ""
295
307
  ]
296
308
  }, reProps.value.formOptions, {
297
309
  data: unref(data),
@@ -308,8 +320,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
308
320
  "crud-mode": __props.crudMode,
309
321
  context: unref(data),
310
322
  "default-clearable": __props.defaultClearable,
323
+ size: reProps.value.size,
311
324
  "label-align": item.labelAlign ?? reProps.value.formOptions.labelAlign
312
- }, { ref_for: true }, item), null, 16, ["crud-mode", "context", "default-clearable", "label-align"]);
325
+ }, { ref_for: true }, item), null, 16, ["crud-mode", "context", "default-clearable", "size", "label-align"]);
313
326
  }), 128))
314
327
  ]),
315
328
  _: 1
@@ -1,6 +1,6 @@
1
- .qd-form-item[data-v-d0052bd4] > .t-form__item > .t-form__controls > .t-form__controls-content > *:not(.t-switch):not(.t-tag):not(.t-icon):not(.qd-file-icon) {
1
+ .qd-form-item[data-v-ad5e6a9f] > .t-form__item > .t-form__controls > .t-form__controls-content > *:not(.t-switch):not(.t-tag):not(.t-icon):not(.qd-file-icon) {
2
2
  width: 100%;
3
3
  }
4
- .qd-form-item__component[data-v-d0052bd4]:not(.t-switch):not(.t-tag):not(.t-icon):not(.qd-file-icon) {
4
+ .qd-form-item__component[data-v-ad5e6a9f]:not(.t-switch):not(.t-tag):not(.t-icon):not(.qd-file-icon) {
5
5
  width: 100%;
6
6
  }
@@ -2,7 +2,7 @@ import './item.css'
2
2
  import _sfc_main from "./item.vue2.mjs";
3
3
  /* empty css */
4
4
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
5
- const QdFormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d0052bd4"]]);
5
+ const QdFormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ad5e6a9f"]]);
6
6
  export {
7
7
  QdFormItem as default
8
8
  };
@@ -19,6 +19,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19
19
  required: { type: [Boolean, String] },
20
20
  ifRender: { type: [Boolean, Function, Object] },
21
21
  rules: {},
22
+ size: {},
22
23
  trimOnBlur: { type: Boolean },
23
24
  for: {},
24
25
  help: {},
@@ -57,7 +58,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
57
58
  return ifRender;
58
59
  });
59
60
  const reProps = computed(() => {
60
- const { col, row, component, required, rules, trimOnBlur, ...formItemOptions } = props;
61
+ const { col, row, component, required, rules, size, trimOnBlur, ...formItemOptions } = props;
61
62
  const { component: reComponent, rules: wrappedRules } = resolveQdFormItemOptions({
62
63
  formItem: props,
63
64
  context: currentContext.value,
@@ -1,4 +1,4 @@
1
- import type { CustomValidateResolveType, Data, FormInstanceFunctions, FormRule, FormValidateParams, FormValidateResult, SubmitContext, TdFormItemProps, TdFormProps, TdLoadingProps, ValueType } from 'tdesign-vue-next';
1
+ import type { CustomValidateResolveType, Data, FormInstanceFunctions, FormRule, FormValidateParams, FormValidateResult, SizeEnum, SubmitContext, TdFormItemProps, TdFormProps, TdLoadingProps, ValueType } from 'tdesign-vue-next';
2
2
  import type { AllowedComponentProps } from 'vue';
3
3
  import type { QdConfigRendererProps, QdConfigValue } from '../config-renderer';
4
4
  import type { QdGridItemProps, QdGridProps } from '../grid';
@@ -16,14 +16,16 @@ export interface QdFormItemProps extends Omit<TdFormItemProps, 'rules'>, Allowed
16
16
  required?: boolean | string;
17
17
  ifRender?: QdConfigValue<boolean>;
18
18
  rules?: QdFormRule[];
19
+ size?: SizeEnum;
19
20
  trimOnBlur?: boolean;
20
21
  }
21
22
  export interface QdFormSubmitContext<FD extends Data = Data> extends SubmitContext<FD>, Pick<QdFormProps, 'crudMode'> {
22
23
  showErrorMessage: boolean;
23
24
  formData: FD;
24
25
  }
25
- export interface QdFormProps<FD extends Data = Data> extends Omit<TdFormProps<FD>, 'layout' | 'onSubmit'>, QdGridProps {
26
+ export interface QdFormProps<FD extends Data = Data> extends Omit<TdFormProps<FD>, 'layout' | 'onSubmit' | 'size'>, QdGridProps {
26
27
  crudMode?: 'add' | 'view' | 'edit';
28
+ size?: SizeEnum | 'mini';
27
29
  items?: QdFormItemProps[];
28
30
  loading?: boolean;
29
31
  loadingProps?: TdLoadingProps;
@@ -53,6 +53,7 @@ function resolveQdFormItemOptions(options) {
53
53
  placeholderPrefix = String(t("orgSelectText"));
54
54
  }
55
55
  if (compName.includes("upload")) messagePrefix = String(t("uploadText"));
56
+ component.size = component.size ?? formItem.size;
56
57
  if (formItem.required && !rules.some((item) => item.required)) {
57
58
  rules.push({
58
59
  required: true,
@@ -10,13 +10,12 @@ declare const __VLS_component: import("vue").DefineComponent<QdInputNumberProps,
10
10
  "onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
11
11
  }>, {
12
12
  theme: "column" | "row" | "normal";
13
- size: "small" | "medium" | "large";
13
+ disabled: boolean;
14
+ readonly: boolean;
14
15
  placeholder: string;
15
16
  max: InputNumberValue;
16
17
  min: InputNumberValue;
17
18
  status: "default" | "success" | "warning" | "error";
18
- disabled: boolean;
19
- readonly: boolean;
20
19
  step: InputNumberValue;
21
20
  allowInputOverLimit: boolean;
22
21
  convStr: boolean;
@@ -1,7 +1,6 @@
1
1
  export declare const qdInputNumberProps: {
2
2
  readonly allowInputOverLimit: false;
3
3
  readonly theme: "column";
4
- readonly size: "medium";
5
4
  readonly status: "default";
6
5
  readonly step: 1;
7
6
  readonly max: number;
@@ -1,7 +1,6 @@
1
1
  const qdInputNumberProps = {
2
2
  allowInputOverLimit: false,
3
3
  theme: "column",
4
- size: "medium",
5
4
  status: "default",
6
5
  step: 1,
7
6
  max: Infinity,
@@ -78,9 +78,9 @@ declare const __VLS_component: import("vue").DefineComponent<QdMdEditorProps, {
78
78
  }> & Omit<{
79
79
  readonly style: string | import("vue").CSSProperties;
80
80
  readonly theme: import("md-editor-v3").Themes;
81
+ readonly disabled: boolean;
81
82
  readonly placeholder: string;
82
83
  readonly class: string;
83
- readonly disabled: boolean;
84
84
  readonly modelValue: string;
85
85
  readonly language: string;
86
86
  readonly preview: boolean;
@@ -119,13 +119,13 @@ declare const __VLS_component: import("vue").DefineComponent<QdMdEditorProps, {
119
119
  readonly noHighlight: boolean;
120
120
  readonly noImgZoomIn: boolean;
121
121
  readonly noEcharts: boolean;
122
+ readonly id?: string | undefined;
123
+ readonly onChange?: import("md-editor-v3").ChangeEvent | undefined;
122
124
  readonly onDrop?: ((event: DragEvent) => void) | undefined;
123
125
  readonly onFocus?: ((event: FocusEvent) => void) | undefined;
124
126
  readonly onBlur?: ((event: FocusEvent) => void) | undefined;
125
- readonly onChange?: import("md-editor-v3").ChangeEvent | undefined;
126
127
  readonly onInput?: ((event: Event) => void) | undefined;
127
128
  readonly onError?: import("md-editor-v3").ErrorEvent | undefined;
128
- readonly id?: string | undefined;
129
129
  readonly onSave?: import("md-editor-v3").SaveEvent | undefined;
130
130
  readonly onUploadImg?: UploadImgEvent | undefined;
131
131
  readonly defToolbars?: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -156,7 +156,7 @@ declare const __VLS_component: import("vue").DefineComponent<QdMdEditorProps, {
156
156
  readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined | undefined;
157
157
  readonly onOninputBoxWidthChange?: ((...args: any[]) => any) | undefined | undefined;
158
158
  readonly onOnRemount?: ((...args: any[]) => any) | undefined | undefined;
159
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "style" | "theme" | "placeholder" | "class" | "onDrop" | "onFocus" | "onBlur" | "onChange" | "onInput" | "onError" | "disabled" | "id" | "modelValue" | "language" | "preview" | "pageFullscreen" | "htmlPreview" | "onSave" | "onUploadImg" | "toolbars" | "floatingToolbars" | "toolbarsExclude" | "tabWidth" | "tableShape" | "defToolbars" | "footers" | "scrollAuto" | "defFooters" | "autoFocus" | "autoDetectCode" | "completions" | "showToolbarName" | "inputBoxWidth" | "oninputBoxWidthChange" | "transformImgUrl" | "catalogLayout" | "catalogMaxDepth" | "onHtmlChanged" | "onGetCatalog" | "showCodeRowNumber" | "mdHeadingId" | "sanitize" | "formatCopiedText" | "codeStyleReverse" | "codeStyleReverseList" | "customIcon" | "sanitizeMermaid" | "codeFoldable" | "autoFoldThreshold" | "onRemount" | "previewComponent" | "noPrettier" | "noUploadImg" | "readOnly" | "maxLength" | "editorId" | "previewTheme" | "noMermaid" | "noKatex" | "codeTheme" | "noHighlight" | "noImgZoomIn" | "noEcharts">;
159
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "style" | "theme" | "disabled" | "id" | "onChange" | "placeholder" | "class" | "onDrop" | "onFocus" | "onBlur" | "onInput" | "onError" | "modelValue" | "language" | "preview" | "pageFullscreen" | "htmlPreview" | "onSave" | "onUploadImg" | "toolbars" | "floatingToolbars" | "toolbarsExclude" | "tabWidth" | "tableShape" | "defToolbars" | "footers" | "scrollAuto" | "defFooters" | "autoFocus" | "autoDetectCode" | "completions" | "showToolbarName" | "inputBoxWidth" | "oninputBoxWidthChange" | "transformImgUrl" | "catalogLayout" | "catalogMaxDepth" | "onHtmlChanged" | "onGetCatalog" | "showCodeRowNumber" | "mdHeadingId" | "sanitize" | "formatCopiedText" | "codeStyleReverse" | "codeStyleReverseList" | "customIcon" | "sanitizeMermaid" | "codeFoldable" | "autoFoldThreshold" | "onRemount" | "previewComponent" | "noPrettier" | "noUploadImg" | "readOnly" | "maxLength" | "editorId" | "previewTheme" | "noMermaid" | "noKatex" | "codeTheme" | "noHighlight" | "noImgZoomIn" | "noEcharts">;
160
160
  $attrs: {
161
161
  [x: string]: unknown;
162
162
  };
@@ -169,7 +169,7 @@ declare const __VLS_component: import("vue").DefineComponent<QdMdEditorProps, {
169
169
  $root: import("vue").ComponentPublicInstance | null;
170
170
  $parent: import("vue").ComponentPublicInstance | null;
171
171
  $host: Element | null;
172
- $emit: (event: "onDrop" | "onFocus" | "onBlur" | "onChange" | "onInput" | "onError" | "update:modelValue" | "onSave" | "onUploadImg" | "oninputBoxWidthChange" | "onHtmlChanged" | "onGetCatalog" | "onRemount", ...args: any[]) => void;
172
+ $emit: (event: "onChange" | "onDrop" | "onFocus" | "onBlur" | "onInput" | "onError" | "update:modelValue" | "onSave" | "onUploadImg" | "oninputBoxWidthChange" | "onHtmlChanged" | "onGetCatalog" | "onRemount", ...args: any[]) => void;
173
173
  $el: any;
174
174
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
175
175
  onSave: {
@@ -1,58 +1,66 @@
1
- .qd-service-table[data-v-616e3cad] {
1
+ .qd-service-table[data-v-ee419bfb] {
2
2
  height: 100%;
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  }
6
- .qd-service-table[data-v-616e3cad] > .t-table__content {
6
+ .qd-service-table[data-v-ee419bfb] > .t-table__content {
7
7
  flex: 1;
8
8
  }
9
- .qd-service-table[data-v-616e3cad] .t-table__tree-col:not(:has(.t-table__tree-op-icon)) {
9
+ .qd-service-table--mini[data-v-ee419bfb] {
10
+ font: var(--td-font-body-small);
11
+ }
12
+ .qd-service-table--mini[data-v-ee419bfb] th,
13
+ .qd-service-table--mini[data-v-ee419bfb] tr:not(.t-table__expanded-row) > td {
14
+ padding: var(--td-comp-paddingTB-xxs) var(--td-comp-paddingLR-xxs);
15
+ line-height: var(--td-line-height-body-small);
16
+ }
17
+ .qd-service-table[data-v-ee419bfb] .t-table__tree-col:not(:has(.t-table__tree-op-icon)) {
10
18
  margin-left: calc(var(--td-font-size-body-large) + var(--td-comp-margin-s));
11
19
  }
12
- .qd-service-table[data-v-616e3cad] .t-table__tree-leaf-node .t-table__tree-op-icon:empty {
20
+ .qd-service-table[data-v-ee419bfb] .t-table__tree-leaf-node .t-table__tree-op-icon:empty {
13
21
  width: calc(var(--td-font-size-body-large) + var(--td-comp-margin-s));
14
22
  }
15
- .qd-service-table[data-v-616e3cad] .t-affix > .t-table__affixed-header-elm-wrap,
16
- .qd-service-table[data-v-616e3cad] .t-affix > .t-table__scrollbar--obvious {
17
- transform: var(--v17ef397a);
23
+ .qd-service-table[data-v-ee419bfb] .t-affix > .t-table__affixed-header-elm-wrap,
24
+ .qd-service-table[data-v-ee419bfb] .t-affix > .t-table__scrollbar--obvious {
25
+ transform: var(--v5f2dd170);
18
26
  }
19
- .qd-service-table--horizontal-bar-static[data-v-616e3cad] .t-table__scrollbar--obvious {
27
+ .qd-service-table--horizontal-bar-static[data-v-ee419bfb] .t-table__scrollbar--obvious {
20
28
  visibility: hidden;
21
29
  pointer-events: none;
22
30
  }
23
- .qd-service-table[data-v-616e3cad] .t-table__affixed-header-elm-wrap {
31
+ .qd-service-table[data-v-ee419bfb] .t-table__affixed-header-elm-wrap {
24
32
  height: auto !important;
25
33
  }
26
- .qd-service-table[data-v-616e3cad] .t-table__affixed-header-elm {
34
+ .qd-service-table[data-v-ee419bfb] .t-table__affixed-header-elm {
27
35
  position: relative;
28
36
  scrollbar-width: none;
29
37
  }
30
- .qd-service-table[data-v-616e3cad] .t-table__affixed-header-elm::-webkit-scrollbar {
38
+ .qd-service-table[data-v-ee419bfb] .t-table__affixed-header-elm::-webkit-scrollbar {
31
39
  display: none;
32
40
  width: 0;
33
41
  height: 0;
34
42
  }
35
- .qd-service-table[data-v-616e3cad] .t-table__virtual-scroll-cursor + table {
43
+ .qd-service-table[data-v-ee419bfb] .t-table__virtual-scroll-cursor + table {
36
44
  border-collapse: separate;
37
45
  }
38
- .qd-service-table[data-v-616e3cad] .t-table__expanded-row-inner {
46
+ .qd-service-table[data-v-ee419bfb] .t-table__expanded-row-inner {
39
47
  position: sticky;
40
48
  left: 0;
41
- width: var(--v61770878) !important;
49
+ width: var(--v1d473786) !important;
42
50
  }
43
- .qd-service-table[data-v-616e3cad] .t-table__cell-wrap > *:not(.t-switch):not(.t-tag):not(.t-icon):not(.qd-file-icon) {
51
+ .qd-service-table[data-v-ee419bfb] .t-table__cell-wrap > *:not(.t-switch):not(.t-tag):not(.t-icon):not(.qd-file-icon) {
44
52
  width: 100%;
45
53
  }
46
- .qd-service-table[data-v-616e3cad] .qd-service-table__non-editable-col {
54
+ .qd-service-table[data-v-ee419bfb] .qd-service-table__non-editable-col {
47
55
  background-color: color-mix(in srgb, var(--td-bg-color-component) 50%, transparent);
48
56
  }
49
- .qd-service-table[data-v-616e3cad] .qd-service-table__non-editable-col:is(
57
+ .qd-service-table[data-v-ee419bfb] .qd-service-table__non-editable-col:is(
50
58
  .t-table__cell--fixed-left,
51
59
  .t-table__cell--fixed-right
52
60
  ) {
53
61
  background-color: inherit;
54
62
  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));
55
63
  }
56
- .qd-service-table--disable-horizontal-scroll[data-v-616e3cad] colgroup > col {
64
+ .qd-service-table--disable-horizontal-scroll[data-v-ee419bfb] colgroup > col {
57
65
  width: auto !important;
58
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 QdServiceTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-616e3cad"]]);
5
+ const QdServiceTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ee419bfb"]]);
6
6
  export {
7
7
  QdServiceTable as default
8
8
  };
@@ -27,6 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
27
  props: /* @__PURE__ */ mergeDefaults({
28
28
  columns: {},
29
29
  rowKey: {},
30
+ size: {},
30
31
  selectType: {},
31
32
  headerBg: {
32
33
  type: Boolean
@@ -233,7 +234,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
233
234
  showHeader: {
234
235
  type: Boolean
235
236
  },
236
- size: {},
237
237
  stripe: {
238
238
  type: Boolean
239
239
  },
@@ -320,8 +320,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
320
320
  emit: __emit
321
321
  }) {
322
322
  useCssVars((_ctx) => ({
323
- "v17ef397a": affixedHeaderTransform.value,
324
- "v61770878": expandedRowWidth.value
323
+ "v5f2dd170": affixedHeaderTransform.value,
324
+ "v1d473786": expandedRowWidth.value
325
325
  }));
326
326
  const props = __props;
327
327
  const emit = __emit;
@@ -511,6 +511,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
511
511
  onScroll,
512
512
  onCellClick,
513
513
  onRowClick,
514
+ size,
514
515
  bordered,
515
516
  headerAffixedTop,
516
517
  horizontalScrollAffixedBottom,
@@ -723,10 +724,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
723
724
  });
724
725
  }
725
726
  } : false;
727
+ const reSize = size ?? tableT("size");
726
728
  return {
727
729
  loadingWithData,
728
730
  columns: adaptedColumns.value,
729
731
  emptyText,
732
+ size: reSize,
730
733
  tableOptions: {
731
734
  ...reTableOptions,
732
735
  selectOnRowClick: reSelectOnRowClick,
@@ -738,6 +741,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
738
741
  onScroll: reOnScroll,
739
742
  onCellClick: reOnCellClick,
740
743
  onRowClick,
744
+ size: reSize === "mini" ? "small" : reSize,
741
745
  headerAffixedTop: reHeaderAffixedTop,
742
746
  horizontalScrollAffixedBottom: reHorizontalScrollAffixedBottom,
743
747
  bordered: bordered ?? tableT("bordered") ?? true
@@ -1886,7 +1890,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1886
1890
  return (_ctx, _cache) => {
1887
1891
  return withDirectives((openBlock(), createBlock(resolveDynamicComponent(reProps.value.tableOptions.tree ? unref(EnhancedTable) : unref(Table)), mergeProps({
1888
1892
  ref: "table",
1889
- class: ["qd-service-table", __props.headerBg ? "" : "t-table--header-bg-inherit", horizontalScrollAffixed.value ? "t-table--horizontal-bar-affixed" : "", reProps.value.tableOptions.horizontalScrollAffixedBottom && !horizontalScrollAffixed.value ? "qd-service-table--horizontal-bar-static" : "", __props.disableHorizontalScroll ? "qd-service-table--disable-horizontal-scroll" : ""],
1893
+ class: ["qd-service-table", __props.headerBg ? "" : "t-table--header-bg-inherit", horizontalScrollAffixed.value ? "t-table--horizontal-bar-affixed" : "", reProps.value.tableOptions.horizontalScrollAffixedBottom && !horizontalScrollAffixed.value ? "qd-service-table--horizontal-bar-static" : "", reProps.value.size === "mini" ? "qd-service-table--mini" : "", __props.disableHorizontalScroll ? "qd-service-table--disable-horizontal-scroll" : ""],
1890
1894
  onMouseenter: handleTableMouseEnter,
1891
1895
  "selected-row-keys": unref(selectedRowKeys),
1892
1896
  "onUpdate:selectedRowKeys": _cache[0] || (_cache[0] = ($event) => isRef(selectedRowKeys) ? selectedRowKeys.value = $event : null),
@@ -51,9 +51,10 @@ export interface QdServiceTableSubmitRowContext<D extends TableRowData = TableRo
51
51
  showErrorMessage: boolean;
52
52
  rowData?: D;
53
53
  }
54
- export interface QdServiceTableProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = ServicePagination> extends Omit<TdEnhancedTableProps<D>, 'columns' | 'rowKey' | 'pagination' | 'tree' | 'lazyLoad' | 'scroll'>, ServicePaginationOptions<D, R, P, TP, Pag> {
54
+ export interface QdServiceTableProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = ServicePagination> extends Omit<TdEnhancedTableProps<D>, 'columns' | 'rowKey' | 'pagination' | 'tree' | 'lazyLoad' | 'scroll' | 'size'>, ServicePaginationOptions<D, R, P, TP, Pag> {
55
55
  columns?: QdServiceTableCol<D>[];
56
56
  rowKey?: string;
57
+ size?: TdEnhancedTableProps<D>['size'] | 'mini';
57
58
  selectType?: 'single' | 'multiple';
58
59
  headerBg?: boolean;
59
60
  searchData?: Record<string, unknown>;
@@ -19,9 +19,9 @@ declare const _default: import("vue").DefineComponent<QdTinymceProps, {
19
19
  disabled: any;
20
20
  tinymceScriptSrc: any;
21
21
  }> & Omit<{
22
- readonly inline: any;
23
22
  readonly disabled: any;
24
23
  readonly id: any;
24
+ readonly inline: any;
25
25
  readonly modelValue: any;
26
26
  readonly toolbar: any;
27
27
  readonly init: any;
@@ -33,7 +33,7 @@ declare const _default: import("vue").DefineComponent<QdTinymceProps, {
33
33
  readonly modelEvents: any;
34
34
  readonly tagName: any;
35
35
  readonly tinymceScriptSrc: any;
36
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "inline" | "disabled" | "id" | "modelValue" | "toolbar" | "init" | "initialValue" | "plugins" | "apiKey" | "cloudChannel" | "outputFormat" | "modelEvents" | "tagName" | "tinymceScriptSrc">;
36
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "id" | "inline" | "modelValue" | "toolbar" | "init" | "initialValue" | "plugins" | "apiKey" | "cloudChannel" | "outputFormat" | "modelEvents" | "tagName" | "tinymceScriptSrc">;
37
37
  $attrs: {
38
38
  [x: string]: unknown;
39
39
  };
@@ -103,12 +103,13 @@ declare const _default: import("vue").DefineComponent<QdTinymceProps, {
103
103
  "onUpdate:modelValue"?: ((args_0: string | undefined) => any) | undefined;
104
104
  }>, {
105
105
  theme: "light" | "dark";
106
+ disabled: boolean;
107
+ maxHeight: number;
108
+ onChange: (content: string) => void;
106
109
  placeholder: string;
107
110
  name: string;
108
111
  onFocus: () => void;
109
112
  onBlur: () => void;
110
- onChange: (content: string) => void;
111
- disabled: boolean;
112
113
  options: Partial<RawEditorSettings>;
113
114
  toolbar: string | string[];
114
115
  action: string | ((bucketConfigKey?: string) => string);
@@ -120,7 +121,6 @@ declare const _default: import("vue").DefineComponent<QdTinymceProps, {
120
121
  bucketConfigKey: string;
121
122
  plugins: string[];
122
123
  minHeight: number;
123
- maxHeight: number;
124
124
  skinUrl: string;
125
125
  skinDarkUrl: string;
126
126
  localeUrl: string;
@@ -213,6 +213,7 @@ p {
213
213
  align-items: center;
214
214
  }
215
215
  .t-card {
216
+ --td-card-padding: var(--td-comp-paddingTB-l) var(--td-comp-paddingLR-l);
216
217
  display: flex;
217
218
  flex-direction: column;
218
219
  }
@@ -222,14 +223,17 @@ p {
222
223
  flex-direction: column;
223
224
  }
224
225
  .t-card__header {
225
- padding: var(--td-comp-paddingTB-l) var(--td-comp-paddingLR-l) !important;
226
+ padding: var(--td-card-padding) !important;
226
227
  }
227
228
  .t-card__body {
228
229
  flex: auto;
229
- padding: var(--td-comp-paddingTB-l) var(--td-comp-paddingLR-l) !important;
230
+ padding: var(--td-card-padding) !important;
230
231
  }
231
232
  .t-card__footer {
232
- padding: var(--td-comp-paddingTB-l) var(--td-comp-paddingLR-l) !important;
233
+ padding: var(--td-card-padding) !important;
234
+ }
235
+ .t-card.t-size-s {
236
+ --td-card-padding: var(--td-comp-paddingTB-s) var(--td-comp-paddingLR-s);
233
237
  }
234
238
  .t-upload__card-name {
235
239
  display: inline-flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qidian-vue-ui",
3
- "version": "2.0.3",
3
+ "version": "2.0.6",
4
4
  "description": "基于 TDesign 的 QiDian Vue UI 组件库",
5
5
  "author": "qidian",
6
6
  "license": "MIT",