ct-component-plus 2.2.8 → 2.2.9

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # v2.2.8版本更新内容:
1
+ # v2.2.9版本更新内容:
2
2
 
3
3
  1. 优化select组件没有默认值报错的情况
4
4
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ct-component-plus",
3
3
  "private": false,
4
- "version": "2.2.8",
4
+ "version": "2.2.9",
5
5
  "type": "module",
6
6
  "main": "packages/components/index.js",
7
7
  "files": [
@@ -156,8 +156,8 @@ const selectText = computed(() => {
156
156
  }
157
157
  }
158
158
  nextTick(() => {
159
- selectRef.value.$refs &&
160
- (selectRef.value.$refs.reference.input.value = result);
159
+ if (!selectRef.value) return;
160
+ selectRef.value.$refs.reference.input.value = result;
161
161
  });
162
162
  return result;
163
163
  });