Vue v-maska directive with an object property as the argument?
Is there a way to use the `v-maska` directive with an object property as the `argument`?
```
const data = reactive({ order: { phone: "1234567890} });
<input
v-maska:data.order.phone.unmasked="'###-###-####'"
:value="data.order.phone"
/>
```
I've tried:
```
v-maska:data.order.phone.unmasked="'###-###-####'"
v-maska:[data.order.phone.unmasked]="'###-###-####'"
// console warning: Maska: please expose '1234567890' using defineExpose
```
to no avail... the `unmasked` argument never gets updated.
Sample stackblitz:
https://stackblitz.com/edit/vitejs-vite-gxiw3emt?file=src%2FApp.vue
4 条评论