Skip to content

Commit

Permalink
chore: release 1.10.3-naruto (#3344)
Browse files Browse the repository at this point in the history
* fix(cascader): fix scroll to first selected node (#3342)

* chore: release 1.10.3-naruto
  • Loading branch information
uyarn authored Sep 27, 2024
1 parent 39b6966 commit 5ad82a5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ toc: false
docClass: timeline
---

## 🌈 1.10.3 `2024-09-27`
### 🐞 Bug Fixes
- `Cascader`: 修复初始化滚动节点时未兼容单选父节点滚动的缺陷 @uyarn ([#3342](https://github.com/Tencent/tdesign-vue/pull/3342))

## 🌈 1.10.2 `2024-09-24`
### 🐞 Bug Fixes
- 修复`1.10.1`版本中构建产物异常的问题
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": "1.10.2-naruto",
"version": "1.10.3-naruto",
"description": "tdesign-vue",
"title": "tdesign-vue",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/_common
Submodule _common updated 60 files
+27 −27 .github/workflows/pull-request.yml
+2 −2 .vscode/settings.json
+0 −47 docs/mobile/api/checkbox.en-US.md
+14 −26 docs/mobile/api/checkbox.md
+0 −12 docs/mobile/api/drawer.md
+0 −23 docs/mobile/api/empty.en-US.md
+0 −23 docs/mobile/api/empty.md
+0 −17 docs/mobile/api/indexes.en-US.md
+0 −6 docs/mobile/api/indexes.md
+0 −19 docs/mobile/api/popover.en-US.md
+0 −19 docs/mobile/api/popover.md
+0 −15 docs/mobile/api/pull-down-refresh.en-US.md
+11 −3 docs/mobile/api/pull-down-refresh.md
+0 −35 docs/mobile/api/radio.en-US.md
+5 −23 docs/mobile/api/radio.md
+0 −35 docs/mobile/api/stepper.en-US.md
+10 −16 docs/mobile/api/stepper.md
+0 −33 docs/mobile/api/swipe-cell.en-US.md
+29 −9 docs/mobile/api/swipe-cell.md
+0 −28 docs/mobile/api/switch.en-US.md
+3 −7 docs/mobile/api/switch.md
+0 −39 docs/mobile/api/tabs.en-US.md
+17 −15 docs/mobile/api/tabs.md
+0 −25 docs/mobile/api/tree-select.en-US.md
+0 −25 docs/mobile/api/tree-select.md
+0 −37 docs/mobile/api_v2/config-provider.en-US.md
+0 −92 docs/mobile/api_v2/config-provider.md
+0 −12 docs/mobile/api_v2/drawer.en-US.md
+0 −12 docs/mobile/api_v2/drawer.md
+1 −1 docs/mobile/api_v2/indexes.en-US.md
+0 −4 docs/mobile/api_v2/picker.en-US.md
+0 −4 docs/mobile/api_v2/picker.md
+1 −1 docs/web/api/popup.md
+0 −1 js/avatar/utils.ts
+4 −4 js/color-picker/color.ts
+2 −2 js/date-picker/format.ts
+3 −3 js/date-picker/utils.ts
+16 −72 js/input-number/large-number.ts
+1 −6 js/input-number/number.ts
+2 −3 style/mobile/_variables.less
+10 −32 style/mobile/components/_index.less
+12 −16 style/mobile/components/avatar/v2/_index.less
+0 −9 style/mobile/components/avatar/v2/_mixin.less
+8 −11 style/mobile/components/avatar/v2/_var.less
+71 −1 style/mobile/components/button/v2/_index.less
+16 −1 style/mobile/components/button/v2/_var.less
+1 −1 style/mobile/components/picker/v2/_index.less
+14 −24 style/mobile/components/radio/v2/_index.less
+0 −5 style/mobile/components/radio/v2/_mixin.less
+1 −1 style/mobile/components/result/v2/_var.less
+1 −1 style/mobile/components/swipe-cell/v2/_index.less
+1 −1 style/mobile/components/toast/v2/_index.less
+1 −1 style/mobile/package.json
+0 −37 style/mobile/theme/_font.less
+0 −2 style/mobile/theme/_index.less
+0 −6 style/web/components/dialog/_index.less
+1 −1 style/web/components/switch/_index.less
+0 −20 test/unit/date-picker/utils.test.js
+0 −41 test/unit/input-number/formatDecimal.test.js
+6 −23 test/unit/input-number/largeNumberToFixed.test.js
3 changes: 2 additions & 1 deletion src/cascader/cascader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ export default defineComponent({
const updateScrollTop = (content: HTMLDivElement) => {
const cascaderMenuList = content.querySelectorAll(`.${COMPONENT_NAME.value}__menu`);
cascaderMenuList.forEach((menu: HTMLDivElement) => {
const firstSelectedNode: HTMLDivElement = menu?.querySelector(`.${classPrefix.value}-is-selected`);
const firstSelectedNode: HTMLDivElement = menu?.querySelector(`.${classPrefix.value}-is-selected`)
|| menu?.querySelector(`.${classPrefix.value}-is-expanded`);
if (!firstSelectedNode || !menu) return;

const { paddingBottom } = getComputedStyle(firstSelectedNode);
Expand Down

0 comments on commit 5ad82a5

Please sign in to comment.