日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

005_Button按钮

發(fā)布時間:2025/5/22 编程问答 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 005_Button按钮 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

1. Button按鈕

1.1. 常用的操作按鈕。

1.2. 按鈕屬性

參數(shù)

說明

類型

可選值

默認(rèn)值

size

尺寸

string

medium / small / mini

type

類型

string

primary / success / warning / danger / info / text

plain

是否樸素按鈕

boolean

false

round

是否圓角按鈕

boolean

false

circle

是否圓形按鈕

boolean

false

loading

是否加載中狀態(tài)

boolean

false

disabled

是否禁用狀態(tài)

boolean

false

icon

圖標(biāo)類名

string

autofocus

是否默認(rèn)聚焦

boolean

false

native-type

原生type屬性

string

button / submit / reset

button

2. Button按鈕例子

2.1. 使用腳手架新建一個名為element-ui-button的前端項目, 同時安裝Element插件。

2.2. 編寫App.vue?

<template><div id="app"><h1>基礎(chǔ)用法</h1><el-row><el-button>默認(rèn)按鈕</el-button><el-button type="primary">主要按鈕</el-button><el-button type="success">成功按鈕</el-button><el-button type="info">信息按鈕</el-button><el-button type="warning">警告按鈕</el-button><el-button type="danger">危險按鈕</el-button></el-row><el-row><el-button plain>樸素按鈕</el-button><el-button type="primary" plain>主要按鈕</el-button><el-button type="success" plain>成功按鈕</el-button><el-button type="info" plain>信息按鈕</el-button><el-button type="warning" plain>警告按鈕</el-button><el-button type="danger" plain>危險按鈕</el-button></el-row><el-row><el-button round>圓角按鈕</el-button><el-button type="primary" round>主要按鈕</el-button><el-button type="success" round>成功按鈕</el-button><el-button type="info" round>信息按鈕</el-button><el-button type="warning" round>警告按鈕</el-button><el-button type="danger" round>危險按鈕</el-button></el-row><el-row><el-button icon="el-icon-search" circle></el-button><el-button type="primary" icon="el-icon-edit" circle></el-button><el-button type="success" icon="el-icon-check" circle></el-button><el-button type="info" icon="el-icon-message" circle></el-button><el-button type="warning" icon="el-icon-star-off" circle></el-button><el-button type="danger" icon="el-icon-delete" circle></el-button></el-row><h1>禁用狀態(tài)</h1><el-row><el-button disabled>默認(rèn)按鈕</el-button><el-button type="primary" disabled>主要按鈕</el-button><el-button type="success" disabled>成功按鈕</el-button><el-button type="info" disabled>信息按鈕</el-button><el-button type="warning" disabled>警告按鈕</el-button><el-button type="danger" disabled>危險按鈕</el-button></el-row><h1>文字按鈕</h1><el-button type="text">文字按鈕</el-button><el-button type="text" disabled>文字按鈕</el-button><h1>圖標(biāo)按鈕</h1><el-button type="primary" icon="el-icon-edit"></el-button><el-button type="primary" icon="el-icon-share"></el-button><el-button type="primary" icon="el-icon-delete"></el-button><el-button type="primary" icon="el-icon-search">搜索</el-button><el-button type="primary">上傳<i class="el-icon-upload el-icon--right"></i></el-button><h1>按鈕組</h1><el-button-group><el-button type="primary" icon="el-icon-arrow-left">上一頁</el-button><el-button type="primary">下一頁<i class="el-icon-arrow-right el-icon--right"></i></el-button></el-button-group><el-button-group><el-button type="primary" icon="el-icon-edit"></el-button><el-button type="primary" icon="el-icon-share"></el-button><el-button type="primary" icon="el-icon-delete"></el-button></el-button-group><h1>加載中</h1><el-button type="primary" loading="true">加載中</el-button><h1>不同尺寸</h1><el-row><el-button>默認(rèn)按鈕</el-button><el-button size="medium">中等按鈕</el-button><el-button size="small">小型按鈕</el-button><el-button size="mini">超小按鈕</el-button></el-row></div> </template><style>.el-row {margin: 10px;} </style>

2.3. 運(yùn)行項目

總結(jié)

以上是生活随笔為你收集整理的005_Button按钮的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。