Compare commits
No commits in common. '4c91f0f4f7fd52925795e900232bf54e64d94615' and 'ddf6148d1402e3d35c570d8344ef50a646a13e69' have entirely different histories.
4c91f0f4f7
...
ddf6148d14
@ -1,21 +0,0 @@ |
|||||||
import type { CSSProperties } from 'vue' |
|
||||||
import type { ClipBehavior } from '../types' |
|
||||||
|
|
||||||
export function clip(clip: ClipBehavior | undefined): CSSProperties | undefined { |
|
||||||
switch (clip) { |
|
||||||
case 'autoX': |
|
||||||
return { |
|
||||||
overflowX: 'auto', |
|
||||||
overflowY: 'hidden', |
|
||||||
} |
|
||||||
case 'autoY': |
|
||||||
return { |
|
||||||
overflowX: 'hidden', |
|
||||||
overflowY: 'auto', |
|
||||||
} |
|
||||||
default: |
|
||||||
return { |
|
||||||
overflow: clip, |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
Loading…
Reference in new issue