Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/Tencent/tdesign-vue into…
Browse files Browse the repository at this point in the history
… develop
  • Loading branch information
PengYYYYY committed Jul 31, 2022
2 parents a49b723 + 2c3e961 commit 1ef0c10
Show file tree
Hide file tree
Showing 84 changed files with 2,149 additions and 866 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Auto Release

on:
pull_request:
branches: [develop]
branches: [develop, feature]
types: [opened, synchronize, reopened, closed]
paths:
- "package.json"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: MAIN_PULL_REQUEST

on:
pull_request:
branches: [develop, main]
branches: [develop, main, feature]
types: [opened, synchronize, reopened]

jobs:
Expand Down
69 changes: 69 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,75 @@ toc: false
docClass: timeline
---

## 🌈 0.44.1 `2022-07-25`
### 🚀 Features
- 支持通过CSS Token配置组件圆角 @mingrutough1 ([common#648](https://github.com/Tencent/tdesign-common/pull/648))

### 🐞 Bug Fixes
- `DatePicker`:
- 修复重置日期后面板月份未重置问题 @HQ-Lin ([#1190](https://github.com/Tencent/tdesign-vue/pull/1190))
- 修复时间选择器滚动错误@HQ-Lin ([#1194](https://github.com/Tencent/tdesign-vue/pull/1194))
- `Dialog`:
- 修复 `preventScrollThrough` 未实现的问题 @huoyuhao ([#1150](https://github.com/Tencent/tdesign-vue/pull/1150))
- 修复出现对于滚动条的问题 @huoyuhao ([#1199](https://github.com/Tencent/tdesign-vue/pull/1199))

## 🌈 0.44.0 `2022-07-18`
### ❗️ BREAKING CHANGES
- `DatePicker`: 部分样式类命名调整,更符合 BEM 规范,如有覆盖日期选择器样式的小伙伴请注意调整,其他同学可以忽略 @HQ-Lin ([#1180](https://github.com/Tencent/tdesign-vue/pull/1180/files)
### 🚀 Features
- `Jumper`: 新增 jumper 组件 @HQ-Lin ([#1086](https://github.com/Tencent/tdesign-vue/pull/1086))
- `Icon`: 新增`mirror``rotation`图标 @uyarn ([#1164](https://github.com/Tencent/tdesign-vue/pull/1164))
- `DatePicker`: 支持面板年月动态响应 value 变化 @HQ-Lin ([#1166](https://github.com/Tencent/tdesign-vue/pull/1166))
- `Table`:
- 树形结构支持同时添加多个根节点 @chaishi ([#1176](https://github.com/Tencent/tdesign-vue/pull/1176))
- 新增可编辑行的表格;新增 showEditIcon,用于控制是否显示编辑图标 @chaishi ([#1182](https://github.com/Tencent/tdesign-vue/pull/1182))
### 🐞 Bug Fixes
- `SelectInput`: 修复透传 disabled 失效问题 @HQ-Lin ([#1159](https://github.com/Tencent/tdesign-vue/pull/1159))
- `Icon`: 修复 iconfont 高级用法由于 `t-icon的` 干扰导致渲染异常的情况 @uyarn ([#1164](https://github.com/Tencent/tdesign-vue/pull/1164))
- `Select`:
- 修复 `panelTopContent``panelBottomContent` 透传失效的问题 @HQ-Lin ([#1165](https://github.com/Tencent/tdesign-vue/pull/1165))
- 修复监听事件未正常移除的问题(issue#1170) @skytt ([#1187](https://github.com/Tencent/tdesign-vue/pull/1187))
- 修复 keys 透传失效导致 multiple 场景下 keys 无效的问题 @skytt ([#1184](https://github.com/Tencent/tdesign-vue/pull/1184))
- `Table`:
- 修复多级表头表格中,列配置全选功能选不全的问题 @LoopZhou ([#1167](https://github.com/Tencent/tdesign-vue/pull/1167))
- 修复可选中行 `table` 组件,`data` 为空数据时,默认全选按钮会选中的问题 @qdzhaoxiaodao ([#1172](https://github.com/Tencent/tdesign-vue/pull/1172))
- 兼容IE滚动条高度计算覆盖不全问题 @brianzhang ([#1171](https://github.com/Tencent/tdesign-vue/pull/1171))
- 修复树形结构懒加载顺序问题,[issue#1122](https://github.com/Tencent/tdesign-vue-next/issues/1122) @chaishi ([#1176](https://github.com/Tencent/tdesign-vue/pull/1176))
- 可编辑单元格,修复 `onEnter` 无法触发 `onEdited` 问题;修复校验不通过时,无法退出编辑态的问题 @chaishi ([#1182](https://github.com/Tencent/tdesign-vue/pull/1182))
- 修复表格列宽拖拽到最大或最小时,有可能无法二次拖拽的问题 @tinna3445 ([#1157](https://github.com/Tencent/tdesign-vue/pull/1157))

## 🌈 0.43.3 `2022-07-11`
### 🚀 Features
- `Cascader`: @pengYYYYY ([#1074](https://github.com/Tencent/tdesign-vue/pull/1074))
- 基于 `select-input` 重构, 文本过长省略使用原生 title 展示全文本,不再使用 `tooltip` 组件
- 增加 `popupVisible``readonly``selectInputProps``onPopupVisibleChange` 属性
- `CheckBox`: 增加 `title` 属性透传 @pengYYYYY ([#1074](https://github.com/Tencent/tdesign-vue/pull/1074))
- `DatePicker`:
- 新增 `panelPreselection api` by @HQ-Lin ([#1134](https://github.com/Tencent/tdesign-vue/pull/1134))
- 优化面板月份展示 @HQ-Lin ([#1140](https://github.com/Tencent/tdesign-vue/pull/1140))
- `Drawer`: 优化抽屉拖拽体验([#793](https://github.com/Tencent/tdesign-vue/issues/793)) @uyarn ([#1135](https://github.com/Tencent/tdesign-vue/pull/1135))
### 🐞 Bug Fixes
- `Space`: 过滤无效的节点 @pengYYYYY ([#1124](https://github.com/Tencent/tdesign-vue/pull/1124))
- `Cascader`: @pengYYYYY ([#1074](https://github.com/Tencent/tdesign-vue/pull/1074))
- 修复多选时,文本过长未处理的问题 ([issue #907](https://github.com/Tencent/tdesign-vue/issues/907))
- 修复选中内容过多时,再点击选择器后的闪动问题 ([issue #949](https://github.com/Tencent/tdesign-vue/issues/949))
- `SelectInput`: 修复 `overlayStyle ` 响应式无法更新的问题 @pengYYYYY ([#1074](https://github.com/Tencent/tdesign-vue/pull/1074))
- `TagInput`: 修复 `inputProps ` 属性透传无效 @pengYYYYY ([#1074](https://github.com/Tencent/tdesign-vue/pull/1074))
- `Transfer`: 修复穿梭框进行穿梭时报错的问题 @BigLiao ([#1132](https://github.com/Tencent/tdesign-vue/pull/1132))
- `Table`: 树形结构支持懒加载 @chaishi ([#1128](https://github.com/Tencent/tdesign-vue/pull/1128))
- `Dialog`: 修复打开对话框时出现滚动条的问题 ([#1163](https://github.com/Tencent/tdesign-vue-next/issues/1163)) @pengYYYYY ([#1074](https://github.com/Tencent/tdesign-vue/pull/1074))
- `DatePicker`: 修复日期格式化问题 by @HQ-Lin ([#1134](https://github.com/Tencent/tdesign-vue/pull/1134))
- `TimePicker`: by @uyarn ([#1134](https://github.com/Tencent/tdesign-vue/pull/1134))
- 优化允许输入滚动的使用体验
- `TimeRangePicker` 修复允许输入的缺陷
- `Select`:
- 修复远程搜索动态生成选项失败的缺陷 by @uyarn ([#1134](https://github.com/Tencent/tdesign-vue/pull/1134))
- 虚拟滚动支持远程搜索场景 @skytt ([#1133](https://github.com/Tencent/tdesign-vue/pull/1133))
- `Dialog`: 修复阻止冒泡导致 popup 无法正常关闭 @HQ-Lin ([#1139](https://github.com/Tencent/tdesign-vue/pull/1139))
- `Drawer`: 修复头部渲染异常问题 @HQ-Lin ([#1144](https://github.com/Tencent/tdesign-vue/pull/1144))
- `Input`: 修复Input 组件 切换 type 后不生效的问题 @qdzhaoxiaodao ([#1148](https://github.com/Tencent/tdesign-vue/pull/1148))
- 全局配置: 修复 useConfig computed 属性计算导致列表渲染卡顿问题 @brianzhang ([#1122](https://github.com/Tencent/tdesign-vue/pull/1122))

## 🌈 0.43.2 `2022-07-04`
### 🚀 Features
- `Form`:
Expand Down
5 changes: 2 additions & 3 deletions examples/date-picker/date-picker.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ valueType | String | - | 用于格式化日期,默认为:'YYYY-MM-DD',可
onBlur | Function | | TS 类型:`(context: { value: DateValue; e: FocusEvent }) => void`<br/>当输入框失去焦点时触发 | N
onChange | Function | | TS 类型:`(value: DateValue, context: { dayjsValue?: Dayjs, trigger?: DatePickerTriggerSource }) => void`<br/>选中值发生变化时触发。[详细类型定义](https://github.com/Tencent/tdesign-vue/tree/develop/src/date-picker/type.ts)。<br/>`import { Dayjs } from 'dayjs'`<br/><br/>`type DatePickerTriggerSource = 'confirm' | 'pick' | 'enter' | 'preset' | 'clear'`<br/> | N
onFocus | Function | | TS 类型:`(context: { value: DateValue; e: FocusEvent }) => void`<br/>输入框获得焦点时触发 | N
onInput | Function | | TS 类型:`(context: { input: string; value: DateValue; e: InputEvent }) => void`<br/>输入框数据发生变化时触发,参数 input 表示输入内容,value 表示组件当前有效值 | N
onPick | Function | | TS 类型:`(value: DateValue) => void`<br/>面板选中值后触发 | N

### DatePicker Events
Expand All @@ -37,7 +36,6 @@ onPick | Function | | TS 类型:`(value: DateValue) => void`<br/>面板选中
blur | `(context: { value: DateValue; e: FocusEvent })` | 当输入框失去焦点时触发
change | `(value: DateValue, context: { dayjsValue?: Dayjs, trigger?: DatePickerTriggerSource })` | 选中值发生变化时触发。[详细类型定义](https://github.com/Tencent/tdesign-vue/tree/develop/src/date-picker/type.ts)。<br/>`import { Dayjs } from 'dayjs'`<br/><br/>`type DatePickerTriggerSource = 'confirm' | 'pick' | 'enter' | 'preset' | 'clear'`<br/>
focus | `(context: { value: DateValue; e: FocusEvent })` | 输入框获得焦点时触发
input | `(context: { input: string; value: DateValue; e: InputEvent })` | 输入框数据发生变化时触发,参数 input 表示输入内容,value 表示组件当前有效值
pick | `(value: DateValue)` | 面板选中值后触发

### DateRangePicker Props
Expand All @@ -52,6 +50,7 @@ enableTimePicker | Boolean | false | 是否显示时间选择 | N
firstDayOfWeek | Number | - | 第一天从星期几开始。可选项:1/2/3/4/5/6/7 | N
format | String | - | 用于格式化日期,[详细文档](https://day.js.org/docs/en/display/format) | N
mode | String | date | 选择器模式。可选项:year/month/date | N
panelPreselection | Boolean | true | 在开始日期选中之前,面板是否显示预选状态,即是否高亮预选日期 | N
placeholder | String / Array | - | 占位符,值为数组表示可分别为开始日期和结束日期设置占位符。TS 类型:`string | Array<string>` | N
popupProps | Object | - | 透传给 popup 组件的参数。TS 类型:`PopupProps`[Popup API Documents](./popup?tab=api)[详细类型定义](https://github.com/Tencent/tdesign-vue/tree/develop/src/date-picker/type.ts) | N
prefixIcon | Slot / Function | - | 组件前置图标。TS 类型:`TNode`[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
Expand Down Expand Up @@ -116,4 +115,4 @@ year-change | `(context: { year: number, date: Date[], partial: DateRangePickerP

名称 | 类型 | 默认值 | 说明 | 必传
-- | -- | -- | -- | --
`Pick<DateRangePickerProps, 'value'| 'defaultValue' | 'valueType' | 'disabled' | 'disableDate' | 'enableTimePicker' | 'firstDayOfWeek' | 'format' | 'mode' | 'presets' | 'presetsPlacement' | 'timePickerProps'>` | \- | - | 继承 `Pick<DateRangePickerProps, 'value'| 'defaultValue' | 'valueType' | 'disabled' | 'disableDate' | 'enableTimePicker' | 'firstDayOfWeek' | 'format' | 'mode' | 'presets' | 'presetsPlacement' | 'timePickerProps'>` 中的全部 API | N
`Pick<DateRangePickerProps, 'value'| 'defaultValue' | 'valueType' | 'disabled' | 'disableDate' | 'enableTimePicker' | 'firstDayOfWeek' | 'format' | 'mode' | 'presets' | 'presetsPlacement' | 'panelPreselection' | 'timePickerProps'>` | \- | - | 继承 `Pick<DateRangePickerProps, 'value'| 'defaultValue' | 'valueType' | 'disabled' | 'disableDate' | 'enableTimePicker' | 'firstDayOfWeek' | 'format' | 'mode' | 'presets' | 'presetsPlacement' | 'panelPreselection' | 'timePickerProps'>` 中的全部 API | N
8 changes: 4 additions & 4 deletions examples/date-picker/demos/date-presets-alt.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ export default {
data() {
return {
presets: {
最近7: [dayjs().subtract(6, 'day'), dayjs()],
最近3: [dayjs().subtract(2, 'day'), dayjs()],
今天: [dayjs(), dayjs()],
最近7: [dayjs().subtract(6, 'day').toDate(), dayjs().toDate()],
最近3: [dayjs().subtract(2, 'day').toDate(), dayjs().toDate()],
今天: [dayjs().toDate(), dayjs().toDate()],
},
range1: ['2022-01-01', '2022-08-08'],
range2: ['2022-01-01 11:11:11', '2022-08-08 12:12:12'],
range2: ['2022-01-01 00:00:00', '2022-08-08 23:59:59'],
};
},
};
Expand Down
2 changes: 1 addition & 1 deletion examples/dialog/demos/attach.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default Vue.extend({
}
.dialog-attach-wrap {
position: relative;
height: 240px;
height: 300px;
padding: 20px;
border: 1px solid #ebedf0;
border-radius: 2px;
Expand Down
13 changes: 13 additions & 0 deletions examples/jumper/demos/layout.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<template>
<t-jumper layout="vertical" @change="handleChange" />
</template>

<script>
export default {
methods: {
handleChange(ctx) {
console.log('ctx', ctx);
},
},
};
</script>
7 changes: 7 additions & 0 deletions examples/jumper/demos/size.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<template>
<t-space direction="vertical" style="text-align: center">
<t-jumper size="small" />
<t-jumper />
<t-jumper size="large" />
</t-space>
</template>
13 changes: 13 additions & 0 deletions examples/jumper/demos/tips.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<template>
<t-jumper :tips="tips" />
</template>

<script>
export default {
data() {
return {
tips: { prev: '前尘忆梦', current: '回到现在', next: '展望未来' },
};
},
};
</script>
21 changes: 21 additions & 0 deletions examples/jumper/jumper.en-US.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
:: BASE_DOC ::

## API

### Jumper Props

name | type | default | description | required
-- | -- | -- | -- | --
disabled | Boolean / Object | - | Typescript:`boolean | JumperDisabledConfig` `type JumperDisabledConfig = { prev?: boolean; current?: boolean; next?: boolean; }`[see more ts definition](https://github.com/Tencent/tdesign-vue/tree/develop/src/jumper/type.ts) | N
layout | String | horizontal | horizontal or vertical。options:horizontal/vertical | N
showCurrent | Boolean | true | Typescript:`boolean` | N
size | String | medium | Button size。options:small/medium/large。Typescript:`SizeEnum`[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
tips | Object | - | Typescript:`boolean | JumperTipsConfig` `type JumperTipsConfig = { prev?: string; current?: string; next?: string; }`[see more ts definition](https://github.com/Tencent/tdesign-vue/tree/develop/src/jumper/type.ts) | N
variant | String | text | options:text/outline | N
onChange | Function | | TS 类型:`(context: {e: MouseEvent, trigger: JumperTrigger}) => void`<br/>[see more ts definition](https://github.com/Tencent/tdesign-vue/tree/develop/src/jumper/type.ts)。<br/>`type JumperTrigger = 'prev' | 'current' | 'next'`<br/> | N

### Jumper Events

name | params | description
-- | -- | --
change | `(context: {e: MouseEvent, trigger: JumperTrigger})` | [see more ts definition](https://github.com/Tencent/tdesign-vue/tree/develop/src/jumper/type.ts)。<br/>`type JumperTrigger = 'prev' | 'current' | 'next'`<br/>
21 changes: 21 additions & 0 deletions examples/jumper/jumper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
:: BASE_DOC ::

## API

### Jumper Props

名称 | 类型 | 默认值 | 说明 | 必传
-- | -- | -- | -- | --
disabled | Boolean / Object | - | 按钮禁用配置。TS 类型:`boolean | JumperDisabledConfig` `type JumperDisabledConfig = { prev?: boolean; current?: boolean; next?: boolean; }`[详细类型定义](https://github.com/Tencent/tdesign-vue/tree/develop/src/jumper/type.ts) | N
layout | String | horizontal | 按钮方向。可选项:horizontal/vertical | N
showCurrent | Boolean | true | 是否展示当前按钮。TS 类型:`boolean` | N
size | String | medium | 按钮尺寸。可选项:small/medium/large。TS 类型:`SizeEnum`[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
tips | Object | - | 提示文案配置,值为 `true` 显示默认文案;值为 `false` 不显示提示文案;值类型为对象则单独配置文案内容。TS 类型:`boolean | JumperTipsConfig` `type JumperTipsConfig = { prev?: string; current?: string; next?: string; }`[详细类型定义](https://github.com/Tencent/tdesign-vue/tree/develop/src/jumper/type.ts) | N
variant | String | text | 按钮形式。可选项:text/outline | N
onChange | Function | | TS 类型:`(context: {e: MouseEvent, trigger: JumperTrigger}) => void`<br/>按钮点击事件回调。[详细类型定义](https://github.com/Tencent/tdesign-vue/tree/develop/src/jumper/type.ts)。<br/>`type JumperTrigger = 'prev' | 'current' | 'next'`<br/> | N

### Jumper Events

名称 | 参数 | 描述
-- | -- | --
change | `(context: {e: MouseEvent, trigger: JumperTrigger})` | 按钮点击事件回调。[详细类型定义](https://github.com/Tencent/tdesign-vue/tree/develop/src/jumper/type.ts)。<br/>`type JumperTrigger = 'prev' | 'current' | 'next'`<br/>
24 changes: 24 additions & 0 deletions examples/jumper/usage/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!-- 该脚本为自动生成,如有需要请在 /script/generate-usage.js 中调整 -->
<template>
<base-usage :code="usageCode" :config-list="configList" :panel-list="panelList" @PanelChange="onPanelChange">
<template #jumper="{ configProps }">
<t-jumper v-bind="configProps"></t-jumper>
</template>
</base-usage>
</template>

<script setup lang="jsx">
/* eslint-disable */
import { ref, onMounted } from '@vue/composition-api';
import configJson from './props.json';
const configList = ref(configJson);
const panelList = [{ label: 'jumper', value: 'jumper' }];
const usageCodeMap = { jumper: '\n <t-jumper v-bind="configProps"></t-jumper>\n ' };
const usageCode = ref(`<template>${usageCodeMap[panelList[0].value].trim()}</template>`);
function onPanelChange(panel) {
usageCode.value = `<template>${usageCodeMap[panel].trim()}</template>`;
}
</script>
63 changes: 63 additions & 0 deletions examples/jumper/usage/props.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
[
{
"name": "disabled",
"type": "Boolean",
"defaultValue": false,
"options": []
},
{
"name": "layout",
"type": "enum",
"defaultValue": "horizontal",
"options": [
{
"label": "horizontal",
"value": "horizontal"
},
{
"label": "vertical",
"value": "vertical"
}
]
},
{
"name": "showCurrent",
"type": "Boolean",
"defaultValue": true,
"options": []
},
{
"name": "size",
"type": "enum",
"defaultValue": "medium",
"options": [
{
"label": "small",
"value": "small"
},
{
"label": "medium",
"value": "medium"
},
{
"label": "large",
"value": "large"
}
]
},
{
"name": "variant",
"type": "enum",
"defaultValue": "text",
"options": [
{
"label": "text",
"value": "text"
},
{
"label": "outline",
"value": "outline"
}
]
}
]
Loading

0 comments on commit 1ef0c10

Please sign in to comment.