@douyinfe/semi-ui 2.17.0 → 2.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autoComplete/index.tsx +2 -0
- package/dist/umd/semi-ui.js +11 -4
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/autoComplete/index.js +5 -2
- package/lib/es/autoComplete/index.js +5 -2
- package/package.json +7 -7
- package/table/_story/v2/FixedFilter/index.tsx +106 -0
- package/table/_story/v2/FixedSorter/index.tsx +102 -0
- package/table/_story/v2/index.js +4 -2
package/autoComplete/index.tsx
CHANGED
|
@@ -361,6 +361,8 @@ class AutoComplete<T extends AutoCompleteItems> extends BaseComponent<AutoComple
|
|
|
361
361
|
ref: this.triggerRef,
|
|
362
362
|
id,
|
|
363
363
|
...keyboardEventSet,
|
|
364
|
+
// tooltip give tabindex 0 to children by default, autoComplete just need the input get focus, so outer div's tabindex set to -1
|
|
365
|
+
tabIndex: -1
|
|
364
366
|
};
|
|
365
367
|
|
|
366
368
|
const innerProps = {
|
package/dist/umd/semi-ui.js
CHANGED
|
@@ -34935,6 +34935,10 @@ class foundation_AutoCompleteFoundation extends foundation {
|
|
|
34935
34935
|
this._adapter.notifyChange(inputValue);
|
|
34936
34936
|
|
|
34937
34937
|
this._modifyFocusIndex(inputValue);
|
|
34938
|
+
|
|
34939
|
+
if (!this.isPanelOpen) {
|
|
34940
|
+
this.openDropdown();
|
|
34941
|
+
}
|
|
34938
34942
|
}
|
|
34939
34943
|
|
|
34940
34944
|
handleSelect(option, optionIndex) {
|
|
@@ -36937,7 +36941,7 @@ class autoComplete_AutoComplete extends baseComponent_BaseComponent {
|
|
|
36937
36941
|
} = this.state;
|
|
36938
36942
|
const useCustomTrigger = typeof triggerRender === 'function';
|
|
36939
36943
|
|
|
36940
|
-
const outerProps = assign_default()({
|
|
36944
|
+
const outerProps = assign_default()(assign_default()({
|
|
36941
36945
|
style,
|
|
36942
36946
|
className: useCustomTrigger ? classnames_default()(className) : classnames_default()({
|
|
36943
36947
|
[autoComplete_prefixCls]: true,
|
|
@@ -36946,7 +36950,10 @@ class autoComplete_AutoComplete extends baseComponent_BaseComponent {
|
|
|
36946
36950
|
onClick: this.handleInputClick,
|
|
36947
36951
|
ref: this.triggerRef,
|
|
36948
36952
|
id
|
|
36949
|
-
}, keyboardEventSet)
|
|
36953
|
+
}, keyboardEventSet), {
|
|
36954
|
+
// tooltip give tabindex 0 to children by default, autoComplete just need the input get focus, so outer div's tabindex set to -1
|
|
36955
|
+
tabIndex: -1
|
|
36956
|
+
});
|
|
36950
36957
|
|
|
36951
36958
|
const innerProps = {
|
|
36952
36959
|
disabled,
|
|
@@ -91325,8 +91332,8 @@ class foundation_TableFoundation extends foundation {
|
|
|
91325
91332
|
filteredData = new core_js_stable_map_default.a();
|
|
91326
91333
|
}
|
|
91327
91334
|
|
|
91328
|
-
each_default()(
|
|
91329
|
-
each_default()(
|
|
91335
|
+
each_default()(dataSource, record => {
|
|
91336
|
+
each_default()(currentFilteredValue, value => {
|
|
91330
91337
|
const childrenRecords = get_default()(record, childrenRecordName);
|
|
91331
91338
|
|
|
91332
91339
|
const recordKey = this.getRecordKey(record);
|