@next-bricks/basic-bricks 1.194.4 → 1.194.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/deploy/contract.yaml +61 -61
  3. package/dist/bricks.json +4 -4
  4. package/dist/editors/{editors.d972c1f1.js → editors.a3ba33a8.js} +2 -2
  5. package/dist/editors/editors.a3ba33a8.js.map +1 -0
  6. package/dist/{index.2952c6bc.js → index.6c5121f6.js} +3 -3
  7. package/dist/index.6c5121f6.js.map +1 -0
  8. package/dist/snippets.json +0 -34
  9. package/dist/stories-asserts/basic-bricks.advanced-list-container.1d63de3b92845ce1.svg +20 -0
  10. package/dist/stories-asserts/basic-bricks.export-json-file.c9957d2470454ddb.svg +18 -0
  11. package/dist/stories-asserts/basic-bricks.flex-layout.437e23a3219d798e.svg +17 -0
  12. package/dist/stories-asserts/basic-bricks.fold-brick-v2.b9ab1cf01c2c7674.svg +18 -0
  13. package/dist/stories-asserts/basic-bricks.general-anchor.e5abcdbf79476048.svg +55 -0
  14. package/dist/stories-asserts/basic-bricks.general-card.c40269ce2a014a2b.svg +19 -0
  15. package/dist/stories-asserts/basic-bricks.general-custom-buttons.826947326a6affa4.svg +23 -0
  16. package/dist/stories-asserts/basic-bricks.general-drawer.78ff64a02f145893.svg +31 -0
  17. package/dist/stories-asserts/basic-bricks.general-hotkeys.78d83470cb19c39e.svg +22 -0
  18. package/dist/stories-asserts/basic-bricks.general-modal.63edc12759325f60.svg +26 -0
  19. package/dist/stories-asserts/basic-bricks.general-notification.c528458ccd6aefb4.svg +60 -0
  20. package/dist/stories-asserts/basic-bricks.general-timer.b6537c7433c535f5.svg +21 -0
  21. package/dist/stories-asserts/basic-bricks.general-title.86281097750f8e66.svg +54 -0
  22. package/dist/stories-asserts/basic-bricks.grid-layout.f59275b02376fe7c.svg +18 -0
  23. package/dist/stories-asserts/basic-bricks.list-container.5ab420e04901e865.svg +32 -0
  24. package/dist/stories-asserts/basic-bricks.page-title.d3c16d2b20e77d86.svg +17 -0
  25. package/dist/stories-asserts/basic-bricks.popover-container.617c3609f9acc715.svg +27 -0
  26. package/dist/stories-asserts/basic-bricks.sub-menu-filter.ddd3fbbbdf01f1fe.svg +39 -0
  27. package/dist/stories.json +241 -316
  28. package/package.json +3 -3
  29. package/dist/editors/editors.d972c1f1.js.map +0 -1
  30. package/dist/index.2952c6bc.js.map +0 -1
package/dist/stories.json CHANGED
@@ -108,20 +108,19 @@
108
108
  },
109
109
  {
110
110
  "storyId": "basic-bricks.advanced-list-container",
111
- "category": "layout",
111
+ "category": "container-layout",
112
112
  "type": "brick",
113
113
  "author": "momo",
114
114
  "text": {
115
- "en": "Dynamic List Container v2",
116
- "zh": "动态构件列表容器v2"
115
+ "en": "Dynamic Vertical List Container",
116
+ "zh": "动态纵向列表容器"
117
117
  },
118
118
  "description": {
119
119
  "en": "A list container support specified `useBrick`",
120
120
  "zh": "可以指定子项使用特定构件的列表容器,相当于是动态的构件列表"
121
121
  },
122
122
  "icon": {
123
- "lib": "fa",
124
- "icon": "th"
123
+ "imgSrc": "bricks/basic-bricks/dist/stories-asserts/basic-bricks.advanced-list-container.1d63de3b92845ce1.svg"
125
124
  },
126
125
  "conf": [
127
126
  {
@@ -148,7 +147,7 @@
148
147
  "useBrick": {
149
148
  "brick": "presentational-bricks.brick-conditional-display",
150
149
  "transform": {
151
- "dataSource": "@{value}",
150
+ "dataSource": "<% DATA.value %>",
152
151
  "rules": [
153
152
  {
154
153
  "condition": {
@@ -159,7 +158,7 @@
159
158
  "color": "rgba(255, 255, 255, 1)",
160
159
  "borderRadius": "var(--larger-border-radius)"
161
160
  },
162
- "label": "@{value}"
161
+ "label": "<% DATA.value %>"
163
162
  },
164
163
  {
165
164
  "condition": {
@@ -175,7 +174,7 @@
175
174
  "color": "rgba(255, 255, 255, 1)",
176
175
  "borderRadius": "var(--larger-border-radius)"
177
176
  },
178
- "label": "@{value}"
177
+ "label": "<% DATA.value %>"
179
178
  },
180
179
  {
181
180
  "condition": {
@@ -191,7 +190,7 @@
191
190
  "color": "rgba(255, 255, 255, 1)",
192
191
  "borderRadius": "var(--larger-border-radius)"
193
192
  },
194
- "label": "@{value}"
193
+ "label": "<% DATA.value %>"
195
194
  }
196
195
  ]
197
196
  }
@@ -201,7 +200,7 @@
201
200
  "useBrick": {
202
201
  "brick": "div",
203
202
  "transform": {
204
- "textContent": "@{a}"
203
+ "textContent": "<% DATA.a %>"
205
204
  }
206
205
  }
207
206
  }
@@ -240,48 +239,56 @@
240
239
  "type": "ItemData",
241
240
  "required": "true",
242
241
  "default": "-",
243
- "description": "列表数据"
242
+ "description": "列表数据",
243
+ "group": "basic"
244
244
  },
245
245
  {
246
246
  "name": "titleBrick",
247
- "type": "{useBrick:[UseBrickConf](http://docs.developers.easyops.cn/docs/api-reference/brick-types.usebrickconf)}",
247
+ "type": "{useBrick:UseBrickConf}",
248
248
  "required": "true",
249
249
  "default": "-",
250
- "description": "列表项标题位置"
250
+ "description": "列表项标题位置,相关类型[UseBrickConf](/next-docs/docs/api-reference/brick-types.usebrickconf)",
251
+ "group": "basic"
251
252
  },
252
253
  {
253
254
  "name": "suffixBrick",
254
- "type": "{useBrick:[UseBrickConf](http://docs.developers.easyops.cn/docs/api-reference/brick-types.usebrickconf)}",
255
+ "type": "{useBrick:UseBrickConf}",
255
256
  "required": "false",
256
257
  "default": "-",
257
- "description": "列表项 extra 位置(右边)"
258
+ "description": "列表项 extra 位置(右边),相关类型[UseBrickConf](/next-docs/docs/api-reference/brick-types.usebrickconf)",
259
+ "group": "basic"
258
260
  },
259
261
  {
260
262
  "name": "showCard",
261
263
  "type": "boolean",
262
264
  "required": "false",
263
265
  "default": "false",
264
- "description": "是否展示 card"
266
+ "description": "是否展示 card",
267
+ "group": "ui"
265
268
  },
266
269
  {
267
270
  "name": "defaultActiveIndex",
268
271
  "type": "number",
269
272
  "required": "false",
270
273
  "default": "-",
271
- "description": "默认选中项"
274
+ "description": "默认选中项",
275
+ "group": "basic"
272
276
  },
273
277
  {
274
- "name": "selectable",
278
+ "name": "notTriggerClickEventWhenInit",
275
279
  "type": "boolean",
276
- "required": true,
277
- "default": "true"
280
+ "required": "false",
281
+ "default": "false",
282
+ "description": "设置`defaultActiveIndex`时,构件初始化时会默认触发item.click事件,如果item.click后需要刷新页面,则会造成构件不断render,页面不断重刷,为避免此情况,可将此项设为true",
283
+ "group": "basic"
278
284
  },
279
285
  {
280
- "name": "notTriggerClickEventWhenInit",
286
+ "name": "selectable",
281
287
  "type": "boolean",
282
288
  "required": "false",
283
- "default": "false",
284
- "description": "设置`defaultActiveIndex`时,构件初始化时会默认触发item.click事件,如果item.click后需要刷新页面,则会造成构件不断render,页面不断重刷,为避免此情况,可将此项设为true"
289
+ "default": "true",
290
+ "description": "选项是否可选",
291
+ "group": "basic"
285
292
  }
286
293
  ],
287
294
  "interface": []
@@ -289,12 +296,12 @@
289
296
  },
