File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
packages/vue-primitives/src/label Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,11 @@ export interface UseLabelEmits {
1212 onMousedown ?: ( event : MouseEvent ) => void
1313}
1414
15- export function useLabel ( emits ?: UseLabelEmits ) {
15+ export interface UseLabelReturns {
16+ onMousedown ?: ( event : MouseEvent ) => void
17+ }
18+
19+ export function useLabel ( emits ?: UseLabelEmits ) : ( ) => UseLabelReturns {
1620 function onMousedown ( event : MouseEvent ) {
1721 // only prevent text selection if clicking inside the label itself
1822 const target = event . target as HTMLElement
Original file line number Diff line number Diff line change 33 type LabelProps ,
44 useLabel ,
55 type UseLabelEmits ,
6+ type UseLabelReturns ,
67} from './Label.ts'
78
89export { default as Label } from './Label.vue'
You can’t perform that action at this time.
0 commit comments