@ecolovo/uniapp-components 1.0.2 → 1.0.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.
@@ -33,11 +33,3 @@ export default {
33
33
  },
34
34
  };
35
35
  </script>
36
-
37
- <style lang="scss" module>
38
- .Form {
39
- background: #fff;
40
- padding: 20rpx;
41
- border-radius: 20rpx;
42
- }
43
- </style>
@@ -5,7 +5,7 @@ export default {
5
5
  /* #ifdef MP */
6
6
  data() {
7
7
  return {
8
- // 使 $style 变为响应式,否则在 wxml 中无法使用
8
+ // 添加 $style 属性,否则在 wxml 中无法使用
9
9
  $style: {},
10
10
  };
11
11
  },
@@ -25,7 +25,7 @@ export default {
25
25
  },
26
26
  /** 合并后的组件类名 */
27
27
  componentClassNames() {
28
- const baseClass = this.$style[this.$options.name.replace(/^App/, '')];
28
+ const baseClass = this.$style?.[this.$options.name.replace(/^App/, '')];
29
29
  return [...(baseClass ? [baseClass] : []), this.componentClass, this.componentKebabClass];
30
30
  },
31
31
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecolovo/uniapp-components",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Ecolovo UniApp 组件库",
5
5
  "keywords": [
6
6
  "uniapp",