zoukankan      html  css  js  c++  java
  • antd button

    引用 :import { Button } from 'antd';

    1 <Button 
      type = "primary" //按钮样式颜色
      shape = "circle"  //按钮圆角(默认为方形)
      icon = "search"    //加图标 ,string (search : 搜索 ,download : 下载 ),也可以直接插入Icon 标签
      size = "large"    //按钮大小,string 默认 middle
      
    loading        //加载状态 ,布尔值 ,默认false
      block          //将宽度设为父元素的宽度 ,布尔值 ,默认false
      disabled         //按钮失效,布尔值(默认false)
      ghost          //按钮背景透明,一般用在父元素有背景色,按钮为白色情况下 ,布尔值 (默认值false)
      href = "baidu.com"   //设置此属性将按钮转换为a标签 ,string
      htmlType = "button"  //按钮原生type属性 ,string
      target = "_blank"    //需要设置href属性,具有超链接target属性
      onClick ={this.onclick}  //点击事件,需要注意this指向

     >
      按钮讲解
     </Button>

    1. 可以直接插入Icon标签

    <Button>按钮<Icon type="team"/></Button>

    2. type 值包括 : primary(蓝色) ,dashed(虚线),danger(红色),不写type情况下为白色背景,黑字,边框

  • 相关阅读:
    HDU-1272-小希的迷宫(并查集)
    HDU-1084-What Is Your Grade?
    一个好的函数(gcd)求最小公约数
    HDU-1228-A + B
    HDU-1029-Ignatius and the Princess IV
    自控力》读后感·一
    HDU-2058-The sum problem(数学题技巧型)
    HDU-1430-素数回文
    sftp
    802. 区间和
  • 原文地址:https://www.cnblogs.com/xiaoxinzi/p/9685618.html
Copyright © 2011-2022 走看看