Преглед на файлове

添加一个自定义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>