个人 UI 组件库
首页
core
vant2
element2
  • 分类
  • 标签
  • 归档
github (opens new window)
gitee (opens new window)

放肆青春

一个前端菜鸟的技术成长之路
首页
core
vant2
element2
  • 分类
  • 标签
  • 归档
github (opens new window)
gitee (opens new window)
  • 开发指南

    • 快速上手
  • 自定义组件

    • button
      • 概述
      • 基础布局
        • 属性
    • tabs
    • video
    • svg
  • core
放肆青春
2021-12-31

button

# button 按钮


# 概述

按钮

# 基础布局




<template>
  <div>
    <rz-button>默认按钮</rz-button>
    <rz-button type="primary">主要按钮</rz-button>
    <rz-button type="success">成功按钮</rz-button>
    <rz-button type="info">信息按钮</rz-button>
    <rz-button type="warning">警告按钮</rz-button>
    <rz-button type="danger">危险按钮</rz-button>
    <rz-button plain>朴素按钮</rz-button>
  </div>
  <br />
  <div>
    <rz-button type="primary" plain>主要按钮</rz-button>
    <rz-button type="success" plain>成功按钮</rz-button>
    <rz-button type="info" plain>信息按钮</rz-button>
    <rz-button type="warning" plain>警告按钮</rz-button>
    <rz-button type="danger" plain>危险按钮</rz-button>
  </div>
  <br />
  <div>
    <rz-button round>圆角按钮</rz-button>
    <rz-button type="primary" round>主要按钮</rz-button>
    <rz-button type="success" round>成功按钮</rz-button>
    <rz-button type="info" round>信息按钮</rz-button>
    <rz-button type="warning" round>警告按钮</rz-button>
    <rz-button type="danger" round>危险按钮</rz-button>
  </div>
  <br />
  <rz-button icon="rz-icon-search" circle></rz-button>
  <rz-button type="primary" icon="rz-icon-edit" circle></rz-button>
  <rz-button type="success" icon="rz-icon-check" circle></rz-button>
  <rz-button type="info" icon="rz-icon-message" circle></rz-button>
  <rz-button type="warning" icon="rz-icon-star-off" circle></rz-button>
  <rz-button type="danger" icon="rz-icon-drzete" circle></rz-button>
</template>

<script>
  export default {
    data() {
      return {};
    },
  };
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Expand Copy Copy

# 属性

参数 说明 类型 可选值 默认值
size 尺寸 string medium / small / mini —
type 类型 string primary / success / warning / danger / info / text —
plain 是否朴素按钮 boolean — false
round 是否圆角按钮 boolean — false
circle 是否圆形按钮 boolean — false
loading 是否加载中状态 boolean — false
disabled 是否禁用状态 boolean — false
icon 图标类名 string — —
autofocus 是否默认聚焦 boolean — false
native-type 原生 type 属性 string button / submit / reset button
更新时间: 1/4/2022, 1:45:26 PM
快速上手
tabs

← 快速上手 tabs→

最近更新
01
快速上手
12-31
02
dialog
12-31
03
address
12-31
更多文章>
Theme by Vdoing | Copyright © 2019-2022 放肆青春
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式