@next-bricks/advanced 0.51.2 → 0.51.4

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 (63) hide show
  1. package/dist/bricks.json +1 -1
  2. package/dist/chunks/4758.703acb39.js +3 -0
  3. package/dist/chunks/4758.703acb39.js.map +1 -0
  4. package/dist/chunks/{6070.74d93326.js → 7039.0ea489d5.js} +2 -2
  5. package/dist/chunks/7039.0ea489d5.js.map +1 -0
  6. package/dist/chunks/8382.eba253d7.js +2 -0
  7. package/dist/chunks/8382.eba253d7.js.map +1 -0
  8. package/dist/chunks/eo-cascader.b5d6ee02.js +2 -0
  9. package/dist/chunks/eo-cascader.b5d6ee02.js.map +1 -0
  10. package/dist/chunks/eo-next-table.25f4bf4d.js.map +1 -1
  11. package/dist/chunks/eo-table.5dd09651.js.map +1 -1
  12. package/dist/chunks/eo-text-tooltip.74db365e.js.map +1 -1
  13. package/dist/chunks/eo-tree-select.4034b1d9.js +2 -0
  14. package/dist/chunks/eo-tree-select.4034b1d9.js.map +1 -0
  15. package/dist/chunks/eo-tree.22180778.js.map +1 -1
  16. package/dist/chunks/eo-workbench-layout-v2.24da89e7.js.map +1 -1
  17. package/dist/chunks/eo-workbench-layout.1ed8ce80.js.map +1 -1
  18. package/dist/chunks/{main.f43a8ad8.js → main.6b40d042.js} +2 -2
  19. package/dist/chunks/{main.f43a8ad8.js.map → main.6b40d042.js.map} +1 -1
  20. package/dist/chunks/pdf-viewer.036787d7.js.map +1 -1
  21. package/dist/examples.json +13 -7
  22. package/dist/{index.d1112026.js → index.6f2baf4a.js} +2 -2
  23. package/dist/{index.d1112026.js.map → index.6f2baf4a.js.map} +1 -1
  24. package/dist/manifest.json +145 -52
  25. package/dist/types.json +466 -414
  26. package/dist-types/cascader/index.d.ts +23 -4
  27. package/dist-types/next-table/index.d.ts +43 -29
  28. package/dist-types/pdf-viewer/index.d.ts +7 -1
  29. package/dist-types/table/index.d.ts +31 -26
  30. package/dist-types/text-tooltip/index.d.ts +5 -4
  31. package/dist-types/tree/index.d.ts +12 -0
  32. package/dist-types/tree-select/index.d.ts +41 -1
  33. package/dist-types/workbench-layout/index.d.ts +26 -1
  34. package/dist-types/workbench-layout-v2/index.d.ts +31 -9
  35. package/docs/eo-cascader.md +184 -1
  36. package/docs/eo-cascader.react.md +247 -0
  37. package/docs/eo-next-table.md +343 -168
  38. package/docs/eo-next-table.react.md +923 -0
  39. package/docs/eo-table.md +296 -0
  40. package/docs/eo-table.react.md +223 -0
  41. package/docs/eo-text-tooltip.md +46 -1
  42. package/docs/eo-text-tooltip.react.md +69 -0
  43. package/docs/eo-tree-select.md +127 -1
  44. package/docs/eo-tree-select.react.md +206 -0
  45. package/docs/eo-tree.md +108 -2
  46. package/docs/eo-tree.react.md +220 -0
  47. package/docs/eo-workbench-layout-v2.md +204 -0
  48. package/docs/eo-workbench-layout-v2.react.md +162 -0
  49. package/docs/eo-workbench-layout.md +45 -3
  50. package/docs/eo-workbench-layout.react.md +141 -0
  51. package/docs/pdf-viewer.md +48 -1
  52. package/docs/pdf-viewer.react.md +63 -0
  53. package/package.json +2 -2
  54. package/dist/chunks/4758.5f79e636.js +0 -3
  55. package/dist/chunks/4758.5f79e636.js.map +0 -1
  56. package/dist/chunks/6070.74d93326.js.map +0 -1
  57. package/dist/chunks/8382.d552299f.js +0 -2
  58. package/dist/chunks/8382.d552299f.js.map +0 -1
  59. package/dist/chunks/eo-cascader.86a685ca.js +0 -2
  60. package/dist/chunks/eo-cascader.86a685ca.js.map +0 -1
  61. package/dist/chunks/eo-tree-select.31dae71f.js +0 -2
  62. package/dist/chunks/eo-tree-select.31dae71f.js.map +0 -1
  63. /package/dist/chunks/{4758.5f79e636.js.LICENSE.txt → 4758.703acb39.js.LICENSE.txt} +0 -0
