@next-bricks/nav 0.10.5 → 0.11.0

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 (132) hide show
  1. package/dist/bricks.json +2 -2
  2. package/dist/chunks/1303.9880a064.js +2 -0
  3. package/dist/chunks/{1303.f8781f1e.js.map → 1303.9880a064.js.map} +1 -1
  4. package/dist/chunks/1646.5764a643.js +2 -0
  5. package/dist/chunks/{7746.1fc9418c.js.map → 1646.5764a643.js.map} +1 -1
  6. package/dist/chunks/3981.c3292c49.js +3 -0
  7. package/dist/chunks/3981.c3292c49.js.map +1 -0
  8. package/dist/chunks/4504.2a665ca8.js +2 -0
  9. package/dist/chunks/4504.2a665ca8.js.map +1 -0
  10. package/dist/chunks/4752.091d3058.js +3 -0
  11. package/dist/chunks/{4752.ee488116.js.map → 4752.091d3058.js.map} +1 -1
  12. package/dist/chunks/5381.abf38edb.js +2 -0
  13. package/dist/chunks/5381.abf38edb.js.map +1 -0
  14. package/dist/chunks/{6176.1b27c498.js → 6176.15b21c9d.js} +2 -2
  15. package/dist/chunks/{6176.1b27c498.js.map → 6176.15b21c9d.js.map} +1 -1
  16. package/dist/chunks/{6482.c7623657.js → 6482.f2574c4c.js} +2 -2
  17. package/dist/chunks/{6482.c7623657.js.map → 6482.f2574c4c.js.map} +1 -1
  18. package/dist/chunks/6660.c18ba804.js +2 -0
  19. package/dist/chunks/6660.c18ba804.js.map +1 -0
  20. package/dist/chunks/7067.21d8d391.js +2 -0
  21. package/dist/chunks/{7067.7171bcf3.js.map → 7067.21d8d391.js.map} +1 -1
  22. package/dist/chunks/7632.4f9753ef.js +2 -0
  23. package/dist/chunks/{7632.ad5479fc.js.map → 7632.4f9753ef.js.map} +1 -1
  24. package/dist/chunks/7746.3cfb4cdd.js +2 -0
  25. package/dist/chunks/{1646.c77cdec5.js.map → 7746.3cfb4cdd.js.map} +1 -1
  26. package/dist/chunks/{7955.997c03c5.js → 7955.386dd09d.js} +3 -3
  27. package/dist/chunks/{7955.997c03c5.js.map → 7955.386dd09d.js.map} +1 -1
  28. package/dist/chunks/9102.d997788a.js +3 -0
  29. package/dist/chunks/{9102.cc9fd915.js.map → 9102.d997788a.js.map} +1 -1
  30. package/dist/chunks/9407.6ccc9cda.js +2 -0
  31. package/dist/chunks/{9407.835ea347.js.map → 9407.6ccc9cda.js.map} +1 -1
  32. package/dist/chunks/{9431.29d63767.js → 9431.24347b60.js} +2 -2
  33. package/dist/chunks/{9431.29d63767.js.map → 9431.24347b60.js.map} +1 -1
  34. package/dist/chunks/9549.a3ef422f.js +2 -0
  35. package/dist/chunks/9549.a3ef422f.js.map +1 -0
  36. package/dist/chunks/easyops-navbar-alerts.f5fd0398.js +2 -0
  37. package/dist/chunks/{easyops-navbar-alerts.ed925132.js.map → easyops-navbar-alerts.f5fd0398.js.map} +1 -1
  38. package/dist/chunks/eo-app-bar-wrapper.34c1682e.js +3 -0
  39. package/dist/chunks/{eo-app-bar-wrapper.1b939974.js.map → eo-app-bar-wrapper.34c1682e.js.map} +1 -1
  40. package/dist/chunks/{eo-frame-breadcrumb.71faa917.js → eo-frame-breadcrumb.ab7ded04.js} +2 -2
  41. package/dist/chunks/{eo-frame-breadcrumb.71faa917.js.map → eo-frame-breadcrumb.ab7ded04.js.map} +1 -1
  42. package/dist/chunks/eo-launchpad-button-v2.59f08739.js +2 -0
  43. package/dist/chunks/{eo-launchpad-button-v2.22cf8aed.js.map → eo-launchpad-button-v2.59f08739.js.map} +1 -1
  44. package/dist/chunks/{eo-launchpad-button.bd939038.js → eo-launchpad-button.f6c221a3.js} +2 -2
  45. package/dist/chunks/{eo-launchpad-button.bd939038.js.map → eo-launchpad-button.f6c221a3.js.map} +1 -1
  46. package/dist/chunks/{eo-launchpad-quick-access.cbce109c.js → eo-launchpad-quick-access.39e333de.js} +3 -3
  47. package/dist/chunks/{eo-launchpad-quick-access.cbce109c.js.map → eo-launchpad-quick-access.39e333de.js.map} +1 -1
  48. package/dist/chunks/{eo-launchpad-recent-visits.54974d26.js → eo-launchpad-recent-visits.bc62312f.js} +3 -3
  49. package/dist/chunks/{eo-launchpad-recent-visits.54974d26.js.map → eo-launchpad-recent-visits.bc62312f.js.map} +1 -1
  50. package/dist/chunks/eo-nav-menu.f0ab4b6b.js +2 -0
  51. package/dist/chunks/eo-nav-menu.f0ab4b6b.js.map +1 -0
  52. package/dist/chunks/{eo-search-launchpad.f9bbeec0.js → eo-search-launchpad.ac49c91b.js} +2 -2
  53. package/dist/chunks/{eo-search-launchpad.f9bbeec0.js.map → eo-search-launchpad.ac49c91b.js.map} +1 -1
  54. package/dist/chunks/eo-sidebar-menu-group.cc4872fa.js +3 -0
  55. package/dist/chunks/eo-sidebar-menu-group.cc4872fa.js.map +1 -0
  56. package/dist/chunks/eo-sidebar-menu-item.719f407b.js +2 -0
  57. package/dist/chunks/eo-sidebar-menu-item.719f407b.js.map +1 -0
  58. package/dist/chunks/eo-sidebar-menu-submenu.30222d50.js +3 -0
  59. package/dist/chunks/eo-sidebar-menu-submenu.30222d50.js.map +1 -0
  60. package/dist/chunks/eo-sidebar-menu.26376775.js +2 -0
  61. package/dist/chunks/eo-sidebar-menu.26376775.js.map +1 -0
  62. package/dist/chunks/eo-sidebar-sub-menu.0b84fb52.js +3 -0
  63. package/dist/chunks/{eo-sidebar-sub-menu.692184b2.js.map → eo-sidebar-sub-menu.0b84fb52.js.map} +1 -1
  64. package/dist/chunks/eo-sidebar.295d6cf6.js +3 -0
  65. package/dist/chunks/eo-sidebar.295d6cf6.js.map +1 -0
  66. package/dist/chunks/{launchpad-config.275af331.js → launchpad-config.0a738235.js} +3 -3
  67. package/dist/chunks/{launchpad-config.275af331.js.map → launchpad-config.0a738235.js.map} +1 -1
  68. package/dist/chunks/main.b5cef846.js +2 -0
  69. package/dist/chunks/{main.b78098c0.js.map → main.b5cef846.js.map} +1 -1
  70. package/dist/examples.json +9 -9
  71. package/dist/index.1b6d788e.js +2 -0
  72. package/dist/index.1b6d788e.js.map +1 -0
  73. package/dist/manifest.json +32 -28
  74. package/dist/types.json +60 -53
  75. package/dist-types/sidebar/sidebar-menu-group/index.d.ts +1 -1
  76. package/dist-types/sidebar/sidebar-menu-item/index.d.ts +5 -0
  77. package/docs/eo-sidebar-menu-group.md +10 -10
  78. package/docs/eo-sidebar-menu-item.md +4 -4
  79. package/docs/eo-sidebar-menu-submenu.md +13 -10
  80. package/docs/eo-sidebar-menu.md +28 -25
  81. package/docs/eo-sidebar-sub-menu.md +17 -16
  82. package/docs/eo-sidebar.md +36 -31
  83. package/package.json +2 -2
  84. package/dist/chunks/1303.f8781f1e.js +0 -2
  85. package/dist/chunks/1646.c77cdec5.js +0 -2
  86. package/dist/chunks/3981.8ca3a2ac.js +0 -3
  87. package/dist/chunks/3981.8ca3a2ac.js.map +0 -1
  88. package/dist/chunks/4752.ee488116.js +0 -3
  89. package/dist/chunks/5381.2e6572a5.js +0 -2
  90. package/dist/chunks/5381.2e6572a5.js.map +0 -1
  91. package/dist/chunks/6660.73cf4fb1.js +0 -2
  92. package/dist/chunks/6660.73cf4fb1.js.map +0 -1
  93. package/dist/chunks/7067.7171bcf3.js +0 -2
  94. package/dist/chunks/7632.ad5479fc.js +0 -2
  95. package/dist/chunks/7746.1fc9418c.js +0 -2
  96. package/dist/chunks/8561.0f34de2b.js +0 -2
  97. package/dist/chunks/8561.0f34de2b.js.map +0 -1
  98. package/dist/chunks/9102.cc9fd915.js +0 -3
  99. package/dist/chunks/9407.835ea347.js +0 -2
  100. package/dist/chunks/9549.0f90debb.js +0 -2
  101. package/dist/chunks/9549.0f90debb.js.map +0 -1
  102. package/dist/chunks/easyops-navbar-alerts.ed925132.js +0 -2
  103. package/dist/chunks/eo-app-bar-wrapper.1b939974.js +0 -3
  104. package/dist/chunks/eo-launchpad-button-v2.22cf8aed.js +0 -2
  105. package/dist/chunks/eo-nav-menu.5599c5bf.js +0 -2
  106. package/dist/chunks/eo-nav-menu.5599c5bf.js.map +0 -1
  107. package/dist/chunks/eo-sidebar-menu-group.39cae815.js +0 -3
  108. package/dist/chunks/eo-sidebar-menu-group.39cae815.js.map +0 -1
  109. package/dist/chunks/eo-sidebar-menu-item.310b94f2.js +0 -2
  110. package/dist/chunks/eo-sidebar-menu-item.310b94f2.js.map +0 -1
  111. package/dist/chunks/eo-sidebar-menu-submenu.6495af5f.js +0 -3
  112. package/dist/chunks/eo-sidebar-menu-submenu.6495af5f.js.map +0 -1
  113. package/dist/chunks/eo-sidebar-menu.e945b3c3.js +0 -2
  114. package/dist/chunks/eo-sidebar-menu.e945b3c3.js.map +0 -1
  115. package/dist/chunks/eo-sidebar-sub-menu.692184b2.js +0 -3
  116. package/dist/chunks/eo-sidebar.17b65d13.js +0 -3
  117. package/dist/chunks/eo-sidebar.17b65d13.js.map +0 -1
  118. package/dist/chunks/main.b78098c0.js +0 -2
  119. package/dist/index.2f5c8bce.js +0 -2
  120. package/dist/index.2f5c8bce.js.map +0 -1
  121. /package/dist/chunks/{3981.8ca3a2ac.js.LICENSE.txt → 3981.c3292c49.js.LICENSE.txt} +0 -0
  122. /package/dist/chunks/{4752.ee488116.js.LICENSE.txt → 4752.091d3058.js.LICENSE.txt} +0 -0
  123. /package/dist/chunks/{7955.997c03c5.js.LICENSE.txt → 7955.386dd09d.js.LICENSE.txt} +0 -0
  124. /package/dist/chunks/{9102.cc9fd915.js.LICENSE.txt → 9102.d997788a.js.LICENSE.txt} +0 -0
  125. /package/dist/chunks/{eo-app-bar-wrapper.1b939974.js.LICENSE.txt → eo-app-bar-wrapper.34c1682e.js.LICENSE.txt} +0 -0
  126. /package/dist/chunks/{eo-launchpad-quick-access.cbce109c.js.LICENSE.txt → eo-launchpad-quick-access.39e333de.js.LICENSE.txt} +0 -0
  127. /package/dist/chunks/{eo-launchpad-recent-visits.54974d26.js.LICENSE.txt → eo-launchpad-recent-visits.bc62312f.js.LICENSE.txt} +0 -0
  128. /package/dist/chunks/{eo-sidebar-menu-group.39cae815.js.LICENSE.txt → eo-sidebar-menu-group.cc4872fa.js.LICENSE.txt} +0 -0
  129. /package/dist/chunks/{eo-sidebar-menu-submenu.6495af5f.js.LICENSE.txt → eo-sidebar-menu-submenu.30222d50.js.LICENSE.txt} +0 -0
  130. /package/dist/chunks/{eo-sidebar-sub-menu.692184b2.js.LICENSE.txt → eo-sidebar-sub-menu.0b84fb52.js.LICENSE.txt} +0 -0
  131. /package/dist/chunks/{eo-sidebar.17b65d13.js.LICENSE.txt → eo-sidebar.295d6cf6.js.LICENSE.txt} +0 -0
  132. /package/dist/chunks/{launchpad-config.275af331.js.LICENSE.txt → launchpad-config.0a738235.js.LICENSE.txt} +0 -0
