上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 29 下一页
摘要: 父组件 : <template> <div class="app"> <!-- 1.内容是button --> <show-message title="哈哈哈"> <button>我是按钮元素</button> </show-message> <!-- 2.内容是超链接 --> <show-mes 阅读全文
posted @ 2022-08-22 14:24 杨建鑫 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 父组件 : <template> <div class="app"> <h2>当前计数: {{ counter }}</h2> <!-- 1.自定义add-counter, 并且监听内部的add事件 --> <add-counter @add="addBtnClick"></add-counter> 阅读全文
posted @ 2022-08-22 14:20 杨建鑫 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 父组件 : <template> <div class="app"> <h2>当前计数: {{ counter }}</h2> <!-- 并且监听内部的sub事件 --> <sub-counter @sub="subBtnClick"></sub-counter> </div> </template 阅读全文
posted @ 2022-08-22 14:17 杨建鑫 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 父组件 : <template> <!-- 如果当前的属性是一个非prop的attribute, 那么该属性会默认添加到子组件的根元素上 --> <show-info name="why" :age="18" :height="1.88" address="广州市" abc="cba" class= 阅读全文
posted @ 2022-08-22 12:01 杨建鑫 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 父组件 : <template> <!-- 1.展示why的个人信息 --> <show-info name="why" :age="18" :height="1.88" /> </template> <script> import ShowInfo from './ShowInfo.vue' ex 阅读全文
posted @ 2022-08-22 11:46 杨建鑫 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 父组件 : <template> <!-- 1.展示why的个人信息 --> <show-info name="why" :age="18" :height="1.88" address="广州市" abc="cba" class="active" /> </template> <script> i 阅读全文
posted @ 2022-08-22 11:37 杨建鑫 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-08-19 16:07 杨建鑫 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-08-19 11:57 杨建鑫 阅读(5) 评论(0) 推荐(0) 编辑
摘要: <body> <div id="app"> <home-nav></home-nav> <product-item></product-item> <product-item></product-item> <product-item></product-item> </div> <template 阅读全文
posted @ 2022-08-17 14:53 杨建鑫 阅读(17) 评论(0) 推荐(0) 编辑
摘要: <body> <div id="app"> <!-- <home-nav></home-nav> --> <HomeNav></HomeNav> <home-nav></home-nav> <product-item></product-item> <product-item></product-i 阅读全文
posted @ 2022-08-17 14:51 杨建鑫 阅读(17) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 29 下一页