@@ -177,23 +177,24 @@ function changePageSizeStyle(e: Event) {
177
177
target .style .borderColor = ' '
178
178
}
179
179
else {
180
- target .style .borderColor = ' oklch( var(--in) )'
180
+ target .style .borderColor = ' var(--sys-primary )'
181
181
arrowEl .style .transform = ' rotate(180deg)'
182
182
}
183
183
}
184
184
185
185
function handleJump(e : Event ) {
186
186
const value = Number ((e .target as HTMLInputElement ).value )
187
187
const total = getTotalPage ()
188
- if (! value ) return
188
+ if (! value )
189
+ return
189
190
let jumpVal = 1
190
- if (value > 0 && value < total ) {
191
- jumpVal = value
191
+ if (value > 0 && value < total ) {
192
+ jumpVal = value
192
193
}
193
- else if (value >= total ){
194
+ else if (value >= total ) {
194
195
jumpVal = total
195
196
}
196
- else if (value < 1 ) {
197
+ else if (value < 1 ) {
197
198
jumpVal = 1
198
199
}
199
200
setCurrentPage (jumpVal )
@@ -216,7 +217,7 @@ function handleJump(e: Event) {
216
217
<button
217
218
v-for =" page in getShowPages()"
218
219
:key =" page"
219
- :class =" `flex justify-center px-3 ml-2 py-1 w-[30px] h-[30px] rounded transition-all border-none ${page === getCurrentPage() ? 'text-[oklch( var(--in) )]' : ''}`"
220
+ :class =" `flex justify-center px-3 ml-2 py-1 w-[30px] h-[30px] rounded transition-all border-none ${page === getCurrentPage() ? 'text-[var(--sys-primary )]' : ''}`"
220
221
:disabled =" page === getCurrentPage()"
221
222
@click =" setCurrentPage(page)"
222
223
>
@@ -227,7 +228,7 @@ function handleJump(e: Event) {
227
228
...
228
229
</div >
229
230
<button
230
- :class =" `flex justify-center px-3 ml-2 py-1 w-[30px] h-[30px] rounded transition-all border-none ${getTotalPage() === getCurrentPage() ? 'text-[oklch( var(--in) )]' : ''}`"
231
+ :class =" `flex justify-center px-3 ml-2 py-1 w-[30px] h-[30px] rounded transition-all border-none ${getTotalPage() === getCurrentPage() ? 'text-[var(--sys-primary )]' : ''}`"
231
232
@click =" setCurrentPage(getTotalPage())"
232
233
>
233
234
{{ getTotalPage() }}
@@ -239,13 +240,13 @@ function handleJump(e: Event) {
239
240
<button v-if =" getCurrentPage() < getTotalPage() - 1" class =" iw-btn iw-btn-ghost px-1 ml-1 iw-btn-xs" @click =" setCurrentPage(getTotalPage())" >
240
241
<i :class =" iconSvg.LAST" />
241
242
</button >
242
- <span class =" mx-2" >{{ $t('function.pagination.jump')}}</span >
243
- <input type =" number" class =" iw-input iw-input-bordered iw-input-xs rounded-sm w-10" :value =" getCurrentPage()" @keyup.enter =" handleJump" @blur =" handleJump" / >
243
+ <span class =" mx-2" >{{ $t('function.pagination.jump') }}</span >
244
+ <input type =" number" class =" iw-input iw-input-bordered iw-input-xs rounded-sm w-10" :value =" getCurrentPage()" @keyup.enter =" handleJump" @blur =" handleJump" >
244
245
<MenuComp ref =" fetchNumberSelectCompRef" >
245
246
<div
246
247
v-for =" number in getActualSlice().fetchNumbers" :key =" number"
247
248
class =" p-2 text-center transition-all cursor-pointer rounded hover:bg-gray-100"
248
- :class =" `${number === getActualSlice().fetchNumber ? 'text-[oklch( var(--in) )]' : ''}`"
249
+ :class =" `${number === getActualSlice().fetchNumber ? 'text-[var(--sys-primary )]' : ''}`"
249
250
@click =" setFetchNumber(number)"
250
251
>
251
252
{{ $t('function.pagination.pageSize', { number }) }}
0 commit comments