Table show error! #15
Closed
FalconWu2017
started this conversation in
General
Replies: 5 comments 3 replies
-
|
感谢你的反馈,已确认这是个bug,现正抢修这个问题中。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
修复完毕,请按照下面步骤修改你的代码:
<script src="https://cdn.jsdelivr.net/gh/kirakiray/ofa.js@4.5.18/dist/ofa.min.js"></script>
...
<tbody>
<template is="replace-temp">
<x-fill :value="$data.Columns" name="tableDetail"></x-fill>
</template>
</tbody>
...因为浏览器会默认将 |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
修改后的完整代码如下,可直接复制替换: <template component>
<style type="text/css">
.floatLeft {
float: left;
}
.key {
width: 30%;
}
.topBar {
position: fixed;
right: 100px;
}
.table {
border-collapse: collapse;
}
.table th {
text-align: left;
padding: 3px 5px;
border-bottom: 5px double #000000;
}
.table td {
padding: 3px 5px;
border-bottom: 1px solid #000;
}
.but {
padding: 5px 15px;
}
</style>
<div>
<div class="topBar">
<button class="but" id="bt_refresh" @click="refresh">刷新</button>
<button class="but" @click="scrollToTop">回到顶部</button>
</div>
<header>
<h1>数据库模型定义</h1>
</header>
<x-fill :value="list">
<div>
<h1>{{$data.DbTableName}} {{$data.TableDescription}}</h1>
<table class="table">
<thead>
<tr>
<th>列名称</th>
<th>列说明</th>
<th>DataType</th>
</tr>
</thead>
<tbody>
<template is="replace-temp">
<x-fill :value="$data.Columns" name="tableDetail"></x-fill>
</template>
</tbody>
</table>
</div>
</x-fill>
<template name="tableDetail">
<tr>
<td>{{$data.DbColumnName}}</td>
<td>{{$data.ColumnDescription}}</td>
<td>{{$data.DataType}}</td>
</tr>
</template>
</div>
<script>
export default {
data: {
list: [
{
DbTableName: "表1",
TableDescription: "这是表1",
Columns: [
{
DbColumnName: "表1列1",
ColumnDescription: "表1列1说明",
DataType: "表1列1类型",
},
{
DbColumnName: "表1列2",
ColumnDescription: "表1列2说明",
DataType: "表1列2类型",
},
],
},
{
DbTableName: "表2",
TableDescription: "这是表2",
Columns: [
{
DbColumnName: "表2列2",
ColumnDescription: "表2列2说明",
DataType: "表2列2类型",
},
],
},
],
},
};
</script>
</template> |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
还有 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
🙏 再次感谢你的反馈,你的案例已加入到自动化测试案例中: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
html:
Table content display position error:

Beta Was this translation helpful? Give feedback.
All reactions