diff --git a/docs/content/2.components/input-menu.md b/docs/content/2.components/input-menu.md index 171349cc..460c2836 100644 --- a/docs/content/2.components/input-menu.md +++ b/docs/content/2.components/input-menu.md @@ -174,6 +174,8 @@ componentProps: Use the `#option-empty` slot to customize the content displayed when the `searchable` prop is `true` and there is no options. You will have access to the `query` property in the slot scope. +You can also configure this globally through the `ui.inputMenu.default.optionEmpty.label` config. The token `{query}` will be replaced by `query` property. Defaults to `No results for "{query}".`. + ::component-example --- component: 'input-menu-example-option-empty-slot' @@ -186,6 +188,8 @@ componentProps: Use the `#empty` slot to customize the content displayed when there is no options. Defaults to `No options.`. +You can also configure this globally through the `ui.inputMenu.default.empty.label` config. Defaults to `No options.`. + ::component-example --- component: 'input-menu-example-empty-slot' diff --git a/src/runtime/components/forms/InputMenu.vue b/src/runtime/components/forms/InputMenu.vue index 7714983c..5f15383b 100644 --- a/src/runtime/components/forms/InputMenu.vue +++ b/src/runtime/components/forms/InputMenu.vue @@ -75,12 +75,12 @@