@dt-frames/ui 2.0.4 → 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 (56) hide show
  1. package/es/assets/locales/en.d.ts +2 -0
  2. package/es/assets/locales/en.ts +2 -0
  3. package/es/assets/locales/zh.d.ts +1 -0
  4. package/es/assets/locales/zh.ts +6 -5
  5. package/es/components/curd/index.js +117 -62
  6. package/es/components/curd/src/components/Curd.d.ts +0 -8
  7. package/es/components/curd/src/props.d.ts +0 -4
  8. package/es/components/form/index.d.ts +20 -53
  9. package/es/components/form/index.js +5 -3
  10. package/es/components/form/index.less +8 -3
  11. package/es/components/form/src/index.d.ts +16 -41
  12. package/es/components/source/index.js +8 -5
  13. package/es/components/source/types/source.type.d.ts +1 -0
  14. package/es/components/table/index.js +145 -95
  15. package/es/components/table/index.less +26 -5
  16. package/es/components/table/src/components/TableAction.d.ts +1 -1
  17. package/es/components/table/src/index.d.ts +10 -0
  18. package/es/components/table/src/props.d.ts +4 -0
  19. package/es/components/tree/index.d.ts +2 -0
  20. package/es/components/tree/index.js +1087 -0
  21. package/es/components/tree/index.less +119 -0
  22. package/es/components/tree/src/basicProps.d.ts +146 -0
  23. package/es/components/tree/src/components/ContextMenu.d.ts +64 -0
  24. package/es/components/tree/src/components/TreeHeader.d.ts +98 -0
  25. package/es/components/tree/src/enums/index.d.ts +6 -0
  26. package/es/components/tree/src/hooks/useContextMenu.d.ts +2 -0
  27. package/es/components/tree/src/hooks/useTree.d.ts +14 -0
  28. package/es/components/tree/src/index.d.ts +6526 -0
  29. package/es/components/tree/src/type/menu.d.ts +33 -0
  30. package/es/components/tree/src/type/tree.d.ts +55 -0
  31. package/es/components/tree/src/utils/tree.d.ts +5 -0
  32. package/es/theme/index.d.ts +2 -1
  33. package/es/theme/index.js +829 -699
  34. package/es/theme/index.less +56 -0
  35. package/es/theme/src/components/content/index.d.ts +6 -4
  36. package/es/theme/src/components/header/components/logo.d.ts +22 -0
  37. package/es/theme/src/components/header/index.d.ts +110 -0
  38. package/es/theme/src/components/header/multiple-header.d.ts +154 -20
  39. package/es/theme/src/components/sider/index.d.ts +22 -0
  40. package/es/theme/src/components/sider/mix-sider.d.ts +22 -0
  41. package/es/theme/src/components/tabs/components/TabContent.d.ts +33 -3
  42. package/es/theme/src/components/tabs/components/TabRedo.d.ts +6 -4
  43. package/es/theme/src/components/tabs/hooks/useTabDropdown.d.ts +6 -4
  44. package/es/theme/src/components/tabs/hooks/useTabs.d.ts +10 -0
  45. package/es/theme/src/components/tabs/index.d.ts +43 -20
  46. package/es/theme/src/hooks/useMenu.d.ts +1 -1
  47. package/es/theme/src/hooks/useMultifyTab.d.ts +1 -0
  48. package/es/theme/src/index.d.ts +293 -24
  49. package/es/theme/src/stores/routeReuse.store.d.ts +6 -4
  50. package/es/theme/src/stores/theme.store.d.ts +1 -0
  51. package/es/theme/src/types/theme.type.d.ts +2 -0
  52. package/index.d.ts +2 -1
  53. package/index.js +6 -2
  54. package/package.json +4 -2
  55. package/tsconfig.json +1 -0
  56. package/vite.config.ts +1 -0
@@ -13,7 +13,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
13
13
  default: () => {};
14
14
  };
