2.0.3 • Published 5 months ago
@wu-component/wu-button v2.0.3
Button 按钮
常用的操作按钮。
基础用法
::: demo
<template>
<div class="button-container" style="display: flex; flex-wrap: wrap; align-items: center;justify-content: space-around;padding: 16px">
<wu-plus-button size="mini" type="primary">primary</wu-plus-button>
<wu-plus-button size="mini" type="success">success</wu-plus-button>
<wu-plus-button size="mini" type="warning">warning</wu-plus-button>
<wu-plus-button size="mini" type="danger">danger</wu-plus-button>
<wu-plus-button size="mini" type="info">info</wu-plus-button>
<wu-plus-button size="mini" type="text">text</wu-plus-button>
</div>
</template>
<script>
</script>
<style>
.button-container wu-plus-button {
margin-top: 8px
}
</style>
:::
禁用状态
::: demo
<template>
<div class="button-container" style="display: flex; align-items: center;justify-content: space-between;padding: 16px">
<wu-plus-button size="mini" type="primary" disabled="true">disabled</wu-plus-button>
</div>
</template>
<script>
</script>
:::
文字按钮
::: demo
<template>
<div class="button-container" style="display: flex; align-items: center;justify-content: space-between;padding: 16px">
<wu-plus-button size="medium" type="text">text</wu-plus-button>
</div>
</template>
<script>
</script>
:::
加载中
::: demo
<template>
<div class="button-container" style="display: flex; align-items: center;justify-content: space-between;padding: 16px">
<wu-plus-button size="mini" type="success" loading="true" id="buttonEvent1">loading</wu-plus-button>
</div>
</template>
<script>
</script>
:::
不同尺寸
::: demo
<template>
<div class="button-container" style="display: flex; align-items: center;justify-content: space-between;padding: 16px">
<wu-plus-button type="primary" size="mini">mini</wu-plus-button>
<wu-plus-button type="primary" size="small">small</wu-plus-button>
<wu-plus-button type="primary" size="medium">medium</wu-plus-button>
</div>
</template>
<script>
</script>
:::
Attributes
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
size | 组件大小 | UISize | medium、small、mini | mini |
type | 按钮类型 | WuButtonType | primary、success、warning、danger、info、text | primary |
plain | 朴素按钮 | Boolean | true、false | false |
round | 是否圆角 | Boolean | true、false | false |
loading | 是否加载中 | Boolean | true、false | false |
disabled | 按钮禁用 | Boolean | true、false | false |
2.0.3
5 months ago
2.0.1
1 year ago
2.0.0
1 year ago
1.11.8
1 year ago
1.11.7
1 year ago
1.11.6
1 year ago
1.11.4
1 year ago
1.11.3
1 year ago
1.11.1
1 year ago
1.11.0
1 year ago
1.10.6
1 year ago
1.10.5
1 year ago
1.10.4
1 year ago
1.10.3
1 year ago
1.10.2
1 year ago
1.10.1
1 year ago
1.10.0
1 year ago
1.9.24
2 years ago
1.9.21
2 years ago
1.9.20
2 years ago
1.9.18
2 years ago
1.9.17
2 years ago
1.9.1
2 years ago
1.8.0
2 years ago
1.7.0
2 years ago
1.6.1
2 years ago
1.6.0
2 years ago
1.5.0
2 years ago
1.4.3
2 years ago
1.4.2
2 years ago
1.4.1
2 years ago
1.4.0
2 years ago
1.0.1
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago