mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
Merge branch '2.x' into dev
This commit is contained in:
commit
fae7d99e7c
@ -3,15 +3,16 @@ import { existsSync } from 'fs-extra';
|
||||
import { join, dirname, isAbsolute } from 'path';
|
||||
|
||||
function findRootDir(dir: string): string {
|
||||
if (dir === '/') {
|
||||
return '/';
|
||||
}
|
||||
|
||||
if (existsSync(join(dir, 'vant.config.js'))) {
|
||||
return dir;
|
||||
}
|
||||
|
||||
return findRootDir(dirname(dir));
|
||||
const parentDir = dirname(dir);
|
||||
if (dir === parentDir) {
|
||||
return dir;
|
||||
}
|
||||
|
||||
return findRootDir(parentDir);
|
||||
}
|
||||
|
||||
// Colors
|
||||
|
@ -112,6 +112,8 @@ export default {
|
||||
};
|
||||
```
|
||||
|
||||
> Tips: 默认情况下,日期区间的起止时间不能为同一天,可以通过设置 allow-same-day 属性来允许选择同一天。
|
||||
|
||||
### 快捷选择
|
||||
|
||||
将 `show-confirm` 设置为 `false` 可以隐藏确认按钮,这种情况下选择完成后会立即触发 `confirm` 事件。
|
||||
|
Loading…
x
Reference in New Issue
Block a user