当前位置: 首页 > news >正文

自己做网站的流程视频教程济南做网站xywlcn

自己做网站的流程视频教程,济南做网站xywlcn,网上做牙刷上什么网站,seo网络营销是什么意思后端接口传回的数据格式如下图 需要依靠后端传回的数据控制表格样式 实现代码 !-- 可视化配置-表格 -- templatediv classtabulation_main refmyDiv!-- 尝试过在mounted中使用this.$refs.myDiv.offsetHeight,获取父元素…后端接口传回的数据格式如下图 需要依靠后端传回的数据控制表格样式 实现代码 !-- 可视化配置-表格 -- templatediv classtabulation_main refmyDiv!-- 尝试过在mounted中使用this.$refs.myDiv.offsetHeight,获取父元素高度赋值给height的方法,发现该值只能在created之前确定,且不为动态 --el-table:datatableData:stripetableStyleObj.tableStyle.stripe true ? true : false:row-stylerowStyleHandle:row-class-nametableRowClassName:bordertableStyleObj.tableStyle.border true ? true : falsev-model:aligntableStyleObj.tableStyle.bodyTextAlign:show-headertableStyleObj.tableStyle.showHeader true ? true : false:header-cell-style{color: tableStyleObj.tableStyle.headerColor,font-size: tableStyleObj.tableStyle.headerFontSize px,text-align: tableStyleObj.tableStyle.headerTextAlign,}:header-row-class-nameheaderRowClassName:heighttableStyleObj.tableStyle.tableHeight stylewidth: 100%!-- 固定序号列 --el-table-columnv-iftableStyleObj.tableStyle.isShowTableIndex true ? true : false:fixedtableStyleObj.tableStyle.isTableIndexFixed true ? true : falsetypeindex:widthtableStyleObj.tableStyle.tableIndexWidth /el-table-columnel-table-columnv-for(tableItem, tableIndex) in tableStyleObj.tableColStyle:keytableIndex:proptableItem.prop:labeltableItem.label:widthtableItem.width /el-table-column/el-table/div /templatescript export default {data() {return {tableStyleObj: {// 表格整体样式tableStyle: {},// 表格列配置tableColStyle: [],},tableData: [],};},props: {flatteningCurrentItemForm: {type: Object,default: () {return {};},},},computed: {nthColor() {return this.tableStyleObj.tableStyle.nthColor;},othColor() {return this.tableStyleObj.tableStyle.othColor;},headerBackground() {return this.tableStyleObj.tableStyle.headerBackground;},},created() {// 获取表格配置this.tableStyleObj.tableStyle this.flatteningCurrentItemForm.attributeCaseMap;this.tableStyleObj.tableColStyle JSON.parse(this.flatteningCurrentItemForm.attributeCaseMap.tableColstyle);// 获取表格数据tableDataSource({dataSource: this.flatteningCurrentItemForm.dataSource,}).then((res) {this.tableData res.data;});},methods: {headerRowClassName({ row, rowIndex }) {return head-row;},rowStyleHandle({ row, rowIndex }) {// rowIndex从0开始if (rowIndex % 2 0) {// 奇数行var obj {text-align: this.tableStyleObj.tableStyle.bodyTextAlign,color: this.tableStyleObj.tableStyle.bodyColor,font-size: this.tableStyleObj.tableStyle.bodyFontSize px,};return obj;} else {// 偶数行var obj {text-align: this.tableStyleObj.tableStyle.bodyTextAlign,color: this.tableStyleObj.tableStyle.bodyColor,font-size: this.tableStyleObj.tableStyle.bodyFontSize px,};return obj;}},tableRowClassName({ row, rowIndex }) {if (rowIndex % 2 0) {return even-row;} else {return odd-row;}},}, }; /scriptstyle scoped langscss .tabulation_main {// 表格表头::v-deep(.el-table .el-table__header-wrapper th),::v-deep(.el-table .el-table__fixed-header-wrapper th) {background-color: v-bind(headerBackground) !important;}// 表格斑马纹::v-deep(.even-row td) {background-color: v-bind(nthColor) !important;}::v-deep(.odd-row td) {background-color: v-bind(othColor) !important;}::v-deep(.el-table) {background-color: v-bind(nthColor) !important;} } /style
http://www.w-s-a.com/news/478842/

相关文章:

  • 企业咨询管理服务wordpress seo tdk
  • 做网站前期创建文件夹flash 开发的网站
  • 天津网站制作培训搭建网站的工具
  • 江西网站建设价格低网上卖产品怎么推广
  • 做aelogo动效有什么好的网站建立网站站点的步骤
  • 无锡网站推广公司排名网站赚钱平台
  • 网站物理结构利用公共dns做网站解析
  • 苍南做网站微信建设网站哪家好
  • 华中农业大学基因编辑在线设计网站网站蓝色配色
  • 洛阳建设工程信息网站怎么在服务器建立网站
  • 陕西省建设部官方网站微信小程序怎么关闭这个功能
  • 唐河县住房和城乡建设局网站公司需要做网站
  • 体现网站特色免费个人域名网站
  • ps国外教程网站seo优化是什么职业
  • 什么是网站单页适合女生做的网站
  • 环境文化建设方案网站企业英语网站
  • 南通网站关键词推广响应式网站建设流程
  • 湖北响应式网站建设企业做漫画网站 漫画哪找
  • 东莞建设通网站中小企业网站的建设实践报告
  • 合肥网站建设电话wordpress 点击量
  • 公司网站制作注意什么wordpress如何邀请人看
  • 做渲染的网站太原做网站兼职
  • 网站开发实施方案怎么设置wordpress底栏文字
  • 网站建设朝阳学前端有必要找培训机构吗
  • 自适应网站好处wordpress ftp验证
  • 网站建设的时间免费ppt模板的网站
  • 建个人网站一般多少钱ppt下载网站哪个好
  • 网站建设比赛网站建设合同标的怎么写
  • 中国做的儿童编程网站网站建设模板网站
  • 电脑做系统网站微信开店