15
15
  layout: {
16
- type: import("vue").PropType<"vertical" | "inline" | "horizontal">;
16
+ type: import("vue").PropType<"vertical" | "horizontal" | "inline">;
17
17
  default: string;
18
18
  };
19
19
  labelWidth: {
@@ -57,7 +57,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
57
57
  default: () => {};
58
58
  };
59
59
  size: {
60
- type: import("vue").PropType<"middle" | "small" | "large">;
60
+ type: import("vue").PropType<"small" | "middle" | "large">;
61
61
  default: string;
62
62
  };
63
63
  disabled: {
@@ -76,10 +76,6 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
76
76
  type: BooleanConstructor;
77
77
  default: boolean;
78
78
  };
79
- alwaysShowLines: {
80
- type: BooleanConstructor;
81
- default: boolean;
82
- };
83
79
  minShowColumn: {
84
80
  type: NumberConstructor;
85
81
  default: number;
@@ -149,7 +145,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
149
145
  default: () => {};
150
146
  };
151
147
  layout: {
152
- type: import("vue").PropType<"vertical" | "inline" | "horizontal">;
148
+ type: import("vue").PropType<"vertical" | "horizontal" | "inline">;
153
149
  default: string;
154
150
  };
155
151
  labelWidth: {
@@ -193,7 +189,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
193
189
  default: () => {};
194
190
  };
195
191
  size: {
196
- type: import("vue").PropType<"middle" | "small" | "large">;
192
+ type: import("vue").PropType<"small" | "middle" | "large">;
197
193
  default: string;
198
194
  };
199
195
  disabled: {
@@ -212,10 +208,6 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
212
208
  type: BooleanConstructor;
213
209
  default: boolean;
214
210
  };
215
- alwaysShowLines: {
216
- type: BooleanConstructor;
217
- default: boolean;
218
- };
219
211
  minShowColumn: {
220
212
  type: NumberConstructor;
221
213
  default: number;
@@ -291,7 +283,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
291
283
  default: () => {};
292
284
  };
293
285
  layout: {
294
- type: import("vue").PropType<"vertical" | "inline" | "horizontal">;
286
+ type: import("vue").PropType<"vertical" | "horizontal" | "inline">;
295
287
  default: string;
296
288
  };
297
289
  labelWidth: {
@@ -335,7 +327,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
335
327
  default: () => {};
336
328
  };
337
329
  size: {
338
- type: import("vue").PropType<"middle" | "small" | "large">;
330
+ type: import("vue").PropType<"small" | "middle" | "large">;
339
331
  default: string;
340
332
  };
341
333
  disabled: {
@@ -354,10 +346,6 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
354
346
  type: BooleanConstructor;
355
347
  default: boolean;
356
348
  };
357
- alwaysShowLines: {
358
- type: BooleanConstructor;
359
- default: boolean;
360
- };
361
349
  minShowColumn: {
362
350
  type: NumberConstructor;
363
351
  default: number;
@@ -2191,8 +2179,8 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
2191
2179
  validator?: (rule: import("ant-design-vue/lib/form").RuleObject, value: any, callback: (error?: string) => void) => void | Promise<void>;
2192
2180
  } | any;
2193
2181
  required?: boolean;
2194
- trigger?: "blur" | "change" | ("blur" | "change")[];
2195
2182
  validator?: (rule: import("ant-design-vue/lib/form").RuleObject, value: any, callback: (error?: string) => void) => void | Promise<void>;
2183
+ trigger?: "blur" | "change" | ("blur" | "change")[];
2196
2184
  transform?: (value: any) => any;
2197
2185
  warningOnly?: boolean;
2198
2186
  message?: (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -2230,6 +2218,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
2230
2218
  validateTrigger?: string | string[];
2231
2219
  };
2232
2220
  required?: boolean;
