zhou zhou
10 小时以前 50e95b985a72fcec4a93a2470e9efdfb2620148a
rsf-design/src/components/core/banners/art-basic-banner/index.vue
@@ -46,7 +46,7 @@
          }"
          @click.stop="emit('buttonClick')"
        >
          {{ buttonConfig?.text }}
          {{ buttonConfig?.text || t('components.banner.basic.view') }}
        </div>
      </slot>
@@ -60,7 +60,7 @@
        :src="imageConfig.src"
        :style="{ width: imageConfig.width, bottom: imageConfig.bottom, right: imageConfig.right }"
        loading="lazy"
        alt="背景图片"
        :alt="t('components.banner.basic.backgroundAlt')"
      />
    </div>
  </div>
@@ -68,10 +68,12 @@
<script setup>
  import { onMounted, ref, computed } from 'vue'
  import { useI18n } from 'vue-i18n'
  import { useSettingStore } from '@/store/modules/setting'
  const settingStore = useSettingStore()
  const { isDark } = storeToRefs(settingStore)
  defineOptions({ name: 'ArtBasicBanner' })
  const { t } = useI18n()
  const props = defineProps({
    height: { required: false, default: '11rem' },
    title: { required: false, default: '' },
@@ -84,7 +86,7 @@
      required: false,
      default: () => ({
        show: true,
        text: '查看',
        text: '',
        color: '#fff',
        textColor: '#333',
        radius: '6px'