package/dist/types.json CHANGED
@@ -4,6 +4,59 @@
4
4
  "events": [],
5
5
  "methods": []
6
6
  },
7
+ "eo-app-bar-wrapper": {
8
+ "properties": [
9
+ {
10
+ "name": "isFixed",
11
+ "annotation": {
12
+ "type": "keyword",
13
+ "value": "boolean"
14
+ }
15
+ },
16
+ {
17
+ "name": "position",
18
+ "annotation": {
19
+ "type": "union",
20
+ "types": [
21
+ {
22
+ "type": "jsLiteral",
23
+ "value": "static"
24
+ },
25
+ {
26
+ "type": "jsLiteral",
27
+ "value": "fixed"
28
+ }
29
+ ]
30
+ }
31
+ },
32
+ {
33
+ "name": "displayCenter",
34
+ "annotation": {
35
+ "type": "keyword",
36
+ "value": "boolean"
37
+ }
38
+ },
39
+ {
40
+ "name": "extraAppBarContentStyle",
41
+ "annotation": {
42
+ "type": "reference",
43
+ "typeName": {
44
+ "type": "qualifiedName",
45
+ "left": {
46
+ "type": "identifier",
47
+ "name": "React"
48
+ },
49
+ "right": {
50
+ "type": "identifier",
51
+ "name": "CSSProperties"
52
+ }
53
+ }
54
+ }
55
+ }
56
+ ],
57
+ "events": [],
58
+ "methods": []
59
+ },
7
60
  "eo-frame-breadcrumb": {
8
61
  "properties": [
9
62
  {
@@ -92,59 +145,6 @@
92
145
  }
93
146
  ]
94
147
  },
