Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahengaa committed Oct 22, 2020
1 parent a044296 commit 041e7aa
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,32 @@ yarn add beegridtable

#### How to use

- First of all, Import BeeGridTable
import BeeGridTable in the entry file (main.js as usual) of webpack:

```
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import BeeGridTable from "beegridtable";
import BeeLocale from "beegridtable/src/locale";
Vue.use(BeeGridTable, {
BeeLocale,
capture: true,
});
Vue.config.productionTip = false;
new Vue({
router,
store,
render: (h) => h(App),
}).$mount("#app");
```

- Basic Simple

![basic.png](./demos/basic.png)
Expand Down
26 changes: 26 additions & 0 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,32 @@ yarn add beegridtable

#### 如何使用

- 首先, 引入 BeeGridTable
一般在 webpack 入口页面 main.js 中如下配置:

```
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import BeeGridTable from "beegridtable";
import BeeLocale from "beegridtable/src/locale";
Vue.use(BeeGridTable, {
BeeLocale,
capture: true,
});
Vue.config.productionTip = false;
new Vue({
router,
store,
render: (h) => h(App),
}).$mount("#app");
```

- 最简单的例子

![basic.png](./demos/basic.png)
Expand Down

0 comments on commit 041e7aa

Please sign in to comment.