Skip to content

Commit d493c7b

Browse files
committed
Merge branch 'v2-dev' of https://github.com/jdf2e/nutui into v2-dev
2 parents 12e0b7a + 486b101 commit d493c7b

25 files changed

+1156
-414
lines changed

CHANGELOG.md

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
## 2.2.6
2+
3+
`2020-06-19`
4+
5+
* :sparkles: feat(CountUp):新增数字滚动组件 @Ymm0008
6+
* :sparkles: upd(LuckDraw):优化抽奖组件,增加单独设置颜色区块、奖品列表 @Ymm0008
7+
* :sparkles: upd(Uploader):优化内部代码 @linrufeng
8+
* :sparkles: upd(LeftSlip):新增禁用属性 @vickyYE
9+
* :sparkles: upd(Popup):z-index层级处理、禁止滑动逻辑优化、测试用例补充 @yangkaixuan
10+
* :sparkles: upd(TabBar):优化默认选中页签激活状态 @zhenyulei
11+
* :sparkles: upd(Tabs):新增滚动居中功能 @zhenyulei
12+
* :bug: fix(Uploader):修复文件上传组件可以调用移动端摄像头 #212 @linrufeng
13+
* :bug: fix(SearchBar):修复 input 边框样式 @yangxiaolu1993
14+
* :bug: fix(TextBox): 修复 输入时 waring @guoxiao158
15+
* :bug: fix(SubSideNavBar):修复 offset 计算错误问题 @szg2008
16+
* :bug: fix(ImagePicker):修复 多张上传触发多次emit的问题 @szg2008
17+
* :bug: fix(Swiper):销毁钩子内计时器清空无效 #262 @richard1015
18+
* :bug: fix(Calendar):增加监听默认值修改功能 @irisSong
19+
* :bug: fix(Switch):新增内嵌文字标签,如ON|OFF或开|关 @zjyau
20+
121
## 2.2.5
222

323
`2020-05-25`

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nutui/nutui",
3-
"version": "2.2.5",
3+
"version": "2.2.6",
44
"description": "一套轻量级移动端Vue组件库",
55
"typings": "dist/types/index.d.ts",
66
"main": "dist/nutui.js",
@@ -48,7 +48,7 @@
4848
"@babel/plugin-transform-runtime": "^7.9.6",
4949
"@commitlint/cli": "^8.0.0",
5050
"@commitlint/config-conventional": "^8.0.0",
51-
"@nutui/cli": "^0.2.1",
51+
"@nutui/cli": "^0.2.2",
5252
"babel-plugin-istanbul": "^6.0.0",
5353
"gsap": "^3.2.6",
5454
"husky": "^3.0.0",
@@ -79,4 +79,4 @@
7979
"instrument": false,
8080
"sourceMap": false
8181
}
82-
}
82+
}

src/config.json

+9
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,15 @@
642642
"sort": "2",
643643
"showDemo": true,
644644
"author": "wangyue217"
645+
},
646+
{
647+
"name": "CountUp",
648+
"type": "component",
649+
"chnName": "数字滚动",
650+
"desc": "用于数据展示",
651+
"sort": "0",
652+
"showDemo": true,
653+
"author": "yumingming"
645654
}
646655
]
647656
}

src/nutui.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ import Address from './packages/address/index.js';
126126
import './packages/address/address.scss';
127127
import Notify from "./packages/notify/index.js";
128128
import "./packages/notify/notify.scss";
129+
import CountUp from "./packages/countup/index.js";
130+
import "./packages/countup/countup.scss";
129131

130132
const packages = {
131133
Cell,
@@ -188,7 +190,8 @@ const packages = {
188190
SideNavBarItem: SideNavBarItem,
189191
Drag: Drag,
190192
Address: Address,
191-
Notify: Notify
193+
Notify: Notify,
194+
CountUp: CountUp
192195
};
193196

194197
const components = {};

src/packages/countup/countup.scss

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
.nut-countup{
2+
display:inline-block;
3+
width: 100%;
4+
padding:5px;
5+
color: #000;
6+
font-weight:bold;
7+
// text-align:center;
8+
.run-number{
9+
margin: 0 auto;
10+
padding: 0;
11+
overflow: hidden;
12+
height: 50px;
13+
line-height: 50px;
14+
text-align: center;
15+
font-weight: bold;
16+
position: relative;
17+
li {
18+
position: absolute;
19+
transition: none;
20+
// transition: all linear .1s;
21+
// animation: myMove 1s linear infinite;
22+
// animation-fill-mode: forwards;
23+
// @keyframes myMove {
24+
// 0% {
25+
// transform: translateY(0);
26+
// }
27+
// 100% {
28+
// transform: translateY(-50px);
29+
// }
30+
// }
31+
span {
32+
display: block;
33+
}
34+
}
35+
}
36+
.pointstyl {
37+
position: absolute;
38+
display: block;
39+
}
40+
.run-number-img {
41+
position: relative;
42+
li {
43+
position: absolute;
44+
transition: none;
45+
display: inline-block;
46+
background-position: 0 0;
47+
background-repeat: no-repeat;
48+
}
49+
}
50+
}

0 commit comments

Comments
 (0)