nutui-bingo icon indicating copy to clipboard operation
nutui-bingo copied to clipboard

代码有bug?

Open fantasyxxj opened this issue 1 year ago • 2 comments

src/packages/utils/create/component.ts:14:13 - error TS2352: Conversion of type '<PropsOptions extends Readonly<ComponentPropsOptions<Data>>, Props extends Readonly<ExtractPropTypes<PropsOptions>>>(_component: { ...; }) => (props: Record<...> & {}) => any' to type '{ <Props extends Record<string, any>, E extends EmitsOptions = {}, EE extends string = string, S extends SlotsType<Record<string, any>> = {}>(setup: (props: Props, ctx: SetupContext<E, S>) => RenderFunction | Promise<...>, options?: (Pick<...> & { ...; }) | undefined): (props: Props & EmitsToProps<...>) => any; <Pro...' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. Type '(props: Record<string, any> & {}) => any' is not comparable to type 'DefineComponent<any, any, any, any, any, any, any, any, any, PublicProps, Readonly, {} | { [x: string]: any; }, any>'. Type '(props: Record<string, any> & {}) => any' is not comparable to type 'ComponentPublicInstanceConstructor<any, any, any, any, ComputedOptions, MethodOptions>'. Type '(props: Record<string, any> & {}) => any' provides no match for the signature 'new (...args: any[]): any'.

14 create: function < ~~~~~~~~~~ 15 PropsOptions extends Readonly<ComponentPropsOptions>, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... 32 return defineComponent(_component as any); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 33 } as typeof defineComponent, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Found 1 error in src/packages/utils/create/component.ts:14

fantasyxxj avatar May 17 '23 02:05 fantasyxxj

我运行也有这个问题,请问你解决了吗

Zyl2082 avatar Oct 09 '23 07:10 Zyl2082

他们在taro里面用了html标签,全是报错的,只有h5能用

sparGuan avatar Nov 28 '23 09:11 sparGuan