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

if kl-form-item else kl-form-item 会导致切换以后 不刷新样式,不获取下拉值 #333

Open
ZianeCui opened this issue Mar 27, 2018 · 0 comments
Assignees
Labels

Comments

@ZianeCui
Copy link
Member

{#if isEdit}
<kl-form-item required title="货源地:" sourceKey="goodsSource">
        <kl-select message="请选择货源地" value={goodsVersion.goodsSourceCode}></kl-select>
</kl-form-item>
{#else}
<kl-form-item title="货源地:">
    {goodsVersion.goodsChannel}
</kl-form-item>
{/if}

上述代码,isEdit 默认为 false,切换以后,kl-form不会自动发送获取下拉的请求。

@ZianeCui ZianeCui self-assigned this Mar 27, 2018
ZianeCui added a commit that referenced this issue Mar 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant