@next-bricks/basic-bricks 1.223.0 → 1.223.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/deploy/contract.yaml +52 -52
- package/dist/bricks.json +1 -1
- package/dist/{index.8f2a9317.js → index.ca64a1cb.js} +2 -2
- package/dist/{index.8f2a9317.js.map → index.ca64a1cb.js.map} +1 -1
- package/dist/stories-asserts/basic-bricks.general-popup.87caf4b1e0240e28.svg +31 -0
- package/dist/stories.json +193 -0
- package/package.json +2 -2
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="109px" height="63px" viewBox="0 0 109 63" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>basic-bricks.general-popup</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<path d="M68,0 L101,0 C103.209139,-4.05812251e-16 105,1.790861 105,4 L105,51 C105,53.209139 103.209139,55 101,55 L68,55 L68,55 L68,0 Z" id="path-1"></path>
|
|
6
|
+
<filter x="-16.2%" y="-10.9%" width="132.4%" height="121.8%" filterUnits="objectBoundingBox" id="filter-2">
|
|
7
|
+
<feOffset dx="0" dy="0" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
|
8
|
+
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
|
9
|
+
<feColorMatrix values="0 0 0 0 0.6 0 0 0 0 0.6 0 0 0 0 0.6 0 0 0 1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
|
10
|
+
</filter>
|
|
11
|
+
</defs>
|
|
12
|
+
<g id="lydia" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
13
|
+
<g id="构件概览图二" transform="translate(-1294.000000, -363.000000)">
|
|
14
|
+
<g id="basic-bricks.general-popup" transform="translate(1294.000000, 367.000000)">
|
|
15
|
+
<rect id="矩形备份-43" fill="#1A7AFF" transform="translate(94.000000, 48.500000) rotate(-180.000000) translate(-94.000000, -48.500000) " x="88" y="46" width="12" height="5" rx="1"></rect>
|
|
16
|
+
<rect id="矩形备份-43" stroke="#D6DBEC" transform="translate(80.000000, 48.500000) rotate(-180.000000) translate(-80.000000, -48.500000) " x="74" y="46" width="12" height="5" rx="1"></rect>
|
|
17
|
+
<rect id="矩形备份-80" fill="#D6DBEC" x="0" y="0" width="105" height="55" rx="4"></rect>
|
|
18
|
+
<g id="矩形备份-80">
|
|
19
|
+
<use fill="black" fill-opacity="1" filter="url(#filter-2)" xlink:href="#path-1"></use>
|
|
20
|
+
<use fill="#F4F5F9" fill-rule="evenodd" xlink:href="#path-1"></use>
|
|
21
|
+
</g>
|
|
22
|
+
<rect id="矩形备份-43" fill="#1A7AFF" transform="translate(94.000000, 48.500000) rotate(-180.000000) translate(-94.000000, -48.500000) " x="88" y="46" width="12" height="5" rx="1"></rect>
|
|
23
|
+
<rect id="矩形备份-43" stroke="#D6DBEC" transform="translate(80.000000, 48.500000) rotate(-180.000000) translate(-80.000000, -48.500000) " x="74" y="46" width="12" height="5" rx="1"></rect>
|
|
24
|
+
<g id="编组" transform="translate(93.621320, 5.378680)" fill="#778DC3" fill-rule="nonzero">
|
|
25
|
+
<path d="M5.66256257,3.70710678 L0.337437429,3.70710678 C-0.142696805,3.70710678 -0.535533906,3.38890873 -0.535533906,3 C-0.535533906,2.61109127 -0.142696805,2.29289322 0.337437429,2.29289322 L5.66256257,2.29289322 C6.14269681,2.29289322 6.53553391,2.61109127 6.53553391,3 C6.53553391,3.38890873 6.14269681,3.70710678 5.66256257,3.70710678 Z" id="路径" transform="translate(3.000000, 3.000000) rotate(-45.000000) translate(-3.000000, -3.000000) "></path>
|
|
26
|
+
<path d="M3.70710678,0.337437429 L3.70710678,5.66256257 C3.70710678,6.14269681 3.38890873,6.53553391 3,6.53553391 C2.61109127,6.53553391 2.29289322,6.14269681 2.29289322,5.66256257 L2.29289322,0.337437429 C2.29289322,-0.142696805 2.61109127,-0.535533906 3,-0.535533906 C3.38890873,-0.535533906 3.70710678,-0.142696805 3.70710678,0.337437429 Z" id="形状" transform="translate(3.000000, 3.000000) rotate(-45.000000) translate(-3.000000, -3.000000) "></path>
|
|
27
|
+
</g>
|
|
28
|
+
</g>
|
|
29
|
+
</g>
|
|
30
|
+
</g>
|
|
31
|
+
</svg>
|
package/dist/stories.json
CHANGED
|
@@ -9568,5 +9568,198 @@
|
|
|
9568
9568
|
],
|
|
9569
9569
|
"interface": []
|
|
9570
9570
|
}
|
|
9571
|
+
},
|
|
9572
|
+
{
|
|
9573
|
+
"storyId": "basic-bricks.general-popup",
|
|
9574
|
+
"category": "container-display",
|
|
9575
|
+
"type": "brick",
|
|
9576
|
+
"author": "sailor",
|
|
9577
|
+
"text": {
|
|
9578
|
+
"en": "General Popup",
|
|
9579
|
+
"zh": "可拖拽弹框"
|
|
9580
|
+
},
|
|
9581
|
+
"description": {
|
|
9582
|
+
"en": "provide slot to hold other custom elements",
|
|
9583
|
+
"zh": "提供插槽以展示其他构件"
|
|
9584
|
+
},
|
|
9585
|
+
"icon": {
|
|
9586
|
+
"imgSrc": "bricks/basic-bricks/dist/stories-asserts/basic-bricks.general-popup.87caf4b1e0240e28.svg"
|
|
9587
|
+
},
|
|
9588
|
+
"conf": [
|
|
9589
|
+
{
|
|
9590
|
+
"bricks": [
|
|
9591
|
+
{
|
|
9592
|
+
"brick": "basic-bricks.general-button",
|
|
9593
|
+
"properties": {
|
|
9594
|
+
"buttonName": "打开",
|
|
9595
|
+
"dataset": {
|
|
9596
|
+
"testid": "basic-usage-demo"
|
|
9597
|
+
}
|
|
9598
|
+
},
|
|
9599
|
+
"events": {
|
|
9600
|
+
"general.button.click": [
|
|
9601
|
+
{
|
|
9602
|
+
"target": "#popup",
|
|
9603
|
+
"method": "open"
|
|
9604
|
+
}
|
|
9605
|
+
]
|
|
9606
|
+
}
|
|
9607
|
+
},
|
|
9608
|
+
{
|
|
9609
|
+
"brick": "basic-bricks.general-popup",
|
|
9610
|
+
"properties": {
|
|
9611
|
+
"id": "popup",
|
|
9612
|
+
"popupTitle": "预览",
|
|
9613
|
+
"popupWidth": "750px",
|
|
9614
|
+
"popupHeight": "600px",
|
|
9615
|
+
"dragHeaderStyle": {
|
|
9616
|
+
"background": "#E0E4E5"
|
|
9617
|
+
},
|
|
9618
|
+
"openDirection": "rightTop"
|
|
9619
|
+
},
|
|
9620
|
+
"slots": {
|
|
9621
|
+
"content": {
|
|
9622
|
+
"bricks": [
|
|
9623
|
+
{
|
|
9624
|
+
"brick": "presentational-bricks.brick-descriptions",
|
|
9625
|
+
"properties": {
|
|
9626
|
+
"column": 2,
|
|
9627
|
+
"descriptionTitle": "基本信息",
|
|
9628
|
+
"itemList": [
|
|
9629
|
+
{
|
|
9630
|
+
"label": "名称",
|
|
9631
|
+
"text": "easyops"
|
|
9632
|
+
},
|
|
9633
|
+
{
|
|
9634
|
+
"label": "环境类型",
|
|
9635
|
+
"text": "无"
|
|
9636
|
+
},
|
|
9637
|
+
{
|
|
9638
|
+
"label": "授权模式",
|
|
9639
|
+
"text": "clientCert"
|
|
9640
|
+
},
|
|
9641
|
+
{
|
|
9642
|
+
"label": "服务供应商"
|
|
9643
|
+
}
|
|
9644
|
+
],
|
|
9645
|
+
"showCard": false
|
|
9646
|
+
}
|
|
9647
|
+
},
|
|
9648
|
+
{
|
|
9649
|
+
"brick": "presentational-bricks.brick-descriptions",
|
|
9650
|
+
"properties": {
|
|
9651
|
+
"column": 2,
|
|
9652
|
+
"descriptionTitle": "集群规格",
|
|
9653
|
+
"itemList": [
|
|
9654
|
+
{
|
|
9655
|
+
"label": "集群来源",
|
|
9656
|
+
"text": "导入"
|
|
9657
|
+
},
|
|
9658
|
+
{
|
|
9659
|
+
"label": "Manter节点数量",
|
|
9660
|
+
"text": "3个"
|
|
9661
|
+
},
|
|
9662
|
+
{
|
|
9663
|
+
"label": "可分配CPU",
|
|
9664
|
+
"text": "12 Cores"
|
|
9665
|
+
},
|
|
9666
|
+
{
|
|
9667
|
+
"label": "可分配内存",
|
|
9668
|
+
"text": "44.8GIB"
|
|
9669
|
+
}
|
|
9670
|
+
],
|
|
9671
|
+
"showCard": false,
|
|
9672
|
+
"style": {
|
|
9673
|
+
"marginTop": "20px"
|
|
9674
|
+
}
|
|
9675
|
+
}
|
|
9676
|
+
}
|
|
9677
|
+
],
|
|
9678
|
+
"type": "bricks"
|
|
9679
|
+
}
|
|
9680
|
+
}
|
|
9681
|
+
}
|
|
9682
|
+
],
|
|
9683
|
+
"title": {
|
|
9684
|
+
"en": "General Popup",
|
|
9685
|
+
"zh": "可拖拽弹框"
|
|
9686
|
+
}
|
|
9687
|
+
}
|
|
9688
|
+
],
|
|
9689
|
+
"doc": {
|
|
9690
|
+
"id": "basic-bricks.general-popup",
|
|
9691
|
+
"author": "SheRunFeng",
|
|
9692
|
+
"history": [
|
|
9693
|
+
{
|
|
9694
|
+
"version": "1.x.0",
|
|
9695
|
+
"change": " 新增构件 `basic-bricks.general-popup`"
|
|
9696
|
+
}
|
|
9697
|
+
],
|
|
9698
|
+
"dockind": "brick",
|
|
9699
|
+
"properties": [
|
|
9700
|
+
{
|
|
9701
|
+
"name": "popupId",
|
|
9702
|
+
"type": "string",
|
|
9703
|
+
"required": "false",
|
|
9704
|
+
"default": "-",
|
|
9705
|
+
"description": "浮层Id, 如果有设置浮层id, 会开启位置记录功能"
|
|
9706
|
+
},
|
|
9707
|
+
{
|
|
9708
|
+
"name": "popupWidth",
|
|
9709
|
+
"type": "",
|
|
9710
|
+
"required": "false",
|
|
9711
|
+
"default": "500",
|
|
9712
|
+
"description": "弹窗宽度"
|
|
9713
|
+
},
|
|
9714
|
+
{
|
|
9715
|
+
"name": "popupHeight",
|
|
9716
|
+
"type": "",
|
|
9717
|
+
"required": "false",
|
|
9718
|
+
"default": "-",
|
|
9719
|
+
"description": "弹窗高度"
|
|
9720
|
+
},
|
|
9721
|
+
{
|
|
9722
|
+
"name": "popupTitle",
|
|
9723
|
+
"type": "string",
|
|
9724
|
+
"required": "false",
|
|
9725
|
+
"default": "-",
|
|
9726
|
+
"description": "弹窗标题"
|
|
9727
|
+
},
|
|
9728
|
+
{
|
|
9729
|
+
"name": "openDirection",
|
|
9730
|
+
"type": "OpenDirection",
|
|
9731
|
+
"required": "false",
|
|
9732
|
+
"default": "center",
|
|
9733
|
+
"description": "弹窗打开位置"
|
|
9734
|
+
},
|
|
9735
|
+
{
|
|
9736
|
+
"name": "isVisible",
|
|
9737
|
+
"type": "boolean",
|
|
9738
|
+
"required": "-",
|
|
9739
|
+
"default": "false",
|
|
9740
|
+
"description": "是否显示模态框",
|
|
9741
|
+
"group": "advanced"
|
|
9742
|
+
},
|
|
9743
|
+
{
|
|
9744
|
+
"name": "dragHeaderStyle",
|
|
9745
|
+
"type": "Record<string, any>",
|
|
9746
|
+
"required": "false",
|
|
9747
|
+
"default": "-",
|
|
9748
|
+
"description": "用于设置 popup head的样式",
|
|
9749
|
+
"group": "ui"
|
|
9750
|
+
}
|
|
9751
|
+
],
|
|
9752
|
+
"methods": [
|
|
9753
|
+
{
|
|
9754
|
+
"name": "close",
|
|
9755
|
+
"description": "关闭弹窗"
|
|
9756
|
+
},
|
|
9757
|
+
{
|
|
9758
|
+
"name": "open",
|
|
9759
|
+
"description": "显示弹窗"
|
|
9760
|
+
}
|
|
9761
|
+
],
|
|
9762
|
+
"interface": []
|
|
9763
|
+
}
|
|
9571
9764
|
}
|
|
9572
9765
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/basic-bricks",
|
|
3
|
-
"version": "1.223.
|
|
3
|
+
"version": "1.223.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",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"immutability-helper": "^3.1.1"
|
|
53
53
|
},
|
|
54
54
|
"sideEffects": true,
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "d14d6b729dbd1fcfabdcf1ebf9e075eb3e4c8824"
|
|
56
56
|
}
|