classcard-ui 0.2.493 → 0.2.494

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": "classcard-ui",
3
- "version": "0.2.493",
3
+ "version": "0.2.494",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -212,10 +212,7 @@ export default {
212
212
  data() {
213
213
  return {
214
214
  toggleDropdown: false,
215
- selectedValue:
216
- this.value !== null && this.value.option
217
- ? this.value.option
218
- : this.value,
215
+ selectedValue: null,
219
216
  showSelectedValue: false,
220
217
  showFocus: false,
221
218
  selectSearch: null,
@@ -279,5 +276,11 @@ export default {
279
276
  this.renderOptions = this.options;
280
277
  },
281
278
  },
279
+ mounted() {
280
+ this.selectedValue =
281
+ this.value !== null && this.value[this.renderOptionName]
282
+ ? this.value[this.renderOptionName]
283
+ : this.value;
284
+ },
282
285
  };
283
286
  </script>