@namelivia/vue-components 1.1.1 → 1.1.2

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/dist/index.esm.js CHANGED
@@ -231,6 +231,9 @@ var script$h = defineComponent({
231
231
  label: {
232
232
  type: String,
233
233
  },
234
+ initialValue: {
235
+ type: String,
236
+ },
234
237
  options: {
235
238
  type: Array,
236
239
  },
@@ -240,6 +243,16 @@ var script$h = defineComponent({
240
243
  selected: '',
241
244
  }
242
245
  },
246
+ watch: {
247
+ initialValue: {
248
+ immediate: true,
249
+ handler: function (newSelectedValue) {
250
+ if (newSelectedValue !== "" && newSelectedValue !== undefined) {
251
+ this.selected = newSelectedValue;
252
+ }
253
+ },
254
+ },
255
+ },
243
256
  emits: ['selected'],
244
257
  methods: {
245
258
  onChange() {