-
Notifications
You must be signed in to change notification settings - Fork 838
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/v2'
- Loading branch information
Showing
79 changed files
with
2,802 additions
and
1,035 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,14 @@ https://nutui.jd.com | |
* 联系我们:[email protected] | ||
|
||
|
||
## 使用案例 | ||
|
||
NutUI 已经投入了我们的生产环境中使用,业界也在广泛地使用。 | ||
|
||
<img src="https://raw.githubusercontent.com/richard1015/nutui-user-cases/master/user-cases.jpg" /> | ||
|
||
[征集更多优秀案例](https://github.com/richard1015/nutui-user-cases) | ||
|
||
## 开源协议 | ||
|
||
本项目基于 **MIT** 协议 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,14 @@ Documents:[2.X](https://nutui.jd.com/default.html#/start) | [1.X](https://nutu | |
* Contact us:[email protected] | ||
|
||
|
||
## User Cases | ||
|
||
NutUI has been put into use in our production environment and is widely used in developing countries at the same time. | ||
|
||
<img src="https://raw.githubusercontent.com/richard1015/nutui-user-cases/master/user-cases.jpg" /> | ||
|
||
[Call for more excellent cases](https://github.com/richard1015/nutui-user-cases) | ||
|
||
## Open Source LICENSE | ||
|
||
Based on **MIT** LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,50 @@ | ||
<template> | ||
<div> | ||
<h4>常规按钮组</h4> | ||
<nut-buttongroup> | ||
<nut-button type="light">重置</nut-button> | ||
<nut-button>确定</nut-button> | ||
</nut-buttongroup> | ||
<h4>圆角按钮组</h4> | ||
<nut-buttongroup shape="circle"> | ||
<nut-button type="light">重置</nut-button> | ||
<nut-button>确定</nut-button> | ||
</nut-buttongroup> | ||
<h4>页面底部功能,配合Badge使用</h4> | ||
<nut-buttongroup type="menu"> | ||
<nut-button type="light" icon="action" color="#000">关于</nut-button> | ||
<nut-button type="light" icon="more" color="#000">更多</nut-button> | ||
<nut-button type="light" icon="search" color="#000">关闭</nut-button> | ||
<nut-badge value="2" top="0.5rem" right="2rem"><nut-button type="light" icon="trolley" color="#f00">购物车</nut-button></nut-badge> | ||
<nut-button type="light" icon="tick" color="#000">成功</nut-button> | ||
</nut-buttongroup> | ||
<h4>常规按钮组</h4> | ||
<nut-buttongroup> | ||
<nut-button type="light">重置</nut-button> | ||
<nut-button>确定</nut-button> | ||
</nut-buttongroup> | ||
<h4>圆角按钮组</h4> | ||
<nut-buttongroup shape="circle"> | ||
<nut-button type="light">重置</nut-button> | ||
<nut-button>确定</nut-button> | ||
</nut-buttongroup> | ||
<h4>页面底部功能,配合Badge使用</h4> | ||
<nut-buttongroup type="menu"> | ||
<nut-button type="light" icon="action" color="#000">关于</nut-button> | ||
<nut-button type="light" icon="more" color="#000">更多</nut-button> | ||
<nut-button type="light" icon="search" color="#000">关闭</nut-button> | ||
<nut-badge value="2" top="0.5rem" right="2rem"> | ||
<nut-button type="light" icon="trolley" color="#f00">购物车</nut-button> | ||
</nut-badge> | ||
<nut-button type="light" icon="tick" color="#000">成功</nut-button> | ||
</nut-buttongroup> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
}; | ||
export default {}; | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
/deep/.menu { | ||
.nut-button { | ||
position: relative; | ||
height: $btn-menu-height; | ||
width: 100%; | ||
padding: 0; | ||
font-size: $btn-icon-height-small; | ||
} | ||
.txt-icon { | ||
display: block; | ||
margin: 0 auto; | ||
width: $btn-menu-icon-height; | ||
height: $btn-menu-icon-height; | ||
} | ||
.nut-badge { | ||
flex: 1; | ||
-webkit-flex: 1; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.nut-circleprogress{ | ||
position: relative; | ||
.nut-circleprogress-content { | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%,-50%); | ||
} | ||
} |
Oops, something went wrong.