opentiny / tiny-vue

TinyVue is an enterprise-class UI component library of OpenTiny community, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.
https://opentiny.design/tiny-vue
MIT License
1.71k stars 267 forks source link

🐛 [Bug]: [Button] 按钮组件的 round 属性失效 #2568

Open smallseapig opened 4 days ago

smallseapig commented 4 days ago

Version

3.19.0

Vue Version

latest

Link to minimal reproduction

<template>
  <tiny-layout>
    <p>基本按钮</p>
    <tiny-row>
      <tiny-button type="primary" :round="false"> 主要按钮 </tiny-button>
      <tiny-button> 次要按钮 </tiny-button>
      <tiny-button type="success" :round="isRound"> 成功按钮 {{ isRound }} </tiny-button>
      <tiny-button type="info" :round="true"> 信息按钮 </tiny-button>
      <tiny-button type="warning"> 警告按钮 </tiny-button>
      <tiny-button type="danger"> 危险按钮 </tiny-button>
    </tiny-row>
    <p>朴素按钮</p>
    <tiny-row>
      <tiny-button type="primary" plain> 主要按钮 </tiny-button>
      <tiny-button plain> 次要按钮 </tiny-button>
      <tiny-button type="success" plain> 成功按钮 </tiny-button>
      <tiny-button type="info" plain> 信息按钮 </tiny-button>
      <tiny-button type="warning" plain> 警告按钮 </tiny-button>
      <tiny-button type="danger" plain> 危险按钮 </tiny-button>
    </tiny-row>
    <tiny-row>
      <tiny-button :icon="IconSearch" circle></tiny-button>
      <tiny-button type="primary" :icon="IconEditor" circle></tiny-button>
      <tiny-button type="success" :icon="IconYes" circle></tiny-button>
      <tiny-button type="info" :icon="IconMail" circle></tiny-button>
      <tiny-button type="warning" :icon="IconStarO" circle></tiny-button>
      <tiny-button type="danger" :icon="IconDeleteL" circle></tiny-button>
    </tiny-row>
  </tiny-layout>
</template>

<script setup>
import { ref } from 'vue'
import { TinyButton, TinyLayout, TinyRow } from '@opentiny/vue'
import { iconDeleteL, iconYes, iconEditor, iconMail, iconStarO, iconSearch } from '@opentiny/vue-icon'

const isRound = ref(false);

const IconDeleteL = iconDeleteL()
const IconYes = iconYes()
const IconEditor = iconEditor()
const IconMail = iconMail()
const IconStarO = iconStarO()
const IconSearch = iconSearch()
</script>

<style scoped>
.tiny-row {
  margin: 20px 0;
}
.tiny-button {
  margin-bottom: 10px;
  margin-left: 0;
  margin-right: 24px;
}
</style>

Step to reproduce

What is expected

What is actually happening

What is your project name

Button组件

Any additional comments (optional)

No response

Issues-translate-bot commented 4 days ago

Bot detected the issue body's language is not English, translate it automatically.


Title: 🐛 [Bug]: [Button] The round attribute of the button component is invalid

smallseapig commented 4 days ago

image