소스 검색

添加一个自定义slot

xiaohaizhao 2 년 전
부모
커밋
da00809e8d
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      colorui/components/cu-custom.vue

+ 1 - 0
colorui/components/cu-custom.vue

@@ -1,6 +1,7 @@
 <template>
 	<view>
 		<view class="cu-custom" :style="[{ height: CustomBar + 'px' }]">
+			<slot name="head"></slot>
 			<view class="cu-bar fixed" :style="style" :class="[bgImage != '' ? 'none-bg text-white bg-img' : '', bgColor]">
 				<view class="action" @tap="BackPage" v-if="isBack">
 					<text class="cuIcon-back"></text>