
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
quark-input
Advanced tools
一款可配置 的 input 组件
<input-box :type="'tel'" :name="'user'">账号:</input-box>
<input-box :reg="`^[0-9]`" :name="'user'">账号:</input-box>
可以修改 input 的样式
修改外面盒子的包边
email 邮箱 /^(?:[a-z0-9]+[_-+.]+)[a-z0-9]+@(?:([a-z0-9]+-?)[a-z0-9]+.)+([a-z]{2,})+$/
tel 手机 /^(+86)?\s?0?(13|14|15|18|17)[0-9]{9}$/
post 邮政编码 /^\d{6}$/
cn 中文字符 /[\u4e00-\u9fa5]/
idcard 身份证 /^\d{6}(18|19|20)?\d{2}(0[1-9]|1[012])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/
user 用户名 (15个中文|字符) ^[\u0026\u0023\u0031\u0038\u0033\u003b\u002e\u2022a-zA-Z\u4e00-\u9fa5]{1,15}$
ip ip地址 /(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d).(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d).(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d).(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)/
例子 验证手机
<input-box :ruleName="'tel'" :type="'number'" @val="nameFun" :name="'user'">账号:</input-box>
name='delete-icon' 删除图片替换 name='normal-icon' 右侧显示图片 ,我在密码模式下提供了一个图片,其实在什么模式下都可以显示,可以根据自己需要替换
FAQs
一款可配置 的 input 组件
The npm package quark-input receives a total of 2 weekly downloads. As such, quark-input popularity was classified as not popular.
We found that quark-input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.