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

广州专业网站制作公司在线观看的seo综合查询

广州专业网站制作公司,在线观看的seo综合查询,滨州企业做网站,旅游网站的建设的意义注意添加这个属性,会影响到有多少个层级的表头: :header-height“[50, 40]”,即后面的columnIndex 如果有fix的列CustomizedHeader会被调用多次,如果有多个层级的表头,也会被调用多次, 实际被调用次数是(fix数 1 * 表头层级数量) 以下代码均删除了JSX TS版本代码 templ…注意添加这个属性,会影响到有多少个层级的表头: :header-height“[50, 40]”,即后面的columnIndex 如果有fix的列CustomizedHeader会被调用多次,如果有多个层级的表头,也会被调用多次, 实际被调用次数是(fix数 1 * 表头层级数量) 以下代码均删除了JSX TS版本代码 templatediv stylewidth: 100%;height: calc(100vh - 84px)el-auto-resizertemplate #default{ height, width }el-table-v2fixed:columnscolumns:datadata:sort-bysortBy:header-height[50, 40]:header-classheaderClasscolumn-sortonSort:widthwidth:heightheighttemplate #headerpropscustomized-header v-bindprops/customized-header/template/el-table-v2/template/el-auto-resizer/div /templatescript langts setup import {h, ref} from vue import {TableV2FixedDir, TableV2Placeholder, TableV2SortOrder} from element-plus import type {HeaderClassNameGetter,TableV2CustomizedHeaderSlotParam, } from element-plus import type {SortBy} from element-plus// 生成带二级表头的 columns function generateColumns(length 10, prefix column-, props?: any) {return Array.from({length}).map((_, columnIndex) ({...props,key: ${prefix}${columnIndex},dataKey: ${prefix}${columnIndex},title: Column ${columnIndex},width: 150,})) }function generateData(columns: ReturnTypetypeof generateColumns,length 200,prefix row- ) {return Array.from({ length }).map((_, rowIndex) {return columns.reduce((rowData, column, columnIndex) {rowData[column.dataKey] Row ${rowIndex} - Col ${columnIndex}return rowData},{id: ${prefix}${rowIndex},parentId: null,})}) }function CustomizedHeader({cells, columns, headerIndex}) {if (headerIndex 1) return cellsconst groupCells []let width 0let idx 0columns.forEach((column, columnIndex) {if (column.placeholderSign TableV2Placeholder) {groupCells.push(cells[columnIndex])} else {width cells[columnIndex].props.column.widthidxconst nextColumn columns[columnIndex 1]if (columnIndex columns.length - 1 ||nextColumn?.placeholderSign TableV2Placeholder ||idx (headerIndex 0 ? 4 : 2)) {groupCells.push(h(div,{class: flex items-center justify-center custom-header-cell,role: columnheader,style: {...cells[columnIndex].props.style,width: ${width}px,border: 2px solid #fff}},Group width ${width}))width 0idx 0}}})return groupCells; }const headerClass ({headerIndex,}: ParametersHeaderClassNameGetterany[0]) {if (headerIndex 0) return el-primary-colorreturn }const columns generateColumns(70) let data generateData(columns, 20)columns[0].fixed TableV2FixedDir.LEFTfor (let i 0; i 3; i) columns[i].sortable trueconst sortBy refSortBy({key: column-0,order: TableV2SortOrder.ASC, })const onSort (_sortBy: SortBy) {data data.reverse()sortBy.value _sortBy } /scriptstyle .el-el-table-v2__header-row .custom-header-cell {border-right: 1px solid var(--el-border-color); }.el-el-table-v2__header-row .custom-header-cell:last-child {border-right: none; }.el-primary-color {background-color: var(--el-color-primary);color: var(--el-color-white);font-size: 14px;font-weight: bold; }.el-primary-color .custom-header-cell {padding: 0 4px; } /styleJS版本 templatediv stylewidth: 100%;height: calc(100vh - 84px)el-auto-resizertemplate #default{ height, width }el-table-v2fixed:columnscolumns:datadata:sort-bysortBy:header-height[50, 40]:header-classheaderClasscolumn-sortonSort:widthwidth:heightheighttemplate #headerpropsCustomizedHeader v-bindprops/CustomizedHeader/template/el-table-v2/template/el-auto-resizer/div /templatescript setup import { h, ref } from vue import {TableV2FixedDir,TableV2Placeholder,TableV2SortOrder } from element-plus// 生成带二级表头的 columns function generateColumns(length 10, prefix column-) {return Array.from({ length }).map((_, columnIndex) ({key: ${prefix}${columnIndex},dataKey: ${prefix}${columnIndex},title: Column ${columnIndex},width: 150})) }function generateData(columns, length 200, prefix row-) {return Array.from({ length }).map((_, rowIndex) {return columns.reduce((rowData, column, columnIndex) {rowData[column.dataKey] Row ${rowIndex} - Col ${columnIndex}return rowData},{id: ${prefix}${rowIndex},parentId: null})}) }function CustomizedHeader({ cells, columns, headerIndex }) {if (headerIndex 1) return cellsconst groupCells []let width 0let idx 0columns.forEach((column, columnIndex) {if (column.placeholderSign TableV2Placeholder) {groupCells.push(cells[columnIndex])} else {width cells[columnIndex].props.column.widthidxconst nextColumn columns[columnIndex 1]if (columnIndex columns.length - 1 ||nextColumn?.placeholderSign TableV2Placeholder ||idx (headerIndex 0 ? 4 : 2)) {groupCells.push(h(div,{class: flex items-center justify-center custom-header-cell,role: columnheader,style: {...cells[columnIndex].props.style,width: ${width}px,border: 2px solid #fff}},Group width ${width}))width 0idx 0}}})return groupCells }const headerClass ({ headerIndex }) {return headerIndex 0 ? el-primary-color : }const columns generateColumns(70) let data generateData(columns, 20)columns[0].fixed TableV2FixedDir.LEFTfor (let i 0; i 3; i) {columns[i].sortable true }const sortBy ref({key: column-0,order: TableV2SortOrder.ASC })const onSort (_sortBy) {// 创建新数组以保持响应性data [...data].reverse()sortBy.value _sortBy }/scriptstyle .el-el-table-v2__header-row .custom-header-cell {border-right: 1px solid var(--el-border-color); }.el-el-table-v2__header-row .custom-header-cell:last-child {border-right: none; }.el-primary-color {background-color: var(--el-color-primary);color: var(--el-color-white);font-size: 14px;font-weight: bold; }.el-primary-color .custom-header-cell {padding: 0 4px; } /style
http://www.zqtcl.cn/news/846444/

