Skip to content

Commit

Permalink
fix: format switch props
Browse files Browse the repository at this point in the history
  • Loading branch information
chizukicn committed Nov 30, 2023
1 parent 8a85a92 commit 9645d72
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions packages/core/src/switch/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,26 @@ import type { ActivateEvent } from "@hoci/shared";
export const switchProps = defineHookProps({
modelValue: {
type: Boolean,
default: false
default: () => false
},
class: {
type: classPropType,
required: true
type: classPropType
},
activeClass: {
type: classPropType,
default: "checked"
type: classPropType
},
unactiveClass: {
type: classPropType,
default: "unchecked"
type: classPropType
},
activateEvent: {
type: String as PropType<ActivateEvent>
},
disabled: {
type: Boolean,
default: false
default: () => false
},
disabledClass: {
type: classPropType,
default: ""
type: classPropType
}
});

Expand Down

0 comments on commit 9645d72

Please sign in to comment.