index.js 534 Bytes
import tableProps from './props';

export default {
  name: 'Table',
  props: {
    type: {
      type: String,
      default: 'normal',
    },
    value: {
      type: Array,
      default() {
        return [];
      },
    },
    columns: {
      type: Array,
      default() {
        return [];
      },
    },
    clickable: Boolean,
    disabled: Boolean,
    ...tableProps,
  },
  render(h) {
    const scopedSlots = this.$scopedSlots;
    return h(`z-table-${this.type}`, { props: { ...this._props }, scopedSlots });
  },
};