Prechádzať zdrojové kódy

添加一个自定义slot

xiaohaizhao 2 rokov pred
rodič
commit
da00809e8d
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  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>