waibu-maps 2.1.2 → 2.1.4
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/extend/bajoTemplate/template/wmaps.js +1 -1
- package/extend/waibuBootstrap/theme/component/widget/control-image.js +1 -1
- package/extend/waibuBootstrap/theme/component/widget/control-logo.js +2 -2
- package/extend/waibuBootstrap/theme/component/widget/control-mouse-pos.js +1 -1
- package/extend/waibuBootstrap/theme/component/widget/control-search.js +1 -1
- package/extend/waibuBootstrap/theme/component/widget/control-zbp.js +1 -1
- package/package.json +1 -1
- package/wiki/CHANGES.md +8 -0
|
@@ -166,7 +166,7 @@ class WaibuMaps { // eslint-disable-line no-unused-vars
|
|
|
166
166
|
if (options.builder) {
|
|
167
167
|
if (_.isArray(options.builder)) ctrl.panels = options.builder
|
|
168
168
|
else if (_.isString(options.builder)) {
|
|
169
|
-
ctrl.panels = await wmpa.createComponent(options.builder)
|
|
169
|
+
ctrl.panels = await wmpa.createComponent(options.builder, undefined, options.opts)
|
|
170
170
|
} else {
|
|
171
171
|
const fn = options.builder.bind(ctrl.scope)
|
|
172
172
|
ctrl.panels = await fn(options.params)
|
|
@@ -27,7 +27,7 @@ async function controlImage () {
|
|
|
27
27
|
const body = ['<c:${url ? `a url="${url}"` : 'div'}><c:img ${stringifyAttribs(img)} ']
|
|
28
28
|
body.push('${animate}')
|
|
29
29
|
body.push('/></c:${url ? 'a' : 'div'}>')
|
|
30
|
-
return await wmpa.createComponent(body)
|
|
30
|
+
return await wmpa.createComponent(body, null, { theme: '${this.component.theme.name}', iconset: '${this.component.iconset.name}' })
|
|
31
31
|
}
|
|
32
32
|
`)
|
|
33
33
|
|
|
@@ -41,10 +41,10 @@ async function controlLogo () {
|
|
|
41
41
|
}
|
|
42
42
|
this.addBlock('reactive', `
|
|
43
43
|
async ${prefix}Builder () {
|
|
44
|
-
const body = ['<c:a href="#" @click="wbs.appLauncher(\\'darkmode language\\', \\'${this.params.attr.menu}\\')">']
|
|
44
|
+
const body = ['<c:a href="#" @click="wbs.appLauncher(\\'darkmode language\\', \\'${this.params.attr.menu}\\', { theme: \\'${this.component.theme.name}\\', iconset: \\'${this.component.iconset.name}\\' })">']
|
|
45
45
|
body.push('<c:img ${stringifyAttribs(img)} ${animate} />')
|
|
46
46
|
body.push('</c:a>')
|
|
47
|
-
return await wmpa.createComponent(body)
|
|
47
|
+
return await wmpa.createComponent(body, null)
|
|
48
48
|
}
|
|
49
49
|
`)
|
|
50
50
|
|
|
@@ -56,7 +56,7 @@ async function controlMousePos () {
|
|
|
56
56
|
`, `
|
|
57
57
|
async ${prefix}Builder () {
|
|
58
58
|
const body = '<c:div id="${id}" margin="x-2 top-1" text="align:center nowrap"/>'
|
|
59
|
-
return await wmpa.createComponent(body)
|
|
59
|
+
return await wmpa.createComponent(body, null, { theme: '${this.component.theme.name}', iconset: '${this.component.iconset.name}' })
|
|
60
60
|
}
|
|
61
61
|
`])
|
|
62
62
|
this.addBlock('run', `
|
|
@@ -54,7 +54,7 @@ async function controlSearch () {
|
|
|
54
54
|
'<c:icon name="search" />',
|
|
55
55
|
'</c:button>'
|
|
56
56
|
]
|
|
57
|
-
return [await wmpa.createComponent(body)]
|
|
57
|
+
return [await wmpa.createComponent(body, null, { theme: '${this.component.theme.name}', iconset: '${this.component.iconset.name}' })]
|
|
58
58
|
}
|
|
59
59
|
`, `
|
|
60
60
|
async ${prefix}Populate () {
|
package/package.json
CHANGED
package/wiki/CHANGES.md
CHANGED