Skip to content

Commit

Permalink
fix: 🐛move 属性为 false 时,left 和 right 依旧可以展示并拖拽的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjone committed May 22, 2023
1 parent c7d2546 commit 9ebca0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demo/demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ const onClickLink = (link: any | null) => {
};
function onMove(data: any) {
return true;
return data.level !== 0;
}
const onNoDateError = (date: Date) => {
Expand Down
4 changes: 2 additions & 2 deletions src/components/slider/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ onDrag(sliderRef, {
// #region 左滑块移动
const canResizeLeft = computed(() => {
return calcMove(props.resizeLeft);
return canMove.value && calcMove(props.resizeLeft);
});
function onResizeLeftDown() {
handleDisableMove();
Expand All @@ -274,7 +274,7 @@ onDrag(resizeLeftRef, {
// #region 右滑块移动
const canResizeRight = computed(() => {
return calcMove(props.resizeRight);
return canMove.value && calcMove(props.resizeRight);
});
function onResizeRightDown() {
handleDisableMove();
Expand Down

0 comments on commit 9ebca0b

Please sign in to comment.