refactor: change dom attribute autoComplete to autocomplete

pull/2682/head
tanjinzhou 2020-07-17 17:25:23 +08:00
parent d67afec16a
commit 248b7bbed2
4 changed files with 9 additions and 9 deletions

View File

@ -485,7 +485,7 @@ const Cascader = {
value: inputValue, value: inputValue,
disabled, disabled,
readonly: !showSearch, readonly: !showSearch,
autoComplete: 'off', autocomplete: 'off',
class: `${prefixCls}-input ${sizeCls}`, class: `${prefixCls}-input ${sizeCls}`,
onFocus: showSearch ? this.handleInputFocus : noop, onFocus: showSearch ? this.handleInputFocus : noop,
onClick: showSearch ? this.handleInputClick : noop, onClick: showSearch ? this.handleInputClick : noop,

View File

@ -72,7 +72,7 @@ const inputNumberProps = {
required: PropTypes.bool, required: PropTypes.bool,
pattern: PropTypes.string, pattern: PropTypes.string,
decimalSeparator: PropTypes.string, decimalSeparator: PropTypes.string,
autoComplete: PropTypes.string, autocomplete: PropTypes.string,
title: PropTypes.string, title: PropTypes.string,
name: PropTypes.string, name: PropTypes.string,
id: PropTypes.string, id: PropTypes.string,
@ -95,7 +95,7 @@ export default {
step: 1, step: 1,
parser: defaultParser, parser: defaultParser,
required: false, required: false,
autoComplete: 'off', autocomplete: 'off',
}), }),
data() { data() {
const props = getOptionProps(this); const props = getOptionProps(this);
@ -642,7 +642,7 @@ export default {
disabled, disabled,
readonly, readonly,
useTouch, useTouch,
autoComplete, autocomplete,
upHandler, upHandler,
downHandler, downHandler,
class: className, class: className,
@ -778,7 +778,7 @@ export default {
onClick={this.handleInputClick} onClick={this.handleInputClick}
class={`${prefixCls}-input`} class={`${prefixCls}-input`}
tabindex={this.tabindex} tabindex={this.tabindex}
autoComplete={autoComplete} autocomplete={autocomplete}
onFocus={this.onFocus} onFocus={this.onFocus}
onBlur={this.onBlur} onBlur={this.onBlur}
onKeydown={editable ? this.onKeyDown : noop} onKeydown={editable ? this.onKeyDown : noop}

View File

@ -771,7 +771,7 @@ const Select = {
const { _inputValue: inputValue } = this.$data; const { _inputValue: inputValue } = this.$data;
const attrs = this.$attrs; const attrs = this.$attrs;
const defaultInput = ( const defaultInput = (
<input {...(attrs.id !== undefined ? { id: attrs.id } : {})} autoComplete="off" /> <input {...(attrs.id !== undefined ? { id: attrs.id } : {})} autocomplete="off" />
); );
const inputElement = props.getInputElement ? props.getInputElement() : defaultInput; const inputElement = props.getInputElement ? props.getInputElement() : defaultInput;

View File

@ -58,7 +58,7 @@ export default {
// onFocus: PropTypes.func, // onFocus: PropTypes.func,
// onBlur: PropTypes.func, // onBlur: PropTypes.func,
name: PropTypes.string, name: PropTypes.string,
autoComplete: PropTypes.string, autocomplete: PropTypes.string,
use12Hours: PropTypes.bool, use12Hours: PropTypes.bool,
hourStep: PropTypes.number, hourStep: PropTypes.number,
minuteStep: PropTypes.number, minuteStep: PropTypes.number,
@ -334,7 +334,7 @@ export default {
transitionName, transitionName,
getPopupContainer, getPopupContainer,
name, name,
autoComplete, autocomplete,
autoFocus, autoFocus,
inputReadOnly, inputReadOnly,
sOpen, sOpen,
@ -371,7 +371,7 @@ export default {
onKeydown={this.onKeyDown} onKeydown={this.onKeyDown}
disabled={disabled} disabled={disabled}
value={(sValue && sValue.format(this.getFormat())) || ''} value={(sValue && sValue.format(this.getFormat())) || ''}
autoComplete={autoComplete} autocomplete={autocomplete}
onFocus={onFocus} onFocus={onFocus}
onBlur={onBlur} onBlur={onBlur}
autoFocus={autoFocus} autoFocus={autoFocus}