mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
docs(cascader): on-update-value
This commit is contained in:
parent
0284708874
commit
c4b07fb3e3
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user