mali-applet-ui 1.0.81 → 1.0.83
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.
|
@@ -25,6 +25,10 @@ export default {
|
|
|
25
25
|
props: {
|
|
26
26
|
value: [Array, Number, String],
|
|
27
27
|
optionProps: Object,
|
|
28
|
+
compTitle: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: '请选择'
|
|
31
|
+
},
|
|
28
32
|
compRender: {
|
|
29
33
|
type: Object,
|
|
30
34
|
default: () => ({})
|
|
@@ -74,6 +78,7 @@ export default {
|
|
|
74
78
|
// 打开选择列表页面
|
|
75
79
|
this.$store.dispatch('openSelectPage', {
|
|
76
80
|
compName: this.compRender.name, // 指定加载组件名称
|
|
81
|
+
compTitle: this.compTitle, // 页面标题
|
|
77
82
|
compType: this.type, // 单选框和复选框
|
|
78
83
|
compProps: this.compRender.props, // 组件参数
|
|
79
84
|
optionProps: this.optionProps,
|
package/package.json
CHANGED
package/store/base.js
CHANGED
|
@@ -29,6 +29,11 @@ const base = {
|
|
|
29
29
|
uni.navigateTo({
|
|
30
30
|
url: `/pagesA/base/select/SelectPage?compName=${opts.compName}`,
|
|
31
31
|
success ({ eventChannel }) {
|
|
32
|
+
if (opts && opts.compTitle) {
|
|
33
|
+
uni.setNavigationBarTitle({
|
|
34
|
+
title: opts.compTitle
|
|
35
|
+
})
|
|
36
|
+
}
|
|
32
37
|
eventChannel.emit('init', compParams)
|
|
33
38
|
},
|
|
34
39
|
events: {
|