Skip to content

Commit a07b470

Browse files
uyarntheBestVayneliweijie0812dependabot[bot]morningbao
authored
chore: release 1.9.9-naruto (#3275)
* chore: modify TEST_GUIDE link (#3239) * fix(table): table.columns.thClassName doesn't work (#3198) (#3238) * fix(table): table.columns.thClassName doesn't work (#3198) fix #3198 * test(table): add missing test: thClassName * fix(Upload): fix global icon replacement (#3244) * feat(borderless): support borderless API (#3249) * docs(Input): value type remove Number * feat: support borderless mode * docs(auto-complete): update doc * feat(descriptions): make layout type to be multiple type (#3252) * fix(TagInput): tagProps should effect minCollapseNum tag (#3260) * fix(TagInput): tagProps should effect minCollapseNum tag * chore: fix lint * chore(deps-dev): bump @babel/helper-module-imports from 7.22.5 to 7.24.7 (#3259) Bumps [@babel/helper-module-imports](https://github.com/babel/babel/tree/HEAD/packages/babel-helper-module-imports) from 7.22.5 to 7.24.7. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.7/packages/babel-helper-module-imports) --- updated-dependencies: - dependency-name: "@babel/helper-module-imports" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(Form): fix Form scrollToFirstError bug (#3251) * fix(Form): fix form-item class name and scrollToFirstError get form-item class name * fix(Form): fix form-item class name and scrollToFirstError get form-item class name * fix(Form): test update --------- Co-authored-by: v-tangchenw <[email protected]> * chore: remove ghost config from live demo (#3265) * chore: update common (#3273) * chore: update common * fix(cascader): fix remove and change trigger effect * chore: release 1.9.9 (#3274) * chore: release 1.9.9 * chore: changelog's changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore: release 1.9.9-naruto * chore: release 1.9.9-naruto --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: theBestVayne <[email protected]> Co-authored-by: liweijie0812 <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: MorningUei <[email protected]> Co-authored-by: v-tangchenw <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent d8f1256 commit a07b470

Some content is hidden

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

71 files changed

+1158
-589
lines changed

CHANGELOG.md

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

8+
## 🌈 1.9.9 `2024-08-15`
9+
10+
### 🚀 Features
11+
12+
- `Table`: 新增支持 API `thClassName`,用于需要在列表头自定义类名的场景 @theBestVayne ([#3238](https://github.com/Tencent/tdesign-vue/pull/3238))
13+
- `Borderless`: AutoComplete、ColorPicker、DatePicker、TagInput、TimePicker 、RangeInput、DateRangePicker 、TimeRangePicker 等组件新增 borderless API,支持无边框模式 @liweijie0812 ([#3249](https://github.com/Tencent/tdesign-vue/pull/3249))
14+
- `Description`: layout 类型定义调整为字符串多类型 @liweijie0812 ([#3252](https://github.com/Tencent/tdesign-vue/pull/3252))
15+
16+
### 🐞 Bug Fixes
17+
18+
- `Cascader`: 修复多选下点击清空按钮的功能异常及多次触发 `onChange` 事件的问题 @uyarn ([#3273](https://github.com/Tencent/tdesign-vue/pull/3273))
19+
- `Form`: 修复某种情况下 scrollToFirstError 失效的问题 @morningbao ([#3251](https://github.com/Tencent/tdesign-vue/pull/3251))
20+
- `InputNumber`: 修复小数点精度计算,以 0 开头的计算边界逻辑缺失导致计算错误的问题 @uyarn ([#3273](https://github.com/Tencent/tdesign-vue/pull/3273))
21+
- `Table`: 修复拖拽排序时,祖先节点内的顺序错误的问题 @uyarn ([#3273](https://github.com/Tencent/tdesign-vue/pull/3273))
22+
- `TagInput`: 修复`tagProps` 没有作用到折叠的标签上的缺陷 @uyarn ([#3260](https://github.com/Tencent/tdesign-vue/pull/3260))
23+
- `Upload`: 修复部分图标不支持全局替换的问题 @uyarn ([#3244](https://github.com/Tencent/tdesign-vue/pull/3244))
24+
25+
826
## 🌈 1.9.8 `2024-07-11`
927
### 🚀 Features
1028
- `Icon`: 新增有序列表图标 `list-numbered`,优化`lock-off`图标的绘制路径 @DOUBLE-DENG ([icon#9f4acfd](https://github.com/Tencent/tdesign-icons/commit/9f4acfdda58f84f9bca71a22f033e27127dd26db))

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ npm run start
8484

8585
### 单元测试 & e2e 测试文档
8686

87-
[组件测试文档](./test/README.md)
87+
[组件测试文档](./TEST_GUIDE.md)
8888

8989
## 子仓库 tdesign-common
9090

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tdesign-vue",
33
"purename": "tdesign",
4-
"version": "1.9.8-naruto",
4+
"version": "1.9.9-naruto",
55
"description": "tdesign-vue",
66
"title": "tdesign-vue",
77
"keywords": [
@@ -106,7 +106,7 @@
106106
"devDependencies": {
107107
"@babel/cli": "^7.5.5",
108108
"@babel/core": "~7.22.5",
109-
"@babel/helper-module-imports": "7.22.5",
109+
"@babel/helper-module-imports": "7.24.7",
110110
"@babel/eslint-parser": "~7.23.10",
111111
"@babel/plugin-transform-class-properties": "^7.22.3",
112112
"@babel/plugin-transform-modules-commonjs": "^7.9.6",

script/generate-usage/config.js

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
/* eslint-disable */
22
module.exports = {
3+
'auto-complete': {
4+
panelStr: `const panelList = [{label: 'AutoComplete', value: 'AutoComplete'}];`,
5+
render: {
6+
AutoComplete: `<t-auto-complete v-bind="configProps" :options="['第一个联想词', '第二个联想词', '第三个联想词']" />`,
7+
},
8+
},
9+
button: {
10+
panelStr: `const panelList = [{label: 'button', value: 'button'}];`,
11+
render: {
12+
button: `<t-button v-bind="configProps">确定</t-button>`,
13+
},
14+
},
315
button: {
416
panelStr: `const panelList = [{label: 'button', value: 'button'}];`,
517
render: {
@@ -313,6 +325,12 @@ module.exports = {
313325
radio: `<t-radio v-bind="configProps">单选框</t-radio>`,
314326
},
315327
},
328+
'range-input': {
329+
panelStr: `const panelList = [{label: 'rangeInput', value: 'rangeInput'}];`,
330+
render: {
331+
rangeInput: `<t-range-input v-bind="configProps" />`,
332+
},
333+
},
316334
select: {
317335
panelStr: `const panelList = [{label: 'select', value: 'select'}];`,
318336
render: {
@@ -407,9 +425,26 @@ module.exports = {
407425
},
408426
},
409427
'time-picker': {
410-
panelStr: `const panelList = [{label: 'timePicker', value: 'timePicker'}];`,
428+
importStr: `
429+
import timePickerConfigJson from './time-picker-props.json';\n
430+
import timeRangePickerConfigJson from './time-range-picker-props.json';\n
431+
`,
432+
configStr: `const configList = ref(timePickerConfigJson);`,
433+
panelStr: `
434+
const panelList = [
435+
{label: 'timePicker', value: 'timePicker', config: timePickerConfigJson},
436+
{label: 'timeRangePicker', value: 'timeRangePicker', config: timeRangePickerConfigJson}
437+
];
438+
`,
439+
panelChangeStr: `
440+
function onPanelChange(panel) {
441+
configList.value = panelList.find(item => item.value === panel).config;
442+
usageCode.value = \`<template>\${usageCodeMap[panel].trim()}</template>\`;
443+
}
444+
`,
411445
render: {
412-
timePicker: `<t-timePicker v-bind="configProps" />`,
446+
timePicker: `<t-time-picker v-bind="configProps" />`,
447+
timeRangePicker: `<t-time-range-picker v-bind="configProps" />`,
413448
},
414449
},
415450
timeline: {

src/auto-complete/_usage/index.vue

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!-- 该脚本为自动生成,如有需要请在 /script/generate-usage.js 中调整 -->
2+
<template>
3+
<base-usage :code="usageCode" :config-list="configList" :panel-list="panelList" @PanelChange="onPanelChange">
4+
<template #AutoComplete="{ configProps }">
5+
<t-auto-complete v-bind="configProps" :options="['第一个联想词', '第二个联想词', '第三个联想词']" />
6+
</template>
7+
</base-usage>
8+
</template>
9+
10+
<script setup lang="jsx">
11+
/* eslint-disable */
12+
import { ref, onMounted } from '@vue/composition-api';
13+
import configJson from './props.json';
14+
15+
const configList = ref(configJson);
16+
const panelList = [{ label: 'AutoComplete', value: 'AutoComplete' }];
17+
18+
const usageCodeMap = {
19+
AutoComplete:
20+
"<t-auto-complete v-bind=\"configProps\" :options=\"['第一个联想词', '第二个联想词', '第三个联想词']\" />",
21+
};
22+
const usageCode = ref(`<template>${usageCodeMap[panelList[0].value].trim()}</template>`);
23+
24+
function onPanelChange(panel) {
25+
usageCode.value = `<template>${usageCodeMap[panel].trim()}</template>`;
26+
}
27+
</script>
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
[
2+
{
3+
"name": "borderless",
4+
"type": "Boolean",
5+
"defaultValue": false,
6+
"options": []
7+
},
8+
{
9+
"name": "clearable",
10+
"type": "Boolean",
11+
"defaultValue": false,
12+
"options": []
13+
},
14+
{
15+
"name": "disabled",
16+
"type": "Boolean",
17+
"defaultValue": false,
18+
"options": []
19+
},
20+
{
21+
"name": "highlightKeyword",
22+
"type": "Boolean",
23+
"defaultValue": false,
24+
"options": []
25+
},
26+
{
27+
"name": "readonly",
28+
"type": "Boolean",
29+
"defaultValue": false,
30+
"options": []
31+
},
32+
{
33+
"name": "size",
34+
"type": "enum",
35+
"defaultValue": "medium",
36+
"options": [
37+
{
38+
"label": "small",
39+
"value": "small"
40+
},
41+
{
42+
"label": "medium",
43+
"value": "medium"
44+
},
45+
{
46+
"label": "large",
47+
"value": "large"
48+
}
49+
]
50+
}
51+
]

src/auto-complete/auto-complete.en-US.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
:: BASE_DOC ::
22

33
## API
4+
45
### AutoComplete Props
56

67
name | type | default | description | required
78
-- | -- | -- | -- | --
89
autofocus | Boolean | - | \- | N
10+
borderless | Boolean | false | \- | N
911
clearable | Boolean | - | \- | N
1012
default | String / Slot / Function | - | Typescript:`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
11-
disabled | Boolean | - | \- | N
13+
disabled | Boolean | undefined | \- | N
1214
filter | Function | - | Typescript:`(filterWords: string, option: T) => boolean \| Promise<boolean>` | N
1315
filterable | Boolean | true | \- | N
1416
highlightKeyword | Boolean | true | \- | N
@@ -19,8 +21,8 @@ panelTopContent | String / Slot / Function | - | Typescript:`string \| TNode`
1921
placeholder | String | undefined | \- | N
2022
popupProps | Object | - | Typescript:`PopupProps`[Popup API Documents](./popup?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-vue/tree/develop/src/auto-complete/type.ts) | N
2123
readonly | Boolean | - | \- | N
22-
size | String | medium | optionssmall/medium/large。Typescript:`SizeEnum`[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
23-
status | String | default | optionsdefault/success/warning/error | N
24+
size | String | medium | options: small/medium/large。Typescript:`SizeEnum`[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
25+
status | String | default | options: default/success/warning/error | N
2426
textareaProps | Object | - | Typescript:`TextareaProps`[Textarea API Documents](./textarea?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-vue/tree/develop/src/auto-complete/type.ts) | N
2527
tips | String / Slot / Function | - | Typescript:`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
2628
triggerElement | String / Slot / Function | - | Typescript:`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N

src/auto-complete/auto-complete.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
:: BASE_DOC ::
22

33
## API
4+
45
### AutoComplete Props
56

6-
名称 | 类型 | 默认值 | 说明 | 必传
7+
名称 | 类型 | 默认值 | 描述 | 必传
78
-- | -- | -- | -- | --
89
autofocus | Boolean | - | 自动获取焦点 | N
10+
borderless | Boolean | false | 无边框模式 | N
911
clearable | Boolean | - | 是否允许清空 | N
1012
default | String / Slot / Function | - | 触发显示联想词下拉框的元素,同 `triggerElement`。TS 类型:`string \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
11-
disabled | Boolean | - | 是否禁用 | N
13+
disabled | Boolean | undefined | 是否禁用 | N
1214
filter | Function | - | 自定义过滤规则,用于对现有数据进行搜索过滤,判断是否过滤某一项数据。参数 `filterWords` 表示搜索词,`option`表示单个选项内容,返回值为 `true` 保留该选项,返回值为 `false` 则隐藏该选项。使用该方法时无需设置 `filterable`。TS 类型:`(filterWords: string, option: T) => boolean \| Promise<boolean>` | N
1315
filterable | Boolean | true | 是否根据输入内容过滤联想词。默认过滤规则不区分大小写,全文本任意位置匹配。如果默认搜索规则不符合业务需求,可以更为使用 `filter` 自定义过滤规则。部分场景下输入关键词和下拉联想词完全不同,此时可以设置为 `false` | N
1416
highlightKeyword | Boolean | true | 是否高亮联想词中和输入值的相同部分 | N

src/auto-complete/auto-complete.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ export default defineComponent({
154154
clearable={this.clearable}
155155
props={this.innerInputProps}
156156
scopedSlots={this.$scopedSlots}
157+
borderless={this.borderless}
157158
/>
158159
);
159160
// 联想词列表

src/auto-complete/props.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,19 @@ import { PropType } from 'vue';
1010
export default {
1111
/** 自动获取焦点 */
1212
autofocus: Boolean,
13+
/** 无边框模式 */
14+
borderless: Boolean,
1315
/** 是否允许清空 */
1416
clearable: Boolean,
1517
/** 触发显示联想词下拉框的元素,同 `triggerElement` */
1618
default: {
1719
type: [String, Function] as PropType<TdAutoCompleteProps['default']>,
1820
},
1921
/** 是否禁用 */
20-
disabled: Boolean,
22+
disabled: {
23+
type: Boolean,
24+
default: undefined,
25+
},
2126
/** 自定义过滤规则,用于对现有数据进行搜索过滤,判断是否过滤某一项数据。参数 `filterWords` 表示搜索词,`option`表示单个选项内容,返回值为 `true` 保留该选项,返回值为 `false` 则隐藏该选项。使用该方法时无需设置 `filterable` */
2227
filter: {
2328
type: Function as PropType<TdAutoCompleteProps['filter']>,

0 commit comments

Comments
 (0)