Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

HTML native attributes are missing in tsx #3301

Closed
laterdayi opened this issue Jun 18, 2023 · 5 comments
Closed

HTML native attributes are missing in tsx #3301

laterdayi opened this issue Jun 18, 2023 · 5 comments

Comments

@laterdayi
Copy link

laterdayi commented Jun 18, 2023

image

        <n-tag type='default' onClick={() => test()}>
            test
        </n-tag>
@laterdayi
Copy link
Author

<script setup lang="ts">
import { type TagProps } from 'naive-ui';

defineProps<TagProps>();
const slots = useSlots();
</script>

<template>
  <n-tag>

  </n-tag>
</template>

@laterdayi
Copy link
Author

It is OK to use it in vue templates. But a type error is displayed in tsx

@yx1126
Copy link

yx1126 commented Jun 19, 2023

I have the same problem
This is my menu component

image

and when i used it in the tsx file

image
image

@laterdayi
Copy link
Author

不能将类型“{ xmlns: string; "xmlns:xlink": string; fill: string; }”分配给类型“SVGAttributes & ReservedProps”。
类型“SVGAttributes & ReservedProps”上不存在属性“xmlns:xlink”。

@so1ve
Copy link
Member

so1ve commented Aug 22, 2023

Closed because #3496 is more descriptive

@so1ve so1ve closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants