@next-bricks/basic-bricks 1.251.6 → 1.253.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.
package/dist/stories.json CHANGED
@@ -4933,6 +4933,273 @@
4933
4933
  ]
4934
4934
  }
4935
4935
  }
4936
+ },
4937
+ {
4938
+ "description": {
4939
+ "title": "无标题弹窗"
4940
+ },
4941
+ "brick": "div",
4942
+ "slots": {
4943
+ "content": {
4944
+ "bricks": [
4945
+ {
4946
+ "brick": "basic-bricks.general-button",
4947
+ "events": {
4948
+ "general.button.click": {
4949
+ "method": "open",
4950
+ "target": "#noTitleModal"
4951
+ }
4952
+ },
4953
+ "properties": {
4954
+ "buttonName": "点击弹出模态框"
4955
+ }
4956
+ },
4957
+ {
4958
+ "brick": "basic-bricks.general-modal",
4959
+ "events": {
4960
+ "basic-bricks.general-modal.cancel": {
4961
+ "action": "message.info",
4962
+ "args": [
4963
+ "cancel modal"
4964
+ ]
4965
+ }
4966
+ },
4967
+ "properties": {
4968
+ "id": "noTitleModal",
4969
+ "okText": "Save",
4970
+ "isHiddenBodyPadding": true,
4971
+ "isHiddenModalTitle": true,
4972
+ "isHiddenModalFooter": true,
4973
+ "isShowCustomHeader": true,
4974
+ "maskClosable": false,
4975
+ "width": 800
4976
+ },
4977
+ "slots": {
4978
+ "customLeftHeaderExtra": {
4979
+ "type": "bricks",
4980
+ "bricks": [
4981
+ {
4982
+ "brick": "presentational-bricks.general-label",
4983
+ "properties": {
4984
+ "style": {
4985
+ "color": "#ccc",
4986
+ "cursor": "pointer"
4987
+ },
4988
+ "text": "快捷切换",
4989
+ "suffixIcon": {
4990
+ "lib": "antd",
4991
+ "type": "down"
4992
+ }
4993
+ }
4994
+ }
4995
+ ]
4996
+ },
4997
+ "customRightHeaderExtra": {
4998
+ "type": "bricks",
4999
+ "bricks": [
5000
+ {
5001
+ "brick": "div",
5002
+ "properties": {
5003
+ "style": {
5004
+ "display": "flex",
5005
+ "alignItems": "center",
5006
+ "gap": "8px"
5007
+ }
5008
+ },
5009
+ "slots": {
5010
+ "content": {
5011
+ "type": "bricks",
5012
+ "bricks": [
5013
+ {
5014
+ "brick": "presentational-bricks.general-label",
5015
+ "properties": {
5016
+ "style": {
5017
+ "color": "#ccc",
5018
+ "cursor": "pointer"
5019
+ },
5020
+ "text": "下载",
5021
+ "prefixIcon": {
5022
+ "lib": "antd",
5023
+ "type": "download"
5024
+ }
5025
+ }
5026
+ },
5027
+ {
5028
+ "brick": "presentational-bricks.general-label",
5029
+ "properties": {
5030
+ "style": {
5031
+ "color": "#ccc",
5032
+ "cursor": "pointer"
5033
+ },
5034
+ "text": "查看",
5035
+ "prefixIcon": {
5036
+ "lib": "antd",
5037
+ "type": "file-search"
5038
+ }
5039
+ }
5040
+ }
5041
+ ]
5042
+ }
5043
+ }
5044
+ }
5045
+ ]
5046
+ },
5047
+ "content": {
5048
+ "bricks": [
5049
+ {
5050
+ "brick": "presentational-bricks.general-image",
5051
+ "properties": {
5052
+ "preview": false,
5053
+ "imgSrc": "https://z1.wzznft.com/i/2024/06/17/h1atxi.png"
5054
+ }
5055
+ },
5056
+ {
5057
+ "brick": "presentational-bricks.rank-table",
5058
+ "properties": {
5059
+ "style": {
5060
+ "marginBottom": "8px"
5061
+ },
5062
+ "columns": [
5063
+ {
5064
+ "dataIndex": "name",
5065
+ "key": "name",
5066
+ "title": "Name"
5067
+ },
5068
+ {
5069
+ "dataIndex": "age",
5070
+ "key": "age",
5071
+ "title": "Age"
5072
+ },
5073
+ {
5074
+ "dataIndex": "address",
5075
+ "headerBrick": {
5076
+ "useBrick": {
5077
+ "brick": "presentational-bricks.general-tooltip",
5078
+ "properties": {
5079
+ "content": "这是一个 tooltips",
5080
+ "icon": {
5081
+ "icon": "info-circle",
5082
+ "lib": "fa"
5083
+ },
5084
+ "text": "Address"
5085
+ }
5086
+ }
5087
+ },
5088
+ "key": "address"
5089
+ },
5090
+ {
5091
+ "dataIndex": "tags",
5092
+ "key": "tags",
5093
+ "title": "Tags",
5094
+ "useBrick": {
5095
+ "brick": "presentational-bricks.brick-tag",
5096
+ "properties": {
5097
+ "configProps": {
5098
+ "color": "var(--color-brand)"
5099
+ },
5100
+ "showCard": false
5101
+ },
5102
+ "transform": {
5103
+ "tagList": "@{cellData}"
5104
+ }
5105
+ }
5106
+ }
5107
+ ],
5108
+ "dataSource": {
5109
+ "list": [
5110
+ {
5111
+ "address": "New York No. 1 Lake Park",
5112
+ "age": 32,
5113
+ "id": "1",
5114
+ "name": "John Brown",
5115
+ "tags": [
5116
+ "nice",
5117
+ "good"
5118
+ ]
5119
+ },
5120
+ {
5121
+ "address": "London No. 2 Lake Park",
5122
+ "age": 42,
5123
+ "id": "2",
5124
+ "name": "Jim Green",
5125
+ "tags": [
5126
+ "loser",
5127
+ "bad"
5128
+ ]
5129
+ },
5130
+ {
5131
+ "address": "Sidney No. 3 Lake Park",
5132
+ "age": 32,
5133
+ "id": "3",
5134
+ "name": "Joe Black",
5135
+ "tags": [
5136
+ "teacher",
5137
+ "lucky",
5138
+ "lay"
5139
+ ]
5140
+ },
5141
+ {
5142
+ "address": "Sidney No. 4 Lake Park",
5143
+ "age": 34,
5144
+ "id": "4",
5145
+ "name": "Jim Red",
5146
+ "tags": [
5147
+ "teacher",
5148
+ "lucky",
5149
+ "lay"
5150
+ ]
5151
+ },
5152
+ {
5153
+ "address": "Sidney No. 5 Lake Park",
5154
+ "age": 35,
5155
+ "id": "5",
5156
+ "name": "Mathéo Girard",
5157
+ "tags": [
5158
+ "teacher",
5159
+ "lucky",
5160
+ "lay"
5161
+ ]
5162
+ },
5163
+ {
5164
+ "address": "Sidney No. 6 Lake Park",
5165
+ "age": 36,
5166
+ "id": "6",
5167
+ "name": "Camille Roy",
5168
+ "tags": [
5169
+ "teacher",
5170
+ "lucky",
5171
+ "lay"
5172
+ ]
5173
+ },
5174
+ {
5175
+ "address": "Sidney No. 7 Lake Park",
5176
+ "age": 37,
5177
+ "id": "7",
5178
+ "name": "Troy Owens",
5179
+ "tags": [
5180
+ "teacher",
5181
+ "lucky",
5182
+ "lay"
5183
+ ]
5184
+ }
5185
+ ]
5186
+ },
5187
+ "header": {
5188
+ "title": "Top10"
5189
+ },
5190
+ "rowKey": "id",
5191
+ "showCard": true
5192
+ }
5193
+ }
5194
+ ],
5195
+ "type": "bricks"
5196
+ }
5197
+ }
5198
+ }
5199
+ ],
5200
+ "type": "bricks"
5201
+ }
5202
+ }
4936
5203
  }
