feat: 添加插件优先级
This commit is contained in:
1 parent
e155524e3e
commit
37791ab04e
6 files changed
+25
-8
No files matched your search
@@ -1,7 +1,7 @@
|
||||
<!-- 只适合用于渲染过程较为复杂的组件,不然可能得不偿失
|
||||
这么泛用的组件,性能差点也能理解 -->
|
||||
<template>
|
||||
<div class="miao-lazy" ref="miaoLazyRoot" :style="!show ? { minHeight, minWidth } : {}">
|
||||
<div class="miao-lazy" ref="miaoLazyRoot" :style="!show ? { minHeight, minWidth, margin } : {}">
|
||||
<slot v-if="show" />
|
||||
</div>
|
||||
</template>
|
||||
@@ -22,6 +22,10 @@ const props = defineProps({
|
||||
minWidth: {
|
||||
type: String,
|
||||
default: 'none',
|
||||
},
|
||||
margin: {
|
||||
type: String,
|
||||
default: 'none',
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user