fix: optionFilterProp not support children #3204
parent
8da63a6a24
commit
35ab3bd8c0
|
@ -1 +1 @@
|
|||
Subproject commit b24360cc91640d63e25b88bbecdb530823af8913
|
||||
Subproject commit 7cccccbb5571e61b35aca0d454eb83bc5924995e
|
|
@ -54,6 +54,7 @@ import {
|
|||
import createRef from '../_util/createRef';
|
||||
import PropTypes, { withUndefined } from '../_util/vue-types';
|
||||
import initDefaultProps from '../_util/props-util/initDefaultProps';
|
||||
import warning from '../_util/warning';
|
||||
|
||||
const DEFAULT_OMIT_PROPS = [
|
||||
'children',
|
||||
|
@ -341,7 +342,11 @@ export default function generateSelector<
|
|||
const useInternalProps = computed(
|
||||
() => props.internalProps && props.internalProps.mark === INTERNAL_PROPS_MARK,
|
||||
);
|
||||
|
||||
warning(
|
||||
props.optionFilterProp !== 'children',
|
||||
'Select',
|
||||
'optionFilterProp not support children, please use label instead',
|
||||
);
|
||||
const containerRef = ref(null);
|
||||
const triggerRef = ref(null);
|
||||
const selectorRef = ref(null);
|
||||
|
|
Loading…
Reference in New Issue