Skip to content

Commit

Permalink
fix: 移除 可重写 class
Browse files Browse the repository at this point in the history
  • Loading branch information
0x30 committed Jan 5, 2024
1 parent feba152 commit ef9c03e
Showing 1 changed file with 2 additions and 31 deletions.
33 changes: 2 additions & 31 deletions packages/layout/src/components/SidePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,30 +189,6 @@ const Component = defineComponent({
props: {
/** 点击背景视图 */
onClickBack: Function as PropType<() => void>,
/**
* 重写 body class ,例如 bottom css 为
*
* ```css
.body{
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
```
*/
overrideBodyClassName: String,
/**
* 覆盖的 back class name
*/
overrideBackClassName: String,
/**
* 重写 出现动画方法
*/
Expand Down Expand Up @@ -254,13 +230,8 @@ const Component = defineComponent({
useTransitionLeave(getLeaveAnime())

return () => (
<div
class={props.overrideBodyClassName ?? styles[`${props.position}Body`]}
>
<div
class={props.overrideBackClassName ?? styles.back}
onClick={props.onClickBack}
/>
<div class={styles[`${props.position}Body`]}>
<div class={styles.back} onClick={props.onClickBack} />
{cloneSlot(slots.default, { class: styles.main })}
</div>
)
Expand Down

0 comments on commit ef9c03e

Please sign in to comment.