docs(cascader): on-update-value

This commit is contained in:
07akioni 2021-09-14 00:11:49 +08:00
parent 0284708874
commit c4b07fb3e3
4 changed files with 20 additions and 4 deletions

View File

@ -28,6 +28,7 @@
:check-strategy="checkStrategyIsChild ? 'child' : 'all'"
:show-path="showPath"
:filterable="filterable"
@update:value="handleUpdateValue"
/>
</n-space>
```
@ -74,7 +75,10 @@ export default defineComponent({
value: ref(null),
filterable: ref(false),
responsiveMaxTagCount: ref(true),
options: getOptions()
options: getOptions(),
handleUpdateValue (...args) {
console.log(...args)
}
}
}
})

View File

@ -19,6 +19,7 @@
:check-strategy="checkStrategyIsChild ? 'child' : 'all'"
:show-path="showPath"
:filterable="filterable"
@update:value="handleUpdateValue"
/>
</n-space>
```
@ -63,7 +64,10 @@ export default defineComponent({
hoverTrigger: ref(false),
filterable: ref(false),
value: ref(null),
options: getOptions()
options: getOptions(),
handleUpdateValue (...args) {
console.log(...args)
}
}
}
})

View File

@ -28,6 +28,7 @@
:check-strategy="checkStrategyIsChild ? 'child' : 'all'"
:show-path="showPath"
:filterable="filterable"
@update:value="handleUpdateValue"
/>
</n-space>
```
@ -74,7 +75,10 @@ export default defineComponent({
value: ref(null),
filterable: ref(false),
responsiveMaxTagCount: ref(true),
options: getOptions()
options: getOptions(),
handleUpdateValue (...args) {
console.log(...args)
}
}
}
})

View File

@ -19,6 +19,7 @@
:check-strategy="checkStrategyIsChild ? 'child' : 'all'"
:show-path="showPath"
:filterable="filterable"
@update:value="handleUpdateValue"
/>
</n-space>
```
@ -63,7 +64,10 @@ export default defineComponent({
hoverTrigger: ref(false),
filterable: ref(false),
value: ref(null),
options: getOptions()
options: getOptions(),
handleUpdateValue (...args) {
console.log(...args)
}
}
}
})