2
0
mirror of https://github.com/tenrok/maska.git synced 2026-05-15 11:59:38 +03:00

Replace "binded" with "bound"

This commit is contained in:
Ilya Semenov
2024-02-13 13:56:56 +07:00
parent 18191d23ef
commit a38e8a2512
9 changed files with 37 additions and 37 deletions
+11 -11
View File
@@ -153,15 +153,15 @@ import { reactive, ref } from "vue"
import { vMaska } from "maska"
const maskedValue = ref('')
const bindedObject = reactive({})
const boundObject = reactive({})
</script>
<template>
<input v-maska="bindedObject" v-model="maskedValue">
<input v-maska="boundObject" v-model="maskedValue">
Masked value: {{ maskedValue }} or {{ bindedObject.masked }}
Unmasked value: {{ bindedObject.unmasked }}
<span v-if="bindedObject.completed">✅ Mask completed</span>
Masked value: {{ maskedValue }} or {{ boundObject.masked }}
Unmasked value: {{ boundObject.unmasked }}
<span v-if="boundObject.completed">✅ Mask completed</span>
</template>
```
@@ -175,7 +175,7 @@ export default {
directives: { maska: vMaska },
data: () => ({
maskedValue: "",
bindedObject: {
boundObject: {
masked: "",
unmasked: "",
completed: false
@@ -185,11 +185,11 @@ export default {
</script>
<template>
<input v-maska="bindedObject" v-model="maskedValue">
<input v-maska="boundObject" v-model="maskedValue">
Masked value: {{ maskedValue }} or {{ bindedObject.masked }}
Unmasked value: {{ bindedObject.unmasked }}
<span v-if="bindedObject.completed">✅ Mask completed</span>
Masked value: {{ maskedValue }} or {{ boundObject.masked }}
Unmasked value: {{ boundObject.unmasked }}
<span v-if="boundObject.completed">✅ Mask completed</span>
</template>
```
<!-- tabs:end -->
@@ -245,7 +245,7 @@ export default {
You can set options and bind to an object at the same time:
``` html
<input v-maska:[options]="bindedObject">
<input v-maska:[options]="boundObject">
```
#### Global registration of directive