amis 1.5.8-beta.2 → 1.6.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.
Files changed (187) hide show
  1. package/lib/components/CalendarMobile.js +5 -5
  2. package/lib/components/CalendarMobile.js.map +2 -2
  3. package/lib/components/Card.d.ts +20 -20
  4. package/lib/components/Cascader.d.ts +123 -0
  5. package/lib/components/Cascader.js +487 -0
  6. package/lib/components/Cascader.js.map +13 -0
  7. package/lib/components/CityArea.d.ts +527 -0
  8. package/lib/components/CityArea.js +177 -0
  9. package/lib/components/CityArea.js.map +13 -0
  10. package/lib/components/ColorPicker.js +4 -3
  11. package/lib/components/ColorPicker.js.map +2 -2
  12. package/lib/components/DatePicker.d.ts +85 -84
  13. package/lib/components/DatePicker.js +7 -6
  14. package/lib/components/DatePicker.js.map +2 -2
  15. package/lib/components/DateRangePicker.js +8 -11
  16. package/lib/components/DateRangePicker.js.map +2 -2
  17. package/lib/components/MonthRangePicker.js +5 -8
  18. package/lib/components/MonthRangePicker.js.map +2 -2
  19. package/lib/components/Picker.d.ts +1 -0
  20. package/lib/components/Picker.js +10 -6
  21. package/lib/components/Picker.js.map +2 -2
  22. package/lib/components/PickerColumn.d.ts +1 -0
  23. package/lib/components/PickerColumn.js +21 -17
  24. package/lib/components/PickerColumn.js.map +2 -2
  25. package/lib/components/PopOverContainer.d.ts +1 -0
  26. package/lib/components/PopOverContainer.js +5 -3
  27. package/lib/components/PopOverContainer.js.map +2 -2
  28. package/lib/components/PopUp.d.ts +1040 -28
  29. package/lib/components/PopUp.js +32 -8
  30. package/lib/components/PopUp.js.map +2 -2
  31. package/lib/components/ResultBox.d.ts +85 -84
  32. package/lib/components/ResultBox.js +7 -3
  33. package/lib/components/ResultBox.js.map +2 -2
  34. package/lib/components/Select.js +9 -6
  35. package/lib/components/Select.js.map +2 -2
  36. package/lib/components/TransferDropDown.d.ts +85 -84
  37. package/lib/components/TransferDropDown.js +9 -6
  38. package/lib/components/TransferDropDown.js.map +2 -2
  39. package/lib/components/calendar/Calendar.d.ts +14 -0
  40. package/lib/components/calendar/Calendar.js +62 -5
  41. package/lib/components/calendar/Calendar.js.map +2 -2
  42. package/lib/components/calendar/DaysView.d.ts +20 -0
  43. package/lib/components/calendar/DaysView.js +51 -4
  44. package/lib/components/calendar/DaysView.js.map +2 -2
  45. package/lib/components/calendar/MonthsView.d.ts +7 -1
  46. package/lib/components/calendar/MonthsView.js +41 -52
  47. package/lib/components/calendar/MonthsView.js.map +2 -2
  48. package/lib/components/calendar/TimeView.d.ts +27 -20
  49. package/lib/components/calendar/TimeView.js +40 -4
  50. package/lib/components/calendar/TimeView.js.map +2 -2
  51. package/lib/components/calendar/YearsView.d.ts +6 -0
  52. package/lib/components/calendar/YearsView.js +15 -6
  53. package/lib/components/calendar/YearsView.js.map +2 -2
  54. package/lib/index.js +1 -1
  55. package/lib/locale/de-DE.js +4 -0
  56. package/lib/locale/de-DE.js.map +2 -2
  57. package/lib/locale/en-US.js +4 -0
  58. package/lib/locale/en-US.js.map +2 -2
  59. package/lib/locale/zh-CN.js +4 -0
  60. package/lib/locale/zh-CN.js.map +2 -2
  61. package/lib/renderers/DropDownButton.d.ts +11 -2
  62. package/lib/renderers/DropDownButton.js +30 -12
  63. package/lib/renderers/DropDownButton.js.map +2 -2
  64. package/lib/renderers/Form/CityDB.js +526 -2
  65. package/lib/renderers/Form/CityDB.js.map +2 -2
  66. package/lib/renderers/Form/InputCity.d.ts +85 -84
  67. package/lib/renderers/Form/InputCity.js +4 -2
  68. package/lib/renderers/Form/InputCity.js.map +2 -2
  69. package/lib/renderers/Form/InputColor.js +6 -2
  70. package/lib/renderers/Form/InputColor.js.map +2 -2
  71. package/lib/renderers/Form/InputDate.js +5 -2
  72. package/lib/renderers/Form/InputDate.js.map +2 -2
  73. package/lib/renderers/Form/InputDateRange.js +6 -2
  74. package/lib/renderers/Form/InputDateRange.js.map +2 -2
  75. package/lib/renderers/Form/Item.d.ts +10 -14
  76. package/lib/renderers/Form/Item.js +7 -5
  77. package/lib/renderers/Form/Item.js.map +2 -2
  78. package/lib/renderers/Form/NestedSelect.d.ts +1 -0
  79. package/lib/renderers/Form/NestedSelect.js +7 -3
  80. package/lib/renderers/Form/NestedSelect.js.map +2 -2
  81. package/lib/renderers/Form/Select.d.ts +2 -0
  82. package/lib/renderers/Form/Select.js +7 -4
  83. package/lib/renderers/Form/Select.js.map +2 -2
  84. package/lib/renderers/Form/TreeSelect.js +4 -4
  85. package/lib/renderers/Form/TreeSelect.js.map +2 -2
  86. package/lib/renderers/Remark.js +2 -1
  87. package/lib/renderers/Remark.js.map +2 -2
  88. package/lib/schemaExtend.js +23 -9
  89. package/lib/schemaExtend.js.map +2 -2
  90. package/lib/themes/ang-ie11.css +312 -29
  91. package/lib/themes/ang.css +312 -29
  92. package/lib/themes/ang.css.map +1 -1
  93. package/lib/themes/antd-ie11.css +312 -29
  94. package/lib/themes/antd.css +312 -29
  95. package/lib/themes/antd.css.map +1 -1
  96. package/lib/themes/cxd-ie11.css +315 -41
  97. package/lib/themes/cxd.css +315 -41
  98. package/lib/themes/cxd.css.map +1 -1
  99. package/lib/themes/dark-ie11.css +312 -29
  100. package/lib/themes/dark.css +312 -29
  101. package/lib/themes/dark.css.map +1 -1
  102. package/lib/themes/default.css +315 -41
  103. package/lib/themes/default.css.map +1 -1
  104. package/lib/utils/helper.d.ts +1 -6
  105. package/lib/utils/helper.js +6 -17
  106. package/lib/utils/helper.js.map +2 -2
  107. package/package.json +1 -2
  108. package/schema.json +2192 -20
  109. package/scss/_properties.scss +10 -6
  110. package/scss/components/_calendar.scss +9 -2
  111. package/scss/components/_cascader.scss +102 -0
  112. package/scss/components/_city-area.scss +27 -0
  113. package/scss/components/_dropdown.scss +39 -9
  114. package/scss/components/_picker-columns.scss +15 -5
  115. package/scss/components/_popup.scss +35 -12
  116. package/scss/components/_result-box.scss +31 -0
  117. package/scss/components/form/_checks.scss +2 -0
  118. package/scss/components/form/_color.scss +2 -2
  119. package/scss/components/form/_date-range.scss +1 -1
  120. package/scss/components/form/_date.scss +46 -1
  121. package/scss/components/form/_nested-select.scss +3 -0
  122. package/scss/components/form/_select.scss +32 -3
  123. package/scss/components/form/_transfer.scss +3 -0
  124. package/scss/components/form/_tree-select.scss +1 -1
  125. package/scss/themes/_common.scss +2 -0
  126. package/scss/themes/_cxd-variables.scss +3 -3
  127. package/scss/themes/cxd.scss +0 -12
  128. package/sdk/ang-ie11.css +368 -29
  129. package/sdk/ang.css +367 -30
  130. package/sdk/antd-ie11.css +368 -29
  131. package/sdk/antd.css +367 -30
  132. package/sdk/charts.js +18 -18
  133. package/sdk/codemirror.js +7 -7
  134. package/sdk/color-picker.js +65 -65
  135. package/sdk/cropperjs.js +3 -3
  136. package/sdk/cxd-ie11.css +370 -42
  137. package/sdk/cxd.css +370 -44
  138. package/sdk/dark-ie11.css +368 -29
  139. package/sdk/dark.css +367 -30
  140. package/sdk/exceljs.js +1 -1
  141. package/sdk/locale/de-DE.js +4 -0
  142. package/sdk/markdown.js +69 -69
  143. package/sdk/papaparse.js +1 -1
  144. package/sdk/renderers/Form/CityDB.js +1 -1
  145. package/sdk/rest.js +18 -18
  146. package/sdk/rich-text.js +62 -62
  147. package/sdk/sdk-ie11.css +370 -42
  148. package/sdk/sdk.css +370 -44
  149. package/sdk/sdk.js +1309 -1227
  150. package/sdk/thirds/hls.js/hls.js +18 -18
  151. package/sdk/thirds/mpegts.js/mpegts.js +2 -2
  152. package/sdk/tinymce.js +57 -57
  153. package/src/components/CalendarMobile.tsx +5 -5
  154. package/src/components/Cascader.tsx +564 -0
  155. package/src/components/CityArea.tsx +315 -0
  156. package/src/components/ColorPicker.tsx +5 -2
  157. package/src/components/DatePicker.tsx +15 -5
  158. package/src/components/DateRangePicker.tsx +52 -43
  159. package/src/components/MonthRangePicker.tsx +44 -38
  160. package/src/components/Picker.tsx +27 -12
  161. package/src/components/PickerColumn.tsx +28 -18
  162. package/src/components/PopOverContainer.tsx +31 -17
  163. package/src/components/PopUp.tsx +55 -13
  164. package/src/components/ResultBox.tsx +10 -1
  165. package/src/components/Select.tsx +20 -23
  166. package/src/components/TransferDropDown.tsx +19 -5
  167. package/src/components/calendar/Calendar.tsx +86 -9
  168. package/src/components/calendar/DaysView.tsx +86 -2
  169. package/src/components/calendar/MonthsView.tsx +56 -63
  170. package/src/components/calendar/TimeView.tsx +82 -29
  171. package/src/components/calendar/YearsView.tsx +25 -6
  172. package/src/locale/de-DE.ts +4 -0
  173. package/src/locale/en-US.ts +4 -0
  174. package/src/locale/zh-CN.ts +4 -0
  175. package/src/renderers/DropDownButton.tsx +69 -35
  176. package/src/renderers/Form/CityDB.ts +526 -2
  177. package/src/renderers/Form/InputCity.tsx +23 -3
  178. package/src/renderers/Form/InputColor.tsx +21 -2
  179. package/src/renderers/Form/InputDate.tsx +10 -1
  180. package/src/renderers/Form/InputDateRange.tsx +9 -1
  181. package/src/renderers/Form/Item.tsx +14 -4
  182. package/src/renderers/Form/NestedSelect.tsx +31 -3
  183. package/src/renderers/Form/Select.tsx +15 -2
  184. package/src/renderers/Form/TreeSelect.tsx +10 -6
  185. package/src/renderers/Remark.tsx +2 -1
  186. package/src/schemaExtend.ts +22 -10
  187. package/src/utils/helper.ts +6 -16
