@weitutech/by-components-v3 1.0.81 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/by-component-v3.css +1 -1
- package/dist/by-component-v3.mjs +270 -139
- package/dist/by-component-v3.umd.js +1 -1
- package/dist/types/packages/form/index.d.ts +3 -3
- package/dist/types/packages/form/src/props.d.ts +16 -2
- package/dist/types/packages/pager/index.d.ts +2 -2
- package/dist/types/packages/table/src/table.d.ts +10 -1
- package/dist/types/src/App.vue.d.ts +3 -1
- package/dist/types/src/config.d.ts +138 -21
- package/package.json +2 -2
- package/src/main.ts +2 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import ZshForm from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
import ZshForm from './src/form.vue';
|
|
2
|
+
export * from './src/props';
|
|
3
|
+
export * from './src/helper';
|
|
4
4
|
export default ZshForm;
|
|
@@ -8,7 +8,14 @@ export type TColLayout<T = number | string> = {
|
|
|
8
8
|
lg?: T;
|
|
9
9
|
xl?: T;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
type TOtherOptions = {
|
|
12
|
+
submit?: boolean;
|
|
13
|
+
reset?: boolean;
|
|
14
|
+
submitText?: string;
|
|
15
|
+
resetText?: string;
|
|
16
|
+
showSubmitIcon?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export type TFormItemType = 'input' | 'inputNumber' | 'select' | 'treeSelect' | 'datepicker' | 'cascader' | 'switch' | 'checkbox' | 'radio' | 'upload' | 'customDatePicker' | 'search' | 'custom' | 'formButtons';
|
|
12
19
|
export type TFormItemProps = {
|
|
13
20
|
/** 避免field重复 */
|
|
14
21
|
id?: number | string;
|
|
@@ -16,6 +23,10 @@ export type TFormItemProps = {
|
|
|
16
23
|
type: TFormItemType;
|
|
17
24
|
/** 对应v-model的字段值 */
|
|
18
25
|
field?: string;
|
|
26
|
+
/** 对应日期选择器的开始时间字段 */
|
|
27
|
+
startTimeField?: string;
|
|
28
|
+
/** 对应日期选择器的结束时间字段 */
|
|
29
|
+
endTimeField?: string;
|
|
19
30
|
actions?: string;
|
|
20
31
|
/** 是否隐藏不显示 */
|
|
21
32
|
hidden?: boolean;
|
|
@@ -46,8 +57,10 @@ export type TFormItemProps = {
|
|
|
46
57
|
showMessage?: Boolean;
|
|
47
58
|
/** 表单域标签的位置,如果值为 left 或者 right 时,则需要设置 label-width 默认right */
|
|
48
59
|
labelPosition?: 'left' | 'right' | 'top';
|
|
60
|
+
/** 其他选项 */
|
|
61
|
+
otherOptions?: TOtherOptions;
|
|
49
62
|
};
|
|
50
|
-
export declare type IFormItems = TFormItemProps & Omit<FormItemProps, 'labelWidth' | 'inlineMessage' | 'showMessage' | 'labelPosition'>;
|
|
63
|
+
export declare type IFormItems = TFormItemProps & Omit<FormItemProps, 'labelWidth' | 'inlineMessage' | 'showMessage' | 'labelPosition' | 'otherOptions'>;
|
|
51
64
|
interface IRow {
|
|
52
65
|
gutter?: number;
|
|
53
66
|
justify?: 'start' | 'end' | 'center' | 'space-around' | 'space-between' | 'space-evenly';
|
|
@@ -84,6 +97,7 @@ export interface IForm {
|
|
|
84
97
|
showMessage?: boolean;
|
|
85
98
|
inlineMessage?: boolean;
|
|
86
99
|
elSize?: 'small' | 'large' | 'default' | '' | string;
|
|
100
|
+
otherOptions?: TOtherOptions;
|
|
87
101
|
}
|
|
88
102
|
export type IProps = IForm & {
|
|
89
103
|
/** v-model 表单需要的数据 */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import BasePager from
|
|
2
|
-
export * from
|
|
1
|
+
import BasePager from './src/base-pager.vue';
|
|
2
|
+
export * from './types';
|
|
3
3
|
export default BasePager;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './table.scss';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
gridOptions: {
|
|
4
4
|
type: ObjectConstructor;
|
|
@@ -8,6 +8,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
8
8
|
type: StringConstructor;
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
11
|
+
autoHeight: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
11
15
|
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
16
|
gridOptions: {
|
|
13
17
|
type: ObjectConstructor;
|
|
@@ -17,9 +21,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
17
21
|
type: StringConstructor;
|
|
18
22
|
default: string;
|
|
19
23
|
};
|
|
24
|
+
autoHeight: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
20
28
|
}>> & Readonly<{
|
|
21
29
|
[x: `on${Capitalize<string>}`]: (...args: any[]) => any;
|
|
22
30
|
}>, {
|
|
23
31
|
name: string;
|
|
32
|
+
autoHeight: boolean;
|
|
24
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
25
34
|
export default _default;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
|
|
2
|
+
tableRef: unknown;
|
|
3
|
+
}, HTMLDivElement>;
|
|
2
4
|
export default _default;
|
|
@@ -3,6 +3,8 @@ export declare const searchFormItems: import("vue").Ref<{
|
|
|
3
3
|
id?: number | string;
|
|
4
4
|
type: import("../packages/form").TFormItemType;
|
|
5
5
|
field?: string;
|
|
6
|
+
startTimeField?: string;
|
|
7
|
+
endTimeField?: string;
|
|
6
8
|
actions?: string;
|
|
7
9
|
hidden?: boolean;
|
|
8
10
|
itemStyle?: Record<string, any>;
|
|
@@ -31,6 +33,13 @@ export declare const searchFormItems: import("vue").Ref<{
|
|
|
31
33
|
valueOf: () => boolean;
|
|
32
34
|
};
|
|
33
35
|
labelPosition?: "left" | "right" | "top";
|
|
36
|
+
otherOptions?: {
|
|
37
|
+
submit?: boolean;
|
|
38
|
+
reset?: boolean;
|
|
39
|
+
submitText?: string;
|
|
40
|
+
resetText?: string;
|
|
41
|
+
showSubmitIcon?: boolean;
|
|
42
|
+
};
|
|
34
43
|
readonly prop?: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>;
|
|
35
44
|
readonly required?: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
36
45
|
readonly rules?: unknown;
|
|
@@ -42,6 +51,8 @@ export declare const searchFormItems: import("vue").Ref<{
|
|
|
42
51
|
id?: number | string;
|
|
43
52
|
type: import("../packages/form").TFormItemType;
|
|
44
53
|
field?: string;
|
|
54
|
+
startTimeField?: string;
|
|
55
|
+
endTimeField?: string;
|
|
45
56
|
actions?: string;
|
|
46
57
|
hidden?: boolean;
|
|
47
58
|
itemStyle?: Record<string, any>;
|
|
@@ -70,6 +81,13 @@ export declare const searchFormItems: import("vue").Ref<{
|
|
|
70
81
|
valueOf: () => boolean;
|
|
71
82
|
};
|
|
72
83
|
labelPosition?: "left" | "right" | "top";
|
|
84
|
+
otherOptions?: {
|
|
85
|
+
submit?: boolean;
|
|
86
|
+
reset?: boolean;
|
|
87
|
+
submitText?: string;
|
|
88
|
+
resetText?: string;
|
|
89
|
+
showSubmitIcon?: boolean;
|
|
90
|
+
};
|
|
73
91
|
readonly prop?: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>;
|
|
74
92
|
readonly required?: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
75
93
|
readonly rules?: unknown;
|
|
@@ -96,10 +114,22 @@ export declare const formConfig: import("vue").Ref<{
|
|
|
96
114
|
xl: number;
|
|
97
115
|
};
|
|
98
116
|
elSize: string;
|
|
117
|
+
rules: {
|
|
118
|
+
keyword: {
|
|
119
|
+
required: boolean;
|
|
120
|
+
message: string;
|
|
121
|
+
}[];
|
|
122
|
+
keyword5: {
|
|
123
|
+
required: boolean;
|
|
124
|
+
message: string;
|
|
125
|
+
}[];
|
|
126
|
+
};
|
|
99
127
|
formItems: {
|
|
100
128
|
id?: number | string;
|
|
101
129
|
type: import("../packages/form").TFormItemType;
|
|
102
130
|
field?: string;
|
|
131
|
+
startTimeField?: string;
|
|
132
|
+
endTimeField?: string;
|
|
103
133
|
actions?: string;
|
|
104
134
|
hidden?: boolean;
|
|
105
135
|
itemStyle?: Record<string, any>;
|
|
@@ -128,6 +158,13 @@ export declare const formConfig: import("vue").Ref<{
|
|
|
128
158
|
valueOf: () => boolean;
|
|
129
159
|
};
|
|
130
160
|
labelPosition?: "left" | "right" | "top";
|
|
161
|
+
otherOptions?: {
|
|
162
|
+
submit?: boolean;
|
|
163
|
+
reset?: boolean;
|
|
164
|
+
submitText?: string;
|
|
165
|
+
resetText?: string;
|
|
166
|
+
showSubmitIcon?: boolean;
|
|
167
|
+
};
|
|
131
168
|
readonly prop?: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>;
|
|
132
169
|
readonly required?: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
133
170
|
readonly rules?: unknown;
|
|
@@ -154,10 +191,22 @@ export declare const formConfig: import("vue").Ref<{
|
|
|
154
191
|
xl: number;
|
|
155
192
|
};
|
|
156
193
|
elSize: string;
|
|
194
|
+
rules: {
|
|
195
|
+
keyword: {
|
|
196
|
+
required: boolean;
|
|
197
|
+
message: string;
|
|
198
|
+
}[];
|
|
199
|
+
keyword5: {
|
|
200
|
+
required: boolean;
|
|
201
|
+
message: string;
|
|
202
|
+
}[];
|
|
203
|
+
};
|
|
157
204
|
formItems: {
|
|
158
205
|
id?: number | string;
|
|
159
206
|
type: import("../packages/form").TFormItemType;
|
|
160
207
|
field?: string;
|
|
208
|
+
startTimeField?: string;
|
|
209
|
+
endTimeField?: string;
|
|
161
210
|
actions?: string;
|
|
162
211
|
hidden?: boolean;
|
|
163
212
|
itemStyle?: Record<string, any>;
|
|
@@ -186,6 +235,13 @@ export declare const formConfig: import("vue").Ref<{
|
|
|
186
235
|
valueOf: () => boolean;
|
|
187
236
|
};
|
|
188
237
|
labelPosition?: "left" | "right" | "top";
|
|
238
|
+
otherOptions?: {
|
|
239
|
+
submit?: boolean;
|
|
240
|
+
reset?: boolean;
|
|
241
|
+
submitText?: string;
|
|
242
|
+
resetText?: string;
|
|
243
|
+
showSubmitIcon?: boolean;
|
|
244
|
+
};
|
|
189
245
|
readonly prop?: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>;
|
|
190
246
|
readonly required?: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
191
247
|
readonly rules?: unknown;
|
|
@@ -212,10 +268,22 @@ export declare const formConfig: import("vue").Ref<{
|
|
|
212
268
|
xl: number;
|
|
213
269
|
};
|
|
214
270
|
elSize: string;
|
|
271
|
+
rules: {
|
|
272
|
+
keyword: {
|
|
273
|
+
required: boolean;
|
|
274
|
+
message: string;
|
|
275
|
+
}[];
|
|
276
|
+
keyword5: {
|
|
277
|
+
required: boolean;
|
|
278
|
+
message: string;
|
|
279
|
+
}[];
|
|
280
|
+
};
|
|
215
281
|
formItems: {
|
|
216
282
|
id?: number | string;
|
|
217
283
|
type: import("../packages/form").TFormItemType;
|
|
218
284
|
field?: string;
|
|
285
|
+
startTimeField?: string;
|
|
286
|
+
endTimeField?: string;
|
|
219
287
|
actions?: string;
|
|
220
288
|
hidden?: boolean;
|
|
221
289
|
itemStyle?: Record<string, any>;
|
|
@@ -244,6 +312,13 @@ export declare const formConfig: import("vue").Ref<{
|
|
|
244
312
|
valueOf: () => boolean;
|
|
245
313
|
};
|
|
246
314
|
labelPosition?: "left" | "right" | "top";
|
|
315
|
+
otherOptions?: {
|
|
316
|
+
submit?: boolean;
|
|
317
|
+
reset?: boolean;
|
|
318
|
+
submitText?: string;
|
|
319
|
+
resetText?: string;
|
|
320
|
+
showSubmitIcon?: boolean;
|
|
321
|
+
};
|
|
247
322
|
readonly prop?: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>;
|
|
248
323
|
readonly required?: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
249
324
|
readonly rules?: unknown;
|
|
@@ -373,35 +448,35 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
373
448
|
type: string;
|
|
374
449
|
width: number;
|
|
375
450
|
fixed: string;
|
|
376
|
-
title?: unknown;
|
|
377
451
|
field?: unknown;
|
|
452
|
+
title?: unknown;
|
|
378
453
|
showOverflow?: unknown;
|
|
379
454
|
slots?: unknown;
|
|
380
455
|
} | {
|
|
456
|
+
field: string;
|
|
381
457
|
type: string;
|
|
382
458
|
width: number;
|
|
383
459
|
fixed: string;
|
|
384
460
|
title: string;
|
|
385
|
-
field?: unknown;
|
|
386
461
|
showOverflow?: unknown;
|
|
387
462
|
slots?: unknown;
|
|
388
463
|
} | {
|
|
389
464
|
field: string;
|
|
390
465
|
title: string;
|
|
466
|
+
width: number;
|
|
391
467
|
type?: unknown;
|
|
392
|
-
width?: unknown;
|
|
393
468
|
fixed?: unknown;
|
|
394
469
|
showOverflow?: unknown;
|
|
395
470
|
slots?: unknown;
|
|
396
471
|
} | {
|
|
397
472
|
field: string;
|
|
398
473
|
title: string;
|
|
474
|
+
width: number;
|
|
399
475
|
showOverflow: boolean;
|
|
400
476
|
slots: {
|
|
401
477
|
default: string;
|
|
402
478
|
};
|
|
403
479
|
type?: unknown;
|
|
404
|
-
width?: unknown;
|
|
405
480
|
fixed?: unknown;
|
|
406
481
|
} | {
|
|
407
482
|
field: string;
|
|
@@ -409,11 +484,12 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
409
484
|
slots: {
|
|
410
485
|
default: string;
|
|
411
486
|
};
|
|
487
|
+
width: number;
|
|
412
488
|
type?: unknown;
|
|
413
|
-
width?: unknown;
|
|
414
489
|
fixed?: unknown;
|
|
415
490
|
showOverflow?: unknown;
|
|
416
491
|
} | {
|
|
492
|
+
field: string;
|
|
417
493
|
title: string;
|
|
418
494
|
width: number;
|
|
419
495
|
fixed: string;
|
|
@@ -421,10 +497,17 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
421
497
|
default: string;
|
|
422
498
|
};
|
|
423
499
|
type?: unknown;
|
|
424
|
-
field?: unknown;
|
|
425
500
|
showOverflow?: unknown;
|
|
426
501
|
})[];
|
|
427
|
-
data:
|
|
502
|
+
data: {
|
|
503
|
+
name: string;
|
|
504
|
+
watermark_url: string;
|
|
505
|
+
landing_page_flag: string;
|
|
506
|
+
spread_setting: {
|
|
507
|
+
department_count: number;
|
|
508
|
+
user_count: number;
|
|
509
|
+
};
|
|
510
|
+
}[];
|
|
428
511
|
}, {
|
|
429
512
|
align: string;
|
|
430
513
|
pagerConfig: {
|
|
@@ -439,35 +522,35 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
439
522
|
type: string;
|
|
440
523
|
width: number;
|
|
441
524
|
fixed: string;
|
|
442
|
-
title?: undefined;
|
|
443
525
|
field?: undefined;
|
|
526
|
+
title?: undefined;
|
|
444
527
|
showOverflow?: undefined;
|
|
445
528
|
slots?: undefined;
|
|
446
529
|
} | {
|
|
530
|
+
field: string;
|
|
447
531
|
type: string;
|
|
448
532
|
width: number;
|
|
449
533
|
fixed: string;
|
|
450
534
|
title: string;
|
|
451
|
-
field?: undefined;
|
|
452
535
|
showOverflow?: undefined;
|
|
453
536
|
slots?: undefined;
|
|
454
537
|
} | {
|
|
455
538
|
field: string;
|
|
456
539
|
title: string;
|
|
540
|
+
width: number;
|
|
457
541
|
type?: undefined;
|
|
458
|
-
width?: undefined;
|
|
459
542
|
fixed?: undefined;
|
|
460
543
|
showOverflow?: undefined;
|
|
461
544
|
slots?: undefined;
|
|
462
545
|
} | {
|
|
463
546
|
field: string;
|
|
464
547
|
title: string;
|
|
548
|
+
width: number;
|
|
465
549
|
showOverflow: boolean;
|
|
466
550
|
slots: {
|
|
467
551
|
default: string;
|
|
468
552
|
};
|
|
469
553
|
type?: undefined;
|
|
470
|
-
width?: undefined;
|
|
471
554
|
fixed?: undefined;
|
|
472
555
|
} | {
|
|
473
556
|
field: string;
|
|
@@ -475,11 +558,12 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
475
558
|
slots: {
|
|
476
559
|
default: string;
|
|
477
560
|
};
|
|
561
|
+
width: number;
|
|
478
562
|
type?: undefined;
|
|
479
|
-
width?: undefined;
|
|
480
563
|
fixed?: undefined;
|
|
481
564
|
showOverflow?: undefined;
|
|
482
565
|
} | {
|
|
566
|
+
field: string;
|
|
483
567
|
title: string;
|
|
484
568
|
width: number;
|
|
485
569
|
fixed: string;
|
|
@@ -487,10 +571,17 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
487
571
|
default: string;
|
|
488
572
|
};
|
|
489
573
|
type?: undefined;
|
|
490
|
-
field?: undefined;
|
|
491
574
|
showOverflow?: undefined;
|
|
492
575
|
})[];
|
|
493
|
-
data:
|
|
576
|
+
data: {
|
|
577
|
+
name: string;
|
|
578
|
+
watermark_url: string;
|
|
579
|
+
landing_page_flag: string;
|
|
580
|
+
spread_setting: {
|
|
581
|
+
department_count: number;
|
|
582
|
+
user_count: number;
|
|
583
|
+
};
|
|
584
|
+
}[];
|
|
494
585
|
} | {
|
|
495
586
|
align: string;
|
|
496
587
|
pagerConfig: {
|
|
@@ -505,35 +596,35 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
505
596
|
type: string;
|
|
506
597
|
width: number;
|
|
507
598
|
fixed: string;
|
|
508
|
-
title?: unknown;
|
|
509
599
|
field?: unknown;
|
|
600
|
+
title?: unknown;
|
|
510
601
|
showOverflow?: unknown;
|
|
511
602
|
slots?: unknown;
|
|
512
603
|
} | {
|
|
604
|
+
field: string;
|
|
513
605
|
type: string;
|
|
514
606
|
width: number;
|
|
515
607
|
fixed: string;
|
|
516
608
|
title: string;
|
|
517
|
-
field?: unknown;
|
|
518
609
|
showOverflow?: unknown;
|
|
519
610
|
slots?: unknown;
|
|
520
611
|
} | {
|
|
521
612
|
field: string;
|
|
522
613
|
title: string;
|
|
614
|
+
width: number;
|
|
523
615
|
type?: unknown;
|
|
524
|
-
width?: unknown;
|
|
525
616
|
fixed?: unknown;
|
|
526
617
|
showOverflow?: unknown;
|
|
527
618
|
slots?: unknown;
|
|
528
619
|
} | {
|
|
529
620
|
field: string;
|
|
530
621
|
title: string;
|
|
622
|
+
width: number;
|
|
531
623
|
showOverflow: boolean;
|
|
532
624
|
slots: {
|
|
533
625
|
default: string;
|
|
534
626
|
};
|
|
535
627
|
type?: unknown;
|
|
536
|
-
width?: unknown;
|
|
537
628
|
fixed?: unknown;
|
|
538
629
|
} | {
|
|
539
630
|
field: string;
|
|
@@ -541,11 +632,12 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
541
632
|
slots: {
|
|
542
633
|
default: string;
|
|
543
634
|
};
|
|
635
|
+
width: number;
|
|
544
636
|
type?: unknown;
|
|
545
|
-
width?: unknown;
|
|
546
637
|
fixed?: unknown;
|
|
547
638
|
showOverflow?: unknown;
|
|
548
639
|
} | {
|
|
640
|
+
field: string;
|
|
549
641
|
title: string;
|
|
550
642
|
width: number;
|
|
551
643
|
fixed: string;
|
|
@@ -553,15 +645,24 @@ export declare const gridOptions: import("vue").Ref<{
|
|
|
553
645
|
default: string;
|
|
554
646
|
};
|
|
555
647
|
type?: unknown;
|
|
556
|
-
field?: unknown;
|
|
557
648
|
showOverflow?: unknown;
|
|
558
649
|
})[];
|
|
559
|
-
data:
|
|
650
|
+
data: {
|
|
651
|
+
name: string;
|
|
652
|
+
watermark_url: string;
|
|
653
|
+
landing_page_flag: string;
|
|
654
|
+
spread_setting: {
|
|
655
|
+
department_count: number;
|
|
656
|
+
user_count: number;
|
|
657
|
+
};
|
|
658
|
+
}[];
|
|
560
659
|
}>;
|
|
561
660
|
export declare const dialogFormItems: import("vue").Ref<{
|
|
562
661
|
id?: number | string;
|
|
563
662
|
type: import("../packages/form").TFormItemType;
|
|
564
663
|
field?: string;
|
|
664
|
+
startTimeField?: string;
|
|
665
|
+
endTimeField?: string;
|
|
565
666
|
actions?: string;
|
|
566
667
|
hidden?: boolean;
|
|
567
668
|
itemStyle?: Record<string, any>;
|
|
@@ -590,6 +691,13 @@ export declare const dialogFormItems: import("vue").Ref<{
|
|
|
590
691
|
valueOf: () => boolean;
|
|
591
692
|
};
|
|
592
693
|
labelPosition?: "left" | "right" | "top";
|
|
694
|
+
otherOptions?: {
|
|
695
|
+
submit?: boolean;
|
|
696
|
+
reset?: boolean;
|
|
697
|
+
submitText?: string;
|
|
698
|
+
resetText?: string;
|
|
699
|
+
showSubmitIcon?: boolean;
|
|
700
|
+
};
|
|
593
701
|
readonly prop?: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>;
|
|
594
702
|
readonly required?: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
595
703
|
readonly rules?: unknown;
|
|
@@ -601,6 +709,8 @@ export declare const dialogFormItems: import("vue").Ref<{
|
|
|
601
709
|
id?: number | string;
|
|
602
710
|
type: import("../packages/form").TFormItemType;
|
|
603
711
|
field?: string;
|
|
712
|
+
startTimeField?: string;
|
|
713
|
+
endTimeField?: string;
|
|
604
714
|
actions?: string;
|
|
605
715
|
hidden?: boolean;
|
|
606
716
|
itemStyle?: Record<string, any>;
|
|
@@ -629,6 +739,13 @@ export declare const dialogFormItems: import("vue").Ref<{
|
|
|
629
739
|
valueOf: () => boolean;
|
|
630
740
|
};
|
|
631
741
|
labelPosition?: "left" | "right" | "top";
|
|
742
|
+
otherOptions?: {
|
|
743
|
+
submit?: boolean;
|
|
744
|
+
reset?: boolean;
|
|
745
|
+
submitText?: string;
|
|
746
|
+
resetText?: string;
|
|
747
|
+
showSubmitIcon?: boolean;
|
|
748
|
+
};
|
|
632
749
|
readonly prop?: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>;
|
|
633
750
|
readonly required?: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
634
751
|
readonly rules?: unknown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weitutech/by-components-v3",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "/src/main.ts",
|
|
6
6
|
"module": "./dist/by-components-v3.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"build-only": "vite build",
|
|
17
17
|
"type-check": "vue-tsc --build",
|
|
18
18
|
"lint": "eslint . --fix",
|
|
19
|
-
"format": "prettier --write src
|
|
19
|
+
"format": "prettier --write \"{src,packages}/**/*.{js,jsx,ts,tsx,vue,scss,css,less,json,md}\""
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@vue/babel-preset-jsx": "^1.4.0",
|