Skip to content

Commit c7a879d

Browse files
committed
Merge remote-tracking branch 'origin/v2'
2 parents 58e1eec + cac5232 commit c7a879d

File tree

34 files changed

+994
-628
lines changed

34 files changed

+994
-628
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ assignees: ''
3131
## 相关环境信息
3232
- **操作系统**
3333
- **Node 版本**
34-
- **NutUI 版本**
34+
- **NutUI 版本** @nutui/nutui@2.x.x or @nutui/nutui-jdl@1.x.x
3535
- **Vue 版本**
3636
- **引用方式**: CDN / NPM ?

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
## 2.2.9
2+
3+
`2020-08-19`
4+
5+
* :sparkles: upd(Tab):title支持slot和badge #307 @weiquanju
6+
* :sparkles: upd(Popup):新增组合弹框 @yangkaixuan
7+
* :bug: fix(Countup):样式修复 @Ymm0008
8+
* :bug: fix(Switch):修复 demo 文字不居中问题 @szg2008
9+
* :bug: fix(Range):区间选择器滑动异常 @undo03
10+
* :bug: fix(Picker):更新 demo 和 doc 文档 @irisSong
11+
* :bug: fix(Toast):props 新增 coverClass、coverStyle @yangkaixuan
12+
* :bug: fix(Swiper):销毁钩子内计时器清空无效 #262 @richard1015
13+
* :bug: fix(TextBox): 修复 demo 示例问题 @guoxiao158
14+
* :bug: fix(Signature): 修复的leave事件 @guoxiao158
15+
* :bug: fix(Stepper):修复 demo 加减精度问题 @layman666
16+
* :bug: fix(Cell):修复 demo 示例头像不居中问题 #295 @zhenyulei
17+
* :zap: doc:ActionSheet、start article 文档修改 @richard1015 @weiquanju
18+
119
## 2.2.8
220

321
`2020-07-28`

docs/design.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
<ul class="article">
1010
<li>
1111

12+
#### [NutUI 落地实践-让组件库服务慧采协同采购业务](https://jelly.jd.com/article/5f30a8ca645f82014b842b81)
13+
<img width="300" src="https://img13.360buyimg.com/ling/jfs/t1/119128/31/14648/534724/5f30b5c3E97731164/b21b7e1e705dd451.png" />
14+
</li>
15+
<li>
16+
1217
#### [NutUI 实战--持续升级企业业务之福礼](https://jelly.jd.com/article/5f10308affb8ec014f4f326a)
1318
<img width="300" src="https://img30.360buyimg.com/ling/jfs/t1/112680/27/12443/129918/5f10250aEe0c7f88c/8a1c85b3868cf4be.jpg" />
1419
</li>
@@ -69,3 +74,17 @@
6974
<img width="300" src="https://img20.360buyimg.com/ling/jfs/t1/19888/36/7120/143703/5c662dcaE11bb07d2/d0f2315dd7228b08.jpg" />
7075
</li>
7176
</ul>
77+
78+
# 社区文章
79+
80+
#### [NutUI - 由京东出品,适合快速开发商城类h5、小程序的移动端 UI 组件库](https://zhuanlan.zhihu.com/p/161724686)
81+
82+
#### [Vue 组件库工程探索与实践——按需加载篇](https://www.jianshu.com/p/a07b1f699c0e)
83+
84+
#### [读京东 NutUI 框架总结(1)](https://www.jianshu.com/p/a07b1f699c0e)
85+
86+
#### [Vue 使用 Vant 实现 Tab 切换,使用 NutUI 实现上拉加载下拉刷新](https://baijiahao.baidu.com/s?id=1666288392408654024&wfr=spider&for=pc)
87+
88+
#### [Vue 引入 NutUI](https://www.cnblogs.com/fqh123/p/12066828.html)
89+
90+
#### [NutUI 上拉刷新下拉加载的使用](https://www.cnblogs.com/fqh123/p/12152981.html)

