-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: convert src/components/TextSwap.vue from class-based to Opt…
…ions/Composition API (#503) Summary: The conversion process involved: 1. Replacing the class-based syntax with Options API 2. Moving the @prop decorator to props option 3. Moving the class property to data() 4. Moving the class method to methods option 5. Using defineComponent for better TypeScript support 6. Properly typing the props Array as string[] The conversion is straightforward as this is a relatively simple component without complex inheritance or lifecycle hooks. Warnings: No warnings - this component has no base class dependencies or complex functionality that would cause issues during conversion.
- Loading branch information
Showing
2 changed files
with
42 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters