소스 검색

添加插槽

wkw 4 일 전
부모
커밋
213a4e6bd7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      components/nav-bar/index.vue

+ 1 - 1
components/nav-bar/index.vue

@@ -7,7 +7,7 @@
       {{ title }}
     </view>
 	<view class="go-back">
-	 
+		<slot name="right"></slot>
 	</view>
   </view>
 </template>