Skip to content

Commit

Permalink
refactor: popup class
Browse files Browse the repository at this point in the history
  • Loading branch information
wangKBweb committed Apr 5, 2022
1 parent 483e701 commit c3f0aa9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/varlet-ui/src/popup/Popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineComponent, watch, Transition, Teleport } from 'vue'
import { props } from './props'
import { useLock } from '../context/lock'
import { useZIndex } from '../context/zIndex'
import { addRouteListener, useTeleport , createNamespace } from '../utils/components'
import { addRouteListener, useTeleport, createNamespace } from '../utils/components'

import '../styles/common.less'
import './popup.less'
Expand Down Expand Up @@ -43,11 +43,11 @@ export default defineComponent({
addRouteListener(() => props.onRouteChange?.())

const renderOverlay = () => {
const { overlayClass, overlayStyle } = props
const { overlayClass = '', overlayStyle } = props

return (
<div
class={[classes(n('overlay')), overlayClass]}
class={classes(n('overlay'), overlayClass)}
style={{
zIndex: zIndex.value - 1,
...overlayStyle,
Expand Down

0 comments on commit c3f0aa9

Please sign in to comment.