Socket
Socket
Sign inDemoInstall

@beisen-phoenix/mobile-inner-input

Package Overview
Dependencies
9
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @beisen-phoenix/mobile-inner-input

一个单纯的输入框 充满整个容器


Version published
Weekly downloads
1
Maintainers
1
Install size
138 kB
Created
Weekly downloads
 

Readme

Source

一个单纯的输入框 充满整个容器

API

参数说明类型默认值
value指定输入框当前值any
defaultValue输入框初始值any
placeholder输入框没有值时的帮助文字string点击填写
readOnly是否只读booleanfalse
type类型string

多语言

参数说明类型默认值
translation语言包 用于翻译组件内置常量{inputHolder: string}{inputHolder: '点击填写'}

事件

参数说明类型默认值
onFocus输入框获取焦点时的回调(e: React.FocusEvent) => void
onChange输入框内容变化时的回调(e: React.ChangeEvent) => void
onBlur输入框失去焦点时的回调(e: React.FocusEvent) => void

文字对齐

参数说明类型默认值
textAlign文字对齐方式 可选值为css支持的所有对齐方式stringright

FAQs

Last updated on 05 Nov 2019

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc