Website-Suche

vuejs3 - Wie bindet man Daten korrekt von einer Mutation an eine Kind-Komponente in Vue 3 mit Typescript und Composition API?


Ich möchte Daten von einer Mutation an ein Kind-Komponenten binden. Aber die Daten binden sich nicht reaktiv.

<SelectSearch
  class="my-2"
  @filter="fetchDestinationCity"
  :options="originCityList"
  placeholder="Ketik atau pilih alamat asal"
  keyName="name"
  keyValue="id"
  :isDisabled="isPOS.pos"
  v-model="isPos.originCity"
/>



get isPOS() {
const type = AccountController.accountData.account_type_detail.type;
const district = AccountController.accountData.account_location.district_name;
return type == "pos"
  ? { pos: true, originCity: district }
    : { pos: false, originCity: "" };
  }

Verwandte Artikel