mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-05-31 10:49:15 +08:00
build: compile 1.8.1
This commit is contained in:
parent
41457c899b
commit
abad857155
1
dist/calendar/calendar.wxml
vendored
1
dist/calendar/calendar.wxml
vendored
@ -5,6 +5,7 @@
|
||||
subtitle="{{ subtitle }}"
|
||||
showSubtitle="{{ showSubtitle }}"
|
||||
firstDayOfWeek="{{ firstDayOfWeek }}"
|
||||
bind:click-subtitle="onClickSubtitle"
|
||||
>
|
||||
<slot name="title" slot="title"></slot>
|
||||
</header>
|
||||
|
3
dist/calendar/components/header/index.js
vendored
3
dist/calendar/components/header/index.js
vendored
@ -30,5 +30,8 @@ VantComponent({
|
||||
],
|
||||
});
|
||||
},
|
||||
onClickSubtitle(event) {
|
||||
this.$emit('click-subtitle', event);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
2
dist/calendar/components/header/index.wxml
vendored
2
dist/calendar/components/header/index.wxml
vendored
@ -4,7 +4,7 @@
|
||||
<view class="van-calendar__header-title">{{ title }}</view>
|
||||
</block>
|
||||
|
||||
<view wx:if="{{ showSubtitle }}" class="van-calendar__header-subtitle">
|
||||
<view wx:if="{{ showSubtitle }}" class="van-calendar__header-subtitle" bind:tap="onClickSubtitle">
|
||||
{{ subtitle }}
|
||||
</view>
|
||||
|
||||
|
3
dist/calendar/index.js
vendored
3
dist/calendar/index.js
vendored
@ -339,5 +339,8 @@ VantComponent({
|
||||
this.$emit('confirm', copyDates(this.data.currentDate));
|
||||
});
|
||||
},
|
||||
onClickSubtitle(event) {
|
||||
this.$emit('click-subtitle', event);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
32
dist/circle/index.js
vendored
32
dist/circle/index.js
vendored
@ -152,28 +152,30 @@ VantComponent({
|
||||
this.drawCircle(value);
|
||||
return;
|
||||
}
|
||||
this.clearInterval();
|
||||
this.clearMockInterval();
|
||||
this.currentValue = this.currentValue || 0;
|
||||
this.interval = setInterval(() => {
|
||||
if (this.currentValue !== value) {
|
||||
if (Math.abs(this.currentValue - value) < STEP) {
|
||||
this.currentValue = value;
|
||||
} else {
|
||||
if (this.currentValue < value) {
|
||||
const run = () => {
|
||||
this.interval = setTimeout(() => {
|
||||
if (this.currentValue !== value) {
|
||||
if (Math.abs(this.currentValue - value) < STEP) {
|
||||
this.currentValue = value;
|
||||
} else if (this.currentValue < value) {
|
||||
this.currentValue += STEP;
|
||||
} else {
|
||||
this.currentValue -= STEP;
|
||||
}
|
||||
this.drawCircle(this.currentValue);
|
||||
run();
|
||||
} else {
|
||||
this.clearMockInterval();
|
||||
}
|
||||
this.drawCircle(this.currentValue);
|
||||
} else {
|
||||
this.clearInterval();
|
||||
}
|
||||
}, 1000 / speed);
|
||||
}, 1000 / speed);
|
||||
};
|
||||
run();
|
||||
},
|
||||
clearInterval() {
|
||||
clearMockInterval() {
|
||||
if (this.interval) {
|
||||
clearInterval(this.interval);
|
||||
clearTimeout(this.interval);
|
||||
this.interval = null;
|
||||
}
|
||||
},
|
||||
@ -185,6 +187,6 @@ VantComponent({
|
||||
});
|
||||
},
|
||||
destroyed() {
|
||||
this.clearInterval();
|
||||
this.clearMockInterval();
|
||||
},
|
||||
});
|
||||
|
4
dist/picker/index.wxml
vendored
4
dist/picker/index.wxml
vendored
@ -1,7 +1,7 @@
|
||||
<wxs src="./index.wxs" module="computed" />
|
||||
|
||||
<view class="van-picker custom-class">
|
||||
<include wx:if="{{ toolbarPosition === 'top' }}" src="toolbar.wxml" />
|
||||
<include wx:if="{{ toolbarPosition === 'top' }}" src="./toolbar.wxml" />
|
||||
|
||||
<view wx:if="{{ loading }}" class="van-picker__loading">
|
||||
<loading color="#1989fa"/>
|
||||
@ -33,5 +33,5 @@
|
||||
/>
|
||||
</view>
|
||||
|
||||
<include wx:if="{{ toolbarPosition === 'bottom' }}" src="toolbar.wxml" />
|
||||
<include wx:if="{{ toolbarPosition === 'bottom' }}" src="./toolbar.wxml" />
|
||||
</view>
|
||||
|
2
dist/search/index.js
vendored
2
dist/search/index.js
vendored
@ -74,7 +74,7 @@ VantComponent({
|
||||
onClear(event) {
|
||||
this.$emit('clear', event.detail);
|
||||
},
|
||||
onClickInput: function (event) {
|
||||
onClickInput(event) {
|
||||
this.$emit('click-input', event.detail);
|
||||
},
|
||||
},
|
||||
|
@ -5,6 +5,7 @@
|
||||
subtitle="{{ subtitle }}"
|
||||
showSubtitle="{{ showSubtitle }}"
|
||||
firstDayOfWeek="{{ firstDayOfWeek }}"
|
||||
bind:click-subtitle="onClickSubtitle"
|
||||
>
|
||||
<slot name="title" slot="title"></slot>
|
||||
</header>
|
||||
|
@ -39,5 +39,8 @@ component_1.VantComponent({
|
||||
),
|
||||
});
|
||||
},
|
||||
onClickSubtitle: function (event) {
|
||||
this.$emit('click-subtitle', event);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
@ -4,7 +4,7 @@
|
||||
<view class="van-calendar__header-title">{{ title }}</view>
|
||||
</block>
|
||||
|
||||
<view wx:if="{{ showSubtitle }}" class="van-calendar__header-subtitle">
|
||||
<view wx:if="{{ showSubtitle }}" class="van-calendar__header-subtitle" bind:tap="onClickSubtitle">
|
||||
{{ subtitle }}
|
||||
</view>
|
||||
|
||||
|
@ -375,5 +375,8 @@ component_1.VantComponent({
|
||||
_this.$emit('confirm', utils_1.copyDates(_this.data.currentDate));
|
||||
});
|
||||
},
|
||||
onClickSubtitle: function (event) {
|
||||
this.$emit('click-subtitle', event);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
@ -176,28 +176,30 @@ component_1.VantComponent({
|
||||
this.drawCircle(value);
|
||||
return;
|
||||
}
|
||||
this.clearInterval();
|
||||
this.clearMockInterval();
|
||||
this.currentValue = this.currentValue || 0;
|
||||
this.interval = setInterval(function () {
|
||||
if (_this.currentValue !== value) {
|
||||
if (Math.abs(_this.currentValue - value) < STEP) {
|
||||
_this.currentValue = value;
|
||||
} else {
|
||||
if (_this.currentValue < value) {
|
||||
var run = function () {
|
||||
_this.interval = setTimeout(function () {
|
||||
if (_this.currentValue !== value) {
|
||||
if (Math.abs(_this.currentValue - value) < STEP) {
|
||||
_this.currentValue = value;
|
||||
} else if (_this.currentValue < value) {
|
||||
_this.currentValue += STEP;
|
||||
} else {
|
||||
_this.currentValue -= STEP;
|
||||
}
|
||||
_this.drawCircle(_this.currentValue);
|
||||
run();
|
||||
} else {
|
||||
_this.clearMockInterval();
|
||||
}
|
||||
_this.drawCircle(_this.currentValue);
|
||||
} else {
|
||||
_this.clearInterval();
|
||||
}
|
||||
}, 1000 / speed);
|
||||
}, 1000 / speed);
|
||||
};
|
||||
run();
|
||||
},
|
||||
clearInterval: function () {
|
||||
clearMockInterval: function () {
|
||||
if (this.interval) {
|
||||
clearInterval(this.interval);
|
||||
clearTimeout(this.interval);
|
||||
this.interval = null;
|
||||
}
|
||||
},
|
||||
@ -210,6 +212,6 @@ component_1.VantComponent({
|
||||
});
|
||||
},
|
||||
destroyed: function () {
|
||||
this.clearInterval();
|
||||
this.clearMockInterval();
|
||||
},
|
||||
});
|
||||
|
@ -1,7 +1,7 @@
|
||||
<wxs src="./index.wxs" module="computed" />
|
||||
|
||||
<view class="van-picker custom-class">
|
||||
<include wx:if="{{ toolbarPosition === 'top' }}" src="toolbar.wxml" />
|
||||
<include wx:if="{{ toolbarPosition === 'top' }}" src="./toolbar.wxml" />
|
||||
|
||||
<view wx:if="{{ loading }}" class="van-picker__loading">
|
||||
<loading color="#1989fa"/>
|
||||
@ -33,5 +33,5 @@
|
||||
/>
|
||||
</view>
|
||||
|
||||
<include wx:if="{{ toolbarPosition === 'bottom' }}" src="toolbar.wxml" />
|
||||
<include wx:if="{{ toolbarPosition === 'bottom' }}" src="./toolbar.wxml" />
|
||||
</view>
|
||||
|
Loading…
x
Reference in New Issue
Block a user