@next-bricks/presentational-bricks 1.252.2 → 1.252.3

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
@@ -3222,64 +3222,68 @@
3222
3222
  "name": "inputFormat",
3223
3223
  "type": "string",
3224
3224
  "required": "false",
3225
- "default": "-",
3226
- "description": "字符串的时间格式,如 \"YYYY-MM-DD\""
3225
+ "description": "字符串的时间格式,如 \"YYYY-MM-DD\", [时间格式参照表](https://dayjs.gitee.io/docs/zh-CN/parse/string-format)",
3226
+ "group": "basic"
3227
3227
  },
3228
3228
  {
3229
3229
  "name": "outputFormat",
3230
3230
  "type": "string",
3231
3231
  "required": "false",
3232
- "default": "-",
3233
- "description": "展示时间格式,如 \"YYYY-MM-DD\",当设置该属性时,属性 `formatter` 无效"
3232
+ "description": "展示时间格式,如 \"YYYY-MM-DD\",当设置该属性时,属性 `formatter` 无效 [时间格式参照表](https://dayjs.gitee.io/docs/zh-CN/parse/string-format)",
3233
+ "group": "basic"
3234
3234
  },
3235
3235
  {
3236
3236
  "name": "dataSource",
3237
3237
  "type": "Record<string, any>",
3238
3238
  "required": "false",
3239
- "default": "-",
3240
- "description": "[已废弃]数据来源"
3239
+ "description": "[已废弃]数据来源",
3240
+ "deprecated": true,
3241
+ "group": "other"
3241
3242
  },
3242
3243
  {
3243
3244
  "name": "fields",
3244
- "type": "{ value: string }",
3245
+ "type": "object",
3245
3246
  "required": "false",
3246
- "default": "-",
3247
- "description": "[已废弃]字段映射, 跟 dataSource 一起使用来获得运行时对应字段的值"
3247
+ "description": "[已废弃]字段映射, 跟 dataSource 一起使用来获得运行时对应字段的值",
3248
+ "deprecated": true,
3249
+ "group": "other"
3248
3250
  },
3249
3251
  {
3250
3252
  "name": "value",
3251
3253
  "type": "number | string",
3252
3254
  "required": "false",
3253
- "default": "-",
3254
- "description": "时间截,或字符串,当为字符串时,应提供时间格式 `inputFormat`"
3255
+ "description": "时间截,或字符串,当为字符串时,应提供时间格式 `inputFormat`",
3256
+ "group": "basic"
3255
3257
  },
3256
3258
  {
3257
3259
  "name": "formatter",
3258
- "type": "full|default|relative|future|accurate|auto",
3260
+ "type": "\"full\" | \"default\" | \"relative\" | \"future\" | \"accurate\" | \"auto\"",
3259
3261
  "required": "false",
3260
- "default": "-",
3261
- "description": "枚举值:full, default, relative, future, accurate, auto"
3262
+ "description": "枚举值:full, default, relative, future, accurate, auto [类型链接](https://github.com/easyops-cn/next-libs/blob/207fe7ee3ac010ab860c23cd062216c8ca612f0c/libs/datetime/src/humanizeTime.ts#L9)",
3263
+ "group": "basic"
3262
3264
  },
3263
3265
  {
3264
3266
  "name": "isMicrosecond",
3265
3267
  "type": "boolean",
3266
3268
  "required": "false",
3267
3269
  "default": "false",
3268
- "description": "value 值的单位是否为毫秒"
3270
+ "description": "value 值的单位是否为毫秒",
3271
+ "group": "basic"
3269
3272
  },
3270
3273
  {
3271
3274
  "name": "isCostTime",
3272
3275
  "type": "boolean",
3273
3276
  "required": "false",
3274
3277
  "default": "false",
3275
- "description": "是否展示为耗费时间,例如:'1 个月 20 天'"
3278
+ "description": "是否展示为耗费时间,例如:'1 个月 20 天'",
3279
+ "group": "basic"
3276
3280
  },
