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

Panel控件的addContent方法不适用table布局 #626

Open
feibinyang opened this issue Jan 15, 2017 · 2 comments
Open

Panel控件的addContent方法不适用table布局 #626

feibinyang opened this issue Jan 15, 2017 · 2 comments

Comments

@feibinyang
Copy link
Member

当页面中使用table布局时,如DOM结果如下,就无法使用Panel控件来动态添加内容,因为当tr那段代码被插入div中时,会自动转化为div了(插入div的代码),导致无法使用:

<table>
    <thead>
        <tr>
            <th>1</th>
            <th>2</th>
        </tr>
    </thead>
    <tbody data-ui-type="Panel">
    </tbody>
</table>

<!-- target: xxx -->
<tr>
    <td>1</td>
    <td>2</td>
</tr>
@otakustay
Copy link
Member

这个问题比较麻烦,要处理所有table系列的标签,如果你可以给个PR的话非常欢迎,不然的话可能需要一些时间

另外你使用的是什么版本的esui?3.2的话因为有jq可能会容易些

@Justineo
Copy link
Member

我有时间看一下吧,似乎不需要这个 div,直接用 insertAdjacentHTML 就行。

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