Socket
Socket
Sign inDemoInstall

nuke-input

Package Overview
Dependencies
Maintainers
3
Versions
185
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuke-input - npm Package Compare versions

Comparing version 0.1.12 to 0.1.13

docs/autofocus.md

4

HISTORY.md
# Changelog
## 0.1.13 / 2016-12-28
* [[8426721](http://gitlab.alibaba-inc.com/nuke/input/commit/8426721b4e0ca0b752888f0bc3284c7706a610b0)] - `fix` autofocus bugfix
## 0.1.12 / 2016-12-21

@@ -5,0 +9,0 @@

7

lib/index.js

@@ -140,5 +140,7 @@ /** @jsx createElement */

inputStyle = _props$inputStyle === undefined ? {} : _props$inputStyle,
_props$autoFocus = _props.autoFocus,
autoFocus = _props$autoFocus === undefined ? false : _props$autoFocus,
_props$type = _props.type,
type = _props$type === undefined ? 'enclosed' : _props$type,
others = _objectWithoutProperties(_props, ['hasFeedback', 'hasClear', 'prefix', 'className', 'state', 'defaultValue', 'value', 'onChange', 'onInput', 'onFocus', 'onBlur', 'readOnly', 'size', 'disabled', 'style', 'addonBefore', 'addonAfter', 'multiple', 'inputStyle', 'type']);
others = _objectWithoutProperties(_props, ['hasFeedback', 'hasClear', 'prefix', 'className', 'state', 'defaultValue', 'value', 'onChange', 'onInput', 'onFocus', 'onBlur', 'readOnly', 'size', 'disabled', 'style', 'addonBefore', 'addonAfter', 'multiple', 'inputStyle', 'autoFocus', 'type']);

@@ -167,2 +169,3 @@ // style.textAlign = this.getValueFromContextAndProp('align') || 'left';

value: this.state.value,
autofocus: autoFocus,
defaultValue: defaultValue

@@ -270,3 +273,3 @@ };

value: function pickAttrs(props) {
var attributes = 'accept acceptCharset accessKey action allowFullScreen allowTransparency\nalt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\ncharSet checked classID className colSpan cols content contentEditable contextMenu\ncontrols coords crossOrigin data dateTime default defer dir disabled download draggable\nencType form formAction formEncType formMethod formNoValidate formTarget frameBorder\nheaders height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\nis keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\nmediaGroup method min minLength multiple muted name noValidate nonce open\noptimum pattern placeholder poster preload radioGroup readOnly rel required\nreversed role rowSpan rows sandbox scope scoped scrolling seamless selected\nshape size sizes span spellCheck src srcDoc srcLang srcSet start step style\nsummary tabIndex target title type useMap value width wmode wrap'.replace(/\s+/g, ' ').replace(/\t|\n|\r/g, '').split(' '),
var attributes = 'accept acceptCharset accessKey action allowFullScreen allowTransparency\nalt async autoComplete autoPlay capture cellPadding cellSpacing challenge\ncharSet checked classID className colSpan cols content contentEditable contextMenu\ncontrols coords crossOrigin data dateTime default defer dir disabled download draggable\nencType form formAction formEncType formMethod formNoValidate formTarget frameBorder\nheaders height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\nis keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\nmediaGroup method min minLength multiple muted name noValidate nonce open\noptimum pattern placeholder poster preload radioGroup readOnly rel required\nreversed role rowSpan rows sandbox scope scoped scrolling seamless selected\nshape size sizes span spellCheck src srcDoc srcLang srcSet start step style\nsummary tabIndex target title type useMap value width wmode wrap'.replace(/\s+/g, ' ').replace(/\t|\n|\r/g, '').split(' '),
eventsName = 'onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError'.replace(/\s+/g, ' ').replace(/\t|\n|\r/g, '').split(' '),

@@ -273,0 +276,0 @@ attrsPrefix = ['data-', 'aria-'];

{
"name": "nuke-input",
"version": "0.1.12",
"version": "0.1.13",
"description": "输入框",

@@ -5,0 +5,0 @@ "main": "lib/index",

@@ -143,2 +143,3 @@ /** @jsx createElement */

inputStyle={},
autoFocus = false,
type = 'enclosed',

@@ -176,5 +177,6 @@ ...others } = this.props;

value: this.state.value,
autofocus:autoFocus,
defaultValue
};
// 防止重复定义带来的warning

@@ -278,3 +280,3 @@ if('value' in attrs) {

const attributes = `accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
alt async autoComplete autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu

@@ -281,0 +283,0 @@ controls coords crossOrigin data dateTime default defer dir disabled download draggable

@@ -137,3 +137,3 @@ /** @jsx createElement */

<View style={styles.st}><Text style={styles.stText}>textarea</Text></View>
<View style={styles.row}><Input style={{height:'300rem',marginBottom:'20rem'}} multiple={true} placeholder="设置高度300rem" onFocus={(e) => console.log('onFocus',e)} onBlur={(e) => console.log('onBlur',e)}/></View>
<View style={styles.row}><Input style={{height:'300rem',marginBottom:'20rem'}} autoFocus={true} multiple={true} placeholder="设置高度300rem" onFocus={(e) => console.log('onFocus',e)} onBlur={(e) => console.log('onBlur',e)}/></View>
<View style={styles.row}><Input multiple={true} placeholder="介绍一下" value="大家好我是xxxx"

@@ -140,0 +140,0 @@ /></View>

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc