Explorar o código

添加一个自定义slot

xiaohaizhao %!s(int64=2) %!d(string=hai) anos
pai
achega
da00809e8d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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>