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

why no setup 7.6.4 #695

Open
yangnuowei88 opened this issue Nov 13, 2024 · 3 comments
Open

why no setup 7.6.4 #695

yangnuowei88 opened this issue Nov 13, 2024 · 3 comments

Comments

@yangnuowei88
Copy link

1731492951785

<script lang="ts" setup> import type { VxeGridDefines, VxeGridInstance, VxeTableDefines } from 'vxe-table' import type { IOptionListType } from './type' defineOptions({ name: 'SjzySelect', }) const props = defineProps(sjzySelectBasicProps) const emit = defineEmits<{ 'update:modelValue': [val: any] 'clear': [val: any] 'select-change': [val: any] 'change': [val: any] }>() const t = GlobalConfig.i18n /** 绑定值 */ const selectValue = ref() /** elselect */ const elSelectRef = ref>() /** 分页参数 */ const pageIndex = ref(1) const pageSize = ref(30) /** 当前选中值对象 */ const selectOption = ref()
@yangnuowei88
Copy link
Author

采用setup 语法糖,但是不显示setup 里面的内容,为什么?

@emahuni
Copy link

emahuni commented Feb 4, 2025

I have seen this issue for a long time now. Some components have setup state and some don't. Simple reproduction is with vuejs.org's own playground. Just go to playground; the initial example demonstrates this well. There is no setup state for REPL:

Image

But there is setup state for the header:

Image

@kadebedis
Copy link

I am having the same issue in 7.7.0. Has anyone else found a fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants