mirror of
https://gitee.com/vant-contrib/vant.git
synced 2026-07-12 08:54:23 +08:00
Compare commits
4 Commits
41cfae4aa6
...
c6baa88461
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c6baa88461 | ||
|
|
808ae4a076 | ||
|
|
8444c6f2f0 | ||
|
|
3d41ac66a1 |
14
.github/workflows/deploy-v3-site.yml
vendored
14
.github/workflows/deploy-v3-site.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
||||
- name: Checkout 🛎️
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
ref: 'dev'
|
||||
ref: '3.x'
|
||||
|
||||
- name: Install pnpm
|
||||
run: npm i pnpm@7 -g
|
||||
@ -32,8 +32,18 @@ jobs:
|
||||
run: npm run build:site
|
||||
|
||||
- name: Deploy 🚀
|
||||
uses: JamesIves/github-pages-deploy-action@4.1.1
|
||||
uses: JamesIves/github-pages-deploy-action@v4.4.0
|
||||
with:
|
||||
branch: gh-pages
|
||||
folder: packages/vant/site-dist
|
||||
clean: false
|
||||
|
||||
- name: Deploy for GitHub 🚀
|
||||
uses: JamesIves/github-pages-deploy-action@v4.4.0
|
||||
with:
|
||||
branch: main
|
||||
folder: packages/vant/site-dist
|
||||
token: ${{ secrets.VANT_UI_TOKEN }}
|
||||
repository-name: vant-ui/vant-ui.github.io
|
||||
target-folder: vant
|
||||
clean: false
|
||||
|
||||
@ -19,6 +19,21 @@ Vant follows [Semantic Versioning 2.0.0](https://semver.org/lang/zh-CN/).
|
||||
|
||||
## Details
|
||||
|
||||
### [v3.6.3](https://github.com/vant-ui/vant/compare/v3.6.2...v3.6.3)
|
||||
|
||||
`2022-09-24`
|
||||
|
||||
**Feature**
|
||||
|
||||
- Dialog: message-align can be justify [#11014](https://github.com/vant-ui/vant/issues/11014)
|
||||
- Image: add block prop [#11022](https://github.com/vant-ui/vant/issues/11022)
|
||||
|
||||
**Bug Fixes**
|
||||
|
||||
- Tabs: incorrect scroll position in some cases [#11085](https://github.com/vant-ui/vant/issues/11085)
|
||||
- Tabs: incorrect scroll position when inited [#11059](https://github.com/vant-ui/vant/issues/11059)
|
||||
- utils: avoid getting unexpected value [#11010](https://github.com/vant-ui/vant/issues/11010)
|
||||
|
||||
### [v3.6.2](https://github.com/vant-ui/vant/compare/v3.6.1...v3.6.2)
|
||||
|
||||
`2022-09-04`
|
||||
|
||||
@ -19,6 +19,21 @@ Vant 遵循 [Semver](https://semver.org/lang/zh-CN/) 语义化版本规范。
|
||||
|
||||
## 更新内容
|
||||
|
||||
### [v3.6.3](https://github.com/vant-ui/vant/compare/v3.6.2...v3.6.3)
|
||||
|
||||
`2022-09-24`
|
||||
|
||||
**Feature**
|
||||
|
||||
- Dialog: message-align 属性支持设置为 justify [#11014](https://github.com/vant-ui/vant/issues/11014)
|
||||
- Image: 新增 block 属性 [#11022](https://github.com/vant-ui/vant/issues/11022)
|
||||
|
||||
**Bug Fixes**
|
||||
|
||||
- Tabs: 修复个别情况下页面滚动位置错误的问题 [#11085](https://github.com/vant-ui/vant/issues/11085)
|
||||
- Tabs: 修复初始化时菜单横向滚动位置错误的问题 [#11059](https://github.com/vant-ui/vant/issues/11059)
|
||||
- Locale: 修复读取 i18n 文案时可能获取到 JS 原生方法的问题 [#11010](https://github.com/vant-ui/vant/issues/11010)
|
||||
|
||||
### [v3.6.2](https://github.com/vant-ui/vant/compare/v3.6.1...v3.6.2)
|
||||
|
||||
`2022-09-04`
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vant",
|
||||
"version": "3.6.2",
|
||||
"version": "3.6.3",
|
||||
"description": "Lightweight Mobile UI Components built on Vue",
|
||||
"main": "lib/vant.cjs.js",
|
||||
"module": "es/index.mjs",
|
||||
|
||||
@ -111,7 +111,7 @@ exports[`should update tabs when previous tab is clicked 1`] = `
|
||||
<div style="transition-duration: 0ms; transform: translateX(0px); width: 200px;"
|
||||
class="van-swipe__track"
|
||||
>
|
||||
<div class="van-swipe-item van-tab__panel-wrapper van-tab__panel-wrapper--inactive"
|
||||
<div class="van-swipe-item van-tab__panel-wrapper"
|
||||
id="van-tab"
|
||||
role="tabpanel"
|
||||
tabindex="-1"
|
||||
|
||||
@ -21,7 +21,7 @@ import {
|
||||
import { TABS_KEY } from '../tabs/Tabs';
|
||||
|
||||
// Composables
|
||||
import { useParent } from '@vant/use';
|
||||
import { doubleRaf, useParent } from '@vant/use';
|
||||
import { useId } from '../composables/use-id';
|
||||
import { useExpose } from '../composables/use-expose';
|
||||
import { routeProps } from '../composables/use-route';
|
||||
@ -84,6 +84,21 @@ export default defineComponent({
|
||||
return isActive;
|
||||
});
|
||||
|
||||
const hasInactiveClass = ref(!active.value);
|
||||
|
||||
watch(active, (val) => {
|
||||
if (val) {
|
||||
hasInactiveClass.value = false;
|
||||
} else {
|
||||
// mark tab as inactive until the active tab is rendered
|
||||
// to avoid incorrect scroll position or other render issue
|
||||
// https://github.com/youzan/vant/issues/11050
|
||||
doubleRaf(() => {
|
||||
hasInactiveClass.value = true;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
watch(
|
||||
() => props.title,
|
||||
() => {
|
||||
@ -109,7 +124,7 @@ export default defineComponent({
|
||||
<SwipeItem
|
||||
id={id}
|
||||
role="tabpanel"
|
||||
class={bem('panel-wrapper', { inactive: !active.value })}
|
||||
class={bem('panel-wrapper', { inactive: hasInactiveClass.value })}
|
||||
tabindex={active.value ? 0 : -1}
|
||||
aria-hidden={!active.value}
|
||||
aria-labelledby={label}
|
||||
|
||||
@ -470,7 +470,7 @@ exports[`swipe switch tab after swiping tab content 2`] = `
|
||||
<div style="transition-duration: 300ms; transform: translateX(-100px); width: 300px;"
|
||||
class="van-swipe__track"
|
||||
>
|
||||
<div class="van-swipe-item van-tab__panel-wrapper van-tab__panel-wrapper--inactive"
|
||||
<div class="van-swipe-item van-tab__panel-wrapper"
|
||||
id="van-tab"
|
||||
role="tabpanel"
|
||||
tabindex="-1"
|
||||
@ -560,7 +560,7 @@ exports[`swipe switch tab after swiping tab content 3`] = `
|
||||
<div style="transition-duration: 300ms; transform: translateX(-200px); width: 300px;"
|
||||
class="van-swipe__track"
|
||||
>
|
||||
<div class="van-swipe-item van-tab__panel-wrapper van-tab__panel-wrapper--inactive"
|
||||
<div class="van-swipe-item van-tab__panel-wrapper"
|
||||
id="van-tab"
|
||||
role="tabpanel"
|
||||
tabindex="-1"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user