@@ -177,7 +177,7 @@
177
177
  },
178
178
  {
179
179
  "name": "scrollConfigs",
180
- "description": "",
180
+ "description": "表格是否可滚动,也可以指定滚动区域的宽、高,配置项。详见 [scroll](https://ant.design/components/table-cn/#scroll)",
181
181
  "default": "{ x: true }",
182
182
  "attribute": false,
183
183
  "type": "TableProps<unknown>[\"scroll\"]"
@@ -264,6 +264,7 @@
264
264
  "name": "page.update",
265
265
  "description": "页码变化,pagePath 可在 fields.page 中设置,默认为 page",
266
266
  "detail": {
267
+ "description": "{ page: 当前页码, pageSize: 每页条数 }",
267
268
  "type": "Record<string, number>"
268
269
  }
269
270
  },
@@ -271,6 +272,7 @@
271
272
  "name": "filter.update",
272
273
  "description": "每页条数变化 ,pagePath 可在 fields.page 中设置,pageSizePath 可在 fields.pageSize 中设置,默认为 pageSize",
273
274
  "detail": {
275
+ "description": "{ page: 当前页码, pageSize: 每页条数 }",
274
276
  "type": "Record<string, number>"
275
277
  }
276
278
  },
@@ -278,6 +280,7 @@
278
280
  "name": "select.update",
279
281
  "description": "勾选框变化,detail 中为所选的行数据",
280
282
  "detail": {
283
+ "description": "选中的行数据数组",
281
284
  "type": "Record<string, any>[]"
282
285
  }
283
286
  },
@@ -285,6 +288,7 @@
285
288
  "name": "select.row.keys.update",
286
289
  "description": "勾选框变化,detail 中为所选的行key集合",
287
290
  "detail": {
291
+ "description": "选中的行 key 集合",
288
292
  "type": "string[]"
289
293
  }
290
294
  },
@@ -292,28 +296,32 @@
292
296
  "name": "sort.update",
293
297
  "description": "排序变化,detail 中的 sort 为对应排序列的 key/dataIndex,order 为升序/降序",
294
298
  "detail": {
295
- "type": "{\n sort: string;\n order: string | number;\n }"
299
+ "description": "{ sort: 排序列的 key/dataIndex, order: 升序/降序 }",
300
+ "type": "SortUpdateEventDetail"
296
301
  }
297
302
  },
298
303
  {
299
304
  "name": "row.expand",
300
305
  "description": "点击展开图标时触发的事件,事件详情中`expanded`为是否展开,`record`被点击的行信息",
301
306
  "detail": {
302
- "type": "{\n expanded: boolean;\n record: Record<string, any>;\n }"
307
+ "description": "{ expanded: 是否展开, record: 被点击的行数据 }",
308
+ "type": "RowExpandEventDetail"
303
309
  }
304
310
  },
305
311
  {
306
312
  "name": "expand.rows.change",
307
313
  "description": "展开的行变化时触发的事件,事件详情为当前展开的所有行的`rowKey`集合",
308
314
  "detail": {
309
- "type": "{\n expandedRows: React.Key[];\n }"
315
+ "description": "{ expandedRows: 当前展开的所有行的 rowKey 集合 }",
316
+ "type": "ExpandRowsChangeEventDetail"
310
317
  }
311
318
  },
