@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.
@@ -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(option) {
158
- return index$1.checkCanLoadChildren(option, onLoadChildren);
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({
@@ -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, checkCanLoadChildren, getItemEventData } from './utils/index.js';
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(option) {
124
- return checkCanLoadChildren(option, onLoadChildren);
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.41",
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": "a5d4d719cac7f0eaf9293668ad436cccb67fa570"
75
+ "gitHead": "74289b56d18d12073b6f2729f74ec3c457f6b269"
76
76
  }