cyy-vue-material 1.1.26 → 1.1.27

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyy-vue-material",
3
- "version": "1.1.26",
3
+ "version": "1.1.27",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -159,18 +159,18 @@ export default {
159
159
  }
160
160
  },
161
161
  ruleTitleImg() {
162
- return `url(${this.props.activityTitleLable[0]?.imgUrl}) no-repeat`;
162
+ return this.ruleTitle ? `url(${this.props.activityTitleLable[0]?.imgUrl}) no-repeat` : "";
163
163
  },
164
164
  selectImgRule() {
165
165
  return (params) => {
166
166
  if (params === "show") {
167
- if (this.props.selectImg || this.props.selectImgs.length) {
167
+ if (this.props.selectImg || this.props.selectImgs?.length) {
168
168
  return true;
169
169
  }
170
170
  return false;
171
171
  }
172
172
  if (params === "url") {
173
- if (this.props.selectImgs.length) {
173
+ if (this.props.selectImgs?.length) {
174
174
  return this.props.selectImgs[0].imgUrl;
175
175
  }
176
176
  if (this.props.selectImg) {
@@ -179,7 +179,7 @@ export default {
179
179
  return "";
180
180
  }
181
181
  if (params === "link") {
182
- if (this.props.selectImgs.length) {
182
+ if (this.props.selectImgs?.length) {
183
183
  return this.props.selectImgs[0];
184
184
  }
185
185
  return [{ link: "无操作" }];