Skip to content

@watch 无法监听 props 属性的变化? #98

@zhuyuanmin

Description

@zhuyuanmin

@watch 无法监听 props 属性的变化?

@property({ type: String })
activeKey: string | undefined;

@watch("activeKey", { immediate: true })
compute(): void {
   // todo  not excute
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions