前端学习(2730):重读vue电商网站40之使用vue-table-with-tree-grid

news/2024/10/17 14:22:16/

 

安装新的依赖 vue-tabel-with-tree-grid

vue-tabel-with-tree-grid 官方文档

安装完成后,在 main.js 入口文件内先导入 tree-tabel

然后全局注册组件 tree-tabel

页面中,我们使用了如下属性:

data 确定我们的数据源,columns定义我们的指定列,selection-type 设置是否打开多选框,expand-type 设置是否展示展开栏,show-index 添加索引列, border 给表格添加边框。

使用模板列:

通过在columns 设置 type 属性值为 template,即可设置模板列。

然后在我们界面表格区域,添加一个 template 模板,然后设置作用域插槽 slot 为在数据块定义的模板名称 isOk


http://www.ppmy.cn/news/248375.html

相关文章

百练:2729:求12以内n的阶乘 2730:求20以内n的阶乘 2731:求10000以内n的阶乘

2729:求12以内n的阶乘 #include<iostream> using namespace std; int main() { int n,sum1; scanf("%d",&n); for(int i1;i<n;i) sumsum*i; printf("%d",sum); return 0; } 2730:求20以内n的阶乘 #include<iostre…

oracle 27140,ORA-27140 ORA-27300 ORA-27301

查看节点1crs状态 [rootnode1 ~]# /oracle/app/grid/bin/crs_stat -t CRS-0184: Cannot communicate with the CRS daemon. 检查下ocr [rootnode1 bin]# ./ocrcheck PROT-602: Failed to retrieve data from the cluster registry PROC-26: Error while accessing the physical…

2020兰洽会VR全景展馆超千万人线上体验,签约总额2730亿元

万商云集&#xff0c;八方赴会。2020年7月2日-5日&#xff0c;以“深化经贸合作&#xff0c;共促绿色发展”为主题的第26届中国兰州投资贸易洽谈会在甘肃兰州如期举办。在商务部、国家市场监管总局、国务院台办、全国工商联、中国侨联、中国贸促会的大力推动下&#xff0c;此次…

PSP表格

PSP2.1Personal Software Process Stages预估耗时&#xff08;分钟&#xff09;实际耗时&#xff08;分钟&#xff09;Planning计划3060 Estimate 估计这个任务需要多少时间16902730Development开发7201040 Analysis 需求分析 (包括学习新技术)3030 Design Spec 生成设计文档30…

Oracle ASM警告日志错误ORA-00603:ORA-27504: ORA-27300:ORA-27301: ORA-27302:处理

1.监控告警主机ASM磁盘错误&#xff1a; Fri May 03 08:01:01 2019 skgxpvfynet: mtype: 61 process 60277 failed because of a resource problem in the OS. The OS has most likely run out of buffers (rval: 4) Errors in file /oracle/app/grid/diag/asm/asm/ASM1/trace…

Troubleshooting ORA-27154 ORA-27300 ORA-27301 ORA-27302

Troubleshooting ORA-27154 ORA-27300 ORA-27301 ORA-27302 这个错误是操作系统设置的问题&#xff0c;测试过程如下。 [oraclegtlions ~]$ sqlplus "/as sysdba" SQL*Plus: Release 10.2.0.5.0 - Production on Sat Feb 4 23:47:02 2012 Copyright (c) 1982, 2010, …

pycharm中Git常见操作与问题总结

1.问题 Committer identity unknown *** Please tell me who you are. Run git config --global user.email “youexample.com” git config --global user.name “Your Name” to set your account’s default identity. Omit --global to set the identity only in this rep…

ORA-27300,ORA-27301,ORA-27302

运维工程师在一台IBM P750&#xff08;AIX6.1&#xff09;上部署了一套oracle&#xff08;未建库&#xff09;&#xff0c;让我把商用的某库同其做一个DG容灾。我按正常步骤部署了DG。 1.在备库开始日志恢复 alter database recover managed standby database using current l…