diff --git a/packages/primevue/src/treeselect/BaseTreeSelect.vue b/packages/primevue/src/treeselect/BaseTreeSelect.vue index f4205c3b3..06ab49b77 100644 --- a/packages/primevue/src/treeselect/BaseTreeSelect.vue +++ b/packages/primevue/src/treeselect/BaseTreeSelect.vue @@ -56,6 +56,18 @@ export default { type: Boolean, default: null }, + loading: { + type: Boolean, + default: false + }, + loadingIcon: { + type: String, + default: undefined + }, + loadingMode: { + type: String, + default: 'mask' + }, filter: { type: Boolean, default: false diff --git a/packages/primevue/src/treeselect/TreeSelect.d.ts b/packages/primevue/src/treeselect/TreeSelect.d.ts index 9b7124b0d..9d89d8697 100644 --- a/packages/primevue/src/treeselect/TreeSelect.d.ts +++ b/packages/primevue/src/treeselect/TreeSelect.d.ts @@ -230,6 +230,20 @@ export interface TreeSelectProps { * @defaultValue false */ metaKeySelection?: boolean | undefined; + /** + * Whether to display loading indicator. + * @defaultValue false + */ + loading?: boolean | undefined; + /** + * Icon to display when tree is loading. + */ + loadingIcon?: string | undefined; + /** + * Loading mode display. + * @defaultValue mask + */ + loadingMode?: 'mask' | 'icon' | undefined; /** * When specified, displays an input field to filter the items. * @defaultValue false diff --git a/packages/primevue/src/treeselect/TreeSelect.vue b/packages/primevue/src/treeselect/TreeSelect.vue index e7c75fc5f..d92c8acb0 100644 --- a/packages/primevue/src/treeselect/TreeSelect.vue +++ b/packages/primevue/src/treeselect/TreeSelect.vue @@ -49,7 +49,6 @@ -