jmash-diy-mp 0.1.7 → 0.1.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
|
@@ -49,6 +49,11 @@ createComponent({
|
|
|
49
49
|
type: String,
|
|
50
50
|
default: ""
|
|
51
51
|
},
|
|
52
|
+
// 是否显示查看更多, 默认false ==> compModel.compData.showMore
|
|
53
|
+
showMore: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: false
|
|
56
|
+
},
|
|
52
57
|
},
|
|
53
58
|
setup(props) {
|
|
54
59
|
// 资源路径
|
|
@@ -61,8 +66,6 @@ createComponent({
|
|
|
61
66
|
let titleStyle = ref(props.compModel?.compData?.titleStyle);
|
|
62
67
|
// 标题图标
|
|
63
68
|
let titleImage = ref(props.compModel?.compData?.titleImage ?? "");
|
|
64
|
-
// 是否显示查看更多
|
|
65
|
-
let showMore = ref(props.compModel?.compData?.showMore ?? false);
|
|
66
69
|
|
|
67
70
|
// 主题变化
|
|
68
71
|
const { pageModel } = toRefs(props)
|
|
@@ -77,10 +80,6 @@ createComponent({
|
|
|
77
80
|
watch(() => props.compModel?.compData?.titleImage, (newVal) => {
|
|
78
81
|
titleImage.value = newVal ?? "";
|
|
79
82
|
});
|
|
80
|
-
// 监听 showMore 变化
|
|
81
|
-
watch(() => props.compModel?.compData?.showMore, (newVal) => {
|
|
82
|
-
showMore.value = newVal ?? false;
|
|
83
|
-
});
|
|
84
83
|
|
|
85
84
|
return {
|
|
86
85
|
resourceUrl,
|