4937
5204
  ],
4938
5205
  "doc": {
@@ -5088,6 +5355,30 @@
5088
5355
  "description": "是否需要隐藏弹窗头部的分割线",
5089
5356
  "group": "ui"
5090
5357
  },
5358
+ {
5359
+ "name": "isHiddenModalTitle",
5360
+ "type": "boolean",
5361
+ "required": "false",
5362
+ "default": "true",
5363
+ "description": "是否需要隐藏弹窗的title",
5364
+ "group": "ui"
5365
+ },
5366
+ {
5367
+ "name": "isHiddenModalFooter",
5368
+ "type": "boolean",
5369
+ "required": "false",
5370
+ "default": "true",
5371
+ "description": "是否需要隐藏弹窗的footer",
5372
+ "group": "ui"
5373
+ },
5374
+ {
5375
+ "name": "isShowCustomHeader",
5376
+ "type": "boolean",
5377
+ "required": "false",
5378
+ "default": "true",
5379
+ "description": "是否需要显示自定义顶部header",
5380
+ "group": "ui"
5381
+ },
5091
5382
  {
5092
5383
  "name": "isHiddenFooterColor",
5093
5384
  "type": "boolean",
@@ -5331,6 +5622,91 @@
5331
5622
  }
5332
5623
  ],
