Skip to content

Commit 8e3f5f8

Browse files
committed
增加table显示、隐藏序号、checkbox属性
1 parent 5fb564c commit 8e3f5f8

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

Vol.Vue/src/views/document/vueDev.vue

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,6 +2433,46 @@ export default {
24332433
tips: ``,
24342434
img: "",
24352435
},
2436+
{
2437+
title: "table显示序号checkbox",
2438+
content: [`<div style="color:#D4D4D4;background-color:#1E1E1E;font-family:Consolas, &quot;font-size:14px;line-height:19px;white-space:pre;">
2439+
<div>
2440+
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#dcdcaa;">onInit</span>&nbsp;()&nbsp;{
2441+
</div>
2442+
<div>
2443+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#6a9955;">//需要更新前端组件2020.11.01</span>
2444+
</div>
2445+
<div>
2446+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#6a9955;">//隐藏checkbox列(默认是显示的)</span>
2447+
</div>
2448+
<div>
2449+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#569cd6;">this</span>.<span style="color:#9cdcfe;">ck</span>&nbsp;=&nbsp;<span style="color:#569cd6;">false</span>;
2450+
</div>
2451+
<div>
2452+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#6a9955;">//显示序号(默认隐藏)</span>
2453+
</div>
2454+
<div>
2455+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#569cd6;">this</span>.<span style="color:#9cdcfe;">columnIndex</span>&nbsp;=&nbsp;<span style="color:#569cd6;">true</span>;
2456+
</div>
2457+
<div>
2458+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#6a9955;">//从表配置同上</span>
2459+
</div>
2460+
<div>
2461+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#6a9955;">//&nbsp;&nbsp;this.detailOptions.ck&nbsp;=&nbsp;false;</span>
2462+
</div>
2463+
<div>
2464+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#6a9955;">//&nbsp;&nbsp;this.detailOptions.columnIndex&nbsp;=&nbsp;true;</span>
2465+
</div>
2466+
<div>
2467+
&nbsp;&nbsp;&nbsp;&nbsp;}
2468+
</div>
2469+
</div>`],
2470+
tips: `如果是单独引用的voltable组件,同样适用上面的方法`,
2471+
img:
2472+
"https://doc-vue-1256993465.cos.ap-chengdu.myqcloud.com/43.png?imageMogr2/thumbnail/!50p",
2473+
},
2474+
2475+
24362476
{
24372477
title: "编辑表单实时计算",
24382478
content: [

0 commit comments

Comments
 (0)