<template>
  <view class="wl_title">
    <view class="left_label">
      <view class="border_left"> </view>
      <view class="label">
        {{ props?.label || '标题' }}
      </view>
    </view>
    <view class="right_value">
      <slot></slot>
    </view>
  </view>
</template>
<script setup lang="ts">
const props = defineProps(['label'])
</script>
<style lang="scss" scoped>
.wl_title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25rpx 0;
  .left_label {
    color: #333333;
    font-weight: 600;
    font-size: 32rpx;
    display: flex;
    align-items: center;
    .border_left {
      background: #ffd415;
      border-radius: 50rpx;
      height: 30rpx;
      width: 8rpx;
    }
    .label {
      padding-left: 20rpx;
    }
  }
}
</style>