package/schema.json CHANGED
@@ -10839,20 +10839,9 @@
10839
10839
  "buttons": {
10840
10840
  "type": "array",
10841
10841
  "items": {
10842
- "anyOf": [
10843
- {
10844
- "$ref": "#/definitions/ActionSchema"
10845
- },
10846
- {
10847
- "$ref": "#/definitions/DividerSchema"
10848
- },
10849
- {
10850
- "type": "string",
10851
- "const": "divider"
10852
- }
10853
- ]
10842
+ "$ref": "#/definitions/DropdownButton"
10854
10843
  },
10855
- "description": "按钮集合"
10844
+ "description": "按钮集合,支持分组"
10856
10845
  },
10857
10846
  "label": {
10858
10847
  "type": "string",
@@ -10915,6 +10904,10 @@
10915
10904
  "hideCaret": {
10916
10905
  "type": "boolean",
10917
10906
  "description": "是否显示下拉按钮"
10907
+ },
10908
+ "menuClassName": {
10909
+ "type": "string",
10910
+ "description": "菜单 CSS 样式"
10918
10911
  }
10919
10912
  },
10920
10913
  "required": [
@@ -10923,6 +10916,2185 @@
10923
10916
  "additionalProperties": false,
10924
10917
  "description": "下拉按钮渲染器。 文档:https://baidu.gitee.io/amis/docs/components/dropdown-button"
10925
10918
  },