docs/start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ npm i @nutui/babel-plugin-separate-import -D
157157
{
158158
"plugins": [
159159
["@nutui/babel-plugin-separate-import", {
160-
"style": "css"
160+
"style": "scss"
161161
}]
162162
]
163163
}
@@ -173,7 +173,7 @@ import { Dialog,Picker } from '@nutui/nutui';
173173
Dialog.install(Vue);
174174
Picker.install(Vue);
175175
```
176-
如果需要按需加载 scss 文件(如需要自定义主题)时,除了需要把 style 选项值设为为 **scss** 外,还需要修改 webpack 配置文件的 sass-loader 配置,如下所示:
176+
如果需要按需加载 scss 文件(如需要自定义主题)时,除了需要把 style 选项值设为 **scss** 外,还需要修改 webpack 配置文件的 sass-loader 配置,如下所示:
177177

178178
``` bash
179179
{

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nutui/nutui",
3-
"version": "2.2.8",
3+
"version": "2.2.9",
44
"description": "一套轻量级移动端Vue组件库",
55
"typings": "dist/types/index.d.ts",
66
"main": "dist/nutui.js",
@@ -56,7 +56,6 @@
5656
"babel-plugin-istanbul": "^6.0.0",
5757
"gsap": "^3.2.6",
5858
"hammerjs": "^2.0.8",
59-
"husky": "^3.0.0",
6059
"vue-lazyload": "^1.3.3",
6160
"vue-qr": "^2.2.1"
6261
},
@@ -66,13 +65,14 @@
6665
"devDependencies": {
6766
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
6867
"@babel/plugin-transform-object-assign": "^7.8.3",
69-
"@nutui/cli": "^0.3.6",
68+
"@nutui/cli": "^0.3.8",
7069
"@typescript-eslint/eslint-plugin": "^2.16.0",
7170
"@typescript-eslint/parser": "^2.16.0",
7271
"babel-plugin-transform-object-rest-spread": "^6.26.0",
7372
"eslint-plugin-import": "^2.20.0",
7473
"eslint-plugin-vue": "^6.1.2",
7574
"lint-staged": "^10.2.11",
75+
"husky": "^3.0.0",
7676
"stylelint-config-standard": "^19.0.0"
7777
},
7878
"nyc": {

src/assets/img/QQ-friends-icon.png

8.83 KB
Loading
12.1 KB
Loading

src/assets/img/wechat-icon.png

10.3 KB
Loading

src/packages/actionsheet/doc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export default {
189189
chooseTagValue="确定"
190190
cancelTxt="取消"
191191
@close="switchActionSheet"
192-
@choos="choose"
192+
@choose="choose"
193193
>
194194
<span slot="title"><label>确定删除吗?</label></span>
195195
<span slot="sub-title">删除之后不能,描述信息,删除之后不能,描述信息</span>

src/packages/address/doc.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Address 地址选择
22

3+
> 按需加载请加载对应依赖组件 Icon Popup
4+
35
## 选择自定义地址
46

57
```html

src/packages/cell/demo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<nut-icon type="tick" slot="icon" size="15px" color="#848484"></nut-icon>
1616
</nut-cell>
1717
<nut-cell :show-icon="true" title="我是标题" sub-title="我是副标题" desc="展示默认ICON">
18-
<div slot="avatar"><nut-avatar></nut-avatar></div>
18+
<nut-avatar slot="avatar"></nut-avatar>
1919
</nut-cell>
2020
</div>
2121
</div>

src/packages/countup/countup.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@
99
margin: 0 auto;
1010
padding: 0;
1111
overflow: hidden;
12-
height: 50px;
13-
line-height: 50px;
12+
// height: 50px;
13+
// line-height: 50px;
1414
text-align: center;
1515
font-weight: bold;
1616
position: relative;
1717
li {
1818
position: absolute;
1919
transition: none;
20+
list-style: none;
2021
// transition: all linear .1s;
2122
// animation: myMove 1s linear infinite;
2223
// animation-fill-mode: forwards;

src/packages/countup/countup.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
</template>
5050
</template>
5151
<template v-else>
52-
<ul v-if="scrolling" class="run-number" :style="{ height: numHeight + 'px' }">
52+
<ul v-if="scrolling" class="run-number" :style="{ height: numHeight + 'px', lineHeight: numHeight + 'px' }">
5353
<li
5454
ref="numberItem"
5555
v-for="(val, index) of num_total_len"

src/packages/countup/demo.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
>
3434
</nut-countup>
3535
<nut-button @click="startRole" :disabled="startFlag">抽奖</nut-button>
36-
<nut-button @click="startRole2" :disabled="startFlag2">不中奖</nut-button>
36+
<nut-button @click="startRole2" :disabled="startFlag">不中奖</nut-button>
3737
</div>
3838
</div>
3939
</template>
@@ -70,15 +70,15 @@ export default {
7070
startRole2() {
7171
this.prizeLevel = -1;
7272
console.log(this.prizeLevel, '不中奖');
73-
this.startFlag2 = true;
73+
this.startFlag = true;
7474
setTimeout(() => {
7575
this.$refs['countup-machine'].machineLuck();
7676
}, 500);
7777
},
7878
scrollAniEnd(val) {
7979
this.$toast.text(val ? '恭喜中奖!!!' : '很遗憾!没有中奖');
8080
setTimeout(() => {
81-
val ? (this.startFlag = false) : (this.startFlag2 = false);
81+
this.startFlag = false;
8282
}, 300);
8383
}
8484
},

0 commit comments

Comments
 (0)