首页 >> js开发 >> jsvue props 一次传多个值实例js大全
jsvue props 一次传多个值实例js大全
发布时间: 2021年1月13日 | 浏览:
| 分类:js开发
数组:数组:
对象:对象:
或者:或者:
子组件:子组件:
props: {
propsText:{
type: Object,
default:{}
}
},
props: {
propsText:{
type: Object,
default:{}
}
},父组件:父组件:
import appFooterCar from "../FooterCarList/FooterCarList";
data() {
return {
propsText:{
seleTime:11,
carsStart:22,
carEnd:33,
Remark:44,
confirmationCar:55
}
};
import appFooterCar from "../FooterCarList/FooterCarList";
data() {
return {
propsText:{
seleTime:11,
carsStart:22,
carEnd:33,
Remark:44,
confirmationCar:55
}
};补充知识:vue props 属性值接受多个类型补充知识:补充知识:vue props 属性值接受多个类型我就废话不多说了,大家还是直接看代码吧~
originalData: {
type: Array | Object,
default () {
return []
}
}
}
```
originalData: {
type: Array | Object,
default () {
return []
}
}
}
```以上这篇vue props 一次传多个值实例就是小编分享给大家的全部内容了,希望能给大家一个参考。
{{propsText.seleTime}}
{{propsText.carsStart}}
{{propsText.carEnd}}
{{propsText.Remark}}
props: {
propsText:{
type: Object,
default:{}
}
},
{{propsText.seleTime}}
{{propsText.carsStart}}
{{propsText.carEnd}}
{{propsText.Remark}}
props: {
propsText:{
type: Object,
default:{}
}
},父组件:父组件:
import appFooterCar from "../FooterCarList/FooterCarList";
data() {
return {
propsText:{
seleTime:11,
carsStart:22,
carEnd:33,
Remark:44,
confirmationCar:55
}
};
import appFooterCar from "../FooterCarList/FooterCarList";
data() {
return {
propsText:{
seleTime:11,
carsStart:22,
carEnd:33,
Remark:44,
confirmationCar:55
}
};补充知识:vue props 属性值接受多个类型补充知识:补充知识:vue props 属性值接受多个类型我就废话不多说了,大家还是直接看代码吧~
originalData: {
type: Array | Object,
default () {
return []
}
}
}
```
originalData: {
type: Array | Object,
default () {
return []
}
}
}
```以上这篇vue props 一次传多个值实例就是小编分享给大家的全部内容了,希望能给大家一个参考。