95
- "eo-app-bar-wrapper": {
96
- "properties": [
97
- {
98
- "name": "isFixed",
99
- "annotation": {
100
- "type": "keyword",
101
- "value": "boolean"
102
- }
103
- },
104
- {
105
- "name": "position",
106
- "annotation": {
107
- "type": "union",
108
- "types": [
109
- {
110
- "type": "jsLiteral",
111
- "value": "static"
112
- },
113
- {
114
- "type": "jsLiteral",
115
- "value": "fixed"
116
- }
117
- ]
118
- }
119
- },
120
- {
121
- "name": "displayCenter",
122
- "annotation": {
123
- "type": "keyword",
124
- "value": "boolean"
125
- }
126
- },
127
- {
128
- "name": "extraAppBarContentStyle",
129
- "annotation": {
130
- "type": "reference",
131
- "typeName": {
132
- "type": "qualifiedName",
133
- "left": {
134
- "type": "identifier",
135
- "name": "React"
136
- },
137
- "right": {
138
- "type": "identifier",
139
- "name": "CSSProperties"
140
- }
141
- }
142
- }
143
- }
144
- ],
145
- "events": [],
146
- "methods": []
147
- },
148
148
  "eo-sidebar-menu-item": {
149
149
  "properties": [
150
150
  {
@@ -215,6 +215,13 @@
215
215
  "value": "boolean"
216
216
  }
217
217
  },
218
+ {
219
+ "name": "inSubmenu",
220
+ "annotation": {
221
+ "type": "keyword",
222
+ "value": "boolean"
223
+ }
224
+ },
218
225
  {
219
226
  "name": "menuCollapsed",
220
227
  "annotation": {
@@ -17,7 +17,7 @@ export declare class EoSidebarMenuGroup extends ReactNextElement implements EoSi
17
17
  /**
18
18
  * 是否允许折叠
19
19
  */
20
- accessor collapsable: boolean;
20
+ accessor collapsable: boolean | undefined;
21
21
  /**
22
22
  * 是否折叠
23
23
  */
@@ -9,6 +9,7 @@ export interface EoSidebarMenuItemProps {
9
9
  icon?: GeneralIconProps;
10
10
  target?: LinkProps["target"];
11
11
  selected?: boolean;
12
+ inSubmenu?: boolean;
12
13
  menuCollapsed?: boolean;
13
14
  }
14
15
  /**
@@ -36,6 +37,10 @@ export declare class EoSidebarMenuItem extends ReactNextElement implements EoSid
36
37
  * 是否选中
37
38
  */
38
39
  accessor selected: boolean | undefined;
40
+ /**
41
+ * 是否在二级菜单中
42
+ */
43
+ accessor inSubmenu: boolean | undefined;
39
44
  /**
40
45
  * 菜单整体是否收起状态
41
46
  */
@@ -8,7 +8,7 @@
8
8
  - brick: eo-sidebar-menu-group
9
9
  properties:
10
10
  style:
11
- width: 200px
11
+ width: 196px
12
12
  children:
13
13
  - brick: span
14
14
  slot: title
@@ -18,21 +18,21 @@
18
18
  properties:
19
19
  textContent: "菜单项 1"
20
20
  icon:
21
- lib: "easyops"
22
- category: "monitor"
23
- icon: "alert-rule"
21
+ lib: easyops
22
+ category: second-menu
23
+ icon: advanced-settings-second-menu
24
24
  - brick: eo-sidebar-menu-item
25
25
  properties:
26
26
  textContent: "菜单项 2"
27
27
  icon:
28
- lib: "easyops"
29
- category: "monitor"
30
- icon: "alert-rule"
28
+ lib: easyops
29
+ category: second-menu
30
+ icon: alibaba-cloud-disk-second-menu
31
31
  - brick: eo-sidebar-menu-item
32
32
  properties:
33
33
  textContent: "菜单项 3"
34
34
  icon:
35
- lib: "easyops"
36
- category: "monitor"
37
- icon: "alert-rule"
35
+ lib: easyops
36
+ category: second-menu
37
+ icon: advanced-settings-second-menu
38
38
  ```
@@ -8,10 +8,10 @@
8
8
  brick: eo-sidebar-menu-item
9
9
  properties:
10
10
  style:
11
- width: 200px
11
+ width: 196px
12
12
  textContent: "告警规则"
13
13
  icon:
14
- lib: "easyops"
15
- category: "monitor"
16
- icon: "alert-rule"
14
+ lib: easyops
15
+ category: second-menu
16
+ icon: availability-zone-second-menu
17
17
  ```
@@ -8,7 +8,7 @@
8
8
  - brick: eo-sidebar-menu-submenu
9
9
  properties:
10
10
  style:
11
- width: 200px
11
+ width: 196px
12
12
  icon:
13
13
  lib: antd
14
14
  icon: menu
@@ -22,21 +22,24 @@
22
22
  properties:
23
23
  textContent: "菜单项 1"
24
24
  icon:
25
- lib: "easyops"
26
- category: "monitor"
27
- icon: "alert-rule"
25
+ lib: easyops
26
+ category: second-menu
27
+ icon: availability-zone-second-menu
28
+ inSubmenu: true
28
29
  - brick: eo-sidebar-menu-item
29
30
  properties:
30
31
  textContent: "菜单项 2"
31
32
  icon:
32
- lib: "easyops"
33
- category: "monitor"
34
- icon: "alert-rule"
33
+ lib: easyops
34
+ category: second-menu
35
+ icon: basic-info-second-menu
36
+ inSubmenu: true
35
37
  - brick: eo-sidebar-menu-item
36
38
  properties:
37
39
  textContent: "菜单项 3"
38
40
  icon:
39
- lib: "easyops"
40
- category: "monitor"
41
- icon: "alert-rule"
41
+ lib: easyops
42
+ category: second-menu
43
+ icon: deployment-tasks-second-menu
44
+ inSubmenu: true
42
45
  ```
@@ -22,15 +22,15 @@
22
22
  properties:
23
23
  id: sidebar-menu
24
24
  menuCollapsed: <%= CTX.menuCollapsed %>
25
- style: "<%= { width: CTX.menuCollapsed ? '40px' : '200px' } %>"
25
+ style: "<%= { width: CTX.menuCollapsed ? '40px' : '196px' } %>"
26
26
  children:
27
27
  - brick: eo-sidebar-menu-item
28
28
  properties:
29
29
  textContent: "菜单项 1"
30
30
  icon:
31
- lib: "easyops"
32
- category: "monitor"
33
- icon: "alert-rule"
31
+ lib: easyops
32
+ category: second-menu
33
+ icon: gaussdb-for-opengauss-second-menu
34
34
  - brick: eo-sidebar-menu-group
35
35
  children:
36
36
  - brick: span
@@ -41,29 +41,29 @@
41
41
  properties:
42
42
  textContent: "菜单项 2"
43
43
  icon:
44
- lib: "easyops"
45
- category: "monitor"
46
- icon: "alert-rule"
44
+ lib: easyops
45
+ category: second-menu
46
+ icon: firewall-second-menu
47
47
  - brick: eo-sidebar-menu-item
48
48
  properties:
49
49
  textContent: "菜单项 3"
50
50
  icon:
51
- lib: "easyops"
52
- category: "monitor"
53
- icon: "alert-rule"
51
+ lib: easyops
52
+ category: second-menu
53
+ icon: host-resources-second-menu
54
54
  - brick: eo-sidebar-menu-item
55
55
  properties:
56
56
  textContent: "菜单项 4"
57
57
  icon:
58
- lib: "easyops"
59
- category: "monitor"
60
- icon: "alert-rule"
58
+ lib: easyops
59
+ category: second-menu
60
+ icon: loadbalance-second-menu
61
61
  - brick: eo-sidebar-menu-submenu
62
62
  properties:
63
63
  icon:
64
- lib: antd
65
- icon: menu
66
- theme: outlined
64
+ lib: easyops
65
+ category: second-menu
66
+ icon: oceanbase-second-menu
67
67
  children:
68
68
  - brick: span
69
69
  slot: title
@@ -73,21 +73,24 @@
73
73
  properties:
74
74
  textContent: "菜单项 5"
75
75
  icon:
76
- lib: "easyops"
77
- category: "monitor"
78
- icon: "alert-rule"
76
+ lib: easyops
77
+ category: second-menu
78
+ icon: nginx-second-menu
79
+ inSubmenu: true
79
80
  - brick: eo-sidebar-menu-item
80
81
  properties:
81
82
  textContent: "菜单项 6"
82
83
  icon:
83
- lib: "easyops"
84
- category: "monitor"
85
- icon: "alert-rule"
84
+ lib: easyops
85
+ category: second-menu
86
+ icon: process-task-second-menu
87
+ inSubmenu: true
86
88
  - brick: eo-sidebar-menu-item
87
89
  properties:
88
90
  textContent: "菜单项 7"
89
91
  icon:
90
- lib: "easyops"
91
- category: "monitor"
92
- icon: "alert-rule"
92
+ lib: easyops
93
+ category: second-menu
94
+ icon: persistent-volume-statement-second-menu
95
+ inSubmenu: true
93
96
  ```
@@ -15,24 +15,25 @@
15
15
  menuItems:
16
16
  - exact: true
17
17
  icon:
18
- icon: cube
19
- lib: fa
18
+ lib: easyops
19
+ category: second-menu
20
+ icon: jvm-info-second-menu
20
21
  text: 测试标题
21
22
  to: /developers/brick-book/atom/sub-menu
22
23
  type: default
23
24
  key: "0"
24
25
  - items:
25
26
  - icon:
26
- category: model
27
- icon: host
28
27
  lib: easyops
28
+ category: second-menu
29
+ icon: lvs-second-menu
29
30
  text: 主机测试兼容复杂场景
30
31
  to: /developers/brick-book/atom/sub-menu/1
31
32
  key: "1.0"
32
33
  - icon:
33
- category: model
34
- icon: docker-image
35
34
  lib: easyops
35
+ category: second-menu
36
+ icon: my-task-second-menu
36
37
  text: Docker
37
38
  to: /developers/brick-book/atom/sub-menu/2
38
39
  key: "1.1"
@@ -41,23 +42,23 @@
41
42
  key: "1"
42
43
  - items:
43
44
  - icon:
44
- category: model
45
- icon: admin
46
45
  lib: easyops
46
+ category: second-menu
47
+ icon: tool-task-second-menu
47
48
  text: 开发负责人
48
49
  to: /developers/brick-book/atom/sub-menu/3
49
50
  key: "2.0"
50
51
  - icon:
51
- category: model
52
- icon: admin
53
52
  lib: easyops
53
+ category: second-menu
54
+ icon: webhook-push-strategy-second-menu
54
55
  text: 运维负责人
55
56
  to: /developers/brick-book/atom/sub-menu/4
56
57
  key: "2.1"
57
58
  - icon:
58
- category: model
59
- icon: admin
60
59
  lib: easyops
60
+ category: second-menu
61
+ icon: session-management-info-second-menu
61
62
  text: 测试负责人
62
63
  to: /developers/brick-book/atom/sub-menu/5
63
64
  key: "2.2"
@@ -66,9 +67,9 @@
66
67
  key: "2"
67
68
  - items:
68
69
  - icon:
69
- category: model
70
- icon: app
71
70
  lib: easyops
71
+ category: second-menu
72
+ icon: oceanbase-second-menu
72
73
  items:
73
74
  - items:
74
75
  - text: 被调方
@@ -84,9 +85,9 @@
84
85
  type: subMenu
85
86
  key: "3.0"
86
87
  - icon:
87
- category: model
88
- icon: app
89
88
  lib: easyops
89
+ category: second-menu
90
+ icon: package-management-second-menu
90
91
  items:
91
92
  - text: 被调方
92
93
  to: /developers/brick-book/atom/sub-menu/8
@@ -14,18 +14,18 @@ properties:
14
14
  title: 这是一个菜单标题
15
15
  menuItems:
16
16
  - icon:
17
- icon: chevron-circle-right
18
- lib: fa
19
- prefix: fas
17
+ lib: easyops
18
+ category: second-menu
19
+ icon: automatic-collection-second-menu
20
20
  text: item 1
21
21
  to: /nlicro-test3/breadcrumb/new
22
22
  type: default
23
23
  children: []
24
24
  key: "0"
25
25
  - icon:
26
- icon: trash-alt
27
- lib: fa
28
- prefix: fas
26
+ lib: easyops
27
+ category: second-menu
28
+ icon: deployment-instance-second-menu
29
29
  text: item 2
30
30
  to: item 2
31
31
  type: default
@@ -34,33 +34,38 @@ properties:
34
34
  - type: subMenu
35
35
  title: sub 1
36
36
  icon:
37
- icon: trash-can
38
- lib: fa
39
- prefix: fas
37
+ lib: easyops
38
+ category: second-menu
39
+ icon: deployment-architecture-second-menu
40
40
  items:
41
- - icon:
42
- icon: message
43
- lib: fa
44
- prefix: fas
45
- text: inner 1
41
+ - text: inner 1
46
42
  to: inner 1
47
43
  type: default
48
44
  children: []
49
45
  key: "2.0"
50
- - icon:
51
- icon: text-height
52
- lib: fa
53
- prefix: fas
54
- text: inner 2
46
+ - text: inner 2
55
47
  to: inner 2
56
48
  type: default
57
49
  children: []
58
50
  key: "2.1"
51
+ - type: group
52
+ title: group in submenu
53
+ items:
54
+ - text: item - 1
55
+ to: item - 1
56
+ type: default
57
+ children: []
58
+ key: "2.3.1"
59
+ - text: item - 2
60
+ to: item - 2
61
+ type: default
62
+ children: []
63
+ key: "2.3.2"
59
64
  key: "2"
60
65
  - icon:
61
- icon: user-times
62
- lib: fa
63
- prefix: fas
66
+ lib: easyops
67
+ category: second-menu
68
+ icon: elasticsearch-second-menu
64
69
  text: item 3
65
70
  to: item 3
66
71
  type: default
@@ -70,18 +75,18 @@ properties:
70
75
  title: group 1
71
76
  items:
72
77
  - icon:
73
- icon: message
74
- lib: fa
75
- prefix: fas
78
+ lib: easyops
79
+ category: second-menu
80
+ icon: change-history-second-menu
76
81
  text: inner 3
77
82
  to: inner 3
78
83
  type: default
79
84
  children: []
80
85
  key: "4.0"
81
86
  - icon:
82
- icon: circle-chevron-right
83
- lib: fa
84
- prefix: fas
87
+ lib: easyops
88
+ category: second-menu
89
+ icon: broadband-line-second-menu
85
90
  text: inner 4
86
91
  to: inner 4
87
92
  type: default
@@ -89,9 +94,9 @@ properties:
89
94
  key: "4.1"
90
95
  key: "4"
91
96
  - icon:
92
- icon: user-xmark
93
- lib: fa
94
- prefix: fas
97
+ lib: easyops
98
+ category: second-menu
99
+ icon: fill-in-second-menu
95
100
  text: item 4
96
101
  to: item 4
97
102
  type: default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/nav",
3
- "version": "0.10.5",
3
+ "version": "0.11.0",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/nav",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,5 +43,5 @@
43
43
  "@next-bricks/form": "*",
44
44
  "@next-bricks/icons": "*"
45
45
  },
46
- "gitHead": "c12ad9433dd5dfc6c3d1106149a445142becb32a"
46
+ "gitHead": "b6b7dbd18fd9aeabe36f974284eeee88fe7d3aad"
47
47
  }
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_next_bricks_nav=self.webpackChunk_next_bricks_nav||[]).push([[1303,9407],{5863:(t,r,e)=>{function n(t,r){if(r.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}e.d(r,{Z:()=>n})},175:(t,r,e)=>{function n(t,r,e){if(!r.has(t))throw new TypeError("attempted to "+e+" private field on non-instance");return r.get(t)}e.d(r,{Z:()=>n})},687:(t,r,e)=>{e.d(r,{Z:()=>s});var n=e(175);function s(t,r){return function(t,r){return r.get?r.get.call(t):r.value}(t,(0,n.Z)(t,r,"get"))}},3395:(t,r,e)=>{e.d(r,{Z:()=>s});var n=e(5863);function s(t,r,e){(0,n.Z)(t,r),r.set(t,e)}},381:(t,r,e)=>{e.d(r,{Z:()=>s});var n=e(175);function s(t,r,e){return function(t,r,e){if(r.set)r.set.call(t,e);else{if(!r.writable)throw new TypeError("attempted to set read only private field");r.value=e}}(t,(0,n.Z)(t,r,"set"),e),e}},6171:(t,r,e)=>{function n(t,r,e){if(!r.has(t))throw new TypeError("attempted to get private field on non-instance");return e}e.d(r,{Z:()=>n})},5866:(t,r,e)=>{e.d(r,{Z:()=>s});var n=e(5863);function s(t,r){(0,n.Z)(t,r),r.add(t)}},9740:(t,r,e)=>{e.d(r,{Z:()=>s});var n=e(1461);function s(t,r){if(null==t)return{};var e,s,o=(0,n.Z)(t,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(s=0;s<a.length;s++)e=a[s],r.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}},1461:(t,r,e)=>{function n(t,r){if(null==t)return{};var e,n,s={},o=Object.keys(t);for(n=0;n<o.length;n++)e=o[n],r.indexOf(e)>=0||(s[e]=t[e]);return s}e.d(r,{Z:()=>n})},7067:(t,r,e)=>{e.r(r),e.d(r,{HttpAbortError:()=>G,HttpFetchError:()=>J,HttpParseError:()=>B,HttpResponseError:()=>L,createHttpInstance:()=>z,defaultAdapter:()=>K,fetch:()=>U,http:()=>N,isHttpAbortError:()=>M});var n={};e.r(n),e.d(n,{HttpAbortError:()=>m,HttpFetchError:()=>f,HttpParseError:()=>E,HttpResponseError:()=>v,createHttpInstance:()=>I,defaultAdapter:()=>k,fetch:()=>s,getUrlWithParams:()=>O,http:()=>D,isHttpAbortError:()=>P});var s=(t,r)=>{var e=new Request(t,Object.assign({credentials:"same-origin"},r));return self.fetch(e)},o=e(5866),a=e(3395),i=e(6666),c=e(687),u=e(6171),h=e(381),p=e(3028),l=e(9740),d=e(4795);class f extends Error{constructor(t){super(t),this.name="HttpFetchError",Error.captureStackTrace&&Error.captureStackTrace(this,f)}}class v extends Error{constructor(t,r){super(t.statusText),(0,i.Z)(this,"response",void 0),(0,i.Z)(this,"responseJson",void 0),this.name="HttpResponseError",Error.captureStackTrace&&Error.captureStackTrace(this,v),this.response=t,this.responseJson=r}}class E extends Error{constructor(t){super(t.statusText),(0,i.Z)(this,"response",void 0),this.name="HttpParseError",Error.captureStackTrace&&Error.captureStackTrace(this,E),this.response=t}}class m extends Error{constructor(t){super(t),this.name="HttpAbortError"}}class Z{constructor(){(0,i.Z)(this,"handlers",[])}use(t,r){return this.handlers.push({fulfilled:t,rejected:r}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}forEach(t){this.handlers.forEach((r=>{null!==r&&t(r)}))}}var b=["params","responseType","interceptorParams","observe","noAbortOnRouteChange","useCache"],w=["params","headers","responseType","interceptorParams","observe","noAbortOnRouteChange","useCache"],y=["body","method"];function g(t){return null==t}var T=document.querySelector("base"),H=T?T.href:location.origin+"/",P=t=>t instanceof DOMException&&20===t.code,A=function(){var t=(0,d.Z)((function*(t,r,e){return new Promise(function(){var n=(0,d.Z)((function*(n,o){var a;e.url=t;var{responseType:i}=e.options||{};i||(i="json");try{a=yield s(t,r)}catch(t){return void o(P(t)?new m(t.toString()):new f(t.toString()))}if(a.ok){var c;try{c=yield a[i]()}catch(t){return void o(P(t)?new m(t.toString()):new E(a))}n({status:a.status,statusText:a.statusText,headers:a.headers,data:c})}else{var u;try{u=yield a.json()}catch(t){}o(new v(a,u))}}));return function(t,r){return n.apply(this,arguments)}}())}));return function(r,e,n){return t.apply(this,arguments)}}(),O=(t,r)=>{if(r){var e=new URL(t,H);r instanceof URLSearchParams?r.forEach((function(t,r){e.searchParams.append(r,t)})):Object.entries(r).forEach((t=>{var[r,n]=t;Array.isArray(n)?n.forEach((t=>{e.searchParams.append(r,g(t)?"":t)})):e.searchParams.append(r,g(n)?"":n)}));var{href:n}=e;return n.startsWith(H)?n.substr(H.length):n}return t},S=(t,r)=>{if(void 0!==t){var e=new Headers(r||{}),n="Content-Type",s=t;return e.has(n)||("string"==typeof t?e.set(n,"application/x-www-form-urlencoded"):t instanceof FormData||(e.set(n,"application/json"),s=JSON.stringify(t))),{body:s,headers:e}}return{headers:r}},k=t=>{var{url:r,method:e,data:n}=t;return["DELETE","GET","HEAD"].includes(t.method)?((t,r,e)=>{var n=e.options||{},{params:s,responseType:o,interceptorParams:a,observe:i,noAbortOnRouteChange:c,useCache:u}=n,h=(0,l.Z)(n,b);return A(O(r,s),(0,p.Z)((0,p.Z)({},h),{},{method:t}),e)})(e,r,t):((t,r,e,n)=>{var s=n.options||{},{params:o,headers:a,responseType:i,interceptorParams:c,observe:u,noAbortOnRouteChange:h,useCache:d}=s,f=(0,l.Z)(s,w);return A(O(r,o),(0,p.Z)((0,p.Z)({},f),{},{method:t},S(e,a)),n)})(e,r,n,t)},x=new WeakMap,j=new WeakSet;class C{constructor(t){var r=this;(0,o.Z)(this,j),(0,i.Z)(this,"interceptors",void 0),(0,a.Z)(this,x,{writable:!0,value:k}),(0,i.Z)(this,"request",function(){var t=(0,d.Z)((function*(t,e,n){var s=e||{},{body:o,method:a}=s,i=(0,l.Z)(s,y);return(0,u.Z)(r,j,R).call(r,{url:t,data:o,method:a||"GET",options:(0,p.Z)((0,p.Z)({},n||{}),i)})}));return function(r,e,n){return t.apply(this,arguments)}}()),(0,i.Z)(this,"simpleRequest",(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,u.Z)(r,j,R).call(r,{url:e,method:t,options:n})})),(0,i.Z)(this,"requestWithBody",(function(t,e,n){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,u.Z)(r,j,R).call(r,{url:e,method:t,data:n,options:s})})),this.interceptors={request:new Z,response:new Z},null!=t&&t.adapter&&(0,h.Z)(this,x,t.adapter)}getUrlWithParams(t,r){return O(t,r)}getBodyAndHeaders(t,r){return S(t,r)}get(t,r){return(0,u.Z)(this,j,R).call(this,{url:t,method:"GET",options:r})}delete(t,r){return(0,u.Z)(this,j,R).call(this,{url:t,method:"DELETE",options:r})}head(t,r){return(0,u.Z)(this,j,R).call(this,{url:t,method:"HEAD",options:r})}post(t,r,e){return(0,u.Z)(this,j,R).call(this,{url:t,method:"POST",data:r,options:e})}put(t,r,e){return(0,u.Z)(this,j,R).call(this,{url:t,method:"PUT",data:r,options:e})}patch(t,r,e){return(0,u.Z)(this,j,R).call(this,{url:t,method:"PATCH",data:r,options:e})}}function R(t){var r=[],e=Promise.resolve(t);for(this.interceptors.request.forEach((t=>{r.push(t.fulfilled,t.rejected)})),r.push((t=>(0,c.Z)(this,x).call(this,t)),void 0),this.interceptors.response.forEach((e=>{r.push((r=>{var n;return null===(n=e.fulfilled)||void 0===n?void 0:n.call(e,r,t)}),(r=>{var n;return null===(n=e.rejected)||void 0===n?void 0:n.call(e,r,t)}))})),r.push((r=>{var e;return"response"===(null===(e=t.options)||void 0===e?void 0:e.observe)?r:r.data}),void 0);r.length;)e=e.then(r.shift(),r.shift());return e}var W,_,q,D=new C;function I(t){D=new C(t)}var{dll:F}=window;_=F&&null!==(W=window.BRICK_NEXT_VERSIONS)&&void 0!==W&&null!==(W=W["brick-container"])&&void 0!==W&&W.startsWith("2.")&&(q=F("JxWY"))?q:n;var{fetch:U,HttpFetchError:J,HttpResponseError:L,HttpParseError:B,HttpAbortError:G,http:N,isHttpAbortError:M,createHttpInstance:z,defaultAdapter:K}=_}}]);
2
- //# sourceMappingURL=1303.f8781f1e.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_next_bricks_nav=self.webpackChunk_next_bricks_nav||[]).push([[1646,7746],{7029:(e,t,n)=>{var r=n(2484);t.s=r.createRoot,r.hydrateRoot},5863:(e,t,n)=>{function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{Z:()=>r})},175:(e,t,n)=>{function r(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}n.d(t,{Z:()=>r})},687:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(175);function i(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,(0,r.Z)(e,t,"get"))}},3395:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(5863);function i(e,t,n){(0,r.Z)(e,t),t.set(e,n)}},381:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(175);function i(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,(0,r.Z)(e,t,"set"),n),n}},6171:(e,t,n)=>{function r(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}n.d(t,{Z:()=>r})},5866:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(5863);function i(e,t){(0,r.Z)(e,t),t.add(e)}},7896:(e,t,n)=>{function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},9740:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(1461);function i(e,t){if(null==e)return{};var n,i,a=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},1461:(e,t,n)=>{function r(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:()=>r})},1646:(e,t,n)=>{n.r(t),n.d(t,{ReactNextElement:()=>p,wrapBrick:()=>g,wrapLocalBrick:()=>S});var r=n(5866),i=n(3395),a=n(6171),o=n(381),s=n(687),l=n(8657),c=n(7029),d=n(2484),u=n(7844),h=new WeakMap,f=new WeakSet;class p extends u.NextElement{constructor(){super(...arguments),(0,r.Z)(this,f),(0,i.Z)(this,h,{writable:!0,value:void 0})}connectedCallback(){super._markConnectedCallbackCalled(),(0,a.Z)(this,f,v).call(this),this._render()}disconnectedCallback(){var e;null===(e=(0,s.Z)(this,h))||void 0===e||e.render(null)}_render(){var e=()=>{if(this.isConnected&&(0,s.Z)(this,h)){var e,t=this.constructor;t.shadowOptions?(0,s.Z)(this,h).render((0,u.supportsAdoptingStyleSheets)()||null===(e=t.styleTexts)||void 0===e||!e.length?this.render():l.createElement(l.Fragment,null,l.createElement("style",null,t.styleTexts.join("\n")),this.render())):(0,s.Z)(this,h).render(this.render())}};window.BRICK_NEXT_VERSIONS&&!window.DISABLE_REACT_FLUSH_SYNC?(0,d.flushSync)(e):e()}}function v(){if(!(0,s.Z)(this,h)){var e=this.constructor;if(e.shadowOptions){var t,n=this.attachShadow(e.shadowOptions);if((0,u.supportsAdoptingStyleSheets)()&&null!==(t=e.styleTexts)&&void 0!==t&&t.length){var r=new CSSStyleSheet;r.replaceSync(e.styleTexts.join("")),n.adoptedStyleSheets=[r]}(0,o.Z)(this,h,(0,c.s)(n))}else(0,o.Z)(this,h,(0,c.s)(this))}}var w=n(7896),y=n(9740),Z=["children"],b=["children"];function S(e,t){return(0,l.forwardRef)((function(n,r){var{children:i}=n,a=(0,y.Z)(n,Z),o="string"==typeof e?e:e.__tagName,s=O(a,t);return l.createElement(o,(0,w.Z)({},s,{ref:r}),i)}))}function g(e,t){return(0,l.forwardRef)((function(n,r){var{children:i}=n,a=O((0,y.Z)(n,b),t);return l.createElement(e,(0,w.Z)({},a,{ref:r}),i)}))}function O(e,t){var n;if(t)for(var[r,i]of(n={},Object.entries(e)))Object.prototype.hasOwnProperty.call(t,r)?n["on".concat(t[r])]=i:n[r]=i;else n=e;return n}}}]);
2
- //# sourceMappingURL=1646.c77cdec5.js.map