相关文章:

  • 西乡网站建设政务网站开发协议
  • 美食网站开发环境北京app网站建设
  • 郑州网站建设推广渠道重庆网站建设公司下载
  • 宜宾营销型网站建设网站建设需要什么资质
  • 重庆建网站有哪些学跨境电商要多少钱
  • 上海建设钢结构工程网站深圳电器公司排名
  • 淄博网站建设找淄深网江苏省建设斤网站
  • 免费行情软件app网站红色西安做网站印象网络
  • 宁波网站建设小程序开发聊城wap网站建设
  • 陇南网站网站建设泰安网站的建设
  • 哪个网站有介绍拿到家做的手工活建设银行网站怎么修改手机号码吗
  • 网站地图怎么用淘宝客推广网站建设
  • 外贸零售网站建设购物网站支付功能怎么做
  • 淘宝客如何做自己的网站西宁工程建设招聘信息网站
  • 天津都有哪些制作网站郑州官网首页
  • 个人网站开发模式海南省建设公司官网
  • edu网站开发做爰视频在线观看免费网站
  • 安防公司网站模板网站建设模板下载
  • 贵阳网站建设方案维护一 建设茶叶网站前的市场分析
  • 山东东营建设网官方网站百度电脑版
  • 做网站前途如何海尔网站建设推广
  • 投资公司网站建设万网域名安装wordpress
  • 高端网站建设企业官网建设wordpress相似推荐
  • php网站开发师招聘wordpress怎么换头像
  • 门禁考勤网站建设广西建设
  • 互助盘网站怎么做的织梦免费企业网站
  • 做羊毛毡的网站电子商务网站建设品牌
  • 用vue做商城网站常用的js教做发型的网站
  • 江西省寻乌县建设局网站广州网站建设一般多少钱
  • 做网站公司郑州郑州的网站建设公司哪家好网站开发word