waibu-bootstrap 1.0.9 → 1.0.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-bootstrap",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "Bootstrap suport for Waibu Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -51,7 +51,7 @@ export async function buildMenu (params = {}) { // scope: component
51
51
  attr: {
52
52
  class: [
53
53
  'dropdown-menu',
54
- parseVariant.call(this, { cls: 'dropdown-menu', value: params.attr.dir, values: dirs, variants: breakpoints, prepend: true })
54
+ parseVariant.call(this, { cls: 'dropdown-menu', value: params.attr.menudir, values: dirs, variants: breakpoints, prepend: true })
55
55
  ],
56
56
  style
57
57
  },
@@ -8,7 +8,8 @@ async function navDropdownDarkmode () {
8
8
  const content = this.component.req.iconset ? await this.component.buildTag({ tag: 'icon', attr: { name } }) : this.component.req.t(titleize(name))
9
9
  const attr = {
10
10
  dropdown: true,
11
- dropdownMenu: this.params.attr.dropdownMenu,
11
+ dropdownDir: this.params.attr.dropdownDir,
12
+ dropdownMenudir: this.params.attr.dropdownMenudir,
12
13
  content
13
14
  }
14
15
  const html = [
@@ -6,7 +6,8 @@ async function navDropdownLanguage () {
6
6
  const lang = this.component.req.lang
7
7
  const attr = {
8
8
  dropdown: true,
9
- dropdownMenu: this.params.attr.dropdownMenu,
9
+ dropdownDir: this.params.attr.dropdownDir,
10
+ dropdownMenudir: this.params.attr.dropdownMenudir,
10
11
  content: lang.toUpperCase()
11
12
  }
12
13
  const html = []
package/waibuMpa/theme.js CHANGED
@@ -6,6 +6,7 @@ async function theme (ctx) {
6
6
  const scripts = [
7
7
  'waibuBootstrap.virtual:/bootstrap/js/bootstrap.bundle.min.js',
8
8
  'bajo.virtual:/lodash/lodash.min.js',
9
+ '$waibuMpa:/wmpa.js',
9
10
  '$waibuBootstrap.asset:/js/wbs.js'
10
11
  ]
11
12
  const meta = [{