mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 19:24:16 +00:00
chore: add getZIndexStyle util (#8254)
This commit is contained in:
@@ -85,19 +85,19 @@ export default createComponent({
|
||||
|
||||
linkChildren({ props });
|
||||
|
||||
const sidebarStyle = computed(() => {
|
||||
const sidebarStyle = computed<CSSProperties | undefined>(() => {
|
||||
if (isDef(props.zIndex)) {
|
||||
return {
|
||||
zIndex: +props.zIndex + 1,
|
||||
} as CSSProperties;
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
const highlightStyle = computed(() => {
|
||||
const highlightStyle = computed<CSSProperties | undefined>(() => {
|
||||
if (props.highlightColor) {
|
||||
return {
|
||||
color: props.highlightColor,
|
||||
} as CSSProperties;
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user