@dt-frames/ui 2.0.6 → 2.0.7
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/es/components/curd/index.js +42 -67
- package/es/components/curd/src/components/Curd.d.ts +2 -8
- package/es/components/curd/src/hooks/useCurd.d.ts +3 -3
- package/es/components/curd/src/props.d.ts +1 -4
- package/es/components/curd/src/types/curd.type.d.ts +3 -9
- package/es/components/form/index.d.ts +30 -54
- package/es/components/form/index.js +87 -65
- package/es/components/form/index.less +1 -0
- package/es/components/form/src/components/FormButtons.d.ts +3 -3
- package/es/components/form/src/components/FormItem.d.ts +5 -8
- package/es/components/form/src/components/formIcon.d.ts +4 -4
- package/es/components/form/src/components/formInputUseDialog.d.ts +3 -3
- package/es/components/form/src/hooks/useFormEvent.d.ts +1 -1
- package/es/components/form/src/index.d.ts +24 -42
- package/es/components/form/src/props.d.ts +5 -8
- package/es/components/modal/index.js +3 -6
- package/es/components/modal/src/components/ModalFooter.d.ts +3 -3
- package/es/components/modal/src/index.d.ts +9 -9
- package/es/components/source/hooks/useSource.d.ts +14 -13
- package/es/components/source/index.js +62 -36
- package/es/components/table/index.js +151 -158
- package/es/components/table/src/index.d.ts +18 -54
- package/es/components/table/src/props.d.ts +6 -18
- package/es/components/table/src/types/table.type.d.ts +1 -4
- package/es/theme/index.d.ts +2 -2
- package/es/theme/index.js +299 -294
- package/es/theme/src/components/sider/index.d.ts +2 -1
- package/es/theme/src/components/sider/mix-sider.d.ts +2 -1
- package/es/theme/src/hooks/useMenu.d.ts +1 -1
- package/es/theme/src/index.d.ts +2 -1
- package/es/theme/src/types/theme.type.d.ts +0 -1
- package/index.js +3 -1
- package/package.json +1 -1
|
@@ -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" | "
|
|
16
|
+
type: import("vue").PropType<"vertical" | "inline" | "horizontal">;
|
|
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<"
|
|
60
|
+
type: import("vue").PropType<"middle" | "small" | "large">;
|
|
61
61
|
default: string;
|
|
62
62
|
};
|
|
63
63
|
disabled: {
|
|
@@ -100,10 +100,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
100
100
|
type: import("vue").PropType<{
|
|
101
101
|
[key: string]: import("vue").Ref<boolean>;
|
|
102
102
|
}>;
|
|
103
|
-
default: () => {
|
|
104
|
-
onSearch: import("vue").Ref<boolean>;
|
|
105
|
-
onReset: import("vue").Ref<boolean>;
|
|
106
|
-
};
|
|
103
|
+
default: () => {};
|
|
107
104
|
};
|
|
108
105
|
onSearch: {
|
|
109
106
|
type: import("vue").PropType<(params: import("@dt-frames/core").Recordable<any>) => void>;
|
|
@@ -145,7 +142,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
145
142
|
default: () => {};
|
|
146
143
|
};
|
|
147
144
|
layout: {
|
|
148
|
-
type: import("vue").PropType<"vertical" | "
|
|
145
|
+
type: import("vue").PropType<"vertical" | "inline" | "horizontal">;
|
|
149
146
|
default: string;
|
|
150
147
|
};
|
|
151
148
|
labelWidth: {
|
|
@@ -189,7 +186,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
189
186
|
default: () => {};
|
|
190
187
|
};
|
|
191
188
|
size: {
|
|
192
|
-
type: import("vue").PropType<"
|
|
189
|
+
type: import("vue").PropType<"middle" | "small" | "large">;
|
|
193
190
|
default: string;
|
|
194
191
|
};
|
|
195
192
|
disabled: {
|
|
@@ -232,10 +229,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
232
229
|
type: import("vue").PropType<{
|
|
233
230
|
[key: string]: import("vue").Ref<boolean>;
|
|
234
231
|
}>;
|
|
235
|
-
default: () => {
|
|
236
|
-
onSearch: import("vue").Ref<boolean>;
|
|
237
|
-
onReset: import("vue").Ref<boolean>;
|
|
238
|
-
};
|
|
232
|
+
default: () => {};
|
|
239
233
|
};
|
|
240
234
|
onSearch: {
|
|
241
235
|
type: import("vue").PropType<(params: import("@dt-frames/core").Recordable<any>) => void>;
|
|
@@ -283,7 +277,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
283
277
|
default: () => {};
|
|
284
278
|
};
|
|
285
279
|
layout: {
|
|
286
|
-
type: import("vue").PropType<"vertical" | "
|
|
280
|
+
type: import("vue").PropType<"vertical" | "inline" | "horizontal">;
|
|
287
281
|
default: string;
|
|
288
282
|
};
|
|
289
283
|
labelWidth: {
|
|
@@ -327,7 +321,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
327
321
|
default: () => {};
|
|
328
322
|
};
|
|
329
323
|
size: {
|
|
330
|
-
type: import("vue").PropType<"
|
|
324
|
+
type: import("vue").PropType<"middle" | "small" | "large">;
|
|
331
325
|
default: string;
|
|
332
326
|
};
|
|
333
327
|
disabled: {
|
|
@@ -370,10 +364,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
370
364
|
type: import("vue").PropType<{
|
|
371
365
|
[key: string]: import("vue").Ref<boolean>;
|
|
372
366
|
}>;
|
|
373
|
-
default: () => {
|
|
374
|
-
onSearch: import("vue").Ref<boolean>;
|
|
375
|
-
onReset: import("vue").Ref<boolean>;
|
|
376
|
-
};
|
|
367
|
+
default: () => {};
|
|
377
368
|
};
|
|
378
369
|
onSearch: {
|
|
379
370
|
type: import("vue").PropType<(params: import("@dt-frames/core").Recordable<any>) => void>;
|
|
@@ -2179,8 +2170,8 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
2179
2170
|
validator?: (rule: import("ant-design-vue/lib/form").RuleObject, value: any, callback: (error?: string) => void) => void | Promise<void>;
|
|
2180
2171
|
} | any;
|
|
2181
2172
|
required?: boolean;
|
|
2182
|
-
validator?: (rule: import("ant-design-vue/lib/form").RuleObject, value: any, callback: (error?: string) => void) => void | Promise<void>;
|
|
2183
2173
|
trigger?: "blur" | "change" | ("blur" | "change")[];
|
|
2174
|
+
validator?: (rule: import("ant-design-vue/lib/form").RuleObject, value: any, callback: (error?: string) => void) => void | Promise<void>;
|
|
2184
2175
|
transform?: (value: any) => any;
|
|
2185
2176
|
warningOnly?: boolean;
|
|
2186
2177
|
message?: (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
@@ -2218,7 +2209,6 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
2218
2209
|
validateTrigger?: string | string[];
|
|
2219
2210
|
};
|
|
2220
2211
|
required?: boolean;
|
|
2221
|
-
validator?: (rule: import("ant-design-vue/lib/form").RuleObject, value: any, callback: (error?: string) => void) => void | Promise<void>;
|
|
2222
2212
|
trigger?: "blur" | "change" | ("blur" & ["change", "blur"]) | ("change" & ["change", "blur"]) | (("blur" | "change")[] & "blur") | (("blur" | "change")[] & "change") | {
|
|
2223
2213
|
[x: number]: "blur" | "change";
|
|
2224
2214
|
length: 2;
|
|
@@ -2290,6 +2280,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
2290
2280
|
0: "change";
|
|
2291
2281
|
1: "blur";
|
|
2292
2282
|
};
|
|
2283
|
+
validator?: (rule: import("ant-design-vue/lib/form").RuleObject, value: any, callback: (error?: string) => void) => void | Promise<void>;
|
|
2293
2284
|
transform?: (value: any) => any;
|
|
2294
2285
|
warningOnly?: boolean;
|
|
2295
2286
|
message?: (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
@@ -2394,7 +2385,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
2394
2385
|
default: () => {};
|
|
2395
2386
|
};
|
|
2396
2387
|
layout: {
|
|
2397
|
-
type: import("vue").PropType<"vertical" | "
|
|
2388
|
+
type: import("vue").PropType<"vertical" | "inline" | "horizontal">;
|
|
2398
2389
|
default: string;
|
|
2399
2390
|
};
|
|
2400
2391
|
labelWidth: {
|
|
@@ -2438,7 +2429,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
2438
2429
|
default: () => {};
|
|
2439
2430
|
};
|
|
2440
2431
|
size: {
|
|
2441
|
-
type: import("vue").PropType<"
|
|
2432
|
+
type: import("vue").PropType<"middle" | "small" | "large">;
|
|
2442
2433
|
default: string;
|
|
2443
2434
|
};
|
|
2444
2435
|
disabled: {
|
|
@@ -2481,10 +2472,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
2481
2472
|
type: import("vue").PropType<{
|
|
2482
2473
|
[key: string]: import("vue").Ref<boolean>;
|
|
2483
2474
|
}>;
|
|
2484
|
-
default: () => {
|
|
2485
|
-
onSearch: import("vue").Ref<boolean>;
|
|
2486
|
-
onReset: import("vue").Ref<boolean>;
|
|
2487
|
-
};
|
|
2475
|
+
default: () => {};
|
|
2488
2476
|
};
|
|
2489
2477
|
onSearch: {
|
|
2490
2478
|
type: import("vue").PropType<(params: import("@dt-frames/core").Recordable<any>) => void>;
|
|
@@ -2524,7 +2512,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
2524
2512
|
default: () => {};
|
|
2525
2513
|
};
|
|
2526
2514
|
layout: {
|
|
2527
|
-
type: import("vue").PropType<"vertical" | "
|
|
2515
|
+
type: import("vue").PropType<"vertical" | "inline" | "horizontal">;
|
|
2528
2516
|
default: string;
|
|
2529
2517
|
};
|
|
2530
2518
|
labelWidth: {
|
|
@@ -2568,7 +2556,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
2568
2556
|
default: () => {};
|
|
2569
2557
|
};
|
|
2570
2558
|
size: {
|
|
2571
|
-
type: import("vue").PropType<"
|
|
2559
|
+
type: import("vue").PropType<"middle" | "small" | "large">;
|
|
2572
2560
|
default: string;
|
|
2573
2561
|
};
|
|
2574
2562
|
disabled: {
|
|
@@ -2611,10 +2599,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
2611
2599
|
type: import("vue").PropType<{
|
|
2612
2600
|
[key: string]: import("vue").Ref<boolean>;
|
|
2613
2601
|
}>;
|
|
2614
|
-
default: () => {
|
|
2615
|
-
onSearch: import("vue").Ref<boolean>;
|
|
2616
|
-
onReset: import("vue").Ref<boolean>;
|
|
2617
|
-
};
|
|
2602
|
+
default: () => {};
|
|
2618
2603
|
};
|
|
2619
2604
|
onSearch: {
|
|
2620
2605
|
type: import("vue").PropType<(params: import("@dt-frames/core").Recordable<any>) => void>;
|
|
@@ -2647,7 +2632,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
2647
2632
|
setFormValues: (values: import("@dt-frames/core").Recordable<any>) => Promise<void>;
|
|
2648
2633
|
appendFormItems: (schema: import("./src/types/form.type").FormSchema[], prefixName?: string, first?: boolean) => void;
|
|
2649
2634
|
validate: (nameList: (string | number)[]) => Promise<any>;
|
|
2650
|
-
validateFields: (nameList: (string | number)[]) => Promise<
|
|
2635
|
+
validateFields: (nameList: (string | number)[]) => Promise<void>;
|
|
2651
2636
|
getFormValues: () => import("@dt-frames/core").Recordable<any>;
|
|
2652
2637
|
formActionMethods: {
|
|
2653
2638
|
setProps: (formProps: Partial<import("vue").ExtractPropTypes<{
|
|
@@ -2664,7 +2649,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
2664
2649
|
default: () => {};
|
|
2665
2650
|
};
|
|
2666
2651
|
layout: {
|
|
2667
|
-
type: import("vue").PropType<"vertical" | "
|
|
2652
|
+
type: import("vue").PropType<"vertical" | "inline" | "horizontal">;
|
|
2668
2653
|
default: string;
|
|
2669
2654
|
};
|
|
2670
2655
|
labelWidth: {
|
|
@@ -2708,7 +2693,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
2708
2693
|
default: () => {};
|
|
2709
2694
|
};
|
|
2710
2695
|
size: {
|
|
2711
|
-
type: import("vue").PropType<"
|
|
2696
|
+
type: import("vue").PropType<"middle" | "small" | "large">;
|
|
2712
2697
|
default: string;
|
|
2713
2698
|
};
|
|
2714
2699
|
disabled: {
|
|
@@ -2751,10 +2736,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
2751
2736
|
type: import("vue").PropType<{
|
|
2752
2737
|
[key: string]: import("vue").Ref<boolean>;
|
|
2753
2738
|
}>;
|
|
2754
|
-
default: () => {
|
|
2755
|
-
onSearch: import("vue").Ref<boolean>;
|
|
2756
|
-
onReset: import("vue").Ref<boolean>;
|
|
2757
|
-
};
|
|
2739
|
+
default: () => {};
|
|
2758
2740
|
};
|
|
2759
2741
|
onSearch: {
|
|
2760
2742
|
type: import("vue").PropType<(params: import("@dt-frames/core").Recordable<any>) => void>;
|
|
@@ -2783,7 +2765,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
2783
2765
|
setFormValues: (values: import("@dt-frames/core").Recordable<any>) => Promise<void>;
|
|
2784
2766
|
appendFormItems: (schema: import("./src/types/form.type").FormSchema[], prefixName?: string, first?: boolean) => void;
|
|
2785
2767
|
validate: (nameList: (string | number)[]) => Promise<any>;
|
|
2786
|
-
validateFields: (nameList: (string | number)[]) => Promise<
|
|
2768
|
+
validateFields: (nameList: (string | number)[]) => Promise<void>;
|
|
2787
2769
|
getFormValues: () => import("@dt-frames/core").Recordable<any>;
|
|
2788
2770
|
};
|
|
2789
2771
|
getActionsProps: import("vue").ComputedRef<import("@dt-frames/core").Recordable<any>>;
|
|
@@ -2811,7 +2793,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
2811
2793
|
default: () => {};
|
|
2812
2794
|
};
|
|
2813
2795
|
layout: {
|
|
2814
|
-
type: import("vue").PropType<"vertical" | "
|
|
2796
|
+
type: import("vue").PropType<"vertical" | "inline" | "horizontal">;
|
|
2815
2797
|
default: string;
|
|
2816
2798
|
};
|
|
2817
2799
|
labelWidth: {
|
|
@@ -2855,7 +2837,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
2855
2837
|
default: () => {};
|
|
2856
2838
|
};
|
|
2857
2839
|
size: {
|
|
2858
|
-
type: import("vue").PropType<"
|
|
2840
|
+
type: import("vue").PropType<"middle" | "small" | "large">;
|
|
2859
2841
|
default: string;
|
|
2860
2842
|
};
|
|
2861
2843
|
disabled: {
|
|
@@ -2898,10 +2880,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
2898
2880
|
type: import("vue").PropType<{
|
|
2899
2881
|
[key: string]: import("vue").Ref<boolean>;
|
|
2900
2882
|
}>;
|
|
2901
|
-
default: () => {
|
|
2902
|
-
onSearch: import("vue").Ref<boolean>;
|
|
2903
|
-
onReset: import("vue").Ref<boolean>;
|
|
2904
|
-
};
|
|
2883
|
+
default: () => {};
|
|
2905
2884
|
};
|
|
2906
2885
|
onSearch: {
|
|
2907
2886
|
type: import("vue").PropType<(params: import("@dt-frames/core").Recordable<any>) => void>;
|
|
@@ -3042,7 +3021,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
3042
3021
|
default: () => {};
|
|
3043
3022
|
};
|
|
3044
3023
|
layout: {
|
|
3045
|
-
type: import("vue").PropType<"vertical" | "
|
|
3024
|
+
type: import("vue").PropType<"vertical" | "inline" | "horizontal">;
|
|
3046
3025
|
default: string;
|
|
3047
3026
|
};
|
|
3048
3027
|
labelWidth: {
|
|
@@ -3086,7 +3065,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
3086
3065
|
default: () => {};
|
|
3087
3066
|
};
|
|
3088
3067
|
size: {
|
|
3089
|
-
type: import("vue").PropType<"
|
|
3068
|
+
type: import("vue").PropType<"middle" | "small" | "large">;
|
|
3090
3069
|
default: string;
|
|
3091
3070
|
};
|
|
3092
3071
|
disabled: {
|
|
@@ -3129,10 +3108,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
3129
3108
|
type: import("vue").PropType<{
|
|
3130
3109
|
[key: string]: import("vue").Ref<boolean>;
|
|
3131
3110
|
}>;
|
|
3132
|
-
default: () => {
|
|
3133
|
-
onSearch: import("vue").Ref<boolean>;
|
|
3134
|
-
onReset: import("vue").Ref<boolean>;
|
|
3135
|
-
};
|
|
3111
|
+
default: () => {};
|
|
3136
3112
|
};
|
|
3137
3113
|
onSearch: {
|
|
3138
3114
|
type: import("vue").PropType<(params: import("@dt-frames/core").Recordable<any>) => void>;
|
|
@@ -3155,11 +3131,10 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
3155
3131
|
}>> & {
|
|
3156
3132
|
onRegister?: (...args: any[]) => any;
|
|
3157
3133
|
}, {
|
|
3158
|
-
size: "small" | "middle" | "large";
|
|
3159
3134
|
mode: "search" | "dialog";
|
|
3160
3135
|
autoFetch: boolean;
|
|
3161
3136
|
model: {};
|
|
3162
|
-
layout: "vertical" | "
|
|
3137
|
+
layout: "vertical" | "inline" | "horizontal";
|
|
3163
3138
|
labelWidth: string | number;
|
|
3164
3139
|
enLabelWidth: string | number;
|
|
3165
3140
|
labelAlign: "left" | "right";
|
|
@@ -3167,6 +3142,7 @@ declare const DtForm: import('../../utils/withInstall').SFCWithInstall<import("v
|
|
|
3167
3142
|
wrapperCol: {};
|
|
3168
3143
|
rowProps: {};
|
|
3169
3144
|
colProps: {};
|
|
3145
|
+
size: "middle" | "small" | "large";
|
|
3170
3146
|
disabled: boolean;
|
|
3171
3147
|
compact: boolean;
|
|
3172
3148
|
schemas: import("./src/types/form.type").FormSchema[];
|