build的时候,有个报错,,这里 报错太复杂,看不清楚啥问题
> vue-tsc --noEmit --skipLibCheck && vite build
src/layout/components/tags.vue:8:22 - error TS2322: Type '(el: ComponentInternalInstance | Element | null) => number | null' is not assignable to type 'string | Ref | ((ref: Element | ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null) => void) | undefined'.
Type '(el: ComponentInternalInstance | Element | null) => number | null' is not assignable to type '(ref: Element | ComponentPublicInstance<{}, {},
{}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null) => void'.
Types of parameters 'el' and 'ref' are incompatible.
Type 'Element | ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null' is not assignable to type 'ComponentInternalInstance | Element | null'.
Type 'ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>' is not assignable to type 'ComponentInternalInstance | Element | null'.
Type 'ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>' is missing the following properties from type 'Element': attributes, classList, className, clientHeight, and 160 more.
8 :ref='getTagsDom'
~~~
Found 1 error.
应该是 ts 校验 数据类型不匹配