waibu-bootstrap 1.1.8 → 1.1.9
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 +1 -1
- package/waibuMpa/theme/component/factory/_lib.js +1 -0
- package/waibuMpa/theme/component/factory/accordion-item.js +1 -1
- package/waibuMpa/theme/component/factory/dropdown-item.js +1 -2
- package/waibuMpa/theme/component/method/after-build-tag.js +2 -1
- package/waibuStatic/asset/js/wbs.js +1 -1
package/package.json
CHANGED
|
@@ -96,6 +96,7 @@ export async function buildFormColor (group, params) {
|
|
|
96
96
|
const attr = getInputAttr.call(this, group)
|
|
97
97
|
attr.class.push('form-control-color')
|
|
98
98
|
attr.type = 'color'
|
|
99
|
+
if (!attr.dim) attr.dim = 'width:100'
|
|
99
100
|
return await this.component.buildTag({ tag: 'input', attr, selfClosing: true })
|
|
100
101
|
}
|
|
101
102
|
|
|
@@ -22,7 +22,7 @@ async function accordionItem () {
|
|
|
22
22
|
`aria-expanded="${this.params.attr.showOnStart}"`,
|
|
23
23
|
'x-data',
|
|
24
24
|
`@click="$dispatch('accordion-item', { id: $el.closest('.accordion').id, cls: '${clsList.join(' ')}' })"`,
|
|
25
|
-
`aria-controls="${this.params.attr.id}">${this.params.attr.header}</button></c:h2>`]
|
|
25
|
+
`aria-controls="${this.params.attr.id}"><c:span margin="end-2">${this.params.attr.header}</c:span></button></c:h2>`]
|
|
26
26
|
const body = await this.component.buildTag({ tag: 'div', attr: group.body, html: this.params.html })
|
|
27
27
|
const details = [`<div id="${this.params.attr.id}" class="accordion-collapse collapse${this.params.attr.showOnStart ? ' show' : ''}">`,
|
|
28
28
|
body, '</div']
|
|
@@ -9,8 +9,7 @@ async function dropdownItem () {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
build = async () => {
|
|
12
|
-
|
|
13
|
-
if ($(this.params.html).children().length === 0 && !this.params.attr.href) this.params.attr.href = '#'
|
|
12
|
+
if (!this.params.attr.href) this.params.attr.href = '#'
|
|
14
13
|
if (this.params.attr.divider) {
|
|
15
14
|
this.params.tag = 'hr'
|
|
16
15
|
this.params.attr.class.push('dropdown-divider')
|
|
@@ -56,7 +56,7 @@ const styles = [
|
|
|
56
56
|
async function afterBuildTag (tag, params) {
|
|
57
57
|
const { omit, map, isEmpty } = this.plugin.lib._
|
|
58
58
|
const keys = map(styles, 'key')
|
|
59
|
-
|
|
59
|
+
let excluded = []
|
|
60
60
|
params.attr = params.attr ?? {}
|
|
61
61
|
tag = tag ?? params.tag
|
|
62
62
|
if (tag === 'any') tag = params.tag
|
|
@@ -98,6 +98,7 @@ async function afterBuildTag (tag, params) {
|
|
|
98
98
|
if (key.includes(k)) excluded.push(key)
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
+
excluded = excluded.filter(item => !['disabled'].includes(item))
|
|
101
102
|
params.attr = omit(params.attr, ['color', 'noDismiss', 'size', 'split', 'ordered',
|
|
102
103
|
'dir', 'menu', 'divider', 'header', 'autoClose', 'offset', 'group', 'toggleAll',
|
|
103
104
|
'showOnStart', 'autoPlay', 'fade', 'indicator', 'noNavigation', 'noTouch', 'alwaysOpen',
|
|
@@ -82,7 +82,7 @@ class Wbs {
|
|
|
82
82
|
this.$el.closest('.modal-body').querySelector('button[type=submit]').click()
|
|
83
83
|
}
|
|
84
84
|
}" @keyup.enter="submit" value="` + (value ?? opts.value) + '"/>',
|
|
85
|
-
msg ? ('<c:div margin="top-3">' + msg + '</c:div>') : ''
|
|
85
|
+
msg ? ('<c:div margin="top-3"><c:t>' + msg + '</c:t></c:div>') : ''
|
|
86
86
|
].join('\n')
|
|
87
87
|
opts.close = opts.close ?? ''
|
|
88
88
|
opts.buttons = [
|