312
319
  {
313
320
  "name": "row.drag",
314
321
  "description": "表格行拖拽结束发生的事件,事件详情为拖拽后重新排序的所有行数据",
315
322
  "detail": {
316
- "type": "{\n data: Record<string, any>[];\n }"
323
+ "description": "{ data: 拖拽后重新排序的所有行数据 }",
324
+ "type": "RowDragEventDetail"
317
325
  }
318
326
  }
319
327
  ],
@@ -324,6 +332,7 @@
324
332
  "params": [
325
333
  {
326
334
  "name": "event",
335
+ "description": "搜索事件,event.detail.q 为搜索关键词",
327
336
  "type": "CustomEvent"
328
337
  }
329
338
  ],
@@ -352,85 +361,103 @@
352
361
  "properties": [
353
362
  {
354
363
  "name": "name",
364
+ "description": "表单字段名",
355
365
  "type": "string"
356
366
  },
357
367
  {
358
368
  "name": "label",
369
+ "description": "表单字段标签",
359
370
  "type": "string"
360
371
  },
361
372
  {
362
373
  "name": "required",
374
+ "description": "是否为必填项",
363
375
  "type": "boolean"
364
376
  },
365
377
  {
366
378
  "name": "options",
379
+ "description": "可选项数据源",
367
380
  "attribute": false,
368
381
  "type": "AntdCascaderProps[\"options\"]"
369
382
  },
370
383
  {
371
384
  "name": "fieldNames",
385
+ "description": "自定义字段名,指定 label、value、children 对应的字段",
386
+ "default": "{\n label: \"label\",\n value: \"value\",\n children: \"children\",\n }",
372
387
  "attribute": false,
373
- "type": "AntdCascaderProps[\"fieldNames\"]",
374
- "default": "{\n label: \"label\",\n value: \"value\",\n children: \"children\",\n }"
388
+ "type": "AntdCascaderProps[\"fieldNames\"]"
375
389
  },
376
390
  {
377
391
  "name": "value",
392
+ "description": "当前选中的值",
378
393
  "attribute": false,
379
394
  "type": "AntdCascaderProps[\"value\"]"
380
395
  },
381
396
  {
382
397
  "name": "placeholder",
398
+ "description": "输入框占位文本",
383
399
  "type": "string"
384
400
  },
385
401
  {
386
402
  "name": "multiple",
403
+ "description": "是否支持多选",
387
404
  "type": "boolean"
388
405
  },
389
406
  {
390
407
  "name": "disabled",
408
+ "description": "是否禁用",
391
409
  "type": "boolean"
392
410
  },
393
411
  {
394
412
  "name": "allowClear",
395
- "type": "boolean",
396
- "default": "true"
413
+ "description": "是否支持清除",
414
+ "default": "true",
415
+ "type": "boolean"
397
416
  },
398
417
  {
399
418
  "name": "showSearch",
400
- "type": "boolean",
401
- "default": "true"
419
+ "description": "是否支持搜索,开启后可通过输入关键字过滤选项",
420
+ "default": "true",
421
+ "type": "boolean"
402
422
  },
403
423
  {
404
424
  "name": "suffixIcon",
425
+ "description": "自定义下拉箭头图标",
405
426
  "attribute": false,
406
427
  "type": "GeneralIconProps"
407
428
  },
408
429
  {
409
430
  "name": "expandTrigger",
410
- "type": "AntdCascaderProps[\"expandTrigger\"]",
411
- "default": "\"click\""
431
+ "description": "次级菜单的展开方式,可选 click 或 hover",
432
+ "default": "\"click\"",
433
+ "type": "AntdCascaderProps[\"expandTrigger\"]"
412
434
  },
413
435
  {
414
436
  "name": "popupPlacement",
415
- "type": "AntdCascaderProps[\"placement\"]",
416
- "default": "\"bottomLeft\""
437
+ "description": "浮层预设位置,可选 bottomLeft、bottomRight、topLeft、topRight",
438
+ "default": "\"bottomLeft\"",
439
+ "type": "AntdCascaderProps[\"placement\"]"
417
440
  },
418
441
  {
419
442
  "name": "size",
443
+ "description": "输入框大小,可选 large、middle、small",
420
444
  "type": "AntdCascaderProps[\"size\"]"
421
445
  },
422
446
  {
423
447
  "name": "limit",
424
- "type": "number",
425
- "default": "50"
448
+ "description": "搜索结果的最大条数,0 表示不限制",
449
+ "default": "50",
450
+ "type": "number"
426
451
  },
427
452
  {
428
453
  "name": "maxTagCount",
454
+ "description": "多选模式下最多显示的 tag 数量,设为 responsive 时会自适应宽度",
429
455
  "attribute": false,
430
456
  "type": "number | \"responsive\""
431
457
  },
432
458
  {
433
459
  "name": "cascaderStyle",
460
+ "description": "级联选择器的内联样式",
434
461
  "attribute": false,
435
462
  "type": "CSSProperties"
436
463
  }
@@ -440,8 +467,8 @@
440
467
  "name": "cascader.change",
441
468
  "description": "",
442
469
  "detail": {
443
- "description": "{ value: AntdCascaderProps[\"value\"], selectedOptions: DefaultOptionType[] | DefaultOptionType[][] }",
444
- "type": "{\n value: AntdCascaderProps[\"value\"];\n selectedOptions: DefaultOptionType[] | DefaultOptionType[][];\n }"
470
+ "description": "{ value: 选择的值, selectedOptions: 选择的值所对应的 options }",
471
+ "type": "CascaderChangeEventDetail"
445
472
  }
446
473
  }
