waibu-bootstrap 1.0.12 → 1.0.14
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
|
@@ -23,8 +23,8 @@ async function img () {
|
|
|
23
23
|
if (isString(this.params.attr['@mouseleave'])) mouseleave.push(...this.params.attr['@mouseleave'].split('\n'))
|
|
24
24
|
if (isString(this.params.attr.srcHover)) {
|
|
25
25
|
this.params.attr.srcStby = this.params.attr.src
|
|
26
|
-
mouseenter.unshift(
|
|
27
|
-
mouseleave.unshift(
|
|
26
|
+
mouseenter.unshift("$el.src = $el.getAttribute('src-hover')")
|
|
27
|
+
mouseleave.unshift("$el.src = $el.getAttribute('src-stby')")
|
|
28
28
|
}
|
|
29
29
|
if (mouseenter.length > 0) this.params.attr['@mouseenter'] = mouseenter.join('\n')
|
|
30
30
|
if (mouseleave.length > 0) this.params.attr['@mouseleave'] = mouseleave.join('\n')
|
|
@@ -8,7 +8,8 @@ async function navDropdownUser () {
|
|
|
8
8
|
const html = []
|
|
9
9
|
const attr = {
|
|
10
10
|
dropdown: true,
|
|
11
|
-
|
|
11
|
+
dropdownDir: this.params.attr.dropdownDir,
|
|
12
|
+
dropdownMenudir: this.params.attr.dropdownMenudir,
|
|
12
13
|
content: `${icon} ${text}`
|
|
13
14
|
}
|
|
14
15
|
if (this.params.attr.noMenu) {
|
|
@@ -126,6 +126,7 @@ class Wbs {
|
|
|
126
126
|
default: title = title ?? 'Information'
|
|
127
127
|
}
|
|
128
128
|
buttons = buttons.map(b => {
|
|
129
|
+
b.handlerOpts = wmpa.toBase64(JSON.stringify(b.handlerOpts))
|
|
129
130
|
let btn = `<c:btn type="${b.type ?? 'button'}" margin="start-2" ${b.id ? `id="${b.id}"` : ''} color="${b.color}" t:content="${b.label}" `
|
|
130
131
|
if (b.dismiss) btn += 'dismiss />'
|
|
131
132
|
else if (b.handler) btn += `x-data @click="wbs.handleAlert('${b.handler}', '${id}', '${b.handlerOpts ?? ''}', '${b.close ?? ''}', '${b.alertType ?? 'alert'}')" />`
|