refactor: change dom attribute autoComplete to autocomplete
parent
d67afec16a
commit
248b7bbed2
|
@ -485,7 +485,7 @@ const Cascader = {
|
|||
value: inputValue,
|
||||
disabled,
|
||||
readonly: !showSearch,
|
||||
autoComplete: 'off',
|
||||
autocomplete: 'off',
|
||||
class: `${prefixCls}-input ${sizeCls}`,
|
||||
onFocus: showSearch ? this.handleInputFocus : noop,
|
||||
onClick: showSearch ? this.handleInputClick : noop,
|
||||
|
|
|
@ -72,7 +72,7 @@ const inputNumberProps = {
|
|||
required: PropTypes.bool,
|
||||
pattern: PropTypes.string,
|
||||
decimalSeparator: PropTypes.string,
|
||||
autoComplete: PropTypes.string,
|
||||
autocomplete: PropTypes.string,
|
||||
title: PropTypes.string,
|
||||
name: PropTypes.string,
|
||||
id: PropTypes.string,
|
||||
|
@ -95,7 +95,7 @@ export default {
|
|||
step: 1,
|
||||
parser: defaultParser,
|
||||
required: false,
|
||||
autoComplete: 'off',
|
||||
autocomplete: 'off',
|
||||
}),
|
||||
data() {
|
||||
const props = getOptionProps(this);
|
||||
|
@ -642,7 +642,7 @@ export default {
|
|||
disabled,
|
||||
readonly,
|
||||
useTouch,
|
||||
autoComplete,
|
||||
autocomplete,
|
||||
upHandler,
|
||||
downHandler,
|
||||
class: className,
|
||||
|
@ -778,7 +778,7 @@ export default {
|
|||
onClick={this.handleInputClick}
|
||||
class={`${prefixCls}-input`}
|
||||
tabindex={this.tabindex}
|
||||
autoComplete={autoComplete}
|
||||
autocomplete={autocomplete}
|
||||
onFocus={this.onFocus}
|
||||
onBlur={this.onBlur}
|
||||
onKeydown={editable ? this.onKeyDown : noop}
|
||||
|
|
|
@ -771,7 +771,7 @@ const Select = {
|
|||
const { _inputValue: inputValue } = this.$data;
|
||||
const attrs = this.$attrs;
|
||||
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;
|
||||
|
|
|
@ -58,7 +58,7 @@ export default {
|
|||
// onFocus: PropTypes.func,
|
||||
// onBlur: PropTypes.func,
|
||||
name: PropTypes.string,
|
||||
autoComplete: PropTypes.string,
|
||||
autocomplete: PropTypes.string,
|
||||
use12Hours: PropTypes.bool,
|
||||
hourStep: PropTypes.number,
|
||||
minuteStep: PropTypes.number,
|
||||
|
@ -334,7 +334,7 @@ export default {
|
|||
transitionName,
|
||||
getPopupContainer,
|
||||
name,
|
||||
autoComplete,
|
||||
autocomplete,
|
||||
autoFocus,
|
||||
inputReadOnly,
|
||||
sOpen,
|
||||
|
@ -371,7 +371,7 @@ export default {
|
|||
onKeydown={this.onKeyDown}
|
||||
disabled={disabled}
|
||||
value={(sValue && sValue.format(this.getFormat())) || ''}
|
||||
autoComplete={autoComplete}
|
||||
autocomplete={autocomplete}
|
||||
onFocus={onFocus}
|
||||
onBlur={onBlur}
|
||||
autoFocus={autoFocus}
|
||||
|
|
Loading…
Reference in New Issue