2221
+ validator?: (rule: import("ant-design-vue/lib/form").RuleObject, value: any, callback: (error?: string) => void) => void | Promise<void>;
2233
2222
  trigger?: "blur" | "change" | ("blur" & ["change", "blur"]) | ("change" & ["change", "blur"]) | (("blur" | "change")[] & "blur") | (("blur" | "change")[] & "change") | {
2234
2223
  [x: number]: "blur" | "change";
2235
2224
  length: 2;
@@ -2301,7 +2290,6 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
2301
2290
  0: "change";
2302
2291
  1: "blur";
2303
2292
  };
2304
- validator?: (rule: import("ant-design-vue/lib/form").RuleObject, value: any, callback: (error?: string) => void) => void | Promise<void>;
2305
2293
  transform?: (value: any) => any;
2306
2294
  warningOnly?: boolean;
2307
2295
  message?: (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -2406,7 +2394,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
2406
2394
  default: () => {};
2407
2395
  };
2408
2396
  layout: {
2409
- type: import("vue").PropType<"vertical" | "inline" | "horizontal">;
2397
+ type: import("vue").PropType<"vertical" | "horizontal" | "inline">;
2410
2398
  default: string;
2411
2399
  };
2412
2400
  labelWidth: {
@@ -2450,7 +2438,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
2450
2438
  default: () => {};
2451
2439
  };
2452
2440
  size: {
2453
- type: import("vue").PropType<"middle" | "small" | "large">;
2441
+ type: import("vue").PropType<"small" | "middle" | "large">;
2454
2442
  default: string;
2455
2443
  };
2456
2444
  disabled: {
@@ -2469,10 +2457,6 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
2469
2457
  type: BooleanConstructor;
2470
2458
  default: boolean;
2471
2459
  };
2472
- alwaysShowLines: {
2473
- type: BooleanConstructor;
2474
- default: boolean;
2475
- };
2476
2460
  minShowColumn: {
2477
2461
  type: NumberConstructor;
2478
2462
  default: number;
@@ -2540,7 +2524,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
2540
2524
  default: () => {};
2541
2525
  };
2542
2526
  layout: {
2543
- type: import("vue").PropType<"vertical" | "inline" | "horizontal">;
2527
+ type: import("vue").PropType<"vertical" | "horizontal" | "inline">;
2544
2528
  default: string;
2545
2529
  };
2546
2530
  labelWidth: {
@@ -2584,7 +2568,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
2584
2568
  default: () => {};
2585
2569
  };
2586
2570
  size: {
2587
- type: import("vue").PropType<"middle" | "small" | "large">;
2571
+ type: import("vue").PropType<"small" | "middle" | "large">;
2588
2572
  default: string;
2589
2573
  };
2590
2574
  disabled: {
@@ -2603,10 +2587,6 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
2603
2587
  type: BooleanConstructor;
2604
2588
  default: boolean;
2605
2589
  };
2606
- alwaysShowLines: {
2607
- type: BooleanConstructor;
2608
- default: boolean;
2609
- };
2610
2590
  minShowColumn: {
2611
2591
  type: NumberConstructor;
2612
2592
  default: number;
@@ -2684,7 +2664,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
2684
2664
  default: () => {};
2685
2665
  };
2686
2666
  layout: {
2687
- type: import("vue").PropType<"vertical" | "inline" | "horizontal">;
2667
+ type: import("vue").PropType<"vertical" | "horizontal" | "inline">;
2688
2668
  default: string;
2689
2669
  };
2690
2670
  labelWidth: {
@@ -2728,7 +2708,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
2728
2708
  default: () => {};
2729
2709
  };
2730
2710
  size: {
2731
- type: import("vue").PropType<"middle" | "small" | "large">;
2711
+ type: import("vue").PropType<"small" | "middle" | "large">;
2732
2712
  default: string;
2733
2713
  };
2734
2714
  disabled: {
@@ -2747,10 +2727,6 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
2747
2727
  type: BooleanConstructor;
2748
2728
  default: boolean;
2749
2729
  };
2750
- alwaysShowLines: {
2751
- type: BooleanConstructor;
2752
- default: boolean;
2753
- };
2754
2730
  minShowColumn: {
2755
2731
  type: NumberConstructor;
2756
2732
  default: number;
@@ -2835,7 +2811,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
2835
2811
  default: () => {};
2836
2812
  };
