Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

tsx template error > 1.2.* #3289

Closed
laterdayi opened this issue Jun 15, 2023 · 4 comments · Fixed by #3533
Closed

tsx template error > 1.2.* #3289

laterdayi opened this issue Jun 15, 2023 · 4 comments · Fixed by #3533
Labels
bug Something isn't working

Comments

@laterdayi
Copy link

    render: rowData => {
      return (
        <BaseTag onClick={() => tableRowClick(rowData)}>
          {i18nt(rowData.operateType)}
        </BaseTag>
      );
    }
@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

不能将类型“{ type: "default" | "primary"; onClick: () => Promise<void>; }”分配给类型“IntrinsicAttributes & { readonly themeOverrides?: ExtractThemeOverrides<Theme<"Tag", { closeBorderRadius: string; heightTiny: string; heightSmall: string; heightMedium: string; heightLarge: string; ... 81 more ...; closeMarginRtl: string; }, any>> | undefined; ... 28 more ...; style?: unknown; }”。
  类型“IntrinsicAttributes & { readonly themeOverrides?: ExtractThemeOverrides<Theme<"Tag", { closeBorderRadius: string; heightTiny: string; heightSmall: string; heightMedium: string; heightLarge: string; ... 81 more ...; closeMarginRtl: string; }, any>> | undefined; ... 28 more ...; style?: unknown; }”上不存在属性“onClick”。ts(2322)
(property) onClick: () => Promise<void>

@laterdayi
Copy link
Author

If defineProps is not specified for tag, type will report an error, if defineProps() is specified; , onClick will report an error

@laterdayi laterdayi changed the title tsx template error, in 1.7.13 tsx template error > 1.2.* Jun 15, 2023
so1ve added a commit to so1ve/language-tools that referenced this issue Sep 4, 2023
@so1ve so1ve added the bug Something isn't working label Sep 6, 2023
@laterdayi
Copy link
Author

/iuE9pIANnWxLMuZU3Tx2iCDtw7N+jIYCDSJltlIpEBSsYci/32HpO3Ik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pvBHLuXNjHlubBi02v7btIwsMozRiYZaSgDwIzolxWle5bUHNFzRQtST/j5dsBHuDQzahUTTYmsuz/I/gKPiQAMnd6DTcuMB+I6NunH3wGT3TbMmu6bok67rX3R6geFEVJegsuaN4qScrLi hZEfKj08b5fmqQo+Oo3w1OiJrtc0iVJ7w/wP+sXrs7pT/g+6Mga+ atE5ERZ8bvbP8ga6J0QPml1sWnDEeFHInlR6xit2hV8aiDshp6J9sZ0mLL8L/lurQiT26R0oKYaRt/0Y/pM6k/hQrV3VXz8D+cpfao=XKStcPVhN3t3B6Di0rLlS/TCr8WXIGDzLztJpvBHLuXNjHlubBi02v7btIwsMozRiYZaSgDwIzolxWle5bUHNFzRQtST/j5dsBHuDQzahUTTYmsuz/I/gKPiQAMnd6DTcuMB+I6NunH3wGT3TbMmu6bo k67rX3R6geFEVJeGsuaN4qScrLihZEfKj08b5fmqQo+Oo3w1OiJrtc0iVJ7w/wP+sXrs7pT/g+6Mga+atE5ERZ8bvbP8ga6J0QPml1sWnDEeFHInlR6xit2hV8aiDshp6J9sZ0MLL8L/lurQ iT26R0oKYaRt/0Y/pM6k/hQrV3VXz8D+cpfao=XKStcPVhN3t3B6Di0rLlS/TCr8WXIGDzLztJpvBHLuXNjHlubBi02v7btIwsMozRiYZaSgDwIzolxWle5bUHNFzRQtST/j5dsBHuDQzahUTTYmsuz/I/gKPiQAMnd6DTcuMB+I6NunH3wGT3TbMmu6bo k67rX3R6geFEVJeGsuaN4qScrLihZEfKj08b5fmqQo+Oo3w1OiJrtc0iVJ7w/wP+sXrs7pT/g+6Mga+atE5ERZ8bvbP8ga6J0QPml1sWnDEeFHInlR6xit2hV8aiDshp6J9sZ0MLL8L/lurQ iT26R0oKYaRt/0Y/pM6k/hQrV3VXz8D+cpfao=

@so1ve @johnsoncodehk 1.8.14 still exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants