Skip to content

Commit 1e383b1

Browse files
uyarndhwebstaninsisttaninsistmyronliu347
authored
chore: release 1.10.0-naruto (#3292)
* fix(select): fix keyboard up down behaviour when using group config(#3278) * fix(select): 修复 flattenOptions 方法分组扁平化问题及上下键切换功能 >> >> - 修复了 flattenOptions 函数未正确扁平化分组的问题,导致在分组间切换时上下键无法正确切换。 >> - 修复了上下键切换时,激活项未能滚动到下拉面板视口内的问题。 * fix(select): 修复新增的setHoverIntoView方法下常量没给定类型导致lint校验失败 * fix(ColorPicker): selectInputProps API can't work (#3279) * fix(color-picker):修复ColorPicker透传SelectInputProps无效问题 * fix(color-picker): 修复color-picker组件的selectInputProps属性失效问题 --------- Co-authored-by: taninsist <[email protected]> * fix(TimePicker): fixed only support hh:mm format (#3280) * fix(TimePicker): fix disableTime position value always being `start` (#3281) * fix(TimePicker): fixed only support hh:mm format * fix(TimePicker): disabled position only is start * perf: use getPickerCols (#3283) * feat(form): formErrorMessage add whitespace (#3284) * feat(List): support scroll API (#3286) * feat(list): support virtual scroll * feat(list): support virtual scroll * chore: fix docs and demo * chore: fix lint * chore: fix lint * chore: fix test * chore: fix test * chore: fix test * feat(config-provider): support colonText rateText checkIcon (#3288) * docs(Input): value type remove Number * feat(config-provider): support colonText rateText checkIcon * chore: fix lint * chore: fix lint * chore: update snapshot * chore: fix doc --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * feat(empty): add new component Empty (#3287) * feat(empty): new Empty component * fix(empty): fix render svg * perf(empty): optimization code * chore(settings): revert vscode settings file * chore(empty): rm overage file * chore: fix demo * chore: fix docs * chore: fix demo * chore: update snapshot * chore: fix test --------- Co-authored-by: Uyarn <[email protected]> * fix(badge): fix content api (#3289) * fix(cascader): cascader panel support option slot (#3290) * chore: release 1.10.0 (#3291) * chore: release 1.10.0 * chore: update CHANGELOG * chore: release 1.10.0-naruto --------- Co-authored-by: dhwebs <[email protected]> Co-authored-by: taninsist <[email protected]> Co-authored-by: taninsist <[email protected]> Co-authored-by: myron <[email protected]> Co-authored-by: liweijie0812 <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Haixing <[email protected]>
1 parent a07b470 commit 1e383b1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+3699
-842
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@ toc: false
55
docClass: timeline
66
---
77

8+
## 🌈 1.10.0 `2024-08-29`
9+
### 🚀 Features
10+
- `Empty`: 新增空状态组件 `Empty`,用于空状态时的占位提示 @HaixingOoO ([#3287](https://github.com/Tencent/tdesign-vue/pull/3287))
11+
- `ConfigProvider`: 新增支持 `descriptions.colonText rate.rateText 和 setpes.checkIcon` 的全局配置 @liweijie0812 ([#3288](https://github.com/Tencent/tdesign-vue/pull/3288))
12+
- `Cascader`: 级联面板完善支持自定义下拉选项内容的能力 ([#3290](https://github.com/Tencent/tdesign-vue/pull/3290))
13+
- `List`: 新增`scroll` API,支持开启虚拟滚动适用于大数据量的场景,具体使用方式参考示例代码
14+
@uyarn ([#3286](https://github.com/Tencent/tdesign-vue/pull/3286))
15+
16+
### 🐞 Bug Fixes
17+
- `Select`: @dhwebs ([#3278](https://github.com/Tencent/tdesign-vue/pull/3278))
18+
- 修复分组状态下,通过上下键切换时下拉面板不会跟随滚动的问题
19+
- 修复分组状态下,通过上下键切换时无法正确切换的问题
20+
- `ColorPicker`: 修复`ColorPicker`透传`SelectInputProps`无效问题 @taninsist ([#3279](https://github.com/Tencent/tdesign-vue/pull/3279))
21+
- `TimePicker`: @myronliu347
22+
- 修复 `disableTime``position` 一直是 `start` 的问题 ([#3281](https://github.com/Tencent/tdesign-vue/pull/3281))
23+
- 修复 `format` 仅支持 `HH:mm:ss` 格式的问题 ([#3280](https://github.com/Tencent/tdesign-vue/pull/3280))
24+
- `Form`: 添加 `whitespace` 校验默认错误信息 @liweijie0812 ([#3284](https://github.com/Tencent/tdesign-vue/pull/3284))
25+
26+
827
## 🌈 1.9.9 `2024-08-15`
928

1029
### 🚀 Features

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tdesign-vue",
33
"purename": "tdesign",
4-
"version": "1.9.9-naruto",
4+
"version": "1.10.0-naruto",
55
"description": "tdesign-vue",
66
"title": "tdesign-vue",
77
"keywords": [

site/site.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,14 @@ const docs = [
464464
component: () => import('tdesign-vue/descriptions/descriptions.md'),
465465
componentEn: () => import('tdesign-vue/descriptions/descriptions.en-US.md'),
466466
},
467+
{
468+
title: 'Empty 空状态',
469+
titleEn: 'Empty',
470+
name: 'empty',
471+
path: '/vue/components/empty',
472+
component: () => import('tdesign-vue/empty/empty.md'),
473+
componentEn: () => import('tdesign-vue/empty/empty.en-US.md'),
474+
},
467475
{
468476
title: 'Image 图片',
469477
titleEn: 'Image',

site/test-coverage.js

Lines changed: 113 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -1,166 +1,185 @@
11
module.exports = {
2-
'': '100%',
3-
'common/js/colorPicker': '63.51%',
4-
'common/js/datePicker': '67.47%',
2+
'': '97.95%',
3+
'common/js': '87.23%',
4+
'common/js/colorPicker': '60.93%',
5+
'common/js/datePicker': '62.36%',
56
'common/js/globalConfig': '100%',
67
'common/js/globalConfig/locale': '100%',
7-
'common/js/inputNumber': '40.48%',
8-
'common/js/loading': '73.17%',
8+
'common/js/inputNumber': '34.52%',
9+
'common/js/loading': '65.85%',
910
'common/js/log': '72.72%',
10-
'common/js/table': '15.37%',
11-
'common/js/timePicker': '71.69%',
12-
'common/js/tree': '93.33%',
13-
'common/js/upload': '39.94%',
14-
'common/js/utils': '48.46%',
15-
'common/js/watermark': '6.97%',
16-
affix: '89.47%',
11+
'common/js/slider': '24.07%',
12+
'common/js/statistic': '93.9%',
13+
'common/js/table': '19.27%',
14+
'common/js/tabs': '71.79%',
15+
'common/js/timePicker': '64.21%',
16+
'common/js/tree': '93.82%',
17+
'common/js/upload': '81.51%',
18+
'common/js/utils': '53.72%',
19+
'common/js/watermark': '100%',
20+
affix: '87.44%',
1721
'affix/style': '100%',
18-
alert: '96.21%',
22+
alert: '97.94%',
1923
'alert/style': '100%',
20-
anchor: '95.2%',
24+
anchor: '94.04%',
2125
'anchor/style': '100%',
22-
autoComplete: '99.85%',
26+
autoComplete: '97.62%',
2327
'autoComplete/style': '100%',
24-
avatar: '96.85%',
28+
avatar: '95.88%',
2529
'avatar/style': '100%',
26-
badge: '100%',
30+
backTop: '87.76%',
31+
'backTop/style': '100%',
32+
badge: '98.05%',
2733
'badge/style': '100%',
28-
breadcrumb: '97.52%',
34+
breadcrumb: '96.7%',
2935
'breadcrumb/style': '100%',
3036
button: '100%',
3137
'button/style': '100%',
32-
calendar: '95.15%',
38+
calendar: '86.17%',
3339
'calendar/style': '100%',
34-
card: '99.71%',
40+
card: '96.07%',
3541
'card/style': '100%',
36-
cascader: '95.83%',
37-
'cascader/components': '84.49%',
38-
'cascader/core': '72.46%',
42+
cascader: '91.18%',
43+
'cascader/components': '79.07%',
44+
'cascader/core': '65.84%',
3945
'cascader/style': '100%',
40-
checkbox: '92.16%',
46+
checkbox: '93.93%',
47+
'checkbox/hooks': '44.44%',
4148
'checkbox/style': '100%',
42-
collapse: '94.73%',
49+
collapse: '100%',
4350
'collapse/style': '100%',
44-
colorPicker: '97.08%',
45-
'colorPicker/panel': '64.9%',
46-
'colorPicker/panel/format': '93.59%',
51+
colorPicker: '94.54%',
52+
'colorPicker/panel': '63.42%',
53+
'colorPicker/panel/format': '87.25%',
4754
'colorPicker/style': '100%',
4855
'colorPicker/utils': '100%',
49-
comment: '95.5%',
56+
comment: '83.14%',
5057
'comment/style': '100%',
5158
commonComponents: '100%',
52-
configProvider: '96.08%',
53-
datePicker: '47.63%',
54-
'datePicker/base': '80.6%',
55-
'datePicker/hooks': '46.2%',
56-
'datePicker/panel': '64.04%',
59+
configProvider: '95.5%',
60+
datePicker: '49.66%',
61+
'datePicker/base': '77.09%',
62+
'datePicker/hooks': '86.17%',
63+
'datePicker/panel': '81.78%',
5764
'datePicker/style': '100%',
58-
dialog: '84.4%',
65+
descriptions: '74.5%',
66+
'descriptions/const': '100%',
67+
'descriptions/style': '100%',
68+
'descriptions/utils': '54.38%',
69+
dialog: '81.8%',
5970
'dialog/style': '100%',
60-
divider: '96.92%',
71+
divider: '98.46%',
6172
'divider/style': '100%',
62-
drawer: '85.13%',
73+
drawer: '83.92%',
6374
'drawer/style': '100%',
64-
dropdown: '90.84%',
65-
'dropdown/hooks': '96.05%',
75+
dropdown: '86.53%',
76+
'dropdown/hooks': '78.94%',
6677
'dropdown/style': '100%',
67-
form: '92.6%',
78+
empty: '96.41%',
79+
'empty/assets': '100%',
80+
'empty/style': '100%',
81+
form: '87.04%',
6882
'form/style': '100%',
69-
grid: '84.13%',
83+
grid: '82.25%',
7084
'grid/style': '100%',
71-
guide: '42.89%',
85+
guide: '97.46%',
7286
'guide/style': '100%',
73-
'guide/utils': '79.62%',
74-
hooks: '57.56%',
87+
'guide/utils': '80.18%',
88+
hooks: '55.24%',
7589
icon: '100%',
76-
image: '98.82%',
77-
imageViewer: '87.44%',
78-
'imageViewer/base': '95.37%',
90+
image: '94.43%',
91+
imageViewer: '83.62%',
92+
'imageViewer/base': '92.65%',
7993
'imageViewer/style': '100%',
8094
'image/style': '100%',
81-
input: '99.48%',
82-
inputAdornment: '100%',
95+
input: '97.37%',
96+
inputAdornment: '91.91%',
8397
'inputAdornment/style': '100%',
84-
inputNumber: '94.13%',
98+
inputNumber: '92.53%',
8599
'inputNumber/style': '100%',
86100
'input/style': '100%',
87-
layout: '96.31%',
101+
layout: '95.9%',
88102
'layout/style': '100%',
89103
link: '100%',
90104
'link/style': '100%',
91-
list: '98.4%',
105+
list: '97.42%',
106+
'list/hooks': '81.17%',
92107
'list/style': '100%',
93-
loading: '84.17%',
94-
'loading/icon': '92.68%',
108+
loading: '78.54%',
109+
'loading/icon': '95.12%',
95110
'loading/style': '100%',
96-
menu: '85.84%',
111+
menu: '75.52%',
97112
'menu/style': '100%',
98-
message: '88.84%',
113+
message: '87.29%',
99114
'message/style': '100%',
100-
notification: '96.83%',
115+
notification: '96.04%',
101116
'notification/style': '100%',
102-
pagination: '99.12%',
117+
pagination: '99.01%',
103118
'pagination/style': '100%',
104-
popconfirm: '96.67%',
119+
popconfirm: '95.34%',
105120
'popconfirm/style': '100%',
106-
popup: '90.29%',
121+
popup: '73.99%',
107122
'popup/style': '100%',
108-
progress: '95.96%',
123+
progress: '94.2%',
109124
'progress/style': '100%',
110-
radio: '95.8%',
125+
radio: '94.67%',
111126
'radio/style': '100%',
112-
rangeInput: '82.93%',
127+
rangeInput: '88.29%',
113128
'rangeInput/style': '100%',
114-
rate: '90.03%',
129+
rate: '87.41%',
115130
'rate/style': '100%',
116-
select: '62.1%',
117-
selectInput: '95.33%',
131+
select: '73.53%',
132+
selectInput: '98.23%',
118133
'selectInput/style': '100%',
119-
'select/hooks': '81.75%',
134+
'select/hooks': '79.33%',
120135
'select/style': '100%',
121-
skeleton: '94.14%',
136+
skeleton: '93.75%',
122137
'skeleton/style': '100%',
123-
slider: '72.48%',
138+
slider: '69.74%',
124139
'slider/style': '100%',
125-
space: '100%',
140+
space: '97.07%',
126141
'space/style': '100%',
127-
steps: '98.44%',
142+
statistic: '87.17%',
143+
'statistic/style': '100%',
144+
steps: '96.92%',
128145
'steps/style': '100%',
129-
swiper: '76.68%',
146+
stickyTool: '65.78%',
147+
'stickyTool/style': '100%',
148+
swiper: '76.67%',
130149
'swiper/style': '100%',
131-
switch: '61.35%',
150+
switch: '69.32%',
132151
'switch/style': '100%',
133-
table: '77.36%',
134-
'table/hooks': '58.16%',
152+
table: '79.48%',
153+
'table/hooks': '49.97%',
135154
'table/style': '100%',
136-
tabs: '85.01%',
155+
tabs: '92.85%',
137156
'tabs/style': '100%',
138-
tag: '97.78%',
139-
tagInput: '90.53%',
140-
'tagInput/hooks': '52.13%',
157+
tag: '85.9%',
158+
tagInput: '96.06%',
159+
'tagInput/hooks': '55.91%',
141160
'tagInput/style': '100%',
142161
'tag/style': '100%',
143-
textarea: '78.57%',
162+
textarea: '86.18%',
144163
'textarea/style': '100%',
145-
timePicker: '77.38%',
146-
'timePicker/panel': '79.39%',
164+
timePicker: '82.35%',
165+
'timePicker/panel': '72.46%',
147166
'timePicker/style': '100%',
148-
timeline: '51.2%',
167+
timeline: '98.83%',
149168
'timeline/style': '100%',
150-
tooltip: '92.95%',
169+
tooltip: '89.25%',
151170
'tooltip/style': '100%',
152-
transfer: '96.5%',
153-
'transfer/components': '92.06%',
171+
transfer: '95.11%',
172+
'transfer/components': '75.32%',
154173
'transfer/style': '100%',
155-
tree: '96.46%',
156-
treeSelect: '90.93%',
174+
tree: '96.59%',
175+
treeSelect: '96.91%',
157176
'treeSelect/style': '100%',
158-
'tree/hooks': '80.88%',
177+
'tree/hooks': '77.79%',
159178
'tree/style': '100%',
160-
upload: '90.38%',
161-
'upload/hooks': '42.94%',
179+
upload: '100%',
180+
'upload/hooks': '96.1%',
162181
'upload/style': '100%',
163-
'upload/themes': '32.45%',
164-
utils: '70.8%',
165-
watermark: '40.19%',
182+
'upload/themes': '92.9%',
183+
utils: '69.44%',
184+
watermark: '49.01%',
166185
};

src/_common

Submodule _common updated 160 files

src/badge/badge.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import props from './props';
2-
import { renderTNodeJSX } from '../utils/render-tnode';
2+
import { renderTNodeJSX, renderContent } from '../utils/render-tnode';
33
import { getClassPrefixMixins } from '../config-provider/config-receiver';
44
import mixins from '../utils/mixins';
55

@@ -47,7 +47,7 @@ export default mixins(classPrefixMixins).extend({
4747

4848
const content = this.getContent();
4949
const isHidden = this.isHidden();
50-
const children = this.$slots.default;
50+
const children = renderContent(this, 'default', 'content');
5151
const { xOffset, yOffset } = this.getOffset();
5252
const badgeClassNames = [
5353
{

src/cascader/cascader-panel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default defineComponent({
2929
empty={this.empty}
3030
trigger={this.trigger}
3131
cascaderContext={this.cascaderContext}
32-
scopedSlots={{ empty: this.slots.empty }}
32+
scopedSlots={{ empty: this.slots.empty, option: this.slots.option, loadingText: this.slots.loadingText }}
3333
onClick={this.onClick}
3434
/>
3535
);

src/color-picker/panel/format/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { Select as TSelect, Option as TOption } from '../../../select';
1111
import { Input as TInput } from '../../../input';
1212
import FormatInputs from './inputs';
1313
import { useBaseClassName } from '../../hooks';
14+
import type { TdSelectInputProps } from '../../../select-input/type';
1415

1516
export default defineComponent({
1617
name: 'FormatPanel',
@@ -74,9 +75,10 @@ export default defineComponent({
7475
<t-select
7576
size="small"
7677
class={`${baseClassName}__format-mode-select`}
77-
{...selectInputProps}
78+
selectInputProps={{ ...selectInputProps }}
7879
popupProps={{
7980
overlayClassName: `${baseClassName}__select-options`,
81+
...(selectInputProps as TdSelectInputProps).popupProps,
8082
}}
8183
v-model={this.formatModel}
8284
onChange={handleModeChange}

src/components.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export * from './calendar';
5050
export * from './card';
5151
export * from './comment';
5252
export * from './descriptions';
53+
export * from './empty';
5354
export * from './image';
5455
export * from './image-viewer';
5556
export * from './list';

0 commit comments

Comments
 (0)