@douyinfe/semi-ui 2.38.2 → 2.40.0-alpha.0
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/css/semi.css +49 -1
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +15 -7
- 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/datePicker/dateInput.d.ts +1 -1
- package/lib/cjs/datePicker/datePicker.d.ts +1 -1
- package/lib/cjs/datePicker/monthsGrid.d.ts +1 -1
- package/lib/cjs/datePicker/yearAndMonth.d.ts +1 -1
- package/lib/cjs/form/baseForm.d.ts +1 -0
- package/lib/cjs/form/field.d.ts +1 -0
- package/lib/cjs/modal/confirm.d.ts +12 -12
- package/lib/cjs/select/index.d.ts +1 -0
- package/lib/cjs/select/index.js +6 -3
- package/lib/cjs/treeSelect/index.js +1 -1
- package/lib/es/datePicker/dateInput.d.ts +1 -1
- package/lib/es/datePicker/datePicker.d.ts +1 -1
- package/lib/es/datePicker/monthsGrid.d.ts +1 -1
- package/lib/es/datePicker/yearAndMonth.d.ts +1 -1
- package/lib/es/form/baseForm.d.ts +1 -0
- package/lib/es/form/field.d.ts +1 -0
- package/lib/es/modal/confirm.d.ts +12 -12
- package/lib/es/select/index.d.ts +1 -0
- package/lib/es/select/index.js +6 -3
- package/lib/es/treeSelect/index.js +1 -1
- package/package.json +8 -8
package/dist/umd/semi-ui.js
CHANGED
|
@@ -17854,9 +17854,14 @@ class AnchorFoundation extends foundation {
|
|
|
17854
17854
|
*/
|
|
17855
17855
|
behavior: actions => {
|
|
17856
17856
|
// We just need to scroll the innermost target container
|
|
17857
|
-
const
|
|
17858
|
-
|
|
17859
|
-
|
|
17857
|
+
const verticalScrollAction = actions.find(action => {
|
|
17858
|
+
const {
|
|
17859
|
+
el
|
|
17860
|
+
} = action;
|
|
17861
|
+
return el.scrollHeight > el.clientHeight;
|
|
17862
|
+
});
|
|
17863
|
+
const el = get_default()(verticalScrollAction, 'el');
|
|
17864
|
+
const top = get_default()(verticalScrollAction, 'top');
|
|
17860
17865
|
if (el) {
|
|
17861
17866
|
const offsetTop = top - targetOffset;
|
|
17862
17867
|
if (el.scroll && canSmoothScroll) {
|
|
@@ -69058,9 +69063,10 @@ class Select extends BaseComponent {
|
|
|
69058
69063
|
triggerRender,
|
|
69059
69064
|
arrowIcon,
|
|
69060
69065
|
clearIcon,
|
|
69061
|
-
borderless
|
|
69066
|
+
borderless,
|
|
69067
|
+
showArrowInBorderless
|
|
69062
69068
|
} = _a,
|
|
69063
|
-
rest = select_rest(_a, ["disabled", "multiple", "filter", "style", "id", "size", "className", "validateStatus", "showArrow", "suffix", "prefix", "insetLabel", "placeholder", "triggerRender", "arrowIcon", "clearIcon", "borderless"]);
|
|
69069
|
+
rest = select_rest(_a, ["disabled", "multiple", "filter", "style", "id", "size", "className", "validateStatus", "showArrow", "suffix", "prefix", "insetLabel", "placeholder", "triggerRender", "arrowIcon", "clearIcon", "borderless", "showArrowInBorderless"]);
|
|
69064
69070
|
const {
|
|
69065
69071
|
selections,
|
|
69066
69072
|
isOpen,
|
|
@@ -69075,6 +69081,7 @@ class Select extends BaseComponent {
|
|
|
69075
69081
|
const filterable = Boolean(filter); // filter(boolean || function)
|
|
69076
69082
|
const selectionCls = useCustomTrigger ? classnames_default()(className) : classnames_default()(select_prefixcls, className, {
|
|
69077
69083
|
[`${select_prefixcls}-borderless`]: borderless,
|
|
69084
|
+
[`${select_prefixcls}-borderless-arrow`]: showArrowInBorderless,
|
|
69078
69085
|
[`${select_prefixcls}-open`]: isOpen,
|
|
69079
69086
|
[`${select_prefixcls}-focus`]: isFocus,
|
|
69080
69087
|
[`${select_prefixcls}-disabled`]: disabled,
|
|
@@ -69341,7 +69348,8 @@ Select.defaultProps = {
|
|
|
69341
69348
|
showRestTagsPopover: false,
|
|
69342
69349
|
restTagsPopoverProps: {},
|
|
69343
69350
|
expandRestTagsOnClick: false,
|
|
69344
|
-
ellipsisTrigger: false
|
|
69351
|
+
ellipsisTrigger: false,
|
|
69352
|
+
showArrowInBorderless: false
|
|
69345
69353
|
// Radio selection is different from the default renderSelectedItem for multiple selection, so it is not declared here
|
|
69346
69354
|
// renderSelectedItem: (optionNode) => optionNode.label,
|
|
69347
69355
|
// The default creator rendering is related to i18, so it is not declared here
|
|
@@ -87678,7 +87686,7 @@ class TreeSelect extends BaseComponent {
|
|
|
87678
87686
|
// searchPosition = dropdown and single seleciton
|
|
87679
87687
|
if (!multiple || !this.hasValue()) {
|
|
87680
87688
|
const renderText = this.foundation.getRenderTextInSingle();
|
|
87681
|
-
const spanCls = classnames_default()({
|
|
87689
|
+
const spanCls = classnames_default()(`${treeSelect_prefixcls}-selection-content`, {
|
|
87682
87690
|
[`${treeSelect_prefixcls}-selection-placeholder`]: !renderText
|
|
87683
87691
|
});
|
|
87684
87692
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
|