waibu-bootstrap 1.0.6 → 1.0.8
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
|
@@ -21,7 +21,7 @@ async function appLauncherTrigger () {
|
|
|
21
21
|
|
|
22
22
|
async build () {
|
|
23
23
|
const { fastGlob } = this.plugin.app.bajo.lib
|
|
24
|
-
const {
|
|
24
|
+
const { omit } = this.plugin.app.bajo.lib._
|
|
25
25
|
let logo = 'waibu'
|
|
26
26
|
const files = await fastGlob(`${this.plugin.app.main.dir.pkg}/bajo/logo.*`)
|
|
27
27
|
if (files.length > 0) logo = 'main'
|
|
@@ -3,7 +3,7 @@ async function fieldset () {
|
|
|
3
3
|
constructor (options) {
|
|
4
4
|
super(options)
|
|
5
5
|
this.component.normalizeAttr(this.params, { tag: 'fieldset' })
|
|
6
|
-
if (!this.params.attr.legendType) this.params.attr.legendType = '
|
|
6
|
+
if (!this.params.attr.legendType) this.params.attr.legendType = '5'
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
async build () {
|
|
@@ -19,7 +19,7 @@ export async function build (handler, params = {}) {
|
|
|
19
19
|
let input = await handler.call(this, group, this.params)
|
|
20
20
|
const label = this.params.attr.label ? (await buildFormLabel.call(this, group, undefined, 'form-check-label')) : ''
|
|
21
21
|
if (group._.name) {
|
|
22
|
-
const details = get(this, 'locals.error.details', [])
|
|
22
|
+
const details = get(this, 'component.locals.error.details', [])
|
|
23
23
|
const err = find(details, { field: group._.name })
|
|
24
24
|
if (err) {
|
|
25
25
|
const ext = err.ext ?? {}
|
|
@@ -26,7 +26,7 @@ export async function handleInput ({ handler, group, params } = {}) {
|
|
|
26
26
|
input: await handler.call(this, group, this.params)
|
|
27
27
|
}
|
|
28
28
|
if (group._.name) {
|
|
29
|
-
const details = get(this, 'locals.error.details', [])
|
|
29
|
+
const details = get(this, 'component.locals.error.details', [])
|
|
30
30
|
const err = find(details, { field: group._.name })
|
|
31
31
|
if (err) {
|
|
32
32
|
const ext = err.ext ?? {}
|