447
474
  ],
@@ -468,7 +495,7 @@
468
495
  },
469
496
  {
470
497
  "name": "cell",
471
- "description": "单元格",
498
+ "description": "单元格统一配置,可配置 useBrick 自定义渲染所有单元格及表头",
472
499
  "attribute": false,
473
500
  "type": "CellConfig"
474
501
  },
@@ -599,7 +626,7 @@
599
626
  "description": "page 或 pageSize 改变的回调",
600
627
  "detail": {
601
628
  "description": "改变后的页码及每页条数",
602
- "type": "{ page: number; pageSize: number }"
629
+ "type": "PageOrPageSizeChangeEventDetail"
603
630
  }
604
631
  },
605
632
  {
@@ -608,7 +635,7 @@
608
635
  "deprecated": "统一用 `page.change` 事件",
609
636
  "detail": {
610
637
  "description": "改变后的页码及每页条数",
611
- "type": "{\n page: number;\n pageSize: number;\n }"
638
+ "type": "PageOrPageSizeChangeEventDetail"
612
639
  }
613
640
  },
614
641
  {
@@ -632,7 +659,7 @@
632
659
  "description": "行选中项发生变化时的回调",
633
660
  "detail": {
634
661
  "description": "改变后的 rowKey 及行数据",
635
- "type": "{\n keys: (string | number)[];\n rows: RecordType[];\n info: { type: RowSelectMethod };\n }"
662
+ "type": "RowSelectEventDetail"
636
663
  }
637
664
  },
638
665
  {
@@ -648,7 +675,7 @@
648
675
  "description": "点击展开图标时触发",
649
676
  "detail": {
650
677
  "description": "当前行的展开情况及数据",
651
- "type": "{\n expanded: boolean;\n record: RecordType;\n }"
678
+ "type": "RowExpandEventDetail"
652
679
  }
653
680
  },
654
681
  {
@@ -664,7 +691,7 @@
664
691
  "description": "表格行拖拽结束发生的事件",
665
692
  "detail": {
666
693
  "description": "重新排序的行数据、拖拽的行数据、放下位置的行数据",
667
- "type": "{\n list: RecordType[];\n active: RecordType;\n over: RecordType;\n }"
694
+ "type": "RowDragEventDetail"
668
695
  }
669
696
  }
670
697
  ],
@@ -675,6 +702,7 @@
675
702
  "params": [
676
703
  {
677
704
  "name": "params",
705
+ "description": "搜索参数,q 为搜索关键词",
678
706
  "type": "{ q: string }"
679
707
  }
680
708
  ],
