waibu-bootstrap 2.2.1 → 2.2.3
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.
|
@@ -13,8 +13,9 @@ function rounded ({ key, params }) {
|
|
|
13
13
|
const [item, val] = attr.split(':')
|
|
14
14
|
if (item === 'type') hasType = true
|
|
15
15
|
for (const value of uniq((val ?? '').split(' '))) {
|
|
16
|
+
const [main, alt] = value.split('-')
|
|
16
17
|
switch (item) {
|
|
17
|
-
case 'type': if (types.includes(
|
|
18
|
+
case 'type': if (types.includes(main)) params.attr.class.push(`rounded${main === 'all' ? '' : ('-' + main)}${alt ? ('-' + alt) : ''}`); break
|
|
18
19
|
case 'width': params.attr.class.push(parseSimple.call(this, { cls: 'rounded', value, values: widths })); break
|
|
19
20
|
}
|
|
20
21
|
}
|
|
@@ -25,13 +25,10 @@ async function navItem () {
|
|
|
25
25
|
!this.params.attr.href.startsWith('http://') &&
|
|
26
26
|
!this.params.attr.href.startsWith('https://')) {
|
|
27
27
|
const route = findRoute(this.params.attr.ohref)
|
|
28
|
-
if (
|
|
29
|
-
this.params.
|
|
30
|
-
this.params.
|
|
31
|
-
return
|
|
28
|
+
if (route) {
|
|
29
|
+
const { ns, subNs, subSubNs, realFullPath } = breakNsPath(this.params.attr.ohref)
|
|
30
|
+
this.params.attr.href = routePath(buildNsPath({ ns, subNs, subSubNs, path: realFullPath }))
|
|
32
31
|
}
|
|
33
|
-
const { ns, subNs, subSubNs, realFullPath } = breakNsPath(this.params.attr.ohref)
|
|
34
|
-
this.params.attr.href = routePath(buildNsPath({ ns, subNs, subSubNs, path: realFullPath }))
|
|
35
32
|
}
|
|
36
33
|
if (group.dropdown) {
|
|
37
34
|
this.params.attr.class.push('dropdown-toggle')
|
|
@@ -10,7 +10,7 @@ function formatSentence (item, params) {
|
|
|
10
10
|
if (this.params.attr.expanded) attr.rounded = 'width:0'
|
|
11
11
|
merge(attr, omit(item, ['component', 'icon', 'ohref', 'html']))
|
|
12
12
|
if (this.params.attr.text && !attr.active) attr.text = this.params.attr.text
|
|
13
|
-
if (!isSet(attr.active)) attr.active = this.component.req.url.
|
|
13
|
+
if (!isSet(attr.active)) attr.active = this.component.req.url.split('?')[0] === attr.href
|
|
14
14
|
if (!attr.active) attr.background = 'color:transparent'
|
|
15
15
|
const result = [`<c:${cmp}`]
|
|
16
16
|
for (const k in attr) {
|
package/package.json
CHANGED
package/wiki/CHANGES.md
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
# Changes
|
|
2
2
|
|
|
3
|
+
## 2026-02-11
|
|
4
|
+
|
|
5
|
+
- [2.2.3] Bug fix on widget attribute ```rounded```
|
|
6
|
+
- [2.2.3] Bug fix on widget ```<c:nav-item />```
|
|
7
|
+
|
|
3
8
|
## 2026-02-09
|
|
4
9
|
|
|
5
10
|
- [2.2.0] Start using simplified ```webAppCtx```
|
|
6
11
|
- [2.2.1] Bug fix on ```sidebar``` widget
|
|
12
|
+
- [2.2.2] Bug fix on ```sidebar``` widget
|
|
7
13
|
|
|
8
14
|
## 2026-02-04
|
|
9
15
|
|