mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [select] gurad value type error (#14074)
fix(components): [useSelect.ts] selected.slice is not a function select In the case of radio, the packaged code will report select. slice is not a function, because the radio selected is an object, and the object does not have the api of slice
This commit is contained in:
@@ -914,11 +914,11 @@ export const useSelect = (props, states: States, ctx) => {
|
||||
)
|
||||
|
||||
const showTagList = computed(() =>
|
||||
states.selected.slice(0, props.maxCollapseTags)
|
||||
props.multiple ? states.selected.slice(0, props.maxCollapseTags) : []
|
||||
)
|
||||
|
||||
const collapseTagList = computed(() =>
|
||||
states.selected.slice(props.maxCollapseTags)
|
||||
props.multiple ? states.selected.slice(props.maxCollapseTags) : []
|
||||
)
|
||||
|
||||
const navigateOptions = (direction) => {
|
||||
|
||||
Reference in New Issue
Block a user