2837
2813
  layout: {
2838
- type: import("vue").PropType<"vertical" | "inline" | "horizontal">;
2814
+ type: import("vue").PropType<"vertical" | "horizontal" | "inline">;
2839
2815
  default: string;
2840
2816
  };
2841
2817
  labelWidth: {
@@ -2879,7 +2855,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
2879
2855
  default: () => {};
2880
2856
  };
2881
2857
  size: {
2882
- type: import("vue").PropType<"middle" | "small" | "large">;
2858
+ type: import("vue").PropType<"small" | "middle" | "large">;
2883
2859
  default: string;
2884
2860
  };
2885
2861
  disabled: {
@@ -2898,10 +2874,6 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
2898
2874
  type: BooleanConstructor;
2899
2875
  default: boolean;
2900
2876
  };
2901
- alwaysShowLines: {
2902
- type: BooleanConstructor;
2903
- default: boolean;
2904
- };
2905
2877
  minShowColumn: {
2906
2878
  type: NumberConstructor;
2907
2879
  default: number;
@@ -3070,7 +3042,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
3070
3042
  default: () => {};
3071
3043
  };
3072
3044
  layout: {
3073
- type: import("vue").PropType<"vertical" | "inline" | "horizontal">;
3045
+ type: import("vue").PropType<"vertical" | "horizontal" | "inline">;
3074
3046
  default: string;
3075
3047
  };
3076
3048
  labelWidth: {
@@ -3114,7 +3086,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
3114
3086
  default: () => {};
3115
3087
  };
3116
3088
  size: {
3117
- type: import("vue").PropType<"middle" | "small" | "large">;
3089
+ type: import("vue").PropType<"small" | "middle" | "large">;
3118
3090
  default: string;
3119
3091
  };
3120
3092
  disabled: {
@@ -3133,10 +3105,6 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
3133
3105
  type: BooleanConstructor;
3134
3106
  default: boolean;
3135
3107
  };
