Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@beisen-phoenix/mobile-input
Advanced tools
表单组件:单行文本。
用于表单中的单行文本字段
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
labelText | 标题 | string | 无 |
value | 指定输入框当前值 | any | 无 |
defaultValue | 输入框初始值 | any | 无 |
placeholder | 输入框没有值时的帮助文字 | string | 点击填写 |
required | 是否必填 | boolean | false |
readOnly | 是否只读 | boolean | false |
rightEl | 右侧区域元素 用于显示单位或者图标 | string/React.ReactNode | 无 |
hasError | 当前字段验证是否出现错误 用于显示底部错误红线 | boolean | false |
labelIcon | 自定义字段图标 展示于标题右侧 大小为 16px*16px | React.ReactNode | 无 |
多语言
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
translation | 语言包 用于翻译组件内置常量 | {inputHolder: string} | {inputHolder: '点击填写'} |
事件
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
onFocus | 输入框获取焦点时的回调 | (e: React.FocusEvent) => void | 无 |
onChange | 输入框内容变化时的回调 | (e: React.ChangeEvent) => void | 无 |
onBlur | 输入框失去焦点时的回调 | (e: React.FocusEvent) => void | 无 |
FAQs
The npm package @beisen-phoenix/mobile-input receives a total of 0 weekly downloads. As such, @beisen-phoenix/mobile-input popularity was classified as not popular.
We found that @beisen-phoenix/mobile-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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.