提交 a708915b 编写于 作者: S suzigang

fix: popup

上级 f4e25005
......@@ -22,7 +22,7 @@ const overlayProps = {
},
zIndex: {
type: [Number, String],
default: 2000
default: 1
},
duration: {
type: [Number, String],
......
......@@ -10,6 +10,7 @@
pop-class="popclass"
:style="{ padding: '30px 50px' }"
v-model:visible="state.showBasic"
:z-index="100"
>正文</nut-popup
>
<h2>弹出位置</h2>
......
......@@ -57,7 +57,7 @@ import { createComponent } from '@/utils/create';
import { OverLay } from '@/nutui';
const { componentName, create } = createComponent('popup');
let _zIndex = 2000;
let _zIndex = 1;
export const popupProps = {
...overlayProps,
......@@ -133,7 +133,7 @@ export default create({
setup(props, { emit }) {
const state = reactive({
zIndex: 1,
zIndex: props.zIndex ? (props.zIndex as number) : _zIndex,
showSlot: true,
transitionName: `popup-fade-${props.position}`,
overLayCount: 1,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册