@dockou/elementplus 1.0.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.
@@ -0,0 +1,754 @@
1
+ import { CSSProperties, Component } from "vue";
2
+ import { RuleItem } from "./rule";
3
+ import { FormInstance, UploadUserFile } from "element-plus";
4
+
5
+ export interface HeadersItem{
6
+ Authorization?: string,
7
+ token?: string,
8
+ "Content-Type"?: string
9
+ }
10
+
11
+ export interface UserItem{
12
+ id?: number,
13
+ uid: number | string,
14
+ nickname: string,
15
+ username?: string,
16
+ realname?: string,
17
+ face?: string,
18
+ mobile?: string,
19
+ is_valid_mobile?: number | boolean,
20
+ email?: string,
21
+ is_valid_email?: number | boolean,
22
+ idcard?: string,
23
+ birth?: string,
24
+ gender?: number | string,
25
+ is_auth?: number | boolean,
26
+ auth_type?: number | string,
27
+ auth_name?: string,
28
+ invite_code?: string,
29
+ score?: number,
30
+ balance?: number,
31
+ role_name?: string,
32
+ create_time?: number | string,
33
+ ctime?: string,
34
+ regip?: string,
35
+ login_count?: number,
36
+ last_login_time?: string,
37
+ token?: string
38
+ }
39
+
40
+ export interface UploadItem{
41
+ url?: string | [],
42
+ options?: UploadOptions
43
+ }
44
+
45
+ export interface UploadOptions{
46
+ type?: '' | 'img' | 'file' | 'video' | 'voice' | 'doc' | 'cert',
47
+ url?: string | [],
48
+ headers?: HeadersItem,
49
+ method?: string,
50
+ size?: 'small' | 'default' | 'large',
51
+ multiple?: boolean,
52
+ action?: string,
53
+ data?: any,
54
+ name?: string,
55
+ withCredentials?:boolean,
56
+ showFileList?:boolean,
57
+ drag?: boolean,
58
+ accept?: string,
59
+ fileList?: any,
60
+ listType?: 'text' | 'picture' | 'picture-card',
61
+ autoUpload?: boolean,
62
+ disabled?: boolean,
63
+ limit?: number
64
+ }
65
+
66
+ export interface CascaderItem{
67
+ label?: string
68
+ value?: string | number,
69
+ children?: CascaderItem[]
70
+ }
71
+
72
+ export interface SeleceItem{
73
+ id?: number,
74
+ title?: string,
75
+ label?: string,
76
+ value?: any,
77
+ disabled?: boolean
78
+ }
79
+
80
+ export interface BreadcrumbItem{
81
+ id?: number,
82
+ title: string,
83
+ router?: string,
84
+ }
85
+
86
+ export interface CarouselItem{
87
+ id?: number,
88
+ title?: string,
89
+ src?: string,
90
+ alt?: string,
91
+ url?: string,
92
+ content?: string
93
+ }
94
+
95
+ export interface CityItem{
96
+ id?: number,
97
+ title: string,
98
+ level?: number,
99
+ pid?: number,
100
+ children?: CityItem[]
101
+ }
102
+
103
+ export interface CollapseItem{
104
+ id?: number,
105
+ title?: string,
106
+ name?: string,
107
+ content?: any
108
+ }
109
+
110
+ export interface DropdownItem{
111
+ id?: number,
112
+ title: string,
113
+ router?: string,
114
+ callback?: () => void,
115
+ children?: DropdownItem[]
116
+ }
117
+
118
+ export interface EditorOptionsItem{
119
+ type?: string,
120
+ prefix?: string,
121
+ value?: string,
122
+ loadingText?: string,
123
+ image?: EditorUploadItem,
124
+ video?: EditorUploadItem,
125
+ }
126
+
127
+ export interface EditorUploadItem{
128
+ service?: string,
129
+ fieldName?: string,
130
+ maxFileSize?: number,
131
+ chunkSize?: number,
132
+ maxNumberOfFiles?: number,
133
+ allowedFileTypes?: [],
134
+ meta?: any,
135
+ metaWithUrl?: boolean,
136
+ headers?: any,
137
+ withCredentials?: boolean,
138
+ timeout?: number
139
+ }
140
+
141
+ export interface FormOptions{
142
+ type: string,
143
+ label?: string,
144
+ prop?: string,
145
+ value?: any,
146
+ placeholder?: string,
147
+ rules?: any,
148
+ children?: any[],
149
+ attrs?: any,
150
+ uploadAttrs?: any,
151
+ editorOptions?: any,
152
+ slot?: any,
153
+ options?: any,
154
+ color?: string,
155
+ width?: number,
156
+ prefix?: string,
157
+ suffix?: string,
158
+ prepend?: string,
159
+ append?: string,
160
+ delimiter?: string,
161
+ required?: boolean,
162
+ message?: string,
163
+ desc?: string,
164
+ desc_color?: string,
165
+ desc_size?: number
166
+ }
167
+
168
+ export interface FormProps{
169
+ value?: any,
170
+ children?: any[],
171
+ slot?: any,
172
+ options?: any,
173
+ delimiter?: string,
174
+ size?: '' | 'large' | 'default' | 'small'
175
+ }
176
+
177
+ export interface FormUploadProps{
178
+ type?: string,
179
+ value?: any,
180
+ options?: any,
181
+ limit?: number,
182
+ size?: 'small' | 'default' | 'large' | '',
183
+ prefix?: string,
184
+ action?: string,
185
+ desc?: string,
186
+ method?: string,
187
+ multiple?: boolean,
188
+ data?: any,
189
+ name?: string,
190
+ withCredentials?: boolean,
191
+ showFileList?: boolean,
192
+ drag?: boolean,
193
+ accept?: string,
194
+ crossorigin?: any,
195
+ listType?: any,
196
+ autoUpload?: boolean,
197
+ disabled?: boolean,
198
+ headers?: HeadersItem,
199
+ style?: any
200
+ }
201
+
202
+ export interface FormTableOptions{
203
+ data: any[],
204
+ thead: any[],
205
+ options?: any
206
+ }
207
+
208
+ export interface FormSpecData{
209
+ id?: number,
210
+ title?: string,
211
+ label?: string,
212
+ prop?: string,
213
+ value?: any[]
214
+ }
215
+
216
+ export interface CalculateOptions{
217
+ formula?: 'sum' | 'mul',
218
+ prop: string,
219
+ param?: string[],
220
+ decimal?: 0
221
+ }
222
+
223
+ export interface CaptchaOptions{
224
+ src: string,
225
+ fit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down',
226
+ width?: number,
227
+ height?: number
228
+ }
229
+
230
+ export interface FormSlotItem{
231
+ prefix?: FormSlotOption,
232
+ suffix?: FormSlotOption,
233
+ prepend?: FormSlotOption,
234
+ append?: FormSlotOption,
235
+ }
236
+
237
+ export interface FormSlotOption{
238
+ type?: 'string' | 'select' | 'dropdown',
239
+ value?: any,
240
+ size?: number,
241
+ color?: string,
242
+ time?: number,
243
+ action?: string,
244
+ url?: string,
245
+ text?: string,
246
+ fit?: string,
247
+ callback?: string
248
+ }
249
+
250
+ export interface FormAttrItem{
251
+ id?: number,
252
+ label?: string,
253
+ prop?: string,
254
+ value?: any
255
+ }
256
+
257
+ export interface FormAttrOptions{
258
+ tipWidth?: number | string,
259
+ desc?: string,
260
+ attrData?: FormGoodsOptions[]
261
+ }
262
+
263
+ export interface FormGoodsItem{
264
+ tipWidth?: number | string,
265
+ desc?: string,
266
+ optionsData?: FormGoodsOptions[],
267
+ specOptions?: FormOptions[],
268
+ specValue?: any[]
269
+ }
270
+
271
+ export interface FormSpecItem{
272
+ id?: number,
273
+ title?: string,
274
+ prop?: string,
275
+ value?: any
276
+ }
277
+
278
+ export interface FormSpecOptions{
279
+ tipWidth?: number | string,
280
+ desc?: string,
281
+ specData?: FormGoodsOptions[]
282
+ }
283
+
284
+ export interface FormGoodsOptions{
285
+ id?: number,
286
+ title?: string,
287
+ label?: string,
288
+ selected?: number | boolean,
289
+ field_name?: string,
290
+ field_type?: string,
291
+ field_length?: number,
292
+ default_value?: string | string[]
293
+ is_required?: boolean | number,
294
+ level?: number,
295
+ pid?: number,
296
+ number?: number,
297
+ sort?: number,
298
+ value?: any,
299
+ disabled?: boolean | string,
300
+ children?: FormGoodsOptions[]
301
+ }
302
+
303
+ export interface FormAttrsItem{
304
+ type?: string,
305
+ placeholder?: string,
306
+ format?: string,
307
+ multiple?: boolean,
308
+ size?: 'default' | 'small' | 'large',
309
+ maxlength?: string | number,
310
+ minlength?: string | number,
311
+ clearable?: boolean,
312
+ showPassword?: boolean,
313
+ disabled?: boolean,
314
+ prefixIcon?: string | Component,
315
+ suffixIcon?: string | Component,
316
+ rows?: number,
317
+ autocomplete?: string,
318
+ name?: string,
319
+ readonly?: boolean,
320
+ max?: any,
321
+ min?: any,
322
+ autofocus?: boolean,
323
+ label?: string,
324
+ style?: CSSProperties,
325
+ gutter?: number,
326
+ span?: number,
327
+ options?: CascaderItem[]
328
+ }
329
+
330
+ export interface UploadAttrsItem{
331
+ type?: 'default' | 'drag' | 'avatar' | 'pic' | 'card' | 'file',
332
+ size?: 'default' | 'small' | 'large',
333
+ prefix?: string,
334
+ action?: string,
335
+ headers?: Headers | Record<string,any>,
336
+ method?: string,
337
+ multiple?: boolean,
338
+ data?: Record<string,any>,
339
+ name?: string,
340
+ withCredentials?: boolean,
341
+ showFileList?: boolean,
342
+ drag?: boolean,
343
+ accept?: string,
344
+ fileList?: UploadUserFile[],
345
+ listType?: 'text' | 'picture' | 'picture-card',
346
+ autoUpload?: boolean,
347
+ disabled?: boolean,
348
+ limit?: number
349
+ }
350
+
351
+ export interface SpecOptionsItem{
352
+ data?: any[],
353
+ options?: TableOptions[]
354
+ }
355
+
356
+ export interface MenuItem{
357
+ id?: number,
358
+ title: string,
359
+ router?: string,
360
+ icon?: string,
361
+ level?: number,
362
+ pid?: number,
363
+ number?: number,
364
+ children?: MenuItem[]
365
+ }
366
+
367
+ export interface MenuOptions{
368
+ id?: number,
369
+ title?: string,
370
+ aside_width?: number,
371
+ aside_heigth?: number,
372
+ is_nav?: number,
373
+ is_nav_icon?: number,
374
+ nav_font_size?: number,
375
+ nav_text_color?: string,
376
+ nav_hover_color?: string,
377
+ nav_bg_color?: string,
378
+ nav_hover_bg_color?: string,
379
+ aside_bg_color?: string,
380
+ aside_text_color?: string,
381
+ menu_is_icon?: number[],
382
+ menu_font_size?: number,
383
+ menu_font_bold?: 0,
384
+ menu_text_color?: string,
385
+ menu_hover_text_color?: string,
386
+ menu_bg_color?: string,
387
+ menu_hover_bg_color?: string,
388
+ sub_font_size?: number,
389
+ sub_font_blod?: number,
390
+ sub_text_color?: string,
391
+ sub_hover_text_color?: string,
392
+ sub_bg_color?: string,
393
+ sub_hover_bg_color?: string,
394
+ main_bg_color?: string
395
+ }
396
+
397
+ export interface SkinItem{
398
+ id?: number,
399
+ title?: string,
400
+ mode?: 'hm' | 'hmf' | 'am' | 'ham' | 'hamf' | 'ahm' | 'ahmf',
401
+ is_full_screen?: number | boolean,
402
+ aside_width?: number,
403
+ aside_bg_color?: string,
404
+ header_bg_color?: string,
405
+ header_height?: number,
406
+ header_text_color?: string,
407
+ main_padding?: number,
408
+ main_bg_color?: string,
409
+ menu_font_size?: number,
410
+ menu_text_color?: string,
411
+ menu_active_color?: string,
412
+ menu_bg_color?: string,
413
+ sub_font_size?: number,
414
+ sub_text_color?: string,
415
+ sub_active_color?: string,
416
+ sub_bg_color?: string
417
+ }
418
+
419
+ export interface TableOptions{
420
+ type: string,
421
+ label: string,
422
+ prop?: string,
423
+ fixed?: string,
424
+ width?: string | number,
425
+ order?: boolean,
426
+ prefix?: string,
427
+ suffix?: string,
428
+ align?: 'left' | 'center' | 'right' | 'start' | 'end',
429
+ size?: number,
430
+ length?: number,
431
+ color?: string,
432
+ default?: any,
433
+ value?: any,
434
+ router?: string,
435
+ url?: string,
436
+ alias?: string,
437
+ editable?: boolean,
438
+ slot?: any,
439
+ sortable?: boolean,
440
+ action?: boolean,
441
+ desc?: string,
442
+ callback?: string,
443
+ is_switch?: boolean,
444
+ disabled?: boolean,
445
+ readonly?: boolean,
446
+ data?: mapItem[],
447
+ fields?: string[],
448
+ format?: FormatOptions,
449
+ delimiter?: string,
450
+ toggle?: boolean | number,
451
+ }
452
+
453
+ export interface TableDataProps{
454
+ data: any,
455
+ scope: any,
456
+ options?: any,
457
+ value?: any,
458
+ }
459
+
460
+ export interface ColorItem{
461
+ primary: string,
462
+ success: string,
463
+ warning: string,
464
+ danger: string,
465
+ info: string
466
+ }
467
+
468
+ export interface FormatOptions{
469
+ type?: string,
470
+ calc?: '+' | '-' | '*' | '/' | '',
471
+ decimal?: number,
472
+ value?: number,
473
+ format?: string,
474
+ }
475
+
476
+ export interface mapItem{
477
+ type?: string,
478
+ id?: any,
479
+ title?: string,
480
+ label?: string,
481
+ value?: any,
482
+ color?: string,
483
+ callback?: string
484
+ }
485
+
486
+ export interface MenuOptions{
487
+ logoSize?: string,
488
+ logoColor?: string,
489
+ textSize?: string,
490
+ backgroundColor?: string,
491
+ textColor?: string,
492
+ activeTextColor?: string,
493
+ borderBottom?: boolean,
494
+ borderBottomColor?: string,
495
+ hoverBgColor?: string,
496
+ hoverAfterColor?: string,
497
+ hoverTextColor?: string
498
+ }
499
+
500
+ export interface AboutItem{
501
+ title?: string,
502
+ enTitle?: string,
503
+ pic?: string,
504
+ fit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down',
505
+ width?: string,
506
+ height?: string,
507
+ content?: string
508
+ }
509
+
510
+ export interface GridItem{
511
+ id?: number,
512
+ title?: string,
513
+ icon?: string,
514
+ pic?: string,
515
+ title_color?: string,
516
+ desc_color?: string,
517
+ bg_color?: string,
518
+ font_size?: number,
519
+ desc_size?: number,
520
+ keyword?: string,
521
+ desc?: string,
522
+ router?: string,
523
+ name?: string,
524
+ gutter?: number,
525
+ span?: number,
526
+
527
+ width?: number | string,
528
+ height?: number | string,
529
+ margin?: number,
530
+ padding?: number,
531
+ border?: number,
532
+ border_color?: string,
533
+ hover_color?: string,
534
+ hover_border_width?: number,
535
+ hover_border_color?: string,
536
+
537
+ img_fit?: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down' | 'inherit' | 'initial' | 'revert' | 'revert-layer' | 'unset',
538
+ img_bg_color?: string,
539
+ img_text_color?: string,
540
+ img_font_size?: number,
541
+ img_keyword_size?: number,
542
+ img_keyword_color?: string,
543
+ img_desc_size?: number,
544
+ img_desc_color?: string,
545
+
546
+ children?: GridData[]
547
+ }
548
+
549
+ export interface GridData{
550
+ id?: number,
551
+ title?: string,
552
+ pic?: string,
553
+ keyword?: string,
554
+ desc?: string,
555
+ router?: string,
556
+ }
557
+
558
+
559
+ export interface TableItem{
560
+ title?: string,
561
+ table?: string,
562
+ primaryKey?: string,
563
+ layer?: number,
564
+ thead?: TableOptions[],
565
+ rows?: number,
566
+ data?: any[],
567
+ query?: FormOptions[],
568
+ action?: string,
569
+ callback?: boolean,
570
+ grant?: any,
571
+ prefix?: string,
572
+ api?: string,
573
+ importFile?: string,
574
+ is_total?: number,
575
+ is_size?: number,
576
+ is_jumper?: number,
577
+ tabs?: TabsItem[],
578
+ page?: number,
579
+ pagesize?: number,
580
+ options?: TableItemOptions
581
+ }
582
+
583
+ export interface TableItemOptions{
584
+ is_size?: boolean,
585
+ is_total?: boolean,
586
+ is_jumper?: boolean,
587
+ import?: string,
588
+ import_file?: string,
589
+ callback?: boolean,
590
+ }
591
+
592
+ export interface TableDataOptions{
593
+ table?: string,
594
+ title?: string,
595
+ width?: number,
596
+ bg_color?: string,
597
+ is_add?: boolean,
598
+ btn_add?: string,
599
+ prefix?: string,
600
+ api?: string,
601
+ is_tooltip?: boolean
602
+ }
603
+
604
+ export interface TabsItem{
605
+ id?: number,
606
+ title?: string,
607
+ value?: number | string,
608
+ label?: string,
609
+ name?: string,
610
+ color?: string
611
+ }
612
+
613
+ export interface PermissionOptions{
614
+ type?: '' | 'primary' | 'success' | 'info' | 'warning' | 'danger'
615
+ label?: string,
616
+ prop?: string,
617
+ key?: string
618
+ }
619
+
620
+ export interface ScopeItem{
621
+ form: FormInstance,
622
+ model: any
623
+ }
624
+
625
+ export interface MainUserItem{
626
+ uid: number,
627
+ nickname: string,
628
+ face: string,
629
+ token: string,
630
+ mobile?: string,
631
+ email?: string,
632
+ tips?: string,
633
+ value?: UserValueItem[],
634
+ office?: UserValueItem[],
635
+ echart1?: MainEchartItem,
636
+ echart2?: MainEchartItem,
637
+ echart3?: MainEchartItem,
638
+ echart4?: MainEchartItem
639
+ }
640
+
641
+ export interface UserValueItem{
642
+ title?: string,
643
+ desc?: string,
644
+ icon?: string,
645
+ pic?: string,
646
+ value?: number,
647
+ val?: number
648
+ }
649
+
650
+ export interface MainEchartItem{
651
+ title?: string,
652
+ type?: string,
653
+ options?: any,
654
+ data?: any
655
+ }
656
+
657
+ export interface GrantOptions{
658
+ role_id?: string | number,
659
+ role?: RoleItem[],
660
+ menu?: GrantValue[],
661
+ handle?: HandleItem[]
662
+ }
663
+
664
+ export interface RoleItem{
665
+ id?: number,
666
+ title?: string,
667
+ value?: number,
668
+ label?: string,
669
+ level?: number,
670
+ pid?: number,
671
+ number?: number,
672
+ sort?: number,
673
+ children?: RoleItem[]
674
+ }
675
+
676
+ export interface GrantValue{
677
+ menu_id: number,
678
+ title?: string,
679
+ level?: number,
680
+ pid?: number,
681
+ number?: number,
682
+ handle_list?: number[],
683
+ IsShow: number,
684
+ IsRefresh?: number,
685
+ IsAdd?: number,
686
+ IsModify?: number,
687
+ IsSave?: number,
688
+ IsDel?: number,
689
+ IsImport?: number,
690
+ IsExport?: number,
691
+ IsChecked?: number,
692
+ IsApproved?: number,
693
+ IsReject?: number,
694
+ IsPrint?: number,
695
+ IsTruncate?: number,
696
+ IsBack?: number
697
+ }
698
+
699
+ export interface HandleItem{
700
+ id?: number,
701
+ title?: string,
702
+ handle_name?: string
703
+ }
704
+
705
+ export interface LoginOptions{
706
+ header_height?: number,
707
+ footer_height?: number,
708
+ bg_color?: string,
709
+ bg_img?: string | string[],
710
+ width?: number,
711
+ login_width?: number,
712
+ login_height?: number,
713
+ bg_login_color?: string,
714
+ bg_login_img?: string
715
+ }
716
+
717
+ export interface ResultItem{
718
+ code: number,
719
+ msg?: string,
720
+ data?: any
721
+ }
722
+ export interface PropItem{
723
+ prop: string,
724
+ label?: string,
725
+ width?: number
726
+ }
727
+
728
+ export interface ContainerOptions{
729
+ mode?: 'hm' | 'hmf' | 'am' | 'ham' | 'hamf' | 'ahm' | 'ahmf' | '',
730
+ asideWidth?: string,
731
+ asideBorderColor?: string,
732
+ asideTextColor?: string,
733
+ headerHeight?: number,
734
+ footerHeight?: string,
735
+ asideBgColor?: string,
736
+ headerBgColor?: string,
737
+ mainBgColor?: string,
738
+ footerBgColor?: string,
739
+ headerPadding?: number,
740
+ mainPadding?: number
741
+ }
742
+
743
+ export interface QrDataOption{
744
+ path: string,
745
+ qrcode: string,
746
+ error?: string
747
+ }
748
+
749
+ export interface QrDataItem{
750
+ id: number,
751
+ title: string,
752
+ h5: QrDataOption,
753
+ mini: QrDataOption
754
+ }