zoukankan      html  css  js  c++  java
  • element ui table的所有属性

    1. table 的props:

          data: {
            type: Array,
            default: function() {
              return [];
            }
          },
    
          size: String,
    
           [String, Number],
    
          height: [String, Number],
    
          maxHeight: [String, Number],
    
          fit: {
            type: Boolean,
            default: true
          },
    
          stripe: Boolean,
    
          border: Boolean,
    
          rowKey: [String, Function],
    
          context: {},
    
          showHeader: {
            type: Boolean,
            default: true
          },
    
          showSummary: Boolean,
    
          sumText: String,
    
          summaryMethod: Function,
    
          rowClassName: [String, Function],
    
          rowStyle: [Object, Function],
    
          cellClassName: [String, Function],
    
          cellStyle: [Object, Function],
    
          headerRowClassName: [String, Function],
    
          headerRowStyle: [Object, Function],
    
          headerCellClassName: [String, Function],
    
          headerCellStyle: [Object, Function],
    
          highlightCurrentRow: Boolean,
    
          currentRowKey: [String, Number],
    
          emptyText: String,
    
          expandRowKeys: Array,
    
          defaultExpandAll: Boolean,
    
          defaultSort: Object,
    
          tooltipEffect: String,
    
          spanMethod: Function,
    
          selectOnIndeterminate: {
            type: Boolean,
            default: true
          },
    
          indent: {
            type: Number,
            default: 16
          },
    
          treeProps: {
            type: Object,
            default() {
              return {
                hasChildren: 'hasChildren',
                children: 'children'
              };
            }
          },
    
          lazy: Boolean,
    
          load: Function

    2. table column的props

    props: {
      //对应列的类型。如果设置了 selection 则显示多选框;如果设置了 index 则显示该行的索引(从 1 开始计算);如果设置了 expand 则显示为一个可展开的按钮 type: { type: String,
    default: 'default' }, label: String, className: String, labelClassName: String, property: String, prop: String, {}, minWidth: {}, renderHeader: Function, sortable: { type: [Boolean, String], default: false }, sortMethod: Function, sortBy: [String, Function, Array], resizable: { type: Boolean, default: true }, columnKey: String, align: String, headerAlign: String, showTooltipWhenOverflow: Boolean, showOverflowTooltip: Boolean, fixed: [Boolean, String], formatter: Function, selectable: Function, reserveSelection: Boolean, filterMethod: Function, filteredValue: Array, filters: Array, filterPlacement: String, filterMultiple: { type: Boolean, default: true }, index: [Number, Function], sortOrders: { type: Array, default() { return ['ascending', 'descending', null]; }, validator(val) { return val.every(order => ['ascending', 'descending', null].indexOf(order) > -1); } } }
  • 相关阅读:
    #35 string(缩点+动态规划)
    BZOJ2744 HEOI2012朋友圈(二分图匹配)
    BZOJ2749 HAOI2012外星人(数论)
    BZOJ2743 HEOI2012采花(离线+树状数组)
    洛谷 P3539 [POI2012]ROZ-Fibonacci Representation 解题报告
    关于图论的一些问题模型
    洛谷 P2505 [HAOI2012]道路 解题报告
    ST表
    洛谷 P4754 True Vegetable 解题报告
    洛谷 P2053 [SCOI2007]修车 解题报告
  • 原文地址:https://www.cnblogs.com/lhuser/p/11263288.html
Copyright © 2011-2022 走看看