5333
5624
  "thumbnail": "bricks/basic-bricks/dist/stories-asserts/basic-bricks.general-notification[basic].fe56eb6857a74801.svg"
5625
+ },
5626
+ {
5627
+ "description": {
5628
+ "title": "带底部按钮的提醒框"
5629
+ },
5630
+ "brick": "span",
5631
+ "slots": {
5632
+ "content": {
5633
+ "bricks": [
5634
+ {
5635
+ "brick": "basic-bricks.general-button",
5636
+ "events": {
5637
+ "general.button.click": {
5638
+ "method": "open",
5639
+ "target": "basic-bricks\\.general-notification"
5640
+ }
5641
+ },
5642
+ "properties": {
5643
+ "buttonName": "open notification"
5644
+ }
5645
+ },
5646
+ {
5647
+ "brick": "basic-bricks.general-notification",
5648
+ "events": {
5649
+ "general.notification.click": {
5650
+ "action": "console.log"
5651
+ },
5652
+ "general.notification.close": {
5653
+ "action": "console.log"
5654
+ }
5655
+ },
5656
+ "properties": {
5657
+ "btnBrick": {
5658
+ "useBrick": [
5659
+ {
5660
+ "brick": "div",
5661
+ "properties": {
5662
+ "style": {
5663
+ "display": "flex",
5664
+ "gap": "20px"
5665
+ }
5666
+ },
5667
+ "slots": {
5668
+ "content": {
5669
+ "type": "bricks",
5670
+ "bricks": [
5671
+ {
5672
+ "brick": "presentational-bricks.brick-link",
5673
+ "properties": {
5674
+ "label": "查看详情"
5675
+ }
5676
+ },
5677
+ {
5678
+ "brick": "presentational-bricks.brick-link",
5679
+ "properties": {
5680
+ "label": "忽略",
5681
+ "type": "text"
5682
+ }
5683
+ }
5684
+ ]
5685
+ }
5686
+ }
5687
+ }
5688
+ ]
5689
+ },
5690
+ "description": "Notification Description.Notification Description.Notification Description.Notification Description.Notification Description.",
5691
+ "duration": 3000,
5692
+ "icon": {
5693
+ "lib": "easyops",
5694
+ "category": "app",
5695
+ "icon": "announcement-app",
5696
+ "color": "orange"
5697
+ },
5698
+ "iconStyle": {
5699
+ "color": "orange",
5700
+ "textAlign": "center"
5701
+ },
5702
+ "message": "A Long Notification Title.A Long Notification Title.A Long Notification Title.",
5703
+ "placement": "topRight"
5704
+ }
5705
+ }
5706
+ ],
5707
+ "type": "bricks"
5708
+ }
5709
+ }
5334
5710
  }
5335
5711
  ],
5336
5712
  "previewColumns": 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/basic-bricks",
3
- "version": "1.251.6",
3
+ "version": "1.253.0",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "https://github.com/easyops-cn/next-basics/tree/master/bricks/basic-bricks",
6
6
  "license": "GPL-3.0",
@@ -42,7 +42,7 @@
42
42
  "test:ci": "cross-env NODE_ENV='test' CI=true jest"
43
43
  },
44
44
  "devDependencies": {
45
- "@next-core/custom-antd-styles": "^1.26.2",
45
+ "@next-core/custom-antd-styles": "^1.27.1",
46
46
  "@next-libs/basic-components": "^5.4.0",
47
47
  "@next-libs/storage": "^2.0.4",
48
48
  "@next-sdk/air-admin-service-sdk": "^2.1.12",
@@ -52,5 +52,5 @@
52
52
  "immutability-helper": "^3.1.1"
53
53
  },
54
54
  "sideEffects": true,
55
- "gitHead": "64093ac139e683f38ed6644d085cdfee530ca2a0"
55
+ "gitHead": "b0c1388c3feaf2919e8798208ae0d5167401d66d"
56
56
  }