Skip to content

Commit bde2de9

Browse files
docs: release 0.18.0 (#1242)
* docs: release 0.18.0 * chore: changelog's changes Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 9a786f3 commit bde2de9

File tree

6 files changed

+80
-44
lines changed

6 files changed

+80
-44
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ spline: explain
44
toc: false
55
docClass: timeline
66
---
7+
## 🌈 0.18.0 `2022-07-18`
8+
### ❗ Breaking Changes
9+
- `Table`: 可编辑表格行,行校验函数由 `validateRowDate` 更名为 `validateRowData` @chaishi ([#1219](https://github.com/Tencent/tdesign-vue-next/pull/1219))
10+
### 🚀 Features
11+
- `Table`: 树形结构,支持同时添加多个根节点 @chaishi ([#1219](https://github.com/Tencent/tdesign-vue-next/pull/1219))
12+
- `Table`: 可选中行,扩大选择组件的点击范围 @chaishi ([#1232](https://github.com/Tencent/tdesign-vue-next/pull/1232))
13+
- `Table`: 拖拽调整宽度,非边框模式,悬浮到表头时,显示表头边框 @chaishi ([#1232](https://github.com/Tencent/tdesign-vue-next/pull/1232))
14+
### 🐞 Bug Fixes
15+
- `Table`: 修复可编辑单元格,校验失败的信息无法清除问题,([issue #1228](https://github.com/Tencent/tdesign-vue-next/issues/1228)) @chaishi ([#1219](https://github.com/Tencent/tdesign-vue-next/pull/1219))
16+
- `Table`: 树形结构,修复树形结构懒加载顺序问题,([issue #1122](https://github.com/Tencent/tdesign-vue-next/issues/1122)) @chaishi ([#1219](https://github.com/Tencent/tdesign-vue-next/pull/1219))
17+
- `Swiper`: 动态修改 `swiper item` 会出现 `vue` 警告 @btea ([#1231](https://github.com/Tencent/tdesign-vue-next/pull/1231))
18+
- `Tree`: 修复节点过滤后被一直锁住的问题 @ardor-zhang ([#1199](https://github.com/Tencent/tdesign-vue-next/pull/1199))
19+
- `DatePicker`: 调整 `bem` 命名 @HQ-Lin ([#1225](https://github.com/Tencent/tdesign-vue-next/pull/1225))
20+
721
## 🌈 0.17.5 `2022-07-14`
822
### 🚀 Features
923
- `Icon`: 新增 `mirror``rotation` 图标 @uyarn ([#1201](https://github.com/Tencent/tdesign-vue-next/pull/1201))

examples/select-input/demos/custom-tag.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ const onTagChange3 = (val) => {
124124
line-height: 32px;
125125
}
126126
.displaySpan {
127-
display: flex;
128-
align-items: center;
127+
line-height: 24px;
129128
}
130129
</style>

examples/tag-input/demos/custom-tag.vue

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
<!-- 方式一:使用 tag 定义标签内部内容。也可以使用同名渲染函数 tag -->
44
<t-tag-input v-model="tags" clearable :min-collapsed-num="2">
55
<template #tag="{ value }">
6-
<img
7-
src="https://tdesign.gtimg.com/site/avatar.jpg"
8-
style="max-width: 20px; max-height: 20px; border-radius: 50%"
9-
/>
10-
<span>&nbsp;&nbsp;{{ value }}</span>
6+
<span class="displayItem">
7+
<img src="https://tdesign.gtimg.com/site/avatar.jpg" />
8+
<span>&nbsp;&nbsp;{{ value }}</span>
9+
</span>
1110
</template>
1211
</t-tag-input>
1312

@@ -23,11 +22,10 @@
2322
style="margin-right: 4px"
2423
@close="() => onClose(index)"
2524
>
26-
<img
27-
src="https://tdesign.gtimg.com/site/avatar.jpg"
28-
style="max-width: 20px; max-height: 20px; border-radius: 50%"
29-
/>
30-
<span>&nbsp;&nbsp;{{ item }}</span>
25+
<span class="displayItem">
26+
<img src="https://tdesign.gtimg.com/site/avatar.jpg" />
27+
<span>&nbsp;&nbsp;{{ item }}</span>
28+
</span>
3129
</t-tag>
3230
</template>
3331
</t-tag-input>
@@ -39,3 +37,13 @@ import { ref } from 'vue';
3937
4038
const tags = ref(['StudentA', 'StudentB', 'StudentC']);
4139
</script>
40+
<style>
41+
.displayItem {
42+
position: relative;
43+
}
44+
.displayItem img {
45+
width: 20px;
46+
border-radius: 50%;
47+
vertical-align: text-top;
48+
}
49+
</style>

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-next",
33
"purename": "tdesign",
4-
"version": "0.17.5",
4+
"version": "0.18.0",
55
"title": "tdesign-vue-next",
66
"description": "TDesign Component for vue-next",
77
"keywords": [

test/snap/__snapshots__/csr.test.js.snap

Lines changed: 45 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -125120,12 +125120,15 @@ exports[`csr snapshot test > csr test ./examples/tag-input/demos/custom-tag.vue
125120125120
<!---->
125121125121

125122125122

125123-
<img
125124-
src="https://tdesign.gtimg.com/site/avatar.jpg"
125125-
style="max-width: 20px; max-height: 20px; border-radius: 50%;"
125126-
/>
125127-
<span>
125128-
  StudentA
125123+
<span
125124+
class="displayItem"
125125+
>
125126+
<img
125127+
src="https://tdesign.gtimg.com/site/avatar.jpg"
125128+
/>
125129+
<span>
125130+
  StudentA
125131+
</span>
125129125132
</span>
125130125133

125131125134

@@ -125149,12 +125152,15 @@ exports[`csr snapshot test > csr test ./examples/tag-input/demos/custom-tag.vue
125149125152
<!---->
125150125153

125151125154

125152-
<img
125153-
src="https://tdesign.gtimg.com/site/avatar.jpg"
125154-
style="max-width: 20px; max-height: 20px; border-radius: 50%;"
125155-
/>
125156-
<span>
125157-
  StudentB
125155+
<span
125156+
class="displayItem"
125157+
>
125158+
<img
125159+
src="https://tdesign.gtimg.com/site/avatar.jpg"
125160+
/>
125161+
<span>
125162+
  StudentB
125163+
</span>
125158125164
</span>
125159125165

125160125166

@@ -125217,12 +125223,15 @@ exports[`csr snapshot test > csr test ./examples/tag-input/demos/custom-tag.vue
125217125223
>
125218125224
<!---->
125219125225

125220-
<img
125221-
src="https://tdesign.gtimg.com/site/avatar.jpg"
125222-
style="max-width: 20px; max-height: 20px; border-radius: 50%;"
125223-
/>
125224-
<span>
125225-
  StudentA
125226+
<span
125227+
class="displayItem"
125228+
>
125229+
<img
125230+
src="https://tdesign.gtimg.com/site/avatar.jpg"
125231+
/>
125232+
<span>
125233+
  StudentA
125234+
</span>
125226125235
</span>
125227125236

125228125237
<svg
@@ -125245,12 +125254,15 @@ exports[`csr snapshot test > csr test ./examples/tag-input/demos/custom-tag.vue
125245125254
>
125246125255
<!---->
125247125256

125248-
<img
125249-
src="https://tdesign.gtimg.com/site/avatar.jpg"
125250-
style="max-width: 20px; max-height: 20px; border-radius: 50%;"
125251-
/>
125252-
<span>
125253-
  StudentB
125257+
<span
125258+
class="displayItem"
125259+
>
125260+
<img
125261+
src="https://tdesign.gtimg.com/site/avatar.jpg"
125262+
/>
125263+
<span>
125264+
  StudentB
125265+
</span>
125254125266
</span>
125255125267

125256125268
<svg
@@ -125273,12 +125285,15 @@ exports[`csr snapshot test > csr test ./examples/tag-input/demos/custom-tag.vue
125273125285
>
125274125286
<!---->
125275125287

125276-
<img
125277-
src="https://tdesign.gtimg.com/site/avatar.jpg"
125278-
style="max-width: 20px; max-height: 20px; border-radius: 50%;"
125279-
/>
125280-
<span>
125281-
  StudentC
125288+
<span
125289+
class="displayItem"
125290+
>
125291+
<img
125292+
src="https://tdesign.gtimg.com/site/avatar.jpg"
125293+
/>
125294+
<span>
125295+
  StudentC
125296+
</span>
125282125297
</span>
125283125298

125284125299
<svg

0 commit comments

Comments
 (0)