Skip to content

Commit 9b07fdb

Browse files
committed
feat: add property disabled to CSettingsItem
1 parent 3425dcd commit 9b07fdb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/CSettingsItem.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
:prepend-icon="prependIcon"
44
:append-icon="clickable ? mdiChevronRight : undefined"
55
:ripple="clickable || type === 'switch'"
6+
:disabled="disabled"
67
:to="to"
78
min-height="64"
89
class="px-md-8 px-5"
@@ -108,6 +109,11 @@ const props = withDefaults(
108109
* Denotes the target route of the link. You can find more information about the `to` prop on the vue-router documentation.
109110
*/
110111
to?: RouteLocationRaw;
112+
113+
/**
114+
* Removes the ability to click or target the component.
115+
*/
116+
disabled?: boolean;
111117
}>(),
112118
{
113119
type: "default",

0 commit comments

Comments
 (0)