File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
packages/vue-primitives/src/toggle Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ export interface ToggleProps extends PrimitiveProps {
1111 * @defaultValue false
1212 */
1313 defaultPressed ?: boolean
14-
15- // disabled?: boolean
1614}
1715
1816// eslint-disable-next-line ts/consistent-type-definitions
@@ -21,6 +19,4 @@ export type ToggleEmits = {
2119 * The callback that fires when the state of the toggle changes.
2220 */
2321 'update:pressed' : [ value : boolean ]
24-
25- // 'click': [value: Event]
2622}
Original file line number Diff line number Diff line change @@ -41,6 +41,6 @@ const onClick = composeEventHandlers((event: Event) => {
4141 :data-state =" pressed ? 'on' : 'off'"
4242 :data-disabled =" $attrs.disabled ? '' : undefined"
4343 >
44- <slot /> {{ pressed }}
44+ <slot />
4545 </Primitive >
4646</template >
You can’t perform that action at this time.
0 commit comments