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

营销型网站特征京东网页版

营销型网站特征,京东网页版,网站 创意 方案,wordpress狮子歌歌后端接口传回的数据格式如下图 需要依靠后端传回的数据控制表格样式 实现代码 !-- 可视化配置-表格 -- 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.huolong8.cn/news/173930/

相关文章:

  • 网站空间与服务器自己设计logo的软件
  • wordpress 字体插件seo中文
  • 做会议活动的网站wordpress 4.7优化精减
  • 网站建设专网站开发 需要用到什么软件
  • 情侣做记录网站源码深圳it公司
  • 做网站的集群方案中山市住房和城乡建设局官网
  • 网站建设便宜公司绍兴seo
  • 罗村网站制作苏州百度
  • 我想建个网站怎么弄网站做网站卖东西
  • 建设银行网站源码西城区网站建设推广seo
  • 佛山三水网站建设莱芜新闻直播
  • 专业的网站建设大学做网站有哪些
  • 网站建设及域名网站设计开发项目书
  • 健康濮阳门户网站建设wordpress模板带小程序源码
  • 青岛外贸网站推广wordpress存储镜像
  • 网站建设需要什么人才模板王网站
  • 自己怎样用手机建网站最吃香的男生十大手艺
  • dw做网站步骤网站建设seo优化的好处
  • 做电影网站哪个系统好网站建设 图片栏目介绍
  • 新手学习做网站wordpress woo插件使用
  • 地图 添加到网站深圳市手机网站建设怎么样
  • 海淀区企业网站建设产品报价网
  • 学做网站会员做网站 附加信息
  • 网站建设客户开发方案微信公众平台注册要钱吗
  • 自己建网站流程摄影网站大全
  • 免费网站模板的制作方法程序开发步骤
  • 没有网站怎样做外贸黃冈建设厅官方网站
  • cco网站素材做论坛推广的网站
  • uugaicomlogo免费设计网站合肥工程建设信息网站
  • 莆田外贸专业建站asp.net 网站开发