(component): cascader组件优化change回调参数

This commit is contained in:
0o张不歪o0
2022-07-08 09:36:38 +08:00
parent 02f27278e7
commit 237f4fd508
3 changed files with 37 additions and 52 deletions

View File

@@ -350,8 +350,8 @@ const valueLv=ref(null)
import { ref } from "vue";
const value2=ref(null)
const displayValue=ref(null)
const onChange=(val)=>{
displayValue.value=val
const onChange=(evt)=>{
displayValue.value=evt.display
}
const options2 = [
{
@@ -647,9 +647,9 @@ const options2 = [
::: table
| 方法名 | 描述 |
| ---- | ------------ |
| change | 选中后数据改变的回调 |
| 方法名 | 描述 |用法|
| ---- | ------------ |--------|
| change | 选中后数据改变的回调 |onChange( evt ){ <br> &nbsp; &nbsp;/* evt.display<br> &nbsp; &nbsp;/* evt.value,<br> &nbsp; &nbsp;/* evt.label<br> &nbsp; &nbsp;/* evt.currentClick<br>}|
:::