Skip to content

Commit

Permalink
fix(pro:tag-select): max exceeded alert content error (#1882)
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 committed Apr 8, 2024
1 parent c3703a8 commit c6eef62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/pro/tag-select/src/content/TagSelectPanel.tsx
Expand Up @@ -20,11 +20,11 @@ export default defineComponent({
setup(_, { slots }) {
const common = useGlobalConfig('common')
const {
props,
locale,
mergedPrefixCls,
filteredData,
dataMaxExceeded,
selectedValue,
inputValue,
inputFullyMatched,
setEditPanelOpened,
Expand All @@ -50,7 +50,7 @@ export default defineComponent({
<div class={`${prefixCls}-alert`}>
{slots.maxExceededAlert?.() ?? (
<IxAlert icon="info-circle">
{locale.maxExceededAlert.replace('${0}', toString(selectedValue.value?.length ?? 0))}
{locale.maxExceededAlert.replace('${0}', toString(props.tagDataLimit ?? 0))}
</IxAlert>
)}
</div>
Expand Down

0 comments on commit c6eef62

Please sign in to comment.