<template>
<view class="my-input">
<input
:value="value"
@input="bindinput"
//移动端无法通过.select() 实现内容选中,只能通过focus()配合selection-start和selection-end实现
:selection-start="start"
:selection-end="end"
:placeholder="mplaceholder"
:type="type"
@blur="bindblur"
@focus="inputfocus($event)" />
</view>
自定义input实现聚焦选中内容边框颜色改变
最新推荐文章于 2024-04-25 10:51:54 发布