@dt-frames/ui 2.0.4 → 2.0.5
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 +80 -75
- package/es/components/curd/src/components/Curd.d.ts +0 -8
- package/es/components/curd/src/props.d.ts +0 -4
- package/es/components/form/index.d.ts +20 -53
- package/es/components/form/index.js +17 -27
- package/es/components/form/index.less +8 -3
- package/es/components/form/src/index.d.ts +16 -41
- package/es/components/source/index.js +8 -5
- package/es/components/source/types/source.type.d.ts +1 -0
- package/es/components/table/index.js +145 -95
- package/es/components/table/index.less +26 -5
- package/es/components/table/src/components/TableAction.d.ts +1 -1
- package/es/components/table/src/index.d.ts +10 -0
- package/es/components/table/src/props.d.ts +4 -0
- package/es/components/tree/index.d.ts +2 -0
- package/es/components/tree/index.js +1087 -0
- package/es/components/tree/index.less +119 -0
- package/es/components/tree/src/basicProps.d.ts +146 -0
- package/es/components/tree/src/components/ContextMenu.d.ts +64 -0
- package/es/components/tree/src/components/TreeHeader.d.ts +98 -0
- package/es/components/tree/src/enums/index.d.ts +6 -0
- package/es/components/tree/src/hooks/useContextMenu.d.ts +2 -0
- package/es/components/tree/src/hooks/useTree.d.ts +14 -0
- package/es/components/tree/src/index.d.ts +6526 -0
- package/es/components/tree/src/type/menu.d.ts +33 -0
- package/es/components/tree/src/type/tree.d.ts +55 -0
- package/es/components/tree/src/utils/tree.d.ts +5 -0
- package/es/packages/ui/src/assets/locales/en.d.ts +101 -0
- package/es/packages/ui/src/assets/locales/index.d.ts +2 -0
- package/es/packages/ui/src/assets/locales/zh.d.ts +103 -0
- package/es/packages/ui/src/components/container/index.d.ts +94 -0
- package/es/packages/ui/src/components/container/src/components/bar.d.ts +14 -0
- package/es/packages/ui/src/components/container/src/components/scroll-bar.d.ts +70 -0
- package/es/packages/ui/src/components/container/src/hooks/scroll.d.ts +10 -0
- package/es/packages/ui/src/components/container/src/scroll-container.d.ts +76 -0
- package/es/packages/ui/src/components/container/src/slot-container.d.ts +20 -0
- package/es/packages/ui/src/components/container/src/types/scroll.type.d.ts +22 -0
- package/es/packages/ui/src/components/container/src/utils/scroll.d.ts +5 -0
- package/es/packages/ui/src/global.d.ts +7 -0
- package/es/packages/ui/src/theme/index.d.ts +10 -0
- package/es/packages/ui/src/theme/src/components/content/index.d.ts +27 -0
- package/es/packages/ui/src/theme/src/components/feature/back-top.d.ts +5 -0
- package/es/packages/ui/src/theme/src/components/feature/index.d.ts +7 -0
- package/es/packages/ui/src/theme/src/components/footer/index.d.ts +31 -0
- package/es/packages/ui/src/theme/src/components/header/components/bread-crumb.d.ts +6 -0
- package/es/packages/ui/src/theme/src/components/header/components/fullscreen.d.ts +5 -0
- package/es/packages/ui/src/theme/src/components/header/components/index.d.ts +11 -0
- package/es/packages/ui/src/theme/src/components/header/components/lang-picker.d.ts +23 -0
- package/es/packages/ui/src/theme/src/components/header/components/logo.d.ts +56 -0
- package/es/packages/ui/src/theme/src/components/header/components/menu-filter.d.ts +22 -0
- package/es/packages/ui/src/theme/src/components/header/components/notify.d.ts +24 -0
- package/es/packages/ui/src/theme/src/components/header/components/setting-theme.d.ts +223 -0
- package/es/packages/ui/src/theme/src/components/header/components/size.d.ts +282 -0
- package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/feature.d.ts +138 -0
- package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/index.d.ts +3 -0
- package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/menu-type.d.ts +16 -0
- package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/select.d.ts +58 -0
- package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/switch.d.ts +49 -0
- package/es/packages/ui/src/theme/src/components/header/components/trigger.d.ts +10 -0
- package/es/packages/ui/src/theme/src/components/header/components/user-info.d.ts +37 -0
- package/es/packages/ui/src/theme/src/components/header/helper/change-theme.d.ts +13 -0
- package/es/packages/ui/src/theme/src/components/header/helper/menu-tree.d.ts +4 -0
- package/es/packages/ui/src/theme/src/components/header/index.d.ts +720 -0
- package/es/packages/ui/src/theme/src/components/header/multiple-header.d.ts +806 -0
- package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/basic-menu-item.d.ts +62 -0
- package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/basic-menu.d.ts +207 -0
- package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/basic-sub-menu-item.d.ts +127 -0
- package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/menu-item-content.d.ts +26 -0
- package/es/packages/ui/src/theme/src/components/sider/components/drag-bar.d.ts +14 -0
- package/es/packages/ui/src/theme/src/components/sider/components/layout-menu.d.ts +22 -0
- package/es/packages/ui/src/theme/src/components/sider/components/props.d.ts +69 -0
- package/es/packages/ui/src/theme/src/components/sider/components/sider-trigger.d.ts +17 -0
- package/es/packages/ui/src/theme/src/components/sider/helper/sider.d.ts +12 -0
- package/es/packages/ui/src/theme/src/components/sider/helper/split-menu.d.ts +10 -0
- package/es/packages/ui/src/theme/src/components/sider/index.d.ts +235 -0
- package/es/packages/ui/src/theme/src/components/sider/mix-sider.d.ts +167 -0
- package/es/packages/ui/src/theme/src/components/tabs/components/TabContent.d.ts +6 -0
- package/es/packages/ui/src/theme/src/components/tabs/components/TabRedo.d.ts +21 -0
- package/es/packages/ui/src/theme/src/components/tabs/components/index.d.ts +3 -0
- package/es/packages/ui/src/theme/src/components/tabs/hooks/useMultifyTabs.d.ts +7 -0
- package/es/packages/ui/src/theme/src/components/tabs/hooks/useTabDropdown.d.ts +6 -0
- package/es/packages/ui/src/theme/src/components/tabs/index.d.ts +63 -0
- package/es/packages/ui/src/theme/src/components/tabs/types/tabs.type.d.ts +7 -0
- package/es/packages/ui/src/theme/src/enums/index.d.ts +1 -0
- package/es/packages/ui/src/theme/src/enums/theme.enum.d.ts +34 -0
- package/es/packages/ui/src/theme/src/hooks/index.d.ts +6 -0
- package/es/packages/ui/src/theme/src/hooks/useDragLine.d.ts +2 -0
- package/es/packages/ui/src/theme/src/hooks/useHeader.d.ts +25 -0
- package/es/packages/ui/src/theme/src/hooks/useMenu.d.ts +29 -0
- package/es/packages/ui/src/theme/src/hooks/useMultifyTab.d.ts +8 -0
- package/es/packages/ui/src/theme/src/hooks/useOpenKeys.d.ts +7 -0
- package/es/packages/ui/src/theme/src/hooks/useTheme.d.ts +9 -0
- package/es/packages/ui/src/theme/src/index.d.ts +1851 -0
- package/es/packages/ui/src/theme/src/setting/theme.setting.d.ts +2 -0
- package/es/packages/ui/src/theme/src/stores/index.d.ts +3 -0
- package/es/packages/ui/src/theme/src/stores/routeReuse.store.d.ts +23 -0
- package/es/packages/ui/src/theme/src/stores/theme.store.d.ts +18 -0
- package/es/packages/ui/src/theme/src/types/index.d.ts +3 -0
- package/es/packages/ui/src/theme/src/types/menu.type.d.ts +15 -0
- package/es/packages/ui/src/theme/src/types/theme.type.d.ts +62 -0
- package/es/packages/ui/src/utils/withInstall.d.ts +4 -0
- package/es/theme/index.d.ts +2 -1
- package/es/theme/index.js +658 -665
- package/es/theme/index.less +55 -0
- package/es/theme/src/components/header/components/logo.d.ts +22 -0
- package/es/theme/src/components/header/index.d.ts +87 -0
- package/es/theme/src/components/header/multiple-header.d.ts +88 -0
- package/es/theme/src/components/sider/index.d.ts +22 -0
- package/es/theme/src/components/sider/mix-sider.d.ts +22 -0
- package/es/theme/src/hooks/useMultifyTab.d.ts +1 -0
- package/es/theme/src/index.d.ts +197 -0
- package/es/theme/src/types/theme.type.d.ts +1 -0
- package/index.d.ts +2 -1
- package/index.js +6 -2
- package/package.json +4 -2
- package/tsconfig.json +1 -0
- 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" | "
|
|
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<"
|
|
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" | "
|
|
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<"
|
|
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" | "
|
|
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<"
|
|
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" | "
|
|
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<"
|
|
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" | "
|
|
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<"
|
|
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" | "
|
|
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<"
|
|
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" | "
|
|
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<"
|
|
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" | "
|
|
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<"
|
|
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" | "
|
|
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,8 @@ function useHeader() {
|
|
|
405
407
|
const getHeaderHeight = computed(() => {
|
|
406
408
|
let height = 0;
|
|
407
409
|
height += HEADER_HEIGHT;
|
|
408
|
-
|
|
410
|
+
console.log(getMultipleTabPosIsTop);
|
|
411
|
+
if (unref(getShowMultipleTab) && !unref(getSplit) && !unref(getMultipleTabPosIsTop)) {
|
|
409
412
|
height += TABS_HEIGHT;
|
|
410
413
|
}
|
|
411
414
|
return height;
|
|
@@ -599,14 +602,6 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
599
602
|
};
|
|
600
603
|
}
|
|
601
604
|
});
|
|
602
|
-
const _export_sfc = (sfc, props) => {
|
|
603
|
-
const target = sfc.__vccOpts || sfc;
|
|
604
|
-
for (const [key, val] of props) {
|
|
605
|
-
target[key] = val;
|
|
606
|
-
}
|
|
607
|
-
return target;
|
|
608
|
-
};
|
|
609
|
-
const RadioButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/form/src/components/radioButton.vue"]]);
|
|
610
605
|
const _hoisted_1$1 = { class: "input-with-dialog" };
|
|
611
606
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
612
607
|
__name: "formInputUseDialog",
|
|
@@ -642,15 +637,14 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
642
637
|
key: 0,
|
|
643
638
|
class: "i mdi:close-circle",
|
|
644
639
|
onClick: clearProps
|
|
645
|
-
})) : createCommentVNode("
|
|
640
|
+
})) : createCommentVNode("", true)
|
|
646
641
|
]);
|
|
647
642
|
};
|
|
648
643
|
}
|
|
649
644
|
});
|
|
650
|
-
const DtFormInputDialog = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/form/src/components/formInputUseDialog.vue"]]);
|
|
651
645
|
const components = {
|
|
652
646
|
Input,
|
|
653
|
-
InputWithDialog:
|
|
647
|
+
InputWithDialog: _sfc_main$3,
|
|
654
648
|
InputTextArea: Input.TextArea,
|
|
655
649
|
InputSearch: Input.Search,
|
|
656
650
|
InputGroup: Input.Group,
|
|
@@ -659,7 +653,7 @@ const components = {
|
|
|
659
653
|
TreeSelect,
|
|
660
654
|
Radio,
|
|
661
655
|
RadioGroup: Radio.Group,
|
|
662
|
-
RadioButtonGroup,
|
|
656
|
+
RadioButtonGroup: _sfc_main$4,
|
|
663
657
|
Checkbox,
|
|
664
658
|
CheckboxGroup: Checkbox.Group,
|
|
665
659
|
AutoComplete,
|
|
@@ -1044,7 +1038,6 @@ const _sfc_main$2 = {
|
|
|
1044
1038
|
};
|
|
1045
1039
|
}
|
|
1046
1040
|
};
|
|
1047
|
-
const DtFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/form/src/components/FormItem.vue"]]);
|
|
1048
1041
|
const _hoisted_1 = {
|
|
1049
1042
|
key: 0,
|
|
1050
1043
|
className: "preIcon pr-1"
|
|
@@ -1167,18 +1160,18 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1167
1160
|
icon: withCtx(() => [
|
|
1168
1161
|
button.preIcon ? withDirectives((openBlock(), createElementBlock("span", _hoisted_1, null, 512)), [
|
|
1169
1162
|
[_directive_icon, button.preIcon]
|
|
1170
|
-
]) : createCommentVNode("
|
|
1163
|
+
]) : createCommentVNode("", true)
|
|
1171
1164
|
]),
|
|
1172
1165
|
default: withCtx(() => [
|
|
1173
1166
|
createTextVNode(" " + toDisplayString(unref(t)(button.label)) + " ", 1),
|
|
1174
1167
|
button.postIcon ? withDirectives((openBlock(), createElementBlock("span", _hoisted_2, null, 512)), [
|
|
1175
1168
|
[_directive_icon, button.postIcon]
|
|
1176
|
-
]) : createCommentVNode("
|
|
1169
|
+
]) : createCommentVNode("", true)
|
|
1177
1170
|
]),
|
|
1178
1171
|
_: 2
|
|
1179
1172
|
}, 1032, ["type", "class", "loading", "disabled", "onClick"])), [
|
|
1180
1173
|
[_directive_auth, button.auth]
|
|
1181
|
-
]) : createCommentVNode("
|
|
1174
|
+
]) : createCommentVNode("", true)
|
|
1182
1175
|
], 64);
|
|
1183
1176
|
}), 256)),
|
|
1184
1177
|
unref(showAdvanceRef) ? (openBlock(), createBlock(_component_AButton, {
|
|
@@ -1188,24 +1181,22 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1188
1181
|
onClick: toggleAdvanced
|
|
1189
1182
|
}, {
|
|
1190
1183
|
default: withCtx(() => [
|
|
1191
|
-
createCommentVNode(" \u6536\u8D77 | \u5C55\u5F00 "),
|
|
1192
1184
|
createElementVNode("span", _hoisted_3, toDisplayString(advancedRef.value ? unref(t)("UI.ADVANCED") : unref(t)("UI.EXPAND")), 1),
|
|
1193
1185
|
createElementVNode("span", {
|
|
1194
1186
|
class: normalizeClass(unref(getAdvanceClass))
|
|
1195
1187
|
}, _hoisted_5, 2)
|
|
1196
1188
|
]),
|
|
1197
1189
|
_: 1
|
|
1198
|
-
})) : createCommentVNode("
|
|
1190
|
+
})) : createCommentVNode("", true)
|
|
1199
1191
|
]),
|
|
1200
1192
|
_: 1
|
|
1201
1193
|
}, 8, ["style"])
|
|
1202
1194
|
]),
|
|
1203
1195
|
_: 1
|
|
1204
|
-
}, 16)) : createCommentVNode("
|
|
1196
|
+
}, 16)) : createCommentVNode("", true);
|
|
1205
1197
|
};
|
|
1206
1198
|
}
|
|
1207
1199
|
});
|
|
1208
|
-
const DtFormButtons = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/form/src/components/FormButtons.vue"]]);
|
|
1209
1200
|
const SEARCH_BTN_NAME = "UI.SEARCH";
|
|
1210
1201
|
const RESET_BTN_NAME = "UI.RESET";
|
|
1211
1202
|
const SEARCH_BTNS = [
|
|
@@ -1499,7 +1490,7 @@ function useFormActions(opt) {
|
|
|
1499
1490
|
const {
|
|
1500
1491
|
schemas,
|
|
1501
1492
|
minShowColumn = appConf.ui.form?.minShowColumn || 2,
|
|
1502
|
-
showAdvancedButton =
|
|
1493
|
+
showAdvancedButton = true
|
|
1503
1494
|
} = unref(getProps);
|
|
1504
1495
|
let schema = [...schemas];
|
|
1505
1496
|
if (showAdvancedButton) {
|
|
@@ -1829,7 +1820,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1829
1820
|
} }), {
|
|
1830
1821
|
default: withCtx(() => [
|
|
1831
1822
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getSchema), (schema) => {
|
|
1832
|
-
return openBlock(), createBlock(unref(
|
|
1823
|
+
return openBlock(), createBlock(unref(_sfc_main$2), {
|
|
1833
1824
|
key: schema.name,
|
|
1834
1825
|
schema,
|
|
1835
1826
|
formProps: unref(getProps),
|
|
@@ -1848,7 +1839,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1848
1839
|
})
|
|
1849
1840
|
]), 1032, ["schema", "formProps", "formModel", "defaultValues"]);
|
|
1850
1841
|
}), 128)),
|
|
1851
|
-
unref(getActionsProps).buttonList?.length ? (openBlock(), createBlock(unref(
|
|
1842
|
+
unref(getActionsProps).buttonList?.length ? (openBlock(), createBlock(unref(_sfc_main$1), mergeProps({ key: 0 }, unref(getActionsProps), { onHandleMethod: unref(handleMethod) }), null, 16, ["onHandleMethod"])) : createCommentVNode("", true)
|
|
1852
1843
|
]),
|
|
1853
1844
|
_: 3
|
|
1854
1845
|
}, 16)
|
|
@@ -1858,7 +1849,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1858
1849
|
};
|
|
1859
1850
|
}
|
|
1860
1851
|
});
|
|
1861
|
-
const Forms = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/form/src/index.vue"]]);
|
|
1862
1852
|
function useForm(props) {
|
|
1863
1853
|
const formRef = ref(null);
|
|
1864
1854
|
const loadedRef = ref(false);
|
|
@@ -1935,7 +1925,7 @@ const withInstall = (comp) => {
|
|
|
1935
1925
|
};
|
|
1936
1926
|
return comp;
|
|
1937
1927
|
};
|
|
1938
|
-
const DtForm = withInstall(
|
|
1928
|
+
const DtForm = withInstall(_sfc_main);
|
|
1939
1929
|
export {
|
|
1940
1930
|
DtForm,
|
|
1941
1931
|
useForm
|
|
@@ -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;
|