chore: 回退到 Sight 的提交

This commit is contained in:
就眠儀式
2022-04-16 11:32:59 +08:00
parent 98c6764829
commit 4333ee1c9e
5 changed files with 70 additions and 21 deletions

View File

@@ -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% {

View File

@@ -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>