@next-bricks/basic-bricks 1.180.12 → 1.182.1
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 +99 -453
- package/deploy/contract.yaml +79 -79
- package/dist/bricks.json +21 -21
- package/dist/index.094c53ad.js +11 -0
- package/dist/index.094c53ad.js.map +1 -0
- package/dist/stories.json +101 -19
- package/package.json +2 -2
- package/dist/index.c72d18f7.js +0 -11
- package/dist/index.c72d18f7.js.map +0 -1
package/dist/stories.json
CHANGED
|
@@ -272,7 +272,9 @@
|
|
|
272
272
|
},
|
|
273
273
|
{
|
|
274
274
|
"name": "selectable",
|
|
275
|
-
"type": "boolean"
|
|
275
|
+
"type": "boolean",
|
|
276
|
+
"required": true,
|
|
277
|
+
"default": "true"
|
|
276
278
|
}
|
|
277
279
|
],
|
|
278
280
|
"interface": []
|
|
@@ -455,36 +457,42 @@
|
|
|
455
457
|
{
|
|
456
458
|
"name": "gridAreas",
|
|
457
459
|
"type": "Record<string, (string | number)[]>",
|
|
460
|
+
"required": true,
|
|
458
461
|
"description": "以键值对形式定义多个 [grid-area](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area)",
|
|
459
462
|
"group": "basic"
|
|
460
463
|
},
|
|
461
464
|
{
|
|
462
465
|
"name": "gridTemplateAreas",
|
|
463
466
|
"type": "string[][]",
|
|
467
|
+
"required": true,
|
|
464
468
|
"description": "定义 [grid-template-areas](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas)",
|
|
465
469
|
"group": "basic"
|
|
466
470
|
},
|
|
467
471
|
{
|
|
468
472
|
"name": "gridTemplateColumns",
|
|
469
473
|
"type": "string | string[]",
|
|
474
|
+
"required": true,
|
|
470
475
|
"description": "定义 [grid-template-columns](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns)",
|
|
471
476
|
"group": "basic"
|
|
472
477
|
},
|
|
473
478
|
{
|
|
474
479
|
"name": "gridTemplateRows",
|
|
475
480
|
"type": "string | string[]",
|
|
481
|
+
"required": true,
|
|
476
482
|
"description": "定义 [grid-template-rows](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows)",
|
|
477
483
|
"group": "basic"
|
|
478
484
|
},
|
|
479
485
|
{
|
|
480
486
|
"name": "containerStyle",
|
|
481
487
|
"type": "CSSProperties",
|
|
488
|
+
"required": true,
|
|
482
489
|
"description": "定义网格容器的样式",
|
|
483
490
|
"group": "ui"
|
|
484
491
|
},
|
|
485
492
|
{
|
|
486
493
|
"name": "styleByAreas",
|
|
487
494
|
"type": "Record<string, CSSProperties>",
|
|
495
|
+
"required": true,
|
|
488
496
|
"description": "定义网格内各区域的样式",
|
|
489
497
|
"group": "ui"
|
|
490
498
|
}
|
|
@@ -743,19 +751,23 @@
|
|
|
743
751
|
"properties": [
|
|
744
752
|
{
|
|
745
753
|
"name": "useBrick",
|
|
746
|
-
"type": "UseBrickConf"
|
|
754
|
+
"type": "UseBrickConf",
|
|
755
|
+
"required": true
|
|
747
756
|
},
|
|
748
757
|
{
|
|
749
758
|
"name": "foldName",
|
|
750
|
-
"type": "string"
|
|
759
|
+
"type": "string",
|
|
760
|
+
"required": true
|
|
751
761
|
},
|
|
752
762
|
{
|
|
753
763
|
"name": "foldStyle",
|
|
754
|
-
"type": "Record<string, string>"
|
|
764
|
+
"type": "Record<string, string>",
|
|
765
|
+
"required": true
|
|
755
766
|
},
|
|
756
767
|
{
|
|
757
768
|
"name": "defaultShow",
|
|
758
|
-
"type": "boolean"
|
|
769
|
+
"type": "boolean",
|
|
770
|
+
"required": false
|
|
759
771
|
}
|
|
760
772
|
],
|
|
761
773
|
"interface": []
|
|
@@ -1303,7 +1315,8 @@
|
|
|
1303
1315
|
"required": false,
|
|
1304
1316
|
"description": "气泡框位置,可选 `top` `left` `right` `bottom` `topLeft` `topRight` `bottomLeft` `bottomRight` `leftTop` `leftBottom` `rightTop` `rightBottom`"
|
|
1305
1317
|
}
|
|
1306
|
-
]
|
|
1318
|
+
],
|
|
1319
|
+
"indexSignature": []
|
|
1307
1320
|
},
|
|
1308
1321
|
{
|
|
1309
1322
|
"name": "TooltipPlacement",
|
|
@@ -1803,6 +1816,7 @@
|
|
|
1803
1816
|
{
|
|
1804
1817
|
"name": "hasFooter",
|
|
1805
1818
|
"type": "boolean",
|
|
1819
|
+
"required": true,
|
|
1806
1820
|
"group": "basic"
|
|
1807
1821
|
},
|
|
1808
1822
|
{
|
|
@@ -1836,7 +1850,7 @@
|
|
|
1836
1850
|
"children": [
|
|
1837
1851
|
{
|
|
1838
1852
|
"name": "configProps",
|
|
1839
|
-
"type": "ButtonProps &
|
|
1853
|
+
"type": "ButtonProps & { icon?: string; }",
|
|
1840
1854
|
"required": true,
|
|
1841
1855
|
"description": ""
|
|
1842
1856
|
},
|
|
@@ -1870,7 +1884,8 @@
|
|
|
1870
1884
|
"required": false,
|
|
1871
1885
|
"description": ""
|
|
1872
1886
|
}
|
|
1873
|
-
]
|
|
1887
|
+
],
|
|
1888
|
+
"indexSignature": []
|
|
1874
1889
|
}
|
|
1875
1890
|
]
|
|
1876
1891
|
}
|
|
@@ -2950,6 +2965,7 @@
|
|
|
2950
2965
|
"methods": [
|
|
2951
2966
|
{
|
|
2952
2967
|
"name": "updateButton",
|
|
2968
|
+
"params": "id: string btn: Partial<CustomButton>",
|
|
2953
2969
|
"description": "更新按钮"
|
|
2954
2970
|
}
|
|
2955
2971
|
],
|
|
@@ -3085,7 +3101,8 @@
|
|
|
3085
3101
|
"required": false,
|
|
3086
3102
|
"description": "相当于 a 链接的 target 属性,buttonUrl 或 buttonHref 存在时生效"
|
|
3087
3103
|
}
|
|
3088
|
-
]
|
|
3104
|
+
],
|
|
3105
|
+
"indexSignature": []
|
|
3089
3106
|
},
|
|
3090
3107
|
{
|
|
3091
3108
|
"name": "DropdownPlacement",
|
|
@@ -3497,8 +3514,8 @@
|
|
|
3497
3514
|
{
|
|
3498
3515
|
"name": "isFloat",
|
|
3499
3516
|
"type": "boolean",
|
|
3500
|
-
"default": "false",
|
|
3501
3517
|
"required": "false",
|
|
3518
|
+
"default": "false",
|
|
3502
3519
|
"description": "是否浮层样式,如果设为true,则抽屉边缘会有外边距,圆角和阴影",
|
|
3503
3520
|
"group": "ui"
|
|
3504
3521
|
},
|
|
@@ -3534,14 +3551,17 @@
|
|
|
3534
3551
|
"methods": [
|
|
3535
3552
|
{
|
|
3536
3553
|
"name": "bodyScroll",
|
|
3554
|
+
"params": "top: number",
|
|
3537
3555
|
"description": "抽屉内部内容上下滚动"
|
|
3538
3556
|
},
|
|
3539
3557
|
{
|
|
3540
3558
|
"name": "close",
|
|
3559
|
+
"params": "option?: OpenCloseOption",
|
|
3541
3560
|
"description": "显示抽屉构件"
|
|
3542
3561
|
},
|
|
3543
3562
|
{
|
|
3544
3563
|
"name": "open",
|
|
3564
|
+
"params": "option?: OpenCloseOption",
|
|
3545
3565
|
"description": "显示抽屉构件"
|
|
3546
3566
|
}
|
|
3547
3567
|
],
|
|
@@ -3550,6 +3570,7 @@
|
|
|
3550
3570
|
"name": "ICustomSwitchConfig",
|
|
3551
3571
|
"typeParameter": null,
|
|
3552
3572
|
"kind": "interface",
|
|
3573
|
+
"description": "文字和图标只会显示其中一个,优先显示图标,文字最多显示4个字符。",
|
|
3553
3574
|
"children": [
|
|
3554
3575
|
{
|
|
3555
3576
|
"name": "closeIcon",
|
|
@@ -3581,7 +3602,22 @@
|
|
|
3581
3602
|
"required": false,
|
|
3582
3603
|
"description": ""
|
|
3583
3604
|
}
|
|
3584
|
-
]
|
|
3605
|
+
],
|
|
3606
|
+
"indexSignature": []
|
|
3607
|
+
},
|
|
3608
|
+
{
|
|
3609
|
+
"name": "OpenCloseOption",
|
|
3610
|
+
"typeParameter": null,
|
|
3611
|
+
"kind": "interface",
|
|
3612
|
+
"children": [
|
|
3613
|
+
{
|
|
3614
|
+
"name": "noEvent",
|
|
3615
|
+
"type": "boolean",
|
|
3616
|
+
"required": false,
|
|
3617
|
+
"description": ""
|
|
3618
|
+
}
|
|
3619
|
+
],
|
|
3620
|
+
"indexSignature": []
|
|
3585
3621
|
}
|
|
3586
3622
|
]
|
|
3587
3623
|
}
|
|
@@ -4052,6 +4088,7 @@
|
|
|
4052
4088
|
},
|
|
4053
4089
|
{
|
|
4054
4090
|
"type": "modal.open",
|
|
4091
|
+
"detail": "Record<string, any>",
|
|
4055
4092
|
"description": "打开 modal 时发出该事件"
|
|
4056
4093
|
}
|
|
4057
4094
|
],
|
|
@@ -4139,6 +4176,7 @@
|
|
|
4139
4176
|
{
|
|
4140
4177
|
"name": "fullscreen",
|
|
4141
4178
|
"type": "boolean",
|
|
4179
|
+
"required": false,
|
|
4142
4180
|
"default": "false",
|
|
4143
4181
|
"description": "全屏模式",
|
|
4144
4182
|
"group": "ui"
|
|
@@ -4226,9 +4264,9 @@
|
|
|
4226
4264
|
{
|
|
4227
4265
|
"name": "fields",
|
|
4228
4266
|
"type": "{modalTitle: string}",
|
|
4229
|
-
"deprecated": true,
|
|
4230
4267
|
"required": "false",
|
|
4231
4268
|
"default": "-",
|
|
4269
|
+
"deprecated": true,
|
|
4232
4270
|
"description": "`已废弃` 字段映射, 跟 dataSource 一起使用来获得运行时 modalTitle",
|
|
4233
4271
|
"group": "other"
|
|
4234
4272
|
}
|
|
@@ -4241,10 +4279,26 @@
|
|
|
4241
4279
|
},
|
|
4242
4280
|
{
|
|
4243
4281
|
"name": "open",
|
|
4282
|
+
"params": "option?: OpenCloseOption",
|
|
4244
4283
|
"description": "弹出模态框"
|
|
4245
4284
|
}
|
|
4246
4285
|
],
|
|
4247
|
-
"interface": [
|
|
4286
|
+
"interface": [
|
|
4287
|
+
{
|
|
4288
|
+
"name": "OpenCloseOption",
|
|
4289
|
+
"typeParameter": null,
|
|
4290
|
+
"kind": "interface",
|
|
4291
|
+
"children": [
|
|
4292
|
+
{
|
|
4293
|
+
"name": "noEvent",
|
|
4294
|
+
"type": "boolean",
|
|
4295
|
+
"required": false,
|
|
4296
|
+
"description": ""
|
|
4297
|
+
}
|
|
4298
|
+
],
|
|
4299
|
+
"indexSignature": []
|
|
4300
|
+
}
|
|
4301
|
+
]
|
|
4248
4302
|
}
|
|
4249
4303
|
},
|
|
4250
4304
|
{
|
|
@@ -4608,36 +4662,42 @@
|
|
|
4608
4662
|
{
|
|
4609
4663
|
"name": "columns",
|
|
4610
4664
|
"type": "number",
|
|
4665
|
+
"required": false,
|
|
4611
4666
|
"default": "-",
|
|
4612
4667
|
"description": "网格布局列数(各列等宽)"
|
|
4613
4668
|
},
|
|
4614
4669
|
{
|
|
4615
4670
|
"name": "columnSpan",
|
|
4616
4671
|
"type": "number",
|
|
4672
|
+
"required": false,
|
|
4617
4673
|
"default": "auto",
|
|
4618
4674
|
"description": "自己在父级网格中所占列数"
|
|
4619
4675
|
},
|
|
4620
4676
|
{
|
|
4621
4677
|
"name": "rows",
|
|
4622
4678
|
"type": "number",
|
|
4679
|
+
"required": false,
|
|
4623
4680
|
"default": "1",
|
|
4624
4681
|
"description": "网格布局行数,通常不需设置,各行高度由内容决定。设置为 > 1 时,各行高度相同。"
|
|
4625
4682
|
},
|
|
4626
4683
|
{
|
|
4627
4684
|
"name": "rowSpan",
|
|
4628
4685
|
"type": "number",
|
|
4686
|
+
"required": false,
|
|
4629
4687
|
"default": "1",
|
|
4630
4688
|
"description": "自己在父级网格中所占行数"
|
|
4631
4689
|
},
|
|
4632
4690
|
{
|
|
4633
4691
|
"name": "templateColumns",
|
|
4634
4692
|
"type": "string",
|
|
4693
|
+
"required": false,
|
|
4635
4694
|
"default": "-",
|
|
4636
4695
|
"description": "网格布局模板列,即 CSS 的 gridTemplateColumns,优先于 `columns`。"
|
|
4637
4696
|
},
|
|
4638
4697
|
{
|
|
4639
4698
|
"name": "responsive",
|
|
4640
4699
|
"type": "ResponsiveSettings",
|
|
4700
|
+
"required": false,
|
|
4641
4701
|
"default": "1",
|
|
4642
4702
|
"description": "响应式布局设置"
|
|
4643
4703
|
}
|
|
@@ -4672,7 +4732,8 @@
|
|
|
4672
4732
|
"required": false,
|
|
4673
4733
|
"description": ""
|
|
4674
4734
|
}
|
|
4675
|
-
]
|
|
4735
|
+
],
|
|
4736
|
+
"indexSignature": []
|
|
4676
4737
|
},
|
|
4677
4738
|
{
|
|
4678
4739
|
"name": "GridSettings",
|
|
@@ -4709,7 +4770,8 @@
|
|
|
4709
4770
|
"required": false,
|
|
4710
4771
|
"description": ""
|
|
4711
4772
|
}
|
|
4712
|
-
]
|
|
4773
|
+
],
|
|
4774
|
+
"indexSignature": []
|
|
4713
4775
|
}
|
|
4714
4776
|
]
|
|
4715
4777
|
}
|
|
@@ -4836,14 +4898,14 @@
|
|
|
4836
4898
|
{
|
|
4837
4899
|
"name": "contentGridGap",
|
|
4838
4900
|
"type": "number",
|
|
4839
|
-
"required": "
|
|
4901
|
+
"required": "false",
|
|
4840
4902
|
"default": "24",
|
|
4841
4903
|
"description": "内容区的 gap,内容区固定为 grid 布局"
|
|
4842
4904
|
},
|
|
4843
4905
|
{
|
|
4844
4906
|
"name": "title",
|
|
4845
4907
|
"type": "string",
|
|
4846
|
-
"required": "
|
|
4908
|
+
"required": "false",
|
|
4847
4909
|
"default": "-",
|
|
4848
4910
|
"description": "卡片标题"
|
|
4849
4911
|
}
|
|
@@ -4944,6 +5006,7 @@
|
|
|
4944
5006
|
{
|
|
4945
5007
|
"name": "gap",
|
|
4946
5008
|
"type": "string | number",
|
|
5009
|
+
"required": false,
|
|
4947
5010
|
"default": "\"var(--card-content-gap)\"",
|
|
4948
5011
|
"description": "间距(配合extraContainerStyle使用)",
|
|
4949
5012
|
"group": "ui"
|
|
@@ -4951,6 +5014,7 @@
|
|
|
4951
5014
|
{
|
|
4952
5015
|
"name": "extraContainerStyle",
|
|
4953
5016
|
"type": "Record<string, any>",
|
|
5017
|
+
"required": false,
|
|
4954
5018
|
"default": "-",
|
|
4955
5019
|
"description": "容器本身默认是 grid 布局,可以设置额外的样式。",
|
|
4956
5020
|
"group": "ui"
|
|
@@ -4958,6 +5022,7 @@
|
|
|
4958
5022
|
{
|
|
4959
5023
|
"name": "containerStyle",
|
|
4960
5024
|
"type": "Record<string, any>",
|
|
5025
|
+
"required": false,
|
|
4961
5026
|
"default": "-",
|
|
4962
5027
|
"description": "自定义容器的样式,容器本身默认是 grid 布局,如果`containerStyle`不为空则覆盖掉容器本身的样式配置",
|
|
4963
5028
|
"group": "ui"
|
|
@@ -5472,6 +5537,7 @@
|
|
|
5472
5537
|
{
|
|
5473
5538
|
"name": "dashboardMode",
|
|
5474
5539
|
"type": "boolean",
|
|
5540
|
+
"required": true,
|
|
5475
5541
|
"default": "false",
|
|
5476
5542
|
"description": "是否启用大屏模式。",
|
|
5477
5543
|
"group": "ui"
|
|
@@ -5479,12 +5545,14 @@
|
|
|
5479
5545
|
{
|
|
5480
5546
|
"name": "pageTitleScale",
|
|
5481
5547
|
"type": "number",
|
|
5548
|
+
"required": false,
|
|
5482
5549
|
"description": "标题栏大小比例,默认为 1,仅用于暗黑大屏模式。",
|
|
5483
5550
|
"group": "ui"
|
|
5484
5551
|
},
|
|
5485
5552
|
{
|
|
5486
5553
|
"name": "hideToolbar",
|
|
5487
5554
|
"type": "boolean",
|
|
5555
|
+
"required": true,
|
|
5488
5556
|
"default": "false",
|
|
5489
5557
|
"description": "是否隐藏工具栏(常用语大屏模式)。",
|
|
5490
5558
|
"group": "ui"
|
|
@@ -5492,6 +5560,7 @@
|
|
|
5492
5560
|
{
|
|
5493
5561
|
"name": "bannerStyle",
|
|
5494
5562
|
"type": "CSSProperties",
|
|
5563
|
+
"required": false,
|
|
5495
5564
|
"default": "-",
|
|
5496
5565
|
"description": "banner 的样式",
|
|
5497
5566
|
"group": "ui"
|
|
@@ -5806,6 +5875,7 @@
|
|
|
5806
5875
|
{
|
|
5807
5876
|
"name": "dashboardMode",
|
|
5808
5877
|
"type": "boolean",
|
|
5878
|
+
"required": false,
|
|
5809
5879
|
"default": "false",
|
|
5810
5880
|
"description": "是否以 dashboard 模式显示",
|
|
5811
5881
|
"group": "basic"
|
|
@@ -7567,8 +7637,8 @@
|
|
|
7567
7637
|
{
|
|
7568
7638
|
"name": "disabledJump",
|
|
7569
7639
|
"type": "boolean",
|
|
7570
|
-
"default": "false",
|
|
7571
7640
|
"required": "false",
|
|
7641
|
+
"default": "false",
|
|
7572
7642
|
"description": "禁用默认跳转事件"
|
|
7573
7643
|
}
|
|
7574
7644
|
],
|
|
@@ -7577,6 +7647,12 @@
|
|
|
7577
7647
|
"name": "AnchorListType",
|
|
7578
7648
|
"typeParameter": null,
|
|
7579
7649
|
"kind": "interface",
|
|
7650
|
+
"extendedTypes": [
|
|
7651
|
+
{
|
|
7652
|
+
"type": "reference",
|
|
7653
|
+
"name": "AnchorLinkProps"
|
|
7654
|
+
}
|
|
7655
|
+
],
|
|
7580
7656
|
"children": [
|
|
7581
7657
|
{
|
|
7582
7658
|
"name": "children",
|
|
@@ -7614,7 +7690,8 @@
|
|
|
7614
7690
|
"required": true,
|
|
7615
7691
|
"description": ""
|
|
7616
7692
|
}
|
|
7617
|
-
]
|
|
7693
|
+
],
|
|
7694
|
+
"indexSignature": []
|
|
7618
7695
|
}
|
|
7619
7696
|
]
|
|
7620
7697
|
}
|
|
@@ -7826,26 +7903,31 @@
|
|
|
7826
7903
|
{
|
|
7827
7904
|
"name": "flexDirection",
|
|
7828
7905
|
"type": "string",
|
|
7906
|
+
"required": false,
|
|
7829
7907
|
"description": "定义[flex-direction]:设置主轴方向"
|
|
7830
7908
|
},
|
|
7831
7909
|
{
|
|
7832
7910
|
"name": "justifyContent",
|
|
7833
7911
|
"type": "string",
|
|
7912
|
+
"required": false,
|
|
7834
7913
|
"description": "定义[justify-content]:设置主轴上子元素的排列方式"
|
|
7835
7914
|
},
|
|
7836
7915
|
{
|
|
7837
7916
|
"name": "alignItems",
|
|
7838
7917
|
"type": "string",
|
|
7918
|
+
"required": false,
|
|
7839
7919
|
"description": "定义[align-items]:设置侧轴上的子元素排列方式(单行)"
|
|
7840
7920
|
},
|
|
7841
7921
|
{
|
|
7842
7922
|
"name": "alignContent",
|
|
7843
7923
|
"type": "string",
|
|
7924
|
+
"required": false,
|
|
7844
7925
|
"description": "定义[align-content]:设置侧轴上的子元素排列方式(多行)"
|
|
7845
7926
|
},
|
|
7846
7927
|
{
|
|
7847
7928
|
"name": "flexWrap",
|
|
7848
7929
|
"type": "string",
|
|
7930
|
+
"required": false,
|
|
7849
7931
|
"description": "定义[flex-wrap]:设置换行方式"
|
|
7850
7932
|
}
|
|
7851
7933
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/basic-bricks",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.182.1",
|
|
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",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"immutability-helper": "^3.1.1"
|
|
40
40
|
},
|
|
41
41
|
"sideEffects": true,
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "903a30046c933390b0550ece2a95e4c91f67a1f4"
|
|
43
43
|
}
|