Skip to content

Commit

Permalink
Merge branch 'v2-dev' of https://github.com/jdf2e/nutui into v2-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
yangkaixuan committed Jul 20, 2020
2 parents 3105e17 + 443baa4 commit 6418075
Show file tree
Hide file tree
Showing 26 changed files with 526 additions and 306 deletions.
71 changes: 0 additions & 71 deletions eslint-config.js

This file was deleted.

11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@
"add": "nutui-cli add",
"test": "cross-env NODE_ENV=test nyc mocha-webpack --webpack-config node_modules/@nutui/cli/dist_cli/webpack/test.config.js --require node_modules/@nutui/cli/dist_cli/test/setup.js src/packages/*/__test__/**.spec.js",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"test:watch": "npm run test --watch",
"prettier:fix": "prettier --write src/**/*.{ts,js,vue,scss}"
"test:watch": "npm run test --watch"
},
"husky": {
"hooks": {
"pre-commit": "node ./scripts/verifymail.js",
"pre-commit": "node ./scripts/verifymail.js && lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"*.{ts,js,vue,scss}": "prettier --write"
},
"repository": {
"type": "git",
"url": "https://github.com/jdf2e/nutui.git"
Expand Down Expand Up @@ -62,14 +64,15 @@
"vue": "^2.6.10"
},
"devDependencies": {
"@nutui/cli": "^0.3.3",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-object-assign": "^7.8.3",
"@nutui/cli": "^0.3.5",
"@typescript-eslint/eslint-plugin": "^2.16.0",
"@typescript-eslint/parser": "^2.16.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"eslint-plugin-import": "^2.20.0",
"eslint-plugin-vue": "^6.1.2",
"lint-staged": "^10.2.11",
"stylelint-config-standard": "^19.0.0"
},
"nyc": {
Expand Down
4 changes: 2 additions & 2 deletions src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,8 @@
{
"version": "1.0.0",
"name": "TabSelect",
"chnName": "分类选择",
"desc": "两级分类选择",
"chnName": "配送时间",
"desc": "两级配送时间",
"type": "component",
"sort": "6",
"showDemo": true,
Expand Down
8 changes: 4 additions & 4 deletions src/packages/actionsheet/actionsheet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,19 @@ export default {
if (value) {
document.body.classList.add('nut-overflow-hidden');
} else {
this.remolveLockScrool();
this.removeLockScrool();
}
}
}
},
deactivated() {
this.remolveLockScroll();
this.removeLockScroll();
},
destroyed() {
this.remolveLockScroll();
this.removeLockScroll();
},
methods: {
remolveLockScroll() {
removeLockScroll() {
document.body.classList.remove('nut-overflow-hidden');
},
isHighlight(item) {
Expand Down
3 changes: 3 additions & 0 deletions src/packages/address/address.vue
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ export default {
calBack.next = this.tabName[this.tabIndex];
calBack.value = item;
this.$emit('onChange', calBack);
this.$emit('on-change', calBack);
} else {
this.handClose();
}
Expand Down Expand Up @@ -308,6 +309,7 @@ export default {
this.$emit('close', res);
} else {
this.$emit('closeMask', { closeWay: this.closeWay });
this.$emit('close-mask', { closeWay: this.closeWay });
}
setTimeout(() => {
Expand Down Expand Up @@ -345,6 +347,7 @@ export default {
this.initAddress();
this.$emit('switchModule', { type: this.showModule });
this.$emit('switch-module', { type: this.showModule });
}
}
};
Expand Down
103 changes: 56 additions & 47 deletions src/packages/countup/countup.scss
Original file line number Diff line number Diff line change
@@ -1,50 +1,59 @@
.nut-countup{
display:inline-block;
width: 100%;
padding:5px;
color: #000;
font-weight:bold;
// text-align:center;
.run-number{
margin: 0 auto;
padding: 0;
overflow: hidden;
height: 50px;
line-height: 50px;
text-align: center;
font-weight: bold;
position: relative;
li {
position: absolute;
transition: none;
// transition: all linear .1s;
// animation: myMove 1s linear infinite;
// animation-fill-mode: forwards;
// @keyframes myMove {
// 0% {
// transform: translateY(0);
// }
// 100% {
// transform: translateY(-50px);
// }
// }
span {
display: block;
}
}
}
.pointstyl {
position: absolute;
.nut-countup {
display: inline-block;
width: 100%;
padding: 5px;
color: #000;
font-weight: bold;
// text-align:center;
.run-number {
margin: 0 auto;
padding: 0;
overflow: hidden;
height: 50px;
line-height: 50px;
text-align: center;
font-weight: bold;
position: relative;
li {
position: absolute;
transition: none;
// transition: all linear .1s;
// animation: myMove 1s linear infinite;
// animation-fill-mode: forwards;
// @keyframes myMove {
// 0% {
// transform: translateY(0);
// }
// 100% {
// transform: translateY(-50px);
// }
// }
span {
display: block;
}
}
}
.pointstyl {
position: absolute;
display: block;
}
.run-number-machine-img {
overflow: hidden;
li {
float: left;
background-position: center 0;
background-repeat: repeat-y;
background-attachment: scroll;
}
.run-number-img {
position: relative;
li {
position: absolute;
transition: none;
display: inline-block;
background-position: 0 0;
background-repeat: no-repeat;
}
}
.run-number-img {
position: relative;
li {
position: absolute;
transition: none;
display: inline-block;
background-position: 0 0;
background-repeat: no-repeat;
}
}
}
}
Loading

0 comments on commit 6418075

Please sign in to comment.