Kaynağa Gözat

empty组件增加imageWidth属性

ming 3 yıl önce
ebeveyn
işleme
cdd8f7a199

+ 5 - 1
components/fs-empty/fs-empty.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="fs-empty-box" :style="{padding: padding}">
-		<image :src="src" mode="widthFix" style="width: 400rpx;"></image>
+		<image :src="src" mode="widthFix" :style="{width: imageWidth}"></image>
 		<view class="content">{{text}}</view>
 	</view>
 </template>
@@ -20,6 +20,10 @@ const props = defineProps({
 	padding: {
 		type: String,
 		default: '200rpx 30rpx'
+	},
+	imageWidth: {
+		type: String,
+		default: '400rpx'
 	}
 })
 </script>

+ 1 - 1
components/fs-notice-bar/fs-notice-bar.vue

@@ -16,7 +16,7 @@
 			v-if="showClose"
 			class="fs-notice-bar-close"
 			:color="color"
-			type="icon-error"
+			type="icon-close-circle"
 			@click="handleClose">
 		</fs-icon>
 	</view>