waibu-bootstrap 2.2.2 → 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(val)) params.attr.class.push(`rounded${val === 'all' ? '' : ('-' + val)}`); break
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 (!route) {
29
- this.params.html = ''
30
- this.params.noTag = true
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')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-bootstrap",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "Bootstrap suport for Waibu Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,10 @@
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```