3136
- alwaysShowLines: {
3137
- type: BooleanConstructor;
3138
- default: boolean;
3139
- };
3140
3108
  minShowColumn: {
3141
3109
  type: NumberConstructor;
3142
3110
  default: number;
@@ -3187,10 +3155,11 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
3187
3155
  }>> & {
3188
3156
  onRegister?: (...args: any[]) => any;
3189
3157
  }, {
3158
+ size: "small" | "middle" | "large";
3190
3159
  mode: "search" | "dialog";
3191
3160
  autoFetch: boolean;
3192
3161
  model: {};
3193
- layout: "vertical" | "inline" | "horizontal";
3162
+ layout: "vertical" | "horizontal" | "inline";
3194
3163
  labelWidth: string | number;
3195
3164
  enLabelWidth: string | number;
3196
3165
  labelAlign: "left" | "right";
@@ -3198,12 +3167,10 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
3198
3167
  wrapperCol: {};
3199
3168
  rowProps: {};
3200
3169
  colProps: {};
3201
- size: "middle" | "small" | "large";
3202
3170
  disabled: boolean;
3203
3171
  compact: boolean;
3204
3172
  schemas: import("./src/types/form.type").FormSchema[];
3205
3173
  autoSearchOnEnter: boolean;
3206
- alwaysShowLines: boolean;
3207
3174
  minShowColumn: number;
3208
3175
  showAdvancedButton: boolean;
3209
3176
  allowClear: boolean;
@@ -353,12 +353,14 @@ function useMultipleTab() {
353
353
  const { getRouteReuseConf } = useThemeStore();
354
354
  const getShowMultipleTab = computed(() => getRouteReuseConf.show);
355
355
  const getShowQuick = computed(() => getRouteReuseConf.showQuick);
356
+ const getMultipleTabPosIsTop = computed(() => getRouteReuseConf.position === "top");
356
357
  const getShowRedo = computed(() => getRouteReuseConf.showRedo);
357
358
  const getCanCache = computed(() => getRouteReuseConf.cache);
358
359
  const getCanDrag = computed(() => getRouteReuseConf.canDrag);
359
360
  return {
360
361
  getShowMultipleTab,
361
362
  getShowQuick,
363
+ getMultipleTabPosIsTop,
362
364
  getShowRedo,
363
365
  getCanCache,
364
366
  getCanDrag
@@ -379,7 +381,7 @@ function useHeader() {
379
381
  getIsTopMenu,
380
382
  getIsMixSidebar
381
383
  } = useMenu();
382
- const { getShowMultipleTab } = useMultipleTab();
384
+ const { getShowMultipleTab, getMultipleTabPosIsTop } = useMultipleTab();
383
385
  const getHeaderTheme = computed(() => getHeaderConf.theme);
384
386
  const getFixed = computed(() => getHeaderConf.fixed);
385
387
  const getShowHeaderLogo = computed(() => unref(getShowLogo) && !unref(getIsSidebarType) && !unref(getIsMixSidebar));
@@ -405,7 +407,7 @@ function useHeader() {
405
407
  const getHeaderHeight = computed(() => {
406
408
  let height = 0;
407
409
  height += HEADER_HEIGHT;
408
- if (unref(getShowMultipleTab) && !unref(getSplit)) {
410
+ if (unref(getShowMultipleTab) && !unref(getSplit) && !unref(getMultipleTabPosIsTop)) {
409
411
  height += TABS_HEIGHT;
410
412
  }
411
413
  return height;
@@ -1499,7 +1501,7 @@ function useFormActions(opt) {
1499
1501
  const {
1500
1502
  schemas,
1501
1503
  minShowColumn = appConf.ui.form?.minShowColumn || 2,
1502
- showAdvancedButton = appConf.ui.form?.showAdvancedButton || true
1504
+ showAdvancedButton = true
1503
1505
  } = unref(getProps);
1504
1506
  let schema = [...schemas];
1505
1507
  if (showAdvancedButton) {
@@ -16,6 +16,10 @@
16
16
  }
17
17
  }
18
18
 
19
+ .ant-form-item-control-input .ant-form-item-control-input-content{
20
+ height: 100%;
21
+ }
22
+
19
23
  &__compact {
20
24
  .ant-form-item-control-input-content .ant-form-item {
21
25
  margin-bottom: 0;
@@ -81,7 +85,7 @@
81
85
  height: 30px;
82
86
  }
83
87
 
84
- .ant-input-affix-wrapper-sm{
88
+ .ant-input-affix-wrapper-sm:not(.ant-input-affix-wrapper-textarea-with-clear-btn){
85
89
  height: 30px;
86
90
 
87
91
  .ant-input-sm{
@@ -160,7 +164,7 @@
160
164
  font-size: 13px;
161
165
  }
162
166
 
163
- .ant-input-affix-wrapper{
167
+ .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-textarea-with-clear-btn){
164
168
  height: 32px;
165
169
 
166
170
  .ant-input{
@@ -224,7 +228,7 @@
224
228
  font-size: 14px;
225
229
  }
226
230
 
227
- .ant-input-affix-wrapper-lg{
231
+ .ant-input-affix-wrapper-lg:not(.ant-input-affix-wrapper-textarea-with-clear-btn){
228
232
  height: 34px;
229
233
 
230
234
  .ant-input{
@@ -292,6 +296,7 @@
292
296
  .ant-input-number {
293
297
  width: 100%;
294
298
  height: 100%;
299
+ font-size: 13px;
295
300
  &.ant-input-number-sm{
296
301
  line-height: 28px;
297
302
  font-size: 12px;
@@ -15,7 +15,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
15
15
  default: () => {};
16
16
  };
17
17
  layout: {
18
- type: import("vue").PropType<"vertical" | "inline" | "horizontal">;
18
+ type: import("vue").PropType<"vertical" | "horizontal" | "inline">;
19
19
  default: string;
20
20
  };
21
21
  labelWidth: {
@@ -59,7 +59,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
59
59
  default: () => {};
60
60
  };
61
61
  size: {
62
- type: import("vue").PropType<"middle" | "small" | "large">;
62
+ type: import("vue").PropType<"small" | "middle" | "large">;
63
63
  default: string;
64
64
  };
65
65
  disabled: {
@@ -78,10 +78,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
78
78
  type: BooleanConstructor;
79
79
  default: boolean;
80
80
  };
81
- alwaysShowLines: {
82
- type: BooleanConstructor;
83
- default: boolean;
84
- };
85
81
  minShowColumn: {
86
82
  type: NumberConstructor;
87
83
  default: number;
@@ -151,7 +147,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
151
147
  default: () => {};
152
148
  };
153
149
  layout: {
154
- type: import("vue").PropType<"vertical" | "inline" | "horizontal">;
150
+ type: import("vue").PropType<"vertical" | "horizontal" | "inline">;
155
151
  default: string;
156
152
  };
157
153
  labelWidth: {
@@ -195,7 +191,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
195
191
  default: () => {};
196
192
  };
197
193
  size: {
198
- type: import("vue").PropType<"middle" | "small" | "large">;
194
+ type: import("vue").PropType<"small" | "middle" | "large">;
199
195
  default: string;
200
196
  };
201
197
  disabled: {
@@ -214,10 +210,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
214
210
  type: BooleanConstructor;
215
211
  default: boolean;
216
212
  };
217
- alwaysShowLines: {
218
- type: BooleanConstructor;
219
- default: boolean;
220
- };
221
213
  minShowColumn: {
222
214
  type: NumberConstructor;
223
215
  default: number;
@@ -293,7 +285,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
293
285
  default: () => {};
294
286
  };
295
287
  layout: {
296
- type: import("vue").PropType<"vertical" | "inline" | "horizontal">;
288
+ type: import("vue").PropType<"vertical" | "horizontal" | "inline">;
297
289
  default: string;
298
290
  };
299
291
  labelWidth: {
@@ -337,7 +329,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
337
329
  default: () => {};
338
330
  };
339
331
  size: {
340
- type: import("vue").PropType<"middle" | "small" | "large">;
332
+ type: import("vue").PropType<"small" | "middle" | "large">;
341
333
  default: string;
342
334
  };
343
335
  disabled: {
@@ -356,10 +348,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
356
348
  type: BooleanConstructor;
357
349
  default: boolean;
358
350
  };
359
- alwaysShowLines: {
360
- type: BooleanConstructor;
361
- default: boolean;
362
- };
363
351
  minShowColumn: {
364
352
  type: NumberConstructor;
365
353
  default: number;
@@ -2193,8 +2181,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
2193
2181
  validator?: (rule: import("ant-design-vue/lib/form").RuleObject, value: any, callback: (error?: string) => void) => void | Promise<void>;
2194
2182
  } | any;
2195
2183
  required?: boolean;
2196
- trigger?: "blur" | "change" | ("blur" | "change")[];
2197
2184
  validator?: (rule: import("ant-design-vue/lib/form").RuleObject, value: any, callback: (error?: string) => void) => void | Promise<void>;
2185
+ trigger?: "blur" | "change" | ("blur" | "change")[];
2198
2186
  transform?: (value: any) => any;
2199
2187
  warningOnly?: boolean;
2200
2188
  message?: (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -2232,6 +2220,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
2232
2220
  validateTrigger?: string | string[];
2233
2221
  };
2234
2222
  required?: boolean;
2223
+ validator?: (rule: import("ant-design-vue/lib/form").RuleObject, value: any, callback: (error?: string) => void) => void | Promise<void>;
2235
2224
  trigger?: "blur" | "change" | ("blur" & ["change", "blur"]) | ("change" & ["change", "blur"]) | (("blur" | "change")[] & "blur") | (("blur" | "change")[] & "change") | {
2236
2225
  [x: number]: "blur" | "change";
2237
2226
  length: 2;
@@ -2303,7 +2292,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
2303
2292
  0: "change";
2304
2293
  1: "blur";
2305
2294
  };
2306
- validator?: (rule: import("ant-design-vue/lib/form").RuleObject, value: any, callback: (error?: string) => void) => void | Promise<void>;
2307
2295
  transform?: (value: any) => any;
2308
2296
  warningOnly?: boolean;
2309
2297
  message?: (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -2408,7 +2396,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
2408
2396
  default: () => {};
2409
2397
  };
2410
2398
  layout: {
2411
- type: import("vue").PropType<"vertical" | "inline" | "horizontal">;
2399
+ type: import("vue").PropType<"vertical" | "horizontal" | "inline">;
2412
2400
  default: string;
2413
2401
  };
2414
2402
  labelWidth: {
@@ -2452,7 +2440,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
2452
2440
  default: () => {};
2453
2441
  };
2454
2442
  size: {
2455
- type: import("vue").PropType<"middle" | "small" | "large">;
2443
+ type: import("vue").PropType<"small" | "middle" | "large">;
2456
2444
  default: string;
2457
2445
  };
2458
2446
  disabled: {
@@ -2471,10 +2459,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
2471
2459
  type: BooleanConstructor;
2472
2460
  default: boolean;
2473
2461
  };
2474
- alwaysShowLines: {
2475
- type: BooleanConstructor;
2476
- default: boolean;
2477
- };
2478
2462
  minShowColumn: {
2479
2463
  type: NumberConstructor;
2480
2464
  default: number;
@@ -2581,7 +2565,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
2581
2565
  default: () => {};
2582
2566
  };
2583
2567
  layout: {
2584
- type: import("vue").PropType<"vertical" | "inline" | "horizontal">;
2568
+ type: import("vue").PropType<"vertical" | "horizontal" | "inline">;
2585
2569
  default: string;
2586
2570
  };
2587
2571
  labelWidth: {
@@ -2625,7 +2609,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
2625
2609
  default: () => {};
2626
2610
  };
2627
2611
  size: {
2628
- type: import("vue").PropType<"middle" | "small" | "large">;
2612
+ type: import("vue").PropType<"small" | "middle" | "large">;
2629
2613
  default: string;
2630
2614
  };
2631
2615
  disabled: {
@@ -2644,10 +2628,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
2644
2628
  type: BooleanConstructor;
2645
2629
  default: boolean;
2646
2630
  };
2647
- alwaysShowLines: {
2648
- type: BooleanConstructor;
2649
- default: boolean;
2650
- };
2651
2631
  minShowColumn: {
2652
2632
  type: NumberConstructor;
2653
2633
  default: number;
@@ -2816,7 +2796,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
2816
2796
  default: () => {};
2817
2797
  };
2818
2798
  layout: {
2819
- type: import("vue").PropType<"vertical" | "inline" | "horizontal">;
2799
+ type: import("vue").PropType<"vertical" | "horizontal" | "inline">;
2820
2800
  default: string;
2821
2801
  };
2822
2802
  labelWidth: {
@@ -2860,7 +2840,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
2860
2840
  default: () => {};
2861
2841
  };
2862
2842
  size: {
2863
- type: import("vue").PropType<"middle" | "small" | "large">;
2843
+ type: import("vue").PropType<"small" | "middle" | "large">;
2864
2844
  default: string;
2865
2845
  };
2866
2846
  disabled: {
@@ -2879,10 +2859,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
2879
2859
  type: BooleanConstructor;
2880
2860
  default: boolean;
2881
2861
  };
2882
- alwaysShowLines: {
2883
- type: BooleanConstructor;
2884
- default: boolean;
2885
- };
2886
2862
  minShowColumn: {
2887
2863
  type: NumberConstructor;
2888
2864
  default: number;
@@ -2933,10 +2909,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
2933
2909
  }>> & {
2934
2910
  onRegister?: (...args: any[]) => any;
2935
2911
  }, {
2912
+ size: "small" | "middle" | "large";
2936
2913
  mode: "search" | "dialog";
2937
2914
  autoFetch: boolean;
2938
2915
  model: {};
2939
- layout: "vertical" | "inline" | "horizontal";
2916
+ layout: "vertical" | "horizontal" | "inline";
2940
2917
  labelWidth: string | number;
2941
2918
  enLabelWidth: string | number;
2942
2919
  labelAlign: "left" | "right";
@@ -2944,12 +2921,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
2944
2921
  wrapperCol: {};
2945
2922
  rowProps: {};
2946
2923
  colProps: {};
2947
- size: "middle" | "small" | "large";
2948
2924
  disabled: boolean;
2949
2925
  compact: boolean;
2950
2926
  schemas: FormSchema[];
2951
2927
  autoSearchOnEnter: boolean;
2952
- alwaysShowLines: boolean;
2953
2928
  minShowColumn: number;
2954
2929
  showAdvancedButton: boolean;
2955
2930
  allowClear: boolean;
@@ -134,7 +134,7 @@ function useSource(props) {
134
134
  const { t } = useI18n("UI");
135
135
  const { confirm, message } = useMessage();
136
136
  const { appConf } = useAppStore();
137
- const { baseUrl, api: orgApi, exportName, beforeUpdate, afterUpdate } = props;
137
+ const { baseUrl, api: orgApi, exportName, queryAfterUpdate, beforeUpdate, afterUpdate } = props;
138
138
  const pagination = ref({
139
139
  current: appConf?.ui?.table?.defaultPageNo || 1,
140
140
  pageSize: appConf?.ui?.table?.defaultPageSize || 20,
@@ -244,7 +244,7 @@ function useSource(props) {
244
244
  if (isBoolean(canUpdate) && canUpdate === false) {
245
245
  return false;
246
246
  } else if (!isBoolean(canUpdate)) {
247
- model = { ...canUpdate };
247
+ model = { ...canUpdate || {} };
248
248
  }
249
249
  }
250
250
  if (!model.id) {
@@ -253,7 +253,8 @@ function useSource(props) {
253
253
  if (rsp2?.code === appConf?.http?.okCode) {
254
254
  message.success(t("ADD_SUCCESS"));
255
255
  curdInstance.closeModal();
256
- onSearch();
256
+ if (queryAfterUpdate !== false)
257
+ onSearch();
257
258
  }
258
259
  loading.onAdd.value = false;
259
260
  });
@@ -263,7 +264,8 @@ function useSource(props) {
263
264
  if (rsp2?.code === appConf?.http?.okCode) {
264
265
  message.success(t("UPDATE_SUCCESS"));
265
266
  curdInstance.closeModal();
266
- onSearch();
267
+ if (queryAfterUpdate !== false)
268
+ onSearch();
267
269
  }
268
270
  loading.onUpdate.value = false;
269
271
  });
@@ -293,7 +295,8 @@ function useSource(props) {
293
295
  if (rsp?.code === appConf?.http?.okCode) {
294
296
  message.success((isSingleDelete ? "" : t("MULTIFY")) + t("DELETE_SUCCESS"));
295
297
  !isSingleDelete && tableInstance.clearSelectedRowKeys();
296
- onSearch();
298
+ if (queryAfterUpdate !== false)
299
+ onSearch();
297
300
  }
298
301
  }).finally(() => {
299
302
  isSingleDelete && (loading.onDeletes.value = false);
@@ -12,6 +12,7 @@ export declare type ApiObjType = {
12
12
  export declare type SourceOption = {
13
13
  baseUrl?: string;
14
14
  exportName?: string | ComputedRef;
15
+ queryAfterUpdate?: boolean;
15
16
  beforeUpdate?: (model: Recordable) => boolean | Recordable | undefined;
16
17
  afterUpdate?: () => void;
17
18
  api?: ApiObjType;