@next-bricks/advanced 0.51.6 → 0.51.7

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.
@@ -3,6 +3,131 @@
3
3
  "package": "@next-bricks/advanced",
4
4
  "name": "advanced",
5
5
  "bricks": [
6
+ {
7
+ "name": "eo-cascader",
8
+ "alias": [
9
+ "advanced.general-cascader"
10
+ ],
11
+ "properties": [
12
+ {
13
+ "name": "name",
14
+ "description": "表单字段名",
15
+ "type": "string"
16
+ },
17
+ {
18
+ "name": "label",
19
+ "description": "表单字段标签",
20
+ "type": "string"
21
+ },
22
+ {
23
+ "name": "required",
24
+ "description": "是否为必填项",
25
+ "type": "boolean"
26
+ },
27
+ {
28
+ "name": "options",
29
+ "description": "可选项数据源",
30
+ "attribute": false,
31
+ "type": "AntdCascaderProps[\"options\"]"
32
+ },
33
+ {
34
+ "name": "fieldNames",
35
+ "description": "自定义字段名,指定 label、value、children 对应的字段",
36
+ "default": "{\n label: \"label\",\n value: \"value\",\n children: \"children\",\n }",
37
+ "attribute": false,
38
+ "type": "AntdCascaderProps[\"fieldNames\"]"
39
+ },
40
+ {
41
+ "name": "value",
42
+ "description": "当前选中的值",
43
+ "attribute": false,
44
+ "type": "AntdCascaderProps[\"value\"]"
45
+ },
46
+ {
47
+ "name": "placeholder",
48
+ "description": "输入框占位文本",
49
+ "type": "string"
50
+ },
51
+ {
52
+ "name": "multiple",
53
+ "description": "是否支持多选",
54
+ "type": "boolean"
55
+ },
56
+ {
57
+ "name": "disabled",
58
+ "description": "是否禁用",
59
+ "type": "boolean"
60
+ },
61
+ {
62
+ "name": "allowClear",
63
+ "description": "是否支持清除",
64
+ "default": "true",
65
+ "type": "boolean"
66
+ },
67
+ {
68
+ "name": "showSearch",
69
+ "description": "是否支持搜索,开启后可通过输入关键字过滤选项",
70
+ "default": "true",
71
+ "type": "boolean"
72
+ },
73
+ {
74
+ "name": "suffixIcon",
75
+ "description": "自定义下拉箭头图标",
76
+ "attribute": false,
77
+ "type": "GeneralIconProps"
78
+ },
79
+ {
80
+ "name": "expandTrigger",
81
+ "description": "次级菜单的展开方式,可选 click 或 hover",
82
+ "default": "\"click\"",
83
+ "type": "AntdCascaderProps[\"expandTrigger\"]"
84
+ },
85
+ {
86
+ "name": "popupPlacement",
87
+ "description": "浮层预设位置,可选 bottomLeft、bottomRight、topLeft、topRight",
88
+ "default": "\"bottomLeft\"",
89
+ "type": "AntdCascaderProps[\"placement\"]"
90
+ },
91
+ {
92
+ "name": "size",
93
+ "description": "输入框大小,可选 large、middle、small",
94
+ "type": "AntdCascaderProps[\"size\"]"
95
+ },
96
+ {
97
+ "name": "limit",
98
+ "description": "搜索结果的最大条数,0 表示不限制",
99
+ "default": "50",
100
+ "type": "number"
101
+ },
102
+ {
103
+ "name": "maxTagCount",
104
+ "description": "多选模式下最多显示的 tag 数量,设为 responsive 时会自适应宽度",
105
+ "attribute": false,
106
+ "type": "number | \"responsive\""
107
+ },
108
+ {
109
+ "name": "cascaderStyle",
110
+ "description": "级联选择器的内联样式",
111
+ "attribute": false,
112
+ "type": "CSSProperties"
113
+ }
114
+ ],
115
+ "events": [
116
+ {
117
+ "name": "cascader.change",
118
+ "description": "",
119
+ "detail": {
120
+ "description": "{ value: 选择的值, selectedOptions: 选择的值所对应的 options }",
121
+ "type": "CascaderChangeEventDetail"
122
+ }
123
+ }
124
+ ],
125
+ "slots": [],
126
+ "methods": [],
127
+ "parts": [],
128
+ "description": "级联选择器",
129
+ "category": "form-input-basic"
130
+ },
6
131
  {
7
132
  "name": "eo-table",
8
133
  "alias": [
@@ -589,131 +714,6 @@
589
714
  "description": "大型表格",
590
715
  "category": "table"
591
716
  },
592
- {
593
- "name": "eo-cascader",
594
- "alias": [
595
- "advanced.general-cascader"
596
- ],
597
- "properties": [
598
- {
599
- "name": "name",
600
- "description": "表单字段名",
601
- "type": "string"
602
- },
603
- {
604
- "name": "label",
605
- "description": "表单字段标签",
606
- "type": "string"
607
- },
608
- {
609
- "name": "required",
610
- "description": "是否为必填项",
611
- "type": "boolean"
612
- },
613
- {
614
- "name": "options",
615
- "description": "可选项数据源",
616
- "attribute": false,
617
- "type": "AntdCascaderProps[\"options\"]"
618
- },
619
- {
620
- "name": "fieldNames",
621
- "description": "自定义字段名,指定 label、value、children 对应的字段",
622
- "default": "{\n label: \"label\",\n value: \"value\",\n children: \"children\",\n }",
623
- "attribute": false,
624
- "type": "AntdCascaderProps[\"fieldNames\"]"
625
- },
626
- {
627
- "name": "value",
628
- "description": "当前选中的值",
629
- "attribute": false,
630
- "type": "AntdCascaderProps[\"value\"]"
631
- },
632
- {
633
- "name": "placeholder",
634
- "description": "输入框占位文本",
635
- "type": "string"
636
- },
637
- {
638
- "name": "multiple",
639
- "description": "是否支持多选",
640
- "type": "boolean"
641
- },
642
- {
643
- "name": "disabled",
644
- "description": "是否禁用",
645
- "type": "boolean"
646
- },
647
- {
648
- "name": "allowClear",
649
- "description": "是否支持清除",
650
- "default": "true",
651
- "type": "boolean"
652
- },
653
- {
654
- "name": "showSearch",
655
- "description": "是否支持搜索,开启后可通过输入关键字过滤选项",
656
- "default": "true",
657
- "type": "boolean"
658
- },
659
- {
660
- "name": "suffixIcon",
661
- "description": "自定义下拉箭头图标",
662
- "attribute": false,
663
- "type": "GeneralIconProps"
664
- },
665
- {
666
- "name": "expandTrigger",
667
- "description": "次级菜单的展开方式,可选 click 或 hover",
668
- "default": "\"click\"",
669
- "type": "AntdCascaderProps[\"expandTrigger\"]"
670
- },
671
- {
672
- "name": "popupPlacement",
673
- "description": "浮层预设位置,可选 bottomLeft、bottomRight、topLeft、topRight",
674
- "default": "\"bottomLeft\"",
675
- "type": "AntdCascaderProps[\"placement\"]"
676
- },
677
- {
678
- "name": "size",
679
- "description": "输入框大小,可选 large、middle、small",
680
- "type": "AntdCascaderProps[\"size\"]"
681
- },
682
- {
683
- "name": "limit",
684
- "description": "搜索结果的最大条数,0 表示不限制",
685
- "default": "50",
686
- "type": "number"
687
- },
688
- {
689
- "name": "maxTagCount",
690
- "description": "多选模式下最多显示的 tag 数量,设为 responsive 时会自适应宽度",
691
- "attribute": false,
692
- "type": "number | \"responsive\""
693
- },
694
- {
695
- "name": "cascaderStyle",
696
- "description": "级联选择器的内联样式",
697
- "attribute": false,
698
- "type": "CSSProperties"
699
- }
700
- ],
701
- "events": [
702
- {
703
- "name": "cascader.change",
704
- "description": "",
705
- "detail": {
706
- "description": "{ value: 选择的值, selectedOptions: 选择的值所对应的 options }",
707
- "type": "CascaderChangeEventDetail"
708
- }
709
- }
710
- ],
711
- "slots": [],
712
- "methods": [],
713
- "parts": [],
714
- "description": "级联选择器",
715
- "category": "form-input-basic"
716
- },
717
717
  {
718
718
  "name": "eo-workbench-layout",
719
719
  "properties": [
@@ -903,94 +903,6 @@
903
903
  "description": "工作台布局 V2,支持拖拽式卡片布局与全局样式(不使用 shadow DOM)",
904
904
  "category": "layout"
905
905
  },
906
- {
907
- "name": "eo-tree",
908
- "properties": [
909
- {
910
- "name": "dataSource",
911
- "attribute": false,
912
- "type": "TreeNode[]"
913
- },
914
- {
915
- "name": "checkable",
916
- "type": "boolean"
917
- },
918
- {
919
- "name": "selectable",
920
- "description": "",
921
- "default": "true",
922
- "type": "boolean"
923
- },
924
- {
925
- "name": "defaultExpandAll",
926
- "type": "boolean"
927
- },
928
- {
929
- "name": "showLine",
930
- "type": "boolean"
931
- },
932
- {
933
- "name": "expandedKeys",
934
- "attribute": false,
935
- "type": "TreeNodeKey[]"
936
- },
937
- {
938
- "name": "checkedKeys",
939
- "attribute": false,
940
- "type": "TreeNodeKey[]"
941
- },
942
- {
943
- "name": "nodeDraggable",
944
- "attribute": false,
945
- "type": "boolean | { icon?: false }"
946
- },
947
- {
948
- "name": "switcherIcon",
949
- "attribute": false,
950
- "type": "\"auto\" | \"chevron\" | false"
951
- },
952
- {
953
- "name": "allowDrop",
954
- "attribute": false,
955
- "type": "((info: AllowDropInfo) => boolean)"
956
- },
957
- {
958
- "name": "titleSuffixBrick",
959
- "attribute": false,
960
- "type": "{ useBrick: UseBrickConfOrRenderFunction }"
961
- }
962
- ],
963
- "events": [
964
- {
965
- "name": "check",
966
- "detail": {
967
- "type": "TreeNodeKey[]"
968
- }
969
- },
970
- {
971
- "name": "check.detail",
972
- "detail": {
973
- "type": "CheckDetail"
974
- }
975
- },
976
- {
977
- "name": "expand",
978
- "detail": {
979
- "type": "TreeNodeKey[]"
980
- }
981
- },
982
- {
983
- "name": "node.drop",
984
- "detail": {
985
- "type": "DropDetail"
986
- }
987
- }
988
- ],
989
- "slots": [],
990
- "methods": [],
991
- "parts": [],
992
- "description": "树形构件"
993
- },
994
906
  {
995
907
  "name": "eo-tree-select",
996
908
  "properties": [
@@ -1159,58 +1071,146 @@
1159
1071
  "category": "form-input-basic"
1160
1072
  },
1161
1073
  {
1162
- "name": "advanced.pdf-viewer",
1074
+ "name": "eo-text-tooltip",
1163
1075
  "properties": [
1164
1076
  {
1165
- "name": "url",
1166
- "description": "PDF 文件的访问地址",
1077
+ "name": "label",
1078
+ "description": "显示的文本内容,超出时以省略号截断",
1079
+ "default": null,
1167
1080
  "type": "string"
1168
1081
  },
1169
1082
  {
1170
- "name": "page",
1171
- "description": "初始显示的页码(从 1 开始),内部会自动转换为从 0 开始的索引",
1083
+ "name": "lineClamp",
1084
+ "description": "省略的行数,超过该行数后显示省略号,设为 0 表示不省略",
1085
+ "default": "1",
1172
1086
  "type": "number"
1087
+ }
1088
+ ],
1089
+ "events": [],
1090
+ "slots": [],
1091
+ "methods": [],
1092
+ "parts": [],
1093
+ "description": "文本超出显示区域时,鼠标悬浮显示完整内容的 Tooltip",
1094
+ "category": "display"
1095
+ },
1096
+ {
1097
+ "name": "eo-tree",
1098
+ "properties": [
1099
+ {
1100
+ "name": "dataSource",
1101
+ "attribute": false,
1102
+ "type": "TreeNode[]"
1173
1103
  },
1174
1104
  {
1175
- "name": "search",
1176
- "description": "文档加载后自动高亮的搜索关键字",
1177
- "type": "string"
1105
+ "name": "checkable",
1106
+ "type": "boolean"
1178
1107
  },
1179
1108
  {
1180
- "name": "viewerStyle",
1181
- "description": "查看器容器的内联样式,常用于设置高度(如 { height: \"500px\" })",
1109
+ "name": "selectable",
1110
+ "description": "",
1111
+ "default": "true",
1112
+ "type": "boolean"
1113
+ },
1114
+ {
1115
+ "name": "defaultExpandAll",
1116
+ "type": "boolean"
1117
+ },
1118
+ {
1119
+ "name": "showLine",
1120
+ "type": "boolean"
1121
+ },
1122
+ {
1123
+ "name": "expandedKeys",
1182
1124
  "attribute": false,
1183
- "type": "React.CSSProperties"
1125
+ "type": "TreeNodeKey[]"
1126
+ },
1127
+ {
1128
+ "name": "checkedKeys",
1129
+ "attribute": false,
1130
+ "type": "TreeNodeKey[]"
1131
+ },
1132
+ {
1133
+ "name": "nodeDraggable",
1134
+ "attribute": false,
1135
+ "type": "boolean | { icon?: false }"
1136
+ },
1137
+ {
1138
+ "name": "switcherIcon",
1139
+ "attribute": false,
1140
+ "type": "\"auto\" | \"chevron\" | false"
1141
+ },
1142
+ {
1143
+ "name": "allowDrop",
1144
+ "attribute": false,
1145
+ "type": "((info: AllowDropInfo) => boolean)"
1146
+ },
1147
+ {
1148
+ "name": "titleSuffixBrick",
1149
+ "attribute": false,
1150
+ "type": "{ useBrick: UseBrickConfOrRenderFunction }"
1151
+ }
1152
+ ],
1153
+ "events": [
1154
+ {
1155
+ "name": "check",
1156
+ "detail": {
1157
+ "type": "TreeNodeKey[]"
1158
+ }
1159
+ },
1160
+ {
1161
+ "name": "check.detail",
1162
+ "detail": {
1163
+ "type": "CheckDetail"
1164
+ }
1165
+ },
1166
+ {
1167
+ "name": "expand",
1168
+ "detail": {
1169
+ "type": "TreeNodeKey[]"
1170
+ }
1171
+ },
1172
+ {
1173
+ "name": "node.drop",
1174
+ "detail": {
1175
+ "type": "DropDetail"
1176
+ }
1184
1177
  }
1185
1178
  ],
1186
- "events": [],
1187
1179
  "slots": [],
1188
1180
  "methods": [],
1189
1181
  "parts": [],
1190
- "description": "PDF 文件预览器,支持分页跳转和关键字高亮搜索",
1191
- "category": "display"
1182
+ "description": "树形构件"
1192
1183
  },
1193
1184
  {
1194
- "name": "eo-text-tooltip",
1185
+ "name": "advanced.pdf-viewer",
1195
1186
  "properties": [
1196
1187
  {
1197
- "name": "label",
1198
- "description": "显示的文本内容,超出时以省略号截断",
1199
- "default": null,
1188
+ "name": "url",
1189
+ "description": "PDF 文件的访问地址",
1200
1190
  "type": "string"
1201
1191
  },
1202
1192
  {
1203
- "name": "lineClamp",
1204
- "description": "省略的行数,超过该行数后显示省略号,设为 0 表示不省略",
1205
- "default": "1",
1193
+ "name": "page",
1194
+ "description": "初始显示的页码(从 1 开始),内部会自动转换为从 0 开始的索引",
1206
1195
  "type": "number"
1196
+ },
1197
+ {
1198
+ "name": "search",
1199
+ "description": "文档加载后自动高亮的搜索关键字",
1200
+ "type": "string"
1201
+ },
1202
+ {
1203
+ "name": "viewerStyle",
1204
+ "description": "查看器容器的内联样式,常用于设置高度(如 { height: \"500px\" })",
1205
+ "attribute": false,
1206
+ "type": "React.CSSProperties"
1207
1207
  }
1208
1208
  ],
1209
1209
  "events": [],
1210
1210
  "slots": [],
1211
1211
  "methods": [],
1212
1212
  "parts": [],
1213
- "description": "文本超出显示区域时,鼠标悬浮显示完整内容的 Tooltip",
1213
+ "description": "PDF 文件预览器,支持分页跳转和关键字高亮搜索",
1214
1214
  "category": "display"
1215
1215
  }
1216
1216
  ],