You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							71 lines
						
					
					
						
							1.2 KiB
						
					
					
				
			
		
		
	
	
							71 lines
						
					
					
						
							1.2 KiB
						
					
					
				<template> | 
						|
  <view class="container"> | 
						|
    <!-- <view class="fit-content"></view> --> | 
						|
    <view class="operation" v-if="isCustom"> | 
						|
      <slot></slot> | 
						|
    </view> | 
						|
    <view v-else> | 
						|
      <view class="operation" v-if="isTab"> | 
						|
        <u--image | 
						|
          src="/static/images/tabbers/logo.png" | 
						|
          width="48rpx" | 
						|
          height="48rpx" | 
						|
          mode="aspectFit" | 
						|
        ></u--image> | 
						|
        <text class="title">{{ title }}</text> | 
						|
      </view> | 
						|
    </view> | 
						|
  </view> | 
						|
</template> | 
						|
 | 
						|
<script> | 
						|
export default { | 
						|
  name: 's-header', | 
						|
  data() { | 
						|
    return {} | 
						|
  }, | 
						|
  props: { | 
						|
    title: String, | 
						|
    isTab: { | 
						|
      type: Boolean, | 
						|
      default: false | 
						|
    }, | 
						|
    isCustom: { | 
						|
      type: Boolean, | 
						|
      default: false | 
						|
    } | 
						|
  }, | 
						|
  methods: { | 
						|
    goback() { | 
						|
      this.$emit('goback') | 
						|
    } | 
						|
  } | 
						|
} | 
						|
</script> | 
						|
 | 
						|
<style lang="scss" scoped> | 
						|
.container { | 
						|
  background-color: #fff; | 
						|
  z-index: 1; | 
						|
  height: 176rpx; | 
						|
  position: relative; | 
						|
  .operation { | 
						|
    position: absolute; | 
						|
    bottom: 14rpx; | 
						|
    padding: 8rpx 24rpx; | 
						|
    display: flex; | 
						|
    flex-flow: row nowrap; | 
						|
    align-items: center; | 
						|
    gap: 8rpx; | 
						|
    .title { | 
						|
      color: #071437; | 
						|
      font-size: 32rpx; | 
						|
      font-weight: bold; | 
						|
    } | 
						|
    .icon-box { | 
						|
      padding: 10rpx; | 
						|
      border-radius: 50%; | 
						|
    } | 
						|
  } | 
						|
} | 
						|
</style>
 | 
						|
 |