<select-db placeholder="价格" unit="万">
<select-db-one :max="50"></select-db-one>
<select-db-one :min="50" :max="70"></select-db-one>
</select-db>
selectDb 组件中上的 unit="万"怎么传递到 selectDbOne 上呢?
1
2642375043 2017-12-28 17:10:04 +08:00
|
2
wxsm 2017-12-28 18:35:14 +08:00
this.$parent.unit
|
3
keenwon 2017-12-29 00:16:19 +08:00
inject/provide
|
4
dangyuluo 2017-12-29 07:23:37 +08:00
Hmm, parent 不是个好的实践
|