diff --git a/packages/frameworks/vue/package.json b/packages/frameworks/vue/package.json index 87b8c3f37a..ffebd96760 100644 --- a/packages/frameworks/vue/package.json +++ b/packages/frameworks/vue/package.json @@ -32,11 +32,9 @@ "valtio": "^1.6.0" }, "devDependencies": { - "@vue/runtime-dom": "^3.2.21", "vue": "^3.0.5" }, "peerDependencies": { - "@vue/runtime-dom": ">=3.2.0", "vue": ">=3.0.0" }, "scripts": { diff --git a/packages/frameworks/vue/src/prop-types.ts b/packages/frameworks/vue/src/prop-types.ts index ccf402c6ec..ff657a9bf3 100644 --- a/packages/frameworks/vue/src/prop-types.ts +++ b/packages/frameworks/vue/src/prop-types.ts @@ -1,14 +1,16 @@ -import type { ElementAttrs, HTMLAttributes, NativeElements } from "@vue/runtime-dom" +import * as Vue from "vue" + +type ReservedProps = { + key?: string | number | symbol + ref?: string | Vue.Ref | ((ref: Element | Vue.ComponentPublicInstance | null) => void) +} + +type Attrs = T & ReservedProps export type PropTypes = { - button: NativeElements["button"] - input: NativeElements["input"] - output: NativeElements["output"] - textarea: NativeElements["textarea"] - label: NativeElements["label"] - p: NativeElements["p"] - ul: NativeElements["ul"] - ol: NativeElements["ol"] - li: NativeElements["li"] - element: ElementAttrs + button: Attrs + input: Attrs + output: Attrs + label: Attrs + element: Attrs }