@kne/super-select 0.1.35 → 0.1.37
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/dist/index.css +18 -9
- package/dist/index.css.map +1 -1
- package/dist/index.js +17 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +15 -6
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -1
package/dist/index.modern.js
CHANGED
|
@@ -15,7 +15,9 @@ import 'simplebar-react/dist/simplebar.min.css';
|
|
|
15
15
|
import SearchInput from '@kne/search-input';
|
|
16
16
|
import { FetchScrollLoader } from '@kne/scroll-loader';
|
|
17
17
|
import '@kne/scroll-loader/dist/index.css';
|
|
18
|
-
import
|
|
18
|
+
import TableView from '@kne/table-view';
|
|
19
|
+
import '@kne/table-view/dist/index.css';
|
|
20
|
+
import { CentralContent } from '@kne/info-page';
|
|
19
21
|
import '@kne/info-page/dist/index.css';
|
|
20
22
|
import memoize from 'lodash/memoize';
|
|
21
23
|
import isNil from 'lodash/isNil';
|
|
@@ -284,6 +286,8 @@ const SelectInput = createWithIntlProvider({
|
|
|
284
286
|
maxLength,
|
|
285
287
|
overlayClassName,
|
|
286
288
|
overlayStyle,
|
|
289
|
+
getPopupContainer,
|
|
290
|
+
zIndex,
|
|
287
291
|
align,
|
|
288
292
|
autoAdjustOverflow,
|
|
289
293
|
transitionName,
|
|
@@ -301,6 +305,11 @@ const SelectInput = createWithIntlProvider({
|
|
|
301
305
|
valueKey,
|
|
302
306
|
size
|
|
303
307
|
} = props;
|
|
308
|
+
const mergedOverlayStyle = useMemo(() => {
|
|
309
|
+
return Object.assign({}, overlayStyle, zIndex != null ? {
|
|
310
|
+
zIndex
|
|
311
|
+
} : null);
|
|
312
|
+
}, [overlayStyle, zIndex]);
|
|
304
313
|
const transformValue = value => {
|
|
305
314
|
if (single) {
|
|
306
315
|
return isNotEmpty(value) ? [value] : [];
|
|
@@ -476,8 +485,9 @@ const SelectInput = createWithIntlProvider({
|
|
|
476
485
|
onOpenChange: setOpen,
|
|
477
486
|
placement: placement,
|
|
478
487
|
arrow: false,
|
|
488
|
+
getPopupContainer: getPopupContainer,
|
|
479
489
|
overlayClassName: classnames(style$6['overlay'], overlayClassName),
|
|
480
|
-
overlayStyle:
|
|
490
|
+
overlayStyle: mergedOverlayStyle,
|
|
481
491
|
align: align,
|
|
482
492
|
autoAdjustOverflow: autoAdjustOverflow,
|
|
483
493
|
transitionName: transitionName,
|
|
@@ -800,7 +810,7 @@ const SelectList = forwardRef((_ref, ref) => {
|
|
|
800
810
|
});
|
|
801
811
|
});
|
|
802
812
|
|
|
803
|
-
var style$2 = {"
|
|
813
|
+
var style$2 = {"table":"kne-super-select_zE-14","list":"kne-super-select_DrEYJ","is-popup":"kne-super-select_KgWTX","empty":"kne-super-select_5Tyrt","right-options":"kne-super-select_UXi-g","no-padding-btn":"kne-super-select_iaCir","tag":"kne-super-select_JkYqS","tag-inner":"kne-super-select_VZlBL","single-checked":"kne-super-select_Eiz-u","select-search":"kne-super-select_temy6","tags-search":"kne-super-select_7phL2","descriptions":"kne-super-select_ttNK9","footer":"kne-super-select_lISfA"};
|
|
804
814
|
|
|
805
815
|
const SelectTableList = createWithIntlProvider('zh-CN', locale$1, 'super-select')(forwardRef((p, ref) => {
|
|
806
816
|
const {
|
|
@@ -946,10 +956,9 @@ const SelectTableList = createWithIntlProvider('zh-CN', locale$1, 'super-select'
|
|
|
946
956
|
}
|
|
947
957
|
},
|
|
948
958
|
render: ({
|
|
949
|
-
header,
|
|
950
959
|
renderBody
|
|
951
960
|
}) => {
|
|
952
|
-
return /*#__PURE__*/React.createElement(
|
|
961
|
+
return /*#__PURE__*/React.createElement(FetchScrollLoader, _extends({}, props, {
|
|
953
962
|
className: classnames(style$2['list'], 'select-table-list-scroll-list', {
|
|
954
963
|
'is-popup': isPopup
|
|
955
964
|
}),
|
|
@@ -992,7 +1001,7 @@ const SelectTableList = createWithIntlProvider('zh-CN', locale$1, 'super-select'
|
|
|
992
1001
|
});
|
|
993
1002
|
}
|
|
994
1003
|
return renderBody(list, contextProps);
|
|
995
|
-
})
|
|
1004
|
+
});
|
|
996
1005
|
}
|
|
997
1006
|
})), single && footerEl || /*#__PURE__*/React.createElement("div", {
|
|
998
1007
|
className: classnames(style$2['footer'], 'select-table-footer')
|