zrlibs
2025-03-19 dad44b84ab21f9d1f860760a045015f1cab0aaec
src/components/examples/data-table.vue
@@ -7,6 +7,9 @@
      :data="data"
      :height="paged ? tableHeight - 70 : tableHeight"
      border
      :highlight-row="highlightRow"
      @on-current-change="onCurrentChange"
      @on-selection-change="onSelectionChange"
      ref="refTable"
    ></Table>
    <Page
@@ -26,6 +29,7 @@
      @on-next="onNext"
      ref="refPage"
    />
    <Spin fix :show="loading" />
  </div>
</template>
@@ -63,6 +67,8 @@
      type: Array,
      default: () => [10, 20, 30, 40],
    },
    loading: Boolean,
    highlightRow: Boolean,
  },
  data() {
    return {};
@@ -133,6 +139,7 @@
<style lang="less" scoped>
.data-table {
  height: 100%;
  position: relative;
  .text-center {
    text-align: center;
  }