Skip to content

setup's parameter expose is not documented #1064

Closed
@wenfangdu

Description

@wenfangdu

Couldn't find expose anywhere in the document, please correct me if I'm mistaken.

Taken from https://github.com/vuejs/vue-next/blob/f7c54caeb1dac69a26b79c98409e9633a7fe4bd3/packages/runtime-core/src/component.ts#L179:

export declare interface SetupContext<E = EmitsOptions> {
  attrs: Data
  slots: Slots
  emit: EmitFn<E>
  expose: (exposed: Record<string, any>) => void
}

It's the savior for this type of issues: https://stackoverflow.com/q/67659374/7881859

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions