Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[comp:button]button components #11

Closed
1 task done
danranVm opened this issue Dec 12, 2020 · 0 comments · Fixed by #12
Closed
1 task done

[comp:button]button components #11

danranVm opened this issue Dec 12, 2020 · 0 comments · Fixed by #12
Milestone

Comments

@danranVm
Copy link
Member

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

What does the proposed API look like?

ix-button

mode 不为 link 时,除以下表格之外还支持原生 button所有属性
modelink 时,除以下表格之外还支持原生 a所有属性

属性 说明 类型 全局配置
mode 设置按钮种类 `'primary' 'default'
danger 设置危险状态 boolean -
ghost 设置幽灵状态 boolean -
disabled 设置禁用状态 boolean -
loading 设置加载中状态 boolean -
size 设置按钮大小 `'large' 'medium'
shape 设置按钮形状 `'circle' 'round'`
block 将按钮宽度调整为其父宽度的选项 boolean -
icon 设置图标类型(loading 状态时无效) string -

ix-button-group

属性 说明 类型 全局配置
mode 设置组内按钮种类, `'primary' 'default'
size 设置组内按钮大小 `'large' 'medium'
shape 设置组内按钮形状 `'circle' 'round'`
danranVm added a commit that referenced this issue Dec 12, 2020
@danranVm danranVm mentioned this issue Dec 12, 2020
95 tasks
@danranVm danranVm added this to the v1.0.0 milestone Dec 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant