-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- `Navbar` migrates to Vue 3. The custom directive `clickOutside` is also updated. Changes sufficient to render the documentation page of `Navbar` are made. - In `src/components/navbar/Navbar.vue`, - `render` takes no arguments because Vue 3 no longer supplies a create element function. The global `h` function is used as the `createElement` function instead. VNode generation functions that takes `createElement` as the first argument no longer take it. - The `directives` argument given to `createElement` is replaced with `withDirectives`. - `$scopedSlots` --> `$slots`. - `beforeDestroy` --> `beforeUnmount`. - `v-model` binding is replaced so that the default binding of Vue 3 can be used. - `active` prop --> `modelValue` - `update:active` event --> `update:modelValue` - `update:modelValue` is listed in `emits`. - In `src/components/navbar/NavbarBurger.vue`, - `v-on="$listeners"` --> `v-bind="$attrs"`. Because `$listeners` is integrated into `$attrs` on Vue 3. - In `src/components/navbar/NavbarItem.vue`, - `v-on="$listeners"` is removed because `$listeners` is integrated into `$attrs` on Vue 3. - `beforeDestroy` --> `beforeUnmount`. - In `src/components/navbar/NavbarDropdown.vue`, - Removes `v-on="$listeners"` because `$listeners` is integrated into `$attrs` on Vue 3. - Lists "active-change" in `emits`. - In `src/directives/clickOutside.js`, - The lifecycle hooks conform to Vue 3. - `bind` --> `beforeMount` - `update` --> `updated` - `unbind` --> `unmounted` - Common, - Automatic ESLint fix is applied.
- Loading branch information
Showing
5 changed files
with
90 additions
and
74 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
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
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