@rc-component/cascader 1.12.0 → 1.12.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/es/OptionList/Column.js
CHANGED
|
@@ -190,7 +190,7 @@ export default function Column({
|
|
|
190
190
|
}
|
|
191
191
|
}), /*#__PURE__*/React.createElement("div", {
|
|
192
192
|
className: `${menuItemPrefixCls}-content`
|
|
193
|
-
}, optionRender ? optionRender(option) : label), !isLoading && expandIcon && !isMergedLeaf && /*#__PURE__*/React.createElement("div", {
|
|
193
|
+
}, optionRender && value !== '__EMPTY__' ? optionRender(option) : label), !isLoading && expandIcon && !isMergedLeaf && /*#__PURE__*/React.createElement("div", {
|
|
194
194
|
className: `${menuItemPrefixCls}-expand-icon`
|
|
195
195
|
}, expandIcon), isLoading && loadingIcon && /*#__PURE__*/React.createElement("div", {
|
|
196
196
|
className: `${menuItemPrefixCls}-loading-icon`
|
|
@@ -2,7 +2,7 @@ import type { RefOptionListProps } from '@rc-component/select/lib/OptionList';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import type { DefaultOptionType, InternalFieldNames, LegacyKey, SingleValueType } from '../Cascader';
|
|
4
4
|
declare const _default: (ref: React.Ref<RefOptionListProps>, options: DefaultOptionType[], fieldNames: InternalFieldNames, activeValueCells: LegacyKey[], setActiveValueCells: (activeValueCells: LegacyKey[]) => void, onKeyBoardSelect: (valueCells: SingleValueType, option: DefaultOptionType) => void, contextProps: {
|
|
5
|
-
direction?: "
|
|
5
|
+
direction?: "rtl" | "ltr" | undefined;
|
|
6
6
|
searchValue: string;
|
|
7
7
|
toggleOpen: (open?: boolean) => void;
|
|
8
8
|
open?: boolean | undefined;
|
package/lib/OptionList/Column.js
CHANGED
|
@@ -200,7 +200,7 @@ function Column({
|
|
|
200
200
|
}
|
|
201
201
|
}), /*#__PURE__*/React.createElement("div", {
|
|
202
202
|
className: `${menuItemPrefixCls}-content`
|
|
203
|
-
}, optionRender ? optionRender(option) : label), !isLoading && expandIcon && !isMergedLeaf && /*#__PURE__*/React.createElement("div", {
|
|
203
|
+
}, optionRender && value !== '__EMPTY__' ? optionRender(option) : label), !isLoading && expandIcon && !isMergedLeaf && /*#__PURE__*/React.createElement("div", {
|
|
204
204
|
className: `${menuItemPrefixCls}-expand-icon`
|
|
205
205
|
}, expandIcon), isLoading && loadingIcon && /*#__PURE__*/React.createElement("div", {
|
|
206
206
|
className: `${menuItemPrefixCls}-loading-icon`
|