290
297
  {
291
298
  "storyId": "basic-bricks.easy-view",
292
- "category": "layout",
299
+ "category": "container-layout",
293
300
  "type": "brick",
294
301
  "author": "steve",
295
302
  "text": {
296
- "en": "Easy View",
297
- "zh": "简易网格布局"
303
+ "en": "Grid Layout Container - Supports Grid Area",
304
+ "zh": "网格布局容器-支持grid-area"
298
305
  },
299
306
  "description": {
300
307
  "en": "A grid layout container, which can generate slots by grid-area automatically",
@@ -493,14 +500,14 @@
493
500
  "type": "CSSProperties",
494
501
  "required": true,
495
502
  "description": "定义网格容器的样式",
496
- "group": "ui"
503
+ "group": "basic"
497
504
  },
498
505
  {
499
506
  "name": "styleByAreas",
500
507
  "type": "Record<string, CSSProperties>",
501
508
  "required": true,
502
509
  "description": "定义网格内各区域的样式",
503
- "group": "ui"
510
+ "group": "basic"
504
511
  }
505
512
  ],
506
513
  "interface": []
@@ -520,145 +527,51 @@
520
527
  "zh": "把数据导出为 JSON 文件"
521
528
  },
522
529
  "icon": {
523
- "lib": "antd",
524
- "icon": "export"
530
+ "imgSrc": "bricks/basic-bricks/dist/stories-asserts/basic-bricks.export-json-file.c9957d2470454ddb.svg"
525
531
  },