@@ -691,19 +719,23 @@
691
719
  "properties": [
692
720
  {
693
721
  "name": "cardTitle",
722
+ "description": "编辑模式下左侧卡片列表面板的标题",
694
723
  "type": "string"
695
724
  },
696
725
  {
697
726
  "name": "isEdit",
727
+ "description": "是否进入编辑模式,编辑模式下可拖拽调整布局并显示卡片选择面板",
698
728
  "type": "boolean"
699
729
  },
700
730
  {
701
731
  "name": "layouts",
732
+ "description": "当前布局配置,每项对应一个卡片的位置与大小",
702
733
  "attribute": false,
703
734
  "type": "Layout[]"
704
735
  },
705
736
  {
706
737
  "name": "componentList",
738
+ "description": "组件列表,每项包含 key、title、useBrick 和 position 信息",
707
739
  "attribute": false,
708
740
  "type": "Item[]"
709
741
  }
@@ -711,19 +743,25 @@
711
743
  "events": [
712
744
  {
713
745
  "name": "change",
746
+ "description": "",
714
747
  "detail": {
748
+ "description": "当前布局配置数组",
715
749
  "type": "Layout[]"
716
750
  }
717
751
  },
718
752
  {
719
753
  "name": "save",
754
+ "description": "",
720
755
  "detail": {
756
+ "description": "保存时的布局配置数组",
721
757
  "type": "Layout[]"
722
758
  }
723
759
  },
724
760
  {
725
761
  "name": "cancel",
762
+ "description": "",
726
763
  "detail": {
764
+ "description": "-",
727
765
  "type": "void"
728
766
  }
729
767
  },
@@ -731,7 +769,7 @@
731
769
  "name": "action.click",
732
770
  "description": "操作点击事件",
733
771
  "detail": {
734
- "description": "{\naction: SimpleAction;\nlayouts: Layout[];\n}",
772
+ "description": "{ action: 点击的操作项, layouts: 当前布局配置数组 }",
735
773
  "type": "{\n action: SimpleAction;\n layouts: Layout[];\n }"
736
774
  }
737
775
  }
@@ -743,88 +781,105 @@
743
781
  "params": [
744
782
  {
745
783
  "name": "layouts",
784
+ "description": "新的布局配置数组",
746
785
  "type": "Layout[]"
747
786
  }
748
- ]
787
+ ],
788
+ "description": "设置布局配置",
789
+ "returns": {}
749
790
  }
750
791
  ],
751
792
  "parts": [],
752
- "description": "工作台布局",
753
- "deprecated": "Please use eo-workbench-layout-v2 which support global styles instead"
793
+ "description": "工作台布局(拖拽式卡片布局,支持编辑模式)",
794
+ "deprecated": "Please use eo-workbench-layout-v2 which support global styles instead",
795
+ "category": "layout"
754
796
  },