3277
3281
  {
3278
3282
  "name": "link",
3279
3283
  "type": "LinkInfo",
3280
3284
  "required": "false",
3281
- "default": "-",
3282
- "description": "跳转链接,默认为空"
3285
+ "description": "跳转链接,默认为空",
3286
+ "group": "basic"
3283
3287
  }
3284
3288
  ],
3285
3289
  "interface": [
@@ -4740,45 +4744,166 @@
4740
4744
  "change": "新增状态,`EmptyResultStatus`, 与规范对齐"
4741
4745
  }
4742
4746
  ],
4743
- "memo": "```typescript\nexport enum BrickResultStatus {\n Success = \"success\",\n Error = \"error\",\n Info = \"info\",\n Warning = \"warning\",\n E404 = \"404\",\n E403 = \"403\",\n E500 = \"500\",\n}\n\nexport enum EmptyResultStatus {\n BrowserTooOld = \"browser-too-old\",\n Empty = \"empty\",\n NoData = \"no-data\",\n NoHistoryVersion = \"no-history-version\",\n NoVisitRecord = \"no-visit-record\",\n SearchEmpty = \"search-empty\",\n WelcomeToCreate = \"welcome-to-create\",\n}\n\nexport type IllustrationsStatus = \"illustrations\";\n\nexport interface IllustrationsConfig {\n imageStyle?: CSSProperties;\n name?: string;\n category?: string;\n}\n\n```",
4747
+ "memo": "",
4744
4748
  "properties": [
4745
4749
  {
4746
4750
  "name": "customTitle",
4747
4751
  "type": "string",
4748
4752
  "required": "false",
4749
- "default": "-",
4750
- "description": "主标题文字"
4753
+ "description": "主标题文字",
4754
+ "group": "basic"
4751
4755
  },
4752
4756
  {
4753
4757
  "name": "status",
4754
- "type": "`BrickResultStatus` | `EmptyResultStatus` | `IllustrationsStatus`",
4758
+ "type": "BrickResultStatus | EmptyResultStatus | IllustrationsStatus",
4755
4759
  "required": "true",
4756
4760
  "default": "-",
4757
- "description": "结果的状态, 决定图标和颜色"
4761
+ "description": "结果的状态, 决定图标和颜色",
4762
+ "group": "basic"
4758
4763
  },
4759
4764
  {
4760
4765
  "name": "subTitle",
4761
4766
  "type": "string",
4762
4767
  "required": "false",
4763
- "default": "-",
4764
- "description": "次标题文字"
4768
+ "description": "次标题文字",
4769
+ "group": "basic"
4765
4770
  },
4766
4771
  {
4767
4772
  "name": "icon",
4768
4773
  "type": "string",
4769
4774
  "required": "false",
4770
4775
  "default": "-",
4771
- "description": "[自定义图标](https://ant.design/components/icon-cn/), 仅当 status 为 `BrickResultStatus` 时有效"
4776
+ "description": "[自定义图标](https://ant.design/components/icon-cn/), 仅当 status 为 `BrickResultStatus` 时有效",
4777
+ "group": "ui"
4772
4778
  },
4773
4779
  {
4774
4780
  "name": "illustrationsConfig",
4775
4781
  "type": "IllustrationsConfig",
4776
4782
  "required": "false",
4777
4783
  "default": "{}",
4778
- "description": "自定义插画配置"
4784
+ "description": "自定义插画配置",
4785
+ "group": "other"
4779
4786
  }
4780
4787
  ],
