This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

修正request参数多一个&的bug;优化日期组件在有滚动条的时候的定位问题

old
宇天 2019-05-09 22:38:13 +08:00
parent a05bdaea41
commit ae25dd5d39
2 changed files with 10 additions and 2 deletions

View File

@ -220,6 +220,7 @@ export default Anot.component('datepicker', {
<dl
class="calendar-box"
:css="{top: top, left: left}"
:if="showCalendar">
<dt class="contrl">
@ -290,6 +291,8 @@ export default Anot.component('datepicker', {
value: '', // 用于显示在输入框里的日期变量
max: { year: 0, month: 0, day: 1 },
min: { year: 0, month: 0, day: 1 },
top: 0,
left: 0,
calendar: {
// list: [1],
// year: '',
@ -367,7 +370,10 @@ export default Anot.component('datepicker', {
return num
},
// 输入框获取焦点时,显示日历
onFocus: function() {
onFocus: function(ev) {
let { top, left } = Anot(ev.target).offset()
this.top = top + 30
this.left = left
this.showCalendar = !0
},
back2today: function() {

View File

@ -230,7 +230,9 @@ class _Request {
// 否则拼接到url上
this.opt.data = Format.param(this.opt.data)
this.opt.url += (/\?/.test(this.opt.url) ? '&' : '?') + this.opt.data
if (this.opt.data) {
this.opt.url += (/\?/.test(this.opt.url) ? '&' : '?') + this.opt.data
}
if (this.opt.cache === false) {
this.opt.url +=