755
797
  {
756
798
  "name": "eo-workbench-layout-v2",
757
799
  "properties": [
758
800
  {
759
801
  "name": "cardTitle",
802
+ "description": "编辑模式下左侧卡片列表面板的标题",
760
803
  "type": "string"
761
804
  },
762
805
  {
763
806
  "name": "isEdit",
807
+ "description": "是否进入编辑模式,编辑模式下可拖拽调整布局并显示卡片选择面板",
764
808
  "type": "boolean"
765
809
  },
766
810
  {
767
811
  "name": "layouts",
812
+ "description": "当前布局配置,每项对应一个卡片的位置与大小及样式信息",
768
813
  "attribute": false,
769
814
  "type": "ExtraLayout[]"
770
815
  },
771
816
  {
772
817
  "name": "toolbarBricks",
818
+ "description": "编辑模式下工具栏区域的自定义构件",
773
819
  "attribute": false,
774
820
  "type": "{ useBrick: UseSingleBrickConf[] }"
775
821
  },
776
822
  {
777
823
  "name": "componentList",
824
+ "description": "组件列表,每项包含 key、title、useBrick 和 position 信息",
778
825
  "attribute": false,
779
826
  "type": "WorkbenchComponent[]"
780
827
  },
781
828
  {
782
829
  "name": "customDefaultCardConfigMap",
783
- "description": "自定义卡片默认配置, 用于覆盖默认卡片配置",
830
+ "description": "自定义卡片默认配置,用于覆盖默认卡片样式配置",
784
831
  "attribute": false,
785
832
  "type": "Record<string, CardStyleConfig>"
786
833
  },
787
834
  {
788
835
  "name": "showSettingButton",
789
- "description": "description: 用于设置页面样式和布局的按钮",
836
+ "description": "是否显示设置按钮,用于触发页面样式和布局设置",
790
837
  "type": "boolean"
791
838
  },
792
839
  {
793
840
  "name": "gap",
794
- "description": "description: 卡片间隔",
841
+ "description": "卡片之间的间距(px)",
795
842
  "type": "number"
796
843
  }
797
844
  ],
798
845
  "events": [
799
846
  {
800
847
  "name": "change",
848
+ "description": "",
801
849
  "detail": {
850
+ "description": "当前布局配置数组",
802
851
  "type": "ExtraLayout[]"
803
852
  }
804
853
  },
805
854
  {
806
855
  "name": "save",
856
+ "description": "",
807
857
  "detail": {
858
+ "description": "保存时的布局配置数组",
808
859
  "type": "ExtraLayout[]"
809
860
  }
810
861
  },
811
862
  {
812
863
  "name": "cancel",
864
+ "description": "",
813
865
  "detail": {
866
+ "description": "-",
814
867
  "type": "void"
815
868
  }
816
869
  },
817
870
  {
818
871
  "name": "setting",
872
+ "description": "",
819
873
  "detail": {
874
+ "description": "-",
820
875
  "type": "void"
821
876
  }
822
877
  },
823
878
  {
824
879
  "name": "action.click",
825
- "description": "操作点击事件",
880
+ "description": "",
826
881
  "detail": {
827
- "description": "{\naction: SimpleAction;\nlayouts: Layout[];\n}",
882
+ "description": "{ action: 点击的操作项, layouts: 当前布局配置数组 }",
828
883
  "type": "{\n action: SimpleAction;\n layouts: Layout[];\n }"
829
884
  }
830
885
  }
@@ -836,13 +891,17 @@
836
891
  "params": [
837
892
  {
838
893
  "name": "layouts",
894
+ "description": "新的布局配置数组",
839
895
  "type": "Layout[]"
840
896
  }
841
- ]
897
+ ],
898
+ "description": "设置布局配置",
899
+ "returns": {}
842
900
  }
843
901
  ],
844
902
  "parts": [],
845
- "description": "工作台布局V2, 未使用shadow dom"
903
+ "description": "工作台布局 V2,支持拖拽式卡片布局与全局样式(不使用 shadow DOM)",
904
+ "category": "layout"
846
905
  },
