@next-bricks/presentational-bricks 1.247.2 → 1.247.5
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.
- package/CHANGELOG.md +27 -0
- package/deploy/contract.yaml +109 -109
- package/dist/bricks.json +25 -25
- package/dist/{index.3f41ef45.js → index.b6a12bb9.js} +2 -2
- package/dist/index.b6a12bb9.js.map +1 -0
- package/dist/lazy-bricks/{~bricks-use-html-to-react.dd92.258f9ac8.js → ~bricks-use-html-to-react.dd92.97dabf8a.js} +2 -2
- package/dist/lazy-bricks/~bricks-use-html-to-react.dd92.97dabf8a.js.map +1 -0
- package/dist/stories.json +164 -177
- package/package.json +3 -3
- package/dist/index.3f41ef45.js.map +0 -1
- package/dist/lazy-bricks/~bricks-use-html-to-react.dd92.258f9ac8.js.map +0 -1
package/dist/stories.json
CHANGED
|
@@ -14661,25 +14661,15 @@
|
|
|
14661
14661
|
"action": "console.info"
|
|
14662
14662
|
}
|
|
14663
14663
|
}
|
|
14664
|
-
}
|
|
14665
|
-
]
|
|
14666
|
-
}
|
|
14667
|
-
}
|
|
14668
|
-
},
|
|
14669
|
-
{
|
|
14670
|
-
"brick": "div",
|
|
14671
|
-
"slots": {
|
|
14672
|
-
"": {
|
|
14673
|
-
"type": "bricks",
|
|
14674
|
-
"bricks": [
|
|
14664
|
+
},
|
|
14675
14665
|
{
|
|
14676
14666
|
"brick": "basic-bricks.general-button",
|
|
14677
14667
|
"properties": {
|
|
14678
|
-
"buttonName": "
|
|
14668
|
+
"buttonName": "Info"
|
|
14679
14669
|
},
|
|
14680
14670
|
"events": {
|
|
14681
14671
|
"general.button.click": {
|
|
14682
|
-
"target": "presentational-bricks\\.modal-confirm#
|
|
14672
|
+
"target": "presentational-bricks\\.modal-confirm#infoModal",
|
|
14683
14673
|
"method": "open"
|
|
14684
14674
|
}
|
|
14685
14675
|
}
|
|
@@ -14687,15 +14677,14 @@
|
|
|
14687
14677
|
{
|
|
14688
14678
|
"brick": "presentational-bricks.modal-confirm",
|
|
14689
14679
|
"properties": {
|
|
14690
|
-
"id": "
|
|
14680
|
+
"id": "infoModal",
|
|
14681
|
+
"type": "info",
|
|
14691
14682
|
"dataSource": {
|
|
14692
14683
|
"name": "测试程序包",
|
|
14693
14684
|
"version": "1.0.0"
|
|
14694
14685
|
},
|
|
14695
|
-
"modalTitle": "
|
|
14696
|
-
"content": "
|
|
14697
|
-
"isDelete": true,
|
|
14698
|
-
"expect": "pipeline"
|
|
14686
|
+
"modalTitle": "info",
|
|
14687
|
+
"content": "#{name}更新中"
|
|
14699
14688
|
},
|
|
14700
14689
|
"events": {
|
|
14701
14690
|
"confirm.ok": {
|
|
@@ -14705,25 +14694,15 @@
|
|
|
14705
14694
|
"action": "console.info"
|
|
14706
14695
|
}
|
|
14707
14696
|
}
|
|
14708
|
-
}
|
|
14709
|
-
]
|
|
14710
|
-
}
|
|
14711
|
-
}
|
|
14712
|
-
},
|
|
14713
|
-
{
|
|
14714
|
-
"brick": "div",
|
|
14715
|
-
"slots": {
|
|
14716
|
-
"": {
|
|
14717
|
-
"type": "bricks",
|
|
14718
|
-
"bricks": [
|
|
14697
|
+
},
|
|
14719
14698
|
{
|
|
14720
14699
|
"brick": "basic-bricks.general-button",
|
|
14721
14700
|
"properties": {
|
|
14722
|
-
"buttonName": "
|
|
14701
|
+
"buttonName": "Delete"
|
|
14723
14702
|
},
|
|
14724
14703
|
"events": {
|
|
14725
14704
|
"general.button.click": {
|
|
14726
|
-
"target": "presentational-bricks\\.modal-confirm#
|
|
14705
|
+
"target": "presentational-bricks\\.modal-confirm#deleteModal",
|
|
14727
14706
|
"method": "open"
|
|
14728
14707
|
}
|
|
14729
14708
|
}
|
|
@@ -14731,14 +14710,15 @@
|
|
|
14731
14710
|
{
|
|
14732
14711
|
"brick": "presentational-bricks.modal-confirm",
|
|
14733
14712
|
"properties": {
|
|
14734
|
-
"id": "
|
|
14735
|
-
"type": "info",
|
|
14713
|
+
"id": "deleteModal",
|
|
14736
14714
|
"dataSource": {
|
|
14737
14715
|
"name": "测试程序包",
|
|
14738
14716
|
"version": "1.0.0"
|
|
14739
14717
|
},
|
|
14740
|
-
"modalTitle": "
|
|
14741
|
-
"content": "
|
|
14718
|
+
"modalTitle": "删除提示确认框",
|
|
14719
|
+
"content": "请确认后在下方输入<strong>pipeline</strong>来解锁确定按钮",
|
|
14720
|
+
"isDelete": true,
|
|
14721
|
+
"expect": "pipeline"
|
|
14742
14722
|
},
|
|
14743
14723
|
"events": {
|
|
14744
14724
|
"confirm.ok": {
|
|
@@ -14748,17 +14728,7 @@
|
|
|
14748
14728
|
"action": "console.info"
|
|
14749
14729
|
}
|
|
14750
14730
|
}
|
|
14751
|
-
}
|
|
14752
|
-
]
|
|
14753
|
-
}
|
|
14754
|
-
}
|
|
14755
|
-
},
|
|
14756
|
-
{
|
|
14757
|
-
"brick": "div",
|
|
14758
|
-
"slots": {
|
|
14759
|
-
"": {
|
|
14760
|
-
"type": "bricks",
|
|
14761
|
-
"bricks": [
|
|
14731
|
+
},
|
|
14762
14732
|
{
|
|
14763
14733
|
"brick": "basic-bricks.general-button",
|
|
14764
14734
|
"properties": {
|
|
@@ -14791,17 +14761,7 @@
|
|
|
14791
14761
|
"action": "console.info"
|
|
14792
14762
|
}
|
|
14793
14763
|
}
|
|
14794
|
-
}
|
|
14795
|
-
]
|
|
14796
|
-
}
|
|
14797
|
-
}
|
|
14798
|
-
},
|
|
14799
|
-
{
|
|
14800
|
-
"brick": "div",
|
|
14801
|
-
"slots": {
|
|
14802
|
-
"": {
|
|
14803
|
-
"type": "bricks",
|
|
14804
|
-
"bricks": [
|
|
14764
|
+
},
|
|
14805
14765
|
{
|
|
14806
14766
|
"brick": "basic-bricks.general-button",
|
|
14807
14767
|
"properties": {
|
|
@@ -14834,9 +14794,42 @@
|
|
|
14834
14794
|
"action": "console.info"
|
|
14835
14795
|
}
|
|
14836
14796
|
}
|
|
14797
|
+
},
|
|
14798
|
+
{
|
|
14799
|
+
"brick": "basic-bricks.general-button",
|
|
14800
|
+
"properties": {
|
|
14801
|
+
"buttonName": "Warning"
|
|
14802
|
+
},
|
|
14803
|
+
"events": {
|
|
14804
|
+
"general.button.click": {
|
|
14805
|
+
"target": "presentational-bricks\\.modal-confirm#warningModal",
|
|
14806
|
+
"method": "open"
|
|
14807
|
+
}
|
|
14808
|
+
}
|
|
14809
|
+
},
|
|
14810
|
+
{
|
|
14811
|
+
"brick": "presentational-bricks.modal-confirm",
|
|
14812
|
+
"properties": {
|
|
14813
|
+
"id": "warningModal",
|
|
14814
|
+
"type": "warning",
|
|
14815
|
+
"modalTitle": "warning",
|
|
14816
|
+
"content": "补丁更新警告"
|
|
14817
|
+
},
|
|
14818
|
+
"events": {
|
|
14819
|
+
"confirm.ok": {
|
|
14820
|
+
"action": "console.info"
|
|
14821
|
+
},
|
|
14822
|
+
"confirm.cancel": {
|
|
14823
|
+
"action": "console.info"
|
|
14824
|
+
}
|
|
14825
|
+
}
|
|
14837
14826
|
}
|
|
14838
14827
|
]
|
|
14839
14828
|
}
|
|
14829
|
+
},
|
|
14830
|
+
"description": {
|
|
14831
|
+
"title": "基本",
|
|
14832
|
+
"message": "各种类型的确认对话框"
|
|
14840
14833
|
}
|
|
14841
14834
|
},
|
|
14842
14835
|
{
|
|
@@ -14848,7 +14841,7 @@
|
|
|
14848
14841
|
{
|
|
14849
14842
|
"brick": "basic-bricks.general-button",
|
|
14850
14843
|
"properties": {
|
|
14851
|
-
"buttonName": "
|
|
14844
|
+
"buttonName": "Template Demo"
|
|
14852
14845
|
},
|
|
14853
14846
|
"events": {
|
|
14854
14847
|
"general.button.click": {
|
|
@@ -14863,11 +14856,12 @@
|
|
|
14863
14856
|
"id": "warningModal",
|
|
14864
14857
|
"type": "warning",
|
|
14865
14858
|
"dataSource": {
|
|
14866
|
-
"name": "
|
|
14859
|
+
"name": "春节热更新",
|
|
14867
14860
|
"version": "1.0.0"
|
|
14868
14861
|
},
|
|
14869
14862
|
"modalTitle": "warning",
|
|
14870
|
-
"content": "
|
|
14863
|
+
"content": "正在更新补丁 <strong>#{name}</strong>",
|
|
14864
|
+
"extraContent": "版本号 <strong>#{version}</strong>"
|
|
14871
14865
|
},
|
|
14872
14866
|
"events": {
|
|
14873
14867
|
"confirm.ok": {
|
|
@@ -14880,6 +14874,10 @@
|
|
|
14880
14874
|
}
|
|
14881
14875
|
]
|
|
14882
14876
|
}
|
|
14877
|
+
},
|
|
14878
|
+
"description": {
|
|
14879
|
+
"title": "使用模板语言",
|
|
14880
|
+
"message": "通过dataSource配合模板语言,实现内容的动态渲染"
|
|
14883
14881
|
}
|
|
14884
14882
|
},
|
|
14885
14883
|
{
|
|
@@ -14888,57 +14886,6 @@
|
|
|
14888
14886
|
"": {
|
|
14889
14887
|
"type": "bricks",
|
|
14890
14888
|
"bricks": [
|
|
14891
|
-
{
|
|
14892
|
-
"brick": "presentational-bricks.brick-utils",
|
|
14893
|
-
"bg": true
|
|
14894
|
-
},
|
|
14895
|
-
{
|
|
14896
|
-
"brick": "providers-of-cmdb.instance-api-delete-instance",
|
|
14897
|
-
"injectDeep": true,
|
|
14898
|
-
"bg": true,
|
|
14899
|
-
"properties": {
|
|
14900
|
-
"args": [
|
|
14901
|
-
"HOST",
|
|
14902
|
-
"1"
|
|
14903
|
-
]
|
|
14904
|
-
},
|
|
14905
|
-
"events": {
|
|
14906
|
-
"response.success": [
|
|
14907
|
-
{
|
|
14908
|
-
"target": "presentational-bricks\\.modal-confirm#instance-delete-modal",
|
|
14909
|
-
"properties": {
|
|
14910
|
-
"confirmLoading": false,
|
|
14911
|
-
"cancelButtonProps": {
|
|
14912
|
-
"disabled": false
|
|
14913
|
-
}
|
|
14914
|
-
}
|
|
14915
|
-
},
|
|
14916
|
-
{
|
|
14917
|
-
"target": "presentational-bricks\\.modal-confirm#confirmLoadingModal",
|
|
14918
|
-
"method": "close"
|
|
14919
|
-
}
|
|
14920
|
-
],
|
|
14921
|
-
"response.error": [
|
|
14922
|
-
{
|
|
14923
|
-
"target": "presentational-bricks\\.modal-confirm#instance-delete-modal",
|
|
14924
|
-
"properties": {
|
|
14925
|
-
"confirmLoading": false,
|
|
14926
|
-
"cancelButtonProps": {
|
|
14927
|
-
"disabled": false
|
|
14928
|
-
}
|
|
14929
|
-
}
|
|
14930
|
-
},
|
|
14931
|
-
{
|
|
14932
|
-
"target": "presentational-bricks\\.modal-confirm#confirmLoadingModal",
|
|
14933
|
-
"method": "close"
|
|
14934
|
-
},
|
|
14935
|
-
{
|
|
14936
|
-
"target": "presentational-bricks\\.brick-utils",
|
|
14937
|
-
"method": "handleHttpError"
|
|
14938
|
-
}
|
|
14939
|
-
]
|
|
14940
|
-
}
|
|
14941
|
-
},
|
|
14942
14889
|
{
|
|
14943
14890
|
"brick": "basic-bricks.general-button",
|
|
14944
14891
|
"properties": {
|
|
@@ -14966,16 +14913,29 @@
|
|
|
14966
14913
|
"events": {
|
|
14967
14914
|
"confirm.ok": [
|
|
14968
14915
|
{
|
|
14969
|
-
"
|
|
14970
|
-
"
|
|
14916
|
+
"action": "message.info",
|
|
14917
|
+
"args": [
|
|
14918
|
+
"requesting some api..."
|
|
14919
|
+
]
|
|
14971
14920
|
},
|
|
14972
14921
|
{
|
|
14973
14922
|
"target": "presentational-bricks\\.modal-confirm#confirmLoadingModal",
|
|
14974
14923
|
"properties": {
|
|
14975
|
-
"confirmLoading": true
|
|
14976
|
-
|
|
14977
|
-
|
|
14978
|
-
|
|
14924
|
+
"confirmLoading": true
|
|
14925
|
+
}
|
|
14926
|
+
}
|
|
14927
|
+
],
|
|
14928
|
+
"confirm.cancel": [
|
|
14929
|
+
{
|
|
14930
|
+
"action": "message.warn",
|
|
14931
|
+
"args": [
|
|
14932
|
+
"cancel requesting api..."
|
|
14933
|
+
]
|
|
14934
|
+
},
|
|
14935
|
+
{
|
|
14936
|
+
"target": "presentational-bricks\\.modal-confirm#confirmLoadingModal",
|
|
14937
|
+
"properties": {
|
|
14938
|
+
"confirmLoading": false
|
|
14979
14939
|
}
|
|
14980
14940
|
}
|
|
14981
14941
|
]
|
|
@@ -14983,6 +14943,10 @@
|
|
|
14983
14943
|
}
|
|
14984
14944
|
]
|
|
14985
14945
|
}
|
|
14946
|
+
},
|
|
14947
|
+
"description": {
|
|
14948
|
+
"title": "Loading状态",
|
|
14949
|
+
"message": "在发起后台请求并且请求较慢的情况下可以设置 loading 状态优化用户体验"
|
|
14986
14950
|
}
|
|
14987
14951
|
},
|
|
14988
14952
|
{
|
|
@@ -14996,24 +14960,18 @@
|
|
|
14996
14960
|
"properties": {
|
|
14997
14961
|
"id": "delete-confirm",
|
|
14998
14962
|
"modalTitle": "工作空间删除确认",
|
|
14999
|
-
"extraContent": "有关联的不能删除",
|
|
15000
|
-
"
|
|
14963
|
+
"extraContent": "Tips: 有关联的不能删除",
|
|
14964
|
+
"okType": "danger"
|
|
15001
14965
|
}
|
|
15002
14966
|
},
|
|
15003
14967
|
{
|
|
15004
14968
|
"brick": "basic-bricks.general-custom-buttons",
|
|
15005
14969
|
"properties": {
|
|
15006
14970
|
"dataSource": {
|
|
15007
|
-
"title": "
|
|
15008
|
-
"
|
|
14971
|
+
"title": "MyWorkspace",
|
|
14972
|
+
"relatedCount": 1
|
|
15009
14973
|
},
|
|
15010
14974
|
"customButtons": [
|
|
15011
|
-
{
|
|
15012
|
-
"isDropdown": true,
|
|
15013
|
-
"text": "另存为",
|
|
15014
|
-
"icon": "file-add",
|
|
15015
|
-
"eventName": "instance.saveAs"
|
|
15016
|
-
},
|
|
15017
14975
|
{
|
|
15018
14976
|
"isDropdown": true,
|
|
15019
14977
|
"text": "删除工作区间",
|
|
@@ -15026,19 +14984,16 @@
|
|
|
15026
14984
|
"events": {
|
|
15027
14985
|
"workload.delete": [
|
|
15028
14986
|
{
|
|
15029
|
-
"action": "console.log"
|
|
15030
|
-
"args": [
|
|
15031
|
-
"${event.detail.count|boolean}"
|
|
15032
|
-
]
|
|
14987
|
+
"action": "console.log"
|
|
15033
14988
|
},
|
|
15034
14989
|
{
|
|
15035
14990
|
"target": "#delete-confirm",
|
|
15036
14991
|
"method": "openWithArgs",
|
|
15037
14992
|
"args": [
|
|
15038
14993
|
{
|
|
15039
|
-
"content": "
|
|
14994
|
+
"content": "<% `确认要删除工作空间<strong>${EVENT.detail.title}</strong>吗?` %>",
|
|
15040
14995
|
"okButtonProps": {
|
|
15041
|
-
"disabled": "
|
|
14996
|
+
"disabled": "<% EVENT.detail.relatedCount %>"
|
|
15042
14997
|
}
|
|
15043
14998
|
}
|
|
15044
14999
|
]
|
|
@@ -15048,6 +15003,10 @@
|
|
|
15048
15003
|
}
|
|
15049
15004
|
]
|
|
15050
15005
|
}
|
|
15006
|
+
},
|
|
15007
|
+
"description": {
|
|
15008
|
+
"title": "设置按钮的高级属性",
|
|
15009
|
+
"message": "通过设置okButtonProps和cancelButtonProps来改变按钮样式,例如设置禁用"
|
|
15051
15010
|
}
|
|
15052
15011
|
}
|
|
15053
15012
|
],
|
|
@@ -15057,6 +15016,24 @@
|
|
|
15057
15016
|
"name": "presentational-bricks.modal-confirm",
|
|
15058
15017
|
"dockind": "brick",
|
|
15059
15018
|
"description": "用于提示和二次确认的场景",
|
|
15019
|
+
"groupI18N": {
|
|
15020
|
+
"basic": {
|
|
15021
|
+
"en": "Basic",
|
|
15022
|
+
"zh": "常用"
|
|
15023
|
+
},
|
|
15024
|
+
"buttonAndInteract": {
|
|
15025
|
+
"en": "Button/Interact",
|
|
15026
|
+
"zh": "按钮及交互"
|
|
15027
|
+
},
|
|
15028
|
+
"ui": {
|
|
15029
|
+
"en": "UI",
|
|
15030
|
+
"zh": "外观"
|
|
15031
|
+
},
|
|
15032
|
+
"other": {
|
|
15033
|
+
"en": "其他",
|
|
15034
|
+
"zh": "other"
|
|
15035
|
+
}
|
|
15036
|
+
},
|
|
15060
15037
|
"editor": "shared-editors.general-confirm--editor",
|
|
15061
15038
|
"author": "jo",
|
|
15062
15039
|
"slots": null,
|
|
@@ -15081,71 +15058,63 @@
|
|
|
15081
15058
|
"type": "string",
|
|
15082
15059
|
"required": "false",
|
|
15083
15060
|
"default": "-",
|
|
15084
|
-
"description": "模态框标题,代替之前 title 属性, 支持模板(即通过 #{xxx} 方式获取数据源字段的上值,由于框架目前提供了 transform 机制也可以达到此需求,推荐使用框架提供的能力)"
|
|
15061
|
+
"description": "模态框标题,代替之前 title 属性, 支持模板(即通过 #{xxx} 方式获取数据源字段的上值,由于框架目前提供了 transform 机制也可以达到此需求,推荐使用框架提供的能力)",
|
|
15062
|
+
"group": "basic"
|
|
15085
15063
|
},
|
|
15086
15064
|
{
|
|
15087
15065
|
"name": "content",
|
|
15088
15066
|
"type": "string",
|
|
15089
15067
|
"required": "false",
|
|
15090
15068
|
"default": "-",
|
|
15091
|
-
"description": "模态框内容,支持模板和 HTML(自动消毒)"
|
|
15069
|
+
"description": "模态框内容,支持模板和 HTML(自动消毒)",
|
|
15070
|
+
"group": "basic"
|
|
15092
15071
|
},
|
|
15093
15072
|
{
|
|
15094
15073
|
"name": "extraContent",
|
|
15095
15074
|
"type": "string",
|
|
15096
15075
|
"required": "false",
|
|
15097
15076
|
"default": "-",
|
|
15098
|
-
"description": "模态框的额外内容,支持模板和 HTML(自动消毒)"
|
|
15077
|
+
"description": "模态框的额外内容,支持模板和 HTML(自动消毒)",
|
|
15078
|
+
"group": "basic"
|
|
15099
15079
|
},
|
|
15100
15080
|
{
|
|
15101
|
-
"name": "
|
|
15102
|
-
"type": "
|
|
15081
|
+
"name": "dataSource",
|
|
15082
|
+
"type": "Record<string, any>",
|
|
15103
15083
|
"required": "false",
|
|
15104
15084
|
"default": "-",
|
|
15105
|
-
"description": "
|
|
15085
|
+
"description": "解析模板时的数据源,配合content、extraContent使用"
|
|
15106
15086
|
},
|
|
15107
15087
|
{
|
|
15108
|
-
"name": "
|
|
15109
|
-
"type": "
|
|
15088
|
+
"name": "contentBrick",
|
|
15089
|
+
"type": "{useBrick: UseBrickConf}",
|
|
15110
15090
|
"required": "false",
|
|
15111
|
-
"default": "
|
|
15112
|
-
"description": "
|
|
15091
|
+
"default": "false",
|
|
15092
|
+
"description": "panelBrick"
|
|
15113
15093
|
},
|
|
15114
15094
|
{
|
|
15115
15095
|
"name": "type",
|
|
15116
15096
|
"type": "\"info\" | \"success\" | \"error\" | \"warning\" | \"confirm\"",
|
|
15117
15097
|
"required": "false",
|
|
15118
15098
|
"default": "confirm",
|
|
15119
|
-
"description": "对话框类型"
|
|
15099
|
+
"description": "对话框类型",
|
|
15100
|
+
"group": "ui"
|
|
15120
15101
|
},
|
|
15121
15102
|
{
|
|
15122
15103
|
"name": "expect",
|
|
15123
15104
|
"type": "string",
|
|
15124
15105
|
"required": "false",
|
|
15125
15106
|
"default": "-",
|
|
15126
|
-
"description": "支持模板,若设置,需输入该文本方可删除"
|
|
15127
|
-
|
|
15128
|
-
{
|
|
15129
|
-
"name": "confirmLoading",
|
|
15130
|
-
"type": "boolean",
|
|
15131
|
-
"required": "false",
|
|
15132
|
-
"default": "false",
|
|
15133
|
-
"description": "确定按钮是否为 loading 状态,在发起后台请求并且请求较慢的情况下可以设置 loading 状态优化用户体验"
|
|
15134
|
-
},
|
|
15135
|
-
{
|
|
15136
|
-
"name": "dataSource",
|
|
15137
|
-
"type": "Record<string, any>",
|
|
15138
|
-
"required": "false",
|
|
15139
|
-
"default": "-",
|
|
15140
|
-
"description": "解析模板时的数据源"
|
|
15107
|
+
"description": "支持模板,若设置,需输入该文本方可删除",
|
|
15108
|
+
"group": "ui"
|
|
15141
15109
|
},
|
|
15142
15110
|
{
|
|
15143
|
-
"name": "
|
|
15111
|
+
"name": "isDelete",
|
|
15144
15112
|
"type": "boolean",
|
|
15145
15113
|
"required": "false",
|
|
15146
15114
|
"default": "-",
|
|
15147
|
-
"description": "
|
|
15148
|
-
"
|
|
15115
|
+
"description": "`已废弃` (可以用`okType`属性代替) 删除模式的模态框:确定按钮的文本为删除,并红色高亮显示",
|
|
15116
|
+
"deprecated": true,
|
|
15117
|
+
"group": "ui"
|
|
15149
15118
|
},
|
|
15150
15119
|
{
|
|
15151
15120
|
"name": "okText",
|
|
@@ -15153,7 +15122,7 @@
|
|
|
15153
15122
|
"required": "false",
|
|
15154
15123
|
"default": "-",
|
|
15155
15124
|
"description": "确定按钮文字",
|
|
15156
|
-
"group": "
|
|
15125
|
+
"group": "buttonAndInteract"
|
|
15157
15126
|
},
|
|
15158
15127
|
{
|
|
15159
15128
|
"name": "okType",
|
|
@@ -15161,15 +15130,31 @@
|
|
|
15161
15130
|
"required": "false",
|
|
15162
15131
|
"default": "-",
|
|
15163
15132
|
"description": "确定按钮类型",
|
|
15164
|
-
"group": "
|
|
15133
|
+
"group": "buttonAndInteract"
|
|
15165
15134
|
},
|
|
15166
15135
|
{
|
|
15167
15136
|
"name": "okButtonProps",
|
|
15168
15137
|
"type": "ButtonProps",
|
|
15169
15138
|
"required": "false",
|
|
15170
15139
|
"default": "-",
|
|
15171
|
-
"description": "确定按钮属性,同 ant design 的 Modal 的 [okButtonProps](https://ant.design/components/modal-cn
|
|
15172
|
-
"group": "
|
|
15140
|
+
"description": "确定按钮属性,同 ant design 的 Modal 的 [okButtonProps](https://ant.design/components/modal-cn#API)",
|
|
15141
|
+
"group": "buttonAndInteract"
|
|
15142
|
+
},
|
|
15143
|
+
{
|
|
15144
|
+
"name": "closeWhenOk",
|
|
15145
|
+
"type": "boolean",
|
|
15146
|
+
"required": "false",
|
|
15147
|
+
"default": "true",
|
|
15148
|
+
"description": "点击确定按钮是否关闭模态框",
|
|
15149
|
+
"group": "buttonAndInteract"
|
|
15150
|
+
},
|
|
15151
|
+
{
|
|
15152
|
+
"name": "confirmLoading",
|
|
15153
|
+
"type": "boolean",
|
|
15154
|
+
"required": "false",
|
|
15155
|
+
"default": "false",
|
|
15156
|
+
"description": "确定按钮是否为 loading 状态,在发起后台请求并且请求较慢的情况下可以设置 loading 状态优化用户体验",
|
|
15157
|
+
"group": "buttonAndInteract"
|
|
15173
15158
|
},
|
|
15174
15159
|
{
|
|
15175
15160
|
"name": "cancelText",
|
|
@@ -15177,31 +15162,33 @@
|
|
|
15177
15162
|
"required": "false",
|
|
15178
15163
|
"default": "-",
|
|
15179
15164
|
"description": "取消按钮文字",
|
|
15180
|
-
"group": "
|
|
15165
|
+
"group": "buttonAndInteract"
|
|
15181
15166
|
},
|
|
15182
15167
|
{
|
|
15183
15168
|
"name": "cancelButtonProps",
|
|
15184
15169
|
"type": "ButtonProps",
|
|
15185
15170
|
"required": "false",
|
|
15186
15171
|
"default": "-",
|
|
15187
|
-
"description": "取消按钮属性,同 ant design 的 Modal 的 [cancelButtonProps](https://ant.design/components/modal-cn
|
|
15188
|
-
"group": "
|
|
15172
|
+
"description": "取消按钮属性,同 ant design 的 Modal 的 [cancelButtonProps](https://ant.design/components/modal-cn#API)",
|
|
15173
|
+
"group": "buttonAndInteract"
|
|
15189
15174
|
},
|
|
15190
15175
|
{
|
|
15191
|
-
"name": "
|
|
15192
|
-
"type": "
|
|
15176
|
+
"name": "visible",
|
|
15177
|
+
"type": "boolean",
|
|
15193
15178
|
"required": "false",
|
|
15194
|
-
"default": "
|
|
15195
|
-
"description": "
|
|
15179
|
+
"default": "-",
|
|
15180
|
+
"description": "`已废弃` 模态框是否可见,请使用 `open` 和 `close` 方法打开和关闭模态框",
|
|
15181
|
+
"deprecated": true,
|
|
15182
|
+
"group": "other"
|
|
15196
15183
|
},
|
|
15197
15184
|
{
|
|
15198
15185
|
"name": "title",
|
|
15199
15186
|
"type": "string",
|
|
15200
15187
|
"required": "false",
|
|
15201
15188
|
"default": "-",
|
|
15202
|
-
"description": "
|
|
15189
|
+
"description": "`已废弃` 请使用 modalTitle 代替",
|
|
15203
15190
|
"deprecated": true,
|
|
15204
|
-
"group": "
|
|
15191
|
+
"group": "other"
|
|
15205
15192
|
}
|
|
15206
15193
|
],
|
|
15207
15194
|
"events": [
|
|
@@ -15212,8 +15199,8 @@
|
|
|
15212
15199
|
},
|
|
15213
15200
|
{
|
|
15214
15201
|
"type": "confirm.ok",
|
|
15215
|
-
"detail": "
|
|
15216
|
-
"description": "点击确定按钮的事件,事件的 detail
|
|
15202
|
+
"detail": "`Record<string, any>`",
|
|
15203
|
+
"description": "点击确定按钮的事件,事件的 detail 为构件的 dataSource 属性的当前值"
|
|
15217
15204
|
}
|
|
15218
15205
|
],
|
|
15219
15206
|
"methods": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/presentational-bricks",
|
|
3
|
-
"version": "1.247.
|
|
3
|
+
"version": "1.247.5",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "https://github.com/easyops-cn/next-basics/tree/master/bricks/presentational-bricks",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"html-to-react": "^1.4.7",
|
|
47
47
|
"immutability-helper": "^3.1.1",
|
|
48
48
|
"marked": "^2.1.3",
|
|
49
|
-
"prismjs": "^1.
|
|
49
|
+
"prismjs": "^1.28.0",
|
|
50
50
|
"react-avatar-editor": "^11.1.0",
|
|
51
51
|
"regexpu-core": "^4.7.1"
|
|
52
52
|
},
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"@next-dll/ace": "*",
|
|
56
56
|
"@next-dll/react-dnd": "*"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "4fef8ac22ce0205c24eea555416b932989d45214"
|
|
59
59
|
}
|