chore: add getZIndexStyle util (#8254)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { ref, PropType } from 'vue';
|
||||
|
||||
// Utils
|
||||
import { createNamespace } from '../utils';
|
||||
import { createNamespace, getZIndexStyle } from '../utils';
|
||||
import { BORDER_TOP_BOTTOM } from '../utils/constant';
|
||||
import { callInterceptor, Interceptor } from '../utils/interceptor';
|
||||
|
||||
@@ -69,7 +69,7 @@ export default createComponent({
|
||||
return (
|
||||
<div
|
||||
ref={root}
|
||||
style={{ zIndex: zIndex !== undefined ? +zIndex : undefined }}
|
||||
style={getZIndexStyle(zIndex)}
|
||||
class={[
|
||||
bem({ unfit: isUnfit(), fixed }),
|
||||
{ [BORDER_TOP_BOTTOM]: border },
|
||||
|
||||
Reference in New Issue
Block a user