Skip to content

Commit

Permalink
docs(script-setup): updated outdated tip (#2398)
Browse files Browse the repository at this point in the history
* docs(script-setup): updated outdated tip

* Update sfc-script-setup.md

---------

Co-authored-by: Evan You <[email protected]>
  • Loading branch information
wenfangdu and yyx990803 committed Jun 12, 2023
1 parent 9849d63 commit 3bd47dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/sfc-script-setup.md
Expand Up @@ -304,7 +304,7 @@ const attrs = useAttrs()

`<script setup>` can be used alongside normal `<script>`. A normal `<script>` may be needed in cases where we need to:

- Declare options that cannot be expressed in `<script setup>`, for example `inheritAttrs` or custom options enabled via plugins.
- Declare options that cannot be expressed in `<script setup>`, for example `inheritAttrs` or custom options enabled via plugins (Can be replaced by [`defineOptions`](/api/sfc-script-setup#defineoptions) in 3.3+).
- Declaring named exports.
- Run side effects or create objects that should only execute once.

Expand Down

0 comments on commit 3bd47dd

Please sign in to comment.