Skip to content
本页目录

Button 按钮

常用的操作按钮。

基础用法

基础的按钮用法。

使用 typeplainroundcircle 属性来定义 Button 的样式。
<template>
  <f-button>默认按钮</f-button>
  <f-button type="primary">主要按钮</f-button>
  <f-button type="success">成功按钮</f-button>
  <f-button type="info">信息按钮</f-button>
  <f-button type="warning">警告按钮</f-button>
  <f-button type="danger">危险按钮</f-button>
</template>

不同尺寸

提供三种不同尺寸的按钮。

<f-button>默认按钮</f-button>
<f-button type="primary">主要按钮</f-button>
<f-button type="success">成功按钮</f-button>
<f-button type="info">信息按钮</f-button>
<f-button type="warning">警告按钮</f-button>
<f-button type="danger">危险按钮</f-button>

加载中

点击按钮进行数据加载操作,在按钮上面显示加载状态。

<f-button>默认按钮</f-button>
<f-button type="primary">主要按钮</f-button>
<f-button type="success">成功按钮</f-button>
<f-button type="info">信息按钮</f-button>
<f-button type="warning">警告按钮</f-button>
<f-button type="danger">危险按钮</f-button>

Attributes

参数说明类型可选值默认值
size尺寸stringlarge / small / minidefault
type类型stringprimary / success / warning / info / danger / textprimary
loading加载中booleanfalse
go element-ui

https://element.eleme.cn/#/zh-CN

在线编辑

慢慢来 是你的跑不掉