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

[TOption] 按需加载不生效 #2753

Open
raohuiyong opened this issue Aug 31, 2023 · 2 comments
Open

[TOption] 按需加载不生效 #2753

raohuiyong opened this issue Aug 31, 2023 · 2 comments
Labels
usage the issue is about usage

Comments

@raohuiyong
Copy link

tdesign-vue 版本

1.6.4

重现链接

No response

重现步骤

使用TDesignResolver进行组件的按需加载,如果我直接使用则页面无法正确渲染option组件,而使用属性options设置则可以

# 方法一 不生效
<t-select
                  v-model="result.warntask"
                  multiple
                  clearable
                  filterable
                  :minCollapsedNum="1"
                  style="min-width: 180px"
                >
                  <t-option key="1" label="动态IP地址" :value="0" />
                  <t-option key="2" label="静态IP地址" :value="1" /> 
                </t-select>

# 方法二 生效
 <t-select
                  v-model="result.warntask"
                  :options="[
                    { label: '动态IP地址', value: 0 },
                    { label: '静态IP地址', value: 1 }
                  ]"
                  multiple
                  clearable
                  filterable
                  :minCollapsedNum="1"
                  style="min-width: 180px"
                ></t-select>

期望结果

不同过属性options也能正确渲染
image

实际结果

No response

框架版本

vue 2.6.14

浏览器版本

No response

系统版本

Win 10

Node版本

16.20.1

补充说明

No response

@github-actions
Copy link
Contributor

👋 @raohuiyong,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@uyarn uyarn added the usage the issue is about usage label Aug 31, 2023
@chiyu1996
Copy link
Contributor

使用vite时貌似没有这个问题,我在webpack5的项目里也会出现这个问题

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

No branches or pull requests

3 participants