mini-ali-ui-rpx
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -0,1 +1,10 @@ | ||
## 1.1.4 | ||
`2020-08-13` | ||
* **Fixed** | ||
* verify-code 组件初次加载可直接进入倒计时模式 | ||
* swipe-action 可能会露出 1px 的底部按钮颜色 | ||
* Message icon 跳变 ([#36](https://github.com/Alibaba-mp/mini-ali-ui/issues/36)) | ||
* **Feature** | ||
* Tabs 的 plus icon 支持自定义 ([#40](https://github.com/Alibaba-mp/mini-ali-ui/issues/40)) | ||
## 1.1.3 | ||
@@ -2,0 +11,0 @@ `2020-07-30` |
@@ -20,3 +20,6 @@ import fmtEvent from '../_util/fmtEvent'; | ||
data: { | ||
iconType: 'check_' | ||
// message 的 icon 图标样式 | ||
iconType: 'check_', | ||
// message 的 icon 类型(颜色) | ||
iconType_: 'success' | ||
}, | ||
@@ -51,5 +54,7 @@ onInit: function onInit() { | ||
setType: function setType(type) { | ||
var realType = TYPE_MAP[type] || 'check_'; | ||
var realType = TYPE_MAP[type] || 'check_'; // 根据 props 中的 type 值选择 icon 的图标以及颜色 | ||
this.setData({ | ||
iconType: realType | ||
iconType: realType, | ||
iconType_: type | ||
}); | ||
@@ -56,0 +61,0 @@ } |
@@ -47,3 +47,11 @@ import fmtUnit from '../_util/fmtUnit'; | ||
// 通过接收外部传值,动态控制 tab-content 在 swiper 下的高度 | ||
tabContentHeight: '' | ||
tabContentHeight: '', | ||
// plus icon 类型更多的支持 | ||
plusIcon: 'add', | ||
plusIconSize: 16, | ||
plusIconColor: '', | ||
// plus icon 使用 image 的方式 | ||
plusImg: '', | ||
plusImgWidth: '', | ||
plusImgHeight: '' | ||
}, | ||
@@ -50,0 +58,0 @@ data: { |
@@ -53,3 +53,3 @@ import fmtEvent from '../_util/fmtEvent'; | ||
if (this.props.initActive) { | ||
this.onTapSend(); | ||
this.noSendCountDown(); | ||
} else { | ||
@@ -123,4 +123,33 @@ this.setData({ | ||
} | ||
}, | ||
noSendCountDown: function noSendCountDown() { | ||
var _this2 = this; | ||
var countDown = this.props.countDown; | ||
if (this.data._actionActive) { | ||
this.setData({ | ||
_actionActive: false | ||
}); | ||
this._timeout = setInterval(function () { | ||
var subOne = _this2.data._countDown - 1; | ||
if (subOne <= 0) { | ||
clearInterval(_this2._timeout); | ||
_this2.setData({ | ||
_actionActive: true, | ||
resend: true, | ||
_countDown: countDown, | ||
actedBefore: true | ||
}); | ||
} else { | ||
_this2.setData({ | ||
_countDown: subOne | ||
}); | ||
} | ||
}, 1000); | ||
} | ||
} | ||
} | ||
}); |
@@ -1,1 +0,1 @@ | ||
{"name":"mini-ali-ui-rpx","version":"1.1.3","description":"小程序版AntUI rpx 版本","repository":{"type":"git","url":"git@github.com:Alibaba-mp/mini-ali-ui.git"},"files":["es"],"keywords":["antui","mini-program","mini-ali-ui","ali-ui"],"license":"MIT","devDependencies":{"@babel/core":"^7.6.4","@babel/plugin-syntax-dynamic-import":"^7.0.0","@babel/preset-env":"^7.6.3","@babel/preset-typescript":"^7.6.0","@typescript-eslint/parser":"^2.17.0","alipay-style":"^0.1.0","eslint":"^5.16.0","eslint-config-ali":"^3.1.0","eslint-plugin-import":"^2.11.0","eslint-plugin-typescript":"^0.14.0","gulp":"^4.0.0","gulp-babel":"^8.0.0","gulp-clean-css":"^4.0.0","gulp-if":"^2.0.2","gulp-inject-envs":"^1.1.1","gulp-less":"^4.0.1","gulp-rename":"^1.2.3","lint-staged":"^8.2.0","mini-types":"^0.0.1","pre-commit":"^1.2.2","stylelint":"^10.1.0","stylelint-config-standard":"^18.2.0","typescript":"^3.6.4"},"scripts":{"lint-staged":"lint-staged","build":"yarn && NODE_ENV=production node scripts/compiler.js","pub":"npm run build && node scripts/pub.js","dev":"yarn && node scripts/compiler.js","build:rpx":"yarn && NODE_ENV=production node scripts/compiler.js --rpx","pub:rpx":"npm run build:rpx && node scripts/pub.js --rpx","dev:rpx":"yarn && node scripts/compiler.js --rpx"},"pre-commit":["lint-staged"],"lint-staged":{"*.ts":["eslint --ext .ts","git add"],"*.js":["eslint","git add"],"*.less":["stylelint --syntax less"]}} | ||
{"name":"mini-ali-ui-rpx","version":"1.1.4","description":"小程序版AntUI rpx 版本","repository":{"type":"git","url":"git@github.com:Alibaba-mp/mini-ali-ui.git"},"files":["es"],"keywords":["antui","mini-program","mini-ali-ui","ali-ui"],"license":"MIT","devDependencies":{"@babel/core":"^7.6.4","@babel/plugin-syntax-dynamic-import":"^7.0.0","@babel/preset-env":"^7.6.3","@babel/preset-typescript":"^7.6.0","@typescript-eslint/parser":"^2.17.0","alipay-style":"^0.1.0","eslint":"^5.16.0","eslint-config-ali":"^3.1.0","eslint-plugin-import":"^2.11.0","eslint-plugin-typescript":"^0.14.0","gulp":"^4.0.0","gulp-babel":"^8.0.0","gulp-clean-css":"^4.0.0","gulp-if":"^2.0.2","gulp-inject-envs":"^1.1.1","gulp-less":"^4.0.1","gulp-rename":"^1.2.3","lint-staged":"^8.2.0","mini-types":"^0.0.1","pre-commit":"^1.2.2","stylelint":"^10.1.0","stylelint-config-standard":"^18.2.0","typescript":"^3.6.4"},"scripts":{"lint-staged":"lint-staged","build":"yarn && NODE_ENV=production node scripts/compiler.js","pub":"npm run build && node scripts/pub.js","dev":"yarn && node scripts/compiler.js","build:rpx":"yarn && NODE_ENV=production node scripts/compiler.js --rpx","pub:rpx":"npm run build:rpx && node scripts/pub.js --rpx","dev:rpx":"yarn && node scripts/compiler.js --rpx"},"pre-commit":["lint-staged"],"lint-staged":{"*.ts":["eslint --ext .ts","git add"],"*.js":["eslint","git add"],"*.less":["stylelint --syntax less"]}} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
329175
3856