Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxian521 committed Nov 23, 2022
1 parent 38edb85 commit d757546
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.7.0 (2022-11-23)

### 🎫 Feat

- `TableColumn``prop` 支持传函数,用于动态改变 `prop`,应用场景:列拖拽

## 1.5.0 (2022-11-20)

### 🎫 Feat
Expand Down
1 change: 1 addition & 0 deletions README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
English | [简体中文](./README.md)

- [Preview](https://xiaoxian521.github.io/pure-admin-table/)
- [MoreExamples](https://yiming_chang.gitee.io/vue-pure-admin/#/pure-table/index?username=sso&roles=admin&accessToken=eyJhbGciOiJIUzUxMiJ9.admin)

## 🤔 Original intention of development

Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,27 @@
<a href="https://www.npmjs.com/package/@pureadmin/table" target="__blank"><img alt="NPM Downloads" src="https://img.shields.io/npm/dm/@pureadmin/table?color=50a36f&label="></a>
</p>

简体中文 | [English](./README.en-US.md)
简体中文 | [English](./README.en-US.md)

- [预览地址](https://xiaoxian521.github.io/pure-admin-table/)
- [更多示例](https://yiming_chang.gitee.io/vue-pure-admin/#/pure-table/index?username=sso&roles=admin&accessToken=eyJhbGciOiJIUzUxMiJ9.admin)

## 🤔 开发初衷

- `element-plus` [Table](https://element-plus.org/zh-CN/component/table.html#table-column-%E5%B1%9E%E6%80%A7)`Table-column`属性目前只能写在`<template></template>`模版里,这样不是很灵活,如果表格的`column`足够多,代码写、看起来很臃肿,但`element-plus` [Virtualized Table](https://element-plus.org/zh-CN/component/table-v2.html) 可配置性就很高,为了保持统一,我将`Table`二次封装并沿用了`cellRenderer``headerRenderer`这两个自定义renderer,内置了可通过配置渲染的分页组件,当然还有一些额外的属性,让我们一起探索吧
- `element-plus` [Table](https://element-plus.org/zh-CN/component/table.html#table-column-%E5%B1%9E%E6%80%A7)`Table-column`属性目前只能写在`<template></template>`模版里,这样不是很灵活,如果表格的`column`足够多,代码写、看起来很臃肿,但`element-plus` [Virtualized Table](https://element-plus.org/zh-CN/component/table-v2.html) 可配置性就很高,为了保持统一,我将`Table`二次封装并沿用了`cellRenderer``headerRenderer`这两个自定义 renderer,内置了可通过配置渲染的分页组件,当然还有一些额外的属性,让我们一起探索吧

## 🚀 特性

- 🦾 **灵活度高**: 使用`tsx`语法编写,保证类型的同时,给开发者提供了更灵活的写法,给使用者提供了更方便的配置
-**完全可摇树**: 自带Tree-shaking,只对引入的代码进行打包
-**完全可摇树**: 自带 Tree-shaking,只对引入的代码进行打包
- 🫶 **代码零侵入**: 保持`element-plus` [Table](https://element-plus.org/zh-CN/component/table.html) 的所有属性、插槽、事件、方法的同时,提供更灵活的配置,而且还内置了可通过配置渲染的分页组件
-**代码提交前校验**: 使用 [husky](https://typicode.github.io/husky/#/) 对提交代码前进行规则校验,强制规范开发流程,防止开发失误

## 📦 安装

```bash
npm install @pureadmin/table
or
or
pnpm add @pureadmin/table
```

Expand Down Expand Up @@ -70,4 +71,4 @@ app.use(Table).mount("#app");

## 许可证

[MIT © xiaoxian521-2022](./LICENSE)
[MIT © xiaoxian521-2022](./LICENSE)

0 comments on commit d757546

Please sign in to comment.