// information-computed 计算属性混入 export default { computed: { // 列表样式 listStyle() { return this.datas.componentData.listStyle || 1; }, // 展示文章标签 tagShow() { return this.datas.componentData.tagShow || false; }, // 展示阅读数 viewNumShow() { return this.datas.componentData.viewNumShow || false; }, // 展示点赞数 starNumShow() { return this.datas.componentData.starNumShow || false; }, //字体粗细 fontWeight() { return this.datas.componentData.fontWeight || "bold"; }, //文字颜色 textColor() { return this.datas.componentData.textColor || "rgba(51,51,51,1)"; }, //卡片样式 cartStyle() { return this.datas.componentData.cartStyle || 1; }, //卡片倒角 cartRadius() { return this.datas.componentData.cartRadius || 1; }, //背景颜色 bgColor() { return this.datas.componentData.bgColor || "rgba(255,255,255,1)"; } } };