|
|
@ -84,7 +84,7 @@ export default {
|
|
|
|
let current = this.current
|
|
|
|
let current = this.current
|
|
|
|
const newCurrent = this.calculatePage(val)
|
|
|
|
const newCurrent = this.calculatePage(val)
|
|
|
|
current = current > newCurrent ? newCurrent : current
|
|
|
|
current = current > newCurrent ? newCurrent : current
|
|
|
|
if (hasProp(this, 'current')) {
|
|
|
|
if (!hasProp(this, 'current')) {
|
|
|
|
newState.stateCurrent = current
|
|
|
|
newState.stateCurrent = current
|
|
|
|
newState.stateCurrentInputValue = current
|
|
|
|
newState.stateCurrentInputValue = current
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -188,7 +188,7 @@ export default {
|
|
|
|
stateCurrentInputValue: page,
|
|
|
|
stateCurrentInputValue: page,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.$emit('input', page)
|
|
|
|
// this.$emit('input', page)
|
|
|
|
this.$emit('change', page, this.statePageSize)
|
|
|
|
this.$emit('change', page, this.statePageSize)
|
|
|
|
return page
|
|
|
|
return page
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -254,7 +254,7 @@ export default {
|
|
|
|
<button
|
|
|
|
<button
|
|
|
|
type='button'
|
|
|
|
type='button'
|
|
|
|
onClick={this.handleGoTO}
|
|
|
|
onClick={this.handleGoTO}
|
|
|
|
onKeyUp={this.handleGoTO}
|
|
|
|
onKeyup={this.handleGoTO}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{locale.jump_to_confirm}
|
|
|
|
{locale.jump_to_confirm}
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
@ -263,7 +263,7 @@ export default {
|
|
|
|
gotoButton = (
|
|
|
|
gotoButton = (
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
onClick={this.handleGoTO}
|
|
|
|
onClick={this.handleGoTO}
|
|
|
|
onKeyUp={this.handleGoTO}
|
|
|
|
onKeyup={this.handleGoTO}
|
|
|
|
>{goButton}</span>
|
|
|
|
>{goButton}</span>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|