Skip to content

Commit

Permalink
Merge pull request #688 from Tencent/fix/install-composition-api
Browse files Browse the repository at this point in the history
Fix/install composition api
  • Loading branch information
chaishi committed Mar 31, 2022
2 parents 089e42e + 7a86236 commit b1d8c95
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 7 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,24 @@ toc: false
docClass: timeline
---

## 0.40.0 `2022-03-31`
### BREAKING CHANGES
* Table: 表格行列拖拽排序功能重构,新用法请参考[官网 demo](https://tdesign.tencent.com/vue/components/table#%E5%8F%AF%E6%8B%96%E6%8B%BD%E6%8E%92%E5%BA%8F%E7%9A%84%E8%A1%A8%E6%A0%BC)[pr #657](https://github.com/Tencent/tdesign-vue/pull/657)[@wangmerry](https://github.com/wangmerry)
* Form: label 为空时不再默认渲染宽度占位,需要手动设置样式保持表单对齐[pr #687](https://github.com/Tencent/tdesign-vue/pull/687)[@HQ-Lin](https://github.com/HQ-Lin)
### Bug Fixes

* Popconfirm: 修复确认框中按钮默认大小,[pr #673](https://github.com/Tencent/tdesign-vue/pull/673)[@pengYYYYY](https://github.com/pengYYYYY)
* Upload:
- 修复上传中状态文案,[pr #678](https://github.com/Tencent/tdesign-vue/pull/678)[@pengYYYYY](https://github.com/pengYYYYY)
- 修复上传模版问题,[issue #675](https://github.com/Tencent/tdesign-vue/issues/675)[@YikaJ](https://github.com/YikaJ)
* Popup: 修复 `hideEmptyPopup` 在动态改变内容时不生效的问题,[@LoopZhou](https://github.com/LoopZhou)
* Table: 修复合并单元格边框样式问题,[issue #671](https://github.com/Tencent/tdesign-vue/issues/671)[@chaishi](https://github.com/chaishi)
* Datepicker: 修复区间时间选择时,月份/年份选择面板样式异常的问题,[issue #588](https://github.com/Tencent/tdesign-vue/issues/588)[@HQ-Lin](https://github.com/HQ-Lin)

### Features

* Table: 支持外部设置当前显示列,新增 API `displayColumns` `defaultDisplayColumns` `onDisplayColumnsChange` 和事件 `display-columns-change`[pr #672](https://github.com/Tencent/tdesign-vue/pull/672)[@chaishi](https://github.com/chaishi)

## 0.39.1 `2022-03-29`

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tdesign-vue",
"purename": "tdesign",
"version": "0.39.1",
"version": "0.40.0",
"description": "tdesign-vue",
"title": "tdesign-vue",
"keywords": [
Expand Down
4 changes: 3 additions & 1 deletion src/select-input/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import VueCompositionAPI from '@vue/composition-api';

import _SelectInput from './select-input';
import withInstall from '../utils/withInstall';
import { TdSelectInputProps } from './type';
Expand All @@ -7,6 +9,6 @@ import './style';
export * from './type';
export type SelectInputProps = TdSelectInputProps;

export const SelectInput = withInstall(_SelectInput);
export const SelectInput = withInstall(_SelectInput, VueCompositionAPI);

export default SelectInput;
10 changes: 6 additions & 4 deletions src/table/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import VueCompositionAPI from '@vue/composition-api';

import _BaseTable from './base-table';
import _PrimaryTable from './primary-table';
import _EnhancedTable from './enhanced-table';
Expand All @@ -8,9 +10,9 @@ import './style';
export * from './type';
export * from './interface';

export const BaseTable = withInstall(_BaseTable);
export const PrimaryTable = withInstall(_PrimaryTable);
export const EnhancedTable = withInstall(_EnhancedTable);
export const Table = withInstall({ ..._PrimaryTable, name: 'TTable' });
export const BaseTable = withInstall(_BaseTable, VueCompositionAPI);
export const PrimaryTable = withInstall(_PrimaryTable, VueCompositionAPI);
export const EnhancedTable = withInstall(_EnhancedTable, VueCompositionAPI);
export const Table = withInstall({ ..._PrimaryTable, name: 'TTable' }, VueCompositionAPI);

export default Table;
4 changes: 3 additions & 1 deletion src/tag-input/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import VueCompositionAPI from '@vue/composition-api';

import _TagInput from './tag-input';
import withInstall from '../utils/withInstall';
import { TdTagInputProps } from './type';
Expand All @@ -7,6 +9,6 @@ import './style';
export * from './type';
export type TagInputProps = TdTagInputProps;

export const TagInput = withInstall(_TagInput);
export const TagInput = withInstall(_TagInput, VueCompositionAPI);

export default TagInput;

0 comments on commit b1d8c95

Please sign in to comment.