CSS 上划提示输入框动画

<template>
	<view class="content">
		<view class="input-group" @mouseenter="startAnimation" @mouseleave="stopAnimation">
			<input :disabled="ked" type="text" class="input" @blur="shiqu" @input="input" :class="{ act: isChecked }">
			<view class="user-label" :class="{ active: isChecked }">姓名</view>
		</view>
	</view>
</template>

<script setup>
	import {
		ref
	} from 'vue';
	const data = ref(""); // 绑定输入框的数据
	const isChecked = ref(false); // 判断是否输入框有内容
	const ked = ref(false); // 判断输入框是否可用
	// 输入框输入事件
	function input(e) {
		data.value = e.detail.value
	}
	// 移动端
	// 输入框失去焦点事件
	function shiq

版权声明:本文为博主作者:特创数字科技原创文章,版权归属原作者,如果侵权,请联系我们删除!

原文链接:https://blog.csdn.net/weixin_54226053/article/details/135489730

共计人评分,平均

到目前为止还没有投票!成为第一位评论此文章。

(0)
社会演员多的头像社会演员多普通用户
上一篇 2024年1月11日
下一篇 2024年1月11日

相关推荐