-
-
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.
- The `Table` component and related components are updated. Changes sufficient to render the documentation page of the `Table` component are made. A commit of changes on the code of the documentation page will follow this commit. - In `src/components/table/Table.vue`, - `$scopedSlots` --> `$slots` because `$scopedSlots` is integrated into `$slots` on Vue 3. Unnecessary check of `$scopedSlots` is removed. - `defaultSlots` is no longer a copy of `$scopedSlots.default` because `$scopedSlots` no longer exists on Vue 3. Unfortunately, copying `$slots.default` did not work because I could not figure out how to obtain a component instance from a slot. As a workaround, `TableColumn` registers itself to the parent table by calling `_registerTableColumn` newly introduced to `Table`. `TableColumn` calls `_unregisterTableColumn` that is also newly introduced to `Table` when it is about to be unmounted. `refreshSlots` is removed. - The `footer` slot supports a fragment, i.e., template. The footer section of the Table documentation needs this change. - In `src/components/table/TableColumn.vue`, - `TableColumn` calls `_registerTableColumn` when it is created (see changes on `Table`). - `TableColumn` calls `_unregisterTableColumn` when it is about to be unmounted (see changes on `Table`). - `$destroy` is removed because Vue 3 no longer supports it. - In `src/components/table/TableMobileSort.vue`, - Not a component instance but its index is assigned to `value` of an `option` element. Because Vue 3 crashes when a component instance is assigned to `value` of an `option` element. The following conversion is added to keep the interface of `TableMobileSort` the same, - `sortMultipleSelect` ⟷ `sortMultipleSelectIndex` - `mobileSort` ⟷ `mobileSortIndex` - `key` binding is moved to `template` with `v-for`. - In `src/components/table/mockTableColumn`, - `$scopedSlots` --> `$slots` because `SlotComponent` migrates to Vue 3. - In `src/utils/SlotComponent.js`, - `render` no longer refers to `$scopedSlots` but `$slots` because `$scopedSlots` no longer exists on Vue 3. - TODO: `isVueComponent` has to be replaced. - Common, - Automatic ESLint fix is applied. - Manually removes `.native` on event handlers.
- Loading branch information
Showing
5 changed files
with
76 additions
and
46 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