给所有组件添加name属性预防未知bug!!!

This commit is contained in:
puhui999
2023-04-14 21:32:11 +08:00
parent 44c18473d7
commit b93491579c
133 changed files with 1126 additions and 993 deletions

View File

@ -1,7 +1,8 @@
<script setup lang="ts">
<script lang="ts" name="Sticky" setup>
import { propTypes } from '@/utils/propTypes'
import { isClient, useEventListener, useWindowSize } from '@vueuse/core'
import type { CSSProperties } from 'vue'
const props = defineProps({
// 距离顶部或者底部的距离(单位px)
offset: propTypes.number.def(0),
@ -120,7 +121,7 @@ const reset = () => {
}
</script>
<template>
<div :style="{ height: height, zIndex: zIndex }" ref="refSticky">
<div ref="refSticky" :style="{ height: height, zIndex: zIndex }">
<div
:class="className"
:style="{