847
906
  {
848
907
  "name": "eo-tree",
@@ -937,104 +996,126 @@
937
996
  "properties": [
938
997
  {
939
998
  "name": "name",
999
+ "description": "表单字段名",
940
1000
  "type": "string"
941
1001
  },
942
1002
  {
943
1003
  "name": "label",
1004
+ "description": "表单字段标签",
944
1005
  "type": "string"
945
1006
  },
946
1007
  {
947
1008
  "name": "required",
1009
+ "description": "是否为必填项",
948
1010
  "type": "boolean"
949
1011
  },
950
1012
  {
951
1013
  "name": "treeData",
1014
+ "description": "树形数据源",
952
1015
  "attribute": false,
953
1016
  "type": "AntdTreeSelectProps[\"treeData\"]"
954
1017
  },
955
1018
  {
956
1019
  "name": "treeDefaultExpandAll",
1020
+ "description": "是否默认展开所有树节点",
957
1021
  "type": "boolean"
958
1022
  },
959
1023
  {
960
1024
  "name": "treeExpandedKeys",
1025
+ "description": "受控展开的树节点 key 集合",
961
1026
  "attribute": false,
962
1027
  "type": "string[]"
963
1028
  },
964
1029
  {
965
1030
  "name": "fieldNames",
1031
+ "description": "自定义字段名,指定 label、value、children 对应的字段",
966
1032
  "attribute": false,
967
1033
  "type": "AntdTreeSelectProps[\"fieldNames\"]"
968
1034
  },
969
1035
  {
970
1036
  "name": "value",
1037
+ "description": "当前选中的值",
971
1038
  "attribute": false,
972
1039
  "type": "AntdTreeSelectProps[\"value\"]"
973
1040
  },
974
1041
  {
975
1042
  "name": "placeholder",
1043
+ "description": "输入框占位文本",
976
1044
  "type": "string"
977
1045
  },
978
1046
  {
979
1047
  "name": "multiple",
1048
+ "description": "是否支持多选",
980
1049
  "type": "boolean"
981
1050
  },
982
1051
  {
983
1052
  "name": "disabled",
1053
+ "description": "是否禁用",
984
1054
  "type": "boolean"
985
1055
  },
986
1056
  {
987
1057
  "name": "checkable",
1058
+ "description": "是否支持勾选树节点(开启后自动开启 multiple 模式)",
988
1059
  "type": "boolean"
989
1060
  },
990
1061
  {
991
1062
  "name": "allowClear",
992
- "type": "boolean",
993
- "default": "true"
1063
+ "description": "是否支持清除",
1064
+ "default": "true",
1065
+ "type": "boolean"
994
1066
  },
995
1067
  {
996
1068
  "name": "loading",
997
- "type": "boolean",
998
- "default": "false"
1069
+ "description": "是否显示加载中状态",
1070
+ "default": "false",
1071
+ "type": "boolean"
999
1072
  },
1000
1073
  {
1001
1074
  "name": "filterTreeNode",
1075
+ "description": "自定义树节点过滤函数",
1002
1076
  "attribute": false,
1003
1077
  "type": "AntdTreeSelectProps[\"filterTreeNode\"]"
1004
1078
  },
1005
1079
  {
1006
1080
  "name": "showSearch",
1007
- "type": "boolean",
1008
- "default": "true"
1081
+ "description": "是否支持搜索,开启后可通过输入关键字过滤树节点",
1082
+ "default": "true",
1083
+ "type": "boolean"
1009
1084
  },
1010
1085
  {
1011
1086
  "name": "suffixIcon",
1087
+ "description": "自定义下拉箭头图标",
1012
1088
  "attribute": false,
1013
1089
  "type": "GeneralIconProps"
1014
1090
  },
1015
1091
  {
1016
1092
  "name": "popupPlacement",
1017
- "type": "AntdTreeSelectProps[\"placement\"]",
1018
- "default": "\"bottomLeft\""
1093
+ "description": "浮层预设位置,可选 bottomLeft、bottomRight、topLeft、topRight",
1094
+ "default": "\"bottomLeft\"",
1095
+ "type": "AntdTreeSelectProps[\"placement\"]"
1019
1096
  },
1020
1097
  {
1021
1098
  "name": "size",
1099
+ "description": "输入框大小,可选 large、middle、small",
1022
1100
  "type": "AntdTreeSelectProps[\"size\"]"
1023
1101
  },
1024
1102
  {
1025
1103
  "name": "maxTagCount",
1104
+ "description": "多选模式下最多显示的 tag 数量,设为 responsive 时会自适应宽度",
1026
1105
  "attribute": false,
1027
1106
  "type": "number | \"responsive\""
1028
1107
  },
1029
1108
  {
1030
1109
  "name": "dropdownStyle",
1110
+ "description": "下拉框的样式",
1031
1111
  "attribute": false,
1032
1112
  "type": "CSSProperties"
1033
1113
  },
1034
1114
  {
1035
1115
  "name": "popupMatchSelectWidth",
1036
- "type": "boolean",
1037
- "default": "true"
1116
+ "description": "下拉菜单的宽度是否与选择框相同",
1117
+ "default": "true",
1118
+ "type": "boolean"
1038
1119
  }
1039
1120
  ],
1040
1121
  "events": [
@@ -1042,25 +1123,31 @@
1042
1123
  "name": "change",
1043
1124
  "description": "",
1044
1125
  "detail": {
1045
- "description": "{ value: AntdTreeSelectProps[\"value\"], selectedOptions: DefaultOptionType[] | DefaultOptionType[][] }",
1126
+ "description": "{ value: 选择的值 }",
1046
1127
  "type": "{\n value: AntdTreeSelectProps[\"value\"];\n }"
1047
1128
  }
1048
1129
  },
1049
1130
  {
1050
1131
  "name": "search",
1132
+ "description": "",
1051
1133
  "detail": {
1134
+ "description": "搜索关键词",
1052
1135
  "type": "string"
1053
1136
  }
1054
1137
  },
1055
1138
  {
1056
1139
  "name": "select",
1140
+ "description": "",
1057
1141
  "detail": {
1142
+ "description": "{ value: 选中的节点值 }",
1058
1143
  "type": "{ value: AntdTreeSelectProps[\"value\"] }"
1059
1144
  }
1060
1145
  },
1061
1146
  {
1062
1147
  "name": "expand",
1148
+ "description": "",
1063
1149
  "detail": {
1150
+ "description": "{ keys: 展开的节点 key 数组 }",
1064
1151
  "type": "{ keys: React.Key[] }"
1065
1152
  }
1066
1153
  }
@@ -1068,7 +1155,7 @@
1068
1155
  "slots": [],
1069
1156
  "methods": [],
1070
1157
  "parts": [],
1071
- "description": "树选择器",
1158
+ "description": "树选择器,支持从树形数据中单选或多选节点",
1072
1159
  "category": "form-input-basic"
1073
1160
  },
