antd-addons
0.0.4 • Public • Published 基于ant-design封装的自由拓展组件
1.Login组件
参数 |
说明 |
类型 |
默认值 |
headerLabel |
登录页header标题 |
string |
无 |
loginLabel |
登录输入框标题 |
string |
无 |
service |
登录调用service服务名 |
string |
无 |
method |
登录调用方法名 |
string |
无 |
copyRight |
登录页脚copyRight |
string |
无 |
logo |
登录页header图标 |
图片 |
无 |
background-img |
需要在css中用id选择器#login制定 |
url |
无 |
2.Header组件
参数 |
说明 |
类型 |
默认值 |
logo |
header图标 |
图片 |
无 |
title |
header标题 |
string |
无 |
headImg |
登录头像 |
图片 |
无 |
service |
修改密码service服务名 |
string |
无 |
method |
修改密码方法名 |
string |
无 |
themeColor |
header主题色 |
string |
#9F8CDE(紫色) |
3.antd:Table组件扩展
参数 |
说明 |
类型 |
默认值 |
selectedIndex |
初始默认选中行 |
number |
无 |
…this.props |
继承了antd table所有属性 |
|
无 |
占位 |
增加了表格选中变色 |
占位 |
无 |
4.antd:Modal组件固定大小
修改Modal自带样式
<style>
{`.ant-modal-body{
overflow:scroll;
height:400px;
}
.ant-table tr {
height:60px;
}`}
</style>
Package Sidebar
Install
Weekly Downloads