10919
+ "DropdownButton": {
10920
+ "anyOf": [
10921
+ {
10922
+ "type": "object",
10923
+ "additionalProperties": false,
10924
+ "properties": {
10925
+ "children": {
10926
+ "type": "array",
10927
+ "items": {
10928
+ "$ref": "#/definitions/DropdownButton"
10929
+ }
10930
+ },
10931
+ "type": {
10932
+ "type": "string",
10933
+ "enum": [
10934
+ "button",
10935
+ "submit",
10936
+ "reset"
10937
+ ],
10938
+ "description": "指定按钮类型,支持 button、submit或者reset三种类型。"
10939
+ },
10940
+ "className": {
10941
+ "$ref": "#/definitions/SchemaClassName",
10942
+ "description": "容器 css 类名"
10943
+ },
10944
+ "$ref": {
10945
+ "type": "string",
10946
+ "description": "配合 definitions 一起使用,可以实现无限循环的渲染器。"
10947
+ },
10948
+ "disabled": {
10949
+ "type": "boolean",
10950
+ "description": "是否禁用"
10951
+ },
10952
+ "disabledOn": {
10953
+ "$ref": "#/definitions/SchemaExpression",
10954
+ "description": "是否禁用表达式"
10955
+ },
10956
+ "hidden": {
10957
+ "type": "boolean",
10958
+ "description": "是否隐藏"
10959
+ },
10960
+ "hiddenOn": {
10961
+ "$ref": "#/definitions/SchemaExpression",
10962
+ "description": "是否隐藏表达式"
10963
+ },
10964
+ "visible": {
10965
+ "type": "boolean",
10966
+ "description": "是否显示"
10967
+ },
10968
+ "visibleOn": {
10969
+ "$ref": "#/definitions/SchemaExpression",
10970
+ "description": "是否显示表达式"
10971
+ },
10972
+ "id": {
10973
+ "type": "string",
10974
+ "description": "主要用于用户行为跟踪里区分是哪个按钮"
10975
+ },
10976
+ "block": {
10977
+ "type": "boolean",
10978
+ "description": "是否为块状展示,默认为内联。"
10979
+ },
10980
+ "disabledTip": {
10981
+ "type": "string",
10982
+ "description": "禁用时的文案提示。"
10983
+ },
10984
+ "icon": {
10985
+ "$ref": "#/definitions/SchemaIcon",
10986
+ "description": "按钮图标, iconfont 的类名"
10987
+ },
10988
+ "iconClassName": {
10989
+ "$ref": "#/definitions/SchemaClassName",
10990
+ "description": "icon 上的css 类名"
10991
+ },
10992
+ "rightIcon": {
10993
+ "$ref": "#/definitions/SchemaIcon",
10994
+ "description": "右侧按钮图标, iconfont 的类名"
10995
+ },
10996
+ "rightIconClassName": {
10997
+ "$ref": "#/definitions/SchemaClassName",
10998
+ "description": "右侧 icon 上的 css 类名"
10999
+ },
11000
+ "loadingClassName": {
11001
+ "$ref": "#/definitions/SchemaClassName",
11002
+ "description": "loading 上的css 类名"
11003
+ },
11004
+ "label": {
11005
+ "type": "string",
11006
+ "description": "按钮文字"
11007
+ },
11008
+ "level": {
11009
+ "type": "string",
11010
+ "enum": [
11011
+ "info",
11012
+ "success",
11013
+ "warning",
11014
+ "danger",
11015
+ "link",
11016
+ "primary",
11017
+ "dark",
11018
+ "light"
11019
+ ],
11020
+ "description": "按钮样式"
11021
+ },
11022
+ "primary": {
11023
+ "type": "boolean"
11024
+ },
11025
+ "size": {
11026
+ "type": "string",
11027
+ "enum": [
11028
+ "xs",
11029
+ "sm",
11030
+ "md",
11031
+ "lg"
11032
+ ],
11033
+ "description": "按钮大小"
11034
+ },
11035
+ "tooltip": {
11036
+ "$ref": "#/definitions/SchemaTooltip"
11037
+ },
11038
+ "tooltipPlacement": {
11039
+ "type": "string",
11040
+ "enum": [
11041
+ "top",
11042
+ "right",
11043
+ "bottom",
11044
+ "left"
11045
+ ]
11046
+ },
11047
+ "confirmText": {
11048
+ "type": "string",
11049
+ "description": "提示文字,配置了操作前会要求用户确认。"
11050
+ },
11051
+ "required": {
11052
+ "type": "array",
11053
+ "items": {
11054
+ "type": "string"
11055
+ },
11056
+ "description": "如果按钮在form中,配置此属性会要求用户把指定的字段通过验证后才会触发行为。"
11057
+ },
11058
+ "activeLevel": {
11059
+ "type": "string",
11060
+ "description": "激活状态时的样式"
11061
+ },
11062
+ "activeClassName": {
11063
+ "type": "string",
11064
+ "description": "激活状态时的类名"
11065
+ },
11066
+ "close": {
11067
+ "type": [
11068
+ "boolean",
11069
+ "string"
11070
+ ],
11071
+ "description": "如果按钮在弹框中,可以配置这个动作完成后是否关闭弹窗,或者指定关闭目标弹框。"
11072
+ },
11073
+ "requireSelected": {
11074
+ "type": "boolean",
11075
+ "description": "当按钮时批量操作按钮时,默认必须有勾选元素才能可点击,如果此属性配置成 false,则没有点选成员也能点击。"
11076
+ },
11077
+ "mergeData": {
11078
+ "type": "boolean",
11079
+ "description": "是否将弹框中数据 merge 到父级作用域。"
11080
+ },
11081
+ "target": {
11082
+ "type": "string",
11083
+ "description": "可以指定让谁来触发这个动作。"
11084
+ },
11085
+ "countDown": {
11086
+ "type": "number",
11087
+ "description": "点击后的禁止倒计时(秒)"
11088
+ },
11089
+ "countDownTpl": {
11090
+ "type": "string",
11091
+ "description": "倒计时文字自定义"
11092
+ },
11093
+ "badge": {
11094
+ "$ref": "#/definitions/BadgeSchema",
11095
+ "description": "角标"
11096
+ },
11097
+ "hotKey": {
11098
+ "type": "string",
11099
+ "description": "键盘快捷键"
11100
+ },
11101
+ "loadingOn": {
11102
+ "type": "string",
11103
+ "description": "是否显示loading效果"
11104
+ },
11105
+ "onClick": {
11106
+ "anyOf": [
11107
+ {
11108
+ "type": "string"
11109
+ },
11110
+ {}
11111
+ ],
11112
+ "description": "自定义事件处理函数"
11113
+ },
11114
+ "body": {
11115
+ "$ref": "#/definitions/SchemaCollection",
11116
+ "description": "子内容"
11117
+ },
11118
+ "actionType": {
11119
+ "type": "string",
11120
+ "const": "ajax",
11121
+ "description": "指定为发送 ajax 的行为。"
11122
+ },
11123
+ "api": {
11124
+ "$ref": "#/definitions/SchemaApi",
11125
+ "description": "配置 ajax 发送地址"
11126
+ },
11127
+ "feedback": {
11128
+ "$ref": "#/definitions/FeedbackDialog"
11129
+ },
11130
+ "reload": {
11131
+ "$ref": "#/definitions/SchemaReload"
11132
+ },
11133
+ "redirect": {
11134
+ "type": "string"
11135
+ },
11136
+ "ignoreConfirm": {
11137
+ "type": "boolean"
11138
+ }
11139
+ },
11140
+ "required": [
11141
+ "actionType",
11142
+ "api",
11143
+ "type"
11144
+ ]
11145
+ },
11146
+ {
11147
+ "type": "object",
11148
+ "additionalProperties": false,
11149
+ "properties": {
11150
+ "children": {
11151
+ "type": "array",
11152
+ "items": {
11153
+ "$ref": "#/definitions/DropdownButton"
11154
+ }
11155
+ },
11156
+ "type": {
11157
+ "type": "string",
11158
+ "enum": [
11159
+ "button",
11160
+ "submit",
11161
+ "reset"
11162
+ ],
11163
+ "description": "指定按钮类型,支持 button、submit或者reset三种类型。"
11164
+ },
11165
+ "className": {
11166
+ "$ref": "#/definitions/SchemaClassName",
11167
+ "description": "容器 css 类名"
11168
+ },
11169
+ "$ref": {
11170
+ "type": "string",
11171
+ "description": "配合 definitions 一起使用,可以实现无限循环的渲染器。"
11172
+ },
11173
+ "disabled": {
11174
+ "type": "boolean",
11175
+ "description": "是否禁用"
11176
+ },
11177
+ "disabledOn": {
11178
+ "$ref": "#/definitions/SchemaExpression",
11179
+ "description": "是否禁用表达式"
11180
+ },
11181
+ "hidden": {
11182
+ "type": "boolean",
11183
+ "description": "是否隐藏"
11184
+ },
11185
+ "hiddenOn": {
11186
+ "$ref": "#/definitions/SchemaExpression",
11187
+ "description": "是否隐藏表达式"
11188
+ },
11189
+ "visible": {
11190
+ "type": "boolean",
11191
+ "description": "是否显示"
11192
+ },
11193
+ "visibleOn": {
11194
+ "$ref": "#/definitions/SchemaExpression",
11195
+ "description": "是否显示表达式"
11196
+ },
11197
+ "id": {
11198
+ "type": "string",
11199
+ "description": "主要用于用户行为跟踪里区分是哪个按钮"
11200
+ },
11201
+ "block": {
11202
+ "type": "boolean",
11203
+ "description": "是否为块状展示,默认为内联。"
11204
+ },
11205
+ "disabledTip": {
11206
+ "type": "string",
11207
+ "description": "禁用时的文案提示。"
11208
+ },
11209
+ "icon": {
11210
+ "$ref": "#/definitions/SchemaIcon",
11211
+ "description": "按钮图标, iconfont 的类名"
11212
+ },
11213
+ "iconClassName": {
11214
+ "$ref": "#/definitions/SchemaClassName",
11215
+ "description": "icon 上的css 类名"
11216
+ },
11217
+ "rightIcon": {
11218
+ "$ref": "#/definitions/SchemaIcon",
11219
+ "description": "右侧按钮图标, iconfont 的类名"
11220
+ },
11221
+ "rightIconClassName": {
11222
+ "$ref": "#/definitions/SchemaClassName",
11223
+ "description": "右侧 icon 上的 css 类名"
11224
+ },
11225
+ "loadingClassName": {
11226
+ "$ref": "#/definitions/SchemaClassName",
11227
+ "description": "loading 上的css 类名"
11228
+ },
11229
+ "label": {
11230
+ "type": "string",
11231
+ "description": "按钮文字"
11232
+ },
11233
+ "level": {
11234
+ "type": "string",
11235
+ "enum": [
11236
+ "info",
11237
+ "success",
11238
+ "warning",
11239
+ "danger",
11240
+ "link",
11241
+ "primary",
11242
+ "dark",
11243
+ "light"
11244
+ ],
11245
+ "description": "按钮样式"
11246
+ },
11247
+ "primary": {
11248
+ "type": "boolean"
11249
+ },
11250
+ "size": {
11251
+ "type": "string",
11252
+ "enum": [
11253
+ "xs",
11254
+ "sm",
11255
+ "md",
11256
+ "lg"
11257
+ ],
11258
+ "description": "按钮大小"
11259
+ },
11260
+ "tooltip": {
11261
+ "$ref": "#/definitions/SchemaTooltip"
11262
+ },
11263
+ "tooltipPlacement": {
11264
+ "type": "string",
11265
+ "enum": [
11266
+ "top",
11267
+ "right",
11268
+ "bottom",
11269
+ "left"
11270
+ ]
11271
+ },
11272
+ "confirmText": {
11273
+ "type": "string",
11274
+ "description": "提示文字,配置了操作前会要求用户确认。"
11275
+ },
11276
+ "required": {
11277
+ "type": "array",
11278
+ "items": {
11279
+ "type": "string"
11280
+ },
11281
+ "description": "如果按钮在form中,配置此属性会要求用户把指定的字段通过验证后才会触发行为。"
11282
+ },
11283
+ "activeLevel": {
11284
+ "type": "string",
11285
+ "description": "激活状态时的样式"
11286
+ },
11287
+ "activeClassName": {
11288
+ "type": "string",
11289
+ "description": "激活状态时的类名"
11290
+ },
11291
+ "close": {
11292
+ "type": [
11293
+ "boolean",
11294
+ "string"
11295
+ ],
11296
+ "description": "如果按钮在弹框中,可以配置这个动作完成后是否关闭弹窗,或者指定关闭目标弹框。"
11297
+ },
11298
+ "requireSelected": {
11299
+ "type": "boolean",
11300
+ "description": "当按钮时批量操作按钮时,默认必须有勾选元素才能可点击,如果此属性配置成 false,则没有点选成员也能点击。"
11301
+ },
11302
+ "mergeData": {
11303
+ "type": "boolean",
11304
+ "description": "是否将弹框中数据 merge 到父级作用域。"
11305
+ },
11306
+ "target": {
11307
+ "type": "string",
11308
+ "description": "可以指定让谁来触发这个动作。"
11309
+ },
11310
+ "countDown": {
11311
+ "type": "number",
11312
+ "description": "点击后的禁止倒计时(秒)"
11313
+ },
11314
+ "countDownTpl": {
11315
+ "type": "string",
11316
+ "description": "倒计时文字自定义"
11317
+ },
11318
+ "badge": {
11319
+ "$ref": "#/definitions/BadgeSchema",
11320
+ "description": "角标"
11321
+ },
11322
+ "hotKey": {
11323
+ "type": "string",
11324
+ "description": "键盘快捷键"
11325
+ },
11326
+ "loadingOn": {
11327
+ "type": "string",
11328
+ "description": "是否显示loading效果"
11329
+ },
11330
+ "onClick": {
11331
+ "anyOf": [
11332
+ {
11333
+ "type": "string"
11334
+ },
11335
+ {}
11336
+ ],
11337
+ "description": "自定义事件处理函数"
11338
+ },
11339
+ "body": {
11340
+ "$ref": "#/definitions/SchemaCollection",
11341
+ "description": "子内容"
11342
+ },
11343
+ "actionType": {
11344
+ "type": "string",
11345
+ "const": "url",
11346
+ "description": "指定为打开链接"
11347
+ },
11348
+ "blank": {
11349
+ "type": "boolean",
11350
+ "description": "是否新窗口打开"
11351
+ },
11352
+ "url": {
11353
+ "type": "string",
11354
+ "description": "打开的目标地址"
11355
+ }
11356
+ },
11357
+ "required": [
11358
+ "actionType",
11359
+ "type",
11360
+ "url"
11361
+ ]
11362
+ },
11363
+ {
11364
+ "type": "object",
11365
+ "additionalProperties": false,
11366
+ "properties": {
11367
+ "children": {
11368
+ "type": "array",
11369
+ "items": {
11370
+ "$ref": "#/definitions/DropdownButton"
11371
+ }
11372
+ },
11373
+ "type": {
11374
+ "type": "string",
11375
+ "enum": [
11376
+ "button",
11377
+ "submit",
11378
+ "reset"
11379
+ ],
11380
+ "description": "指定按钮类型,支持 button、submit或者reset三种类型。"
11381
+ },
11382
+ "className": {
11383
+ "$ref": "#/definitions/SchemaClassName",
11384
+ "description": "容器 css 类名"
11385
+ },
11386
+ "$ref": {
11387
+ "type": "string",
11388
+ "description": "配合 definitions 一起使用,可以实现无限循环的渲染器。"
11389
+ },
11390
+ "disabled": {
11391
+ "type": "boolean",
11392
+ "description": "是否禁用"
11393
+ },
11394
+ "disabledOn": {
11395
+ "$ref": "#/definitions/SchemaExpression",
11396
+ "description": "是否禁用表达式"
11397
+ },
11398
+ "hidden": {
11399
+ "type": "boolean",
11400
+ "description": "是否隐藏"
11401
+ },
11402
+ "hiddenOn": {
11403
+ "$ref": "#/definitions/SchemaExpression",
11404
+ "description": "是否隐藏表达式"
11405
+ },
11406
+ "visible": {
11407
+ "type": "boolean",
11408
+ "description": "是否显示"
11409
+ },
11410
+ "visibleOn": {
11411
+ "$ref": "#/definitions/SchemaExpression",
11412
+ "description": "是否显示表达式"
11413
+ },
11414
+ "id": {
11415
+ "type": "string",
11416
+ "description": "主要用于用户行为跟踪里区分是哪个按钮"
11417
+ },
11418
+ "block": {
11419
+ "type": "boolean",
11420
+ "description": "是否为块状展示,默认为内联。"
11421
+ },
11422
+ "disabledTip": {
11423
+ "type": "string",
11424
+ "description": "禁用时的文案提示。"
11425
+ },
11426
+ "icon": {
11427
+ "$ref": "#/definitions/SchemaIcon",
11428
+ "description": "按钮图标, iconfont 的类名"
11429
+ },
11430
+ "iconClassName": {
11431
+ "$ref": "#/definitions/SchemaClassName",
11432
+ "description": "icon 上的css 类名"
11433
+ },
11434
+ "rightIcon": {
11435
+ "$ref": "#/definitions/SchemaIcon",
11436
+ "description": "右侧按钮图标, iconfont 的类名"
11437
+ },
11438
+ "rightIconClassName": {
11439
+ "$ref": "#/definitions/SchemaClassName",
11440
+ "description": "右侧 icon 上的 css 类名"
11441
+ },
11442
+ "loadingClassName": {
11443
+ "$ref": "#/definitions/SchemaClassName",
11444
+ "description": "loading 上的css 类名"
11445
+ },
11446
+ "label": {
11447
+ "type": "string",
11448
+ "description": "按钮文字"
11449
+ },
11450
+ "level": {
11451
+ "type": "string",
11452
+ "enum": [
11453
+ "info",
11454
+ "success",
11455
+ "warning",
11456
+ "danger",
11457
+ "link",
11458
+ "primary",
11459
+ "dark",
11460
+ "light"
11461
+ ],
11462
+ "description": "按钮样式"
11463
+ },
11464
+ "primary": {
11465
+ "type": "boolean"
11466
+ },
11467
+ "size": {
11468
+ "type": "string",
11469
+ "enum": [
11470
+ "xs",
11471
+ "sm",
11472
+ "md",
11473
+ "lg"
11474
+ ],
11475
+ "description": "按钮大小"
11476
+ },
11477
+ "tooltip": {
11478
+ "$ref": "#/definitions/SchemaTooltip"
11479
+ },
11480
+ "tooltipPlacement": {
11481
+ "type": "string",
11482
+ "enum": [
11483
+ "top",
11484
+ "right",
11485
+ "bottom",
11486
+ "left"
11487
+ ]
11488
+ },
11489
+ "confirmText": {
11490
+ "type": "string",
11491
+ "description": "提示文字,配置了操作前会要求用户确认。"
11492
+ },
11493
+ "required": {
11494
+ "type": "array",
11495
+ "items": {
11496
+ "type": "string"
11497
+ },
11498
+ "description": "如果按钮在form中,配置此属性会要求用户把指定的字段通过验证后才会触发行为。"
11499
+ },
11500
+ "activeLevel": {
11501
+ "type": "string",
11502
+ "description": "激活状态时的样式"
11503
+ },
11504
+ "activeClassName": {
11505
+ "type": "string",
11506
+ "description": "激活状态时的类名"
11507
+ },
11508
+ "close": {
11509
+ "type": [
11510
+ "boolean",
11511
+ "string"
11512
+ ],
11513
+ "description": "如果按钮在弹框中,可以配置这个动作完成后是否关闭弹窗,或者指定关闭目标弹框。"
11514
+ },
11515
+ "requireSelected": {
11516
+ "type": "boolean",
11517
+ "description": "当按钮时批量操作按钮时,默认必须有勾选元素才能可点击,如果此属性配置成 false,则没有点选成员也能点击。"
11518
+ },
11519
+ "mergeData": {
11520
+ "type": "boolean",
11521
+ "description": "是否将弹框中数据 merge 到父级作用域。"
11522
+ },
11523
+ "target": {
11524
+ "type": "string",
11525
+ "description": "可以指定让谁来触发这个动作。"
11526
+ },
11527
+ "countDown": {
11528
+ "type": "number",
11529
+ "description": "点击后的禁止倒计时(秒)"
11530
+ },
11531
+ "countDownTpl": {
11532
+ "type": "string",
11533
+ "description": "倒计时文字自定义"
11534
+ },
11535
+ "badge": {
11536
+ "$ref": "#/definitions/BadgeSchema",
11537
+ "description": "角标"
11538
+ },
11539
+ "hotKey": {
11540
+ "type": "string",
11541
+ "description": "键盘快捷键"
11542
+ },
11543
+ "loadingOn": {
11544
+ "type": "string",
11545
+ "description": "是否显示loading效果"
11546
+ },
11547
+ "onClick": {
11548
+ "anyOf": [
11549
+ {
11550
+ "type": "string"
11551
+ },
11552
+ {}
11553
+ ],
11554
+ "description": "自定义事件处理函数"
11555
+ },
11556
+ "body": {
11557
+ "$ref": "#/definitions/SchemaCollection",
11558
+ "description": "子内容"
11559
+ },
11560
+ "actionType": {
11561
+ "type": "string",
11562
+ "const": "link",
11563
+ "description": "指定为打开链接行为,跟 url 不同的时这个行为为单页模式。"
11564
+ },
11565
+ "link": {
11566
+ "type": "string",
11567
+ "description": "跳转到哪?支持配置相对路径。"
11568
+ }
11569
+ },
11570
+ "required": [
11571
+ "actionType",
11572
+ "link",
11573
+ "type"
11574
+ ]
11575
+ },
11576
+ {
11577
+ "type": "object",
11578
+ "additionalProperties": false,
11579
+ "properties": {
11580
+ "children": {
11581
+ "type": "array",
11582
+ "items": {
11583
+ "$ref": "#/definitions/DropdownButton"
11584
+ }
11585
+ },
11586
+ "type": {
11587
+ "type": "string",
11588
+ "enum": [
11589
+ "button",
11590
+ "submit",
11591
+ "reset"
11592
+ ],
11593
+ "description": "指定按钮类型,支持 button、submit或者reset三种类型。"
11594
+ },
11595
+ "className": {
11596
+ "$ref": "#/definitions/SchemaClassName",
11597
+ "description": "容器 css 类名"
11598
+ },
11599
+ "$ref": {
11600
+ "type": "string",
11601
+ "description": "配合 definitions 一起使用,可以实现无限循环的渲染器。"
11602
+ },
11603
+ "disabled": {
11604
+ "type": "boolean",
11605
+ "description": "是否禁用"
11606
+ },
11607
+ "disabledOn": {
11608
+ "$ref": "#/definitions/SchemaExpression",
11609
+ "description": "是否禁用表达式"
11610
+ },
11611
+ "hidden": {
11612
+ "type": "boolean",
11613
+ "description": "是否隐藏"
11614
+ },
11615
+ "hiddenOn": {
11616
+ "$ref": "#/definitions/SchemaExpression",
11617
+ "description": "是否隐藏表达式"
11618
+ },
11619
+ "visible": {
11620
+ "type": "boolean",
11621
+ "description": "是否显示"
11622
+ },
11623
+ "visibleOn": {
11624
+ "$ref": "#/definitions/SchemaExpression",
11625
+ "description": "是否显示表达式"
11626
+ },
11627
+ "id": {
11628
+ "type": "string",
11629
+ "description": "主要用于用户行为跟踪里区分是哪个按钮"
11630
+ },
11631
+ "block": {
11632
+ "type": "boolean",
11633
+ "description": "是否为块状展示,默认为内联。"
11634
+ },
11635
+ "disabledTip": {
11636
+ "type": "string",
11637
+ "description": "禁用时的文案提示。"
11638
+ },
11639
+ "icon": {
11640
+ "$ref": "#/definitions/SchemaIcon",
11641
+ "description": "按钮图标, iconfont 的类名"
11642
+ },
11643
+ "iconClassName": {
11644
+ "$ref": "#/definitions/SchemaClassName",
11645
+ "description": "icon 上的css 类名"
11646
+ },
11647
+ "rightIcon": {
11648
+ "$ref": "#/definitions/SchemaIcon",
11649
+ "description": "右侧按钮图标, iconfont 的类名"
11650
+ },
11651
+ "rightIconClassName": {
11652
+ "$ref": "#/definitions/SchemaClassName",
11653
+ "description": "右侧 icon 上的 css 类名"
11654
+ },
11655
+ "loadingClassName": {
11656
+ "$ref": "#/definitions/SchemaClassName",
11657
+ "description": "loading 上的css 类名"
11658
+ },
11659
+ "label": {
11660
+ "type": "string",
11661
+ "description": "按钮文字"
11662
+ },
11663
+ "level": {
11664
+ "type": "string",
11665
+ "enum": [
11666
+ "info",
11667
+ "success",
11668
+ "warning",
11669
+ "danger",
11670
+ "link",
11671
+ "primary",
11672
+ "dark",
11673
+ "light"
11674
+ ],
11675
+ "description": "按钮样式"
11676
+ },
11677
+ "primary": {
11678
+ "type": "boolean"
11679
+ },
11680
+ "size": {
11681
+ "type": "string",
11682
+ "enum": [
11683
+ "xs",
11684
+ "sm",
11685
+ "md",
11686
+ "lg"
11687
+ ],
11688
+ "description": "按钮大小"
11689
+ },
11690
+ "tooltip": {
11691
+ "$ref": "#/definitions/SchemaTooltip"
11692
+ },
11693
+ "tooltipPlacement": {
11694
+ "type": "string",
11695
+ "enum": [
11696
+ "top",
11697
+ "right",
11698
+ "bottom",
11699
+ "left"
11700
+ ]
11701
+ },
11702
+ "confirmText": {
11703
+ "type": "string",
11704
+ "description": "提示文字,配置了操作前会要求用户确认。"
11705
+ },
11706
+ "required": {
11707
+ "type": "array",
11708
+ "items": {
11709
+ "type": "string"
11710
+ },
11711
+ "description": "如果按钮在form中,配置此属性会要求用户把指定的字段通过验证后才会触发行为。"
11712
+ },
11713
+ "activeLevel": {
11714
+ "type": "string",
11715
+ "description": "激活状态时的样式"
11716
+ },
11717
+ "activeClassName": {
11718
+ "type": "string",
11719
+ "description": "激活状态时的类名"
11720
+ },
11721
+ "close": {
11722
+ "type": [
11723
+ "boolean",
11724
+ "string"
11725
+ ],
11726
+ "description": "如果按钮在弹框中,可以配置这个动作完成后是否关闭弹窗,或者指定关闭目标弹框。"
11727
+ },
11728
+ "requireSelected": {
11729
+ "type": "boolean",
11730
+ "description": "当按钮时批量操作按钮时,默认必须有勾选元素才能可点击,如果此属性配置成 false,则没有点选成员也能点击。"
11731
+ },
11732
+ "mergeData": {
11733
+ "type": "boolean",
11734
+ "description": "是否将弹框中数据 merge 到父级作用域。"
11735
+ },
11736
+ "target": {
11737
+ "type": "string",
11738
+ "description": "可以指定让谁来触发这个动作。"
11739
+ },
11740
+ "countDown": {
11741
+ "type": "number",
11742
+ "description": "点击后的禁止倒计时(秒)"
11743
+ },
11744
+ "countDownTpl": {
11745
+ "type": "string",
11746
+ "description": "倒计时文字自定义"
11747
+ },
11748
+ "badge": {
11749
+ "$ref": "#/definitions/BadgeSchema",
11750
+ "description": "角标"
11751
+ },
11752
+ "hotKey": {
11753
+ "type": "string",
11754
+ "description": "键盘快捷键"
11755
+ },
11756
+ "loadingOn": {
11757
+ "type": "string",
11758
+ "description": "是否显示loading效果"
11759
+ },
11760
+ "onClick": {
11761
+ "anyOf": [
11762
+ {
11763
+ "type": "string"
11764
+ },
11765
+ {}
11766
+ ],
11767
+ "description": "自定义事件处理函数"
11768
+ },
11769
+ "body": {
11770
+ "$ref": "#/definitions/SchemaCollection",
11771
+ "description": "子内容"
11772
+ },
11773
+ "actionType": {
11774
+ "type": "string",
11775
+ "const": "dialog",
11776
+ "description": "指定为打开弹窗"
11777
+ },
11778
+ "dialog": {
11779
+ "$ref": "#/definitions/DialogSchemaBase",
11780
+ "description": "弹框详情 文档:https://baidu.gitee.io/amis/docs/components/dialog"
11781
+ },
11782
+ "nextCondition": {
11783
+ "$ref": "#/definitions/SchemaExpression",
11784
+ "description": "是否有下一个的表达式,正常可以不用配置,如果想要刷掉某些数据可以配置这个。"
11785
+ },
11786
+ "reload": {
11787
+ "$ref": "#/definitions/SchemaReload"
11788
+ },
11789
+ "redirect": {
11790
+ "type": "string"
11791
+ }
11792
+ },
11793
+ "required": [
11794
+ "actionType",
11795
+ "dialog",
11796
+ "type"
11797
+ ]
11798
+ },
11799
+ {
11800
+ "type": "object",
11801
+ "additionalProperties": false,
11802
+ "properties": {
11803
+ "children": {
11804
+ "type": "array",
11805
+ "items": {
11806
+ "$ref": "#/definitions/DropdownButton"
11807
+ }
11808
+ },
11809
+ "type": {
11810
+ "type": "string",
11811
+ "enum": [
11812
+ "button",
11813
+ "submit",
11814
+ "reset"
11815
+ ],
11816
+ "description": "指定按钮类型,支持 button、submit或者reset三种类型。"
11817
+ },
11818
+ "className": {
11819
+ "$ref": "#/definitions/SchemaClassName",
11820
+ "description": "容器 css 类名"
11821
+ },
11822
+ "$ref": {
11823
+ "type": "string",
11824
+ "description": "配合 definitions 一起使用,可以实现无限循环的渲染器。"
11825
+ },
11826
+ "disabled": {
11827
+ "type": "boolean",
11828
+ "description": "是否禁用"
11829
+ },
11830
+ "disabledOn": {
11831
+ "$ref": "#/definitions/SchemaExpression",
11832
+ "description": "是否禁用表达式"
11833
+ },
11834
+ "hidden": {
11835
+ "type": "boolean",
11836
+ "description": "是否隐藏"
11837
+ },
11838
+ "hiddenOn": {
11839
+ "$ref": "#/definitions/SchemaExpression",
11840
+ "description": "是否隐藏表达式"
11841
+ },
11842
+ "visible": {
11843
+ "type": "boolean",
11844
+ "description": "是否显示"
11845
+ },
11846
+ "visibleOn": {
11847
+ "$ref": "#/definitions/SchemaExpression",
11848
+ "description": "是否显示表达式"
11849
+ },
11850
+ "id": {
11851
+ "type": "string",
11852
+ "description": "主要用于用户行为跟踪里区分是哪个按钮"
11853
+ },
11854
+ "block": {
11855
+ "type": "boolean",
11856
+ "description": "是否为块状展示,默认为内联。"
11857
+ },
11858
+ "disabledTip": {
11859
+ "type": "string",
11860
+ "description": "禁用时的文案提示。"
11861
+ },
11862
+ "icon": {
11863
+ "$ref": "#/definitions/SchemaIcon",
11864
+ "description": "按钮图标, iconfont 的类名"
11865
+ },
11866
+ "iconClassName": {
11867
+ "$ref": "#/definitions/SchemaClassName",
11868
+ "description": "icon 上的css 类名"
11869
+ },
11870
+ "rightIcon": {
11871
+ "$ref": "#/definitions/SchemaIcon",
11872
+ "description": "右侧按钮图标, iconfont 的类名"
11873
+ },
11874
+ "rightIconClassName": {
11875
+ "$ref": "#/definitions/SchemaClassName",
11876
+ "description": "右侧 icon 上的 css 类名"
11877
+ },
11878
+ "loadingClassName": {
11879
+ "$ref": "#/definitions/SchemaClassName",
11880
+ "description": "loading 上的css 类名"
11881
+ },
11882
+ "label": {
11883
+ "type": "string",
11884
+ "description": "按钮文字"
11885
+ },
11886
+ "level": {
11887
+ "type": "string",
11888
+ "enum": [
11889
+ "info",
11890
+ "success",
11891
+ "warning",
11892
+ "danger",
11893
+ "link",
11894
+ "primary",
11895
+ "dark",
11896
+ "light"
11897
+ ],
11898
+ "description": "按钮样式"
11899
+ },
11900
+ "primary": {
11901
+ "type": "boolean"
11902
+ },
11903
+ "size": {
11904
+ "type": "string",
11905
+ "enum": [
11906
+ "xs",
11907
+ "sm",
11908
+ "md",
11909
+ "lg"
11910
+ ],
11911
+ "description": "按钮大小"
11912
+ },
11913
+ "tooltip": {
11914
+ "$ref": "#/definitions/SchemaTooltip"
11915
+ },
11916
+ "tooltipPlacement": {
11917
+ "type": "string",
11918
+ "enum": [
11919
+ "top",
11920
+ "right",
11921
+ "bottom",
11922
+ "left"
11923
+ ]
11924
+ },
11925
+ "confirmText": {
11926
+ "type": "string",
11927
+ "description": "提示文字,配置了操作前会要求用户确认。"
11928
+ },
11929
+ "required": {
11930
+ "type": "array",
11931
+ "items": {
11932
+ "type": "string"
11933
+ },
11934
+ "description": "如果按钮在form中,配置此属性会要求用户把指定的字段通过验证后才会触发行为。"
11935
+ },
11936
+ "activeLevel": {
11937
+ "type": "string",
11938
+ "description": "激活状态时的样式"
11939
+ },
11940
+ "activeClassName": {
11941
+ "type": "string",
11942
+ "description": "激活状态时的类名"
11943
+ },
11944
+ "close": {
11945
+ "type": [
11946
+ "boolean",
11947
+ "string"
11948
+ ],
11949
+ "description": "如果按钮在弹框中,可以配置这个动作完成后是否关闭弹窗,或者指定关闭目标弹框。"
11950
+ },
11951
+ "requireSelected": {
11952
+ "type": "boolean",
11953
+ "description": "当按钮时批量操作按钮时,默认必须有勾选元素才能可点击,如果此属性配置成 false,则没有点选成员也能点击。"
11954
+ },
11955
+ "mergeData": {
11956
+ "type": "boolean",
11957
+ "description": "是否将弹框中数据 merge 到父级作用域。"
11958
+ },
11959
+ "target": {
11960
+ "type": "string",
11961
+ "description": "可以指定让谁来触发这个动作。"
11962
+ },
11963
+ "countDown": {
11964
+ "type": "number",
11965
+ "description": "点击后的禁止倒计时(秒)"
11966
+ },
11967
+ "countDownTpl": {
11968
+ "type": "string",
11969
+ "description": "倒计时文字自定义"
11970
+ },
11971
+ "badge": {
11972
+ "$ref": "#/definitions/BadgeSchema",
11973
+ "description": "角标"
11974
+ },
11975
+ "hotKey": {
11976
+ "type": "string",
11977
+ "description": "键盘快捷键"
11978
+ },
11979
+ "loadingOn": {
11980
+ "type": "string",
11981
+ "description": "是否显示loading效果"
11982
+ },
11983
+ "onClick": {
11984
+ "anyOf": [
11985
+ {
11986
+ "type": "string"
11987
+ },
11988
+ {}
11989
+ ],
11990
+ "description": "自定义事件处理函数"
11991
+ },
11992
+ "body": {
11993
+ "$ref": "#/definitions/SchemaCollection",
11994
+ "description": "子内容"
11995
+ },
11996
+ "actionType": {
11997
+ "type": "string",
11998
+ "const": "drawer",
11999
+ "description": "指定为打开弹窗,抽出式弹窗"
12000
+ },
12001
+ "drawer": {
12002
+ "$ref": "#/definitions/DrawerSchemaBase",
12003
+ "description": "抽出式弹框详情 文档:https://baidu.gitee.io/amis/docs/components/drawer"
12004
+ },
12005
+ "nextCondition": {
12006
+ "$ref": "#/definitions/SchemaExpression",
12007
+ "description": "是否有下一个的表达式,正常可以不用配置,如果想要刷掉某些数据可以配置这个。"
12008
+ },
12009
+ "reload": {
12010
+ "$ref": "#/definitions/SchemaReload"
12011
+ },
12012
+ "redirect": {
12013
+ "type": "string"
12014
+ }
12015
+ },
12016
+ "required": [
12017
+ "actionType",
12018
+ "drawer",
12019
+ "type"
12020
+ ]
12021
+ },
12022
+ {
12023
+ "type": "object",
12024
+ "additionalProperties": false,
12025
+ "properties": {
12026
+ "children": {
12027
+ "type": "array",
12028
+ "items": {
12029
+ "$ref": "#/definitions/DropdownButton"
12030
+ }
12031
+ },
12032
+ "type": {
12033
+ "type": "string",
12034
+ "enum": [
12035
+ "button",
12036
+ "submit",
12037
+ "reset"
12038
+ ],
12039
+ "description": "指定按钮类型,支持 button、submit或者reset三种类型。"
12040
+ },
12041
+ "className": {
12042
+ "$ref": "#/definitions/SchemaClassName",
12043
+ "description": "容器 css 类名"
12044
+ },
12045
+ "$ref": {
12046
+ "type": "string",
12047
+ "description": "配合 definitions 一起使用,可以实现无限循环的渲染器。"
12048
+ },
12049
+ "disabled": {
12050
+ "type": "boolean",
12051
+ "description": "是否禁用"
12052
+ },
12053
+ "disabledOn": {
12054
+ "$ref": "#/definitions/SchemaExpression",
12055
+ "description": "是否禁用表达式"
12056
+ },
12057
+ "hidden": {
12058
+ "type": "boolean",
12059
+ "description": "是否隐藏"
12060
+ },
12061
+ "hiddenOn": {
12062
+ "$ref": "#/definitions/SchemaExpression",
12063
+ "description": "是否隐藏表达式"
12064
+ },
12065
+ "visible": {
12066
+ "type": "boolean",
12067
+ "description": "是否显示"
12068
+ },
12069
+ "visibleOn": {
12070
+ "$ref": "#/definitions/SchemaExpression",
12071
+ "description": "是否显示表达式"
12072
+ },
12073
+ "id": {
12074
+ "type": "string",
12075
+ "description": "主要用于用户行为跟踪里区分是哪个按钮"
12076
+ },
12077
+ "block": {
12078
+ "type": "boolean",
12079
+ "description": "是否为块状展示,默认为内联。"
12080
+ },
12081
+ "disabledTip": {
12082
+ "type": "string",
12083
+ "description": "禁用时的文案提示。"
12084
+ },
12085
+ "icon": {
12086
+ "$ref": "#/definitions/SchemaIcon",
12087
+ "description": "按钮图标, iconfont 的类名"
12088
+ },
12089
+ "iconClassName": {
12090
+ "$ref": "#/definitions/SchemaClassName",
12091
+ "description": "icon 上的css 类名"
12092
+ },
12093
+ "rightIcon": {
12094
+ "$ref": "#/definitions/SchemaIcon",
12095
+ "description": "右侧按钮图标, iconfont 的类名"
12096
+ },
12097
+ "rightIconClassName": {
12098
+ "$ref": "#/definitions/SchemaClassName",
12099
+ "description": "右侧 icon 上的 css 类名"
12100
+ },
12101
+ "loadingClassName": {
12102
+ "$ref": "#/definitions/SchemaClassName",
12103
+ "description": "loading 上的css 类名"
12104
+ },
12105
+ "label": {
12106
+ "type": "string",
12107
+ "description": "按钮文字"
12108
+ },
12109
+ "level": {
12110
+ "type": "string",
12111
+ "enum": [
12112
+ "info",
12113
+ "success",
12114
+ "warning",
12115
+ "danger",
12116
+ "link",
12117
+ "primary",
12118
+ "dark",
12119
+ "light"
12120
+ ],
12121
+ "description": "按钮样式"
12122
+ },
12123
+ "primary": {
12124
+ "type": "boolean"
12125
+ },
12126
+ "size": {
12127
+ "type": "string",
12128
+ "enum": [
12129
+ "xs",
12130
+ "sm",
12131
+ "md",
12132
+ "lg"
12133
+ ],
12134
+ "description": "按钮大小"
12135
+ },
12136
+ "tooltip": {
12137
+ "$ref": "#/definitions/SchemaTooltip"
12138
+ },
12139
+ "tooltipPlacement": {
12140
+ "type": "string",
12141
+ "enum": [
12142
+ "top",
12143
+ "right",
12144
+ "bottom",
12145
+ "left"
12146
+ ]
12147
+ },
12148
+ "confirmText": {
12149
+ "type": "string",
12150
+ "description": "提示文字,配置了操作前会要求用户确认。"
12151
+ },
12152
+ "required": {
12153
+ "type": "array",
12154
+ "items": {
12155
+ "type": "string"
12156
+ },
12157
+ "description": "如果按钮在form中,配置此属性会要求用户把指定的字段通过验证后才会触发行为。"
12158
+ },
12159
+ "activeLevel": {
12160
+ "type": "string",
12161
+ "description": "激活状态时的样式"
12162
+ },
12163
+ "activeClassName": {
12164
+ "type": "string",
12165
+ "description": "激活状态时的类名"
12166
+ },
12167
+ "close": {
12168
+ "type": [
12169
+ "boolean",
12170
+ "string"
12171
+ ],
12172
+ "description": "如果按钮在弹框中,可以配置这个动作完成后是否关闭弹窗,或者指定关闭目标弹框。"
12173
+ },
12174
+ "requireSelected": {
12175
+ "type": "boolean",
12176
+ "description": "当按钮时批量操作按钮时,默认必须有勾选元素才能可点击,如果此属性配置成 false,则没有点选成员也能点击。"
12177
+ },
12178
+ "mergeData": {
12179
+ "type": "boolean",
12180
+ "description": "是否将弹框中数据 merge 到父级作用域。"
12181
+ },
12182
+ "target": {
12183
+ "type": "string",
12184
+ "description": "可以指定让谁来触发这个动作。"
12185
+ },
12186
+ "countDown": {
12187
+ "type": "number",
12188
+ "description": "点击后的禁止倒计时(秒)"
12189
+ },
12190
+ "countDownTpl": {
12191
+ "type": "string",
12192
+ "description": "倒计时文字自定义"
12193
+ },
12194
+ "badge": {
12195
+ "$ref": "#/definitions/BadgeSchema",
12196
+ "description": "角标"
12197
+ },
12198
+ "hotKey": {
12199
+ "type": "string",
12200
+ "description": "键盘快捷键"
12201
+ },
12202
+ "loadingOn": {
12203
+ "type": "string",
12204
+ "description": "是否显示loading效果"
12205
+ },
12206
+ "onClick": {
12207
+ "anyOf": [
12208
+ {
12209
+ "type": "string"
12210
+ },
12211
+ {}
12212
+ ],
12213
+ "description": "自定义事件处理函数"
12214
+ },
12215
+ "body": {
12216
+ "$ref": "#/definitions/SchemaCollection",
12217
+ "description": "子内容"
12218
+ },
12219
+ "actionType": {
12220
+ "type": "string",
12221
+ "const": "copy",
12222
+ "description": "指定为复制内容行为"
12223
+ },
12224
+ "copy": {
12225
+ "$ref": "#/definitions/SchemaTpl",
12226
+ "description": "复制啥内容由此配置,支持模板语法。"
12227
+ }
12228
+ },
12229
+ "required": [
12230
+ "actionType",
12231
+ "copy",
12232
+ "type"
12233
+ ]
12234
+ },
12235
+ {
12236
+ "type": "object",
12237
+ "additionalProperties": false,
12238
+ "properties": {
12239
+ "children": {
12240
+ "type": "array",
12241
+ "items": {
12242
+ "$ref": "#/definitions/DropdownButton"
12243
+ }
12244
+ },
12245
+ "type": {
12246
+ "type": "string",
12247
+ "enum": [
12248
+ "button",
12249
+ "submit",
12250
+ "reset"
12251
+ ],
12252
+ "description": "指定按钮类型,支持 button、submit或者reset三种类型。"
12253
+ },
12254
+ "className": {
12255
+ "$ref": "#/definitions/SchemaClassName",
12256
+ "description": "容器 css 类名"
12257
+ },
12258
+ "$ref": {
12259
+ "type": "string",
12260
+ "description": "配合 definitions 一起使用,可以实现无限循环的渲染器。"
12261
+ },
12262
+ "disabled": {
12263
+ "type": "boolean",
12264
+ "description": "是否禁用"
12265
+ },
12266
+ "disabledOn": {
12267
+ "$ref": "#/definitions/SchemaExpression",
12268
+ "description": "是否禁用表达式"
12269
+ },
12270
+ "hidden": {
12271
+ "type": "boolean",
12272
+ "description": "是否隐藏"
12273
+ },
12274
+ "hiddenOn": {
12275
+ "$ref": "#/definitions/SchemaExpression",
12276
+ "description": "是否隐藏表达式"
12277
+ },
12278
+ "visible": {
12279
+ "type": "boolean",
12280
+ "description": "是否显示"
12281
+ },
12282
+ "visibleOn": {
12283
+ "$ref": "#/definitions/SchemaExpression",
12284
+ "description": "是否显示表达式"
12285
+ },
12286
+ "id": {
12287
+ "type": "string",
12288
+ "description": "主要用于用户行为跟踪里区分是哪个按钮"
12289
+ },
12290
+ "block": {
12291
+ "type": "boolean",
12292
+ "description": "是否为块状展示,默认为内联。"
12293
+ },
12294
+ "disabledTip": {
12295
+ "type": "string",
12296
+ "description": "禁用时的文案提示。"
12297
+ },
12298
+ "icon": {
12299
+ "$ref": "#/definitions/SchemaIcon",
12300
+ "description": "按钮图标, iconfont 的类名"
12301
+ },
12302
+ "iconClassName": {
12303
+ "$ref": "#/definitions/SchemaClassName",
12304
+ "description": "icon 上的css 类名"
12305
+ },
12306
+ "rightIcon": {
12307
+ "$ref": "#/definitions/SchemaIcon",
12308
+ "description": "右侧按钮图标, iconfont 的类名"
12309
+ },
12310
+ "rightIconClassName": {
12311
+ "$ref": "#/definitions/SchemaClassName",
12312
+ "description": "右侧 icon 上的 css 类名"
12313
+ },
12314
+ "loadingClassName": {
12315
+ "$ref": "#/definitions/SchemaClassName",
12316
+ "description": "loading 上的css 类名"
12317
+ },
12318
+ "label": {
12319
+ "type": "string",
12320
+ "description": "按钮文字"
12321
+ },
12322
+ "level": {
12323
+ "type": "string",
12324
+ "enum": [
12325
+ "info",
12326
+ "success",
12327
+ "warning",
12328
+ "danger",
12329
+ "link",
12330
+ "primary",
12331
+ "dark",
12332
+ "light"
12333
+ ],
12334
+ "description": "按钮样式"
12335
+ },
12336
+ "primary": {
12337
+ "type": "boolean"
12338
+ },
12339
+ "size": {
12340
+ "type": "string",
12341
+ "enum": [
12342
+ "xs",
12343
+ "sm",
12344
+ "md",
12345
+ "lg"
12346
+ ],
12347
+ "description": "按钮大小"
12348
+ },
12349
+ "tooltip": {
12350
+ "$ref": "#/definitions/SchemaTooltip"
12351
+ },
12352
+ "tooltipPlacement": {
12353
+ "type": "string",
12354
+ "enum": [
12355
+ "top",
12356
+ "right",
12357
+ "bottom",
12358
+ "left"
12359
+ ]
12360
+ },
12361
+ "confirmText": {
12362
+ "type": "string",
12363
+ "description": "提示文字,配置了操作前会要求用户确认。"
12364
+ },
12365
+ "required": {
12366
+ "type": "array",
12367
+ "items": {
12368
+ "type": "string"
12369
+ },
12370
+ "description": "如果按钮在form中,配置此属性会要求用户把指定的字段通过验证后才会触发行为。"
12371
+ },
12372
+ "activeLevel": {
12373
+ "type": "string",
12374
+ "description": "激活状态时的样式"
12375
+ },
12376
+ "activeClassName": {
12377
+ "type": "string",
12378
+ "description": "激活状态时的类名"
12379
+ },
12380
+ "close": {
12381
+ "type": [
12382
+ "boolean",
12383
+ "string"
12384
+ ],
12385
+ "description": "如果按钮在弹框中,可以配置这个动作完成后是否关闭弹窗,或者指定关闭目标弹框。"
12386
+ },
12387
+ "requireSelected": {
12388
+ "type": "boolean",
12389
+ "description": "当按钮时批量操作按钮时,默认必须有勾选元素才能可点击,如果此属性配置成 false,则没有点选成员也能点击。"
12390
+ },
12391
+ "mergeData": {
12392
+ "type": "boolean",
12393
+ "description": "是否将弹框中数据 merge 到父级作用域。"
12394
+ },
12395
+ "target": {
12396
+ "$ref": "#/definitions/SchemaReload",
12397
+ "description": "指定目标组件。"
12398
+ },
12399
+ "countDown": {
12400
+ "type": "number",
12401
+ "description": "点击后的禁止倒计时(秒)"
12402
+ },
12403
+ "countDownTpl": {
12404
+ "type": "string",
12405
+ "description": "倒计时文字自定义"
12406
+ },
12407
+ "badge": {
12408
+ "$ref": "#/definitions/BadgeSchema",
12409
+ "description": "角标"
12410
+ },
12411
+ "hotKey": {
12412
+ "type": "string",
12413
+ "description": "键盘快捷键"
12414
+ },
12415
+ "loadingOn": {
12416
+ "type": "string",
12417
+ "description": "是否显示loading效果"
12418
+ },
12419
+ "onClick": {
12420
+ "anyOf": [
12421
+ {
12422
+ "type": "string"
12423
+ },
12424
+ {}
12425
+ ],
12426
+ "description": "自定义事件处理函数"
12427
+ },
12428
+ "body": {
12429
+ "$ref": "#/definitions/SchemaCollection",
12430
+ "description": "子内容"
12431
+ },
12432
+ "actionType": {
12433
+ "type": "string",
12434
+ "const": "reload",
12435
+ "description": "指定为刷新目标组件。"
12436
+ }
12437
+ },
12438
+ "required": [
12439
+ "actionType",
12440
+ "type"
12441
+ ]
12442
+ },
12443
+ {
12444
+ "type": "object",
12445
+ "additionalProperties": false,
12446
+ "properties": {
12447
+ "children": {
12448
+ "type": "array",
12449
+ "items": {
12450
+ "$ref": "#/definitions/DropdownButton"
12451
+ }
12452
+ },
12453
+ "type": {
12454
+ "type": "string",
12455
+ "enum": [
12456
+ "button",
12457
+ "submit",
12458
+ "reset"
12459
+ ],
12460
+ "description": "指定按钮类型,支持 button、submit或者reset三种类型。"
12461
+ },
12462
+ "className": {
12463
+ "$ref": "#/definitions/SchemaClassName",
12464
+ "description": "容器 css 类名"
12465
+ },
12466
+ "$ref": {
12467
+ "type": "string",
12468
+ "description": "配合 definitions 一起使用,可以实现无限循环的渲染器。"
12469
+ },
12470
+ "disabled": {
12471
+ "type": "boolean",
12472
+ "description": "是否禁用"
12473
+ },
12474
+ "disabledOn": {
12475
+ "$ref": "#/definitions/SchemaExpression",
12476
+ "description": "是否禁用表达式"
12477
+ },
12478
+ "hidden": {
12479
+ "type": "boolean",
12480
+ "description": "是否隐藏"
12481
+ },
12482
+ "hiddenOn": {
12483
+ "$ref": "#/definitions/SchemaExpression",
12484
+ "description": "是否隐藏表达式"
12485
+ },
12486
+ "visible": {
12487
+ "type": "boolean",
12488
+ "description": "是否显示"
12489
+ },
12490
+ "visibleOn": {
12491
+ "$ref": "#/definitions/SchemaExpression",
12492
+ "description": "是否显示表达式"
12493
+ },
12494
+ "id": {
12495
+ "type": "string",
12496
+ "description": "主要用于用户行为跟踪里区分是哪个按钮"
12497
+ },
12498
+ "block": {
12499
+ "type": "boolean",
12500
+ "description": "是否为块状展示,默认为内联。"
12501
+ },
12502
+ "disabledTip": {
12503
+ "type": "string",
12504
+ "description": "禁用时的文案提示。"
12505
+ },
12506
+ "icon": {
12507
+ "$ref": "#/definitions/SchemaIcon",
12508
+ "description": "按钮图标, iconfont 的类名"
12509
+ },
12510
+ "iconClassName": {
12511
+ "$ref": "#/definitions/SchemaClassName",
12512
+ "description": "icon 上的css 类名"
12513
+ },
12514
+ "rightIcon": {
12515
+ "$ref": "#/definitions/SchemaIcon",
12516
+ "description": "右侧按钮图标, iconfont 的类名"
12517
+ },
12518
+ "rightIconClassName": {
12519
+ "$ref": "#/definitions/SchemaClassName",
12520
+ "description": "右侧 icon 上的 css 类名"
12521
+ },
12522
+ "loadingClassName": {
12523
+ "$ref": "#/definitions/SchemaClassName",
12524
+ "description": "loading 上的css 类名"
12525
+ },
12526
+ "label": {
12527
+ "type": "string",
12528
+ "description": "按钮文字"
12529
+ },
12530
+ "level": {
12531
+ "type": "string",
12532
+ "enum": [
12533
+ "info",
12534
+ "success",
12535
+ "warning",
12536
+ "danger",
12537
+ "link",
12538
+ "primary",
12539
+ "dark",
12540
+ "light"
12541
+ ],
12542
+ "description": "按钮样式"
12543
+ },
12544
+ "primary": {
12545
+ "type": "boolean"
12546
+ },
12547
+ "size": {
12548
+ "type": "string",
12549
+ "enum": [
12550
+ "xs",
12551
+ "sm",
12552
+ "md",
12553
+ "lg"
12554
+ ],
12555
+ "description": "按钮大小"
12556
+ },
12557
+ "tooltip": {
12558
+ "$ref": "#/definitions/SchemaTooltip"
12559
+ },
12560
+ "tooltipPlacement": {
12561
+ "type": "string",
12562
+ "enum": [
12563
+ "top",
12564
+ "right",
12565
+ "bottom",
12566
+ "left"
12567
+ ]
12568
+ },
12569
+ "confirmText": {
12570
+ "type": "string",
12571
+ "description": "提示文字,配置了操作前会要求用户确认。"
12572
+ },
12573
+ "required": {
12574
+ "type": "array",
12575
+ "items": {
12576
+ "type": "string"
12577
+ },
12578
+ "description": "如果按钮在form中,配置此属性会要求用户把指定的字段通过验证后才会触发行为。"
12579
+ },
12580
+ "activeLevel": {
12581
+ "type": "string",
12582
+ "description": "激活状态时的样式"
12583
+ },
12584
+ "activeClassName": {
12585
+ "type": "string",
12586
+ "description": "激活状态时的类名"
12587
+ },
12588
+ "close": {
12589
+ "type": [
12590
+ "boolean",
12591
+ "string"
12592
+ ],
12593
+ "description": "如果按钮在弹框中,可以配置这个动作完成后是否关闭弹窗,或者指定关闭目标弹框。"
12594
+ },
12595
+ "requireSelected": {
12596
+ "type": "boolean",
12597
+ "description": "当按钮时批量操作按钮时,默认必须有勾选元素才能可点击,如果此属性配置成 false,则没有点选成员也能点击。"
12598
+ },
12599
+ "mergeData": {
12600
+ "type": "boolean",
12601
+ "description": "是否将弹框中数据 merge 到父级作用域。"
12602
+ },
12603
+ "target": {
12604
+ "type": "string",
12605
+ "description": "可以指定让谁来触发这个动作。"
12606
+ },
12607
+ "countDown": {
12608
+ "type": "number",
12609
+ "description": "点击后的禁止倒计时(秒)"
12610
+ },
12611
+ "countDownTpl": {
12612
+ "type": "string",
12613
+ "description": "倒计时文字自定义"
12614
+ },
12615
+ "badge": {
12616
+ "$ref": "#/definitions/BadgeSchema",
12617
+ "description": "角标"
12618
+ },
12619
+ "hotKey": {
12620
+ "type": "string",
12621
+ "description": "键盘快捷键"
12622
+ },
12623
+ "loadingOn": {
12624
+ "type": "string",
12625
+ "description": "是否显示loading效果"
12626
+ },
12627
+ "onClick": {
12628
+ "anyOf": [
12629
+ {
12630
+ "type": "string"
12631
+ },
12632
+ {}
12633
+ ],
12634
+ "description": "自定义事件处理函数"
12635
+ },
12636
+ "body": {
12637
+ "type": "string",
12638
+ "description": "邮件正文"
12639
+ },
12640
+ "actionType": {
12641
+ "type": "string",
12642
+ "const": "email",
12643
+ "description": "指定为打开邮箱行为"
12644
+ },
12645
+ "to": {
12646
+ "type": "string",
12647
+ "description": "收件人邮箱"
12648
+ },
12649
+ "cc": {
12650
+ "type": "string",
12651
+ "description": "抄送邮箱"
12652
+ },
12653
+ "bcc": {
12654
+ "type": "string",
12655
+ "description": "匿名抄送邮箱"
12656
+ },
12657
+ "subject": {
12658
+ "type": "string",
12659
+ "description": "邮件主题"
12660
+ }
12661
+ },
12662
+ "required": [
12663
+ "actionType",
12664
+ "to",
12665
+ "type"
12666
+ ]
12667
+ },
12668
+ {
12669
+ "type": "object",
12670
+ "properties": {
12671
+ "children": {
12672
+ "type": "array",
12673
+ "items": {
12674
+ "$ref": "#/definitions/DropdownButton"
12675
+ }
12676
+ },
12677
+ "type": {
12678
+ "type": "string",
12679
+ "enum": [
12680
+ "button",
12681
+ "submit",
12682
+ "reset"
12683
+ ],
12684
+ "description": "指定按钮类型,支持 button、submit或者reset三种类型。"
12685
+ },
12686
+ "className": {
12687
+ "$ref": "#/definitions/SchemaClassName",
12688
+ "description": "容器 css 类名"
12689
+ },
12690
+ "$ref": {
12691
+ "type": "string",
12692
+ "description": "配合 definitions 一起使用,可以实现无限循环的渲染器。"
12693
+ },
12694
+ "disabled": {
12695
+ "type": "boolean",
12696
+ "description": "是否禁用"
12697
+ },
12698
+ "disabledOn": {
12699
+ "$ref": "#/definitions/SchemaExpression",
12700
+ "description": "是否禁用表达式"
12701
+ },
12702
+ "hidden": {
12703
+ "type": "boolean",
12704
+ "description": "是否隐藏"
12705
+ },
12706
+ "hiddenOn": {
12707
+ "$ref": "#/definitions/SchemaExpression",
12708
+ "description": "是否隐藏表达式"
12709
+ },
12710
+ "visible": {
12711
+ "type": "boolean",
12712
+ "description": "是否显示"
12713
+ },
12714
+ "visibleOn": {
12715
+ "$ref": "#/definitions/SchemaExpression",
12716
+ "description": "是否显示表达式"
12717
+ },
12718
+ "id": {
12719
+ "type": "string",
12720
+ "description": "主要用于用户行为跟踪里区分是哪个按钮"
12721
+ },
12722
+ "block": {
12723
+ "type": "boolean",
12724
+ "description": "是否为块状展示,默认为内联。"
12725
+ },
12726
+ "disabledTip": {
12727
+ "type": "string",
12728
+ "description": "禁用时的文案提示。"
12729
+ },
12730
+ "icon": {
12731
+ "$ref": "#/definitions/SchemaIcon",
12732
+ "description": "按钮图标, iconfont 的类名"
12733
+ },
12734
+ "iconClassName": {
12735
+ "$ref": "#/definitions/SchemaClassName",
12736
+ "description": "icon 上的css 类名"
12737
+ },
12738
+ "rightIcon": {
12739
+ "$ref": "#/definitions/SchemaIcon",
12740
+ "description": "右侧按钮图标, iconfont 的类名"
12741
+ },
12742
+ "rightIconClassName": {
12743
+ "$ref": "#/definitions/SchemaClassName",
12744
+ "description": "右侧 icon 上的 css 类名"
12745
+ },
12746
+ "loadingClassName": {
12747
+ "$ref": "#/definitions/SchemaClassName",
12748
+ "description": "loading 上的css 类名"
12749
+ },
12750
+ "label": {
12751
+ "type": "string",
12752
+ "description": "按钮文字"
12753
+ },
12754
+ "level": {
12755
+ "type": "string",
12756
+ "enum": [
12757
+ "info",
12758
+ "success",
12759
+ "warning",
12760
+ "danger",
12761
+ "link",
12762
+ "primary",
12763
+ "dark",
12764
+ "light"
12765
+ ],
12766
+ "description": "按钮样式"
12767
+ },
12768
+ "primary": {
12769
+ "type": "boolean"
12770
+ },
12771
+ "size": {
12772
+ "type": "string",
12773
+ "enum": [
12774
+ "xs",
12775
+ "sm",
12776
+ "md",
12777
+ "lg"
12778
+ ],
12779
+ "description": "按钮大小"
12780
+ },
12781
+ "tooltip": {
12782
+ "$ref": "#/definitions/SchemaTooltip"
12783
+ },
12784
+ "tooltipPlacement": {
12785
+ "type": "string",
12786
+ "enum": [
12787
+ "top",
12788
+ "right",
12789
+ "bottom",
12790
+ "left"
12791
+ ]
12792
+ },
12793
+ "confirmText": {
12794
+ "type": "string",
12795
+ "description": "提示文字,配置了操作前会要求用户确认。"
12796
+ },
12797
+ "required": {
12798
+ "type": "array",
12799
+ "items": {
12800
+ "type": "string"
12801
+ },
12802
+ "description": "如果按钮在form中,配置此属性会要求用户把指定的字段通过验证后才会触发行为。"
12803
+ },
12804
+ "activeLevel": {
12805
+ "type": "string",
12806
+ "description": "激活状态时的样式"
12807
+ },
12808
+ "activeClassName": {
12809
+ "type": "string",
12810
+ "description": "激活状态时的类名"
12811
+ },
12812
+ "close": {
12813
+ "type": [
12814
+ "boolean",
12815
+ "string"
12816
+ ],
12817
+ "description": "如果按钮在弹框中,可以配置这个动作完成后是否关闭弹窗,或者指定关闭目标弹框。"
12818
+ },
12819
+ "requireSelected": {
12820
+ "type": "boolean",
12821
+ "description": "当按钮时批量操作按钮时,默认必须有勾选元素才能可点击,如果此属性配置成 false,则没有点选成员也能点击。"
12822
+ },
12823
+ "mergeData": {
12824
+ "type": "boolean",
12825
+ "description": "是否将弹框中数据 merge 到父级作用域。"
12826
+ },
12827
+ "target": {
12828
+ "type": "string",
12829
+ "description": "可以指定让谁来触发这个动作。"
12830
+ },
12831
+ "countDown": {
12832
+ "type": "number",
12833
+ "description": "点击后的禁止倒计时(秒)"
12834
+ },
12835
+ "countDownTpl": {
12836
+ "type": "string",
12837
+ "description": "倒计时文字自定义"
12838
+ },
12839
+ "badge": {
12840
+ "$ref": "#/definitions/BadgeSchema",
12841
+ "description": "角标"
12842
+ },
12843
+ "hotKey": {
12844
+ "type": "string",
12845
+ "description": "键盘快捷键"
12846
+ },
12847
+ "loadingOn": {
12848
+ "type": "string",
12849
+ "description": "是否显示loading效果"
12850
+ },
12851
+ "onClick": {
12852
+ "anyOf": [
12853
+ {
12854
+ "type": "string"
12855
+ },
12856
+ {}
12857
+ ],
12858
+ "description": "自定义事件处理函数"
12859
+ },
12860
+ "body": {
12861
+ "$ref": "#/definitions/SchemaCollection",
12862
+ "description": "子内容"
12863
+ },
12864
+ "actionType": {
12865
+ "type": "string",
12866
+ "enum": [
12867
+ "prev",
12868
+ "next",
12869
+ "cancel",
12870
+ "close",
12871
+ "submit",
12872
+ "confirm",
12873
+ "add",
12874
+ "reset",
12875
+ "reset-and-submit"
12876
+ ]
12877
+ }
12878
+ },
12879
+ "required": [
12880
+ "actionType",
12881
+ "type"
12882
+ ]
12883
+ },
12884
+ {
12885
+ "type": "object",
12886
+ "additionalProperties": false,
12887
+ "properties": {
12888
+ "children": {
12889
+ "type": "array",
12890
+ "items": {
12891
+ "$ref": "#/definitions/DropdownButton"
12892
+ }
12893
+ },
12894
+ "type": {
12895
+ "type": "string",
12896
+ "enum": [
12897
+ "button",
12898
+ "submit",
12899
+ "reset"
12900
+ ],
12901
+ "description": "指定按钮类型,支持 button、submit或者reset三种类型。"
12902
+ },
12903
+ "className": {
12904
+ "$ref": "#/definitions/SchemaClassName",
12905
+ "description": "容器 css 类名"
12906
+ },
12907
+ "$ref": {
12908
+ "type": "string",
12909
+ "description": "配合 definitions 一起使用,可以实现无限循环的渲染器。"
12910
+ },
12911
+ "disabled": {
12912
+ "type": "boolean",
12913
+ "description": "是否禁用"
12914
+ },
12915
+ "disabledOn": {
12916
+ "$ref": "#/definitions/SchemaExpression",
12917
+ "description": "是否禁用表达式"
12918
+ },
12919
+ "hidden": {
12920
+ "type": "boolean",
12921
+ "description": "是否隐藏"
12922
+ },
12923
+ "hiddenOn": {
12924
+ "$ref": "#/definitions/SchemaExpression",
12925
+ "description": "是否隐藏表达式"
12926
+ },
12927
+ "visible": {
12928
+ "type": "boolean",
12929
+ "description": "是否显示"
12930
+ },
12931
+ "visibleOn": {
12932
+ "$ref": "#/definitions/SchemaExpression",
12933
+ "description": "是否显示表达式"
12934
+ },
12935
+ "id": {
12936
+ "type": "string",
12937
+ "description": "主要用于用户行为跟踪里区分是哪个按钮"
12938
+ },
12939
+ "block": {
12940
+ "type": "boolean",
12941
+ "description": "是否为块状展示,默认为内联。"
12942
+ },
12943
+ "disabledTip": {
12944
+ "type": "string",
12945
+ "description": "禁用时的文案提示。"
12946
+ },
12947
+ "icon": {
12948
+ "$ref": "#/definitions/SchemaIcon",
12949
+ "description": "按钮图标, iconfont 的类名"
12950
+ },
12951
+ "iconClassName": {
12952
+ "$ref": "#/definitions/SchemaClassName",
12953
+ "description": "icon 上的css 类名"
12954
+ },
12955
+ "rightIcon": {
12956
+ "$ref": "#/definitions/SchemaIcon",
12957
+ "description": "右侧按钮图标, iconfont 的类名"
12958
+ },
12959
+ "rightIconClassName": {
12960
+ "$ref": "#/definitions/SchemaClassName",
12961
+ "description": "右侧 icon 上的 css 类名"
12962
+ },
12963
+ "loadingClassName": {
12964
+ "$ref": "#/definitions/SchemaClassName",
12965
+ "description": "loading 上的css 类名"
12966
+ },
12967
+ "label": {
12968
+ "type": "string",
12969
+ "description": "按钮文字"
12970
+ },
12971
+ "level": {
12972
+ "type": "string",
12973
+ "enum": [
12974
+ "info",
12975
+ "success",
12976
+ "warning",
12977
+ "danger",
12978
+ "link",
12979
+ "primary",
12980
+ "dark",
12981
+ "light"
12982
+ ],
12983
+ "description": "按钮样式"
12984
+ },
12985
+ "primary": {
12986
+ "type": "boolean"
12987
+ },
12988
+ "size": {
12989
+ "type": "string",
12990
+ "enum": [
12991
+ "xs",
12992
+ "sm",
12993
+ "md",
12994
+ "lg"
12995
+ ],
12996
+ "description": "按钮大小"
12997
+ },
12998
+ "tooltip": {
12999
+ "$ref": "#/definitions/SchemaTooltip"
13000
+ },
13001
+ "tooltipPlacement": {
13002
+ "type": "string",
13003
+ "enum": [
13004
+ "top",
13005
+ "right",
13006
+ "bottom",
13007
+ "left"
13008
+ ]
13009
+ },
13010
+ "confirmText": {
13011
+ "type": "string",
13012
+ "description": "提示文字,配置了操作前会要求用户确认。"
13013
+ },
13014
+ "required": {
13015
+ "type": "array",
13016
+ "items": {
13017
+ "type": "string"
13018
+ },
13019
+ "description": "如果按钮在form中,配置此属性会要求用户把指定的字段通过验证后才会触发行为。"
13020
+ },
13021
+ "activeLevel": {
13022
+ "type": "string",
13023
+ "description": "激活状态时的样式"
13024
+ },
13025
+ "activeClassName": {
13026
+ "type": "string",
13027
+ "description": "激活状态时的类名"
13028
+ },
13029
+ "close": {
13030
+ "type": [
13031
+ "boolean",
13032
+ "string"
13033
+ ],
13034
+ "description": "如果按钮在弹框中,可以配置这个动作完成后是否关闭弹窗,或者指定关闭目标弹框。"
13035
+ },
13036
+ "requireSelected": {
13037
+ "type": "boolean",
13038
+ "description": "当按钮时批量操作按钮时,默认必须有勾选元素才能可点击,如果此属性配置成 false,则没有点选成员也能点击。"
13039
+ },
13040
+ "mergeData": {
13041
+ "type": "boolean",
13042
+ "description": "是否将弹框中数据 merge 到父级作用域。"
13043
+ },
13044
+ "target": {
13045
+ "type": "string",
13046
+ "description": "可以指定让谁来触发这个动作。"
13047
+ },
13048
+ "countDown": {
13049
+ "type": "number",
13050
+ "description": "点击后的禁止倒计时(秒)"
13051
+ },
13052
+ "countDownTpl": {
13053
+ "type": "string",
13054
+ "description": "倒计时文字自定义"
13055
+ },
13056
+ "badge": {
13057
+ "$ref": "#/definitions/BadgeSchema",
13058
+ "description": "角标"
13059
+ },
13060
+ "hotKey": {
13061
+ "type": "string",
13062
+ "description": "键盘快捷键"
13063
+ },
13064
+ "loadingOn": {
13065
+ "type": "string",
13066
+ "description": "是否显示loading效果"
13067
+ },
13068
+ "onClick": {
13069
+ "anyOf": [
13070
+ {
13071
+ "type": "string"
13072
+ },
13073
+ {}
13074
+ ],
13075
+ "description": "自定义事件处理函数"
13076
+ },
13077
+ "body": {
13078
+ "$ref": "#/definitions/SchemaCollection",
13079
+ "description": "子内容"
13080
+ },
13081
+ "actionType": {
13082
+ "type": "string"
13083
+ }
13084
+ },
13085
+ "required": [
13086
+ "type"
13087
+ ]
13088
+ },
13089
+ {
13090
+ "$ref": "#/definitions/DividerSchema"
13091
+ },
13092
+ {
13093
+ "type": "string",
13094
+ "const": "divider"
13095
+ }
13096
+ ]
13097
+ },
10926
13098
  "EachSchema": {
10927
13099
  "type": "object",
10928
13100
  "properties": {
@@ -40550,7 +42722,7 @@
40550
42722
  "$ref": "#/definitions/DropdownButtonSchema",
40551
42723
  "additionalProperties": false,
40552
42724
  "patternProperties": {
40553
- "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|block|btnClassName|buttons|label|level|closeOnOutside|closeOnClick|size|align|iconOnly|rightIcon|trigger|hideCaret|labelClassName|name|popOver|quickEdit|copyable)$": {}
42725
+ "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|block|btnClassName|buttons|label|level|closeOnOutside|closeOnClick|size|align|iconOnly|rightIcon|trigger|hideCaret|menuClassName|labelClassName|name|popOver|quickEdit|copyable)$": {}
40554
42726
  }
40555
42727
  },
40556
42728
  {
@@ -41344,7 +43516,7 @@
41344
43516
  "$ref": "#/definitions/DropdownButtonSchema",
41345
43517
  "additionalProperties": false,
41346
43518
  "patternProperties": {
41347
- "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|block|btnClassName|buttons|label|level|closeOnOutside|closeOnClick|size|align|iconOnly|rightIcon|trigger|hideCaret|labelClassName|name|popOver|quickEdit|copyable)$": {}
43519
+ "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|block|btnClassName|buttons|label|level|closeOnOutside|closeOnClick|size|align|iconOnly|rightIcon|trigger|hideCaret|menuClassName|labelClassName|name|popOver|quickEdit|copyable)$": {}
41348
43520
  }
41349
43521
  },
41350
43522
  {
@@ -42138,7 +44310,7 @@
42138
44310
  "$ref": "#/definitions/DropdownButtonSchema",
42139
44311
  "additionalProperties": false,
42140
44312
  "patternProperties": {
42141
- "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|block|btnClassName|buttons|label|level|closeOnOutside|closeOnClick|size|align|iconOnly|rightIcon|trigger|hideCaret|fixed|name|popOver|quickEdit|quickEditOnUpdate|copyable|sortable|searchable|toggled|width|classNameExpr|labelClassName|filterable|breakpoint|remark|value|unique)$": {}
44313
+ "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|block|btnClassName|buttons|label|level|closeOnOutside|closeOnClick|size|align|iconOnly|rightIcon|trigger|hideCaret|menuClassName|fixed|name|popOver|quickEdit|quickEditOnUpdate|copyable|sortable|searchable|toggled|width|classNameExpr|labelClassName|filterable|breakpoint|remark|value|unique)$": {}
42142
44314
  }
42143
44315
  },
42144
44316
  {
@@ -42932,7 +45104,7 @@
42932
45104
  "$ref": "#/definitions/DropdownButtonSchema",
42933
45105
  "additionalProperties": false,
42934
45106
  "patternProperties": {
42935
- "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|block|btnClassName|buttons|label|level|closeOnOutside|closeOnClick|size|align|iconOnly|rightIcon|trigger|hideCaret|x|y|w|h|width|height|valign|gridClassName)$": {}
45107
+ "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|block|btnClassName|buttons|label|level|closeOnOutside|closeOnClick|size|align|iconOnly|rightIcon|trigger|hideCaret|menuClassName|x|y|w|h|width|height|valign|gridClassName)$": {}
42936
45108
  }
42937
45109
  },
42938
45110
  {
@@ -43726,7 +45898,7 @@
43726
45898
  "$ref": "#/definitions/DropdownButtonSchema",
43727
45899
  "additionalProperties": false,
43728
45900
  "patternProperties": {
43729
- "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|block|btnClassName|buttons|label|level|closeOnOutside|closeOnClick|size|align|iconOnly|rightIcon|trigger|hideCaret|rowClassName|cellClassName)$": {}
45901
+ "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|block|btnClassName|buttons|label|level|closeOnOutside|closeOnClick|size|align|iconOnly|rightIcon|trigger|hideCaret|menuClassName|rowClassName|cellClassName)$": {}
43730
45902
  }
43731
45903
  },
43732
45904
  {
@@ -44520,7 +46692,7 @@
44520
46692
  "$ref": "#/definitions/DropdownButtonSchema",
44521
46693
  "additionalProperties": false,
44522
46694
  "patternProperties": {
44523
- "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|block|btnClassName|buttons|label|level|closeOnOutside|closeOnClick|size|align|iconOnly|rightIcon|trigger|hideCaret|unique|columnClassName)$": {}
46695
+ "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|block|btnClassName|buttons|label|level|closeOnOutside|closeOnClick|size|align|iconOnly|rightIcon|trigger|hideCaret|menuClassName|unique|columnClassName)$": {}
44524
46696
  }
44525
46697
  },
44526
46698
  {
@@ -45314,7 +47486,7 @@
45314
47486
  "$ref": "#/definitions/DropdownButtonSchema",
45315
47487
  "additionalProperties": false,
45316
47488
  "patternProperties": {
45317
- "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|block|btnClassName|buttons|label|level|closeOnOutside|closeOnClick|size|align|iconOnly|rightIcon|trigger|hideCaret|columnClassName|columnRatio)$": {}
47489
+ "^(type|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|block|btnClassName|buttons|label|level|closeOnOutside|closeOnClick|size|align|iconOnly|rightIcon|trigger|hideCaret|menuClassName|columnClassName|columnRatio)$": {}
45318
47490
  }
45319
47491
  },
45320
47492
  {