Kaynağa Gözat

search增加right插槽

ming 3 yıl önce
ebeveyn
işleme
8d2b9ebdb7

+ 1 - 0
components/fs-dropdown-item/fs-dropdown-item.vue

@@ -62,6 +62,7 @@ const handleToggle = () => {
 		
 		.visible{
 			transform: rotate(180deg);
+			transform-origin: center center;
 		}
 	}
 	&-text{

+ 4 - 2
components/fs-search/fs-search.vue

@@ -1,5 +1,6 @@
 <template>
-	<view class="fs-search-box" :style="{backgroundColor: bgColor}">
+	<view class="fs-search-box" :style="{backgroundColor: bgColor}">
+		<view class="fs-search-box-left"><slot name="left"></slot></view>
 		<view class="fs-input-box" :class="[{round}]" @click="handleLink" :style="{backgroundColor: inputBgColor}">
 			<view class="sub fs-input" v-if="link">{{placeholder}}</view>
 			<input
@@ -30,7 +31,8 @@
 			@click="handleAction" 
 		>
 			{{actionText}}
-		</view>
+		</view>
+		<view class="fs-search-box-right"><slot name="right"></slot></view>
 	</view>
 </template>