mrxy-yk 1.0.7 → 1.0.8

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 (3) hide show
  1. package/global.d.ts +0 -1
  2. package/package.json +1 -1
  3. package/web-types.json +597 -125
package/global.d.ts CHANGED
@@ -24,7 +24,6 @@ declare module 'vue' {
24
24
  YkElEmpty: typeof import('mrxy-yk/components')['ElEmpty']
25
25
  YkElImages: typeof import('mrxy-yk/components')['ElImages']
26
26
  YkElTableColumn: typeof import('mrxy-yk/components')['ElTableColumn']
27
- & typeof import('element-plus/es')['ElTableColumn']
28
27
  }
29
28
 
30
29
  export interface GlobalDirectives {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mrxy-yk",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "A collection of Vue 3 components and utilities",
package/web-types.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "mrxy-yk",
4
+ "version": "1.0.7",
4
5
  "js-types-syntax": "typescript",
5
6
  "contributions": {
6
7
  "html": {
@@ -16,36 +17,49 @@
16
17
  "props": [
17
18
  {
18
19
  "name": "reference",
19
- "type": ["HTMLElement", "Window"],
20
+ "type": [
21
+ "HTMLElement",
22
+ "Window"
23
+ ],
20
24
  "description": "缩放的参照物"
21
25
  },
22
26
  {
23
27
  "name": "min-width",
24
- "type": ["number"],
28
+ "type": [
29
+ "number"
30
+ ],
25
31
  "description": "缩放的最小宽度"
26
32
  },
27
33
  {
28
34
  "name": "max-width",
29
- "type": ["number"],
35
+ "type": [
36
+ "number"
37
+ ],
30
38
  "description": "缩放的最大宽度"
31
39
  },
32
40
  {
33
41
  "name": "update-width",
34
- "type": ["boolean"],
42
+ "type": [
43
+ "boolean"
44
+ ],
35
45
  "description": "是否对组件显性更新width"
36
46
  },
37
47
  {
38
48
  "name": "observe-node-update",
39
- "type": ["boolean"],
49
+ "type": [
50
+ "boolean"
51
+ ],
40
52
  "description": "是否观察子节点更新"
41
53
  },
42
54
  {
43
55
  "name": "mode",
44
- "type": ["'equal-width' | 'contain' | 'full-height'"],
56
+ "type": [
57
+ "'equal-width' | 'contain' | 'full-height'"
58
+ ],
45
59
  "description": "缩放模式:等宽 / 包含 / 高度充满"
46
60
  }
47
61
  ],
48
- "slots":[
62
+ "slots": [
49
63
  {
50
64
  "name": "default"
51
65
  }
@@ -62,11 +76,13 @@
62
76
  "props": [
63
77
  {
64
78
  "name": "anchor",
65
- "type": ["'center' | 'top-left' | 'top-right' | 'top-right' | 'bottom-left' | 'bottom-right' | 'bottom' | 'top' | 'right' | 'left'"],
79
+ "type": [
80
+ "'center' | 'top-left' | 'top-right' | 'top-right' | 'bottom-left' | 'bottom-right' | 'bottom' | 'top' | 'right' | 'left'"
81
+ ],
66
82
  "description": "锚点位置"
67
83
  }
68
84
  ],
69
- "slots":[
85
+ "slots": [
70
86
  {
71
87
  "name": "default"
72
88
  }
@@ -83,42 +99,59 @@
83
99
  "props": [
84
100
  {
85
101
  "name": "progress",
86
- "type": ["number"],
102
+ "type": [
103
+ "number"
104
+ ],
87
105
  "description": "进度"
88
106
  },
89
107
  {
90
108
  "name": "size",
91
- "type": ["number"],
109
+ "type": [
110
+ "number"
111
+ ],
92
112
  "description": "环形的直径"
93
113
  },
94
114
  {
95
115
  "name": "stroke-width",
96
- "type": ["number"],
116
+ "type": [
117
+ "number"
118
+ ],
97
119
  "description": "环形宽度"
98
120
  },
99
121
  {
100
122
  "name": "offset-angle",
101
- "type": ["number"],
123
+ "type": [
124
+ "number"
125
+ ],
102
126
  "description": "偏移角度,可以控制旋转"
103
127
  },
104
128
  {
105
129
  "name": "max-angle",
106
- "type": ["number"],
130
+ "type": [
131
+ "number"
132
+ ],
107
133
  "description": "最大展示角度,可以配合offset-angle模拟仪表盘形式的进度条"
108
134
  },
109
135
  {
110
136
  "name": "bg-color",
111
- "type": ["string"],
137
+ "type": [
138
+ "string"
139
+ ],
112
140
  "description": "进度条滑轨颜色"
113
141
  },
114
142
  {
115
143
  "name": "colors",
116
- "type": ["string", "string[]"],
144
+ "type": [
145
+ "string",
146
+ "string[]"
147
+ ],
117
148
  "description": "进度条颜色可以是以逗号分割的字符串或字符串数组"
118
149
  },
119
150
  {
120
151
  "name": "duration",
121
- "type": ["number"],
152
+ "type": [
153
+ "number"
154
+ ],
122
155
  "description": "动画持续时间"
123
156
  }
124
157
  ]
@@ -134,42 +167,58 @@
134
167
  "props": [
135
168
  {
136
169
  "name": "model-value",
137
- "type": ["boolean"],
170
+ "type": [
171
+ "boolean"
172
+ ],
138
173
  "description": "[必填]是否显示"
139
174
  },
140
175
  {
141
176
  "name": "v-model:lnglat",
142
- "type": ["string"],
177
+ "type": [
178
+ "string"
179
+ ],
143
180
  "description": "绑定拾取的坐标"
144
181
  },
145
182
  {
146
183
  "name": "v-model:address",
147
- "type": ["string"],
184
+ "type": [
185
+ "string"
186
+ ],
148
187
  "description": "绑定位置信息"
149
188
  },
150
189
  {
151
190
  "name": "regeocode-required",
152
- "type": ["boolean"],
191
+ "type": [
192
+ "boolean"
193
+ ],
153
194
  "description": "地理逆变数据是否是必须的,逆变数据可以在change事件中获取"
154
195
  },
155
196
  {
156
197
  "name": "map-key",
157
- "type": ["string"],
198
+ "type": [
199
+ "string"
200
+ ],
158
201
  "description": "地图Key"
159
202
  },
160
203
  {
161
204
  "name": "map-secret",
162
- "type": ["string"],
205
+ "type": [
206
+ "string"
207
+ ],
163
208
  "description": "地图Secret"
164
209
  },
165
210
  {
166
211
  "name": "modal",
167
- "type": ["boolean"],
212
+ "type": [
213
+ "boolean"
214
+ ],
168
215
  "description": "是否展示遮罩层"
169
216
  },
170
217
  {
171
218
  "name": "map-style",
172
- "type": ["string"],
219
+ "type": [
220
+ "string"
221
+ ],
173
222
  "description": "地图风格"
174
223
  }
175
224
  ],
@@ -197,21 +246,27 @@
197
246
  "props": [
198
247
  {
199
248
  "name": "v-model:top",
200
- "type": ["string"],
249
+ "type": [
250
+ "string"
251
+ ],
201
252
  "description": "双向绑定top值"
202
253
  },
203
254
  {
204
255
  "name": "v-model:left",
205
- "type": ["string"],
256
+ "type": [
257
+ "string"
258
+ ],
206
259
  "description": "双向绑定left值"
207
260
  },
208
261
  {
209
262
  "name": "disabled",
210
- "type": ["boolean"],
263
+ "type": [
264
+ "boolean"
265
+ ],
211
266
  "description": "禁用当前拖拽功能"
212
267
  }
213
268
  ],
214
- "slots":[
269
+ "slots": [
215
270
  {
216
271
  "name": "default"
217
272
  }
@@ -228,16 +283,20 @@
228
283
  "props": [
229
284
  {
230
285
  "name": "step",
231
- "type": ["number"],
286
+ "type": [
287
+ "number"
288
+ ],
232
289
  "description": "缩放步进"
233
290
  },
234
291
  {
235
292
  "name": "scale",
236
- "type": ["boolean"],
293
+ "type": [
294
+ "boolean"
295
+ ],
237
296
  "description": "允许缩放"
238
297
  }
239
298
  ],
240
- "slots":[
299
+ "slots": [
241
300
  {
242
301
  "name": "default"
243
302
  }
@@ -254,32 +313,45 @@
254
313
  "props": [
255
314
  {
256
315
  "name": "progress",
257
- "type": ["number"],
316
+ "type": [
317
+ "number"
318
+ ],
258
319
  "description": "[必填]当前进度,传入0-100的值"
259
320
  },
260
321
  {
261
322
  "name": "bg-color",
262
- "type": ["string"],
323
+ "type": [
324
+ "string"
325
+ ],
263
326
  "description": "轨道背景颜色,使用track插槽后无效"
264
327
  },
265
328
  {
266
329
  "name": "colors",
267
- "type": ["string", "string[]"],
330
+ "type": [
331
+ "string",
332
+ "string[]"
333
+ ],
268
334
  "description": "进度条颜色,参数类型为数组时为渐变色,使用progressbar插槽后无效"
269
335
  },
270
336
  {
271
337
  "name": "pattern",
272
- "type": ["boolean"],
338
+ "type": [
339
+ "boolean"
340
+ ],
273
341
  "description": "开启花纹,默认是斑马纹"
274
342
  },
275
343
  {
276
344
  "name": "pattern-width",
277
- "type": ["number"],
345
+ "type": [
346
+ "number"
347
+ ],
278
348
  "description": "花纹宽度(包含间隙),pattern为true时有效"
279
349
  },
280
350
  {
281
351
  "name": "pattern-gap",
282
- "type": ["number"],
352
+ "type": [
353
+ "number"
354
+ ],
283
355
  "description": "花纹间隔,pattern为true时有效,使用pattern插槽后无效"
284
356
  }
285
357
  ],
@@ -313,22 +385,30 @@
313
385
  "props": [
314
386
  {
315
387
  "name": "ys-video",
316
- "type": ["YsVideo"],
388
+ "type": [
389
+ "YsVideo"
390
+ ],
317
391
  "description": "[必选]萤石云视频对象"
318
392
  },
319
393
  {
320
394
  "name": "auto-play",
321
- "type": ["boolean"],
395
+ "type": [
396
+ "boolean"
397
+ ],
322
398
  "description": "是否自动播放"
323
399
  },
324
400
  {
325
401
  "name": "template",
326
- "type": ["string"],
402
+ "type": [
403
+ "string"
404
+ ],
327
405
  "description": "功能布局模板,使用themeData时,template无效"
328
406
  },
329
407
  {
330
408
  "name": "theme-data",
331
- "type": ["EZUIKitPlayerOptionsThemeData"],
409
+ "type": [
410
+ "EZUIKitPlayerOptionsThemeData"
411
+ ],
332
412
  "description": "自定义模板配置,使用themeData时,template无效"
333
413
  }
334
414
  ]
@@ -344,21 +424,27 @@
344
424
  "props": [
345
425
  {
346
426
  "name": "title",
347
- "type": ["string"],
427
+ "type": [
428
+ "string"
429
+ ],
348
430
  "description": "显示的标题"
349
431
  },
350
432
  {
351
433
  "name": "top",
352
- "type": ["string"],
434
+ "type": [
435
+ "string"
436
+ ],
353
437
  "description": "默认垂直位置"
354
438
  },
355
439
  {
356
440
  "name": "left",
357
- "type": ["string"],
441
+ "type": [
442
+ "string"
443
+ ],
358
444
  "description": "默认水平位置"
359
445
  }
360
446
  ],
361
- "slots":[
447
+ "slots": [
362
448
  {
363
449
  "name": "default"
364
450
  }
@@ -372,7 +458,7 @@
372
458
  },
373
459
  "description": "用于将插槽里的内容渲染到body中",
374
460
  "doc-url": "https://gitee.com/cscake/mrxy-yk/blob/master/doc/components/InBody.md",
375
- "slots":[
461
+ "slots": [
376
462
  {
377
463
  "name": "default"
378
464
  }
@@ -389,22 +475,31 @@
389
475
  "props": [
390
476
  {
391
477
  "name": "resize",
392
- "type": ["boolean"],
478
+ "type": [
479
+ "boolean"
480
+ ],
393
481
  "description": "是否开启图表自适应大小"
394
482
  },
395
483
  {
396
484
  "name": "theme",
397
- "type": ["'default' | 'dark' | 'auto'"],
485
+ "type": [
486
+ "'default' | 'dark' | 'auto'"
487
+ ],
398
488
  "description": "图表主题,默认是default,dark是暗黑主题,auto是根据系统主题自动切换"
399
489
  },
400
490
  {
401
491
  "name": "option",
402
- "type": ["EChartsOption", "EcBasicOption"],
492
+ "type": [
493
+ "EChartsOption",
494
+ "EcBasicOption"
495
+ ],
403
496
  "description": "ECharts配置"
404
497
  },
405
498
  {
406
499
  "name": "empty-hook",
407
- "type": ["UseEmptyHooksExample"],
500
+ "type": [
501
+ "UseEmptyHooksExample"
502
+ ],
408
503
  "description": "缺省组件Hook实例,可以直接拥有缺省功能"
409
504
  }
410
505
  ]
@@ -420,16 +515,20 @@
420
515
  "props": [
421
516
  {
422
517
  "name": "speed",
423
- "type": ["number"],
518
+ "type": [
519
+ "number"
520
+ ],
424
521
  "description": "每秒移动像素"
425
522
  },
426
523
  {
427
524
  "name": "copy-class",
428
- "type": ["string"],
525
+ "type": [
526
+ "string"
527
+ ],
429
528
  "description": "复制插槽的样式"
430
529
  }
431
530
  ],
432
- "slots":[
531
+ "slots": [
433
532
  {
434
533
  "name": "default"
435
534
  }
@@ -446,71 +545,99 @@
446
545
  "props": [
447
546
  {
448
547
  "name": "hook",
449
- "type": ["UseFormDialogHooksExample"],
548
+ "type": [
549
+ "UseFormDialogHooksExample"
550
+ ],
450
551
  "description": "[必填]useElFormDialogHooks的实例"
451
552
  },
452
553
  {
453
554
  "name": "dialog-class",
454
- "type": ["string"],
555
+ "type": [
556
+ "string"
557
+ ],
455
558
  "description": "el-dialog的class"
456
559
  },
457
560
  {
458
561
  "name": "form-class",
459
- "type": ["string"],
562
+ "type": [
563
+ "string"
564
+ ],
460
565
  "description": "el-form的class"
461
566
  },
462
567
  {
463
568
  "name": "title",
464
- "type": ["string"],
569
+ "type": [
570
+ "string"
571
+ ],
465
572
  "description": "el-dialog的title,不填默认从hook实例中获取"
466
573
  },
467
574
  {
468
575
  "name": "width",
469
- "type": ["string", "number"],
576
+ "type": [
577
+ "string",
578
+ "number"
579
+ ],
470
580
  "description": "el-dialog的width"
471
581
  },
472
582
  {
473
583
  "name": "label-position",
474
- "type": ["'left' | 'right' | 'top'"],
584
+ "type": [
585
+ "'left' | 'right' | 'top'"
586
+ ],
475
587
  "description": "el-form的label-position"
476
588
  },
477
589
  {
478
590
  "name": "label-width",
479
- "type": ["string", "number"],
591
+ "type": [
592
+ "string",
593
+ "number"
594
+ ],
480
595
  "description": "el-form的label-width"
481
596
  },
482
597
  {
483
598
  "name": "append-to-body",
484
- "type": ["boolean"],
599
+ "type": [
600
+ "boolean"
601
+ ],
485
602
  "description": "el-dialog的append-to-body"
486
603
  },
487
604
  {
488
605
  "name": "modal",
489
- "type": ["boolean"],
606
+ "type": [
607
+ "boolean"
608
+ ],
490
609
  "description": "el-dialog的modal"
491
610
  },
492
611
  {
493
612
  "name": "fullscreen",
494
- "type": ["boolean"],
613
+ "type": [
614
+ "boolean"
615
+ ],
495
616
  "description": "el-dialog的fullscreen"
496
617
  },
497
618
  {
498
619
  "name": "close-on-click-modal",
499
- "type": ["boolean"],
620
+ "type": [
621
+ "boolean"
622
+ ],
500
623
  "description": "是否可以通过点击 modal 关闭 Dialog"
501
624
  },
502
625
  {
503
626
  "name": "dialog-center",
504
- "type": ["boolean"],
627
+ "type": [
628
+ "boolean"
629
+ ],
505
630
  "description": "是否让 Dialog 的 header 和 footer 部分居中排列"
506
631
  },
507
632
  {
508
633
  "name": "show-close",
509
- "type": ["boolean"],
634
+ "type": [
635
+ "boolean"
636
+ ],
510
637
  "description": "Dialog右上角是否显示关闭按钮"
511
638
  }
512
639
  ],
513
- "slots":[
640
+ "slots": [
514
641
  {
515
642
  "name": "default"
516
643
  },
@@ -530,52 +657,73 @@
530
657
  "props": [
531
658
  {
532
659
  "name": "model-value",
533
- "type": ["string", "string[]"],
660
+ "type": [
661
+ "string",
662
+ "string[]"
663
+ ],
534
664
  "description": "绑定值,单日期使用string,时间范围使用string[],或者使用start和end绑定"
535
665
  },
536
666
  {
537
667
  "name": "v-model:start",
538
- "type": ["string"],
668
+ "type": [
669
+ "string"
670
+ ],
539
671
  "description": "绑定开始时间"
540
672
  },
541
673
  {
542
674
  "name": "v-model:end",
543
- "type": ["string"],
675
+ "type": [
676
+ "string"
677
+ ],
544
678
  "description": "绑定结束时间"
545
679
  },
546
680
  {
547
681
  "name": "type",
548
- "type": ["'year' | 'month' | 'date' | 'datetime' | 'week' | 'datetimerange' | 'daterange' | 'monthrange' | 'yearrange'"],
682
+ "type": [
683
+ "'year' | 'month' | 'date' | 'datetime' | 'week' | 'datetimerange' | 'daterange' | 'monthrange' | 'yearrange'"
684
+ ],
549
685
  "description": "与原ElDatePicker组件一致,定义选择器类型"
550
686
  },
551
687
  {
552
688
  "name": "value-format",
553
- "type": ["string"],
689
+ "type": [
690
+ "string"
691
+ ],
554
692
  "description": "与原ElDatePicker组件一致,调整绑定值的格式"
555
693
  },
556
694
  {
557
695
  "name": "optional-scope",
558
- "type": ["'before' | 'after' | 'none'"],
696
+ "type": [
697
+ "'before' | 'after' | 'none'"
698
+ ],
559
699
  "description": "日期可选择的范围, before只能选择历史日期;after只能选择未来日期;none不限制"
560
700
  },
561
701
  {
562
702
  "name": "max-date",
563
- "type": ["number"],
703
+ "type": [
704
+ "number"
705
+ ],
564
706
  "description": "允许选择的最大日期,仅type为范围选择器时生效"
565
707
  },
566
708
  {
567
709
  "name": "shortcuts",
568
- "type": ["number[]"],
710
+ "type": [
711
+ "number[]"
712
+ ],
569
713
  "description": "生成快捷选项,如昨天,近7日等,仅type为datetimerange或daterange时生效"
570
714
  },
571
715
  {
572
716
  "name": "clearable",
573
- "type": ["boolean"],
717
+ "type": [
718
+ "boolean"
719
+ ],
574
720
  "description": "是否允许清空日期和手动输入"
575
721
  },
576
722
  {
577
723
  "name": "unlink-panels",
578
- "type": ["boolean"],
724
+ "type": [
725
+ "boolean"
726
+ ],
579
727
  "description": "与原ElDatePicker组件一致,在范围选择器里取消两个日期面板之间的联动"
580
728
  }
581
729
  ]
@@ -591,17 +739,23 @@
591
739
  "props": [
592
740
  {
593
741
  "name": "pages",
594
- "type": ["Pages"],
742
+ "type": [
743
+ "Pages"
744
+ ],
595
745
  "description": "分页绑定对象"
596
746
  },
597
747
  {
598
748
  "name": "tableHook",
599
- "type": ["UseTableSearchHooksExample"],
749
+ "type": [
750
+ "UseTableSearchHooksExample"
751
+ ],
600
752
  "description": "配合表格搜索Hook更快速实现逻辑"
601
753
  },
602
754
  {
603
755
  "name": "background",
604
- "type": ["boolean"],
756
+ "type": [
757
+ "boolean"
758
+ ],
605
759
  "description": "按钮显示背景"
606
760
  }
607
761
  ],
@@ -624,12 +778,16 @@
624
778
  "props": [
625
779
  {
626
780
  "name": "accept",
627
- "type": ["string"],
781
+ "type": [
782
+ "string"
783
+ ],
628
784
  "description": "文件类型限制"
629
785
  },
630
786
  {
631
787
  "name": "max-size",
632
- "type": ["number"],
788
+ "type": [
789
+ "number"
790
+ ],
633
791
  "description": "文件最大体积"
634
792
  }
635
793
  ],
@@ -645,7 +803,7 @@
645
803
  "description": "选择文件错误触发,参数:Error"
646
804
  }
647
805
  ],
648
- "slots":[
806
+ "slots": [
649
807
  {
650
808
  "name": "default"
651
809
  }
@@ -662,57 +820,80 @@
662
820
  "props": [
663
821
  {
664
822
  "name": "model-value",
665
- "type": ["string", "string[]"],
823
+ "type": [
824
+ "string",
825
+ "string[]"
826
+ ],
666
827
  "description": "[必填]绑定文件路径"
667
828
  },
668
829
  {
669
830
  "name": "is-join",
670
- "type": ["boolean"],
831
+ "type": [
832
+ "boolean"
833
+ ],
671
834
  "description": "上传后的地址是否拼接成字符串"
672
835
  },
673
836
  {
674
837
  "name": "upload-class",
675
- "type": ["string"],
838
+ "type": [
839
+ "string"
840
+ ],
676
841
  "description": "自定义样式"
677
842
  },
678
843
  {
679
844
  "name": "accept",
680
- "type": ["string"],
845
+ "type": [
846
+ "string"
847
+ ],
681
848
  "description": "文件类型限制"
682
849
  },
683
850
  {
684
851
  "name": "width",
685
- "type": ["string"],
852
+ "type": [
853
+ "string"
854
+ ],
686
855
  "description": "组件宽"
687
856
  },
688
857
  {
689
858
  "name": "height",
690
- "type": ["string"],
859
+ "type": [
860
+ "string"
861
+ ],
691
862
  "description": "组件高"
692
863
  },
693
864
  {
694
865
  "name": "max-size",
695
- "type": ["number"],
866
+ "type": [
867
+ "number"
868
+ ],
696
869
  "description": "文件最大体积"
697
870
  },
698
871
  {
699
872
  "name": "limit",
700
- "type": ["number"],
873
+ "type": [
874
+ "number"
875
+ ],
701
876
  "description": "文件最大数量"
702
877
  },
703
878
  {
704
879
  "name": "drag",
705
- "type": ["boolean"],
880
+ "type": [
881
+ "boolean"
882
+ ],
706
883
  "description": "是否支持拖拽上传"
707
884
  },
708
885
  {
709
886
  "name": "get-url-method",
710
- "type": ["(url: string) => string"],
887
+ "type": [
888
+ "(url: string) => string"
889
+ ],
711
890
  "description": "获取文件完整路径的方法,类型:Function (url: string): string"
712
891
  },
713
892
  {
714
893
  "name": "upload-method",
715
- "type": ["(file: File) => Promise<string>"],
894
+ "type": [
895
+ "(file: File) => Promise<string>"
896
+ ],
716
897
  "description": "文件上传方法,类型:Function (file: File): Promise<string>"
717
898
  }
718
899
  ],
@@ -728,7 +909,7 @@
728
909
  "description": "选择文件错误触发,参数:Error"
729
910
  }
730
911
  ],
731
- "slots":[
912
+ "slots": [
732
913
  {
733
914
  "name": "default"
734
915
  }
@@ -745,52 +926,73 @@
745
926
  "props": [
746
927
  {
747
928
  "name": "model-value",
748
- "type": ["string", "string[]"],
929
+ "type": [
930
+ "string",
931
+ "string[]"
932
+ ],
749
933
  "description": "[必填]绑定文件路径"
750
934
  },
751
935
  {
752
936
  "name": "is-join",
753
- "type": ["boolean"],
937
+ "type": [
938
+ "boolean"
939
+ ],
754
940
  "description": "上传后的地址是否拼接成字符串"
755
941
  },
756
942
  {
757
943
  "name": "upload-class",
758
- "type": ["string"],
944
+ "type": [
945
+ "string"
946
+ ],
759
947
  "description": "自定义样式"
760
948
  },
761
949
  {
762
950
  "name": "accept",
763
- "type": ["string"],
951
+ "type": [
952
+ "string"
953
+ ],
764
954
  "description": "文件类型限制"
765
955
  },
766
956
  {
767
957
  "name": "width",
768
- "type": ["string"],
958
+ "type": [
959
+ "string"
960
+ ],
769
961
  "description": "组件宽"
770
962
  },
771
963
  {
772
964
  "name": "height",
773
- "type": ["string"],
965
+ "type": [
966
+ "string"
967
+ ],
774
968
  "description": "组件高"
775
969
  },
776
970
  {
777
971
  "name": "max-size",
778
- "type": ["number"],
972
+ "type": [
973
+ "number"
974
+ ],
779
975
  "description": "文件最大体积"
780
976
  },
781
977
  {
782
978
  "name": "limit",
783
- "type": ["number"],
979
+ "type": [
980
+ "number"
981
+ ],
784
982
  "description": "文件最大数量"
785
983
  },
786
984
  {
787
985
  "name": "get-url-method",
788
- "type": ["(url: string) => string"],
986
+ "type": [
987
+ "(url: string) => string"
988
+ ],
789
989
  "description": "获取文件完整路径的方法,类型:Function (url: string): string"
790
990
  },
791
991
  {
792
992
  "name": "upload-method",
793
- "type": ["(file: File) => Promise<string>"],
993
+ "type": [
994
+ "(file: File) => Promise<string>"
995
+ ],
794
996
  "description": "文件上传方法,类型:Function (file: File): Promise<string>"
795
997
  }
796
998
  ],
@@ -806,7 +1008,7 @@
806
1008
  "description": "选择文件错误触发,参数:Error"
807
1009
  }
808
1010
  ],
809
- "slots":[
1011
+ "slots": [
810
1012
  {
811
1013
  "name": "default"
812
1014
  }
@@ -823,26 +1025,34 @@
823
1025
  "props": [
824
1026
  {
825
1027
  "name": "hook",
826
- "type": ["UseEmptyHooksExample"],
1028
+ "type": [
1029
+ "UseEmptyHooksExample"
1030
+ ],
827
1031
  "description": "[必填]当前EmptyBox的显示状态"
828
1032
  },
829
1033
  {
830
1034
  "name": "image-size",
831
- "type": ["number"],
1035
+ "type": [
1036
+ "number"
1037
+ ],
832
1038
  "description": "图片大小"
833
1039
  },
834
1040
  {
835
1041
  "name": "empty-class",
836
- "type": ["string"],
1042
+ "type": [
1043
+ "string"
1044
+ ],
837
1045
  "description": "自定义类样式"
838
1046
  },
839
1047
  {
840
1048
  "name": "empty-style",
841
- "type": ["string"],
1049
+ "type": [
1050
+ "string"
1051
+ ],
842
1052
  "description": "自定义样式"
843
1053
  }
844
1054
  ],
845
- "slots":[
1055
+ "slots": [
846
1056
  {
847
1057
  "name": "default"
848
1058
  }
@@ -859,32 +1069,45 @@
859
1069
  "props": [
860
1070
  {
861
1071
  "name": "src-list",
862
- "type": ["string", "string[]"],
1072
+ "type": [
1073
+ "string",
1074
+ "string[]"
1075
+ ],
863
1076
  "description": "[必填]绑定文件路径"
864
1077
  },
865
1078
  {
866
1079
  "name": "width",
867
- "type": ["string"],
1080
+ "type": [
1081
+ "string"
1082
+ ],
868
1083
  "description": "图片宽"
869
1084
  },
870
1085
  {
871
1086
  "name": "height",
872
- "type": ["string"],
1087
+ "type": [
1088
+ "string"
1089
+ ],
873
1090
  "description": "图片高"
874
1091
  },
875
1092
  {
876
1093
  "name": "limit",
877
- "type": ["number"],
1094
+ "type": [
1095
+ "number"
1096
+ ],
878
1097
  "description": "文件最大数量"
879
1098
  },
880
1099
  {
881
1100
  "name": "image-preview",
882
- "type": ["boolean"],
1101
+ "type": [
1102
+ "boolean"
1103
+ ],
883
1104
  "description": "是否支持图片预览"
884
1105
  },
885
1106
  {
886
1107
  "name": "get-url-method",
887
- "type": ["(url: string) => string"],
1108
+ "type": [
1109
+ "(url: string) => string"
1110
+ ],
888
1111
  "description": "获取文件完整路径的方法。参数url是上传后的路径"
889
1112
  }
890
1113
  ]
@@ -899,23 +1122,272 @@
899
1122
  "doc-url": "https://gitee.com/cscake/mrxy-yk/blob/master/doc/element-plus/components/TableColumn.md",
900
1123
  "props": [
901
1124
  {
902
- "name": "label",
903
- "type": "string"
1125
+ "name": "empty-str",
1126
+ "type": [
1127
+ "string"
1128
+ ],
1129
+ "description": "字段为空时显示的占位符"
1130
+ },
1131
+ {
1132
+ "name": "type",
1133
+ "description": "type of the column. If set to `selection`, the column will display checkbox. If set to `index`, the column will display index of the row (staring from 1). If set to `expand`, the column will display expand icon",
1134
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1135
+ "type": [
1136
+ "'default' | 'selection' | 'index' | 'expand'"
1137
+ ],
1138
+ "default": "default"
904
1139
  },
905
1140
  {
906
1141
  "name": "index",
907
- "type": ["number", "(index: number) => number"]
1142
+ "description": "customize indices for each row, works on columns with `type=index`",
1143
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1144
+ "type": [
1145
+ "number",
1146
+ "(index: number) => number"
1147
+ ]
908
1148
  },
909
1149
  {
910
- "name": "type",
911
- "type": ["'default' | 'selection' | 'index' | 'expand'"]
1150
+ "name": "label",
1151
+ "description": "column label",
1152
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1153
+ "type": [
1154
+ "string"
1155
+ ]
1156
+ },
1157
+ {
1158
+ "name": "column-key",
1159
+ "description": "column's key. If you need to use the filter-change event, you need this attribute to identify which column is being filtered",
1160
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1161
+ "type": [
1162
+ "string"
1163
+ ]
1164
+ },
1165
+ {
1166
+ "name": "prop",
1167
+ "description": "field name. You can also use its alias: `property`",
1168
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1169
+ "type": [
1170
+ "string"
1171
+ ]
1172
+ },
1173
+ {
1174
+ "name": "width",
1175
+ "description": "column width",
1176
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1177
+ "type": [
1178
+ "string",
1179
+ "number"
1180
+ ],
1181
+ "default": "''"
1182
+ },
1183
+ {
1184
+ "name": "min-width",
1185
+ "description": "column minimum width. Columns with `width` has a fixed width, while columns with `min-width` has a width that is distributed in proportion",
1186
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1187
+ "type": [
1188
+ "string",
1189
+ "number"
1190
+ ],
1191
+ "default": "''"
1192
+ },
1193
+ {
1194
+ "name": "fixed",
1195
+ "description": "whether column is fixed at left / right. Will be fixed at left if `true`",
1196
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1197
+ "type": [
1198
+ "'left' | 'right'",
1199
+ "boolean"
1200
+ ],
1201
+ "default": "false"
1202
+ },
1203
+ {
1204
+ "name": "render-header",
1205
+ "description": "render function for table header of this column",
1206
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1207
+ "type": [
1208
+ "(data: { column: TableColumnCtx<T>, $index: number }) => void"
1209
+ ]
1210
+ },
1211
+ {
1212
+ "name": "sortable",
1213
+ "description": "whether column can be sorted. Remote sorting can be done by setting this attribute to 'custom' and listening to the `sort-change` event of Table",
1214
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1215
+ "type": [
1216
+ "boolean",
1217
+ "string"
1218
+ ],
1219
+ "default": "false"
1220
+ },
1221
+ {
1222
+ "name": "sort-method",
1223
+ "description": "sorting method, works when `sortable` is `true`. Should return a number, just like Array.sort",
1224
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1225
+ "type": [
1226
+ {
1227
+ "name": "<T = any>(a: T, b: T) => number",
1228
+ "source": {
1229
+ "symbol": "<T = any>(a: T, b: T) => number"
1230
+ }
1231
+ }
1232
+ ]
1233
+ },
1234
+ {
1235
+ "name": "sort-by",
1236
+ "description": "specify which property to sort by, works when `sortable` is `true` and `sort-method` is `undefined`. If set to an Array, the column will sequentially sort by the next property if the previous one is equal",
1237
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1238
+ "type": [
1239
+ "(row: any, index: number) => string",
1240
+ "string",
1241
+ "string[]"
1242
+ ]
1243
+ },
1244
+ {
1245
+ "name": "sort-orders",
1246
+ "description": "the order of the sorting strategies used when sorting the data, works when `sortable` is `true`. Accepts an array, as the user clicks on the header, the column is sorted in order of the elements in the array",
1247
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1248
+ "type": [
1249
+ "[]"
1250
+ ],
1251
+ "default": "['ascending', 'descending', null]"
1252
+ },
1253
+ {
1254
+ "name": "resizable",
1255
+ "description": "whether column width can be resized, works when `border` of `el-table` is `true`",
1256
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1257
+ "type": [
1258
+ "boolean"
1259
+ ],
1260
+ "default": "true"
1261
+ },
1262
+ {
1263
+ "name": "formatter",
1264
+ "description": "function that formats cell content",
1265
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1266
+ "type": [
1267
+ "(row: any, column: TableColumnCtx<T>, cellValue: any, index: number) => VNode",
1268
+ "string"
1269
+ ]
1270
+ },
1271
+ {
1272
+ "name": "show-overflow-tooltip",
1273
+ "description": "whether to hide extra content and show them in a tooltip when hovering on the cell",
1274
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1275
+ "type": [
1276
+ "boolean"
1277
+ ],
1278
+ "default": "undefined"
1279
+ },
1280
+ {
1281
+ "name": "align",
1282
+ "description": "alignment",
1283
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1284
+ "type": [
1285
+ "'left' | 'center' | 'right'"
1286
+ ],
1287
+ "default": "left"
1288
+ },
1289
+ {
1290
+ "name": "header-align",
1291
+ "description": "alignment of the table header. If omitted, the value of the above `align` attribute will be applied",
1292
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1293
+ "type": [
1294
+ "'left' | 'center' | 'right'"
1295
+ ],
1296
+ "default": "left"
1297
+ },
1298
+ {
1299
+ "name": "class-name",
1300
+ "description": "class name of cells in the column",
1301
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1302
+ "type": [
1303
+ "string"
1304
+ ]
1305
+ },
1306
+ {
1307
+ "name": "label-class-name",
1308
+ "description": "class name of the label of this column",
1309
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1310
+ "type": [
1311
+ "string"
1312
+ ]
1313
+ },
1314
+ {
1315
+ "name": "selectable",
1316
+ "description": "function that determines if a certain row can be selected, works when `type` is 'selection'",
1317
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1318
+ "type": [
1319
+ "(row: any, index: number) => boolean"
1320
+ ]
912
1321
  },
913
1322
  {
914
1323
  "name": "reserve-selection",
915
- "type": ["boolean"]
1324
+ "description": "whether to reserve selection after data refreshing, works when `type` is 'selection'. Note that `row-key` is required for this to work",
1325
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1326
+ "type": [
1327
+ "boolean"
1328
+ ],
1329
+ "default": "false"
1330
+ },
1331
+ {
1332
+ "name": "filters",
1333
+ "description": "an array of data filtering options. For each element in this array, `text` and `value` are required",
1334
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1335
+ "type": [
1336
+ "Array<{text: string, value: string}>"
1337
+ ]
1338
+ },
1339
+ {
1340
+ "name": "filter-placement",
1341
+ "description": "placement for the filter dropdown",
1342
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1343
+ "type": [
1344
+ "'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end'"
1345
+ ]
1346
+ },
1347
+ {
1348
+ "name": "filter-class-name",
1349
+ "description": "className for the filter dropdown",
1350
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1351
+ "type": [
1352
+ "string"
1353
+ ]
1354
+ },
1355
+ {
1356
+ "name": "filter-multiple",
1357
+ "description": "whether data filtering supports multiple options",
1358
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1359
+ "type": [
1360
+ "boolean"
1361
+ ],
1362
+ "default": "true"
1363
+ },
1364
+ {
1365
+ "name": "filter-method",
1366
+ "description": "data filtering method. If `filter-multiple` is on, this method will be called multiple times for each row, and a row will display if one of the calls returns `true`",
1367
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1368
+ "type": [
1369
+ "(value: any, row: any, column: TableColumnCtx<T>) => void"
1370
+ ]
1371
+ },
1372
+ {
1373
+ "name": "filtered-value",
1374
+ "description": "filter value for selected data, might be useful when table header is rendered with `render-header`",
1375
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1376
+ "type": [
1377
+ "string[]"
1378
+ ]
1379
+ },
1380
+ {
1381
+ "name": "tooltip-formatter",
1382
+ "description": "customize tooltip content when using `show-overflow-tooltip`",
1383
+ "doc-url": "https://element-plus.org/en-US/component/table.html#table-column-attributes",
1384
+ "type": [
1385
+ "(data: { row: any, column: TableColumnCtx<T>, cellValue: any }) => VNode",
1386
+ "string"
1387
+ ]
916
1388
  }
917
1389
  ],
918
- "slots":[
1390
+ "slots": [
919
1391
  {
920
1392
  "name": "default",
921
1393
  "type": "{ column: TableColumnCtx<T>, $index: number, row: any }"