Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
# [](https://github.com/AntmJS/vantui/compare/v3.6.4...v) (2025-06-12)
# [](https://github.com/AntmJS/vantui/compare/v3.6.5...v) (2025-09-04)


### Bug Fixes

* Form判断异步rule方法时,传callback以兼容同步rule的调用 ([#779](https://github.com/AntmJS/vantui/issues/779)) ([8800858](https://github.com/AntmJS/vantui/commit/88008586f3f65cc911a9bd36a0e10ad7d95343d0))
* **uploader:** 不再使用过时的chooseImage和chooseVideo方法 ([#780](https://github.com/AntmJS/vantui/issues/780)) ([bc7f438](https://github.com/AntmJS/vantui/commit/bc7f438aec9c5113145a4a296b300a79522ab0fb))
* 轮播组件禁用手动滑动功能 ([015f265](https://github.com/AntmJS/vantui/commit/015f26513d9c5baf6a137036fdaff11be507a53e))


### Features

* **highlight:** 新增 Highlight 高亮文本组件 ([#782](https://github.com/AntmJS/vantui/issues/782)) ([95b9ba9](https://github.com/AntmJS/vantui/commit/95b9ba9f5b67b7a2b85bb843425099ad8d5e600a))



## [3.6.5](https://github.com/AntmJS/vantui/compare/v3.6.4...v3.6.5) (2025-06-12)


### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"**/*.md",
"**/__test__/**"
],
"version": "3.6.5"
"version": "3.6.6"
}
2 changes: 1 addition & 1 deletion packages/vantui-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antmjs/vantui-cli",
"version": "3.6.5",
"version": "3.6.6",
"type": "module",
"main": "dest/cli.js",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion packages/vantui-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vantui-demo",
"version": "3.6.5",
"version": "3.6.6",
"private": true,
"description": "Taro应用模版",
"templateInfo": {
Expand Down
4 changes: 2 additions & 2 deletions packages/vantui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antmjs/vantui",
"version": "3.6.5",
"version": "3.6.6",
"main": "lib/index.js",
"module": "es/index.esm.js",
"style": "lib/index.css",
Expand Down Expand Up @@ -74,4 +74,4 @@
"style-resources-loader": "^1.5.0",
"swc-loader": "^0.2.3"
}
}
}
38 changes: 19 additions & 19 deletions packages/vantui/src/dialog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,22 +97,22 @@ import { Dialog } from '@antmjs/vantui'

组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考[ConfigProvider 组件](https://antmjs.github.io/vantui/#/config-provider)

| 名称 | 默认值 |
| -------------------------------------- | -------------------- |
| --dialog-width | `640px;` |
| --dialog-small-screen-width | `90%;` |
| --dialog-font-size | `@font-size-lg;` |
| --dialog-border-radius | `32px;` |
| --dialog-background-color | `@white;` |
| --dialog-header-font-weight | `@font-weight-bold;` |
| --dialog-header-line-height | `48px;` |
| --dialog-header-padding-top | `@padding-lg;` |
| --dialog-header-isolated-padding | `@padding-lg 0;` |
| --dialog-message-padding | `@padding-lg;` |
| --dialog-message-font-size | `@font-size-md;` |
| --dialog-message-line-height | `40px;` |
| --dialog-message-max-height | `60vh;` |
| --dialog-has-title-message-text-color | `@gray-7;` |
| --dialog-has-title-message-padding-top | `@padding-xs;` |
| --dialog-cancel-button-color | `@gray-7;` |
| --dialog-confirm-button-color | `@text-link-color;` |
| 名称 | 默认值 |
| -------------------------------------- | --------------------- |
| --dialog-width | ` 640px;` |
| --dialog-small-screen-width | ` 90%;` |
| --dialog-font-size | ` @font-size-lg;` |
| --dialog-border-radius | ` 32px;` |
| --dialog-background-color | ` @white;` |
| --dialog-header-font-weight | ` @font-weight-bold;` |
| --dialog-header-line-height | ` 48px;` |
| --dialog-header-padding-top | ` @padding-lg;` |
| --dialog-header-isolated-padding | ` @padding-lg 0;` |
| --dialog-message-padding | ` @padding-lg;` |
| --dialog-message-font-size | ` @font-size-md;` |
| --dialog-message-line-height | ` 40px;` |
| --dialog-message-max-height | ` 60vh;` |
| --dialog-has-title-message-text-color | ` @gray-7;` |
| --dialog-has-title-message-padding-top | ` @padding-xs;` |
| --dialog-cancel-button-color | ` @gray-7;` |
| --dialog-confirm-button-color | ` @text-link-color;` |
48 changes: 24 additions & 24 deletions packages/vantui/src/form/README.md

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion packages/vantui/src/highlight/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { useMemo } from 'react'
import classNames from 'classnames'
import { HighlightProps } from '../../types/highlight'
import * as utils from '../wxs/utils'
import './index.less'

interface Chunk {
start: number
Expand Down
20 changes: 20 additions & 0 deletions packages/vantui/src/picker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,23 @@ import { Picker } from '@antmjs/vantui'
| setIndexes | 设置每一列展示的下标 | _&nbsp;&nbsp;(<br/>&nbsp;&nbsp;&nbsp;&nbsp;indexes:&nbsp;number[]<br/>&nbsp;&nbsp;)&nbsp;=>&nbsp;void<br/>_ |
| getValues | 每一列展示的值 | _&nbsp;&nbsp;()&nbsp;=>&nbsp;any<br/>_ |
| confirm | 触发确认的方法 | _&nbsp;&nbsp;()&nbsp;=>&nbsp;void<br/>_ |

### 样式变量

组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考[ConfigProvider 组件](https://antmjs.github.io/vantui/#/config-provider)

| 名称 | 默认值 |
| ----------------------------------- | ---------------------------- |
| --picker-background-color | ` @white;` |
| --picker-toolbar-height | ` 88px;` |
| --picker-title-font-size | ` @font-size-lg;` |
| --picker-action-padding | ` 0 @padding-md;` |
| --picker-action-font-size | ` @font-size-md;` |
| --picker-confirm-action-color | ` @text-link-color;` |
| --picker-cancel-action-color | ` @gray-6;` |
| --picker-option-font-size | ` @font-size-lg;` |
| --picker-option-text-color | ` @black;` |
| --picker-loading-icon-color | ` var(--primary-color);` |
| --picker-loading-mask-color | ` rgba(255, 255, 255, 0.9);` |
| --picker-option-disabled-opacity | ` 0.3;` |
| --picker-option-selected-text-color | ` @text-color;` |
78 changes: 39 additions & 39 deletions packages/vantui/src/uploader/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,24 +94,24 @@ export function chooseFile({
return new Promise((resolve, reject) => {
switch (accept) {
case 'image':
process.env.TARO_ENV === 'weapp' ?
chooseMedia({
count: multiple ? Math.min(maxCount, 9) : 1,
mediaType: ['image'],
sourceType: capture || ['album', 'camera'],
maxDuration,
sizeType: sizeType || ['original', 'compressed'],
camera: camera || 'back',
success: (res) => resolve(formatMedia(res)),
fail: reject,
}) :
chooseImage({
count: multiple ? Math.min(maxCount, 9) : 1,
sourceType: capture || ['album', 'camera'],
sizeType: sizeType || ['original', 'compressed'],
success: (res) => resolve(formatImage(res)),
fail: reject,
})
process.env.TARO_ENV === 'weapp'
? chooseMedia({
count: multiple ? Math.min(maxCount, 9) : 1,
mediaType: ['image'],
sourceType: capture || ['album', 'camera'],
maxDuration,
sizeType: sizeType || ['original', 'compressed'],
camera: camera || 'back',
success: (res) => resolve(formatMedia(res)),
fail: reject,
})
: chooseImage({
count: multiple ? Math.min(maxCount, 9) : 1,
sourceType: capture || ['album', 'camera'],
sizeType: sizeType || ['original', 'compressed'],
success: (res) => resolve(formatImage(res)),
fail: reject,
})
break
case 'media':
chooseMedia({
Expand All @@ -125,27 +125,27 @@ export function chooseFile({
})
break
case 'video':
process.env.TARO_ENV === 'weapp' ?
chooseMedia({
count: multiple ? Math.min(maxCount, 9) : 1,
mediaType: ['video'],
sourceType: capture || ['album', 'camera'],
maxDuration,
sizeType: compressed
? ['compressed']
: sizeType || ['original', 'compressed'],
camera: camera || 'back',
success: (res) => resolve(formatMedia(res)),
fail: reject,
}) :
chooseVideo({
sourceType: capture || ['album', 'camera'],
compressed,
maxDuration: maxDuration || 60,
camera: camera || 'back',
success: (res) => resolve(formatVideo(res)),
fail: reject,
})
process.env.TARO_ENV === 'weapp'
? chooseMedia({
count: multiple ? Math.min(maxCount, 9) : 1,
mediaType: ['video'],
sourceType: capture || ['album', 'camera'],
maxDuration,
sizeType: compressed
? ['compressed']
: sizeType || ['original', 'compressed'],
camera: camera || 'back',
success: (res) => resolve(formatMedia(res)),
fail: reject,
})
: chooseVideo({
sourceType: capture || ['album', 'camera'],
compressed,
maxDuration: maxDuration || 60,
camera: camera || 'back',
success: (res) => resolve(formatVideo(res)),
fail: reject,
})
break
default:
chooseMessageFile({
Expand Down
Loading