mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
chore: update repo url
This commit is contained in:
parent
ffb819181a
commit
745578360f
2
.github/CONTRIBUTING.md
vendored
2
.github/CONTRIBUTING.md
vendored
@ -27,7 +27,7 @@ It's welcomed to pull request, And there are some tips about that:
|
|||||||
## Getting started
|
## Getting started
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone git@github.com:youzan/vant.git
|
git clone git@github.com:vant-ui/vant.git
|
||||||
|
|
||||||
cd vant
|
cd vant
|
||||||
|
|
||||||
|
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
@ -1,6 +1,6 @@
|
|||||||
### Before submitting a pull request, please make sure the following is done:
|
### Before submitting a pull request, please make sure the following is done:
|
||||||
|
|
||||||
1. Read the [contributing guide](https://github.com/youzan/vant/blob/dev/.github/CONTRIBUTING.md).
|
1. Read the [contributing guide](https://github.com/vant-ui/vant/blob/dev/.github/CONTRIBUTING.md).
|
||||||
2. If you've added code that should be tested, add tests.
|
2. If you've added code that should be tested, add tests.
|
||||||
3. If you've changed APIs, update the documentation.
|
3. If you've changed APIs, update the documentation.
|
||||||
4. Ensure the test suite passes (`npm test`).
|
4. Ensure the test suite passes (`npm test`).
|
||||||
|
16
README.md
16
README.md
@ -8,8 +8,8 @@
|
|||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="https://img.shields.io/npm/v/vant.svg?style=flat-square" alt="npm version" />
|
<img src="https://img.shields.io/npm/v/vant.svg?style=flat-square" alt="npm version" />
|
||||||
<img src="https://img.shields.io/github/workflow/status/youzan/vant/CI/dev?style=flat-square" alt="npm version" />
|
<img src="https://img.shields.io/github/workflow/status/vant-ui/vant/CI/dev?style=flat-square" alt="npm version" />
|
||||||
<img src="https://img.shields.io/codecov/c/github/youzan/vant/dev.svg?style=flat-square&color=#4fc08d" alt="Coverage Status" />
|
<img src="https://img.shields.io/codecov/c/github/vant-ui/vant/dev.svg?style=flat-square&color=#4fc08d" alt="Coverage Status" />
|
||||||
<img src="https://img.shields.io/npm/dm/vant.svg?style=flat-square&color=#4fc08d" alt="downloads" />
|
<img src="https://img.shields.io/npm/dm/vant.svg?style=flat-square&color=#4fc08d" alt="downloads" />
|
||||||
<img src="https://img.shields.io/jsdelivr/npm/hm/vant?style=flat-square" alt="Jsdelivr Hits">
|
<img src="https://img.shields.io/jsdelivr/npm/hm/vant?style=flat-square" alt="Jsdelivr Hits">
|
||||||
<img src="https://img.badgesize.io/https://unpkg.com/vant/lib/vant.min.js?compression=gzip&style=flat-square&label=gzip%20size&color=#4fc08d" alt="Gzip Size" />
|
<img src="https://img.badgesize.io/https://unpkg.com/vant/lib/vant.min.js?compression=gzip&style=flat-square&label=gzip%20size&color=#4fc08d" alt="Gzip Size" />
|
||||||
@ -22,7 +22,7 @@
|
|||||||
🇨🇳 <a href="./README.zh-CN.md">中文版介绍</a>
|
🇨🇳 <a href="./README.zh-CN.md">中文版介绍</a>
|
||||||
|
|
||||||
|
|
||||||
🚀 <a href="https://github.com/youzan/vant-weapp" target="_blank">小程序版</a>
|
🚀 <a href="https://github.com/vant-ui/vant-weapp" target="_blank">小程序版</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
---
|
---
|
||||||
@ -77,11 +77,11 @@ Vant 3 supports modern browsers and Chrome >= 51、iOS >= 10.0 (same as Vue 3).
|
|||||||
|
|
||||||
| Project | Description |
|
| Project | Description |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| [vant-weapp](https://github.com/youzan/vant-weapp) | WeChat MiniProgram UI |
|
| [vant-weapp](https://github.com/vant-ui/vant-weapp) | WeChat MiniProgram UI |
|
||||||
| [vant-demo](https://github.com/youzan/vant-demo) | Collection of Vant demos |
|
| [vant-demo](https://github.com/vant-ui/vant-demo) | Collection of Vant demos |
|
||||||
| [vant-cli](https://github.com/youzan/vant/tree/dev/packages/vant-cli) | Scaffold for UI library |
|
| [vant-cli](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli) | Scaffold for UI library |
|
||||||
| [vant-icons](https://github.com/youzan/vant/tree/dev/packages/vant-icons) | Vant icons |
|
| [vant-icons](https://github.com/vant-ui/vant/tree/dev/packages/vant-icons) | Vant icons |
|
||||||
| [vant-touch-emulator](https://github.com/youzan/vant/tree/dev/packages/vant-touch-emulator) | Using vant in desktop browsers |
|
| [vant-touch-emulator](https://github.com/vant-ui/vant/tree/dev/packages/vant-touch-emulator) | Using vant in desktop browsers |
|
||||||
|
|
||||||
## Community Ecosystem
|
## Community Ecosystem
|
||||||
|
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="https://img.shields.io/npm/v/vant.svg?style=flat-square" alt="npm version" />
|
<img src="https://img.shields.io/npm/v/vant.svg?style=flat-square" alt="npm version" />
|
||||||
<img src="https://img.shields.io/github/workflow/status/youzan/vant/CI/dev?style=flat-square" alt="npm version" />
|
<img src="https://img.shields.io/github/workflow/status/vant-ui/vant/CI/dev?style=flat-square" alt="npm version" />
|
||||||
<img src="https://img.shields.io/codecov/c/github/youzan/vant/dev.svg?style=flat-square&color=#4fc08d" alt="Coverage Status" />
|
<img src="https://img.shields.io/codecov/c/github/vant-ui/vant/dev.svg?style=flat-square&color=#4fc08d" alt="Coverage Status" />
|
||||||
<img src="https://img.shields.io/npm/dm/vant.svg?style=flat-square&color=#4fc08d" alt="downloads" />
|
<img src="https://img.shields.io/npm/dm/vant.svg?style=flat-square&color=#4fc08d" alt="downloads" />
|
||||||
<img src="https://img.shields.io/jsdelivr/npm/hm/vant?style=flat-square" alt="Jsdelivr Hits">
|
<img src="https://img.shields.io/jsdelivr/npm/hm/vant?style=flat-square" alt="Jsdelivr Hits">
|
||||||
<img src="https://img.badgesize.io/https://unpkg.com/vant/lib/vant.min.js?compression=gzip&style=flat-square&label=gzip%20size&color=#4fc08d" alt="Gzip Size" />
|
<img src="https://img.badgesize.io/https://unpkg.com/vant/lib/vant.min.js?compression=gzip&style=flat-square&label=gzip%20size&color=#4fc08d" alt="Gzip Size" />
|
||||||
@ -19,7 +19,7 @@
|
|||||||
🔥 <a href="https://vant-contrib.gitee.io/vant">文档网站</a>
|
🔥 <a href="https://vant-contrib.gitee.io/vant">文档网站</a>
|
||||||
|
|
||||||
|
|
||||||
🚀 <a href="https://github.com/youzan/vant-weapp" target="_blank">小程序版</a>
|
🚀 <a href="https://github.com/vant-ui/vant-weapp" target="_blank">小程序版</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
---
|
---
|
||||||
@ -70,7 +70,7 @@ vant 也支持按需引入、CDN 引入等方式,详细说明见 [快速上手
|
|||||||
|
|
||||||
修改代码请阅读我们的 [开发指南](https://vant-contrib.gitee.io/vant/#/zh-CN/contribution)。
|
修改代码请阅读我们的 [开发指南](https://vant-contrib.gitee.io/vant/#/zh-CN/contribution)。
|
||||||
|
|
||||||
使用过程中发现任何问题都可以提 [Issue](https://github.com/youzan/vant/issues) 给我们,当然,我们也非常欢迎你给我们发 [PR](https://github.com/youzan/vant/pulls)。
|
使用过程中发现任何问题都可以提 [Issue](https://github.com/vant-ui/vant/issues) 给我们,当然,我们也非常欢迎你给我们发 [PR](https://github.com/vant-ui/vant/pulls)。
|
||||||
|
|
||||||
## 浏览器支持
|
## 浏览器支持
|
||||||
|
|
||||||
@ -84,11 +84,11 @@ Vant 3 支持现代浏览器以及 Chrome >= 51、iOS >= 10.0(与 Vue 3 一致
|
|||||||
|
|
||||||
| 项目 | 描述 |
|
| 项目 | 描述 |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| [vant-weapp](https://github.com/youzan/vant-weapp) | Vant 微信小程序版 |
|
| [vant-weapp](https://github.com/vant-ui/vant-weapp) | Vant 微信小程序版 |
|
||||||
| [vant-demo](https://github.com/youzan/vant-demo) | Vant 官方示例合集 |
|
| [vant-demo](https://github.com/vant-ui/vant-demo) | Vant 官方示例合集 |
|
||||||
| [vant-cli](https://github.com/youzan/vant/tree/dev/packages/vant-cli) | 开箱即用的组件库搭建工具 |
|
| [vant-cli](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli) | 开箱即用的组件库搭建工具 |
|
||||||
| [vant-icons](https://github.com/youzan/vant/tree/dev/packages/vant-icons) | Vant 图标库 |
|
| [vant-icons](https://github.com/vant-ui/vant/tree/dev/packages/vant-icons) | Vant 图标库 |
|
||||||
| [vant-touch-emulator](https://github.com/youzan/vant/tree/dev/packages/vant-touch-emulator) | 在桌面端使用 Vant 的辅助库 |
|
| [vant-touch-emulator](https://github.com/vant-ui/vant/tree/dev/packages/vant-touch-emulator) | 在桌面端使用 Vant 的辅助库 |
|
||||||
|
|
||||||
## 社区生态
|
## 社区生态
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ module.exports = {
|
|||||||
|
|
||||||
### Adapt to PC Browsers
|
### Adapt to PC Browsers
|
||||||
|
|
||||||
Vant is a mobile-first component library, if you want to use Vant in PC browsers, you can use the [@vant/touch-emulator](https://github.com/youzan/vant/tree/dev/packages/vant-touch-emulator) module. This module will automatically convert the mouse events of the PC browser into the touch events of the mobile browser.
|
Vant is a mobile-first component library, if you want to use Vant in PC browsers, you can use the [@vant/touch-emulator](https://github.com/vant-ui/vant/tree/dev/packages/vant-touch-emulator) module. This module will automatically convert the mouse events of the PC browser into the touch events of the mobile browser.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Install
|
# Install
|
||||||
|
@ -163,7 +163,7 @@ module.exports = {
|
|||||||
|
|
||||||
Vant 是一个面向移动端的组件库,因此默认只适配了移动端设备,这意味着组件只监听了移动端的 `touch` 事件,没有监听桌面端的 `mouse` 事件。
|
Vant 是一个面向移动端的组件库,因此默认只适配了移动端设备,这意味着组件只监听了移动端的 `touch` 事件,没有监听桌面端的 `mouse` 事件。
|
||||||
|
|
||||||
如果你需要在桌面端使用 Vant,可以引入我们提供的 [@vant/touch-emulator](https://github.com/youzan/vant/tree/dev/packages/vant-touch-emulator),这个库会在桌面端自动将 `mouse` 事件转换成对应的 `touch` 事件,使得组件能够在桌面端使用。
|
如果你需要在桌面端使用 Vant,可以引入我们提供的 [@vant/touch-emulator](https://github.com/vant-ui/vant/tree/dev/packages/vant-touch-emulator),这个库会在桌面端自动将 `mouse` 事件转换成对应的 `touch` 事件,使得组件能够在桌面端使用。
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 安装模块
|
# 安装模块
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -21,7 +21,7 @@
|
|||||||
# 克隆仓库
|
# 克隆仓库
|
||||||
# 默认为 dev 分支,包含 Vant 3 的代码
|
# 默认为 dev 分支,包含 Vant 3 的代码
|
||||||
# 如果需要在 Vant 2 上进行更改,请基于 2.x 分支进行开发
|
# 如果需要在 Vant 2 上进行更改,请基于 2.x 分支进行开发
|
||||||
git clone git@github.com:youzan/vant.git
|
git clone git@github.com:vant-ui/vant.git
|
||||||
|
|
||||||
# 安装依赖
|
# 安装依赖
|
||||||
cd vant && yarn
|
cd vant && yarn
|
||||||
@ -84,7 +84,7 @@ src
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 添加主仓库到 remote,作为 fork 后仓库的上游仓库
|
# 添加主仓库到 remote,作为 fork 后仓库的上游仓库
|
||||||
git remote add upstream https://github.com/youzan/vant.git
|
git remote add upstream https://github.com/vant-ui/vant.git
|
||||||
|
|
||||||
# 拉取主仓库最新代码
|
# 拉取主仓库最新代码
|
||||||
git fetch upstream
|
git fetch upstream
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
<img src="https://img01.yzcdn.cn/vant/tab_202009101415.png" style="width: 80%; box-shadow: 0 1px 2px rgba(0,0,0,.2)">
|
<img src="https://img01.yzcdn.cn/vant/tab_202009101415.png" style="width: 80%; box-shadow: 0 1px 2px rgba(0,0,0,.2)">
|
||||||
|
|
||||||
<a class="design-download" href="https://github.com/youzan/vant/blob/2.x/docs/assets/design.sketch?raw=true">下载</a>
|
<a class="design-download" href="https://github.com/vant-ui/vant/blob/2.x/docs/assets/design.sketch?raw=true">下载</a>
|
||||||
|
|
||||||
### 图标设计稿(Sketch)
|
### 图标设计稿(Sketch)
|
||||||
|
|
||||||
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
<img src="https://img01.yzcdn.cn/vant/design-icons-0321.png" style="width: 80%; box-shadow: 0 1px 2px rgba(0,0,0,.2)">
|
<img src="https://img01.yzcdn.cn/vant/design-icons-0321.png" style="width: 80%; box-shadow: 0 1px 2px rgba(0,0,0,.2)">
|
||||||
|
|
||||||
<a class="design-download" href="https://github.com/youzan/vant/blob/2.x/packages/vant-icons/assets/icons.sketch?raw=true">下载</a>
|
<a class="design-download" href="https://github.com/vant-ui/vant/blob/2.x/packages/vant-icons/assets/icons.sketch?raw=true">下载</a>
|
||||||
|
|
||||||
#### 在线资源
|
#### 在线资源
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ See in [Quickstart](#/en-US/quickstart).
|
|||||||
|
|
||||||
### Contribution
|
### Contribution
|
||||||
|
|
||||||
Please make sure to read the [Contributing Guide](https://github.com/youzan/vant/blob/dev/.github/CONTRIBUTING.md) before making a pull request.
|
Please make sure to read the [Contributing Guide](https://github.com/vant-ui/vant/blob/dev/.github/CONTRIBUTING.md) before making a pull request.
|
||||||
|
|
||||||
### Browser Support
|
### Browser Support
|
||||||
|
|
||||||
@ -38,11 +38,11 @@ Vant 3 supports modern browsers and Chrome >= 51、iOS >= 10.0 (same as Vue 3).
|
|||||||
|
|
||||||
| Project | Description |
|
| Project | Description |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| [vant-weapp](https://github.com/youzan/vant-weapp) | WeChat MiniProgram UI |
|
| [vant-weapp](https://github.com/vant-ui/vant-weapp) | WeChat MiniProgram UI |
|
||||||
| [vant-demo](https://github.com/youzan/vant-demo) | Collection of Vant demos |
|
| [vant-demo](https://github.com/vant-ui/vant-demo) | Collection of Vant demos |
|
||||||
| [vant-cli](https://github.com/youzan/vant/tree/dev/packages/vant-cli) | Scaffold for UI library |
|
| [vant-cli](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli) | Scaffold for UI library |
|
||||||
| [vant-icons](https://github.com/youzan/vant/tree/dev/packages/vant-icons) | Vant icons |
|
| [vant-icons](https://github.com/vant-ui/vant/tree/dev/packages/vant-icons) | Vant icons |
|
||||||
| [vant-touch-emulator](https://github.com/youzan/vant/tree/dev/packages/vant-touch-emulator) | Using vant in desktop browsers |
|
| [vant-touch-emulator](https://github.com/vant-ui/vant/tree/dev/packages/vant-touch-emulator) | Using vant in desktop browsers |
|
||||||
|
|
||||||
### Community Ecosystem
|
### Community Ecosystem
|
||||||
|
|
||||||
@ -58,7 +58,7 @@ Vant 3 supports modern browsers and Chrome >= 51、iOS >= 10.0 (same as Vue 3).
|
|||||||
|
|
||||||
### Links
|
### Links
|
||||||
|
|
||||||
- [Feedback](https://github.com/youzan/vant/issues)
|
- [Feedback](https://github.com/vant-ui/vant/issues)
|
||||||
- [Changelog](#/en-US/changelog)
|
- [Changelog](#/en-US/changelog)
|
||||||
- [Gitter](https://gitter.im/vant-contrib/discuss?utm_source=share-link&utm_medium=link&utm_campaign=share-link)
|
- [Gitter](https://gitter.im/vant-contrib/discuss?utm_source=share-link&utm_medium=link&utm_campaign=share-link)
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ Vant 是一个**轻量、可靠的移动端组件库**,于 2017 年开源。
|
|||||||
|
|
||||||
修改代码请阅读我们的[开发指南](#/zh-CN/contribution)。
|
修改代码请阅读我们的[开发指南](#/zh-CN/contribution)。
|
||||||
|
|
||||||
使用过程中发现任何问题都可以提 [Issue](https://github.com/youzan/vant/issues) 给我们,当然,我们也非常欢迎你给我们发 [PR](https://github.com/youzan/vant/pulls)。
|
使用过程中发现任何问题都可以提 [Issue](https://github.com/vant-ui/vant/issues) 给我们,当然,我们也非常欢迎你给我们发 [PR](https://github.com/vant-ui/vant/pulls)。
|
||||||
|
|
||||||
### 浏览器支持
|
### 浏览器支持
|
||||||
|
|
||||||
@ -52,11 +52,11 @@ Vant 3 支持现代浏览器以及 Chrome >= 51、iOS >= 10.0(与 Vue 3 一致
|
|||||||
|
|
||||||
| 项目 | 描述 |
|
| 项目 | 描述 |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| [vant-weapp](https://github.com/youzan/vant-weapp) | Vant 微信小程序版 |
|
| [vant-weapp](https://github.com/vant-ui/vant-weapp) | Vant 微信小程序版 |
|
||||||
| [vant-demo](https://github.com/youzan/vant-demo) | Vant 官方示例合集 |
|
| [vant-demo](https://github.com/vant-ui/vant-demo) | Vant 官方示例合集 |
|
||||||
| [vant-cli](https://github.com/youzan/vant/tree/dev/packages/vant-cli) | 开箱即用的组件库搭建工具 |
|
| [vant-cli](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli) | 开箱即用的组件库搭建工具 |
|
||||||
| [vant-icons](https://github.com/youzan/vant/tree/dev/packages/vant-icons) | Vant 图标库 |
|
| [vant-icons](https://github.com/vant-ui/vant/tree/dev/packages/vant-icons) | Vant 图标库 |
|
||||||
| [vant-touch-emulator](https://github.com/youzan/vant/tree/dev/packages/vant-touch-emulator) | 在桌面端使用 Vant 的辅助库 |
|
| [vant-touch-emulator](https://github.com/vant-ui/vant/tree/dev/packages/vant-touch-emulator) | 在桌面端使用 Vant 的辅助库 |
|
||||||
|
|
||||||
### 社区生态
|
### 社区生态
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ Vant 3 支持现代浏览器以及 Chrome >= 51、iOS >= 10.0(与 Vue 3 一致
|
|||||||
|
|
||||||
### 链接
|
### 链接
|
||||||
|
|
||||||
- [意见反馈](https://github.com/youzan/vant/issues)
|
- [意见反馈](https://github.com/vant-ui/vant/issues)
|
||||||
- [更新日志](#/zh-CN/changelog)
|
- [更新日志](#/zh-CN/changelog)
|
||||||
- [码云镜像](https://vant-contrib.gitee.io/vant)
|
- [码云镜像](https://vant-contrib.gitee.io/vant)
|
||||||
- [Gitter 讨论组](https://gitter.im/vant-contrib/discuss?utm_source=share-link&utm_medium=link&utm_campaign=share-link)
|
- [Gitter 讨论组](https://gitter.im/vant-contrib/discuss?utm_source=share-link&utm_medium=link&utm_campaign=share-link)
|
||||||
|
@ -87,7 +87,7 @@ vue ui
|
|||||||
|
|
||||||
### 示例工程
|
### 示例工程
|
||||||
|
|
||||||
我们提供了丰富的[示例工程](https://github.com/youzan/vant-demo),通过示例工程你可以了解如下内容:
|
我们提供了丰富的[示例工程](https://github.com/vant-ui/vant-demo),通过示例工程你可以了解如下内容:
|
||||||
|
|
||||||
- 基于 Vue Cli 和 Vant 搭建应用
|
- 基于 Vue Cli 和 Vant 搭建应用
|
||||||
- 基于 Nuxt 和 Vant 搭建应用
|
- 基于 Nuxt 和 Vant 搭建应用
|
||||||
|
@ -6,7 +6,7 @@ Vant use [Less](http://lesscss.org/) as css preprocessor,you can override the
|
|||||||
|
|
||||||
### Less variables
|
### Less variables
|
||||||
|
|
||||||
There are some basic variables below, all available variables could be found in [var.less](https://github.com/youzan/vant/blob/2.x/src/style/var.less)。
|
There are some basic variables below, all available variables could be found in [var.less](https://github.com/vant-ui/vant/blob/2.x/src/style/var.less)。
|
||||||
|
|
||||||
```less
|
```less
|
||||||
// Color Palette
|
// Color Palette
|
||||||
|
@ -6,13 +6,13 @@ Vant 提供了一套默认主题,CSS 命名采用 BEM 的风格,方便使用
|
|||||||
|
|
||||||
### 示例工程
|
### 示例工程
|
||||||
|
|
||||||
我们提供了一个基于 Vue Cli 3 的示例工程,仓库地址为 [Vant Demo](https://github.com/youzan/vant-demo),其中包含了定制主题的基本配置,可以作为参考。
|
我们提供了一个基于 Vue Cli 3 的示例工程,仓库地址为 [Vant Demo](https://github.com/vant-ui/vant-demo),其中包含了定制主题的基本配置,可以作为参考。
|
||||||
|
|
||||||
### 样式变量
|
### 样式变量
|
||||||
|
|
||||||
Vant 使用了 [Less](http://lesscss.org/) 对样式进行预处理,并内置了一些样式变量,通过替换样式变量即可定制你自己需要的主题。
|
Vant 使用了 [Less](http://lesscss.org/) 对样式进行预处理,并内置了一些样式变量,通过替换样式变量即可定制你自己需要的主题。
|
||||||
|
|
||||||
下面是所有的基础样式变量,组件的颜色变量请参考各个组件的文档或[配置文件](https://github.com/youzan/vant/blob/2.x/src/style/var.less)。
|
下面是所有的基础样式变量,组件的颜色变量请参考各个组件的文档或[配置文件](https://github.com/vant-ui/vant/blob/2.x/src/style/var.less)。
|
||||||
|
|
||||||
```less
|
```less
|
||||||
// Color Palette
|
// Color Palette
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git@github.com:youzan/vant.git"
|
"url": "git@github.com:vant-ui/vant.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"ui",
|
"ui",
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/youzan/vant/tree/dev/packages/create-vant-cli-app"
|
"url": "https://github.com/vant-ui/vant/tree/dev/packages/create-vant-cli-app"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"lib",
|
"lib",
|
||||||
|
@ -65,8 +65,8 @@ yarn add @vant/cli --dev
|
|||||||
|
|
||||||
## 详细文档
|
## 详细文档
|
||||||
|
|
||||||
- [命令](https://github.com/youzan/vant/tree/dev/packages/vant-cli/docs/commands.md)
|
- [命令](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli/docs/commands.md)
|
||||||
- [配置指南](https://github.com/youzan/vant/tree/dev/packages/vant-cli/docs/config.md)
|
- [配置指南](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli/docs/config.md)
|
||||||
- [目录结构](https://github.com/youzan/vant/tree/dev/packages/vant-cli/docs/directory.md)
|
- [目录结构](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli/docs/directory.md)
|
||||||
- [桌面端组件](https://github.com/youzan/vant/tree/dev/packages/vant-cli/docs/desktop.md)
|
- [桌面端组件](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli/docs/desktop.md)
|
||||||
- [更新日志](https://github.com/youzan/vant/tree/dev/packages/vant-cli/changelog.md)
|
- [更新日志](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli/changelog.md)
|
||||||
|
@ -192,15 +192,15 @@
|
|||||||
|
|
||||||
`2020-03-29`
|
`2020-03-29`
|
||||||
|
|
||||||
- 优化网站导航栏在大屏上的适配 ([#5928](https://github.com/youzan/vant/pull/5928))
|
- 优化网站导航栏在大屏上的适配 ([#5928](https://github.com/vant-ui/vant/pull/5928))
|
||||||
|
|
||||||
### v2.3.0
|
### v2.3.0
|
||||||
|
|
||||||
`2020-03-25`
|
`2020-03-25`
|
||||||
|
|
||||||
- build 命令支持编译 scoped 样式 ([#5910](https://github.com/youzan/vant/pull/5910))
|
- build 命令支持编译 scoped 样式 ([#5910](https://github.com/vant-ui/vant/pull/5910))
|
||||||
- build 命令支持生成 WebStorm 组件定义文件 ([#5899](https://github.com/youzan/vant/issues/5899))
|
- build 命令支持生成 WebStorm 组件定义文件 ([#5899](https://github.com/vant-ui/vant/issues/5899))
|
||||||
- clean 命令现在会移除而不是清空文件夹 ([#5895](https://github.com/youzan/vant/issues/5895))
|
- clean 命令现在会移除而不是清空文件夹 ([#5895](https://github.com/vant-ui/vant/issues/5895))
|
||||||
- 升级 @vant/markdown-vetur 2.0.0
|
- 升级 @vant/markdown-vetur 2.0.0
|
||||||
|
|
||||||
### v2.2.8
|
### v2.2.8
|
||||||
@ -234,7 +234,7 @@
|
|||||||
|
|
||||||
`2020-02-14`
|
`2020-02-14`
|
||||||
|
|
||||||
- 修复在 windows 上构建出的样式入口文件路径错误的问题 ([#5655](https://github.com/youzan/vant/pull/5655)
|
- 修复在 windows 上构建出的样式入口文件路径错误的问题 ([#5655](https://github.com/vant-ui/vant/pull/5655)
|
||||||
|
|
||||||
### v2.2.3
|
### v2.2.3
|
||||||
|
|
||||||
@ -246,14 +246,14 @@
|
|||||||
|
|
||||||
`2020-02-05`
|
`2020-02-05`
|
||||||
|
|
||||||
- 修复在 windows 上获取 markdown 路径错误的问题 ([#5626](https://github.com/youzan/vant/pull/5626))
|
- 修复在 windows 上获取 markdown 路径错误的问题 ([#5626](https://github.com/vant-ui/vant/pull/5626))
|
||||||
|
|
||||||
### v2.2.1
|
### v2.2.1
|
||||||
|
|
||||||
`2020-02-04`
|
`2020-02-04`
|
||||||
|
|
||||||
- 升级 babel@7.8
|
- 升级 babel@7.8
|
||||||
- 修复切换版本时跳转 undefined 的问题 ([#5620](https://github.com/youzan/vant/pull/5620))
|
- 修复切换版本时跳转 undefined 的问题 ([#5620](https://github.com/vant-ui/vant/pull/5620))
|
||||||
|
|
||||||
### v2.2.0
|
### v2.2.0
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ npx vant-cli dev
|
|||||||
|
|
||||||
构建组件库。
|
构建组件库。
|
||||||
|
|
||||||
运行 build 命令会在 `es` 和 `lib` 目录下生成可用于生产环境的组件代码,详见 [目录结构](https://github.com/youzan/vant/tree/dev/packages/vant-cli/docs/directory.md)。
|
运行 build 命令会在 `es` 和 `lib` 目录下生成可用于生产环境的组件代码,详见 [目录结构](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli/docs/directory.md)。
|
||||||
|
|
||||||
发布 npm 时,请将以下配置加入到 `package.json` 中,使 npm 包能被正确识别:
|
发布 npm 时,请将以下配置加入到 `package.json` 中,使 npm 包能被正确识别:
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": "https://github.com/youzan/vant/tree/dev/packages/vant-eslint-config",
|
"repository": "https://github.com/vant-ui/vant/tree/dev/packages/vant-eslint-config",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"eslint": "^6.0.0"
|
"eslint": "^6.0.0"
|
||||||
},
|
},
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
"release": "npm run build && release-it"
|
"release": "npm run build && release-it"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": "https://github.com/youzan/vant/tree/dev/packages/vant-icons",
|
"repository": "https://github.com/vant-ui/vant/tree/dev/packages/vant-icons",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"fast-glob": "^3.2.2",
|
"fast-glob": "^3.2.2",
|
||||||
"fs-extra": "^9.0.1",
|
"fs-extra": "^9.0.1",
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": "https://github.com/youzan/vant/tree/dev/packages/vant-markdown-loader",
|
"repository": "https://github.com/vant-ui/vant/tree/dev/packages/vant-markdown-loader",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"front-matter": "^3.0.2",
|
"front-matter": "^3.0.2",
|
||||||
"highlight.js": "^10.0.0",
|
"highlight.js": "^10.0.0",
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"description": "simple parse markdown to vue component description for vetur auto-completion",
|
"description": "simple parse markdown to vue component description for vetur auto-completion",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": "https://github.com/youzan/vant/tree/dev/packages/vant-markdown-vetur",
|
"repository": "https://github.com/vant-ui/vant/tree/dev/packages/vant-markdown-vetur",
|
||||||
"author": "zhangshuai",
|
"author": "zhangshuai",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public",
|
"access": "public",
|
||||||
|
@ -14,4 +14,4 @@ see: https://popper.js.org/
|
|||||||
|
|
||||||
## Refer
|
## Refer
|
||||||
|
|
||||||
issue: https://github.com/youzan/vant/issues/7626
|
issue: https://github.com/vant-ui/vant/issues/7626
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
"build": "rollup --config rollup.config.js && tsc -p ./tsconfig.json --emitDeclarationOnly"
|
"build": "rollup --config rollup.config.js && tsc -p ./tsconfig.json --emitDeclarationOnly"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": "https://github.com/youzan/vant/tree/dev/packages/vant-popperjs",
|
"repository": "https://github.com/vant-ui/vant/tree/dev/packages/vant-popperjs",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@popperjs/core": "^2.5.4"
|
"@popperjs/core": "^2.5.4"
|
||||||
},
|
},
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": "https://github.com/youzan/vant/tree/dev/packages/vant-stylelint-config",
|
"repository": "https://github.com/vant-ui/vant/tree/dev/packages/vant-stylelint-config",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"stylelint": "^13.0.0"
|
"stylelint": "^13.0.0"
|
||||||
},
|
},
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
### [v1.2.0]
|
### [v1.2.0]
|
||||||
`2019-11-22`
|
`2019-11-22`
|
||||||
|
|
||||||
- fix incorrect touchmove behaviour in Firefox [\#5118](https://github.com/youzan/vant/pull/5118)
|
- fix incorrect touchmove behaviour in Firefox [\#5118](https://github.com/vant-ui/vant/pull/5118)
|
||||||
|
|
||||||
### [v1.1.0]
|
### [v1.1.0]
|
||||||
`2019-06-03`
|
`2019-06-03`
|
||||||
|
@ -7,5 +7,5 @@
|
|||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": "https://github.com/youzan/vant/tree/dev/packages/vant-touch-emulator"
|
"repository": "https://github.com/vant-ui/vant/tree/dev/packages/vant-touch-emulator"
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
"release": "npm run build && npm publish"
|
"release": "npm run build && npm publish"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": "https://github.com/youzan/vant/tree/dev/packages/vant-waterfall",
|
"repository": "https://github.com/vant-ui/vant/tree/dev/packages/vant-waterfall",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/cli": "^7.8.4",
|
"@babel/cli": "^7.8.4",
|
||||||
"@babel/core": "^7.9.0",
|
"@babel/core": "^7.9.0",
|
||||||
|
@ -49,7 +49,7 @@ export default {
|
|||||||
|
|
||||||
### @vant/area-data
|
### @vant/area-data
|
||||||
|
|
||||||
Vant officially provides a default area data, which can be imported through [@vant/area-data](https://github.com/youzan/vant/tree/dev/packages/vant-area-data):
|
Vant officially provides a default area data, which can be imported through [@vant/area-data](https://github.com/vant-ui/vant/tree/dev/packages/vant-area-data):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn add @vant/area-data
|
yarn add @vant/area-data
|
||||||
|
@ -51,7 +51,7 @@ const areaList = {
|
|||||||
|
|
||||||
### @vant/area-data
|
### @vant/area-data
|
||||||
|
|
||||||
Vant 官方提供了一份默认的省市区数据,可以通过 [@vant/area-data](https://github.com/youzan/vant/tree/dev/packages/vant-area-data) 引入:
|
Vant 官方提供了一份默认的省市区数据,可以通过 [@vant/area-data](https://github.com/vant-ui/vant/tree/dev/packages/vant-area-data) 引入:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn add @vant/area-data
|
yarn add @vant/area-data
|
||||||
|
@ -153,7 +153,7 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
// fix icon vertical align
|
// fix icon vertical align
|
||||||
// see: https://github.com/youzan/vant/issues/7617
|
// see: https://github.com/vant-ui/vant/issues/7617
|
||||||
&::before {
|
&::before {
|
||||||
content: ' ';
|
content: ' ';
|
||||||
}
|
}
|
||||||
|
@ -171,7 +171,7 @@ export default createComponent({
|
|||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.init();
|
this.init();
|
||||||
// https://github.com/youzan/vant/issues/9845
|
// https://github.com/vant-ui/vant/issues/9845
|
||||||
this.vanPopup?.$on('opened', this.onScroll);
|
this.vanPopup?.$on('opened', this.onScroll);
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -194,7 +194,7 @@ export default createComponent({
|
|||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
// add Math.floor to avoid decimal height issues
|
// add Math.floor to avoid decimal height issues
|
||||||
// https://github.com/youzan/vant/issues/5640
|
// https://github.com/vant-ui/vant/issues/5640
|
||||||
this.bodyHeight = Math.floor(
|
this.bodyHeight = Math.floor(
|
||||||
this.$refs.body.getBoundingClientRect().height
|
this.$refs.body.getBoundingClientRect().height
|
||||||
);
|
);
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
&__title {
|
&__title {
|
||||||
.van-cell__right-icon::before {
|
.van-cell__right-icon::before {
|
||||||
// using translateZ to fix safari rendering issues
|
// using translateZ to fix safari rendering issues
|
||||||
// see: https://github.com/youzan/vant/issues/8608
|
// see: https://github.com/vant-ui/vant/issues/8608
|
||||||
transform: rotate(90deg) translateZ(0);
|
transform: rotate(90deg) translateZ(0);
|
||||||
transition: transform @collapse-item-transition-duration;
|
transition: transform @collapse-item-transition-duration;
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,7 @@ export default createComponent({
|
|||||||
|
|
||||||
tick() {
|
tick() {
|
||||||
// should not start counting in server
|
// should not start counting in server
|
||||||
// see: https://github.com/youzan/vant/issues/7807
|
// see: https://github.com/vant-ui/vant/issues/7807
|
||||||
if (!inBrowser) {
|
if (!inBrowser) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -268,7 +268,7 @@ export default createComponent({
|
|||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
// https://github.com/youzan/vant/issues/9775
|
// https://github.com/vant-ui/vant/issues/9775
|
||||||
this.updateInnerValue();
|
this.updateInnerValue();
|
||||||
this.$emit('change', picker);
|
this.$emit('change', picker);
|
||||||
});
|
});
|
||||||
|
@ -108,7 +108,7 @@ export default createComponent({
|
|||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
// https://github.com/youzan/vant/issues/9775
|
// https://github.com/vant-ui/vant/issues/9775
|
||||||
this.updateInnerValue();
|
this.updateInnerValue();
|
||||||
this.$emit('change', picker);
|
this.$emit('change', picker);
|
||||||
});
|
});
|
||||||
|
@ -77,7 +77,7 @@ export const TimePickerMixin = {
|
|||||||
return this.$refs.picker;
|
return this.$refs.picker;
|
||||||
},
|
},
|
||||||
|
|
||||||
// https://github.com/youzan/vant/issues/10013
|
// https://github.com/vant-ui/vant/issues/10013
|
||||||
getProxiedPicker() {
|
getProxiedPicker() {
|
||||||
const { picker } = this.$refs;
|
const { picker } = this.$refs;
|
||||||
if (picker) {
|
if (picker) {
|
||||||
|
@ -306,7 +306,7 @@ export default createComponent({
|
|||||||
value = isDef(value) ? String(value) : '';
|
value = isDef(value) ? String(value) : '';
|
||||||
|
|
||||||
// native maxlength have incorrect line-break counting
|
// native maxlength have incorrect line-break counting
|
||||||
// see: https://github.com/youzan/vant/issues/5033
|
// see: https://github.com/vant-ui/vant/issues/5033
|
||||||
const { maxlength } = this;
|
const { maxlength } = this;
|
||||||
if (isDef(maxlength) && value.length > maxlength) {
|
if (isDef(maxlength) && value.length > maxlength) {
|
||||||
if (this.value && this.value.length === +maxlength) {
|
if (this.value && this.value.length === +maxlength) {
|
||||||
@ -347,7 +347,7 @@ export default createComponent({
|
|||||||
onFocus(event) {
|
onFocus(event) {
|
||||||
this.focused = true;
|
this.focused = true;
|
||||||
this.$emit('focus', event);
|
this.$emit('focus', event);
|
||||||
// https://github.com/youzan/vant/issues/9715
|
// https://github.com/vant-ui/vant/issues/9715
|
||||||
this.$nextTick(this.adjustSize);
|
this.$nextTick(this.adjustSize);
|
||||||
|
|
||||||
// readonly not work in legacy mobile safari
|
// readonly not work in legacy mobile safari
|
||||||
@ -432,7 +432,7 @@ export default createComponent({
|
|||||||
|
|
||||||
if (height) {
|
if (height) {
|
||||||
input.style.height = height + 'px';
|
input.style.height = height + 'px';
|
||||||
// https://github.com/youzan/vant/issues/9178
|
// https://github.com/vant-ui/vant/issues/9178
|
||||||
setRootScrollTop(scrollTop);
|
setRootScrollTop(scrollTop);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -186,7 +186,7 @@ test('maxlength', async () => {
|
|||||||
expect(input.element.value).toEqual('123');
|
expect(input.element.value).toEqual('123');
|
||||||
expect(wrapper.emitted('input')[0][0]).toEqual('123');
|
expect(wrapper.emitted('input')[0][0]).toEqual('123');
|
||||||
|
|
||||||
// see: https://github.com/youzan/vant/issues/7265
|
// see: https://github.com/vant-ui/vant/issues/7265
|
||||||
input.element.value = 1423;
|
input.element.value = 1423;
|
||||||
input.trigger('input');
|
input.trigger('input');
|
||||||
expect(input.element.value).toEqual('123');
|
expect(input.element.value).toEqual('123');
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
color: @grid-item-text-color;
|
color: @grid-item-text-color;
|
||||||
font-size: @grid-item-text-font-size;
|
font-size: @grid-item-text-font-size;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
// https://github.com/youzan/vant/issues/3894
|
// https://github.com/vant-ui/vant/issues/3894
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,8 +56,8 @@ Current supported languages:
|
|||||||
| French | fr-FR |
|
| French | fr-FR |
|
||||||
| Vietnamese | vi-VN |
|
| Vietnamese | vi-VN |
|
||||||
|
|
||||||
> View all language configs [Here](https://github.com/youzan/vant/tree/2.x/src/locale/lang).
|
> View all language configs [Here](https://github.com/vant-ui/vant/tree/2.x/src/locale/lang).
|
||||||
|
|
||||||
### Add new language
|
### Add new language
|
||||||
|
|
||||||
If you can’t find the language you need, please send us a Pull Request to add the new language pack, you can refer to [Add German language pack](https://github.com/youzan/vant/pull/7245) PR.
|
If you can’t find the language you need, please send us a Pull Request to add the new language pack, you can refer to [Add German language pack](https://github.com/vant-ui/vant/pull/7245) PR.
|
||||||
|
@ -57,13 +57,13 @@ Locale.add(messages);
|
|||||||
| 法语 | fr-FR |
|
| 法语 | fr-FR |
|
||||||
| 越南语 | vi-VN |
|
| 越南语 | vi-VN |
|
||||||
|
|
||||||
> 在 [这里](https://github.com/youzan/vant/tree/2.x/src/locale/lang) 查看所有的语言包源文件。
|
> 在 [这里](https://github.com/vant-ui/vant/tree/2.x/src/locale/lang) 查看所有的语言包源文件。
|
||||||
|
|
||||||
## 常见问题
|
## 常见问题
|
||||||
|
|
||||||
### 找不到所需的语言包?
|
### 找不到所需的语言包?
|
||||||
|
|
||||||
如果上方列表中没有你需要的语言,欢迎给我们提 Pull Request 来增加新的语言包,改动内容可以参考[增加德语语言包](https://github.com/youzan/vant/pull/7245) 的 PR。
|
如果上方列表中没有你需要的语言,欢迎给我们提 Pull Request 来增加新的语言包,改动内容可以参考[增加德语语言包](https://github.com/vant-ui/vant/pull/7245) 的 PR。
|
||||||
|
|
||||||
### 业务代码如何实现国际化?
|
### 业务代码如何实现国际化?
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ export const TouchMixin = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// avoid Vue 2.6 event bubble issues by manually binding events
|
// avoid Vue 2.6 event bubble issues by manually binding events
|
||||||
// https://github.com/youzan/vant/issues/3015
|
// https://github.com/vant-ui/vant/issues/3015
|
||||||
bindTouchEvent(el) {
|
bindTouchEvent(el) {
|
||||||
const { onTouchStart, onTouchMove, onTouchEnd } = this;
|
const { onTouchStart, onTouchMove, onTouchEnd } = this;
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ export default createComponent({
|
|||||||
};
|
};
|
||||||
|
|
||||||
setHeight();
|
setHeight();
|
||||||
// https://github.com/youzan/vant/issues/10131
|
// https://github.com/vant-ui/vant/issues/10131
|
||||||
setTimeout(setHeight, 100);
|
setTimeout(setHeight, 100);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -60,7 +60,7 @@ export default createComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
// https://github.com/youzan/vant/issues/8634
|
// https://github.com/vant-ui/vant/issues/8634
|
||||||
if (this.vanPopup) {
|
if (this.vanPopup) {
|
||||||
this.vanPopup.onReopen(this.reset);
|
this.vanPopup.onReopen(this.reset);
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ export default createComponent({
|
|||||||
onTouchEnd(event) {
|
onTouchEnd(event) {
|
||||||
if (this.active) {
|
if (this.active) {
|
||||||
// eliminate tap delay on safari
|
// eliminate tap delay on safari
|
||||||
// see: https://github.com/youzan/vant/issues/6836
|
// see: https://github.com/vant-ui/vant/issues/6836
|
||||||
if (!this.slots('default')) {
|
if (!this.slots('default')) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
@ -118,7 +118,7 @@ export default createComponent({
|
|||||||
|
|
||||||
// compatible with old version of wrong parameters
|
// compatible with old version of wrong parameters
|
||||||
// should be removed in next major version
|
// should be removed in next major version
|
||||||
// see: https://github.com/youzan/vant/issues/5905
|
// see: https://github.com/vant-ui/vant/issues/5905
|
||||||
if (this.dataType === 'cascade') {
|
if (this.dataType === 'cascade') {
|
||||||
values = values.map((item) => item[this.valueKey]);
|
values = values.map((item) => item[this.valueKey]);
|
||||||
}
|
}
|
||||||
@ -159,7 +159,7 @@ export default createComponent({
|
|||||||
|
|
||||||
// compatible with old version of wrong parameters
|
// compatible with old version of wrong parameters
|
||||||
// should be removed in next major version
|
// should be removed in next major version
|
||||||
// see: https://github.com/youzan/vant/issues/5905
|
// see: https://github.com/vant-ui/vant/issues/5905
|
||||||
if (this.dataType === 'cascade') {
|
if (this.dataType === 'cascade') {
|
||||||
values = values.map((item) => item[this.valueKey]);
|
values = values.map((item) => item[this.valueKey]);
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
&__text {
|
&__text {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
// https://github.com/youzan/vant/issues/7455
|
// https://github.com/vant-ui/vant/issues/7455
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -274,7 +274,7 @@ export default createComponent({
|
|||||||
|
|
||||||
onMousedown(event) {
|
onMousedown(event) {
|
||||||
// fix mobile safari page scroll down issue
|
// fix mobile safari page scroll down issue
|
||||||
// see: https://github.com/youzan/vant/issues/7690
|
// see: https://github.com/vant-ui/vant/issues/7690
|
||||||
if (this.disableInput) {
|
if (this.disableInput) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
.van-swipe {
|
.van-swipe {
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
// https://github.com/youzan/vant/issues/9931
|
// https://github.com/vant-ui/vant/issues/9931
|
||||||
transform: translateZ(0);
|
transform: translateZ(0);
|
||||||
cursor: grab;
|
cursor: grab;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
width: @switch-node-size;
|
width: @switch-node-size;
|
||||||
height: @switch-node-size;
|
height: @switch-node-size;
|
||||||
// https://github.com/youzan/vant/issues/9839
|
// https://github.com/vant-ui/vant/issues/9839
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
background-color: @switch-node-background-color;
|
background-color: @switch-node-background-color;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
|
@ -61,7 +61,7 @@ export default createComponent({
|
|||||||
};
|
};
|
||||||
|
|
||||||
setHeight();
|
setHeight();
|
||||||
// https://github.com/youzan/vant/issues/10131
|
// https://github.com/vant-ui/vant/issues/10131
|
||||||
setTimeout(setHeight, 100);
|
setTimeout(setHeight, 100);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -178,7 +178,7 @@ export default createComponent({
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.init();
|
this.init();
|
||||||
|
|
||||||
// https://github.com/youzan/vant/issues/7959
|
// https://github.com/vant-ui/vant/issues/7959
|
||||||
if (this.vanPopup) {
|
if (this.vanPopup) {
|
||||||
this.vanPopup.onReopen(() => {
|
this.vanPopup.onReopen(() => {
|
||||||
this.setLine();
|
this.setLine();
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
// allow newline character
|
// allow newline character
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
// https://github.com/youzan/vant/issues/8959
|
// https://github.com/vant-ui/vant/issues/8959
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
background-color: @toast-background-color;
|
background-color: @toast-background-color;
|
||||||
border-radius: @toast-border-radius;
|
border-radius: @toast-border-radius;
|
||||||
|
@ -5,7 +5,7 @@ function isWindow(val: unknown): val is Window {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// get nearest scroll element
|
// get nearest scroll element
|
||||||
// https://github.com/youzan/vant/issues/3823
|
// https://github.com/vant-ui/vant/issues/3823
|
||||||
const overflowScrollReg = /scroll|auto|overlay/i;
|
const overflowScrollReg = /scroll|auto|overlay/i;
|
||||||
export function getScroller(el: HTMLElement, root: ScrollElement = window) {
|
export function getScroller(el: HTMLElement, root: ScrollElement = window) {
|
||||||
let node = el;
|
let node = el;
|
||||||
|
@ -43,7 +43,7 @@ location.href = location.href.replace('youzan.github.io', 'vant-ui.github.io');
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
logo: 'https://b.yzcdn.cn/vant/logo/github.svg',
|
logo: 'https://b.yzcdn.cn/vant/logo/github.svg',
|
||||||
url: 'https://github.com/youzan/vant',
|
url: 'https://github.com/vant-ui/vant',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
nav: [
|
nav: [
|
||||||
@ -441,7 +441,7 @@ location.href = location.href.replace('youzan.github.io', 'vant-ui.github.io');
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
logo: 'https://b.yzcdn.cn/vant/logo/github.svg',
|
logo: 'https://b.yzcdn.cn/vant/logo/github.svg',
|
||||||
url: 'https://github.com/youzan/vant',
|
url: 'https://github.com/vant-ui/vant',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
nav: [
|
nav: [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user