diff --git a/components/lib/tree/BaseTree.vue b/components/lib/tree/BaseTree.vue index c91824417..1dc3e07c5 100644 --- a/components/lib/tree/BaseTree.vue +++ b/components/lib/tree/BaseTree.vue @@ -34,6 +34,10 @@ export default { type: String, default: undefined }, + loadingMode: { + type: String, + default: 'mask' + }, filter: { type: Boolean, default: false diff --git a/components/lib/tree/Tree.d.ts b/components/lib/tree/Tree.d.ts index a45c13807..4636d3cd3 100755 --- a/components/lib/tree/Tree.d.ts +++ b/components/lib/tree/Tree.d.ts @@ -232,6 +232,11 @@ export interface TreeProps { * @deprecated since v3.27.0. Use 'loadingicon' slot. */ 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/components/lib/tree/Tree.vue b/components/lib/tree/Tree.vue index 4d061c7b7..f4da4945b 100755 --- a/components/lib/tree/Tree.vue +++ b/components/lib/tree/Tree.vue @@ -1,6 +1,6 @@