# How to sue
TIP
Only 3 steps
# 1. Install
# pnpm
pnpm add vue-table-view
# npm
npm i vue-table-view
# yarn
yarn add vue-table-view
# 2. Global register
// main.ts
import Vue from 'vue';
import VueTableView, { defineVueTableViewGlobalOption } from 'vue-table-view';
Vue.use(VueTableView, defineVueTableViewGlobalOption({
// options
}));
Please visit Global config to get options
's config.
# 3. Usa in component
<!--YourComponent.vue-->
<template>
<table-view :config="config" />
</template>
<script lang="tsx">
import TableView from 'vue-table-view';
export default {
name: 'yourComponent',
components: {
TableView
},
data() {
return {
config: {
// config
}
}
}
}
</script>
Please visit Component config to get options
's config.
← Introduce Dependence →