diff --git a/docs/en-US/component/autocomplete.md b/docs/en-US/component/autocomplete.md index 85bddf30b2..12cb0aa98e 100644 --- a/docs/en-US/component/autocomplete.md +++ b/docs/en-US/component/autocomplete.md @@ -43,6 +43,16 @@ autocomplete/remote-search ::: +## Custom Loading ^(2.5.0) + +Override loading content. + +:::demo + +autocomplete/custom-loading + +::: + ## API ### Attributes @@ -77,13 +87,14 @@ autocomplete/remote-search ### Slots -| Name | Description | Type | -| ------- | ------------------------------------ | ---------------------------------------- | -| default | custom content for input suggestions | ^[object]`{ item: Record }` | -| prefix | content as Input prefix | - | -| suffix | content as Input suffix | - | -| prepend | content to prepend before Input | - | -| append | content to append after Input | - | +| Name | Description | Type | +| ---------------- | ------------------------------------ | ---------------------------------------- | +| default | custom content for input suggestions | ^[object]`{ item: Record }` | +| prefix | content as Input prefix | - | +| suffix | content as Input suffix | - | +| prepend | content to prepend before Input | - | +| append | content to append after Input | - | +| loading ^(2.5.0) | override loading content | - | ### Exposes diff --git a/docs/examples/autocomplete/custom-loading.vue b/docs/examples/autocomplete/custom-loading.vue new file mode 100644 index 0000000000..b35c45c7c4 --- /dev/null +++ b/docs/examples/autocomplete/custom-loading.vue @@ -0,0 +1,165 @@ + + + + + diff --git a/packages/components/autocomplete/src/autocomplete.vue b/packages/components/autocomplete/src/autocomplete.vue index 8f383c85b3..8abb59d18d 100644 --- a/packages/components/autocomplete/src/autocomplete.vue +++ b/packages/components/autocomplete/src/autocomplete.vue @@ -77,9 +77,11 @@ role="listbox" >
  • - - - + + + + +