From b07b5b9af917f5ca5ac433017c3affe779868d0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raimund=20Schl=C3=BC=C3=9Fler?= Date: Tue, 31 Oct 2023 12:20:00 +0100 Subject: [PATCH] feat(NcListItem): migrate to vue 3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raimund Schlüßler --- src/components/NcListItem/NcListItem.vue | 18 +++++------------- src/components/NcVNodes/NcVNodes.vue | 5 ++--- src/components/index.js | 3 +-- styleguide.config.js | 3 +-- 4 files changed, 9 insertions(+), 20 deletions(-) diff --git a/src/components/NcListItem/NcListItem.vue b/src/components/NcListItem/NcListItem.vue index 2c8fed8f07..e7b7a91cc2 100644 --- a/src/components/NcListItem/NcListItem.vue +++ b/src/components/NcListItem/NcListItem.vue @@ -203,11 +203,10 @@ + v-bind="{ ...to && { custom: true, to } }">
  • + :class="{ 'list-item__wrapper--active' : isActive || active }" + v-bind="$attrs"> diff --git a/src/components/index.js b/src/components/index.js index a2df6bdfeb..270933ad8f 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -74,8 +74,7 @@ export { default as NcIconSvgWrapper } from './NcIconSvgWrapper/index.js' // Not exported on purpose as it is only meant as a base component // export { default as NcInputField } from './NcInputField/index.js' -// Not yet adjusted for vue3 -// export { default as NcListItem } from './NcListItem/index.js' +export { default as NcListItem } from './NcListItem/index.js' export { default as NcListItemIcon } from './NcListItemIcon/index.js' export { default as NcLoadingIcon } from './NcLoadingIcon/index.js' // export { default as NcModal } from './NcModal/index.js' diff --git a/styleguide.config.js b/styleguide.config.js index 25aeabeca4..d41b87697f 100644 --- a/styleguide.config.js +++ b/styleguide.config.js @@ -194,8 +194,7 @@ module.exports = async () => { { name: 'NcListItems', components: [ - //'src/components/NcListItem*/*.vue', - 'src/components/NcListItemIcon/*.vue', + 'src/components/NcListItem*/*.vue', ], }, {