1074
1161
  {
@@ -1076,13 +1163,13 @@
1076
1163
  "properties": [
1077
1164
  {
1078
1165
  "name": "label",
1079
- "description": "文案",
1166
+ "description": "显示的文本内容,超出时以省略号截断",
1080
1167
  "default": null,
1081
1168
  "type": "string"
1082
1169
  },
1083
1170
  {
1084
1171
  "name": "lineClamp",
1085
- "description": "省略行数",
1172
+ "description": "省略的行数,超过该行数后显示省略号,设为 0 表示不省略",
1086
1173
  "default": "1",
1087
1174
  "type": "number"
1088
1175
  }
@@ -1091,25 +1178,30 @@
1091
1178
  "slots": [],
1092
1179
  "methods": [],
1093
1180
  "parts": [],
1094
- "description": "超出宽度鼠标悬浮显示tooltip\n构件 `eo-text-tooltip`"
1181
+ "description": "文本超出显示区域时,鼠标悬浮显示完整内容的 Tooltip",
1182
+ "category": "display"
1095
1183
  },
1096
1184
  {
1097
1185
  "name": "advanced.pdf-viewer",
1098
1186
  "properties": [
1099
1187
  {
1100
1188
  "name": "url",
1189
+ "description": "PDF 文件的访问地址",
1101
1190
  "type": "string"
1102
1191
  },
1103
1192
  {
1104
1193
  "name": "page",
1194
+ "description": "初始显示的页码(从 1 开始),内部会自动转换为从 0 开始的索引",
1105
1195
  "type": "number"
1106
1196
  },
1107
1197
  {
1108
1198
  "name": "search",
1199
+ "description": "文档加载后自动高亮的搜索关键字",
1109
1200
  "type": "string"
1110
1201
  },
1111
1202
  {
1112
1203
  "name": "viewerStyle",
1204
+ "description": "查看器容器的内联样式,常用于设置高度(如 { height: \"500px\" })",
1113
1205
  "attribute": false,
1114
1206
  "type": "React.CSSProperties"
1115
1207
  }
@@ -1118,7 +1210,8 @@
1118
1210
  "slots": [],
1119
1211
  "methods": [],
1120
1212
  "parts": [],
1121
- "description": "构件 `advanced.pdf-viewer`"
1213
+ "description": "PDF 文件预览器,支持分页跳转和关键字高亮搜索",
1214
+ "category": "display"
1122
1215
  }
1123
1216
  ],
1124
1217
  "providers": [