Vue 中父组件如何获取子组件中input的值,求大神
1个回答
展开全部
<mt-button size="large" type="green" @click="nextstep">下一步</mt-button>
</div>
</mt-content>
</template>
<script>
import MtContent from '../../components/content'
import MtHeader from '../../components/header.vue'
import MtButton from '../../components/button.vue'
import MtField from '../../components/field.vue'
import $ from 'zepto'
export default{
data () {
return{
msg:'hello vue'
}
},
methods: {
nextstep () {
}
},
components: {
MtContent,
MtHeader,
MtButton,
MtField
</div>
</mt-content>
</template>
<script>
import MtContent from '../../components/content'
import MtHeader from '../../components/header.vue'
import MtButton from '../../components/button.vue'
import MtField from '../../components/field.vue'
import $ from 'zepto'
export default{
data () {
return{
msg:'hello vue'
}
},
methods: {
nextstep () {
}
},
components: {
MtContent,
MtHeader,
MtButton,
MtField
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询