@next-bricks/basic-bricks 1.181.0 → 1.182.2
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 +34 -0
- package/deploy/contract.yaml +82 -82
- package/dist/bricks.json +30 -30
- package/dist/{index.a3114334.js → index.5fba3ece.js} +2 -2
- package/dist/index.5fba3ece.js.map +1 -0
- package/dist/stories.json +82 -13
- package/package.json +2 -2
- package/dist/index.a3114334.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": []
|
|
@@ -1804,6 +1816,7 @@
|
|
|
1804
1816
|
{
|
|
1805
1817
|
"name": "hasFooter",
|
|
1806
1818
|
"type": "boolean",
|
|
1819
|
+
"required": true,
|
|
1807
1820
|
"group": "basic"
|
|
1808
1821
|
},
|
|
1809
1822
|
{
|
|
@@ -1837,7 +1850,7 @@
|
|
|
1837
1850
|
"children": [
|
|
1838
1851
|
{
|
|
1839
1852
|
"name": "configProps",
|
|
1840
|
-
"type": "ButtonProps &
|
|
1853
|
+
"type": "ButtonProps & { icon?: string; }",
|
|
1841
1854
|
"required": true,
|
|
1842
1855
|
"description": ""
|
|
1843
1856
|
},
|
|
@@ -2952,6 +2965,7 @@
|
|
|
2952
2965
|
"methods": [
|
|
2953
2966
|
{
|
|
2954
2967
|
"name": "updateButton",
|
|
2968
|
+
"params": "id: string btn: Partial<CustomButton>",
|
|
2955
2969
|
"description": "更新按钮"
|
|
2956
2970
|
}
|
|
2957
2971
|
],
|
|
@@ -3500,8 +3514,8 @@
|
|
|
3500
3514
|
{
|
|
3501
3515
|
"name": "isFloat",
|
|
3502
3516
|
"type": "boolean",
|
|
3503
|
-
"default": "false",
|
|
3504
3517
|
"required": "false",
|
|
3518
|
+
"default": "false",
|
|
3505
3519
|
"description": "是否浮层样式,如果设为true,则抽屉边缘会有外边距,圆角和阴影",
|
|
3506
3520
|
"group": "ui"
|
|
3507
3521
|
},
|
|
@@ -3537,14 +3551,17 @@
|
|
|
3537
3551
|
"methods": [
|
|
3538
3552
|
{
|
|
3539
3553
|
"name": "bodyScroll",
|
|
3554
|
+
"params": "top: number",
|
|
3540
3555
|
"description": "抽屉内部内容上下滚动"
|
|
3541
3556
|
},
|
|
3542
3557
|
{
|
|
3543
3558
|
"name": "close",
|
|
3559
|
+
"params": "option?: OpenCloseOption",
|
|
3544
3560
|
"description": "显示抽屉构件"
|
|
3545
3561
|
},
|
|
3546
3562
|
{
|
|
3547
3563
|
"name": "open",
|
|
3564
|
+
"params": "option?: OpenCloseOption",
|
|
3548
3565
|
"description": "显示抽屉构件"
|
|
3549
3566
|
}
|
|
3550
3567
|
],
|
|
@@ -3553,6 +3570,7 @@
|
|
|
3553
3570
|
"name": "ICustomSwitchConfig",
|
|
3554
3571
|
"typeParameter": null,
|
|
3555
3572
|
"kind": "interface",
|
|
3573
|
+
"description": "文字和图标只会显示其中一个,优先显示图标,文字最多显示4个字符。",
|
|
3556
3574
|
"children": [
|
|
3557
3575
|
{
|
|
3558
3576
|
"name": "closeIcon",
|
|
@@ -3586,6 +3604,20 @@
|
|
|
3586
3604
|
}
|
|
3587
3605
|
],
|
|
3588
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": []
|
|
3589
3621
|
}
|
|
3590
3622
|
]
|
|
3591
3623
|
}
|
|
@@ -4056,6 +4088,7 @@
|
|
|
4056
4088
|
},
|
|
4057
4089
|
{
|
|
4058
4090
|
"type": "modal.open",
|
|
4091
|
+
"detail": "Record<string, any>",
|
|
4059
4092
|
"description": "打开 modal 时发出该事件"
|
|
4060
4093
|
}
|
|
4061
4094
|
],
|
|
@@ -4143,6 +4176,7 @@
|
|
|
4143
4176
|
{
|
|
4144
4177
|
"name": "fullscreen",
|
|
4145
4178
|
"type": "boolean",
|
|
4179
|
+
"required": false,
|
|
4146
4180
|
"default": "false",
|
|
4147
4181
|
"description": "全屏模式",
|
|
4148
4182
|
"group": "ui"
|
|
@@ -4230,9 +4264,9 @@
|
|
|
4230
4264
|
{
|
|
4231
4265
|
"name": "fields",
|
|
4232
4266
|
"type": "{modalTitle: string}",
|
|
4233
|
-
"deprecated": true,
|
|
4234
4267
|
"required": "false",
|
|
4235
4268
|
"default": "-",
|
|
4269
|
+
"deprecated": true,
|
|
4236
4270
|
"description": "`已废弃` 字段映射, 跟 dataSource 一起使用来获得运行时 modalTitle",
|
|
4237
4271
|
"group": "other"
|
|
4238
4272
|
}
|
|
@@ -4245,10 +4279,26 @@
|
|
|
4245
4279
|
},
|
|
4246
4280
|
{
|
|
4247
4281
|
"name": "open",
|
|
4282
|
+
"params": "option?: OpenCloseOption",
|
|
4248
4283
|
"description": "弹出模态框"
|
|
4249
4284
|
}
|
|
4250
4285
|
],
|
|
4251
|
-
"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
|
+
]
|
|
4252
4302
|
}
|
|
4253
4303
|
},
|
|
4254
4304
|
{
|
|
@@ -4385,7 +4435,7 @@
|
|
|
4385
4435
|
},
|
|
4386
4436
|
{
|
|
4387
4437
|
"name": "iconStyle",
|
|
4388
|
-
"type": "
|
|
4438
|
+
"type": "CSSProperties",
|
|
4389
4439
|
"required": "false",
|
|
4390
4440
|
"default": "-",
|
|
4391
4441
|
"description": "icon css 样式",
|
|
@@ -4612,36 +4662,42 @@
|
|
|
4612
4662
|
{
|
|
4613
4663
|
"name": "columns",
|
|
4614
4664
|
"type": "number",
|
|
4665
|
+
"required": false,
|
|
4615
4666
|
"default": "-",
|
|
4616
4667
|
"description": "网格布局列数(各列等宽)"
|
|
4617
4668
|
},
|
|
4618
4669
|
{
|
|
4619
4670
|
"name": "columnSpan",
|
|
4620
4671
|
"type": "number",
|
|
4672
|
+
"required": false,
|
|
4621
4673
|
"default": "auto",
|
|
4622
4674
|
"description": "自己在父级网格中所占列数"
|
|
4623
4675
|
},
|
|
4624
4676
|
{
|
|
4625
4677
|
"name": "rows",
|
|
4626
4678
|
"type": "number",
|
|
4679
|
+
"required": false,
|
|
4627
4680
|
"default": "1",
|
|
4628
4681
|
"description": "网格布局行数,通常不需设置,各行高度由内容决定。设置为 > 1 时,各行高度相同。"
|
|
4629
4682
|
},
|
|
4630
4683
|
{
|
|
4631
4684
|
"name": "rowSpan",
|
|
4632
4685
|
"type": "number",
|
|
4686
|
+
"required": false,
|
|
4633
4687
|
"default": "1",
|
|
4634
4688
|
"description": "自己在父级网格中所占行数"
|
|
4635
4689
|
},
|
|
4636
4690
|
{
|
|
4637
4691
|
"name": "templateColumns",
|
|
4638
4692
|
"type": "string",
|
|
4693
|
+
"required": false,
|
|
4639
4694
|
"default": "-",
|
|
4640
4695
|
"description": "网格布局模板列,即 CSS 的 gridTemplateColumns,优先于 `columns`。"
|
|
4641
4696
|
},
|
|
4642
4697
|
{
|
|
4643
4698
|
"name": "responsive",
|
|
4644
4699
|
"type": "ResponsiveSettings",
|
|
4700
|
+
"required": false,
|
|
4645
4701
|
"default": "1",
|
|
4646
4702
|
"description": "响应式布局设置"
|
|
4647
4703
|
}
|
|
@@ -4842,14 +4898,14 @@
|
|
|
4842
4898
|
{
|
|
4843
4899
|
"name": "contentGridGap",
|
|
4844
4900
|
"type": "number",
|
|
4845
|
-
"required": "
|
|
4901
|
+
"required": "false",
|
|
4846
4902
|
"default": "24",
|
|
4847
4903
|
"description": "内容区的 gap,内容区固定为 grid 布局"
|
|
4848
4904
|
},
|
|
4849
4905
|
{
|
|
4850
4906
|
"name": "title",
|
|
4851
4907
|
"type": "string",
|
|
4852
|
-
"required": "
|
|
4908
|
+
"required": "false",
|
|
4853
4909
|
"default": "-",
|
|
4854
4910
|
"description": "卡片标题"
|
|
4855
4911
|
}
|
|
@@ -4950,6 +5006,7 @@
|
|
|
4950
5006
|
{
|
|
4951
5007
|
"name": "gap",
|
|
4952
5008
|
"type": "string | number",
|
|
5009
|
+
"required": false,
|
|
4953
5010
|
"default": "\"var(--card-content-gap)\"",
|
|
4954
5011
|
"description": "间距(配合extraContainerStyle使用)",
|
|
4955
5012
|
"group": "ui"
|
|
@@ -4957,6 +5014,7 @@
|
|
|
4957
5014
|
{
|
|
4958
5015
|
"name": "extraContainerStyle",
|
|
4959
5016
|
"type": "Record<string, any>",
|
|
5017
|
+
"required": false,
|
|
4960
5018
|
"default": "-",
|
|
4961
5019
|
"description": "容器本身默认是 grid 布局,可以设置额外的样式。",
|
|
4962
5020
|
"group": "ui"
|
|
@@ -4964,6 +5022,7 @@
|
|
|
4964
5022
|
{
|
|
4965
5023
|
"name": "containerStyle",
|
|
4966
5024
|
"type": "Record<string, any>",
|
|
5025
|
+
"required": false,
|
|
4967
5026
|
"default": "-",
|
|
4968
5027
|
"description": "自定义容器的样式,容器本身默认是 grid 布局,如果`containerStyle`不为空则覆盖掉容器本身的样式配置",
|
|
4969
5028
|
"group": "ui"
|
|
@@ -5478,6 +5537,7 @@
|
|
|
5478
5537
|
{
|
|
5479
5538
|
"name": "dashboardMode",
|
|
5480
5539
|
"type": "boolean",
|
|
5540
|
+
"required": true,
|
|
5481
5541
|
"default": "false",
|
|
5482
5542
|
"description": "是否启用大屏模式。",
|
|
5483
5543
|
"group": "ui"
|
|
@@ -5485,12 +5545,14 @@
|
|
|
5485
5545
|
{
|
|
5486
5546
|
"name": "pageTitleScale",
|
|
5487
5547
|
"type": "number",
|
|
5548
|
+
"required": false,
|
|
5488
5549
|
"description": "标题栏大小比例,默认为 1,仅用于暗黑大屏模式。",
|
|
5489
5550
|
"group": "ui"
|
|
5490
5551
|
},
|
|
5491
5552
|
{
|
|
5492
5553
|
"name": "hideToolbar",
|
|
5493
5554
|
"type": "boolean",
|
|
5555
|
+
"required": true,
|
|
5494
5556
|
"default": "false",
|
|
5495
5557
|
"description": "是否隐藏工具栏(常用语大屏模式)。",
|
|
5496
5558
|
"group": "ui"
|
|
@@ -5498,6 +5560,7 @@
|
|
|
5498
5560
|
{
|
|
5499
5561
|
"name": "bannerStyle",
|
|
5500
5562
|
"type": "CSSProperties",
|
|
5563
|
+
"required": false,
|
|
5501
5564
|
"default": "-",
|
|
5502
5565
|
"description": "banner 的样式",
|
|
5503
5566
|
"group": "ui"
|
|
@@ -5812,6 +5875,7 @@
|
|
|
5812
5875
|
{
|
|
5813
5876
|
"name": "dashboardMode",
|
|
5814
5877
|
"type": "boolean",
|
|
5878
|
+
"required": false,
|
|
5815
5879
|
"default": "false",
|
|
5816
5880
|
"description": "是否以 dashboard 模式显示",
|
|
5817
5881
|
"group": "basic"
|
|
@@ -7573,8 +7637,8 @@
|
|
|
7573
7637
|
{
|
|
7574
7638
|
"name": "disabledJump",
|
|
7575
7639
|
"type": "boolean",
|
|
7576
|
-
"default": "false",
|
|
7577
7640
|
"required": "false",
|
|
7641
|
+
"default": "false",
|
|
7578
7642
|
"description": "禁用默认跳转事件"
|
|
7579
7643
|
}
|
|
7580
7644
|
],
|
|
@@ -7839,26 +7903,31 @@
|
|
|
7839
7903
|
{
|
|
7840
7904
|
"name": "flexDirection",
|
|
7841
7905
|
"type": "string",
|
|
7906
|
+
"required": false,
|
|
7842
7907
|
"description": "定义[flex-direction]:设置主轴方向"
|
|
7843
7908
|
},
|
|
7844
7909
|
{
|
|
7845
7910
|
"name": "justifyContent",
|
|
7846
7911
|
"type": "string",
|
|
7912
|
+
"required": false,
|
|
7847
7913
|
"description": "定义[justify-content]:设置主轴上子元素的排列方式"
|
|
7848
7914
|
},
|
|
7849
7915
|
{
|
|
7850
7916
|
"name": "alignItems",
|
|
7851
7917
|
"type": "string",
|
|
7918
|
+
"required": false,
|
|
7852
7919
|
"description": "定义[align-items]:设置侧轴上的子元素排列方式(单行)"
|
|
7853
7920
|
},
|
|
7854
7921
|
{
|
|
7855
7922
|
"name": "alignContent",
|
|
7856
7923
|
"type": "string",
|
|
7924
|
+
"required": false,
|
|
7857
7925
|
"description": "定义[align-content]:设置侧轴上的子元素排列方式(多行)"
|
|
7858
7926
|
},
|
|
7859
7927
|
{
|
|
7860
7928
|
"name": "flexWrap",
|
|
7861
7929
|
"type": "string",
|
|
7930
|
+
"required": false,
|
|
7862
7931
|
"description": "定义[flex-wrap]:设置换行方式"
|
|
7863
7932
|
}
|
|
7864
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.2",
|
|
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": "d528e5fe6f82aed0db9e186c12e1a53838478730"
|
|
43
43
|
}
|