fix: update input not trigger change event
parent
aa8e176fc7
commit
7197bbffad
|
@ -1 +1 @@
|
||||||
Subproject commit 4a986352a599904cfe895d0df1a8bb794e684645
|
Subproject commit bf2888abeb14599693b4261c0ea81819af8cb869
|
|
@ -0,0 +1,6 @@
|
||||||
|
import shallowequal from 'shallowequal';
|
||||||
|
import { toRaw } from 'vue';
|
||||||
|
|
||||||
|
export default function(value, other, customizer, thisArg) {
|
||||||
|
return shallowequal(toRaw(value), toRaw(other), customizer, thisArg);
|
||||||
|
}
|
|
@ -161,7 +161,7 @@ export default {
|
||||||
ref: this.saveInput,
|
ref: this.saveInput,
|
||||||
key: 'ant-input',
|
key: 'ant-input',
|
||||||
onInput: handleChange,
|
onInput: handleChange,
|
||||||
onChange: noop,
|
onChange: handleChange,
|
||||||
};
|
};
|
||||||
if (!inputProps.autofocus) {
|
if (!inputProps.autofocus) {
|
||||||
delete inputProps.autofocus;
|
delete inputProps.autofocus;
|
||||||
|
|
|
@ -106,6 +106,7 @@ export default {
|
||||||
...this.$attrs,
|
...this.$attrs,
|
||||||
prefixCls,
|
prefixCls,
|
||||||
onInput: this.handleChange,
|
onInput: this.handleChange,
|
||||||
|
onChange: this.handleChange,
|
||||||
onKeydown: this.handleKeyDown,
|
onKeydown: this.handleKeyDown,
|
||||||
};
|
};
|
||||||
return <ResizableTextArea {...resizeProps} ref={this.saveTextArea} />;
|
return <ResizableTextArea {...resizeProps} ref={this.saveTextArea} />;
|
||||||
|
|
|
@ -200,6 +200,7 @@ const DateInput = {
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
onInput={this.onInputChange}
|
onInput={this.onInputChange}
|
||||||
|
onChange={this.onInputChange}
|
||||||
onKeydown={this.onKeyDown}
|
onKeydown={this.onKeyDown}
|
||||||
onFocus={this.onFocus}
|
onFocus={this.onFocus}
|
||||||
onBlur={this.onBlur}
|
onBlur={this.onBlur}
|
||||||
|
|
|
@ -136,15 +136,9 @@ export default {
|
||||||
type="text"
|
type="text"
|
||||||
value={goInputText}
|
value={goInputText}
|
||||||
onInput={this.handleChange}
|
onInput={this.handleChange}
|
||||||
|
onChange={this.handleChange}
|
||||||
onKeyup={this.go}
|
onKeyup={this.go}
|
||||||
onBlur={this.handleBlur}
|
onBlur={this.handleBlur}
|
||||||
{...{
|
|
||||||
directives: [
|
|
||||||
{
|
|
||||||
name: 'ant-input',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
{locale.page}
|
{locale.page}
|
||||||
{gotoButton}
|
{gotoButton}
|
||||||
|
|
|
@ -380,14 +380,8 @@ export default {
|
||||||
onKeydown={this.handleKeyDown}
|
onKeydown={this.handleKeyDown}
|
||||||
onKeyup={this.handleKeyUp}
|
onKeyup={this.handleKeyUp}
|
||||||
onInput={this.handleKeyUp}
|
onInput={this.handleKeyUp}
|
||||||
|
onChange={this.handleKeyUp}
|
||||||
size="3"
|
size="3"
|
||||||
{...{
|
|
||||||
directives: [
|
|
||||||
{
|
|
||||||
name: 'ant-input',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
<span class={`${prefixCls}-slash`}>/</span>
|
<span class={`${prefixCls}-slash`}>/</span>
|
||||||
{allPages}
|
{allPages}
|
||||||
|
|
|
@ -169,6 +169,7 @@ const Header = {
|
||||||
value={str}
|
value={str}
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
onInput={this.onInputChange}
|
onInput={this.onInputChange}
|
||||||
|
onChange={this.onInputChange}
|
||||||
readonly={!!inputReadOnly}
|
readonly={!!inputReadOnly}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
|
@ -122,6 +122,7 @@ const SearchInput = {
|
||||||
type="text"
|
type="text"
|
||||||
ref={this.inputRef}
|
ref={this.inputRef}
|
||||||
onInput={handleInputChange}
|
onInput={handleInputChange}
|
||||||
|
onChange={handleInputChange}
|
||||||
onKeydown={onSearchInputKeyDown}
|
onKeydown={onSearchInputKeyDown}
|
||||||
value={searchValue}
|
value={searchValue}
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
|
|
Loading…
Reference in New Issue