fix: update vue3.0.6 error
parent
483e177e13
commit
3967926110
|
@ -34,8 +34,12 @@ const CalendarMixin = {
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
this.onKeyDown = this.onKeyDown || noop;
|
if (this.onKeyDown === undefined) {
|
||||||
this.onBlur = this.onBlur || noop;
|
this.onKeyDown = noop;
|
||||||
|
}
|
||||||
|
if (this.onBlur === undefined) {
|
||||||
|
this.onBlur = noop;
|
||||||
|
}
|
||||||
const props = this.$props;
|
const props = this.$props;
|
||||||
const sValue = props.value || props.defaultValue || getNowByCurrentStateValue();
|
const sValue = props.value || props.defaultValue || getNowByCurrentStateValue();
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -925,7 +925,7 @@ export default function generateSelector<
|
||||||
|
|
||||||
// We should give focus back to selector if clicked item is not focusable
|
// We should give focus back to selector if clicked item is not focusable
|
||||||
if (popupElement && popupElement.contains(target as HTMLElement)) {
|
if (popupElement && popupElement.contains(target as HTMLElement)) {
|
||||||
const timeoutId = setTimeout(() => {
|
const timeoutId = window.setTimeout(() => {
|
||||||
const index = activeTimeoutIds.indexOf(timeoutId);
|
const index = activeTimeoutIds.indexOf(timeoutId);
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
activeTimeoutIds.splice(index, 1);
|
activeTimeoutIds.splice(index, 1);
|
||||||
|
|
|
@ -27,7 +27,6 @@ export default defineComponent({
|
||||||
canClick: PropTypes.looseBool,
|
canClick: PropTypes.looseBool,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
this.calcStepOffsetWidth = debounce(this.calcStepOffsetWidth, 150);
|
|
||||||
return {
|
return {
|
||||||
flexSupported: true,
|
flexSupported: true,
|
||||||
lastStepOffsetWidth: 0,
|
lastStepOffsetWidth: 0,
|
||||||
|
@ -63,7 +62,7 @@ export default defineComponent({
|
||||||
this.__emit('change', next);
|
this.__emit('change', next);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
calcStepOffsetWidth() {
|
calcStepOffsetWidth: debounce(function() {
|
||||||
if (isFlexSupported()) {
|
if (isFlexSupported()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -87,7 +86,7 @@ export default defineComponent({
|
||||||
this.setState({ lastStepOffsetWidth: offsetWidth });
|
this.setState({ lastStepOffsetWidth: offsetWidth });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
}, 150),
|
||||||
},
|
},
|
||||||
render() {
|
render() {
|
||||||
const {
|
const {
|
||||||
|
|
Loading…
Reference in New Issue