4781
- "interface": []
4788
+ "interface": [
4789
+ {
4790
+ "name": "IllustrationsConfig",
4791
+ "typeParameter": null,
4792
+ "kind": "interface",
4793
+ "children": [
4794
+ {
4795
+ "name": "category",
4796
+ "type": "string",
4797
+ "required": false,
4798
+ "description": ""
4799
+ },
4800
+ {
4801
+ "name": "imageStyle",
4802
+ "type": "CSSProperties",
4803
+ "required": false,
4804
+ "description": ""
4805
+ },
4806
+ {
4807
+ "name": "name",
4808
+ "type": "string",
4809
+ "required": false,
4810
+ "description": ""
4811
+ }
4812
+ ],
4813
+ "indexSignature": []
4814
+ },
4815
+ {
4816
+ "name": "BrickResultStatus",
4817
+ "typeParameter": null,
4818
+ "kind": "enum",
4819
+ "children": [
4820
+ {
4821
+ "name": "E403",
4822
+ "value": "\"403\"",
4823
+ "description": ""
4824
+ },
4825
+ {
4826
+ "name": "E404",
4827
+ "value": "\"404\"",
4828
+ "description": ""
4829
+ },
4830
+ {
4831
+ "name": "E500",
4832
+ "value": "\"500\"",
4833
+ "description": ""
4834
+ },
4835
+ {
4836
+ "name": "Error",
4837
+ "value": "\"error\"",
4838
+ "description": ""
4839
+ },
4840
+ {
4841
+ "name": "Info",
4842
+ "value": "\"info\"",
4843
+ "description": ""
4844
+ },
4845
+ {
4846
+ "name": "Success",
4847
+ "value": "\"success\"",
4848
+ "description": ""
4849
+ },
4850
+ {
4851
+ "name": "Warning",
4852
+ "value": "\"warning\"",
4853
+ "description": ""
4854
+ }
4855
+ ]
4856
+ },
4857
+ {
4858
+ "name": "EmptyResultStatus",
4859
+ "typeParameter": null,
4860
+ "kind": "enum",
4861
+ "children": [
4862
+ {
4863
+ "name": "BrowserTooOld",
4864
+ "value": "\"browser-too-old\"",
4865
+ "description": ""
4866
+ },
4867
+ {
4868
+ "name": "Empty",
4869
+ "value": "\"empty\"",
4870
+ "description": ""
4871
+ },
4872
+ {
4873
+ "name": "NoData",
4874
+ "value": "\"no-data\"",
4875
+ "description": ""
4876
+ },
4877
+ {
4878
+ "name": "NoHistoryVersion",
4879
+ "value": "\"no-history-version\"",
4880
+ "description": ""
4881
+ },
4882
+ {
4883
+ "name": "NoVisitRecord",
4884
+ "value": "\"no-visit-record\"",
4885
+ "description": ""
4886
+ },
4887
+ {
4888
+ "name": "SearchEmpty",
4889
+ "value": "\"search-empty\"",
4890
+ "description": ""
4891
+ },
4892
+ {
4893
+ "name": "WelcomeToCreate",
4894
+ "value": "\"welcome-to-create\"",
4895
+ "description": ""
4896
+ }
4897
+ ]
4898
+ },
4899
+ {
4900
+ "name": "IllustrationsStatus",
4901
+ "typeParameter": null,
4902
+ "kind": "type",
4903
+ "description": "",
4904
+ "type": "\"illustrations\""
4905
+ }
4906
+ ]
4782
4907
  }
4783
4908
  },
4784
4909
  {
@@ -13241,67 +13366,89 @@
13241
13366
  "name": "content",
13242
13367
  "type": "string | string[]",
13243
13368
  "required": "true",
13244
- "default": "-",
13245
- "description": "提示内容, 数组表示多行显示, 可根据平台提供的 transform 机制转换成所需的提示内容"
13369
+ "description": "提示内容, 数组表示多行显示, 可根据平台提供的 transform 机制转换成所需的提示内容",
13370
+ "group": "basic"
13246
13371
  },
13247
13372
  {
13248
13373
  "name": "icon",
13249
13374
  "type": "MenuIcon",
13250
13375
  "required": "true",
13251
- "default": "-",
13252
- "description": "图标配置 [MenuIcon](http://docs.developers.easyops.cn/docs/brick-next/icon)"
13376
+ "description": "图标配置 [MenuIcon](http://docs.developers.easyops.cn/docs/brick-next/icon)",
13377
+ "group": "basic"
13253
13378
  },
