parent
35cd9e621a
commit
ba1e14443c
16 changed files with 32 additions and 29 deletions
|
@ -49,10 +49,10 @@ export default defineComponent({
|
|||
type: String,
|
||||
default: 'auto',
|
||||
},
|
||||
front: {
|
||||
type: Boolean,
|
||||
zPriority: {
|
||||
type: String as PropType<'low' | 'middle' | 'high'>,
|
||||
required: false,
|
||||
default: false,
|
||||
default: 'low',
|
||||
},
|
||||
noOverlap: {
|
||||
type: Boolean,
|
||||
|
@ -74,7 +74,7 @@ export default defineComponent({
|
|||
const transformOrigin = ref('center');
|
||||
const showing = ref(true);
|
||||
const content = ref<HTMLElement>();
|
||||
const zIndex = os.claimZIndex(props.front);
|
||||
const zIndex = os.claimZIndex(props.zPriority);
|
||||
const type = computed(() => {
|
||||
if (props.preferType === 'auto') {
|
||||
if (isTouchUsing && window.innerWidth < 500 && window.innerHeight < 1000) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue