We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea5542d commit 180a8b3Copy full SHA for 180a8b3
src/simple-props/composables.ts
@@ -19,7 +19,6 @@ export function useProps<T>(): T {
19
const getProps = () => {
20
return Object.fromEntries(Object.entries(instance.vnode.props || {}).map(([k, v]) => [camelizePropKey(k), v]))
21
}
22
- const attrs = useAttrs()
23
24
return new Proxy(
25
{},
@@ -35,7 +34,10 @@ export function useProps<T>(): T {
35
34
// @ts-ignore
36
return instance.props[key]
37
} else {
38
- return attrs[key as string] || attrs[p as string]
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
+ instance.proxy?.$attrs
39
+
40
+ return Reflect.get(getProps(), key, receiver)
41
42
},
43
ownKeys() {
0 commit comments