mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2026-06-05 01:58:11 +08:00
Compare commits
3 Commits
17b566beb9
...
e835808a39
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e835808a39 | ||
|
|
a641b0922d | ||
|
|
9d1c8b2ca9 |
@ -11,7 +11,7 @@ page {
|
||||
|
||||
.icon {
|
||||
margin: 16px 0;
|
||||
color: #323233 !important;
|
||||
color: #323233;
|
||||
}
|
||||
|
||||
.text {
|
||||
|
||||
@ -39,7 +39,7 @@
|
||||
"homepage": "https://github.com/youzan/vant-weapp#readme",
|
||||
"devDependencies": {
|
||||
"@vant/cli": "^3.10.3",
|
||||
"@vant/icons": "1.5.3",
|
||||
"@vant/icons": "^1.6.0",
|
||||
"gulp": "^4.0.2",
|
||||
"gulp-insert": "^0.5.0",
|
||||
"gulp-less": "^4.0.1",
|
||||
|
||||
@ -27,7 +27,7 @@
|
||||
<button
|
||||
wx:for="{{ actions }}"
|
||||
wx:key="index"
|
||||
open-type="{{ item.disabled || item.loading || canIUseGetUserProfile ? '' : item.openType }}"
|
||||
open-type="{{ item.disabled || item.loading || (canIUseGetUserProfile && item.openType === 'getUserInfo') ? '' : item.openType }}"
|
||||
style="{{ item.color ? 'color: ' + item.color : '' }}"
|
||||
class="{{ utils.bem('action-sheet__item', { disabled: item.disabled || item.loading }) }} {{ item.className || '' }}"
|
||||
hover-class="van-action-sheet__item--hover"
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
lang="{{ lang }}"
|
||||
form-type="{{ formType }}"
|
||||
style="{{ computed.rootStyle({ plain, color, customStyle }) }}"
|
||||
open-type="{{ disabled || loading || canIUseGetUserProfile ? '' : openType }}"
|
||||
open-type="{{ disabled || loading || (canIUseGetUserProfile && openType === 'getUserInfo') ? '' : openType }}"
|
||||
business-id="{{ businessId }}"
|
||||
session-from="{{ sessionFrom }}"
|
||||
send-message-title="{{ sendMessageTitle }}"
|
||||
|
||||
@ -185,10 +185,14 @@ VantComponent({
|
||||
this.currentValue = this.currentValue || 0;
|
||||
this.interval = setInterval(() => {
|
||||
if (this.currentValue !== value) {
|
||||
if (this.currentValue < value) {
|
||||
this.currentValue += STEP;
|
||||
if (Math.abs(this.currentValue - value) < STEP) {
|
||||
this.currentValue = value;
|
||||
} else {
|
||||
this.currentValue -= STEP;
|
||||
if (this.currentValue < value) {
|
||||
this.currentValue += STEP;
|
||||
} else {
|
||||
this.currentValue -= STEP;
|
||||
}
|
||||
}
|
||||
this.drawCircle(this.currentValue);
|
||||
} else {
|
||||
|
||||
@ -3055,10 +3055,10 @@
|
||||
eslint-plugin-markdown "^2.0.0"
|
||||
eslint-plugin-vue "^7.1.0"
|
||||
|
||||
"@vant/icons@1.5.3":
|
||||
version "1.5.3"
|
||||
resolved "https://registry.yarnpkg.com/@vant/icons/-/icons-1.5.3.tgz#b7779f67bf608d417a82452fbede406dfa46b439"
|
||||
integrity sha512-OQaJqAWN6quHicWje4buknX9zcDo3UDy3X4nrk/ldnr9Fj8Str4nMtQbMbIrCMtmjQdP2ei769uuY508dudrjA==
|
||||
"@vant/icons@^1.6.0":
|
||||
version "1.6.0"
|
||||
resolved "https://registry.npmjs.org/@vant/icons/-/icons-1.6.0.tgz#3db7eb7f963f51a2a08676720d5af9c4c3512feb"
|
||||
integrity sha512-4Hvq4tl4grCOJLZ0e8ZaivBV8xOcmTPmTT8BDkTrEIKqnDowRFDdsXxcHECzWmbmMx+CYGdngvd2Cq8YR9DfKA==
|
||||
|
||||
"@vant/markdown-loader@^4.1.0":
|
||||
version "4.1.0"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user