@hi-ui/cascader 4.0.0-beta.41 → 4.0.0-beta.42
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/lib/cjs/Cascader.js +6 -3
- package/lib/esm/Cascader.js +7 -4
- package/package.json +2 -2
package/lib/cjs/Cascader.js
CHANGED
@@ -154,9 +154,12 @@ var Cascader = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
154
154
|
data: cascaderData,
|
155
155
|
flattedData: flattedData,
|
156
156
|
enabled: searchableProp,
|
157
|
-
exclude: function exclude(
|
158
|
-
return
|
159
|
-
}
|
157
|
+
exclude: function exclude(node) {
|
158
|
+
return node.disabled;
|
159
|
+
} // exclude: (option: FlattedCascaderDataItem) => {
|
160
|
+
// return checkCanLoadChildren(option, onLoadChildren)
|
161
|
+
// },
|
162
|
+
|
160
163
|
});
|
161
164
|
|
162
165
|
var _useSearchMode = useSearchMode.useSearchMode({
|
package/lib/esm/Cascader.js
CHANGED
@@ -15,7 +15,7 @@ import { useUncontrolledToggle } from '@hi-ui/use-toggle';
|
|
15
15
|
import { useCascader } from './use-cascader.js';
|
16
16
|
import { MockInput } from '@hi-ui/input';
|
17
17
|
import { UpOutlined, DownOutlined } from '@hi-ui/icons';
|
18
|
-
import { flattenTreeData,
|
18
|
+
import { flattenTreeData, getItemEventData } from './utils/index.js';
|
19
19
|
import { CascaderProvider } from './context.js';
|
20
20
|
import { getTopDownAncestors, getNodeAncestorsWithMe } from '@hi-ui/tree-utils';
|
21
21
|
import { isUndef, isArrayNonEmpty, isFunction } from '@hi-ui/type-assertion';
|
@@ -120,9 +120,12 @@ var Cascader = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
120
120
|
data: cascaderData,
|
121
121
|
flattedData: flattedData,
|
122
122
|
enabled: searchableProp,
|
123
|
-
exclude: function exclude(
|
124
|
-
return
|
125
|
-
}
|
123
|
+
exclude: function exclude(node) {
|
124
|
+
return node.disabled;
|
125
|
+
} // exclude: (option: FlattedCascaderDataItem) => {
|
126
|
+
// return checkCanLoadChildren(option, onLoadChildren)
|
127
|
+
// },
|
128
|
+
|
126
129
|
});
|
127
130
|
|
128
131
|
var _useSearchMode = useSearchMode({
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@hi-ui/cascader",
|
3
|
-
"version": "4.0.0-beta.
|
3
|
+
"version": "4.0.0-beta.42",
|
4
4
|
"description": "A sub-package for @hi-ui/hiui.",
|
5
5
|
"keywords": [],
|
6
6
|
"author": "HIUI <mi-hiui@xiaomi.com>",
|
@@ -72,5 +72,5 @@
|
|
72
72
|
"react": "^17.0.1",
|
73
73
|
"react-dom": "^17.0.1"
|
74
74
|
},
|
75
|
-
"gitHead": "
|
75
|
+
"gitHead": "74289b56d18d12073b6f2729f74ec3c457f6b269"
|
76
76
|
}
|