526
532
  "conf": [
527
533
  {
528
534
  "brick": "div",
529
535
  "slots": {
530
536
  "": {
531
- "type": "bricks",
532
537
  "bricks": [
533
538
  {
534
- "brick": "providers-of-cmdb.instance-api-get-detail",
535
- "bg": true
536
- },
537
- {
539
+ "bg": true,
538
540
  "brick": "basic-bricks.export-json-file",
539
- "properties": {
540
- "id": "export-dashboard"
541
- },
542
- "lifeCycle": {
543
- "useResolves": [
544
- {
545
- "provider": "providers-of-cmdb\\.instance-api-get-detail",
546
- "args": [
547
- "HOST",
548
- "5c6f6cf0d8079",
549
- {
550
- "fields": "hostname,ip"
551
- }
552
- ],
553
- "transform": {
554
- "data": "<% DATA %>",
555
- "fileName": "<% DATA.hostname + '.json' %>"
556
- }
557
- }
558
- ]
559
- },
560
541
  "events": {
561
- "json-file.export.success": {
542
+ "json-file.export.failed": {
562
543
  "action": "console.log"
563
544
  },
564
- "json-file.export.failed": {
545
+ "json-file.export.success": {
565
546
  "action": "console.log"
566
547
  }
567
548
  },
568
- "bg": true
569
- },
570
- {
571
- "brick": "basic-bricks.general-button",
572
549
  "properties": {
573
- "buttonName": "导出",
574
- "buttonIcon": {
575
- "lib": "antd",
576
- "icon": "export"
577
- }
578
- },
579
- "events": {
580
- "general.button.click": [
581
- {
582
- "target": "#export-dashboard",
583
- "method": "export"
584
- }
585
- ]
550
+ "id": "export-dashboard",
551
+ "data": "export content",
552
+ "fileName": "test.json"
586
553
  }
587
- }
588
- ]
589
- }
590
- }
591
- },
592
- {
593
- "brick": "div",
594
- "slots": {
595
- "": {
596
- "type": "bricks",
597
- "bricks": [
598
- {
599
- "brick": "providers-of-cmdb.instance-api-get-detail",
600
- "bg": true
601
- },
602
- {
603
- "brick": "basic-bricks.export-json-file",
604
- "properties": {
605
- "id": "export-dashboard"
606
- },
607
- "events": {
608
- "json-file.export.success": {
609
- "action": "console.log"
610
- },
611
- "json-file.export.failed": {
612
- "action": "console.log"
613
- }
614
- },
615
- "bg": true
616
554
  },
617
555
  {
618
556
  "brick": "basic-bricks.general-button",
619
- "properties": {
620
- "buttonName": "导出",
621
- "buttonIcon": {
622
- "lib": "antd",
623
- "icon": "export"
624
- }
625
- },
626
557
  "events": {
627
558
  "general.button.click": [
628
559
  {
629
- "target": "#export-dashboard",
630
560
  "method": "export",
631
- "args": [
632
- {
633
- "detail": {
634
- "data": "<% EVENT.target.data %>",
635
- "fileName": "<% EVENT.target.data.hostname + '.json' %>"
636
- }
637
- }
638
- ]
561
+ "target": "#export-dashboard"
639
562
  }
640
563
  ]
641
564
  },
642
- "lifeCycle": {
643
- "useResolves": [
644
- {
645
- "provider": "providers-of-cmdb\\.instance-api-get-detail",
646
- "args": [
647
- "HOST",
648
- "5c6f6cf0d8079",
649
- {
650
- "fields": "hostname,ip"
651
- }
652
- ],
653
- "transform": {
654
- "data": "<% DATA %>",
655
- "fileName": "<% DATA.hostname + '.json' %>"
656
- }
657
- }
658
- ]
565
+ "properties": {
566
+ "buttonIcon": {
567
+ "icon": "export",
568
+ "lib": "antd"
569
+ },
570
+ "buttonName": "导出"
659
571
  }
660
572
  }
661
- ]
573
+ ],
574
+ "type": "bricks"
662
575
  }
663
576
  }
664
577
  }
@@ -683,14 +596,16 @@
683
596
  "type": "string",
684
597
  "required": "false",
685
598
  "default": "-",
686
- "description": "导出的文件名"
599
+ "description": "导出的文件名",
600
+ "group": "basic"
687
601
  },
688
602
  {
689
603
  "name": "data",
690
604
  "type": "object | string",
691
605
  "required": "-",
692
606
  "default": "-",
693
- "description": "导出的文件数据"
607
+ "description": "导出的文件数据",
608
+ "group": "basic"
694
609
  }
695
610
  ],
696
611
  "events": [
@@ -781,20 +696,19 @@
781
696
  },
782
697
  {
783
698
  "storyId": "basic-bricks.fold-brick-v2",
784
- "category": "description",
699
+ "category": "container-display",
785
700
  "type": "brick",
786
701
  "author": "momo",
787
702
  "text": {
788
- "en": "fold brick",
789
- "zh": "折叠容器V2"
703
+ "en": "More Information Folding Containers",
704
+ "zh": "更多信息折叠容器"
790
705
  },
791
706
  "description": {
792
707
  "en": "",
793
708
  "zh": "折叠容器,只折叠单个内容,支持slot"
794
709
  },
795
710
  "icon": {
796
- "lib": "fa",
797
- "icon": "chevron-down"
711
+ "imgSrc": "bricks/basic-bricks/dist/stories-asserts/basic-bricks.fold-brick-v2.b9ab1cf01c2c7674.svg"
798
712
  },
799
713
  "conf": [
800
714
  {
@@ -975,7 +889,7 @@
975
889
  },
976
890
  {
977
891
  "storyId": "basic-bricks.general-button",
978
- "category": "other",
892
+ "category": "interact-baisc",
979
893
  "type": "brick",
980
894
  "author": "jo",
981
895
  "text": {
@@ -1335,7 +1249,7 @@
1335
1249
  },
1336
1250
  {
1337
1251
  "storyId": "basic-bricks.general-card",
1338
- "category": "card",
1252
+ "category": "container-display",
1339
1253
  "type": "brick",
1340
1254
  "author": "lynette",
1341
1255
  "text": {
@@ -1348,8 +1262,7 @@
1348
1262
  "zh": "常见于为多个构件提供统一的卡片容器,比如将搜索框与表格放在一起"
1349
1263
  },
1350
1264
  "icon": {
1351
- "lib": "fa",
1352
- "icon": "address-card"
1265
+ "imgSrc": "bricks/basic-bricks/dist/stories-asserts/basic-bricks.general-card.c40269ce2a014a2b.svg"
1353
1266
  },
1354
1267
  "conf": [
1355
1268
  {
@@ -1897,7 +1810,7 @@
1897
1810
  },
1898
1811
  {
1899
1812
  "storyId": "basic-bricks.general-custom-buttons",
1900
- "category": "other",
1813
+ "category": "interact-baisc",
1901
1814
  "type": "brick",
1902
1815
  "author": "ice",
1903
1816
  "text": {
@@ -1909,8 +1822,7 @@
1909
1822
  "zh": "可配置收纳起来的更多按钮,可配置不同事件,常用于页面右上角、卡片右上角等操作位。"
1910
1823
  },
1911
1824
  "icon": {
1912
- "lib": "fa",
1913
- "icon": "pencil-alt"
1825
+ "imgSrc": "bricks/basic-bricks/dist/stories-asserts/basic-bricks.general-custom-buttons.826947326a6affa4.svg"
1914
1826
  },
1915
1827
  "conf": [
1916
1828
  {
@@ -3119,20 +3031,19 @@
3119
3031
  },
3120
3032
  {
3121
3033
  "storyId": "basic-bricks.general-drawer",
3122
- "category": "layout",
3034
+ "category": "container-display",
3123
3035
  "type": "brick",
3124
3036
  "author": "ice",
3125
3037
  "text": {
3126
3038
  "en": "General Drawer",
3127
- "zh": "抽屉容器"
3039
+ "zh": "Drawer抽屉"
3128
3040
  },
3129
3041
  "description": {
3130
3042
  "en": "provide slot to hold other custom elements",
3131
3043
  "zh": "提供插槽以展示其他构件"
3132
3044
  },
3133
3045
  "icon": {
3134
- "lib": "fa",
3135
- "icon": "draw-polygon"
3046
+ "imgSrc": "bricks/basic-bricks/dist/stories-asserts/basic-bricks.general-drawer.78ff64a02f145893.svg"
3136
3047
  },
3137
3048
  "conf": [
3138
3049
  {
@@ -3589,7 +3500,7 @@
3589
3500
  },
3590
3501
  {
3591
3502
  "storyId": "basic-bricks.general-hotkeys",
3592
- "category": "other",
3503
+ "category": "interact-baisc",
3593
3504
  "type": "brick",
3594
3505
  "author": "lynette",
3595
3506
  "text": {
@@ -3601,8 +3512,7 @@
3601
3512
  "zh": "可配置通用快捷键以及相关事件名"
3602
3513
  },
3603
3514
  "icon": {
3604
- "lib": "fa",
3605
- "icon": "pencil-alt"
3515
+ "imgSrc": "bricks/basic-bricks/dist/stories-asserts/basic-bricks.general-hotkeys.78d83470cb19c39e.svg"
3606
3516
  },
3607
3517
  "conf": [
3608
3518
  {
@@ -3646,20 +3556,22 @@
3646
3556
  "change": "新增构件 `basic-bricks.general-hotkeys`"
3647
3557
  }
3648
3558
  ],
3649
- "memo": "### Supported Keys\n\n HotKeys 构件可以识别以下修饰符,方便配置:`⇧`, `shift`, `option`, `⌥`, `alt`, `ctrl`, `control`, `command`, and `⌘`.\n\n 以下特殊键可用于配置快捷键:`backspace`, `tab`, `clear`, `enter`, `return`, `esc`, `escape`, `space`, `up`, `down`, `left`, `right`, `home`, `end`, `pageup`, `pagedown`, `del`, `delete` , `f1` 到 `f19`.\n\n 其中:\n\n - `⌘` Command()\n - `⌃` Control\n - `⌥` Option(alt)\n - `⇧` Shift\n - `⇪` Caps Lock(Capital)\n - `↩︎` return/Enter space",
3559
+ "memo": "### Supported Keys\n\n HotKeys 构件可以识别以下修饰符,方便配置:`⇧`, `shift`, `option`, `⌥`, `alt`, `ctrl`, `control`, `command`和 `⌘`.\n\n 以下特殊键可用于配置快捷键:`backspace`, `tab`, `clear`, `enter`, `return`, `esc`, `escape`, `space`, `up`, `down`, `left`, `right`, `home`, `end`, `pageup`, `pagedown`, `del`, `delete` , `f1` 到 `f19`.\n\n 其中:\n\n - `⌘` Command()\n - `⌃` Control\n - `⌥` Option(alt)\n - `⇧` Shift\n - `⇪` Caps Lock(Capital)\n - `↩︎` return/Enter space",
3650
3560
  "properties": [
3651
3561
  {
3652
3562
  "name": "hotkeysConfig",
3653
3563
  "type": "{key: string,eventName: string}[]",
3654
3564
  "required": "false",
3655
3565
  "default": "-",
3656
- "description": "快捷键配置,支持的 keys 列表如下"
3566
+ "description": "快捷键配置,支持的 keys 列表如下",
3567
+ "group": "basic"
3657
3568
  },
3658
3569
  {
3659
3570
  "name": "disabled",
3660
3571
  "type": "boolean",
3661
3572
  "required": "false",
3662
3573
  "default": "false",
3574
+ "group": "basic",
3663
3575
  "description": "是否禁用"
3664
3576
  }
3665
3577
  ],
@@ -3668,7 +3580,7 @@
3668
3580
  },
3669
3581
  {
3670
3582
  "storyId": "basic-bricks.general-modal",
3671
- "category": "layout",
3583
+ "category": "container-display",
3672
3584
  "type": "brick",
3673
3585
  "author": "ice",
3674
3586
  "text": {
@@ -3680,8 +3592,7 @@
3680
3592
  "zh": "提供插槽以展示其他构件,注意与表单通用模态框 (forms.general-modal) 的不同"
3681
3593
  },
3682
3594
  "icon": {
3683
- "lib": "fa",
3684
- "icon": "draw-polygon"
3595
+ "imgSrc": "bricks/basic-bricks/dist/stories-asserts/basic-bricks.general-modal.63edc12759325f60.svg"
3685
3596
  },
3686
3597
  "conf": [
3687
3598
  {
@@ -4276,17 +4187,15 @@
4276
4187
  "type": "brick",
4277
4188
  "author": "Alex",
4278
4189
  "text": {
4279
- "en": "general notification",
4280
- "zh": "普通 notification"
4190
+ "en": "Notification Reminder Box",
4191
+ "zh": "Notification通知提醒框"
4281
4192
  },
4282
4193
  "description": {
4283
4194
  "en": "general notification",
4284
4195
  "zh": "普通的 notification"
4285
4196
  },
4286
4197
  "icon": {
4287
- "lib": "fa",
4288
- "icon": "discord",
4289
- "prefix": "fab"
4198
+ "imgSrc": "bricks/basic-bricks/dist/stories-asserts/basic-bricks.general-notification.c528458ccd6aefb4.svg"
4290
4199
  },
4291
4200
  "conf": [
4292
4201
  {
@@ -4370,21 +4279,24 @@
4370
4279
  "type": "string",
4371
4280
  "required": "true",
4372
4281
  "default": "-",
4373
- "description": "通知提醒标题,必选"
4282
+ "description": "通知提醒标题,必选",
4283
+ "group": "basic"
4374
4284
  },
4375
4285
  {
4376
4286
  "name": "description",
4377
4287
  "type": "string",
4378
4288
  "required": "true",
4379
4289
  "default": "-",
4380
- "description": "通知提醒内容,必选"
4290
+ "description": "通知提醒内容,必选",
4291
+ "group": "basic"
4381
4292
  },
4382
4293
  {
4383
4294
  "name": "icon",
4384
4295
  "type": "string",
4385
4296
  "required": "false",
4386
4297
  "default": "-",
4387
- "description": "icon,具体查阅:[react icon](https://3x.ant.design/components/icon-cn/)"
4298
+ "description": "icon,具体查阅:[react icon](https://3x.ant.design/components/icon-cn/)",
4299
+ "group": "basic"
4388
4300
  },
4389
4301
  {
4390
4302
  "name": "placement",
@@ -4392,7 +4304,7 @@
4392
4304
  "required": "false",
4393
4305
  "default": "topRight",
4394
4306
  "description": "弹出位置,可选",
4395
- "group": "advanced"
4307
+ "group": "ui"
4396
4308
  },
4397
4309
  {
4398
4310
  "name": "duration",
@@ -4400,7 +4312,7 @@
4400
4312
  "required": "false",
4401
4313
  "default": "4.5",
4402
4314
  "description": "默认 4.5 秒后自动关闭,配置为 null 则不自动关闭",
4403
- "group": "advanced"
4315
+ "group": "basic"
4404
4316
  },
4405
4317
  {
4406
4318
  "name": "iconStyle",
@@ -4408,13 +4320,13 @@
4408
4320
  "required": "false",
4409
4321
  "default": "-",
4410
4322
  "description": "icon css 样式",
4411
- "group": "advanced"
4323
+ "group": "ui"
4412
4324
  }
4413
4325
  ],
4414
4326
  "methods": [
4415
4327
  {
4416
4328
  "name": "open",
4417
- "params": "`success`| `error`| `info`| `warning`| `warn` |`open`",
4329
+ "params": "`success` | `error` | `info` | `warning` | `warn` | `open`",
4418
4330
  "description": "显示通知栏,默认为`open`"
4419
4331
  }
4420
4332
  ],
@@ -4423,7 +4335,7 @@
4423
4335
  },
4424
4336
  {
4425
4337
  "storyId": "basic-bricks.general-timer",
4426
- "category": "other",
4338
+ "category": "interact-baisc",
4427
4339
  "type": "brick",
4428
4340
  "author": "cyril",
4429
4341
  "text": {
@@ -4435,8 +4347,7 @@
4435
4347
  "zh": "启动一个定时发出指定事件的定时器"
4436
4348
  },
4437
4349
  "icon": {
4438
- "lib": "antd",
4439
- "icon": "clock-circle"
4350
+ "imgSrc": "bricks/basic-bricks/dist/stories-asserts/basic-bricks.general-timer.b6537c7433c535f5.svg"
4440
4351
  },
4441
4352
  "conf": [
4442
4353
  {
@@ -4484,21 +4395,24 @@
4484
4395
  "type": "string",
4485
4396
  "required": "false",
4486
4397
  "default": "general-timer.timing-event",
4487
- "description": "定时抛出的事件"
4398
+ "description": "定时抛出的事件",
4399
+ "group": "basic"
4488
4400
  },
4489
4401
  {
4490
4402
  "name": "interval",
4491
4403
  "type": "number",
4492
4404
  "required": "false",
4493
4405
  "default": "60000",
4494
- "description": "定时间隔(单位:ms)"
4406
+ "description": "定时间隔(单位:ms)",
4407
+ "group": "basic"
4495
4408
  },
4496
4409
  {
4497
4410
  "name": "dataSource",
4498
4411
  "type": "any",
4499
4412
  "required": "false",
4500
4413
  "default": "-",
4501
- "description": "抛出事件的数据"
4414
+ "description": "抛出事件的数据",
4415
+ "group": "basic"
4502
4416
  }
4503
4417
  ],
4504
4418
  "methods": [
@@ -4516,7 +4430,7 @@
4516
4430
  },
4517
4431
  {
4518
4432
  "storyId": "basic-bricks.grid-layout",
4519
- "category": "layout",
4433
+ "category": "container-layout",
4520
4434
  "type": "brick",
4521
4435
  "author": "steve",
4522
4436
  "text": {
@@ -4528,8 +4442,7 @@
4528
4442
  "zh": "提供多行多列的响应式网格布局"
4529
4443
  },
4530
4444
  "icon": {
4531
- "lib": "fa",
4532
- "icon": "th"
4445
+ "imgSrc": "bricks/basic-bricks/dist/stories-asserts/basic-bricks.grid-layout.f59275b02376fe7c.svg"
4533
4446
  },
4534
4447
  "conf": {
4535
4448
  "brick": "basic-bricks.grid-layout",
@@ -4747,9 +4660,10 @@
4747
4660
  },
4748
4661
  {
4749
4662
  "storyId": "basic-bricks.home-redirect",
4750
- "category": "other",
4663
+ "category": "interact-baisc",
4751
4664
  "type": "brick",
4752
4665
  "author": "steve",
4666
+ "deprecated": true,
4753
4667
  "text": {
4754
4668
  "en": "redirection to app home",
4755
4669
  "zh": "重定向到指定应用的首页"
@@ -4884,7 +4798,7 @@
4884
4798
  },
4885
4799
  {
4886
4800
  "storyId": "basic-bricks.list-container",
4887
- "category": "layout",
4801
+ "category": "container-layout",
4888
4802
  "type": "brick",
4889
4803
  "author": "steve",
4890
4804
  "text": {
@@ -4896,8 +4810,7 @@
4896
4810
  "zh": "可以指定子项使用特定构件的列表容器,相当于是动态的构件列表"
4897
4811
  },
4898
4812
  "icon": {
4899
- "lib": "fa",
4900
- "icon": "th"
4813
+ "imgSrc": "bricks/basic-bricks/dist/stories-asserts/basic-bricks.list-container.5ab420e04901e865.svg"
4901
4814
  },
4902
4815
  "conf": [
4903
4816
  {
@@ -5005,6 +4918,7 @@
5005
4918
  "category": "other",
5006
4919
  "type": "brick",
5007
4920
  "author": "lynette",
4921
+ "deprecated": true,
5008
4922
  "text": {
5009
4923
  "en": "Magic Brick",
5010
4924
  "zh": "魔法构件"
@@ -5539,16 +5453,17 @@
5539
5453
  },
5540
5454
  {
5541
5455
  "storyId": "basic-bricks.multiple-columns-card",
5542
- "category": "layout",
5456
+ "category": "container-layout",
5543
5457
  "type": "brick",
5544
5458
  "author": "jo",
5459
+ "deprecated": true,
5545
5460
  "text": {
5546
- "en": "Multiple Columns Card",
5547
- "zh": "多列布局卡片"
5461
+ "en": "Multi Column Layout Container with Border",
5462
+ "zh": "带边框多列布局容器"
5548
5463
  },
5549
5464
  "description": {
5550
5465
  "en": "support multiple columns card",
5551
- "zh": "支持多列布局的容器"
5466
+ "zh": "支持多列布局的容器,推荐使用 `basic-bricks.easy-view`"
5552
5467
  },
5553
5468
  "icon": {
5554
5469
  "lib": "fa",
@@ -5791,7 +5706,7 @@
5791
5706
  },
5792
5707
  {
5793
5708
  "storyId": "basic-bricks.page-title",
5794
- "category": "navigation",
5709
+ "category": "text",
5795
5710
  "type": "brick",
5796
5711
  "author": "steve",
5797
5712
  "text": {
@@ -5803,8 +5718,7 @@
5803
5718
  "zh": "页面标题,在`basic-bricks.micro-view`的titleBar插槽中使用,如果只是普通字符串的可用pageTitle属性代替,如果是动态的话则用这个构件"
5804
5719
  },
5805
5720
  "icon": {
5806
- "lib": "fa",
5807
- "icon": "cube"
5721
+ "imgSrc": "bricks/basic-bricks/dist/stories-asserts/basic-bricks.page-title.d3c16d2b20e77d86.svg"
5808
5722
  },
5809
5723
  "conf": {
5810
5724
  "brick": "basic-bricks.micro-view",
@@ -5854,7 +5768,7 @@
5854
5768
  },
5855
5769
  {
5856
5770
  "storyId": "basic-bricks.popover-container",
5857
- "category": "layout",
5771
+ "category": "container-display",
5858
5772
  "type": "brick",
5859
5773
  "author": "lynette",
5860
5774
  "text": {
@@ -5866,9 +5780,7 @@
5866
5780
  "zh": "可以配置显示构件和弹出框构件,常用于快速编辑和详情展示"
5867
5781
  },
5868
5782
  "icon": {
5869
- "lib": "fa",
5870
- "icon": "comment",
5871
- "prefix": "fas"
5783
+ "imgSrc": "bricks/basic-bricks/dist/stories-asserts/basic-bricks.popover-container.617c3609f9acc715.svg"
5872
5784
  },
5873
5785
  "conf": [
5874
5786
  {
@@ -6721,6 +6633,7 @@
6721
6633
  "category": "navigation",
6722
6634
  "type": "brick",
6723
6635
  "author": "lynette",
6636
+ "deprecated": true,
6724
6637
  "text": {
6725
6638
  "en": "sub-menu",
6726
6639
  "zh": "二级子菜单"
@@ -6958,8 +6871,7 @@
6958
6871
  "zh": "搜索能力二级菜单"
6959
6872
  },
6960
6873
  "icon": {
6961
- "lib": "fa",
6962
- "icon": "indent"
6874
+ "imgSrc": "bricks/basic-bricks/dist/stories-asserts/basic-bricks.sub-menu-filter.ddd3fbbbdf01f1fe.svg"
6963
6875
  },
6964
6876
  "conf": [
6965
6877
  {
@@ -6976,120 +6888,120 @@
6976
6888
  "defaultOpenKeys": [
6977
6889
  "diy"
6978
6890
  ],
6979
- "selectable": true,
6980
- "multiple": false,
6981
6891
  "defaultSelectedKeys": [
6982
6892
  "C++"
6983
6893
  ],
6984
6894
  "menuItems": [
6985
6895
  {
6986
- "type": "item",
6987
- "title": "全部",
6988
- "key": "All",
6989
6896
  "count": 100,
6990
6897
  "icon": {
6991
- "lib": "fa",
6992
- "icon": "cube"
6993
- }
6898
+ "icon": "cube",
6899
+ "lib": "fa"
6900
+ },
6901
+ "key": "All",
6902
+ "title": "全部",
6903
+ "type": "item"
6994
6904
  },
6995
6905
  {
6996
- "type": "group",
6997
- "title": "内置模板",
6998
- "key": "built-in-template",
6999
6906
  "items": [
7000
6907
  {
7001
- "title": "Java",
7002
- "key": "Java",
7003
6908
  "count": 60,
7004
6909
  "icon": {
7005
- "lib": "fa",
7006
- "icon": "cube"
7007
- }
6910
+ "icon": "cube",
6911
+ "lib": "fa"
6912
+ },
6913
+ "key": "Java",
6914
+ "title": "Java"
7008
6915
  },
7009
6916
  {
7010
- "title": "Go",
7011
- "key": "Go",
7012
6917
  "count": 10,
7013
6918
  "icon": {
7014
- "lib": "fa",
7015
- "icon": "cube"
7016
- }
6919
+ "icon": "cube",
6920
+ "lib": "fa"
6921
+ },
6922
+ "key": "Go",
6923
+ "title": "Go"
7017
6924
  },
7018
6925
  {
7019
- "title": "Cc",
7020
- "key": "cc",
7021
6926
  "count": 10,
7022
6927
  "icon": {
7023
- "lib": "fa",
7024
- "icon": "cube"
7025
- }
6928
+ "icon": "cube",
6929
+ "lib": "fa"
6930
+ },
6931
+ "key": "cc",
6932
+ "title": "Cc"
7026
6933
  },
7027
6934
  {
7028
- "title": "Python",
7029
- "key": "Python",
7030
6935
  "count": 10,
7031
6936
  "icon": {
7032
- "lib": "fa",
7033
- "icon": "cube"
7034
- }
6937
+ "icon": "cube",
6938
+ "lib": "fa"
6939
+ },
6940
+ "key": "Python",
6941
+ "title": "Python"
7035
6942
  }
7036
- ]
6943
+ ],
6944
+ "key": "built-in-template",
6945
+ "title": "内置模板",
6946
+ "type": "group"
7037
6947
  },
7038
6948
  {
7039
- "type": "group",
7040
- "title": "自定义模板",
7041
- "key": "customTemplate",
7042
6949
  "items": [
7043
6950
  {
7044
- "type": "subMenu",
7045
- "title": "标准模板",
7046
- "key": "standard",
7047
6951
  "icon": {
7048
- "lib": "easyops",
7049
6952
  "category": "model",
7050
- "icon": "app"
6953
+ "icon": "app",
6954
+ "lib": "easyops"
7051
6955
  },
7052
6956
  "items": [
7053
6957
  {
7054
- "title": "C++",
6958
+ "count": 5,
7055
6959
  "key": "C++",
7056
- "count": 5
6960
+ "title": "C++"
7057
6961
  },
7058
6962
  {
7059
- "title": "C",
6963
+ "count": 5,
7060
6964
  "key": "C",
7061
- "count": 5
6965
+ "title": "C"
7062
6966
  }
7063
- ]
6967
+ ],
6968
+ "key": "standard",
6969
+ "title": "标准模板",
6970
+ "type": "subMenu"
7064
6971
  },
7065
6972
  {
7066
- "type": "subMenu",
7067
- "title": "个性化模板c",
7068
- "key": "diy",
7069
6973
  "icon": {
7070
- "lib": "fa",
7071
- "icon": "cube"
6974
+ "icon": "cube",
6975
+ "lib": "fa"
7072
6976
  },
7073
6977
  "items": [
7074
6978
  {
7075
- "title": "易语言",
7076
- "key": "iyuyan",
7077
6979
  "count": 10,
7078
6980
  "icon": {
7079
- "lib": "fa",
7080
- "icon": "cube"
7081
- }
6981
+ "icon": "cube",
6982
+ "lib": "fa"
6983
+ },
6984
+ "key": "iyuyan",
6985
+ "title": "易语言"
7082
6986
  }
7083
- ]
6987
+ ],
6988
+ "key": "diy",
6989
+ "title": "个性化模板c",
6990
+ "type": "subMenu"
7084
6991
  }
7085
- ]
6992
+ ],
6993
+ "key": "customTemplate",
6994
+ "title": "自定义模板",
6995
+ "type": "group"
7086
6996
  }
7087
6997
  ],
6998
+ "multiple": false,
6999
+ "selectable": true,
7088
7000
  "suffixBrick": {
7089
7001
  "useBrick": {
7090
7002
  "brick": "presentational-bricks.brick-conditional-display",
7091
- "transform": {
7092
- "dataSource": "@{count}",
7003
+ "properties": {
7004
+ "dataSource": "<% DATA.count %>",
7093
7005
  "rules": [
7094
7006
  {
7095
7007
  "condition": {
@@ -7098,38 +7010,35 @@
7098
7010
  "style": {
7099
7011
  "backgroundColor": "var(--theme-red-color)",
7100
7012
  "color": "rgba(255, 255, 255, 1)"
7101
- },
7102
- "label": "@{value}"
7013
+ }
7103
7014
  },
7104
7015
  {
7105
7016
  "condition": {
7106
7017
  "$and": [
7107
7018
  {
7108
- "$lte": 85,
7109
- "$gt": 60
7019
+ "$gt": 60,
7020
+ "$lte": 85
7110
7021
  }
7111
7022
  ]
7112
7023
  },
7113
7024
  "style": {
7114
7025
  "backgroundColor": "var(--theme-orange-color)",
7115
7026
  "color": "rgba(255, 255, 255, 1)"
7116
- },
7117
- "label": "@{value}"
7027
+ }
7118
7028
  },
7119
7029
  {
7120
7030
  "condition": {
7121
7031
  "$and": [
7122
7032
  {
7123
- "$lte": 100,
7124
- "$gt": 85
7033
+ "$gt": 85,
7034
+ "$lte": 100
7125
7035
  }
7126
7036
  ]
7127
7037
  },
7128
7038
  "style": {
7129
7039
  "backgroundColor": "var(--theme-green-color)",
7130
7040
  "color": "rgba(255, 255, 255, 1)"
7131
- },
7132
- "label": "@{value}"
7041
+ }
7133
7042
  }
7134
7043
  ]
7135
7044
  }
@@ -7155,63 +7064,71 @@
7155
7064
  "change": "新增构件 `basic-bricks.sub-menu-filter`"
7156
7065
  }
7157
7066
  ],
7158
- "memo": "### INTERFACE\n\n```typescript\nexport declare type MenuIcon = AntdIcon | FaIcon | EasyopsIcon;\n\nexport interface AntdIcon {\n lib: \"antd\";\n type: string;\n theme?: ThemeType;\n}\nexport interface FaIcon {\n lib: \"fa\";\n icon: IconName;\n prefix?: IconPrefix;\n}\nexport interface EasyopsIcon {\n lib: \"easyops\";\n icon: string;\n category?: string;\n}\n\nexport interface SubMenuFilterSimpleItem {\n title: string;\n key: string;\n type?: \"item\";\n icon: MenuIcon;\n}\n\nexport interface SubMenuFilterGroup {\n type: \"group\" | \"subMenu\";\n title: string;\n items: SubMenuFilterSimpleItem[];\n key?: string;\n}\n\nexport type SubMenuFilterItem = SubMenuFilterSimpleItem | SubMenuFilterGroup;\n\nexport interface SubMenuFilterProps {\n defaultSelectedKeys: string[];\n defaultOpenKeys: string[];\n selectable: boolean;\n multiple: boolean;\n suffixBrick?: { useBrick: UseBrickConf };\n menuItems: SubMenuFilterItem[];\n placeholder?: string;\n unsearchable: boolean;\n onSelect: (menuItem: SubMenuFilterItem[]) => void;\n onSearch: (query: string) => void;\n}\n```",
7067
+ "memo": "### Interface\n\n```typescript\nexport declare type MenuIcon = AntdIcon | FaIcon | EasyopsIcon;\n\nexport interface AntdIcon {\n lib: \"antd\";\n type: string;\n theme?: ThemeType;\n}\nexport interface FaIcon {\n lib: \"fa\";\n icon: IconName;\n prefix?: IconPrefix;\n}\nexport interface EasyopsIcon {\n lib: \"easyops\";\n icon: string;\n category?: string;\n}\n\nexport interface SubMenuFilterSimpleItem {\n title: string;\n key: string;\n type?: \"item\";\n icon: MenuIcon;\n}\n\nexport interface SubMenuFilterGroup {\n type: \"group\" | \"subMenu\";\n title: string;\n items: SubMenuFilterSimpleItem[];\n key?: string;\n}\n\nexport type SubMenuFilterItem = SubMenuFilterSimpleItem | SubMenuFilterGroup;\n\nexport interface SubMenuFilterProps {\n defaultSelectedKeys: string[];\n defaultOpenKeys: string[];\n selectable: boolean;\n multiple: boolean;\n suffixBrick?: { useBrick: UseBrickConf };\n menuItems: SubMenuFilterItem[];\n placeholder?: string;\n unsearchable: boolean;\n onSelect: (menuItem: SubMenuFilterItem[]) => void;\n onSearch: (query: string) => void;\n}\n```",
7159
7068
  "properties": [
7160
7069
  {
7161
7070
  "name": "menuItems",
7162
7071
  "type": "SubMenuFilterItem[]",
7163
7072
  "required": "-",
7164
7073
  "default": "-",
7165
- "description": "菜单项"
7074
+ "description": "菜单项",
7075
+ "group": "basic"
7166
7076
  },
7167
7077
  {
7168
7078
  "name": "suffixBrick",
7169
- "type": "{useBrick:[UseBrickConf](http://docs.developers.easyops.cn/docs/api-reference/brick-types.usebrickconf)}",
7079
+ "type": "{useBrick:UseBrickConf}",
7170
7080
  "required": "false",
7171
7081
  "default": "-",
7172
- "description": "列表项 extra 位置(右边)"
7082
+ "description": "列表项 extra 位置(右边),相关文档[UseBrickConf](/next-docs/docs/api-reference/brick-types.usebrickconf)",
7083
+ "group": "other"
7173
7084
  },
7174
7085
  {
7175
7086
  "name": "unsearchable",
7176
7087
  "type": "boolean",
7177
7088
  "required": "false",
7178
7089
  "default": "false",
7179
- "description": "是否展示搜索框"
7090
+ "description": "是否展示搜索框",
7091
+ "group": "basic"
7180
7092
  },
7181
7093
  {
7182
7094
  "name": "placeholder",
7183
7095
  "type": "string",
7184
7096
  "required": "false",
7185
7097
  "default": "-",
7186
- "description": "搜索框 placeholder"
7098
+ "description": "搜索框 placeholder",
7099
+ "group": "basic"
7187
7100
  },
7188
7101
  {
7189
7102
  "name": "defaultSelectedKeys",
7190
7103
  "type": "string[]",
7191
7104
  "required": "false",
7192
7105
  "default": "-",
7193
- "description": "初始选中的菜单项 key 数组"
7106
+ "description": "初始选中的菜单项 key 数组",
7107
+ "group": "basic"
7194
7108
  },
7195
7109
  {
7196
7110
  "name": "defaultOpenKeys",
7197
7111
  "type": "string[]",
7198
7112
  "required": "false",
7199
7113
  "default": "-",
7200
- "description": "初始展开的 SubMenu 菜单项 key 数组"
7114
+ "description": "初始展开的 SubMenu 菜单项 key 数组",
7115
+ "group": "basic"
7201
7116
  },
7202
7117
  {
7203
7118
  "name": "selectable",
7204
7119
  "type": "boolean",
7205
7120
  "required": "false",
7206
7121
  "default": "true",
7207
- "description": "是否允许选中"
7122
+ "description": "是否允许选中",
7123
+ "group": "basic"
7208
7124
  },
7209
7125
  {
7210
7126
  "name": "multiple",
7211
7127
  "type": "boolean",
7212
7128
  "required": "false",
7213
7129
  "default": "false",
7214
- "description": "是否多选"
7130
+ "description": "是否多选",
7131
+ "group": "basic"
7215
7132
  },
7216
7133
  {
7217
7134
  "name": "inlineIndent",
@@ -7219,21 +7136,23 @@
7219
7136
  "required": "false",
7220
7137
  "default": "24",
7221
7138
  "description": "菜单缩进宽度",
7222
- "group": "advanced"
7139
+ "group": "ui"
7223
7140
  },
7224
7141
  {
7225
7142
  "name": "transparentBackground",
7226
7143
  "type": "boolean",
7227
7144
  "required": "false",
7228
7145
  "default": "false",
7229
- "description": "是否采用透明背景样式"
7146
+ "description": "是否采用透明背景样式",
7147
+ "group": "ui"
7230
7148
  },
7231
7149
  {
7232
7150
  "name": "accordion",
7233
7151
  "type": "boolean",
7234
7152
  "required": "false",
7235
7153
  "default": "false",
7236
- "description": "手风琴模式"
7154
+ "description": "手风琴模式",
7155
+ "group": "basic"
7237
7156
  }
7238
7157
  ],
7239
7158
  "events": [
@@ -7253,7 +7172,7 @@
7253
7172
  },
7254
7173
  {
7255
7174
  "storyId": "basic-bricks.transform-agent",
7256
- "category": "data-convert",
7175
+ "category": "other",
7257
7176
  "type": "brick",
7258
7177
  "author": "steve",
7259
7178
  "text": {
@@ -7485,7 +7404,7 @@
7485
7404
  },
7486
7405
  {
7487
7406
  "storyId": "basic-bricks.general-anchor",
7488
- "category": "description",
7407
+ "category": "interact-baisc",
7489
7408
  "type": "brick",
7490
7409
  "author": "astrid",
7491
7410
  "text": {
@@ -7497,9 +7416,7 @@
7497
7416
  "zh": "用于跳转到页面指定位置"
7498
7417
  },
7499
7418
  "icon": {
7500
- "lib": "fa",
7501
- "icon": "link",
7502
- "prefix": "fas"
7419
+ "imgSrc": "bricks/basic-bricks/dist/stories-asserts/basic-bricks.general-anchor.e5abcdbf79476048.svg"
7503
7420
  },
7504
7421
  "conf": [
7505
7422
  {
@@ -7579,21 +7496,24 @@
7579
7496
  "type": "`AnchorListType[]`",
7580
7497
  "required": "true",
7581
7498
  "default": "-",
7582
- "description": "锚点链接的list,会根据list的结构渲染出对应的锚点排布,"
7499
+ "description": "锚点链接的list,会根据list的结构渲染出对应的锚点排布",
7500
+ "group": "basic"
7583
7501
  },
7584
7502
  {
7585
7503
  "name": "configProps",
7586
7504
  "type": "`AnchorProps`",
7587
7505
  "required": "false",
7588
7506
  "default": "-",
7589
- "description": "锚点的具体参数,这里offsetTop设置了默认为`56`,其他参数可参考antd https://ant.design/docs/react/use-in-typescript-cn#Anchor-Props"
7507
+ "description": "锚点的具体参数,这里offsetTop设置了默认为`56`,其他参数可参考[antd](https://ant.design/docs/react/use-in-typescript-cn#Anchor-Props)",
7508
+ "group": "basic"
7590
7509
  },
7591
7510
  {
7592
7511
  "name": "type",
7593
7512
  "type": "`\"default\" | \"radio\"`",
7594
7513
  "required": "false",
7595
- "default": "`default`",
7596
- "description": "锚点的类型 , `radio` 的类型不支持 `anchorList`属性有`children`,否则会样式有问题"
7514
+ "default": "default",
7515
+ "description": "锚点的类型 , `radio` 的类型不支持 `anchorList`属性有`children`,否则会样式有问题",
7516
+ "group": "basic"
7597
7517
  },
7598
7518
  {
7599
7519
  "name": "extraBrick",
@@ -7608,14 +7528,16 @@
7608
7528
  "type": "boolean",
7609
7529
  "required": "false",
7610
7530
  "default": "false",
7611
- "description": "禁用默认跳转事件"
7531
+ "description": "禁用默认跳转事件",
7532
+ "group": "basic"
7612
7533
  },
7613
7534
  {
7614
7535
  "name": "initOffset",
7615
7536
  "type": "number",
7616
7537
  "required": "false",
7617
7538
  "default": "",
7618
- "description": "页面初始化时希望额外向上滚动的距离,例如在target有较大padding但是希望内容显示在上方时可设置。"
7539
+ "description": "页面初始化时希望额外向上滚动的距离,例如在target有较大padding但是希望内容显示在上方时可设置。",
7540
+ "group": "ui"
7619
7541
  }
7620
7542
  ],
7621
7543
  "interface": [
@@ -7662,7 +7584,7 @@
7662
7584
  },
7663
7585
  {
7664
7586
  "storyId": "basic-bricks.general-title",
7665
- "category": "other",
7587
+ "category": "text",
7666
7588
  "type": "brick",
7667
7589
  "author": "astrid",
7668
7590
  "text": {
@@ -7674,9 +7596,7 @@
7674
7596
  "zh": "可以配置标题、副标题、描述"
7675
7597
  },
7676
7598
  "icon": {
7677
- "lib": "fa",
7678
- "icon": "angellist",
7679
- "prefix": "fab"
7599
+ "imgSrc": "bricks/basic-bricks/dist/stories-asserts/basic-bricks.general-title.86281097750f8e66.svg"
7680
7600
  },
7681
7601
  "conf": [
7682
7602
  {
@@ -7760,7 +7680,7 @@
7760
7680
  "required": "false",
7761
7681
  "default": "",
7762
7682
  "description": "可以在描述前添加前缀",
7763
- "group": "advanced"
7683
+ "group": "other"
7764
7684
  },
7765
7685
  {
7766
7686
  "name": "titleSuffixBrick",
@@ -7768,7 +7688,7 @@
7768
7688
  "required": "false",
7769
7689
  "default": "",
7770
7690
  "description": "可以在标题后添加后缀",
7771
- "group": "advanced"
7691
+ "group": "other"
7772
7692
  },
7773
7693
  {
7774
7694
  "name": "descSuffixBrick",
@@ -7776,7 +7696,7 @@
7776
7696
  "required": "false",
7777
7697
  "default": "",
7778
7698
  "description": "可以在描述后面添加后缀",
7779
- "group": "advanced"
7699
+ "group": "other"
7780
7700
  },
7781
7701
  {
7782
7702
  "name": "dataSource",
@@ -7784,7 +7704,7 @@
7784
7704
  "required": "false",
7785
7705
  "default": "",
7786
7706
  "description": "数据源",
7787
- "group": "advanced"
7707
+ "group": "other"
7788
7708
  },
7789
7709
  {
7790
7710
  "name": "fields",
@@ -7792,7 +7712,7 @@
7792
7712
  "required": "false",
7793
7713
  "default": "",
7794
7714
  "description": "字段映射, 跟 dataSource 一起使用来获得运行时 mainTitle、 description",
7795
- "group": "advanced"
7715
+ "group": "other"
7796
7716
  }
7797
7717
  ],
7798
7718
  "interface": []
@@ -7800,20 +7720,19 @@
7800
7720
  },
7801
7721
  {
7802
7722
  "storyId": "basic-bricks.flex-layout",
7803
- "category": "layout",
7723
+ "category": "container-layout",
7804
7724
  "type": "brick",
7805
7725
  "author": "kehua",
7806
7726
  "text": {
7807
- "en": "Flex Layout",
7808
- "zh": "flex布局"
7727
+ "en": "Flex Layout Container",
7728
+ "zh": "Flex布局容器"
7809
7729
  },
7810
7730
  "description": {
7811
7731
  "en": "A Flex layout container",
7812
7732
  "zh": "基于Flex的布局容器"
7813
7733
  },
7814
7734
  "icon": {
7815
- "lib": "fa",
7816
- "icon": "th"
7735
+ "imgSrc": "bricks/basic-bricks/dist/stories-asserts/basic-bricks.flex-layout.437e23a3219d798e.svg"
7817
7736
  },
7818
7737
  "conf": [
7819
7738
  {
@@ -7941,7 +7860,7 @@
7941
7860
  "author": "kehua",
7942
7861
  "history": [
7943
7862
  {
7944
- "version": "1.x.0",
7863
+ "version": "1.0.0",
7945
7864
  "change": " 新增构件 `basic-bricks.flex-layout`"
7946
7865
  }
7947
7866
  ],
@@ -7951,37 +7870,43 @@
7951
7870
  "name": "flexDirection",
7952
7871
  "type": "string",
7953
7872
  "required": false,
7954
- "description": "定义[flex-direction]:设置主轴方向"
7873
+ "description": "定义[flex-direction]:设置主轴方向",
7874
+ "group": "basic"
7955
7875
  },
7956
7876
  {
7957
7877
  "name": "justifyContent",
7958
7878
  "type": "string",
7959
7879
  "required": false,
7960
- "description": "定义[justify-content]:设置主轴上子元素的排列方式"
7880
+ "description": "定义[justify-content]:设置主轴上子元素的排列方式",
7881
+ "group": "basic"
7961
7882
  },
7962
7883
  {
7963
7884
  "name": "alignItems",
7964
7885
  "type": "string",
7965
7886
  "required": false,
7966
- "description": "定义[align-items]:设置侧轴上的子元素排列方式(单行)"
7887
+ "description": "定义[align-items]:设置侧轴上的子元素排列方式(单行)",
7888
+ "group": "basic"
7967
7889
  },
7968
7890
  {
7969
7891
  "name": "alignContent",
7970
7892
  "type": "string",
7971
7893
  "required": false,
7972
- "description": "定义[align-content]:设置侧轴上的子元素排列方式(多行)"
7894
+ "description": "定义[align-content]:设置侧轴上的子元素排列方式(多行)",
7895
+ "group": "basic"
7973
7896
  },
7974
7897
  {
7975
7898
  "name": "flexWrap",
7976
7899
  "type": "string",
7977
7900
  "required": false,
7978
- "description": "定义[flex-wrap]:设置换行方式"
7901
+ "description": "定义[flex-wrap]:设置换行方式",
7902
+ "group": "basic"
7979
7903
  },
7980
7904
  {
7981
7905
  "name": "gap",
7982
7906
  "type": "string",
7983
7907
  "required": false,
7984
- "description": "定义[gap]:设置元素间隙"
7908
+ "description": "定义[gap]:设置元素间隙",
7909
+ "group": "basic"
7985
7910
  }
7986
7911
  ],
7987
7912
  "interface": []