Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 committed Jan 28, 2025
1 parent 66e84c0 commit 947ae6a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 31 deletions.
32 changes: 8 additions & 24 deletions packages/components/pagination/pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,21 +272,13 @@ export default defineComponent({
)}
{/* 首页按钮 */}
{props.showFirstAndLastPageBtn ? (
<div
class={CLASS_MAP.preBtnClass.value}
onClick={() => toPage(1)}
disabled={props.disabled || props.current === min}
>
<div class={CLASS_MAP.preBtnClass.value} onClick={() => toPage(1)}>
<PageFirstIcon />
</div>
) : null}
{/* 向前按钮 */}
{props.showPreviousAndNextBtn ? (
<div
class={CLASS_MAP.preBtnClass.value}
onClick={() => handlePageChange('prevPage')}
disabled={disabled || innerCurrent.value === min}
>
<div class={CLASS_MAP.preBtnClass.value} onClick={() => handlePageChange('prevPage')}>
<ChevronLeftIcon />
</div>
) : null}
Expand All @@ -302,8 +294,8 @@ export default defineComponent({
<li
class={CLASS_MAP.btnMoreClass.value}
onClick={() => handlePageChange('prevMorePage')}
onMouseOver={() => (prevMore.value = true)}
onMouseOut={() => (prevMore.value = false)}
onMouseover={() => (prevMore.value = true)}
onMouseout={() => (prevMore.value = false)}
>
{prevMore.value ? <ChevronLeftDoubleIcon /> : <EllipsisIcon />}
</li>
Expand All @@ -317,8 +309,8 @@ export default defineComponent({
<li
class={CLASS_MAP.btnMoreClass.value}
onClick={() => handlePageChange('nextMorePage')}
onMouseOver={() => (nextMore.value = true)}
onMouseOut={() => (nextMore.value = false)}
onMouseover={() => (nextMore.value = true)}
onMouseout={() => (nextMore.value = false)}
>
{nextMore.value ? <ChevronRightDoubleIcon /> : <EllipsisIcon />}
</li>
Expand All @@ -334,21 +326,13 @@ export default defineComponent({
{props.theme === 'simple' && Jumper}
{/* 向后按钮 */}
{props.showPreviousAndNextBtn ? (
<div
class={CLASS_MAP.nextBtnClass.value}
onClick={() => handlePageChange('nextPage')}
disabled={disabled || innerCurrent.value === pageCount.value}
>
<div class={CLASS_MAP.nextBtnClass.value} onClick={() => handlePageChange('nextPage')}>
<ChevronRightIcon />
</div>
) : null}
{/* 尾页按钮 */}
{props.showFirstAndLastPageBtn ? (
<div
class={CLASS_MAP.nextBtnClass.value}
onClick={() => toPage(pageCount.value)}
disabled={disabled || innerCurrent.value === pageCount.value}
>
<div class={CLASS_MAP.nextBtnClass.value} onClick={() => toPage(pageCount.value)}>
<PageLastIcon />
</div>
) : null}
Expand Down
2 changes: 1 addition & 1 deletion packages/components/popup/popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ export default defineComponent({
class={[prefixCls.value, props.overlayClassName]}
ref={(ref: HTMLElement) => (popperEl.value = ref)}
style={[{ zIndex: props.zIndex }, getOverlayStyle(), hidePopup && { visibility: 'hidden' }]}
vShow={visible.value}
v-show={visible.value}
onClick={onOverlayClick}
onMouseenter={onMouseenter}
onMouseleave={onMouseLeave}
Expand Down
11 changes: 5 additions & 6 deletions packages/components/slider/slider-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,12 @@ export default defineComponent({
style={wrapperStyle.value}
tabindex="0"
show-tooltip={showTooltip.value}
disabled={parentProps.disabled}
onmouseenter={handleMouseEnter}
onmouseleave={handleMouseLeave}
onmousedown={onButtonDown}
onMouseenter={handleMouseEnter}
onMouseleave={handleMouseLeave}
onMousedown={onButtonDown}
onTouchstart={onButtonDown}
onfocus={handleMouseEnter}
onblur={handleMouseLeave}
onFocus={handleMouseEnter}
onBlur={handleMouseLeave}
onKeydown={onNativeKeyDown}
>
{/* hide tooltip with `hideEmptyPopup`, empty content won't show */}
Expand Down

0 comments on commit 947ae6a

Please sign in to comment.