chore: 回退到 Sight 的提交
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
@keyframes ripple-effect {
|
||||
0% {
|
||||
box-shadow: 0 0 0 0px var(--layui-ripple-color);
|
||||
opacity: 0.3;
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
100% {
|
||||
|
||||
@@ -28,7 +28,6 @@ const props = withDefaults(defineProps<LayRippletProps>(), {
|
||||
});
|
||||
|
||||
const isActiveRef = ref(false);
|
||||
// 波纹宽高
|
||||
const spreadSizeRef = ref<string>("0px");
|
||||
const ripplesRefEl = ref<HTMLElement | null>(null);
|
||||
const waterRipplesContainerRefEl = ref<HTMLElement | null>(null);
|
||||
@@ -43,7 +42,7 @@ const rippleY = ref<string | number | undefined>(undefined);
|
||||
const onActive = function (event: Event) {
|
||||
isActiveRef.value = true;
|
||||
|
||||
// 跟随鼠标点击
|
||||
// 计算点击位置和波纹大小
|
||||
if (props.type === "inset" && !props.spreadSize && !props.center) {
|
||||
const el = event.currentTarget;
|
||||
// @ts-ignore
|
||||
@@ -129,4 +128,4 @@ watch(
|
||||
></div>
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
Reference in New Issue
Block a user