13254
13379
  {
13255
13380
  "name": "text",
13256
13381
  "type": "string",
13257
13382
  "required": "false",
13258
- "default": "-",
13259
- "description": "文案"
13383
+ "description": "文案",
13384
+ "group": "basic"
13260
13385
  },
13261
13386
  {
13262
13387
  "name": "iconContainerStyle",
13263
- "type": "object",
13388
+ "type": "CSSProperties",
13264
13389
  "required": "false",
13265
- "default": "-",
13266
- "description": "图标容器相关样式"
13390
+ "description": "图标容器相关样式",
13391
+ "group": "ui"
13267
13392
  },
13268
13393
  {
13269
13394
  "name": "type",
13270
13395
  "type": "tooltip | popover",
13271
13396
  "required": "false",
13272
13397
  "default": "tooltip",
13273
- "description": "类型设置"
13398
+ "description": "类型设置",
13399
+ "group": "basic"
13274
13400
  },
13275
13401
  {
13276
13402
  "name": "header",
13277
13403
  "type": "string",
13278
13404
  "required": "false",
13279
- "default": "-",
13280
- "description": "提示内容的标题, 当 type = popover 时才生效"
13405
+ "description": "提示内容的标题, 当 type = popover 时才生效",
13406
+ "group": "basic"
13281
13407
  },
13282
13408
  {
13283
13409
  "name": "tooltipConfig",
13284
- "type": "`TooltipConfig`",
13410
+ "type": "TooltipConfig",
13285
13411
  "required": "false",
13286
- "default": "-",
13287
- "description": "tooltip的配置,配置属性见TooltipConfig"
13412
+ "description": "tooltip的配置,配置属性见TooltipConfig",
13413
+ "group": "other"
13288
13414
  },
13289
13415
  {
13290
13416
  "name": "triggerByIcon",
13291
13417
  "type": "boolean",
13292
13418
  "required": "false",
13293
13419
  "default": "true",
13294
- "description": "是否只在icon上hover才显示tooltip,仅在不设置`displayBrick`时有效"
13420
+ "description": "是否只在icon上hover才显示tooltip,仅在不设置`displayBrick`时有效",
13421
+ "group": "other"
13295
13422
  },
13296
13423
  {
13297
13424
  "name": "displayBrick",
13298
- "type": "CustomBrick",
13425
+ "type": "DisplayBrick",
13299
13426
  "required": "false",
13300
- "default": "-",
13301
- "description": "自定义展示内容构件,设置后`icon`和`text`会无效"
13427
+ "description": "自定义展示内容构件,设置后`icon`和`text`会无效",
13428
+ "group": "basic"
13302
13429
  }
13303
13430
  ],
13304
13431
  "interface": [
13432
+ {
13433
+ "name": "DisplayBrick",
13434
+ "typeParameter": null,
13435
+ "kind": "interface",
13436
+ "children": [
13437
+ {
13438
+ "name": "data",
13439
+ "type": "any",
13440
+ "required": false,
13441
+ "description": ""
13442
+ },
13443
+ {
13444
+ "name": "useBrick",
13445
+ "type": "UseBrickConf",
13446
+ "required": true,
13447
+ "description": ""
13448
+ }
13449
+ ],
13450
+ "indexSignature": []
13451
+ },
13305
13452
  {
13306
13453
  "name": "TooltipConfig",
13307
13454
  "typeParameter": null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/presentational-bricks",
3
- "version": "1.252.2",
3
+ "version": "1.252.3",
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",
@@ -55,5 +55,5 @@
55
55
  "@next-dll/ace": "*",
56
56
  "@next-dll/react-dnd": "*"
57
57
  },
58
- "gitHead": "8dcc3cbbfdd646830ec9a74fcd52fb28c0b66b9e"
58
+ "gitHead": "b1da66a11e26e327639ebedf48f7fdfca3a37a23"
59
59
  }