Compare commits

...

440 Commits
v1.10.1 ... dev

Author SHA1 Message Date
neverland
e5af691c4c
docs: redirect from the old domain (#5811) 2024-06-02 18:13:20 +08:00
neverland
c6b4004893
docs: add new document site URL (#5810)
* docs: add new document site URL

* fix: proxy
2024-06-02 18:11:02 +08:00
landluck
db1c0ce662
feat(Cascader): add ellipsis prop support (#5806) 2024-05-31 11:58:36 +08:00
neverland
1a8351387a
chore: bump @vant/cli v7 (#5801)
* chore: bump @vant/cli v7

* fix: lint

* fix: disable source-map to support Node 18
2024-05-26 10:54:01 +08:00
neverland
2543148507
chore(workflow): generate changelog via GitHub (#5800) 2024-05-26 10:15:24 +08:00
landluck
2266cbe262 docs(changelog): @vant/weapp 1.11.6 2024-05-14 20:52:29 +08:00
landluck
809bc84d1e release: 1.11.6 2024-05-14 20:46:46 +08:00
landluck
e5f462263b build: compile 1.11.6 2024-05-14 20:46:42 +08:00
PuffMeow
22f39e86b9
feat(uploader): add referrer policy prop support (#5770) 2024-05-14 20:35:16 +08:00
landluck
ff982f6cd0
fix(field): fixed clear button incorrectly displaying when value has default value (#5792) 2024-05-14 20:26:21 +08:00
xiejiahe
178795253f
docs: Fix the Stepper event callback parameter (#5778) 2024-05-14 20:25:40 +08:00
zzxqd
443e78daec
fix(Cascader): fix display erro after the value is reassigned void (#5760) 2024-05-06 10:08:49 +08:00
dependabot[bot]
07dfcafb26
build(deps): bump ejs from 3.1.8 to 3.1.10 (#5773)
Bumps [ejs](https://github.com/mde/ejs) from 3.1.8 to 3.1.10.
- [Release notes](https://github.com/mde/ejs/releases)
- [Commits](https://github.com/mde/ejs/compare/v3.1.8...v3.1.10)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-06 10:08:03 +08:00
xiejiahe
ebba3b14a1
docs(button): fix missing doc for hover-class prop 2024-05-06 10:07:47 +08:00
neverland
04c8783b1d
chore(workflow): fix failed to deploy website (#5776) 2024-05-02 14:59:13 +08:00
neverland
c38c931325
docs: remove all Gitee links (#5774) 2024-05-02 14:14:33 +08:00
landluck
ab45d8011c docs(changelog): @vant/weapp 1.11.5 2024-04-15 10:53:00 +08:00
landluck
8953dd3ed9 release: 1.11.5 2024-04-15 10:47:28 +08:00
landluck
2680fedace build: compile 1.11.5 2024-04-15 10:47:24 +08:00
Xavi Lee
68be39fea2
docs: remove unnecessary step in quickstart (#5744) 2024-04-15 10:29:46 +08:00
xiami
979fc92bdc
feat(input): support input nickname event (#5758) 2024-04-12 17:42:18 +08:00
Lick-liu
348c3103b7
fix(van-stepper): fix onChange event exceeded 'max' after setting the max prop (#5741) 2024-04-12 17:40:56 +08:00
Skiyee
50da9f87eb
fix(Transition): fix cannot find method observeDuration (#5743) 2024-04-12 17:35:08 +08:00
dependabot[bot]
fc1ad93c57
build(deps-dev): bump @babel/plugin-transform-modules-commonjs (#5752)
Bumps [@babel/plugin-transform-modules-commonjs](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-modules-commonjs) from 7.23.3 to 7.24.1.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.24.1/packages/babel-plugin-transform-modules-commonjs)

---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-modules-commonjs"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-12 17:23:16 +08:00
dependabot[bot]
902579a94a
build(deps): bump vite from 2.9.17 to 2.9.18 (#5755)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 2.9.17 to 2.9.18.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v2.9.18/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v2.9.18/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-12 17:22:07 +08:00
dependabot[bot]
cce61c26af
build(deps): bump vite from 2.9.16 to 2.9.17 (#5704)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 2.9.16 to 2.9.17.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v2.9.17/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v2.9.17/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-12 20:16:14 +08:00
dependabot[bot]
5b9f52b7ef
build(deps): bump es5-ext from 0.10.53 to 0.10.63 (#5724)
Bumps [es5-ext](https://github.com/medikoo/es5-ext) from 0.10.53 to 0.10.63.
- [Release notes](https://github.com/medikoo/es5-ext/releases)
- [Changelog](https://github.com/medikoo/es5-ext/blob/main/CHANGELOG.md)
- [Commits](https://github.com/medikoo/es5-ext/compare/v0.10.53...v0.10.63)

---
updated-dependencies:
- dependency-name: es5-ext
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-12 20:15:08 +08:00
dependabot[bot]
aac785bc2c
build(deps-dev): bump vue from 3.3.9 to 3.4.21 (#5730)
Bumps [vue](https://github.com/vuejs/core) from 3.3.9 to 3.4.21.
- [Release notes](https://github.com/vuejs/core/releases)
- [Changelog](https://github.com/vuejs/core/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vuejs/core/compare/v3.3.9...v3.4.21)

---
updated-dependencies:
- dependency-name: vue
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-12 20:14:49 +08:00
landluck
4db5b132d1 docs(changelog): @vant/weapp 1.11.4 2024-01-23 10:01:22 +08:00
landluck
c7e8ab5ef3 release: 1.11.4 2024-01-23 09:57:11 +08:00
landluck
9130ebf59c release: 1.11.4-beta.0 2024-01-22 19:32:02 +08:00
landluck
cdb692fbec build: compile 1.11.4-beta.0 2024-01-22 19:31:58 +08:00
xiami
b9f88ec64a
fix(Transition): fix transition event sequence (#5707) 2024-01-22 19:29:18 +08:00
landluck
c0b7537da9 docs(changelog): @vant/weapp 1.11.3 2024-01-16 12:09:37 +08:00
landluck
c4b3609370 release: 1.11.3 2024-01-16 11:45:14 +08:00
landluck
040416bdb7 release: 1.11.3-beta.0 2024-01-16 11:21:55 +08:00
landluck
7c0c9e43f7 build: compile 1.11.3-beta.0 2024-01-16 11:21:51 +08:00
johnsonwong666
ff8fe1cb69
feat(goods-action-button): add custom-style prop support (#5659) 2024-01-16 11:17:36 +08:00
johnsonwong666
628008efb3
fix(Cascader): fix title slot inoperative (#5676) 2024-01-15 20:16:45 +08:00
johnsonwong666
3f8cc449d2
feat(Calendar、ActionSheet、Dialog、ShareSheet): add root portal prop (#5680) 2024-01-15 19:55:11 +08:00
dependabot[bot]
e2b031c436
build(deps-dev): bump miniprogram-api-typings from 3.12.1 to 3.12.2 (#5686)
Bumps [miniprogram-api-typings](https://github.com/wechat-miniprogram/api-typings) from 3.12.1 to 3.12.2.
- [Changelog](https://github.com/wechat-miniprogram/api-typings/blob/master/CHANGELOG.md)
- [Commits](https://github.com/wechat-miniprogram/api-typings/compare/v3.12.1...v3.12.2)

---
updated-dependencies:
- dependency-name: miniprogram-api-typings
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-15 19:53:33 +08:00
johnsonwong666
d1f505b8e8
feat(Upload): support mix mediaType #5690 2024-01-15 19:53:05 +08:00
johnsonwong666
19083a327c
fix(Transition): fix transition event sequence (#5699) 2024-01-15 19:47:25 +08:00
landluck
f2ff0e7b48 docs(changelog): @vant/weapp 1.11.2 2023-12-05 17:30:59 +08:00
landluck
d0610c09ac release: 1.11.2 2023-12-05 17:24:14 +08:00
landluck
c3ae27b4b0 build: compile 1.11.2 2023-12-05 17:24:09 +08:00
Yin Fan(尹凡)
d869a8149f
docs(area): columns-num only support number. (#5631) 2023-12-05 17:20:53 +08:00
johnsonwong666
864a890e83
fix(Dialog、goods-action-button): fix getRealTimePhoneNumber callback (#5633) 2023-12-05 17:19:40 +08:00
dependabot[bot]
1d0600cece
build(deps-dev): bump vue from 3.3.7 to 3.3.9 (#5644)
Bumps [vue](https://github.com/vuejs/core) from 3.3.7 to 3.3.9.
- [Release notes](https://github.com/vuejs/core/releases)
- [Changelog](https://github.com/vuejs/core/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vuejs/core/compare/v3.3.7...v3.3.9)

---
updated-dependencies:
- dependency-name: vue
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-05 17:16:51 +08:00
dependabot[bot]
5b7dc9a4ab
build(deps-dev): bump @babel/preset-typescript from 7.23.2 to 7.23.3 (#5645)
Bumps [@babel/preset-typescript](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-typescript) from 7.23.2 to 7.23.3.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.3/packages/babel-preset-typescript)

---
updated-dependencies:
- dependency-name: "@babel/preset-typescript"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-05 17:16:27 +08:00
cyhwinner
eeea4a8434
feat: 当前组件引入wxs文件 (#5650)
Co-authored-by: mobai <chenyuehan@youzan.com>
2023-12-05 17:15:22 +08:00
johnsonwong666
f98cf75027
fix(Upload): fix image upload in wxwork (#5581) 2023-11-06 10:08:22 +08:00
dependabot[bot]
3e6e157c6a
build(deps-dev): bump @babel/preset-typescript from 7.23.0 to 7.23.2 (#5614)
Bumps [@babel/preset-typescript](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-typescript) from 7.23.0 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-preset-typescript)

---
updated-dependencies:
- dependency-name: "@babel/preset-typescript"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-06 10:07:12 +08:00
dependabot[bot]
8af9924056
build(deps-dev): bump @vant/icons from 3.0.1 to 3.0.2 (#5615)
Bumps [@vant/icons](https://github.com/vant-ui/vant/tree/HEAD/packages/vant-icons) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/vant-ui/vant/releases)
- [Changelog](https://github.com/youzan/vant/blob/main/packages/vant-icons/CHANGELOG.md)
- [Commits](https://github.com/vant-ui/vant/commits/v3.0.2/packages/vant-icons)

---
updated-dependencies:
- dependency-name: "@vant/icons"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-06 10:07:00 +08:00
dependabot[bot]
05ec5e2526
build(deps-dev): bump vue from 3.3.4 to 3.3.7 (#5616)
Bumps [vue](https://github.com/vuejs/core) from 3.3.4 to 3.3.7.
- [Release notes](https://github.com/vuejs/core/releases)
- [Changelog](https://github.com/vuejs/core/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vuejs/core/compare/v3.3.4...v3.3.7)

---
updated-dependencies:
- dependency-name: vue
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-06 10:06:49 +08:00
dependabot[bot]
7d438e2843
build(deps-dev): bump miniprogram-api-typings from 3.12.0 to 3.12.1 (#5617)
Bumps [miniprogram-api-typings](https://github.com/wechat-miniprogram/api-typings) from 3.12.0 to 3.12.1.
- [Changelog](https://github.com/wechat-miniprogram/api-typings/blob/master/CHANGELOG.md)
- [Commits](https://github.com/wechat-miniprogram/api-typings/compare/v3.12.0...v3.12.1)

---
updated-dependencies:
- dependency-name: miniprogram-api-typings
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-06 10:06:35 +08:00
dependabot[bot]
3e9cdcfd7c
build(deps-dev): bump @babel/preset-typescript from 7.22.5 to 7.23.0 (#5574)
Bumps [@babel/preset-typescript](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-typescript) from 7.22.5 to 7.23.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.0/packages/babel-preset-typescript)

---
updated-dependencies:
- dependency-name: "@babel/preset-typescript"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-31 19:23:49 +08:00
landluck
36d0add734 docs(changelog): @vant/weapp 1.11.1 2023-10-11 10:16:32 +08:00
landluck
27979cf894 release: 1.11.1 2023-10-10 20:55:59 +08:00
landluck
98874a155c build: compile 1.11.1 2023-10-10 20:55:57 +08:00
landluck
14b97ead79
feat(icon): update @vant/icon to v3.0.1 (#5583) 2023-10-10 20:55:08 +08:00
landluck
b936371007 docs(changelog): @vant/weapp 1.11.0 2023-09-18 10:28:27 +08:00
landluck
1939b76a04 release: 1.11.0 2023-09-18 10:23:01 +08:00
landluck
be99bd3bd3 build: compile 1.11.0 2023-09-18 10:22:56 +08:00
landluck
bc649cff58
feat(icon): update @vant/icon to 3.0.0 (#5561) 2023-09-18 10:21:44 +08:00
jimifish
42447bb87c
fix(van-notice-bar): notice-bar early vanished when delay and scrollable were set (#5547) 2023-09-12 16:38:43 +08:00
johnsonwong666
f330cf2a34
fix(calendar): fix calendar reset miss default Date (#5546) 2023-09-11 17:22:43 +08:00
johnsonwong666
7423e18ae3
docs(skeleton): fix custom class doc miss (#5548) 2023-09-11 16:37:56 +08:00
dependabot[bot]
8ce21a6446
build(deps-dev): bump miniprogram-api-typings from 3.10.0 to 3.12.0 (#5539)
Bumps [miniprogram-api-typings](https://github.com/wechat-miniprogram/api-typings) from 3.10.0 to 3.12.0.
- [Changelog](https://github.com/wechat-miniprogram/api-typings/blob/master/CHANGELOG.md)
- [Commits](https://github.com/wechat-miniprogram/api-typings/compare/3.10.0...v3.12.0)

---
updated-dependencies:
- dependency-name: miniprogram-api-typings
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-04 10:00:54 +08:00
dependabot[bot]
18ffa1891d
build(deps-dev): bump @babel/plugin-transform-modules-commonjs (#5541)
Bumps [@babel/plugin-transform-modules-commonjs](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-modules-commonjs) from 7.22.5 to 7.22.11.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.22.11/packages/babel-plugin-transform-modules-commonjs)

---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-modules-commonjs"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-04 10:00:23 +08:00
landluck
6dd89841a8 docs(changelog): @vant/weapp 1.10.25 2023-08-30 14:48:02 +08:00
landluck
3da43a131c release: 1.10.25 2023-08-30 14:43:42 +08:00
landluck
3e06aa4e89 build: compile 1.10.25 2023-08-30 14:43:39 +08:00
johnsonwong666
fd41bd823a
feat(button): add button-id prop & agreePrivacyAuthorization event support (#5533) 2023-08-30 14:41:05 +08:00
johnsonwong666
b9dea4fd16
docs: update_slider_docs (#5534) 2023-08-30 11:10:06 +08:00
landluck
de8d8359f3 docs(changelog): @vant/weapp 1.10.24 2023-08-25 10:42:24 +08:00
landluck
48a0bf0351 release: 1.10.24 2023-08-25 10:37:40 +08:00
landluck
511adf7f5d build: compile 1.10.24 2023-08-25 10:37:36 +08:00
johnsonwong666
d692b708af
fix: add observer for limit date change (#5520) 2023-08-22 10:05:08 +08:00
johnsonwong666
610ce18859
feat: add agreePrivacyAuthorization button open type (#5527) 2023-08-22 10:04:25 +08:00
landluck
6d6d6d736b docs(changelog): @vant/weapp 1.10.23 2023-07-28 14:16:33 +08:00
landluck
fd95792040 release: 1.10.23 2023-07-28 14:14:14 +08:00
landluck
ea8f92f919 build: compile 1.10.23 2023-07-28 14:14:11 +08:00
landluck
88a36b5647
feat(dialog): add confirm/cancel button slot support (#5502) 2023-07-27 20:52:22 +08:00
zjy4fun
f975d2b37d
feat(Search): cursor-spacing props for search component (#5498) 2023-07-27 20:38:20 +08:00
landluck
589be648f2 docs(changelog): @vant/weapp 1.10.22 2023-07-24 10:07:50 +08:00
landluck
713f694aa0 release: 1.10.22 2023-07-24 10:03:51 +08:00
landluck
c99f464360 build: compile 1.10.22 2023-07-24 10:03:48 +08:00
dependabot[bot]
e0abf6effc
build(deps): bump word-wrap from 1.2.3 to 1.2.4 (#5492)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-24 10:00:31 +08:00
johnsonwong666
78c518bae8
fix(GoodsAction): add block for slot (#5496) 2023-07-24 10:00:02 +08:00
johnsonwong666
9ead748d91
fix(sticky): fix error in transition & sticky (#5483) 2023-07-17 09:54:00 +08:00
landluck
8021e7cdfd
fix(field): fix field error message style (#5482) 2023-07-11 20:53:52 +08:00
dependabot[bot]
dec405d770
build(deps): bump semver from 5.7.1 to 5.7.2 (#5480)
Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v5.7.1...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-11 20:49:38 +08:00
landluck
e67ff09e37 docs(changelog): @vant/weapp 1.10.21 2023-07-10 21:13:37 +08:00
landluck
4756994212 release: 1.10.21 2023-07-10 21:09:29 +08:00
landluck
799a06379d build: compile 1.10.21 2023-07-10 21:09:25 +08:00
johnsonwong666
917ab22907
feat(dialog): add extra custom class (#5478) 2023-07-10 21:07:54 +08:00
johnsonwong666
7498ed12c3
fix(uploader): fix chooseImage error in PC (#5477) 2023-07-10 19:17:54 +08:00
landluck
f197c5f3c3
feat(field): expand click area support (#5479) 2023-07-10 17:49:20 +08:00
johnsonwong666
f26de0cbb0
feat(Upload): add videoFit prop (#5475) 2023-07-10 14:52:19 +08:00
landluck
8309c27297
feat(field): add custom-class prop support (#5476) 2023-07-10 14:50:57 +08:00
landluck
fa04172e5b
docs: add demo app warning (#5472) 2023-07-06 15:00:12 +08:00
johnsonwong666
b005b41c4e
feat(calendar): allow default date to be null (#5395) 2023-07-05 13:54:40 +08:00
landluck
2c7629fe07
feat(button): add getRealtimePhoneNumber support (#5471) 2023-07-05 13:53:44 +08:00
landluck
bc3d307c4d docs(changelog): @vant/weapp 1.10.20 2023-07-03 19:09:22 +08:00
landluck
a3117538b3 release: 1.10.20 2023-07-03 17:44:59 +08:00
landluck
d72580fe7d build: compile 1.10.20 2023-07-03 17:44:54 +08:00
johnsonwong666
3d1d27641b
feat(icon): add_icon_info_class (#5458) 2023-07-03 17:08:16 +08:00
johnsonwong666
22acb8ddbc
feat(goods-action-icon): add size prop (#5457) 2023-07-03 17:06:35 +08:00
landluck
35d8346647
Merge pull request #5445 from johnsonwong666/hotfix/fix_issue_5444
fix(Slider): fix decimal value
2023-07-03 15:10:28 +08:00
landluck
a232ec525f
Merge pull request #5456 from johnsonwong666/hotfix/fix_issue_5451
fix(Calendar): fix startDay with range type and allow same day
2023-07-03 15:09:23 +08:00
landluck
d235ae6574
Merge pull request #5461 from youzan/dependabot/npm_and_yarn/lint-staged-13.2.3
build(deps-dev): bump lint-staged from 13.2.2 to 13.2.3
2023-07-03 11:42:43 +08:00
landluck
b01a768557
Merge pull request #5462 from youzan/dependabot/npm_and_yarn/miniprogram-api-typings-3.10.0
build(deps-dev): bump miniprogram-api-typings from 3.9.1 to 3.10.0
2023-07-03 11:42:34 +08:00
landluck
bcdd2961be
Merge pull request #5464 from youzan/dependabot/npm_and_yarn/babel/preset-typescript-7.22.5
build(deps-dev): bump @babel/preset-typescript from 7.21.5 to 7.22.5
2023-07-03 11:42:16 +08:00
dependabot[bot]
8fba87ee74
build(deps-dev): bump @babel/preset-typescript from 7.21.5 to 7.22.5
Bumps [@babel/preset-typescript](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-typescript) from 7.21.5 to 7.22.5.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.22.5/packages/babel-preset-typescript)

---
updated-dependencies:
- dependency-name: "@babel/preset-typescript"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-02 00:02:14 +00:00
dependabot[bot]
c5ffb225ba
build(deps-dev): bump miniprogram-api-typings from 3.9.1 to 3.10.0
Bumps [miniprogram-api-typings](https://github.com/wechat-miniprogram/api-typings) from 3.9.1 to 3.10.0.
- [Changelog](https://github.com/wechat-miniprogram/api-typings/blob/master/CHANGELOG.md)
- [Commits](https://github.com/wechat-miniprogram/api-typings/compare/3.9.1...3.10.0)

---
updated-dependencies:
- dependency-name: miniprogram-api-typings
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-02 00:01:13 +00:00
dependabot[bot]
ec6d90fcc5
build(deps-dev): bump lint-staged from 13.2.2 to 13.2.3
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 13.2.2 to 13.2.3.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v13.2.2...v13.2.3)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-02 00:00:43 +00:00
johnsonwong666
35b199f9f6 fix(Calendar): fix startDay with range type and allow same day 2023-06-26 16:00:43 +08:00
neverland
1ad122b9cf
docs: add @inottn and @zhousg to core team (#5453) 2023-06-24 11:21:37 +08:00
johnsonwong666
e8ed007d89 fix(Slider): fix decimal value 2023-06-19 20:26:53 +08:00
landluck
7decaed8e4
Merge pull request #5419 from youzan/dependabot/npm_and_yarn/vite-2.9.16
build(deps): bump vite from 2.9.14 to 2.9.16
2023-06-19 10:52:47 +08:00
landluck
8697c56b85
Merge pull request #5437 from johnsonwong666/hotfix/fix_doc_5433
fix(dialog & swipe-cell): fix doc example error
2023-06-19 10:51:23 +08:00
johnsonwong666
ba927da0ea fix: fix doc 2023-06-14 16:16:37 +08:00
dependabot[bot]
0d6d54d199
build(deps): bump vite from 2.9.14 to 2.9.16
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 2.9.14 to 2.9.16.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v2.9.16/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v2.9.16/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-06 03:02:33 +00:00
landluck
ffb1fe6053
Merge pull request #5389 from Mikasa33/patch-1
docs(Popup): add close-icon-position prop
2023-06-02 10:18:14 +08:00
landluck
a0b0bd163d
Merge pull request #5409 from youzan/dependabot/npm_and_yarn/vue-3.3.4
build(deps-dev): bump vue from 3.2.45 to 3.3.4
2023-06-02 09:57:21 +08:00
dependabot[bot]
cf682f6634
build(deps-dev): bump vue from 3.2.45 to 3.3.4
Bumps [vue](https://github.com/vuejs/core) from 3.2.45 to 3.3.4.
- [Release notes](https://github.com/vuejs/core/releases)
- [Changelog](https://github.com/vuejs/core/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vuejs/core/compare/v3.2.45...v3.3.4)

---
updated-dependencies:
- dependency-name: vue
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-02 00:58:02 +00:00
Mikasa33
31d255d57e
Update README.md 2023-05-23 14:29:21 +08:00
landluck
344b1b0f69 docs(changelog): @vant/weapp 1.10.19 2023-05-19 15:25:01 +08:00
landluck
f1ad8d4b56 release: 1.10.19 2023-05-19 15:14:24 +08:00
landluck
51bd751453 build: compile 1.10.19 2023-05-19 15:14:20 +08:00
landluck
4b86663562
Merge pull request #5386 from johnsonwong666/hotfix/fix_issue_5135
fix(tab): fix tab async
2023-05-19 15:11:55 +08:00
johnsonwong666
97af57cee9 fix(tab): delete extra return 2023-05-19 15:04:33 +08:00
johnsonwong666
53e4a0d3f9 fix(tab): async tab active 2023-05-18 19:38:42 +08:00
landluck
10795bf325
Merge pull request #5381 from johnsonwong666/hotfix/fix_issue_5288
fix(Calendar): fix month title sync
2023-05-18 09:52:46 +08:00
landluck
a6005980c9
Merge pull request #5382 from landluck/chore/update_demo
chore: add cascader entry into demo
2023-05-17 10:29:39 +08:00
johnsonwong666
a140117e8b fix(Calendar): fix month title sync 2023-05-17 10:02:45 +08:00
landluck
8715142079 chore: add cascader entry into demo 2023-05-16 21:51:37 +08:00
landluck
9f1a52ea15
Merge pull request #5380 from landluck/hotfix/fix_issue_5379
fix(cascader): fix error display of async data
2023-05-16 21:33:29 +08:00
landluck
9c57499824
Merge pull request #5185 from maoweifan/dev
fix(Cascader): fix selected style error and fieldNames Invalid
2023-05-16 21:33:11 +08:00
landluck
6dd828ce90
Merge pull request #5378 from youzan/dependabot/npm_and_yarn/vm2-3.9.18
build(deps): bump vm2 from 3.9.17 to 3.9.18
2023-05-16 20:55:11 +08:00
landluck
4ccb1eeb67 fix(cascader): fix error display of async data 2023-05-16 20:53:52 +08:00
dependabot[bot]
09bdbccb93
build(deps): bump vm2 from 3.9.17 to 3.9.18
Bumps [vm2](https://github.com/patriksimek/vm2) from 3.9.17 to 3.9.18.
- [Release notes](https://github.com/patriksimek/vm2/releases)
- [Changelog](https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/patriksimek/vm2/compare/3.9.17...3.9.18)

---
updated-dependencies:
- dependency-name: vm2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-15 21:32:56 +00:00
landluck
57859ac402 docs(changelog): @vant/weapp 1.10.18 2023-05-08 20:42:31 +08:00
landluck
6234035799 release: 1.10.18 2023-05-08 20:35:05 +08:00
landluck
ccbbe1e9f6 build: compile 1.10.18 2023-05-08 20:35:02 +08:00
landluck
08f3a41a3e
Merge pull request #5365 from landluck/feature/add_feature_5345
feat(field): input event add callback argument
2023-05-08 20:33:47 +08:00
landluck
767da88bc6
Merge pull request #5364 from johnsonwong666/hotfix/fix_issue_5329
fix(Step): vertical icon background
2023-05-08 20:33:36 +08:00
landluck
2796a2b0fa
Merge pull request #5362 from johnsonwong666/hotfix/fix_issue_4700
fix(tab): incorrect slot
2023-05-08 20:07:41 +08:00
landluck
64efb4d204 feat(field): input event add callback argument 2023-05-08 20:06:26 +08:00
johnsonwong666
33858004a1 fix(Step): vertical line background 2023-05-08 19:57:53 +08:00
johnsonwong666
8102e79531 fix(tab): incorrect slot 2023-05-06 17:06:38 +08:00
johnsonwong666
eb56755fd7 fix(Steps): fix vertical line height 2023-05-05 10:29:00 +08:00
landluck
9cbc1662a8
Merge pull request #5358 from landluck/hotfix/fix_issue_5347
feat(goods-action): add size props of goods-action-button
2023-05-04 14:30:46 +08:00
landluck
f72584bed2 feat(goods-action): add size props of goods-action-button 2023-05-04 10:51:13 +08:00
landluck
cbc6cc88b1 docs(changelog): @vant/weapp 1.10.17 2023-05-04 10:24:43 +08:00
landluck
b54f78328d release: 1.10.17 2023-05-04 10:16:06 +08:00
landluck
629603e7b0 build: compile 1.10.17 2023-05-04 10:16:02 +08:00
landluck
a95769652b
Merge pull request #5357 from landluck/hotfix/fix_issue_5335_n
fix(icon): fix location error when custom-class
2023-05-04 10:12:33 +08:00
landluck
31b17e910b fix(icon): fix location error when custom-class 2023-05-04 10:08:14 +08:00
landluck
0e285b130a
Merge pull request #5350 from masicheng/fix-uploader
fix(Uploader): replace wx.chooseImage with wx.chooseMedia
2023-05-04 10:03:30 +08:00
landluck
914c659d56
Merge pull request #5354 from youzan/dependabot/npm_and_yarn/babel/preset-typescript-7.21.5
build(deps-dev): bump @babel/preset-typescript from 7.21.4 to 7.21.5
2023-05-04 09:56:46 +08:00
landluck
0b02eeb4c3
Merge pull request #5355 from youzan/dependabot/npm_and_yarn/lint-staged-13.2.2
build(deps-dev): bump lint-staged from 13.2.0 to 13.2.2
2023-05-04 09:56:34 +08:00
landluck
d1be0b3c8b
Merge pull request #5356 from youzan/dependabot/npm_and_yarn/miniprogram-api-typings-3.9.1
build(deps-dev): bump miniprogram-api-typings from 3.9.0 to 3.9.1
2023-05-04 09:55:45 +08:00
dependabot[bot]
8f28e6ae42
build(deps-dev): bump miniprogram-api-typings from 3.9.0 to 3.9.1
Bumps [miniprogram-api-typings](https://github.com/wechat-miniprogram/api-typings) from 3.9.0 to 3.9.1.
- [Release notes](https://github.com/wechat-miniprogram/api-typings/releases)
- [Changelog](https://github.com/wechat-miniprogram/api-typings/blob/master/CHANGELOG.md)
- [Commits](https://github.com/wechat-miniprogram/api-typings/compare/3.9.0...3.9.1)

---
updated-dependencies:
- dependency-name: miniprogram-api-typings
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-02 00:08:11 +00:00
dependabot[bot]
071650a37b
build(deps-dev): bump lint-staged from 13.2.0 to 13.2.2
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 13.2.0 to 13.2.2.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v13.2.0...v13.2.2)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-02 00:07:38 +00:00
dependabot[bot]
9271152ec2
build(deps-dev): bump @babel/preset-typescript from 7.21.4 to 7.21.5
Bumps [@babel/preset-typescript](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-typescript) from 7.21.4 to 7.21.5.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.21.5/packages/babel-preset-typescript)

---
updated-dependencies:
- dependency-name: "@babel/preset-typescript"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-02 00:06:54 +00:00
masicheng
33a7e55a71 fix(Uploader): replace wx.chooseImage with wx.chooseMedia 2023-04-27 17:03:54 +08:00
landluck
e0df0181f2
Merge pull request #5344 from johnsonwong666/hotfix/fix_issue_5200
fix(tab): fix tab height
2023-04-27 10:39:38 +08:00
johnsonwong666
747b30597a fix(tab): jest change 2023-04-24 19:32:45 +08:00
johnsonwong666
9e6832bf85 fix(tab): fix tab height 2023-04-24 16:21:48 +08:00
johnsonwong666
a1a1af37f1 fix(tab): fix tab height 2023-04-24 15:53:22 +08:00
dependabot[bot]
5d8ebb2e45
build(deps): bump vm2 from 3.9.16 to 3.9.17 (#5334)
Bumps [vm2](https://github.com/patriksimek/vm2) from 3.9.16 to 3.9.17.
- [Release notes](https://github.com/patriksimek/vm2/releases)
- [Changelog](https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/patriksimek/vm2/compare/3.9.16...3.9.17)

---
updated-dependencies:
- dependency-name: vm2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-21 09:01:23 +08:00
landluck
4a3dbff38b
Merge pull request #5330 from fanburger/fix/5308
fix(van-field): Invalid maxlength on Android devices
2023-04-20 11:23:10 +08:00
Fanburger
05f6159df8
fix(van-field): Invalid maxlength on Android devices 2023-04-18 21:21:07 +08:00
landluck
aa445fddb7 docs(changelog): @vant/weapp 1.10.16 2023-04-18 09:53:41 +08:00
landluck
dc5d55d599 release: 1.10.16 2023-04-18 09:47:37 +08:00
landluck
eff8276d9f build: compile 1.10.16 2023-04-18 09:47:34 +08:00
landluck
2f80362b7b
Merge pull request #5326 from johnsonwong666/hotfix/fix_issue_5295
fix(stepper): fix decimal compare
2023-04-17 20:06:37 +08:00
landluck
b879138508
Merge pull request #5327 from youzan/dependabot/npm_and_yarn/vm2-3.9.16
build(deps): bump vm2 from 3.9.15 to 3.9.16
2023-04-17 20:04:48 +08:00
fanburger
466b9b5504 fix(van-field): Invalid maxlength on Android devices 2023-04-13 17:06:56 +08:00
dependabot[bot]
25ade8883b
build(deps): bump vm2 from 3.9.15 to 3.9.16
Bumps [vm2](https://github.com/patriksimek/vm2) from 3.9.15 to 3.9.16.
- [Release notes](https://github.com/patriksimek/vm2/releases)
- [Changelog](https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/patriksimek/vm2/compare/3.9.15...3.9.16)

---
updated-dependencies:
- dependency-name: vm2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-12 21:17:21 +00:00
johnsonwong666
88bd66c78e fix(stepper): fix decimal compare 2023-04-12 17:54:00 +08:00
landluck
588ba18b75
fix(icon): fix display exception in classPrefix (#5320) 2023-04-10 10:52:55 +08:00
landluck
9c5c8ce9f0
Merge pull request #5313 from noyobo/patch-3
chore: fix cascader demo is a component
2023-04-10 10:13:11 +08:00
landluck
e4fefa4d3f
Merge pull request #5319 from fanburger/fix/5318
fix(tabs): fix tab info module unusual offset
2023-04-10 10:12:29 +08:00
fanburger
37735ca967 fix(tabs): Background offset#5318 2023-04-09 00:44:34 +08:00
dependabot[bot]
b5f7e24f38
build(deps): bump vm2 from 3.9.11 to 3.9.15 (#5317)
Bumps [vm2](https://github.com/patriksimek/vm2) from 3.9.11 to 3.9.15.
- [Release notes](https://github.com/patriksimek/vm2/releases)
- [Changelog](https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/patriksimek/vm2/compare/3.9.11...3.9.15)

---
updated-dependencies:
- dependency-name: vm2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-08 10:08:13 +08:00
农有宝
160ae75689
chore: fix cascader demo is a component 2023-04-03 10:58:48 +08:00
landluck
d55a90841f docs(changelog): @vant/weapp 1.10.15 2023-04-03 10:17:04 +08:00
landluck
ff4e11a485 release: 1.10.15 2023-04-03 10:08:45 +08:00
landluck
613ed8cf94 build: compile 1.10.15 2023-04-03 10:08:41 +08:00
landluck
2f03defe1c
Merge pull request #5275 from landluck/hotfix/fix_issue_5262
fix(calendar): fixed no confirm event in allow-same-day & no confirm button
2023-04-03 09:59:37 +08:00
landluck
09d7d4f69f
Merge pull request #5298 from johnsonwong666/hotfix/rate_half_height_5294
fix(Rate): fix half rate height
2023-04-03 09:59:18 +08:00
landluck
7a161f2153
Merge pull request #5310 from youzan/dependabot/npm_and_yarn/babel/preset-typescript-7.21.4
build(deps-dev): bump @babel/preset-typescript from 7.18.6 to 7.21.4
2023-04-03 09:58:52 +08:00
landluck
3d89e1565e
Merge pull request #5311 from youzan/dependabot/npm_and_yarn/lint-staged-13.2.0
build(deps-dev): bump lint-staged from 13.1.2 to 13.2.0
2023-04-03 09:58:25 +08:00
dependabot[bot]
9b1a489c2d
build(deps-dev): bump lint-staged from 13.1.2 to 13.2.0
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 13.1.2 to 13.2.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v13.1.2...v13.2.0)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-02 00:07:07 +00:00
dependabot[bot]
cdcdaa2c48
build(deps-dev): bump @babel/preset-typescript from 7.18.6 to 7.21.4
Bumps [@babel/preset-typescript](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-typescript) from 7.18.6 to 7.21.4.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.21.4/packages/babel-preset-typescript)

---
updated-dependencies:
- dependency-name: "@babel/preset-typescript"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-02 00:06:01 +00:00
huangzongshen
700a1ed644 hotfix: rate_half_height 2023-03-27 15:38:07 +08:00
landluck
db89819f9e fix(calendar): fixed no confirm event in allow-same-day & no confirm button 2023-03-07 10:23:41 +08:00
landluck
0e425098af
Merge pull request #5273 from fanburger/feature/add_feature_5270
feat(van-goods-action-icon): Added the 'color' attribute for customizing the icon color.
2023-03-06 20:59:32 +08:00
YF
4fd22f0a6b feat(van-goods-action-icon): Add the color property version requirement. 2023-03-06 20:26:41 +08:00
YF
6f175b2818 feat(van-goods-action-icon): Added the 'color' attribute for customizing the icon color. 2023-03-03 20:21:31 +08:00
landluck
af66e3d78c
Merge pull request #5263 from youzan/dependabot/npm_and_yarn/miniprogram-simulate-1.5.9
build(deps-dev): bump miniprogram-simulate from 1.5.8 to 1.5.9
2023-03-03 11:08:38 +08:00
landluck
11e69b1e4c
Merge pull request #5267 from youzan/dependabot/npm_and_yarn/babel/plugin-transform-modules-commonjs-7.21.2
build(deps-dev): bump @babel/plugin-transform-modules-commonjs from 7.19.6 to 7.21.2
2023-03-03 11:08:24 +08:00
landluck
4389ba378a
Merge pull request #5268 from youzan/dependabot/npm_and_yarn/lint-staged-13.1.2
build(deps-dev): bump lint-staged from 13.1.0 to 13.1.2
2023-03-03 11:08:10 +08:00
dependabot[bot]
7a0e89fb14
build(deps-dev): bump lint-staged from 13.1.0 to 13.1.2
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 13.1.0 to 13.1.2.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v13.1.0...v13.1.2)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-02 00:07:13 +00:00
dependabot[bot]
1abe403726
build(deps-dev): bump @babel/plugin-transform-modules-commonjs
Bumps [@babel/plugin-transform-modules-commonjs](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-modules-commonjs) from 7.19.6 to 7.21.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.21.2/packages/babel-plugin-transform-modules-commonjs)

---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-modules-commonjs"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-02 00:06:07 +00:00
dependabot[bot]
a3c5a99031
build(deps-dev): bump miniprogram-simulate from 1.5.8 to 1.5.9
Bumps [miniprogram-simulate](https://github.com/wechat-miniprogram/miniprogram-simulate) from 1.5.8 to 1.5.9.
- [Release notes](https://github.com/wechat-miniprogram/miniprogram-simulate/releases)
- [Commits](https://github.com/wechat-miniprogram/miniprogram-simulate/commits)

---
updated-dependencies:
- dependency-name: miniprogram-simulate
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-02 00:02:38 +00:00
landluck
d0d757a665 docs(changelog): @vant/weapp 1.10.14 2023-02-27 15:10:40 +08:00
landluck
f86c1fd1f2 docs(changelog): @vant/weapp 1.10.14 2023-02-27 11:57:37 +08:00
landluck
17c96a1827 release: 1.10.14 2023-02-27 11:53:46 +08:00
landluck
79c50951a5 build: compile 1.10.14 2023-02-27 11:53:42 +08:00
landluck
6b9af20525
Merge pull request #5258 from landluck/hotfix/fix_test_case_error
fix(test): fix test case error
2023-02-27 11:51:13 +08:00
landluck
d69ec23b88 fix(test): fix test case error 2023-02-27 11:48:30 +08:00
landluck
77c765d451
feat(dropdown-menu): add safe-area-tab-bar prop support (#5257)
Co-authored-by: landluck <liuhaihong@youzan.com>
2023-02-27 11:25:13 +08:00
landluck
3a4baaff41
feat(dropdown-item): add root-portal prop support (#5256)
Co-authored-by: liuhaihonggia <liuhaihong@youzan.com>
2023-02-27 11:24:05 +08:00
landluck
17b9eadcb0
feat(popup): add root-portal prop support (#5254)
* feat(popup): add root-portal prop support

* fix(popup): fix test case error

---------

Co-authored-by: liuhaihonggia <liuhaihong@youzan.com>
2023-02-27 11:23:46 +08:00
landluck
9352b33673
feat(overlay): add root-portal prop support (#5255)
* feat(overlay): add root-portal prop support

* feat(overlay): opt doc style

---------

Co-authored-by: liuhaihonggia <liuhaihong@youzan.com>
2023-02-27 11:23:26 +08:00
landluck
cf36c8ebbd
fix(icon): fix dot when custom icon (#5253)
Co-authored-by: liuhaihonggia <liuhaihong@youzan.com>
2023-02-26 18:47:44 +08:00
neverland
0fc6103e1b
docs: add @landluck and @wjw-gavin to core team (#5252) 2023-02-26 11:01:13 +08:00
landluck
05028b42ac docs(changelog): @vant/weapp 1.10.13 2023-02-13 10:04:38 +08:00
landluck
987e82cc4b release: 1.10.13 2023-02-13 09:58:36 +08:00
landluck
734db65203 build: compile 1.10.13 2023-02-13 09:58:32 +08:00
landluck
f05db09646
feat(popup): add safe-area-tab-bar props support (#5194) 2023-02-13 09:26:21 +08:00
landluck
8c48a03831
fix(stepper): fix no change event in blur (#5227)
Co-authored-by: liuhaihonggia <liuhaihong@youzan.com>
2023-02-13 09:25:28 +08:00
landluck
bcae47b8d0
feat(uploader): add showmenu prop support (#5229)
Co-authored-by: liuhaihonggia <liuhaihong@youzan.com>
2023-02-13 09:25:02 +08:00
landluck
3d0615e042
feat(calendar): add min-range prop support in multiple mode (#5230)
Co-authored-by: liuhaihonggia <liuhaihong@youzan.com>
2023-02-13 09:23:49 +08:00
landluck
98747aacf7
fix(stepper): fix always-embed prop appearing twice (#5231)
Co-authored-by: liuhaihonggia <liuhaihong@youzan.com>
2023-02-13 09:23:09 +08:00
landluck
247e8ca9fc
feat(tabbar-item): add url link-type prop support (#5232)
Co-authored-by: liuhaihonggia <liuhaihong@youzan.com>
2023-02-13 08:14:15 +08:00
landluck
c7f2f45430
Merge pull request #5219 from muzhichu/hotfix/cascader-tabclick
fix(cascader): 修复cascader组件onClickTab事件没有同步activeTab的值导致选择异常的问题
2023-02-12 16:51:58 +08:00
landluck
840baf4341
Merge pull request #5213 from Sober-1/feature/calendar_safe_area
fix(calendar): 修复calendar组件安全区域传参未传递给popup组件的问题
2023-02-12 16:51:41 +08:00
landluck
66867f6054
Merge pull request #5207 from youzan/dependabot/npm_and_yarn/typescript-4.9.5
build(deps-dev): bump typescript from 4.8.4 to 4.9.5
2023-02-12 15:52:44 +08:00
landluck
357fd0e7e5
Merge pull request #5208 from youzan/dependabot/npm_and_yarn/miniprogram-api-typings-3.9.0
build(deps-dev): bump miniprogram-api-typings from 3.8.1 to 3.9.0
2023-02-12 15:52:33 +08:00
landluck
96923a4c75
Merge pull request #5209 from youzan/dependabot/npm_and_yarn/miniprogram-ci-1.9.5
build(deps-dev): bump miniprogram-ci from 1.9.3 to 1.9.5
2023-02-12 15:52:22 +08:00
landluck
be68dc6868
Merge pull request #5215 from youzan/dependabot/npm_and_yarn/http-cache-semantics-4.1.1
build(deps): bump http-cache-semantics from 4.1.0 to 4.1.1
2023-02-12 15:52:11 +08:00
landluck
439d17e0f7
Merge pull request #5211 from youzan/dependabot/npm_and_yarn/jszip-3.10.1
build(deps): bump jszip from 3.7.1 to 3.10.1
2023-02-12 14:34:37 +08:00
yongli
92ae4a29c0 fix(cascader): 修复cascader组件onClickTab事件没有同步activeTab的值导致选择异常的问题 2023-02-07 17:16:18 +08:00
dependabot[bot]
183c980bd2
build(deps): bump http-cache-semantics from 4.1.0 to 4.1.1
Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/kornelski/http-cache-semantics/releases)
- [Commits](https://github.com/kornelski/http-cache-semantics/compare/v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: http-cache-semantics
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-04 01:53:11 +00:00
李国璞
db79570d98 fix(calendar): 修复calendar组件安全区域传参未传递给popup组件的问题 2023-02-03 11:12:26 +08:00
dependabot[bot]
94bd6ada78
build(deps): bump jszip from 3.7.1 to 3.10.1
Bumps [jszip](https://github.com/Stuk/jszip) from 3.7.1 to 3.10.1.
- [Release notes](https://github.com/Stuk/jszip/releases)
- [Changelog](https://github.com/Stuk/jszip/blob/main/CHANGES.md)
- [Commits](https://github.com/Stuk/jszip/compare/v3.7.1...v3.10.1)

---
updated-dependencies:
- dependency-name: jszip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-02 17:43:39 +00:00
dependabot[bot]
e38973c969
build(deps-dev): bump miniprogram-ci from 1.9.3 to 1.9.5
Bumps miniprogram-ci from 1.9.3 to 1.9.5.

---
updated-dependencies:
- dependency-name: miniprogram-ci
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-01 23:10:22 +00:00
dependabot[bot]
f0ee820588
build(deps-dev): bump miniprogram-api-typings from 3.8.1 to 3.9.0
Bumps [miniprogram-api-typings](https://github.com/wechat-miniprogram/api-typings) from 3.8.1 to 3.9.0.
- [Release notes](https://github.com/wechat-miniprogram/api-typings/releases)
- [Changelog](https://github.com/wechat-miniprogram/api-typings/blob/master/CHANGELOG.md)
- [Commits](https://github.com/wechat-miniprogram/api-typings/compare/3.8.1...3.9.0)

---
updated-dependencies:
- dependency-name: miniprogram-api-typings
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-01 23:09:49 +00:00
dependabot[bot]
b028cd7868
build(deps-dev): bump typescript from 4.8.4 to 4.9.5
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.8.4 to 4.9.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.8.4...v4.9.5)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-01 23:08:24 +00:00
landluck
acdf1ad280 docs(changelog): @vant/weapp 1.10.12 2023-01-16 10:50:10 +08:00
landluck
2c9765ea08 release: 1.10.12 2023-01-16 10:45:39 +08:00
landluck
7cec5690ce build: compile 1.10.12 2023-01-16 10:45:36 +08:00
landluck
231aa05e8d
fix(calendar): fix cannot select the same day on allow-same-day (#5193) 2023-01-12 17:56:17 +08:00
landluck
e9d521a8d2
fix(stepper): fix unable update value in async change (#5191) 2023-01-12 10:53:05 +08:00
landluck
965734328c
feat(dropdown-menu): support use-before-toggle support (#5190) 2023-01-11 17:39:13 +08:00
landluck
d14ac6027a
feat(field): add prop extra-event-params support (#5184)
* feat(field): add prop extra support

* feat(field): adjust extra params to extra-to-params
2023-01-11 16:36:30 +08:00
landluck
0c372115da
Merge pull request #5187 from znanh/patch-1
docs(action-sheet): 修复 close-on-click-overlay 文档默认值错误
2023-01-11 15:46:36 +08:00
znanh
b2fabe6b2b
docs(action-sheet):修复close-on-click-overlay初始值书写错误 2023-01-09 15:43:55 +08:00
maoweifan
7160828cf1 fix(Cascader): cascader__option--select not bind 2023-01-08 13:52:11 +08:00
maoweifan
e46d11f837 fix(Cascader): change isSelected key 2023-01-08 01:59:50 +08:00
landluck
9771499383 docs(changelog): @vant/weapp 1.10.11 2023-01-03 10:36:07 +08:00
landluck
099937bc8f release: 1.10.11 2023-01-03 10:31:14 +08:00
landluck
7fdb7fbf03 build: compile 1.10.11 2023-01-03 10:31:12 +08:00
landluck
6ca6bb896c
Merge pull request #5175 from youzan/dependabot/npm_and_yarn/lint-staged-13.1.0
build(deps-dev): bump lint-staged from 13.0.3 to 13.1.0
2023-01-03 10:26:12 +08:00
landluck
3936e5f799
Merge pull request #5174 from youzan/dependabot/npm_and_yarn/miniprogram-api-typings-3.8.1
build(deps-dev): bump miniprogram-api-typings from 3.6.0 to 3.8.1
2023-01-03 10:25:58 +08:00
landluck
ac75900d3f
Merge pull request #5176 from youzan/dependabot/npm_and_yarn/miniprogram-simulate-1.5.8
build(deps-dev): bump miniprogram-simulate from 1.5.7 to 1.5.8
2023-01-03 10:25:46 +08:00
landluck
484613d22e
Merge pull request #5170 from youzan/dependabot/npm_and_yarn/miniprogram-ci-1.9.3
build(deps-dev): bump miniprogram-ci from 1.8.35 to 1.9.3
2023-01-03 10:25:35 +08:00
dependabot[bot]
38e617227d
build(deps-dev): bump miniprogram-simulate from 1.5.7 to 1.5.8
Bumps [miniprogram-simulate](https://github.com/wechat-miniprogram/miniprogram-simulate) from 1.5.7 to 1.5.8.
- [Release notes](https://github.com/wechat-miniprogram/miniprogram-simulate/releases)
- [Commits](https://github.com/wechat-miniprogram/miniprogram-simulate/commits)

---
updated-dependencies:
- dependency-name: miniprogram-simulate
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-01 23:09:26 +00:00
dependabot[bot]
49f611bf67
build(deps-dev): bump lint-staged from 13.0.3 to 13.1.0
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 13.0.3 to 13.1.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v13.0.3...v13.1.0)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-01 23:09:14 +00:00
dependabot[bot]
f59e5afddf
build(deps-dev): bump miniprogram-api-typings from 3.6.0 to 3.8.1
Bumps [miniprogram-api-typings](https://github.com/wechat-miniprogram/api-typings) from 3.6.0 to 3.8.1.
- [Release notes](https://github.com/wechat-miniprogram/api-typings/releases)
- [Changelog](https://github.com/wechat-miniprogram/api-typings/blob/master/CHANGELOG.md)
- [Commits](https://github.com/wechat-miniprogram/api-typings/commits)

---
updated-dependencies:
- dependency-name: miniprogram-api-typings
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-01 23:08:41 +00:00
dependabot[bot]
4f8981ab0d
build(deps-dev): bump miniprogram-ci from 1.8.35 to 1.9.3
Bumps miniprogram-ci from 1.8.35 to 1.9.3.

---
updated-dependencies:
- dependency-name: miniprogram-ci
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-01 23:07:24 +00:00
landluck
924d04b5a3
Merge pull request #5164 from landluck/feature/add_uploader_extension
feat(uploader): add extension property support
2022-12-30 19:03:29 +08:00
landluck
d4cf2154fe
fix(steps): fixed extra spacing in the vertical direction (#5166) 2022-12-30 18:03:22 +08:00
landluck
a80767e9c1 feat(uploader): add extension property support 2022-12-29 20:04:25 +08:00
landluck
72476e639d
feat(image): add webp property support (#5163) 2022-12-29 19:33:38 +08:00
landluck
5f7150d980
fix(stepper): fixed displaying incorrect values when on blur (#5158) 2022-12-21 11:57:40 +08:00
landluck
e4ad5cc51a
fix(transition): fixed enter event trigger multiple times (#5157) 2022-12-21 11:15:37 +08:00
landluck
3a716ea15b docs(changelog): @vant/weapp 1.10.10 2022-12-16 17:03:12 +08:00
landluck
fad9e9d85d release: 1.10.10 2022-12-16 16:52:46 +08:00
landluck
e4952f28e4 build: compile 1.10.10 2022-12-16 16:52:43 +08:00
landluck
33e1725b0a
fix(uploader): fix preview video index error (#5142) 2022-12-14 10:25:36 +08:00
landluck
91a12bbaaf
fix(dialog): fixed extra lines without button (#5141) 2022-12-14 10:25:02 +08:00
landluck
76522a173f
feat(tab): add before-change event support (#5139)
* feat(tab): add before-change event support

* docs(tab): delete unnecessary content
2022-12-14 10:24:32 +08:00
landluck
e7426dba36
fix(dropdown): fix last item style on text over (#5145) 2022-12-14 10:12:52 +08:00
landluck
5ef53f25e0
fix(search): optimize the Cancel button click area (#5148)
* fix(search): optimize the Cancel button click area

* test(search): fix test case failed
2022-12-14 10:12:32 +08:00
landluck
bcafa2b894
Merge pull request #5144 from landluck/hotfix/fix_test_case_error
test(field): fix test case error
2022-12-13 11:59:12 +08:00
landluck
786448ac2e test(field): fix test case error 2022-12-13 11:55:28 +08:00
landluck
f1b99f8f13
Merge pull request #5143 from landluck/feature/update_issue_config
chore: update issue config
2022-12-13 11:48:37 +08:00
landluck
5cfc98275d chore: update issue config 2022-12-13 11:47:13 +08:00
landluck
98cb9c04ea
Merge pull request #5059 from noyobo/patch-2
fix: filed Demo missing van-button
2022-12-13 11:35:28 +08:00
landluck
ff67d50ccc
Merge pull request #5140 from landluck/hotfix/fix_issue_4833
docs(uploader): add thumb prop desc
2022-12-12 21:12:55 +08:00
landluck
af74936bdc docs(uploader): add thumb prop desc 2022-12-12 20:53:20 +08:00
landluck
011fa00577
Merge pull request #5138 from landluck/hotfix/fix_cascader_doc_error
docs(cascader): add cascader doc link
2022-12-12 16:08:29 +08:00
landluck
4bb9e62538 docs(cascader): add cascader doc link 2022-12-12 16:05:53 +08:00
landluck
2cfad3e607 docs(changelog): @vant/weapp 1.10.9 2022-12-12 15:47:55 +08:00
landluck
91b2e6ce92 release: 1.10.9 2022-12-12 15:43:34 +08:00
landluck
9c9822ef58 build: compile 1.10.9 2022-12-12 15:43:32 +08:00
landluck
fd3b26b365
Merge pull request #5130 from ylethe/feature/add-cascader
feat(Cascader): 新增 Cascader 组件 (#4992)
2022-12-12 15:33:21 +08:00
yangjinfeng
830a68c511 fix: conflict 2022-12-12 14:48:14 +08:00
yangjinfeng
c1abd0052f fix: 调整tab wrap-class位置及cascader review细节问题 2022-12-09 18:26:48 +08:00
landluck
270474f541
fix(transition): fix requestAnimationFrame is not executed in the background (#5131) 2022-12-06 10:46:19 +08:00
landluck
ebbc7a3e68
Merge pull request #5124 from youzan/dependabot/npm_and_yarn/decode-uri-component-0.2.2
build(deps): bump decode-uri-component from 0.2.0 to 0.2.2
2022-12-05 19:56:56 +08:00
yangjinfeng
88eb9379a9 fix: cascader empty index-bar test demo 2022-12-05 19:33:56 +08:00
yangjinfeng
845ce17cfe Merge branch 'dev' into feature/add-cascader 2022-12-05 17:13:48 +08:00
yangjinfeng
d86d4a6a5f feat(cascader): 新增 cascader 组件 (#4992) 2022-12-05 16:53:29 +08:00
xujiujiu
9098f427bf
fix: slider docs demo bug (#5128)
示例中 value 值不对,导致编译出错
2022-12-05 11:09:04 +08:00
landluck
5b96c7acb0
fix(tab): fix maximum call stack on scroll (#5125) 2022-12-02 10:19:26 +08:00
dependabot[bot]
a13c7348a2
build(deps): bump decode-uri-component from 0.2.0 to 0.2.2
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-02 02:10:16 +00:00
landluck
71f5e3422f
Merge pull request #5121 from youzan/dependabot/npm_and_yarn/vue-3.2.45
build(deps-dev): bump vue from 3.2.41 to 3.2.45
2022-12-02 10:09:09 +08:00
dependabot[bot]
84dde64d74
build(deps-dev): bump vue from 3.2.41 to 3.2.45
Bumps [vue](https://github.com/vuejs/core) from 3.2.41 to 3.2.45.
- [Release notes](https://github.com/vuejs/core/releases)
- [Changelog](https://github.com/vuejs/core/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vuejs/core/compare/v3.2.41...v3.2.45)

---
updated-dependencies:
- dependency-name: vue
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-01 23:11:06 +00:00
landluck
61d7a3e5cf docs(changelog): @vant/weapp 1.10.8 2022-11-29 14:11:57 +08:00
landluck
13b3f9a7d1 release: 1.10.8 2022-11-29 14:05:17 +08:00
landluck
345027906d build: compile 1.10.8 2022-11-29 14:05:15 +08:00
landluck
c6bff2718a
fix(tabs): fix issue with component init animation (#5115) 2022-11-29 11:26:05 +08:00
landluck
56cc44f60e
feat(uploader): add media media-type props support (#5113)
* feat(uploader): add media media-type props support

* docs(uploader): fix media-type props example error
2022-11-28 20:36:44 +08:00
landluck
09360b2df3
fix(slider): fix emit value is not final value (#5112)
* fix(slider): fix emit value is not  final value

* fix: fix change event emit multiple times
2022-11-28 17:25:37 +08:00
landluck
3f6403f5b3
Merge pull request #5109 from MuYiez/dev
fix(stepper):修复stepper blur事件失焦时会触发change事件
2022-11-24 10:53:25 +08:00
MuYiez
8b441de1a6 fix(stepper):修复stepper blur事件失焦时会触发change事件 2022-11-22 20:22:39 +08:00
landluck
c118b83aeb
Merge pull request #5104 from landluck/hotfix/fix_dome_error
docs(Calendar): fix the sample code error
2022-11-22 10:05:58 +08:00
landluck
c55c785a9e docs(Calendar): fix the sample code error 2022-11-22 10:03:36 +08:00
landluck
406d7200ab
feat(dialog): add custom class support (#5102) 2022-11-21 11:52:28 +08:00
landluck
c4639f5e47 docs(changelog): @vant/weapp 1.10.7 2022-11-18 15:44:06 +08:00
landluck
63e1f966d7 release: 1.10.7 2022-11-18 15:39:08 +08:00
landluck
4700001f32 build: compile 1.10.7 2022-11-18 15:39:05 +08:00
landluck
01a389c58b
feat(dropdown-menu): add multiple custom class support (#5099) 2022-11-18 10:52:52 +08:00
landluck
f4c71d3d56
feat(action-sheet): add custom class support (#5097)
* feat(action-sheet): add custom class support

* fix(action-sheet): fix custom class doc error
2022-11-14 11:26:04 +08:00
landluck
a396085bef
Merge pull request #5096 from landluck/feature/opt_collapse_item_doc
docs(collapse): add right-icon desc
2022-11-14 10:45:47 +08:00
landluck
d39b35fc3a docs(collapse): add right-icon desc 2022-11-14 10:36:09 +08:00
landluck
124c208646
Merge pull request #5094 from Serifx/hotfix/search-prop-value
fix(search): add 'value' prop definition
2022-11-14 10:01:17 +08:00
Serifx
697746fb47 fix(search): add 'value' prop definition 2022-11-11 17:58:42 +08:00
landluck
3c3978df3e docs: update repo links 2022-11-06 16:56:50 +08:00
landluck
05c04682ad docs(changelog): @vant/weapp 1.10.6 2022-11-06 16:26:24 +08:00
landluck
b056f1855f release: 1.10.6 2022-11-06 16:15:33 +08:00
landluck
3599fdab83 build: compile 1.10.6 2022-11-06 16:15:30 +08:00
landluck
93aafc4180
Merge pull request #5087 from landluck/hotfix/fix_lint-staged_error
fix: fix husky lack lint-staged devdep
2022-11-06 16:12:46 +08:00
landluck
082ae1d66a fix: fix husky lack lint-staged devdep 2022-11-06 16:09:02 +08:00
landluck
46b8d053e3
fix(mixin): fix scroll function are not recycled (#5086)
* fix(mixins): fix scroll function are not recycled

* fix(mixins): opt page scroll mixin recycle
2022-11-03 14:42:11 +08:00
landluck
66c967b782
fix(button): fix button disabled & loading active ui (#5084)
* fix(button): fix button disabled active ui

* fix(button): fix button loading active ui

Co-authored-by: liuhaihonggia <liuhaihong@youzan.com>
2022-11-03 10:18:25 +08:00
landluck
763acff12a
Merge pull request #5080 from youzan/dependabot/npm_and_yarn/babel/plugin-transform-modules-commonjs-7.19.6
build(deps-dev): bump @babel/plugin-transform-modules-commonjs from 7.17.7 to 7.19.6
2022-11-02 17:55:33 +08:00
landluck
3ff95e01ad
Merge pull request #5082 from youzan/dependabot/npm_and_yarn/vue-3.2.41
build(deps-dev): bump vue from 3.2.40 to 3.2.41
2022-11-02 17:55:02 +08:00
landluck
abeddfd09d
fix(overlay): add custom-class support (#5083)
* fix(overlay): add custom-class support

* fix(overlay): fix overlay bad test case

Co-authored-by: liuhaihonggia <liuhaihong@youzan.com>
2022-11-02 17:49:57 +08:00
dependabot[bot]
0b5dafa8d2
build(deps-dev): bump vue from 3.2.40 to 3.2.41
Bumps [vue](https://github.com/vuejs/core) from 3.2.40 to 3.2.41.
- [Release notes](https://github.com/vuejs/core/releases)
- [Changelog](https://github.com/vuejs/core/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vuejs/core/compare/v3.2.40...v3.2.41)

---
updated-dependencies:
- dependency-name: vue
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-01 23:26:08 +00:00
dependabot[bot]
5c9859f1f1
build(deps-dev): bump @babel/plugin-transform-modules-commonjs
Bumps [@babel/plugin-transform-modules-commonjs](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-modules-commonjs) from 7.17.7 to 7.19.6.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.19.6/packages/babel-plugin-transform-modules-commonjs)

---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-modules-commonjs"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-01 23:22:51 +00:00
landluck
5e87650fe2
fix(slider): fix slider can't swipe (#5079)
Co-authored-by: liuhaihonggia <liuhaihong@youzan.com>
2022-10-31 13:05:36 +08:00
landluck
eb50789df3
fix: fix test cli error (#5076)
Co-authored-by: liuhaihonggia <liuhaihong@youzan.com>
2022-10-27 10:58:00 +08:00
landluck
3049271aa5
Merge pull request #5075 from youzan/dependabot/npm_and_yarn/moment-timezone-0.5.38
build(deps): bump moment-timezone from 0.5.34 to 0.5.38
2022-10-26 15:33:22 +08:00
landluck
917e60195f
Merge pull request #5050 from youzan/dependabot/npm_and_yarn/typescript-4.8.4
build(deps-dev): bump typescript from 4.7.4 to 4.8.4
2022-10-26 15:33:07 +08:00
dependabot[bot]
c380b8ac32
build(deps-dev): bump typescript from 4.7.4 to 4.8.4
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.4 to 4.8.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.7.4...v4.8.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-26 07:31:10 +00:00
landluck
e33a07730a
Merge pull request #5039 from youzan/dependabot/npm_and_yarn/miniprogram-api-typings-3.6.0
build(deps-dev): bump miniprogram-api-typings from 3.4.5 to 3.6.0
2022-10-26 15:28:30 +08:00
landluck
72bd8b88fb
Merge pull request #5020 from youzan/dependabot/npm_and_yarn/async-2.6.4
build(deps): bump async from 2.6.3 to 2.6.4
2022-10-26 15:28:11 +08:00
dependabot[bot]
4aacb6184c
build(deps): bump moment-timezone from 0.5.34 to 0.5.38
Bumps [moment-timezone](https://github.com/moment/moment-timezone) from 0.5.34 to 0.5.38.
- [Release notes](https://github.com/moment/moment-timezone/releases)
- [Changelog](https://github.com/moment/moment-timezone/blob/develop/changelog.md)
- [Commits](https://github.com/moment/moment-timezone/compare/0.5.34...0.5.38)

---
updated-dependencies:
- dependency-name: moment-timezone
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-26 07:27:26 +00:00
landluck
bbf2d0de31
Merge pull request #4985 from youzan/dependabot/npm_and_yarn/babel/preset-typescript-7.18.6
build(deps-dev): bump @babel/preset-typescript from 7.16.7 to 7.18.6
2022-10-26 15:27:23 +08:00
landluck
aea30546dc
Merge pull request #5040 from youzan/dependabot/npm_and_yarn/vant/cli-4.0.4
build(deps-dev): bump @vant/cli from 4.0.3 to 4.0.4
2022-10-26 15:27:06 +08:00
landluck
b66b85eb97
Merge pull request #5051 from youzan/dependabot/npm_and_yarn/vue-3.2.40
build(deps-dev): bump vue from 3.2.31 to 3.2.40
2022-10-26 15:26:46 +08:00
cikenerd
186b0156df
fix: 修复插件内使用 van-tabs 切换 tab 报错的问题 (#5073)
* 修复插件内使用van-tabs切换tab报错的问题

* fix(van-tabs): 修复小程序插件内使用van-tabs切换tab没有反应的问题
feat(van-tabs): incorrect style
docs(van-tabs): 去除utils,version里面require循环依赖,修复插件内调用wx.canIUse抛异常问题

* fix(van-tabs): 修复小程序插件内使用van-tabs切换tab没有反应的问题
feat(van-tabs): incorrect style
docs(van-tabs): 去除utils,version里面require循环依赖,修复插件内调用wx.canIUse抛异常问题

* fix(van-tabs): incorrect style
feat(van-tabs): incorrect style
docs(van-tabs): incorrect style
2022-10-26 14:29:38 +08:00
landluck
a41e7734eb
feat: add issue template (#5066)
* feat: add issue template

* feat: optimize bug issue template

Co-authored-by: liuhaihonggia <liuhaihong@youzan.com>
2022-10-19 10:40:28 +08:00
landluck
9d96e248f4
fix: fix dialog & toast doc error (#5064)
Co-authored-by: liuhaihonggia <liuhaihong@youzan.com>
2022-10-17 21:31:04 +08:00
大宝
8ec17cc87d
fix: filed Demo missing van-button 2022-10-13 16:01:10 +08:00
大宝
e87c22edec
fix: card demo 缺少 tag button 定义 (#5057) 2022-10-11 19:04:25 +08:00
dependabot[bot]
bbce66886c
build(deps-dev): bump vue from 3.2.31 to 3.2.40
Bumps [vue](https://github.com/vuejs/core) from 3.2.31 to 3.2.40.
- [Release notes](https://github.com/vuejs/core/releases)
- [Changelog](https://github.com/vuejs/core/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vuejs/core/compare/v3.2.31...v3.2.40)

---
updated-dependencies:
- dependency-name: vue
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-01 23:18:17 +00:00
uxuip
a8d5999d89
feat(Dialog): option context support function (#5043) 2022-09-19 14:24:14 +08:00
dependabot[bot]
b1b2a9135c
build(deps-dev): bump @vant/cli from 4.0.3 to 4.0.4
Bumps [@vant/cli](https://github.com/youzan/vant/tree/HEAD/packages/vant-cli) from 4.0.3 to 4.0.4.
- [Release notes](https://github.com/youzan/vant/releases)
- [Changelog](https://github.com/youzan/vant/blob/main/packages/vant-cli/changelog.md)
- [Commits](https://github.com/youzan/vant/commits/HEAD/packages/vant-cli)

---
updated-dependencies:
- dependency-name: "@vant/cli"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-17 05:41:33 +00:00
dependabot[bot]
f70512cbf8
build(deps-dev): bump miniprogram-api-typings from 3.4.5 to 3.6.0
Bumps [miniprogram-api-typings](https://github.com/wechat-miniprogram/api-typings) from 3.4.5 to 3.6.0.
- [Release notes](https://github.com/wechat-miniprogram/api-typings/releases)
- [Changelog](https://github.com/wechat-miniprogram/api-typings/blob/master/CHANGELOG.md)
- [Commits](https://github.com/wechat-miniprogram/api-typings/compare/3.4.5...3.6.0)

---
updated-dependencies:
- dependency-name: miniprogram-api-typings
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-17 05:39:26 +00:00
chenjiahan
ba064e5a71 docs(changelog): @vant/weapp 1.10.5 2022-09-07 23:00:15 +08:00
chenjiahan
9789f68d71 release: 1.10.5 2022-09-07 22:58:38 +08:00
chenjiahan
0d71d8068d build: compile 1.10.5 2022-09-07 22:58:34 +08:00
xinde
842e88f115
fix(Calendar): getDay 和 getUTCDay 有时间差,导致星期错位 (#4883)
https://github.com/youzan/vant-weapp/issues/4756
2022-09-07 22:57:45 +08:00
chenjiahan
9a708747a8 types(Toast): fix context type 2022-09-07 22:54:48 +08:00
uxuip
8220552f66
feat(toast): option context support function (#5022) 2022-09-07 22:43:33 +08:00
uxuip
06c2457513
feat(Notify): set or reset default config (#5028) 2022-09-07 22:42:54 +08:00
feliciaZH
0d3694c9d7
feat(Dialog): messageAlign 属性支持传 justify (#5034) 2022-09-07 22:42:25 +08:00
dependabot[bot]
fe69d2d6cb
build(deps-dev): bump @babel/preset-typescript from 7.16.7 to 7.18.6
Bumps [@babel/preset-typescript](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-typescript) from 7.16.7 to 7.18.6.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.18.6/packages/babel-preset-typescript)

---
updated-dependencies:
- dependency-name: "@babel/preset-typescript"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-20 02:28:58 +00:00
dependabot[bot]
ecbde11a51
build(deps): bump async from 2.6.3 to 2.6.4
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-20 02:26:52 +00:00
dependabot[bot]
d965fa6934
build(deps-dev): bump miniprogram-ci from 1.8.18 to 1.8.35 (#5001)
Bumps miniprogram-ci from 1.8.18 to 1.8.35.

---
updated-dependencies:
- dependency-name: miniprogram-ci
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-20 10:26:08 +08:00
chenjiahan
5cf03cfd3b docs(changelog): 1.10.4 2022-07-23 22:42:53 +08:00
chenjiahan
f9f121f582 release: 1.10.4 2022-07-23 22:41:41 +08:00
chenjiahan
25699c19ec build: compile 1.10.4 2022-07-23 22:41:37 +08:00
chenjiahan
7e84eb5bd1 docs: update function component import path 2022-07-23 22:40:37 +08:00
王志鑫
f888e77cd2
Fix README.md (#4891)
The Toast instance introduced an error path
2022-07-23 22:39:35 +08:00
chenjiahan
e21dbd0d66 docs: add bind:chooseavatar event 2022-07-23 22:38:24 +08:00
MyHdg
6997c225a9
feat(Button): add chooseavatar event (#4976) 2022-07-23 22:36:33 +08:00
dependabot[bot]
878814c98f
build(deps): bump ejs from 3.1.6 to 3.1.7 (#4909)
Bumps [ejs](https://github.com/mde/ejs) from 3.1.6 to 3.1.7.
- [Release notes](https://github.com/mde/ejs/releases)
- [Changelog](https://github.com/mde/ejs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mde/ejs/compare/v3.1.6...v3.1.7)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-23 22:35:48 +08:00
chenjiahan
0e966a504f chore: update baidu analytics seed 2022-07-23 22:30:55 +08:00
dependabot[bot]
7b2c0aabd6 build(deps-dev): bump @vant/cli from 4.0.1 to 4.0.3 (#5002)
Bumps [@vant/cli](https://github.com/youzan/vant/tree/HEAD/packages/vant-cli) from 4.0.1 to 4.0.3.
- [Release notes](https://github.com/youzan/vant/releases)
- [Changelog](https://github.com/vant-ui/vant/blob/dev/packages/vant-cli/changelog.md)
- [Commits](https://github.com/youzan/vant/commits/HEAD/packages/vant-cli)

---
updated-dependencies:
- dependency-name: "@vant/cli"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-23 22:27:29 +08:00
chenjiahan
bdcda89b20 chore: update repo links 2022-07-23 22:26:42 +08:00
dependabot[bot]
71de9bc2c9
build(deps-dev): bump typescript from 4.6.3 to 4.7.4 (#4986)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.6.3 to 4.7.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.6.3...v4.7.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-07 22:33:21 +08:00
chenjiahan
1c5a8d7fab docs: update website domain 2022-07-07 22:32:29 +08:00
dependabot[bot]
9fc1616a4e
build(deps): bump parse-url from 6.0.0 to 6.0.2 (#4993)
Bumps [parse-url](https://github.com/IonicaBizau/parse-url) from 6.0.0 to 6.0.2.
- [Release notes](https://github.com/IonicaBizau/parse-url/releases)
- [Commits](https://github.com/IonicaBizau/parse-url/commits)

---
updated-dependencies:
- dependency-name: parse-url
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-06 10:20:21 +08:00
dependabot[bot]
222a0f9de9
build(deps-dev): bump miniprogram-simulate from 1.5.5 to 1.5.7 (#4952)
Bumps [miniprogram-simulate](https://github.com/wechat-miniprogram/miniprogram-simulate) from 1.5.5 to 1.5.7.
- [Release notes](https://github.com/wechat-miniprogram/miniprogram-simulate/releases)
- [Commits](https://github.com/wechat-miniprogram/miniprogram-simulate/commits)

---
updated-dependencies:
- dependency-name: miniprogram-simulate
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-14 09:37:52 +08:00
刘小迪
85f28dd52c
fix(NavBar): 修复因box-sizing:border-box导致导航栏高度不正确问题 (#4969) 2022-06-14 09:37:23 +08:00
Fansy
be710fbf8b
docs(ShareSheet): 添加缺失的show属性 (#4923) 2022-05-05 16:47:26 +08:00
dependabot[bot]
61bdd5739f
build(deps-dev): bump miniprogram-ci from 1.8.0 to 1.8.18 (#4912)
Bumps miniprogram-ci from 1.8.0 to 1.8.18.

---
updated-dependencies:
- dependency-name: miniprogram-ci
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-04 12:13:27 +08:00
neverland
f0957b5de2
docs: add simulator tips (#4919) 2022-05-03 10:50:33 +08:00
neverland
3a9056ff1d
docs: should use v2 demo in simulator (#4918) 2022-05-03 10:36:51 +08:00
chenjiahan
5c90a4ff77 docs(changelog): v1.10.3 2022-05-02 10:52:22 +08:00
chenjiahan
5afa64c98f release: 1.10.3 2022-05-02 10:50:15 +08:00
chenjiahan
45e307903e build: compile 1.10.3 2022-05-02 10:50:10 +08:00
dependabot[bot]
0d61b6283a
build(deps-dev): bump @vant/icons from 1.7.3 to 1.8.0 (#4914)
Bumps [@vant/icons](https://github.com/youzan/vant/tree/HEAD/packages/vant-icons) from 1.7.3 to 1.8.0.
- [Release notes](https://github.com/youzan/vant/releases)
- [Changelog](https://github.com/youzan/vant/blob/dev/packages/vant-icons/CHANGELOG.md)
- [Commits](https://github.com/youzan/vant/commits/HEAD/packages/vant-icons)

---
updated-dependencies:
- dependency-name: "@vant/icons"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-02 10:46:41 +08:00
neverland
d4bfa974ee
chore: improve deploy-site.yml 2022-05-02 10:46:28 +08:00
Fansy
449dd77022
docs: 添加Steps组件step配置项说明 (#4911) 2022-05-02 10:43:05 +08:00
Fansy
dca337e6b3
docs: 修复Area组件文档与实际内容不一致的问题 (#4910) 2022-04-29 14:54:02 +08:00
dependabot[bot]
386e667f8e
build(deps-dev): bump @babel/plugin-transform-modules-commonjs (#4871)
Bumps [@babel/plugin-transform-modules-commonjs](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-modules-commonjs) from 7.16.8 to 7.17.7.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.17.7/packages/babel-plugin-transform-modules-commonjs)

---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-modules-commonjs"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-28 10:34:04 +08:00
dependabot[bot]
a796727276
build(deps-dev): bump ts-jest from 27.1.3 to 27.1.4 (#4875)
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 27.1.3 to 27.1.4.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v27.1.3...v27.1.4)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-28 10:33:39 +08:00
dependabot[bot]
84aa684b47
build(deps-dev): bump miniprogram-simulate from 1.5.1 to 1.5.5 (#4874)
Bumps [miniprogram-simulate](https://github.com/wechat-miniprogram/miniprogram-simulate) from 1.5.1 to 1.5.5.
- [Release notes](https://github.com/wechat-miniprogram/miniprogram-simulate/releases)
- [Commits](https://github.com/wechat-miniprogram/miniprogram-simulate/commits)

---
updated-dependencies:
- dependency-name: miniprogram-simulate
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-09 09:18:26 +08:00
dependabot[bot]
09dfab8cb8
build(deps): bump minimist from 1.2.5 to 1.2.6 (#4857)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-04 14:31:53 +08:00
dependabot[bot]
37a46ae95a
build(deps-dev): bump @vant/cli from 4.0.0 to 4.0.1 (#4873)
Bumps [@vant/cli](https://github.com/youzan/vant/tree/HEAD/packages/vant-cli) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/youzan/vant/releases)
- [Changelog](https://github.com/youzan/vant/blob/dev/packages/vant-cli/changelog.md)
- [Commits](https://github.com/youzan/vant/commits/HEAD/packages/vant-cli)

---
updated-dependencies:
- dependency-name: "@vant/cli"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-04 08:58:09 +08:00
dependabot[bot]
a12b50b91d
build(deps-dev): bump typescript from 4.5.5 to 4.6.3 (#4872)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.5.5 to 4.6.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.5.5...v4.6.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-02 09:13:32 +08:00
BajaXX
52aa2f08d3
feat(uploader): preview-size 属性类型支持 Array 自定义宽高 (#4798) 2022-03-27 10:18:02 +08:00
dependabot[bot]
8469a6b53a
build(deps-dev): bump miniprogram-simulate from 1.4.4 to 1.5.1 (#4810)
Bumps [miniprogram-simulate](https://github.com/wechat-miniprogram/miniprogram-simulate) from 1.4.4 to 1.5.1.
- [Release notes](https://github.com/wechat-miniprogram/miniprogram-simulate/releases)
- [Commits](https://github.com/wechat-miniprogram/miniprogram-simulate/commits)

---
updated-dependencies:
- dependency-name: miniprogram-simulate
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-26 15:26:30 +08:00
陈鼫RWHTYFZ
0b24f3a862
docs(DatetimePicker): filter/formatter函数中type可选值说明 (#4850) 2022-03-26 15:25:54 +08:00
chenjiahan
7beead625a Merge branch 'dev' of github.com:youzan/vant-weapp into dev 2022-03-23 09:15:46 +08:00
chenjiahan
98d9e352c2 docs: update README 2022-03-23 09:15:35 +08:00
dependabot[bot]
5854fe1274
build(deps-dev): bump vue from 3.2.30 to 3.2.31 (#4811)
Bumps [vue](https://github.com/vuejs/core) from 3.2.30 to 3.2.31.
- [Release notes](https://github.com/vuejs/core/releases)
- [Changelog](https://github.com/vuejs/core/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vuejs/core/compare/v3.2.30...v3.2.31)

---
updated-dependencies:
- dependency-name: vue
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-20 08:16:01 +08:00
neverland
d449ec56d5
docs: fix contributor image style (#4846) 2022-03-18 11:32:42 +08:00
neverland
e95a3013b1
docs: add design resource link (#4845) 2022-03-18 11:28:04 +08:00
dyh333
9c1d9fd7b0
docs(action-sheet): document and code examples not match (#4838)
Co-authored-by: dingyihui <dingyihui@cmss.chinamobile.com>
2022-03-15 10:19:48 +08:00
dependabot[bot]
e9cc6bceb9
build(deps-dev): bump @types/jest from 27.4.0 to 27.4.1 (#4813)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 27.4.0 to 27.4.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

---
updated-dependencies:
- dependency-name: "@types/jest"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-13 10:11:01 +08:00
dependabot[bot]
bc94e23885
build(deps-dev): bump jest from 27.5.0 to 27.5.1 (#4814)
Bumps [jest](https://github.com/facebook/jest) from 27.5.0 to 27.5.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v27.5.0...v27.5.1)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-13 10:08:09 +08:00
Jabin Kong
559391bc07
feat(collapse-item): add size prop (#4829)
* feat(collapse-item): add size prop default null

* add docs

* fix docs

* Update README.md

* Update README.md

* Update index.ts

Co-authored-by: neverland <chenjiahan.jait@bytedance.com>
2022-03-12 21:26:59 +08:00
eric-hgh
8c1830ed6c
build: 兼容 windows (#4802) 2022-02-20 10:00:55 +08:00
neverland
99a66b4d35
build: upgrade @vant/cli 4.0.0 (#4788) 2022-02-07 16:44:54 +08:00
nemo-shen
1e7cbe30fb
feat(Area): add show-toolbar prop default true (#4752)
* feat(Area): add show-toolbar prop default true

* fix(Area): fix default value
2022-02-07 09:51:06 +08:00
dependabot[bot]
befa6f08bd
build(deps-dev): bump miniprogram-ci from 1.6.10 to 1.8.0 (#4779)
Bumps miniprogram-ci from 1.6.10 to 1.8.0.

---
updated-dependencies:
- dependency-name: miniprogram-ci
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-06 08:53:07 +08:00
dependabot[bot]
e719a2cbe5
build(deps-dev): bump miniprogram-api-typings from 3.4.4 to 3.4.5 (#4780)
Bumps [miniprogram-api-typings](https://github.com/wechat-miniprogram/api-typings) from 3.4.4 to 3.4.5.
- [Release notes](https://github.com/wechat-miniprogram/api-typings/releases)
- [Changelog](https://github.com/wechat-miniprogram/api-typings/blob/master/CHANGELOG.md)
- [Commits](https://github.com/wechat-miniprogram/api-typings/compare/3.4.4...3.4.5)

---
updated-dependencies:
- dependency-name: miniprogram-api-typings
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-06 08:52:46 +08:00
dependabot[bot]
37a9d1ffce
build(deps-dev): bump jest from 27.4.5 to 27.4.7 (#4782)
Bumps [jest](https://github.com/facebook/jest) from 27.4.5 to 27.4.7.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v27.4.5...v27.4.7)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-05 10:14:04 +08:00
dependabot[bot]
8d8d983fef
build(deps-dev): bump @babel/plugin-transform-modules-commonjs (#4787)
Bumps [@babel/plugin-transform-modules-commonjs](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-modules-commonjs) from 7.16.0 to 7.16.8.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.16.8/packages/babel-plugin-transform-modules-commonjs)

---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-modules-commonjs"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-04 22:06:29 +08:00
dependabot[bot]
c2d83f0956
build(deps-dev): bump miniprogram-simulate from 1.4.3 to 1.4.4 (#4784)
Bumps [miniprogram-simulate](https://github.com/wechat-miniprogram/miniprogram-simulate) from 1.4.3 to 1.4.4.
- [Release notes](https://github.com/wechat-miniprogram/miniprogram-simulate/releases)
- [Commits](https://github.com/wechat-miniprogram/miniprogram-simulate/commits)

---
updated-dependencies:
- dependency-name: miniprogram-simulate
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-03 10:45:54 +08:00
dependabot[bot]
e17d8acb8c
build(deps-dev): bump ts-jest from 27.1.2 to 27.1.3 (#4786)
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 27.1.2 to 27.1.3.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v27.1.2...v27.1.3)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-02 10:29:06 +08:00
dependabot[bot]
74ee24aa24
build(deps): bump trim-off-newlines from 1.0.1 to 1.0.3 (#4770)
Bumps [trim-off-newlines](https://github.com/stevemao/trim-off-newlines) from 1.0.1 to 1.0.3.
- [Release notes](https://github.com/stevemao/trim-off-newlines/releases)
- [Commits](https://github.com/stevemao/trim-off-newlines/compare/v1.0.1...v1.0.3)

---
updated-dependencies:
- dependency-name: trim-off-newlines
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-23 21:37:36 +08:00
dependabot[bot]
42565fd930
build(deps): bump node-fetch from 2.6.1 to 2.6.7 (#4769)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-23 21:37:21 +08:00
dependabot[bot]
850b38241a
build(deps): bump nanoid from 3.1.25 to 3.2.0 (#4768)
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.25 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.25...3.2.0)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-23 21:33:16 +08:00
nemo-shen
73932fc691
docs(Component): fix mistake (#4761) 2022-01-17 10:06:17 +08:00
dependabot[bot]
4871aae6d5
build(deps): bump markdown-it from 12.2.0 to 12.3.2 (#4753)
Bumps [markdown-it](https://github.com/markdown-it/markdown-it) from 12.2.0 to 12.3.2.
- [Release notes](https://github.com/markdown-it/markdown-it/releases)
- [Changelog](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/markdown-it/markdown-it/compare/12.2.0...12.3.2)

---
updated-dependencies:
- dependency-name: markdown-it
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-13 15:02:28 +08:00
nemo-shen
9919e8b2cf
fix(Calendar): fix timezone (#4742)
* fix(Calendar): fix timezone

* test(Calendar): update demo snap
2022-01-12 21:19:33 +08:00
nemo-shen
83c90c4624
fix(NoticeBar): fix init translateX (#4746) 2022-01-12 16:52:52 +08:00
nemo-shen
0b0cca10b1 docs(changelog): 1.10.2 2022-01-11 23:32:22 +08:00
nemo-shen
2ae1938b46 release: 1.10.2 2022-01-11 23:27:42 +08:00
nemo-shen
d82bf5278a build: compile 1.10.2 2022-01-11 23:27:38 +08:00
dependabot[bot]
06e1f066a0
build(deps): bump copy-props from 2.0.4 to 2.0.5 (#4743)
Bumps [copy-props](https://github.com/gulpjs/copy-props) from 2.0.4 to 2.0.5.
- [Release notes](https://github.com/gulpjs/copy-props/releases)
- [Changelog](https://github.com/gulpjs/copy-props/blob/master/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/copy-props/compare/2.0.4...2.0.5)

---
updated-dependencies:
- dependency-name: copy-props
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-11 09:16:34 +08:00
nemo-shen
a8d6c351af
fix(build): fix dts (#4741) 2022-01-11 09:14:28 +08:00
nemo-shen
639527add9
Merge pull request #4739 from yangbinji/patch-1
fix(ShareSheet): the <button> should wrap the text
2022-01-11 00:51:31 +08:00
yangbinji
01795cacf6
fix(ShareSheet): the <button> should wrap the text
ShareSheet 分享面板 <button open-type="share"> 时没包围文本,导致点击到文本时弹框关闭但没触发用户转发
2022-01-10 13:13:01 +08:00
nemo-shen
48d22b018a
fix(Calendar): fix row-height style error (#4733)
* fix(Calendar): fix row-height style error

* test(Calendar): update test
2022-01-10 10:32:42 +08:00
nemo-shen
fbef9bd81f chore: restore dashboard 2022-01-04 23:44:59 +08:00
nemo-shen
1fd4f61400 docs(changelog): v1.10.1 2022-01-04 23:24:58 +08:00
567 changed files with 13499 additions and 8653 deletions

View File

@ -1,3 +1,3 @@
你好,请使用下面的链接创建 issue 以帮助我们更快的排查问题,不规范的 issue 会被关闭,感谢配合。
http://vant-contrib.gitee.io/vant-issue-generater?repo=VantWeapp
http://vant-ui.github.io/vant-issue-generater?repo=VantWeapp

View File

@ -1,3 +0,0 @@
你好,请使用下面的链接创建 issue 以帮助我们更快的排查问题,不规范的 issue 会被关闭,感谢配合。
http://vant-contrib.gitee.io/vant-issue-generater?repo=VantWeapp

1
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@ -0,0 +1 @@
blank_issues_enabled: false

View File

@ -0,0 +1,56 @@
name: 我要反馈 Vant Weapp 的 Bug
description: 通过标准模板进行 Bug 反馈
title: "[Bug Report] 请在此填写标题"
labels: ["bug: need confirm"]
body:
- type: markdown
attributes:
value: |
在提交 Bug 报告前,请注意:
- 确认你的问题无法通过官方文档得到解决。
- 确认你搜索过 [历史 issue](https://github.com/youzan/vant-weapp/issues),并且没有发现同样的问题。
- 如果不是反馈 Bug请到 [Discussions 讨论区](https://github.com/youzan/vant-weapp/discussions) 发帖。
- type: textarea
id: reproduce
attributes:
label: 重现链接
description: 请提供一个尽可能简单的微信小程序代码片段协助我们排查,这可以更快的帮助我们定位问题,解决 issue。
validations:
required: true
- type: input
id: version
attributes:
label: Vant Weapp 版本
description: 你正在使用的 Vant Weapp 版本是多少?(请填写 node_modules/@vant/weapp/package.json 里实际安装的版本)
placeholder: 比如 1.10.5
validations:
required: true
- type: textarea
id: description
attributes:
label: 描述一下你遇到的问题。
placeholder: 比如:弹窗无法展示、日历组件报错
validations:
required: true
- type: textarea
id: reproduce-steps
attributes:
label: 重现步骤
description: 请提供一个最简单的操作步骤,方便我们快速重现问题。
placeholder: |
比如:
1. 点击按钮
2. 弹窗无法展示
validations:
required: true
- type: input
id: browsers
attributes:
label: 设备/浏览器
description: 在哪些设备/浏览器上能重现这个问题?

View File

@ -0,0 +1,33 @@
name: 我想要一个 Vant Weapp 的新功能
description: 通过标准模板描述一下你的功能需求。
title: "[Feature Request] 请在此填写标题"
labels: ["feature: need confirm"]
body:
- type: markdown
attributes:
value: |
在提交功能需求前,请注意:
- 确认这是一个通用功能,并且无法通过现有的 API 或 Slot 实现。
- 确认你搜索过 [历史 issue](https://github.com/youzan/vant-weapp/issues),并且没有发现同样的需求。
- 可以先到 [Discussions 讨论区](https://github.com/youzan/vant-weapp/discussions) 发帖,讨论一下需求是否合理。
- type: textarea
id: description
attributes:
label: 这个功能解决了什么问题?
description: 请尽可能详细地说明这个功能的使用场景。
validations:
required: true
- type: textarea
id: api
attributes:
label: 你期望的 API 是什么样子的?
description: 描述一下这个新功能的 API并提供一些代码示例。
placeholder: |
```xml
<van-button some-prop="xxx" />
```
validations:
required: true

10
.github/pr-labeler.yml vendored Normal file
View File

@ -0,0 +1,10 @@
"change: feat":
- "/^(feat|types|style)/"
"change: fix":
- "/^fix/"
"change: perf":
- "/^perf/"
"change: breaking":
- "/^breaking change/"
"change: docs":
- "/^docs/"

View File

@ -4,7 +4,10 @@ on:
push:
branches: [dev]
paths:
- 'docs/**'
- 'docs/**/*.md'
- 'packages/**/*.md'
workflow_dispatch:
jobs:
build-and-deploy:
@ -21,9 +24,16 @@ jobs:
- name: Build Site
run: npx --no-install vant-cli build-site
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.1
- name: Deploy for GitHub 🚀
uses: JamesIves/github-pages-deploy-action@v4.6.0
with:
branch: gh-pages
folder: site-dist
clean-exclude: 0.x
token: ${{ secrets.VANT_UI_TOKEN }}
repository-name: vant-ui/vant-ui.github.io
target-folder: vant-weapp
# enable single-commit to reduce the repo size
single-commit: true
clean: true
clean-exclude: |
0.x

20
.github/workflows/pr-label.yaml vendored Normal file
View File

@ -0,0 +1,20 @@
name: PR Labeler
on:
pull_request_target:
types:
- opened
- edited
jobs:
change-labeling:
name: Labeling for changes
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@v3.4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/pr-labeler.yml
enable-versioned-regex: 0
include-title: 1
sync-labels: 1

View File

@ -11,13 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
uses: actions/checkout@v4
- name: Create Release for Tag
id: release_tag
uses: yyx990803/release-tag@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: ncipollo/release-action@v1
with:
tag_name: ${{ github.ref }}
generateReleaseNotes: "true"
body: |
更新内容参见 [CHANGELOG](https://vant-contrib.gitee.io/vant-weapp/#/changelog)
> 请访问 [更新日志](https://vant-ui.github.io/vant-weapp/#/changelog) 了解所有更新

View File

@ -1,20 +0,0 @@
name: Sync to Gitee
on:
push:
branches: [dev, gh-pages]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Sync to Gitee
uses: wearerequired/git-mirror-action@master
env:
# 注意在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
with:
# 注意替换为你的 GitHub 源仓库地址
source-repo: git@github.com:youzan/vant-weapp.git
# 注意替换为你的 Gitee 目标仓库地址
destination-repo: git@gitee.com:vant-contrib/vant-weapp.git

View File

@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '14.x'
node-version: '18.x'
- name: Install dependencies
uses: bahmutov/npm-install@v1
@ -20,10 +20,15 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: szenius/set-timezone@v1.0
with:
timezoneLinux: "Asia/Shanghai"
timezoneMacos: "Asia/Shanghai"
timezoneWindows: "China Standard Time"
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '14.x'
node-version: '18.x'
- name: Install dependencies
uses: bahmutov/npm-install@v1
@ -42,7 +47,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '14.x'
node-version: '18.x'
- name: Install dependencies
uses: bahmutov/npm-install@v1

1
.gitignore vendored
View File

@ -11,3 +11,4 @@ example/dist
changelog.generated.md
package-lock.json
build/private.wx1c01b35002d3ba14.key
project.private.config.json

1
.npmrc Normal file
View File

@ -0,0 +1 @@
registry=https://registry.npmjs.org

View File

@ -11,24 +11,24 @@
</p>
<p align="center">
🔥 <a href="https://vant-contrib.gitee.io/vant-weapp">文档网站(国内)</a>
🔥 <a href="https://vant.pro/vant-weapp/">文档网站(国内)</a>
&nbsp;
🌈 <a href="https://youzan.github.io/vant-weapp">文档网站GitHub</a>
🔥 <a href="https://vant-ui.github.io/vant-weapp/">文档网站GitHub</a>
&nbsp;
🚀 <a href="https://github.com/youzan/vant" target="_blank">Vue 版</a>
🚀 <a href="https://github.com/vant-ui/vant" target="_blank">Vue 版</a>
</p>
---
### 介绍
Vant 是**有赞前端团队**开源的移动端组件库,于 2017 年开源,已持续维护 4 年时间。Vant 对内承载了有赞所有核心业务,对外服务十多万开发者,是业界主流的移动端组件库之一
Vant 是一个**轻量、可靠的移动端组件库**,于 2017 年开源
目前 Vant 官方提供了 [Vue 2 版本](https://vant-contrib.gitee.io/vant)、[Vue 3 版本](https://vant-contrib.gitee.io/vant/v3)和[微信小程序版本](http://vant-contrib.gitee.io/vant-weapp),并由社区团队维护 [React 版本](https://github.com/mxdi9i7/vant-react)和[支付宝小程序版本](https://github.com/ant-move/Vant-Aliapp)。
目前 Vant 官方提供了 [Vue 2 版本](https://vant-ui.github.io/vant/v2/)、[Vue 3 版本](https://vant-ui.github.io/vant/)和[微信小程序版本](http://vant-ui.github.io/vant-weapp/),并由社区团队维护 [React 版本](https://github.com/3lang3/react-vant)和[支付宝小程序版本](https://github.com/ant-move/Vant-Aliapp)。
## 预览
扫描下方小程序二维码,体验组件库示例:
扫描下方小程序二维码,体验组件库示例。注意因微信审核机制限制,目前示例小程序不是最新版本,可以 clone 代码到本地开发工具预览
<img src="https://img.yzcdn.cn/vant-weapp/qrcode-201808101114.jpg" width="200" height="200" style="margin-top: 10px;" >
@ -99,18 +99,24 @@ Vant Weapp 最低支持到小程序基础库 2.6.5 版本。
## 链接
- [更新日志](https://github.com/youzan/vant-weapp/blob/dev/docs/markdown/changelog.md)
- [文档网站GitHub](https://vant-ui.github.io/vant-weapp/)
- [文档网站(国内)](https://vant.pro/vant-weapp/)
- [意见反馈](https://github.com/youzan/vant-weapp/issues)
- [加入我们](https://job.youzan.com)
- [Vant Vue 版](https://github.com/youzan/vant)
- [设计资源](https://vant-ui.github.io/vant/#/zh-CN/design)
- [更新日志](https://vant-ui.github.io/vant-weapp/#/changelog)
- [官方示例](https://github.com/vant-ui/vant-demo)
## 核心团队
以下是 Vant 和 Vant Weapp 的核心贡献者们:
| [![chenjiahan](https://avatars.githubusercontent.com/u/7237365?s=80&v=4)](https://github.com/chenjiahan/) | [![cookfront](https://avatars.githubusercontent.com/u/4829465?s=80&v=4)](https://github.com/cookfront/) | [![w91](https://avatars.githubusercontent.com/u/2599455?s=80&v=4)](https://github.com/w91/) | [![pangxie1991](https://avatars.githubusercontent.com/u/5961240?s=80&v=4)](https://github.com/pangxie1991/) | [![rex-zsd](https://avatars.githubusercontent.com/u/8767877?s=80&v=4)](https://github.com/rex-zsd/) | [![nemo-shen](https://avatars.githubusercontent.com/u/13480805?s=80&v=4)](https://github.com/nemo-shen/) | [![Lindysen](https://avatars.githubusercontent.com/u/33708359?s=80&v=4)](https://github.com/Lindysen/) | [![nemo-shen](https://avatars.githubusercontent.com/u/16181940?s=80&v=4)](https://github.com/JakeLaoyu/) |
| :-: | :-: | :-: | :-: | :-: | :-: | :-: | :-: |
| [chenjiahan](https://github.com/chenjiahan/) | [cookfront](https://github.com/cookfront/) | [wangnaiyi](https://github.com/w91/) | [pangxie](https://github.com/pangxie1991/) | [rex-zsd](https://github.com/rex-zsd/) | [nemo-shen](https://github.com/nemo-shen/) | [Lindysen](https://github.com/Lindysen/) | [JakeLaoyu](https://github.com/JakeLaoyu/) |
| [![chenjiahan](https://avatars.githubusercontent.com/u/7237365?s=80&v=4)](https://github.com/chenjiahan/) | [![cookfront](https://avatars.githubusercontent.com/u/4829465?s=80&v=4)](https://github.com/cookfront/) | [![w91](https://avatars.githubusercontent.com/u/2599455?s=80&v=4)](https://github.com/w91/) | [![pangxie1991](https://avatars.githubusercontent.com/u/5961240?s=80&v=4)](https://github.com/pangxie1991/) | [![rex-zsd](https://avatars.githubusercontent.com/u/8767877?s=80&v=4)](https://github.com/rex-zsd/) | [![nemo-shen](https://avatars.githubusercontent.com/u/13480805?s=80&v=4)](https://github.com/nemo-shen/) |
| :-: | :-: | :-: | :-: | :-: | :-: |
| [chenjiahan](https://github.com/chenjiahan/) | [cookfront](https://github.com/cookfront/) | [wangnaiyi](https://github.com/w91/) | [pangxie](https://github.com/pangxie1991/) | [rex-zsd](https://github.com/rex-zsd/) | [nemo-shen](https://github.com/nemo-shen/) |
| [![Lindysen](https://avatars.githubusercontent.com/u/33708359?s=80&v=4)](https://github.com/Lindysen/) | [![JakeLaoyu](https://avatars.githubusercontent.com/u/16181940?s=80&v=4)](https://github.com/JakeLaoyu/) | [![landluck](https://avatars.githubusercontent.com/u/27060081?s=80&v=4)](https://github.com/landluck/) | [![wjw-gavin](https://avatars.githubusercontent.com/u/19986739?s=80&v=4)](https://github.com/wjw-gavin/) | [![inottn](https://avatars.githubusercontent.com/u/18509404?s=80&v=4)](https://github.com/inottn/) | [![zhousg](https://avatars.githubusercontent.com/u/15833290?s=80&v=4)](https://github.com/zhousg/) |
| :-: | :-: | :-: | :-: | :-: | :-: |
| [Lindysen](https://github.com/Lindysen/) | [JakeLaoyu](https://github.com/JakeLaoyu/) | [landluck](https://github.com/landluck/) | [wjw-gavin](https://github.com/wjw-gavin/) | [inottn](https://github.com/inottn/) | [zhousg](https://github.com/zhousg/) |
## 贡献者们

View File

@ -7,6 +7,7 @@ const rename = require('gulp-rename');
const postcss = require('gulp-postcss');
const ts = require('gulp-typescript');
const util = require('util');
const merge2 = require('merge2');
const exec = util.promisify(require('child_process').exec);
const src = path.resolve(__dirname, '../packages');
@ -54,26 +55,31 @@ const lessCompiler = (dist) =>
const tsCompiler = (dist, config) =>
function compileTs() {
const tsProject = ts.createProject(config);
return tsProject
.src()
.pipe(tsProject())
.js.pipe(
insert.transform((contents, file) => {
if (dist === exampleDistDir && file.path.includes('/demo/')) {
const iconConfig = '@vant/icons/src/config';
contents = contents.replace(
iconConfig,
path.relative(
path.dirname(file.path),
`${exampleDistDir}/${iconConfig}`
)
);
}
return contents;
})
)
.pipe(gulp.dest(dist));
const tsProject = ts.createProject(config, {
declaration: true,
});
const tsResult = tsProject.src().pipe(tsProject());
return merge2(
tsResult.js
.pipe(
insert.transform((contents, file) => {
if (dist === exampleDistDir && file.path.includes(`${path.sep}demo${path.sep}`)) {
const iconConfig = '@vant/icons/src/config';
contents = contents.replace(
iconConfig,
path.relative(
path.dirname(file.path),
`${exampleDistDir}/${iconConfig}`
).replace(/\\/g, '/')
);
}
return contents;
})
)
.pipe(gulp.dest(dist)),
tsResult.dts.pipe(gulp.dest(dist))
);
};
const copier = (dist, ext) =>
@ -86,7 +92,7 @@ const copier = (dist, ext) =>
.src(srcPath)
.pipe(
insert.transform((contents, file) => {
if (ext === 'json' && file.path.includes('/demo/')) {
if (ext === 'json' && file.path.includes(`${path.sep}demo${path.sep}`) ) {
contents = contents.replace('/example', '');
}
return contents;

View File

@ -1,15 +0,0 @@
const path = require('path');
const { dev } = require('@vant/cli');
const { exec } = require('child_process');
const gulpConfig = path.resolve(__dirname, './compiler.js');
async function run() {
await dev();
const p = exec(`npx gulp -f ${gulpConfig} buildExample --color`);
p.stdout.on('data', (stdout) => console.info(stdout));
p.stderr.on('data', (stderr) => console.info(stderr));
}
run();

17
build/dev.mjs Normal file
View File

@ -0,0 +1,17 @@
import { dirname, resolve } from 'path';
import { fileURLToPath } from 'url';
import { dev } from '@vant/cli/lib/commands/dev.js';
import { exec } from 'child_process';
const __dirname = dirname(fileURLToPath(import.meta.url));
const gulpConfig = resolve(__dirname, './compiler.js');
async function run() {
await dev();
const p = exec(`npx gulp -f ${gulpConfig} buildExample --color`);
p.stdout.on('data', (stdout) => console.info(stdout));
p.stderr.on('data', (stderr) => console.info(stderr));
}
run();

View File

@ -28,7 +28,4 @@ then
else
npm publish
fi
# changelog
vant-cli changelog
fi

1
dist/action-sheet/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

View File

@ -1,6 +1,7 @@
import { VantComponent } from '../common/component';
import { button } from '../mixins/button';
VantComponent({
classes: ['list-class'],
mixins: [button],
props: {
show: Boolean,
@ -35,6 +36,10 @@ VantComponent({
type: Boolean,
value: true,
},
rootPortal: {
type: Boolean,
value: false,
},
},
methods: {
onSelect(event) {

View File

@ -6,9 +6,10 @@
round="{{ round }}"
z-index="{{ zIndex }}"
overlay="{{ overlay }}"
custom-class="van-action-sheet"
custom-class="van-action-sheet custom-class"
safe-area-inset-bottom="{{ safeAreaInsetBottom }}"
close-on-click-overlay="{{ closeOnClickOverlay }}"
root-portal="{{ rootPortal }}"
bind:close="onClickOverlay"
>
<view wx:if="{{ title }}" class="van-action-sheet__header">
@ -22,7 +23,7 @@
<view wx:if="{{ description }}" class="van-action-sheet__description van-hairline--bottom">
{{ description }}
</view>
<view wx:if="{{ actions && actions.length }}">
<view wx:if="{{ actions && actions.length }}" class="list-class">
<!-- button外包一层view防止actions动态变化导致渲染时button被打散 -->
<button
wx:for="{{ actions }}"

1
dist/area/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

5
dist/area/index.js vendored
View File

@ -4,7 +4,10 @@ import { requestAnimationFrame } from '../common/utils';
const EMPTY_CODE = '000000';
VantComponent({
classes: ['active-class', 'toolbar-class', 'column-class'],
props: Object.assign(Object.assign({}, pickerProps), { value: {
props: Object.assign(Object.assign({}, pickerProps), { showToolbar: {
type: Boolean,
value: true,
}, value: {
type: String,
observer(value) {
this.code = value;

View File

@ -5,7 +5,7 @@
active-class="active-class"
toolbar-class="toolbar-class"
column-class="column-class"
show-toolbar
show-toolbar="{{ showToolbar }}"
value-key="name"
title="{{ title }}"
loading="{{ loading }}"

1
dist/button/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

View File

@ -2,10 +2,10 @@
<wxs src="./index.wxs" module="computed" />
<button
id="{{ id }}"
id="{{ id || buttonId }}"
data-detail="{{ dataset }}"
class="custom-class {{ utils.bem('button', [type, size, { block, round, plain, square, loading, disabled, hairline, unclickable: disabled || loading }]) }} {{ hairline ? 'van-hairline--surround' : '' }}"
hover-class="van-button--active hover-class"
hover-class="{{ disabled || loading ? '' : 'van-button--active hover-class'}}"
lang="{{ lang }}"
form-type="{{ formType }}"
style="{{ computed.rootStyle({ plain, color, customStyle }) }}"
@ -22,9 +22,12 @@
bindgetuserinfo="onGetUserInfo"
bindcontact="onContact"
bindgetphonenumber="onGetPhoneNumber"
bindgetrealtimephonenumber="onGetRealTimePhoneNumber"
bindagreeprivacyauthorization="onAgreePrivacyAuthorization"
binderror="onError"
bindlaunchapp="onLaunchApp"
bindopensetting="onOpenSetting"
bindchooseavatar="onChooseAvatar"
>
<block wx:if="{{ loading }}">
<van-loading

View File

@ -1,3 +1,5 @@
<wxs src="./index.wxs" module="computed" />
<wxs src="../wxs/utils.wxs" module="utils" />
<view class="van-calendar">
<header
title="{{ title }}"
@ -54,12 +56,12 @@
type="danger"
color="{{ color }}"
custom-class="van-calendar__confirm"
disabled="{{ computed.getButtonDisabled(type, currentDate) }}"
disabled="{{ computed.getButtonDisabled(type, currentDate, minRange) }}"
nativeType="text"
bind:click="onConfirm"
>
{{
computed.getButtonDisabled(type, currentDate)
computed.getButtonDisabled(type, currentDate, minRange)
? confirmDisabledText
: confirmText
}}

View File

@ -0,0 +1 @@
export {};

View File

@ -0,0 +1,6 @@
export interface Day {
date: Date;
type: string;
text: number;
bottomInfo?: string;
}

View File

@ -19,7 +19,7 @@
data-index="{{ index }}"
bindtap="onClick"
>
<view wx:if="{{ item.type === 'selected' }}" class="van-calendar__selected-day" style="background: {{ color }}">
<view wx:if="{{ item.type === 'selected' }}" class="van-calendar__selected-day" style="width: {{ rowHeight }}px; height: {{ rowHeight }}px; background: {{ color }}">
<view wx:if="{{ item.topInfo }}" class="van-calendar__top-info">{{ item.topInfo }}</view>
{{ item.text }}
<view wx:if="{{ item.bottomInfo }}" class="van-calendar__bottom-info">

1
dist/calendar/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

View File

@ -40,6 +40,7 @@ VantComponent({
},
defaultDate: {
type: null,
value: getToday().getTime(),
observer(val) {
this.setData({ currentDate: val });
this.scrollIntoView();
@ -103,17 +104,33 @@ VantComponent({
type: null,
value: null,
},
minRange: {
type: Number,
value: 1,
},
firstDayOfWeek: {
type: Number,
value: 0,
},
readonly: Boolean,
rootPortal: {
type: Boolean,
value: false,
},
},
data: {
subtitle: '',
currentDate: null,
scrollIntoView: '',
},
watch: {
minDate() {
this.initRect();
},
maxDate() {
this.initRect();
},
},
created() {
this.setData({
currentDate: this.getInitialDate(this.data.defaultDate),
@ -127,7 +144,7 @@ VantComponent({
},
methods: {
reset() {
this.setData({ currentDate: this.getInitialDate() });
this.setData({ currentDate: this.getInitialDate(this.data.defaultDate) });
this.scrollIntoView();
},
initRect() {
@ -159,15 +176,19 @@ VantComponent({
return date;
},
getInitialDate(defaultDate = null) {
const { type, minDate, maxDate } = this.data;
const { type, minDate, maxDate, allowSameDay } = this.data;
if (!defaultDate)
return [];
const now = getToday().getTime();
if (type === 'range') {
if (!Array.isArray(defaultDate)) {
defaultDate = [];
}
const [startDay, endDay] = defaultDate || [];
const start = this.limitDateRange(startDay || now, minDate, getPrevDay(new Date(maxDate)).getTime());
const end = this.limitDateRange(endDay || now, getNextDay(new Date(minDate)).getTime());
const startDate = getTime(startDay || now);
const start = this.limitDateRange(startDate, minDate, allowSameDay ? startDate : getPrevDay(new Date(maxDate)).getTime());
const date = getTime(endDay || now);
const end = this.limitDateRange(date, allowSameDay ? date : getNextDay(new Date(minDate)).getTime());
return [start, end];
}
if (type === 'multiple') {
@ -184,6 +205,8 @@ VantComponent({
scrollIntoView() {
requestAnimationFrame(() => {
const { currentDate, type, show, poppable, minDate, maxDate } = this.data;
if (!currentDate)
return;
// @ts-ignore
const targetDate = type === 'single' ? currentDate : currentDate[0];
const displayed = show || !poppable;
@ -240,7 +263,7 @@ VantComponent({
this.select([date, null]);
}
else if (allowSameDay) {
this.select([date, date]);
this.select([date, date], true);
}
}
else {

View File

@ -12,6 +12,8 @@
position="{{ position }}"
closeable="{{ showTitle || showSubtitle }}"
close-on-click-overlay="{{ closeOnClickOverlay }}"
safe-area-inset-bottom="{{ safeAreaInsetBottom }}"
root-portal="{{ rootPortal }}"
bind:enter="onOpen"
bind:close="onClose"
bind:after-enter="onOpened"

View File

@ -6,7 +6,6 @@ function getMonths(minDate, maxDate) {
var cursor = getDate(minDate);
cursor.setDate(1);
cursor.setMinutes(cursor.getMinutes() - cursor.getTimezoneOffset());
do {
months.push(cursor.getTime());
@ -16,7 +15,7 @@ function getMonths(minDate, maxDate) {
return months;
}
function getButtonDisabled(type, currentDate) {
function getButtonDisabled(type, currentDate, minRange) {
if (currentDate == null) {
return true;
}
@ -26,7 +25,7 @@ function getButtonDisabled(type, currentDate) {
}
if (type === 'multiple') {
return !currentDate.length;
return currentDate.length < minRange;
}
return !currentDate;

View File

@ -1 +1 @@
@import '../common/index.wxss';.van-calendar{background-color:var(--calendar-background-color,#fff);display:flex;flex-direction:column;height:var(--calendar-height,100%)}.van-calendar__close-icon{top:11px}.van-calendar__popup--bottom,.van-calendar__popup--top{height:var(--calendar-popup-height,80%)}.van-calendar__popup--left,.van-calendar__popup--right{height:100%}.van-calendar__body{-webkit-overflow-scrolling:touch;flex:1;overflow:auto}.van-calendar__footer{flex-shrink:0;padding:0 var(--padding-md,16px)}.van-calendar__footer--safe-area-inset-bottom{padding-bottom:env(safe-area-inset-bottom)}.van-calendar__footer+.van-calendar__footer,.van-calendar__footer:empty{display:none}.van-calendar__footer:empty+.van-calendar__footer{display:block!important}.van-calendar__confirm{height:var(--calendar-confirm-button-height,36px)!important;line-height:var(--calendar-confirm-button-line-height,34px)!important;margin:var(--calendar-confirm-button-margin,7px 0)!important}
@import '../common/index.wxss';.van-calendar{background-color:var(--calendar-background-color,#fff);display:flex;flex-direction:column;height:var(--calendar-height,100%)}.van-calendar__close-icon{top:11px}.van-calendar__popup--bottom,.van-calendar__popup--top{height:var(--calendar-popup-height,90%)}.van-calendar__popup--left,.van-calendar__popup--right{height:100%}.van-calendar__body{-webkit-overflow-scrolling:touch;flex:1;overflow:auto}.van-calendar__footer{flex-shrink:0;padding:0 var(--padding-md,16px)}.van-calendar__footer--safe-area-inset-bottom{padding-bottom:env(safe-area-inset-bottom)}.van-calendar__footer+.van-calendar__footer,.van-calendar__footer:empty{display:none}.van-calendar__footer:empty+.van-calendar__footer{display:block!important}.van-calendar__confirm{height:var(--calendar-confirm-button-height,36px)!important;line-height:var(--calendar-confirm-button-line-height,34px)!important;margin:var(--calendar-confirm-button-margin,7px 0)!important}

12
dist/calendar/utils.d.ts vendored Normal file
View File

@ -0,0 +1,12 @@
export declare const ROW_HEIGHT = 64;
export declare function formatMonthTitle(date: Date): string;
export declare function compareMonth(date1: Date | number, date2: Date | number): 0 | 1 | -1;
export declare function compareDay(day1: Date | number, day2: Date | number): 0 | 1 | -1;
export declare function getDayByOffset(date: Date, offset: number): Date;
export declare function getPrevDay(date: Date): Date;
export declare function getNextDay(date: Date): Date;
export declare function getToday(): Date;
export declare function calcDateNum(date: [Date, Date]): number;
export declare function copyDates(dates: Date | Date[]): Date | Date[];
export declare function getMonthEndDay(year: number, month: number): number;
export declare function getMonths(minDate: number, maxDate: number): number[];

1
dist/card/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

1
dist/cascader/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

210
dist/cascader/index.js vendored Normal file
View File

@ -0,0 +1,210 @@
import { VantComponent } from '../common/component';
var FieldName;
(function (FieldName) {
FieldName["TEXT"] = "text";
FieldName["VALUE"] = "value";
FieldName["CHILDREN"] = "children";
})(FieldName || (FieldName = {}));
const defaultFieldNames = {
text: FieldName.TEXT,
value: FieldName.VALUE,
children: FieldName.CHILDREN,
};
VantComponent({
props: {
title: String,
value: {
type: String,
},
placeholder: {
type: String,
value: '请选择',
},
activeColor: {
type: String,
value: '#1989fa',
},
options: {
type: Array,
value: [],
},
swipeable: {
type: Boolean,
value: false,
},
closeable: {
type: Boolean,
value: true,
},
showHeader: {
type: Boolean,
value: true,
},
closeIcon: {
type: String,
value: 'cross',
},
fieldNames: {
type: Object,
value: defaultFieldNames,
observer: 'updateFieldNames',
},
useTitleSlot: Boolean,
},
data: {
tabs: [],
activeTab: 0,
textKey: FieldName.TEXT,
valueKey: FieldName.VALUE,
childrenKey: FieldName.CHILDREN,
innerValue: '',
},
watch: {
options() {
this.updateTabs();
},
value(newVal) {
this.updateValue(newVal);
},
},
created() {
this.updateTabs();
},
methods: {
updateValue(val) {
if (val !== undefined) {
const values = this.data.tabs.map((tab) => tab.selected && tab.selected[this.data.valueKey]);
if (values.indexOf(val) > -1) {
return;
}
}
this.innerValue = val;
this.updateTabs();
},
updateFieldNames() {
const { text = 'text', value = 'value', children = 'children', } = this.data.fieldNames || defaultFieldNames;
this.setData({
textKey: text,
valueKey: value,
childrenKey: children,
});
},
getSelectedOptionsByValue(options, value) {
for (let i = 0; i < options.length; i++) {
const option = options[i];
if (option[this.data.valueKey] === value) {
return [option];
}
if (option[this.data.childrenKey]) {
const selectedOptions = this.getSelectedOptionsByValue(option[this.data.childrenKey], value);
if (selectedOptions) {
return [option, ...selectedOptions];
}
}
}
},
updateTabs() {
const { options } = this.data;
const { innerValue } = this;
if (!options.length) {
return;
}
if (innerValue !== undefined) {
const selectedOptions = this.getSelectedOptionsByValue(options, innerValue);
if (selectedOptions) {
let optionsCursor = options;
const tabs = selectedOptions.map((option) => {
const tab = {
options: optionsCursor,
selected: option,
};
const next = optionsCursor.find((item) => item[this.data.valueKey] === option[this.data.valueKey]);
if (next) {
optionsCursor = next[this.data.childrenKey];
}
return tab;
});
if (optionsCursor) {
tabs.push({
options: optionsCursor,
selected: null,
});
}
this.setData({
tabs,
});
wx.nextTick(() => {
this.setData({
activeTab: tabs.length - 1,
});
});
return;
}
}
this.setData({
tabs: [
{
options,
selected: null,
},
],
activeTab: 0,
});
},
onClose() {
this.$emit('close');
},
onClickTab(e) {
const { index: tabIndex, title } = e.detail;
this.$emit('click-tab', { title, tabIndex });
this.setData({
activeTab: tabIndex,
});
},
// 选中
onSelect(e) {
const { option, tabIndex } = e.currentTarget.dataset;
if (option && option.disabled) {
return;
}
const { valueKey, childrenKey } = this.data;
let { tabs } = this.data;
tabs[tabIndex].selected = option;
if (tabs.length > tabIndex + 1) {
tabs = tabs.slice(0, tabIndex + 1);
}
if (option[childrenKey]) {
const nextTab = {
options: option[childrenKey],
selected: null,
};
if (tabs[tabIndex + 1]) {
tabs[tabIndex + 1] = nextTab;
}
else {
tabs.push(nextTab);
}
wx.nextTick(() => {
this.setData({
activeTab: tabIndex + 1,
});
});
}
this.setData({
tabs,
});
const selectedOptions = tabs.map((tab) => tab.selected).filter(Boolean);
const value = option[valueKey];
const params = {
value,
tabIndex,
selectedOptions,
};
this.innerValue = value;
this.$emit('change', params);
if (!option[childrenKey]) {
this.$emit('finish', params);
}
},
},
});

8
dist/cascader/index.json vendored Normal file
View File

@ -0,0 +1,8 @@
{
"component": true,
"usingComponents": {
"van-icon": "../icon/index",
"van-tab": "../tab/index",
"van-tabs": "../tabs/index"
}
}

54
dist/cascader/index.wxml vendored Normal file
View File

@ -0,0 +1,54 @@
<wxs src="./index.wxs" module="utils" />
<view wx:if="{{ showHeader }}" class="van-cascader__header">
<slot name="title" wx:if="{{ useTitleSlot }}"></slot>
<text class="van-cascader__title" wx:else>{{ title }}</text>
<van-icon
wx:if="{{ closeable }}"
name="{{ closeIcon }}"
class="van-cascader__close-icon"
bind:tap="onClose"
/>
</view>
<van-tabs
active="{{ activeTab }}"
custom-class="van-cascader__tabs"
wrap-class="van-cascader__tabs-wrap"
tab-class="van-cascader__tab"
color="{{ activeColor }}"
border="{{ false }}"
swipeable="{{ swipeable }}"
bind:click="onClickTab"
>
<van-tab
wx:for="{{ tabs }}"
wx:for-item="tab"
wx:for-index="tabIndex"
wx:key="tabIndex"
title="{{ tab.selected ? tab.selected[textKey] : placeholder }}"
style="width: 100%;"
title-style="{{ !tab.selected ? 'color: #969799;font-weight:normal;' : '' }}"
>
<!-- 暂不支持 -->
<!-- <slot name="options-top"></slot> -->
<view class="van-cascader__options">
<view
wx:for="{{ tab.options }}"
wx:for-item="option"
wx:key="index"
class="{{ option.className }} {{ utils.optionClass(tab, valueKey, option) }}"
style="{{ utils.optionStyle({ tab, valueKey, option, activeColor }) }}"
data-option="{{ option }}"
data-tab-index="{{ tabIndex }}"
bind:tap="onSelect"
>
<text>{{ option[textKey] }}</text>
<van-icon wx:if="{{ utils.isSelected(tab, valueKey, option) }}" name="success" size="18" />
</view>
</view>
<!-- 暂不支持 -->
<!-- <slot name="options-bottom"></slot> -->
</van-tab>
</van-tabs>

24
dist/cascader/index.wxs vendored Normal file
View File

@ -0,0 +1,24 @@
var utils = require('../wxs/utils.wxs');
var style = require('../wxs/style.wxs');
function isSelected(tab, valueKey, option) {
return tab.selected && tab.selected[valueKey] === option[valueKey]
}
function optionClass(tab, valueKey, option) {
return utils.bem('cascader__option', { selected: isSelected(tab, valueKey, option), disabled: option.disabled })
}
function optionStyle(data) {
var color = data.option.color || (isSelected(data.tab, data.valueKey, data.option) ? data.activeColor : undefined);
return style({
color
});
}
module.exports = {
isSelected: isSelected,
optionClass: optionClass,
optionStyle: optionStyle,
};

1
dist/cascader/index.wxss vendored Normal file
View File

@ -0,0 +1 @@
@import '../common/index.wxss';.van-cascader__header{align-items:center;display:flex;height:48px;justify-content:space-between;padding:0 16px}.van-cascader__title{font-size:16px;font-weight:600;line-height:20px}.van-cascader__close-icon{color:#c8c9cc;font-size:22px;height:22px}.van-cascader__tabs-wrap{height:48px!important;padding:0 8px}.van-cascader__tab{color:#323233!important;flex:none!important;font-weight:600!important;padding:0 8px!important}.van-cascader__tab--unselected{color:#969799!important;font-weight:400!important}.van-cascader__option{align-items:center;cursor:pointer;display:flex;font-size:14px;justify-content:space-between;line-height:20px;padding:10px 16px}.van-cascader__option:active{background-color:#f2f3f5}.van-cascader__option--selected{color:#1989fa;font-weight:600}.van-cascader__option--disabled{color:#c8c9cc;cursor:not-allowed}.van-cascader__option--disabled:active{background-color:initial}.van-cascader__options{-webkit-overflow-scrolling:touch;box-sizing:border-box;height:384px;overflow-y:auto;padding-top:6px}

1
dist/cell-group/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

1
dist/cell/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

1
dist/checkbox-group/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

1
dist/checkbox/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

4
dist/circle/canvas.d.ts vendored Normal file
View File

@ -0,0 +1,4 @@
/// <reference types="miniprogram-api-typings" />
type CanvasContext = WechatMiniprogram.CanvasContext;
export declare function adaptor(ctx: CanvasContext & Record<string, unknown>): CanvasContext;
export {};

1
dist/circle/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

View File

@ -93,6 +93,8 @@ VantComponent({
const { color, size } = this.data;
if (isObj(color)) {
return this.getContext().then((context) => {
if (!context)
return;
const LinearColor = context.createLinearGradient(size, 0, 0, 0);
Object.keys(color)
.sort((a, b) => parseFloat(a) - parseFloat(b))
@ -134,6 +136,8 @@ VantComponent({
drawCircle(currentValue) {
const { size } = this.data;
this.getContext().then((context) => {
if (!context)
return;
context.clearRect(0, 0, size, size);
this.renderLayerCircle(context);
const formatValue = format(currentValue);

1
dist/col/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

2
dist/collapse-item/animate.d.ts vendored Normal file
View File

@ -0,0 +1,2 @@
/// <reference types="miniprogram-api-typings" />
export declare function setContentAnimate(context: WechatMiniprogram.Component.TrivialInstance, expanded: boolean, mounted: boolean): void;

1
dist/collapse-item/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

View File

@ -5,6 +5,7 @@ VantComponent({
classes: ['title-class', 'content-class'],
relation: useParent('collapse'),
props: {
size: String,
name: null,
title: null,
value: null,

View File

@ -2,6 +2,7 @@
<view class="van-collapse-item custom-class {{ index !== 0 ? 'van-hairline--top' : '' }}">
<van-cell
size="{{ size }}"
title="{{ title }}"
title-class="title-class"
icon="{{ icon }}"

1
dist/collapse/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

7
dist/common/color.d.ts vendored Normal file
View File

@ -0,0 +1,7 @@
export declare const RED = "#ee0a24";
export declare const BLUE = "#1989fa";
export declare const WHITE = "#fff";
export declare const GREEN = "#07c160";
export declare const ORANGE = "#ff976a";
export declare const GRAY = "#323233";
export declare const GRAY_DARK = "#969799";

4
dist/common/component.d.ts vendored Normal file
View File

@ -0,0 +1,4 @@
/// <reference types="miniprogram-api-typings" />
import { VantComponentOptions } from 'definitions/index';
declare function VantComponent<Data extends WechatMiniprogram.Component.DataOption, Props extends WechatMiniprogram.Component.PropertyOption, Methods extends WechatMiniprogram.Component.MethodOption>(vantOptions: VantComponentOptions<Data, Props, Methods>): void;
export { VantComponent };

View File

@ -11,6 +11,7 @@ function VantComponent(vantOptions) {
mapKeys(vantOptions, options, {
data: 'data',
props: 'properties',
watch: 'observers',
mixins: 'behaviors',
methods: 'methods',
beforeCreate: 'created',

15
dist/common/relation.d.ts vendored Normal file
View File

@ -0,0 +1,15 @@
/// <reference types="miniprogram-api-typings" />
type TrivialInstance = WechatMiniprogram.Component.TrivialInstance;
export declare function useParent(name: string, onEffect?: (this: TrivialInstance) => void): {
relations: {
[x: string]: WechatMiniprogram.Component.RelationOption;
};
mixin: string;
};
export declare function useChildren(name: string, onEffect?: (this: TrivialInstance, target: TrivialInstance) => void): {
relations: {
[x: string]: WechatMiniprogram.Component.RelationOption;
};
mixin: string;
};
export {};

21
dist/common/utils.d.ts vendored Normal file
View File

@ -0,0 +1,21 @@
/// <reference types="node" />
/// <reference types="miniprogram-api-typings" />
/// <reference types="miniprogram-api-typings" />
/// <reference types="miniprogram-api-typings" />
/// <reference types="miniprogram-api-typings" />
export { isDef } from './validator';
export { getSystemInfoSync } from './version';
export declare function range(num: number, min: number, max: number): number;
export declare function nextTick(cb: (...args: any[]) => void): void;
export declare function addUnit(value?: string | number): string | undefined;
export declare function requestAnimationFrame(cb: () => void): NodeJS.Timeout;
export declare function pickExclude(obj: unknown, keys: string[]): {};
export declare function getRect(context: WechatMiniprogram.Component.TrivialInstance, selector: string): Promise<WechatMiniprogram.BoundingClientRectCallbackResult>;
export declare function getAllRect(context: WechatMiniprogram.Component.TrivialInstance, selector: string): Promise<WechatMiniprogram.BoundingClientRectCallbackResult[]>;
export declare function groupSetData(context: WechatMiniprogram.Component.TrivialInstance, cb: () => void): void;
export declare function toPromise(promiseLike: Promise<unknown> | unknown): Promise<unknown>;
export declare function addNumber(num1: any, num2: any): number;
export declare const clamp: (num: any, min: any, max: any) => number;
export declare function getCurrentPage<T>(): T & WechatMiniprogram.OptionalInterface<WechatMiniprogram.Page.ILifetime> & WechatMiniprogram.Page.InstanceProperties & WechatMiniprogram.Page.InstanceMethods<WechatMiniprogram.IAnyObject> & WechatMiniprogram.Page.Data<WechatMiniprogram.IAnyObject> & WechatMiniprogram.IAnyObject;
export declare const isPC: boolean;
export declare const isWxWork: boolean;

34
dist/common/utils.js vendored
View File

@ -1,6 +1,7 @@
import { isDef, isNumber, isPlainObject, isPromise } from './validator';
import { canIUseGroupSetData, canIUseNextTick } from './version';
import { canIUseGroupSetData, canIUseNextTick, getSystemInfoSync, } from './version';
export { isDef } from './validator';
export { getSystemInfoSync } from './version';
export function range(num, min, max) {
return Math.min(Math.max(num, min), max);
}
@ -14,13 +15,6 @@ export function nextTick(cb) {
}, 1000 / 30);
}
}
let systemInfo;
export function getSystemInfoSync() {
if (systemInfo == null) {
systemInfo = wx.getSystemInfoSync();
}
return systemInfo;
}
export function addUnit(value) {
if (!isDef(value)) {
return undefined;
@ -29,19 +23,9 @@ export function addUnit(value) {
return isNumber(value) ? `${value}px` : value;
}
export function requestAnimationFrame(cb) {
const systemInfo = getSystemInfoSync();
if (systemInfo.platform === 'devtools') {
return setTimeout(() => {
cb();
}, 1000 / 30);
}
return wx
.createSelectorQuery()
.selectViewport()
.boundingClientRect()
.exec(() => {
return setTimeout(() => {
cb();
});
}, 1000 / 30);
}
export function pickExclude(obj, keys) {
if (!isPlainObject(obj)) {
@ -86,7 +70,17 @@ export function toPromise(promiseLike) {
}
return Promise.resolve(promiseLike);
}
// 浮点数精度处理
export function addNumber(num1, num2) {
const cardinal = Math.pow(10, 10);
return Math.round((num1 + num2) * cardinal) / cardinal;
}
// 限制value在[min, max]之间
export const clamp = (num, min, max) => Math.min(Math.max(num, min), max);
export function getCurrentPage() {
const pages = getCurrentPages();
return pages[pages.length - 1];
}
export const isPC = ['mac', 'windows'].includes(getSystemInfoSync().platform);
// 是否企业微信
export const isWxWork = getSystemInfoSync().environment === 'wxwork';

9
dist/common/validator.d.ts vendored Normal file
View File

@ -0,0 +1,9 @@
export declare function isFunction(val: unknown): val is Function;
export declare function isPlainObject(val: unknown): val is Record<string, unknown>;
export declare function isPromise<T = unknown>(val: unknown): val is Promise<T>;
export declare function isDef(value: unknown): boolean;
export declare function isObj(x: unknown): x is Record<string, unknown>;
export declare function isNumber(value: string): boolean;
export declare function isBoolean(value: unknown): value is boolean;
export declare function isImageUrl(url: string): boolean;
export declare function isVideoUrl(url: string): boolean;

15
dist/common/version.d.ts vendored Normal file
View File

@ -0,0 +1,15 @@
/// <reference types="miniprogram-api-typings" />
interface WxWorkSystemInfo extends WechatMiniprogram.SystemInfo {
environment?: 'wxwork';
}
interface SystemInfo extends WxWorkSystemInfo, WechatMiniprogram.SystemInfo {
}
export declare function getSystemInfoSync(): SystemInfo;
export declare function canIUseModel(): boolean;
export declare function canIUseFormFieldButton(): boolean;
export declare function canIUseAnimate(): boolean;
export declare function canIUseGroupSetData(): boolean;
export declare function canIUseNextTick(): boolean;
export declare function canIUseCanvas2d(): boolean;
export declare function canIUseGetUserProfile(): boolean;
export {};

View File

@ -1,4 +1,10 @@
import { getSystemInfoSync } from './utils';
let systemInfo;
export function getSystemInfoSync() {
if (systemInfo == null) {
systemInfo = wx.getSystemInfoSync();
}
return systemInfo;
}
function compareVersion(v1, v2) {
v1 = v1.split('.');
v2 = v2.split('.');
@ -38,7 +44,12 @@ export function canIUseGroupSetData() {
return gte('2.4.0');
}
export function canIUseNextTick() {
return wx.canIUse('nextTick');
try {
return wx.canIUse('nextTick');
}
catch (e) {
return gte('2.7.1');
}
}
export function canIUseCanvas2d() {
return gte('2.9.0');

1
dist/config-provider/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

1
dist/count-down/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

10
dist/count-down/utils.d.ts vendored Normal file
View File

@ -0,0 +1,10 @@
export type TimeData = {
days: number;
hours: number;
minutes: number;
seconds: number;
milliseconds: number;
};
export declare function parseTimeData(time: number): TimeData;
export declare function parseFormat(format: string, timeData: TimeData): string;
export declare function isSameSecond(time1: number, time2: number): boolean;

1
dist/datetime-picker/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

29
dist/definitions/index.d.ts vendored Normal file
View File

@ -0,0 +1,29 @@
/// <reference types="miniprogram-api-typings" />
interface VantComponentInstance {
parent: WechatMiniprogram.Component.TrivialInstance;
children: WechatMiniprogram.Component.TrivialInstance[];
index: number;
$emit: (name: string, detail?: unknown, options?: WechatMiniprogram.Component.TriggerEventOption) => void;
setView: (value: Record<string, any>, callback?: () => void) => void;
}
export type VantComponentOptions<Data extends WechatMiniprogram.Component.DataOption, Props extends WechatMiniprogram.Component.PropertyOption, Methods extends WechatMiniprogram.Component.MethodOption> = {
data?: Data;
field?: boolean;
classes?: string[];
mixins?: string[];
props?: Props;
relation?: {
relations: Record<string, WechatMiniprogram.Component.RelationOption>;
mixin: string;
};
watch?: Record<string, (...args: any[]) => any>;
methods?: Methods;
beforeCreate?: () => void;
created?: () => void;
mounted?: () => void;
destroyed?: () => void;
} & ThisType<VantComponentInstance & WechatMiniprogram.Component.Instance<Data & {
name: string;
value: any;
} & Record<string, any>, Props, Methods> & Record<string, any>>;
export {};

55
dist/dialog/dialog.d.ts vendored Normal file
View File

@ -0,0 +1,55 @@
/// <reference types="miniprogram-api-typings" />
/// <reference types="miniprogram-api-typings" />
export type Action = 'confirm' | 'cancel' | 'overlay';
type DialogContext = WechatMiniprogram.Page.TrivialInstance | WechatMiniprogram.Component.TrivialInstance;
interface DialogOptions {
lang?: string;
show?: boolean;
title?: string;
width?: string | number | null;
zIndex?: number;
theme?: string;
context?: (() => DialogContext) | DialogContext;
message?: string;
overlay?: boolean;
selector?: string;
ariaLabel?: string;
/**
* @deprecated use custom-class instead
*/
className?: string;
customStyle?: string;
transition?: string;
/**
* @deprecated use beforeClose instead
*/
asyncClose?: boolean;
beforeClose?: null | ((action: Action) => Promise<void | boolean> | void);
businessId?: number;
sessionFrom?: string;
overlayStyle?: string;
appParameter?: string;
messageAlign?: string;
sendMessageImg?: string;
showMessageCard?: boolean;
sendMessagePath?: string;
sendMessageTitle?: string;
confirmButtonText?: string;
cancelButtonText?: string;
showConfirmButton?: boolean;
showCancelButton?: boolean;
closeOnClickOverlay?: boolean;
confirmButtonOpenType?: string;
}
declare const Dialog: {
(options: DialogOptions): Promise<WechatMiniprogram.Component.TrivialInstance>;
alert(options: DialogOptions): Promise<WechatMiniprogram.Component.TrivialInstance>;
confirm(options: DialogOptions): Promise<WechatMiniprogram.Component.TrivialInstance>;
close(): void;
stopLoading(): void;
currentOptions: DialogOptions;
defaultOptions: DialogOptions;
setDefaultOptions(options: DialogOptions): void;
resetDefaultOptions(): void;
};
export default Dialog;

View File

@ -30,7 +30,9 @@ function getContext() {
const Dialog = (options) => {
options = Object.assign(Object.assign({}, currentOptions), options);
return new Promise((resolve, reject) => {
const context = options.context || getContext();
const context = (typeof options.context === 'function'
? options.context()
: options.context) || getContext();
const dialog = context.selectComponent(options.selector);
delete options.context;
delete options.selector;

1
dist/dialog/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

10
dist/dialog/index.js vendored
View File

@ -4,6 +4,7 @@ import { GRAY, RED } from '../common/color';
import { toPromise } from '../common/utils';
VantComponent({
mixins: [button],
classes: ['cancle-button-class', 'confirm-button-class'],
props: {
show: {
type: Boolean,
@ -17,14 +18,17 @@ VantComponent({
type: String,
value: 'default',
},
useSlot: Boolean,
confirmButtonId: String,
className: String,
customStyle: String,
asyncClose: Boolean,
messageAlign: String,
beforeClose: null,
overlayStyle: String,
useSlot: Boolean,
useTitleSlot: Boolean,
useConfirmButtonSlot: Boolean,
useCancelButtonSlot: Boolean,
showCancelButton: Boolean,
closeOnClickOverlay: Boolean,
confirmButtonOpenType: String,
@ -61,6 +65,10 @@ VantComponent({
type: String,
value: 'scale',
},
rootPortal: {
type: Boolean,
value: false,
},
},
data: {
loading: {

View File

@ -5,10 +5,11 @@
z-index="{{ zIndex }}"
overlay="{{ overlay }}"
transition="{{ transition }}"
custom-class="van-dialog van-dialog--{{ theme }} {{ className }}"
custom-class="van-dialog van-dialog--{{ theme }}{{ className }} custom-class"
custom-style="width: {{ utils.addUnit(width) }};{{ customStyle }}"
overlay-style="{{ overlayStyle }}"
close-on-click-overlay="{{ closeOnClickOverlay }}"
root-portal="{{ rootPortal }}"
bind:close="onClickOverlay"
>
<view
@ -33,7 +34,7 @@
size="large"
loading="{{ loading.cancel }}"
class="van-dialog__button van-hairline--right"
custom-class="van-dialog__cancel"
custom-class="van-dialog__cancel cancle-button-class"
custom-style="color: {{ cancelButtonColor }}"
bind:click="onCancel"
>
@ -44,9 +45,9 @@
size="large"
class="van-dialog__button"
loading="{{ loading.confirm }}"
custom-class="van-dialog__confirm"
custom-class="van-dialog__confirm confirm-button-class"
custom-style="color: {{ confirmButtonColor }}"
button-id="{{ confirmButtonId }}"
open-type="{{ confirmButtonOpenType }}"
lang="{{ lang }}"
business-id="{{ businessId }}"
@ -56,7 +57,8 @@
send-message-img="{{ sendMessageImg }}"
show-message-card="{{ showMessageCard }}"
app-parameter="{{ appParameter }}"
bindagreeprivacyauthorization="onAgreePrivacyAuthorization"
bindgetRealTimePhoneNumber="onGetRealTimePhoneNumber"
bind:click="onConfirm"
bindgetuserinfo="onGetUserInfo"
bindcontact="onContact"
@ -69,45 +71,55 @@
</van-goods-action-button>
</van-goods-action>
<view wx:else class="van-hairline--top van-dialog__footer">
<van-button
wx:if="{{ showCancelButton }}"
size="large"
loading="{{ loading.cancel }}"
class="van-dialog__button van-hairline--right"
custom-class="van-dialog__cancel"
custom-style="color: {{ cancelButtonColor }}"
bind:click="onCancel"
>
{{ cancelButtonText }}
</van-button>
<van-button
wx:if="{{ showConfirmButton }}"
size="large"
class="van-dialog__button"
loading="{{ loading.confirm }}"
custom-class="van-dialog__confirm"
custom-style="color: {{ confirmButtonColor }}"
<view wx:elif="{{ showCancelButton || showConfirmButton }}" class="van-hairline--top van-dialog__footer">
<block wx:if="{{ showCancelButton }}">
<slot wx:if="{{ useCancelButtonSlot }}" name="cancel-button" />
open-type="{{ confirmButtonOpenType }}"
lang="{{ lang }}"
business-id="{{ businessId }}"
session-from="{{ sessionFrom }}"
send-message-title="{{ sendMessageTitle }}"
send-message-path="{{ sendMessagePath }}"
send-message-img="{{ sendMessageImg }}"
show-message-card="{{ showMessageCard }}"
app-parameter="{{ appParameter }}"
<van-button
wx:else
size="large"
loading="{{ loading.cancel }}"
class="van-dialog__button van-hairline--right"
custom-class="van-dialog__cancel cancle-button-class"
custom-style="color: {{ cancelButtonColor }}"
bind:click="onCancel"
>
{{ cancelButtonText }}
</van-button>
</block>
bind:click="onConfirm"
bindgetuserinfo="onGetUserInfo"
bindcontact="onContact"
bindgetphonenumber="onGetPhoneNumber"
binderror="onError"
bindlaunchapp="onLaunchApp"
bindopensetting="onOpenSetting"
>
{{ confirmButtonText }}
</van-button>
<block wx:if="{{ showConfirmButton }}">
<slot wx:if="{{ useConfirmButtonSlot }}" name="confirm-button" />
<van-button
wx:else
size="large"
class="van-dialog__button"
loading="{{ loading.confirm }}"
custom-class="van-dialog__confirm confirm-button-class"
custom-style="color: {{ confirmButtonColor }}"
button-id="{{ confirmButtonId }}"
open-type="{{ confirmButtonOpenType }}"
lang="{{ lang }}"
business-id="{{ businessId }}"
session-from="{{ sessionFrom }}"
send-message-title="{{ sendMessageTitle }}"
send-message-path="{{ sendMessagePath }}"
send-message-img="{{ sendMessageImg }}"
show-message-card="{{ showMessageCard }}"
app-parameter="{{ appParameter }}"
bindagreeprivacyauthorization="onAgreePrivacyAuthorization"
bindgetRealTimePhoneNumber="onGetRealTimePhoneNumber"
bind:click="onConfirm"
bindgetuserinfo="onGetUserInfo"
bindcontact="onContact"
bindgetphonenumber="onGetPhoneNumber"
binderror="onError"
bindlaunchapp="onLaunchApp"
bindopensetting="onOpenSetting"
>
{{ confirmButtonText }}
</van-button>
</block>
</view>
</van-popup>

View File

@ -1 +1 @@
@import '../common/index.wxss';.van-dialog{background-color:var(--dialog-background-color,#fff);border-radius:var(--dialog-border-radius,16px);font-size:var(--dialog-font-size,16px);overflow:hidden;top:45%!important;width:var(--dialog-width,320px)}@media (max-width:321px){.van-dialog{width:var(--dialog-small-screen-width,90%)}}.van-dialog__header{font-weight:var(--dialog-header-font-weight,500);line-height:var(--dialog-header-line-height,24px);padding-top:var(--dialog-header-padding-top,24px);text-align:center}.van-dialog__header--isolated{padding:var(--dialog-header-isolated-padding,24px 0)}.van-dialog__message{-webkit-overflow-scrolling:touch;font-size:var(--dialog-message-font-size,14px);line-height:var(--dialog-message-line-height,20px);max-height:var(--dialog-message-max-height,60vh);overflow-y:auto;padding:var(--dialog-message-padding,24px);text-align:center}.van-dialog__message-text{word-wrap:break-word}.van-dialog__message--hasTitle{color:var(--dialog-has-title-message-text-color,#646566);padding-top:var(--dialog-has-title-message-padding-top,8px)}.van-dialog__message--round-button{color:#323233;padding-bottom:16px}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__footer{display:flex}.van-dialog__footer--round-button{padding:8px 24px 16px!important;position:relative!important}.van-dialog__button{flex:1}.van-dialog__cancel,.van-dialog__confirm{border:0!important}.van-dialog-bounce-enter{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.van-dialog-bounce-leave-active{opacity:0;transform:translate3d(-50%,-50%,0) scale(.9)}
@import '../common/index.wxss';.van-dialog{background-color:var(--dialog-background-color,#fff);border-radius:var(--dialog-border-radius,16px);font-size:var(--dialog-font-size,16px);overflow:hidden;top:45%!important;width:var(--dialog-width,320px)}@media (max-width:321px){.van-dialog{width:var(--dialog-small-screen-width,90%)}}.van-dialog__header{font-weight:var(--dialog-header-font-weight,500);line-height:var(--dialog-header-line-height,24px);padding-top:var(--dialog-header-padding-top,24px);text-align:center}.van-dialog__header--isolated{padding:var(--dialog-header-isolated-padding,24px 0)}.van-dialog__message{-webkit-overflow-scrolling:touch;font-size:var(--dialog-message-font-size,14px);line-height:var(--dialog-message-line-height,20px);max-height:var(--dialog-message-max-height,60vh);overflow-y:auto;padding:var(--dialog-message-padding,24px);text-align:center}.van-dialog__message-text{word-wrap:break-word}.van-dialog__message--hasTitle{color:var(--dialog-has-title-message-text-color,#646566);padding-top:var(--dialog-has-title-message-padding-top,8px)}.van-dialog__message--round-button{color:#323233;padding-bottom:16px}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex}.van-dialog__footer--round-button{padding:8px 24px 16px!important;position:relative!important}.van-dialog__button{flex:1}.van-dialog__cancel,.van-dialog__confirm{border:0!important}.van-dialog-bounce-enter{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.van-dialog-bounce-leave-active{opacity:0;transform:translate3d(-50%,-50%,0) scale(.9)}

1
dist/divider/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

1
dist/dropdown-item/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

View File

@ -1,6 +1,7 @@
import { useParent } from '../common/relation';
import { VantComponent } from '../common/component';
VantComponent({
classes: ['item-title-class'],
field: true,
relation: useParent('dropdown-menu', function () {
this.updateDataFromParent();
@ -25,12 +26,21 @@ VantComponent({
observer: 'rerender',
},
popupStyle: String,
useBeforeToggle: {
type: Boolean,
value: false,
},
rootPortal: {
type: Boolean,
value: false,
},
},
data: {
transition: true,
showPopup: false,
showWrapper: false,
displayTitle: '',
safeAreaTabBar: false,
},
methods: {
rerender() {
@ -41,13 +51,14 @@ VantComponent({
},
updateDataFromParent() {
if (this.parent) {
const { overlay, duration, activeColor, closeOnClickOverlay, direction, } = this.parent.data;
const { overlay, duration, activeColor, closeOnClickOverlay, direction, safeAreaTabBar, } = this.parent.data;
this.setData({
overlay,
duration,
activeColor,
closeOnClickOverlay,
direction,
safeAreaTabBar,
});
}
},
@ -76,7 +87,6 @@ VantComponent({
}
},
toggle(show, options = {}) {
var _a;
const { showPopup } = this.data;
if (typeof show !== 'boolean') {
show = !showPopup;
@ -84,19 +94,37 @@ VantComponent({
if (show === showPopup) {
return;
}
this.setData({
transition: !options.immediate,
showPopup: show,
});
if (show) {
(_a = this.parent) === null || _a === void 0 ? void 0 : _a.getChildWrapperStyle().then((wrapperStyle) => {
this.setData({ wrapperStyle, showWrapper: true });
this.rerender();
this.onBeforeToggle(show).then((status) => {
var _a;
if (!status) {
return;
}
this.setData({
transition: !options.immediate,
showPopup: show,
});
if (show) {
(_a = this.parent) === null || _a === void 0 ? void 0 : _a.getChildWrapperStyle().then((wrapperStyle) => {
this.setData({ wrapperStyle, showWrapper: true });
this.rerender();
});
}
else {
this.rerender();
}
});
},
onBeforeToggle(status) {
const { useBeforeToggle } = this.data;
if (!useBeforeToggle) {
return Promise.resolve(true);
}
else {
this.rerender();
}
return new Promise((resolve) => {
this.$emit('before-toggle', {
status,
callback: (value) => resolve(value),
});
});
},
},
});

View File

@ -2,7 +2,7 @@
<view
wx:if="{{ showWrapper }}"
class="{{ utils.bem('dropdown-item', direction) }}"
class="{{ utils.bem('dropdown-item', direction) }} custom-class"
style="{{ wrapperStyle }}"
>
<van-popup
@ -12,7 +12,9 @@
overlay="{{ overlay }}"
position="{{ direction === 'down' ? 'top' : 'bottom' }}"
duration="{{ transition ? duration : 0 }}"
safe-area-tab-bar="{{ safeAreaTabBar }}"
close-on-click-overlay="{{ closeOnClickOverlay }}"
rootPortal="{{ rootPortal }}"
bind:enter="onOpen"
bind:leave="onClose"
bind:close="toggle"
@ -30,7 +32,7 @@
>
<view
slot="title"
class="van-dropdown-item__title"
class="van-dropdown-item__title item-title-class"
style="{{ item.value === value ? 'color:' + activeColor : '' }}"
>
{{ item.text }}

5
dist/dropdown-item/shared.d.ts vendored Normal file
View File

@ -0,0 +1,5 @@
export interface Option {
text: string;
value: string | number;
icon: string;
}

1
dist/dropdown-menu/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

View File

@ -4,6 +4,7 @@ import { addUnit, getRect, getSystemInfoSync } from '../common/utils';
let ARRAY = [];
VantComponent({
field: true,
classes: ['title-class'],
relation: useChildren('dropdown-item', function () {
this.updateItemListData();
}),
@ -31,6 +32,10 @@ VantComponent({
value: 'down',
observer: 'updateChildrenData',
},
safeAreaTabBar: {
type: Boolean,
value: false,
},
closeOnClickOverlay: {
type: Boolean,
value: true,

View File

@ -10,7 +10,7 @@
bind:tap="onTitleTap"
>
<view
class="{{ item.titleClass }} {{ utils.bem('dropdown-menu__title', { active: item.showPopup, down: item.showPopup === (direction === 'down') }) }}"
class="{{ item.titleClass }} {{ utils.bem('dropdown-menu__title', { active: item.showPopup, down: item.showPopup === (direction === 'down') }) }} title-class"
style="{{ item.showPopup ? 'color:' + activeColor : '' }}"
>
<view class="van-ellipsis">

View File

@ -1 +1 @@
@import '../common/index.wxss';.van-dropdown-menu{background-color:var(--dropdown-menu-background-color,#fff);box-shadow:var(--dropdown-menu-box-shadow,0 2px 12px hsla(210,1%,40%,.12));display:flex;height:var(--dropdown-menu-height,50px);-webkit-user-select:none;user-select:none}.van-dropdown-menu__item{align-items:center;display:flex;flex:1;justify-content:center;min-width:0}.van-dropdown-menu__item:active{opacity:.7}.van-dropdown-menu__item--disabled:active{opacity:1}.van-dropdown-menu__item--disabled .van-dropdown-menu__title{color:var(--dropdown-menu-title-disabled-text-color,#969799)}.van-dropdown-menu__title{box-sizing:border-box;color:var(--dropdown-menu-title-text-color,#323233);font-size:var(--dropdown-menu-title-font-size,15px);line-height:var(--dropdown-menu-title-line-height,18px);max-width:100%;padding:var(--dropdown-menu-title-padding,0 8px);position:relative}.van-dropdown-menu__title:after{border-color:transparent transparent currentcolor currentcolor;border-style:solid;border-width:3px;content:"";margin-top:-5px;opacity:.8;position:absolute;right:-4px;top:50%;transform:rotate(-45deg)}.van-dropdown-menu__title--active{color:var(--dropdown-menu-title-active-text-color,#ee0a24)}.van-dropdown-menu__title--down:after{margin-top:-1px;transform:rotate(135deg)}
@import '../common/index.wxss';.van-dropdown-menu{background-color:var(--dropdown-menu-background-color,#fff);box-shadow:var(--dropdown-menu-box-shadow,0 2px 12px hsla(210,1%,40%,.12));display:flex;height:var(--dropdown-menu-height,50px);-webkit-user-select:none;user-select:none}.van-dropdown-menu__item{align-items:center;display:flex;flex:1;justify-content:center;min-width:0}.van-dropdown-menu__item:active{opacity:.7}.van-dropdown-menu__item--disabled:active{opacity:1}.van-dropdown-menu__item--disabled .van-dropdown-menu__title{color:var(--dropdown-menu-title-disabled-text-color,#969799)}.van-dropdown-menu__title{box-sizing:border-box;color:var(--dropdown-menu-title-text-color,#323233);font-size:var(--dropdown-menu-title-font-size,15px);line-height:var(--dropdown-menu-title-line-height,18px);max-width:100%;padding:var(--dropdown-menu-title-padding,0 24px 0 8px);position:relative}.van-dropdown-menu__title:after{border-color:transparent transparent currentcolor currentcolor;border-style:solid;border-width:3px;content:"";margin-top:-5px;opacity:.8;position:absolute;right:11px;top:50%;transform:rotate(-45deg)}.van-dropdown-menu__title--active{color:var(--dropdown-menu-title-active-text-color,#ee0a24)}.van-dropdown-menu__title--down:after{margin-top:-1px;transform:rotate(135deg)}

1
dist/empty/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

1
dist/field/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

53
dist/field/index.js vendored
View File

@ -22,22 +22,45 @@ VantComponent({
}, clearIcon: {
type: String,
value: 'clear',
}, extraEventParams: {
type: Boolean,
value: false,
} }),
data: {
focused: false,
innerValue: '',
showClear: false,
},
watch: {
value(value) {
if (value !== this.value) {
this.setData({ innerValue: value });
this.value = value;
this.setShowClear();
}
},
clearTrigger() {
this.setShowClear();
},
},
created() {
this.value = this.data.value;
this.setData({ innerValue: this.value });
},
methods: {
formatValue(value) {
const { maxlength } = this.data;
if (maxlength !== -1 && value.length > maxlength) {
return value.slice(0, maxlength);
}
return value;
},
onInput(event) {
const { value = '' } = event.detail || {};
this.value = value;
const formatValue = this.formatValue(value);
this.value = formatValue;
this.setShowClear();
this.emitChange();
return this.emitChange(Object.assign(Object.assign({}, event.detail), { value: formatValue }));
},
onFocus(event) {
this.focused = true;
@ -60,7 +83,7 @@ VantComponent({
this.value = '';
this.setShowClear();
nextTick(() => {
this.emitChange();
this.emitChange({ value: '' });
this.$emit('clear', '');
});
},
@ -76,7 +99,7 @@ VantComponent({
if (value === '') {
this.setData({ innerValue: '' });
}
this.emitChange();
this.emitChange({ value });
},
onLineChange(event) {
this.$emit('linechange', event.detail);
@ -84,12 +107,20 @@ VantComponent({
onKeyboardHeightChange(event) {
this.$emit('keyboardheightchange', event.detail);
},
emitChange() {
this.setData({ value: this.value });
nextTick(() => {
this.$emit('input', this.value);
this.$emit('change', this.value);
});
onBindNicknameReview(event) {
this.$emit('nicknamereview', event.detail);
},
emitChange(detail) {
const { extraEventParams } = this.data;
this.setData({ value: detail.value });
let result;
const data = extraEventParams
? Object.assign(Object.assign({}, detail), { callback: (data) => {
result = data;
} }) : detail.value;
this.$emit('input', data);
this.$emit('change', data);
return result;
},
setShowClear() {
const { clearable, readonly, clearTrigger } = this.data;
@ -100,7 +131,7 @@ VantComponent({
const trigger = clearTrigger === 'always' || (clearTrigger === 'focus' && focused);
showClear = hasValue && trigger;
}
this.setData({ showClear });
this.setView({ showClear });
},
noop() { },
},

14
dist/field/index.wxml vendored
View File

@ -13,12 +13,12 @@
title-style="margin-right: 12px;"
custom-style="{{ customStyle }}"
arrow-direction="{{ arrowDirection }}"
custom-class="van-field"
custom-class="custom-class van-field"
>
<slot name="left-icon" slot="icon" />
<view wx:if="{{ label }}" class="label-class {{ utils.bem('field__label', { disabled }) }}" slot="title">
<label for="{{ name }}" wx:if="{{ label }}" class="label-class {{ utils.bem('field__label', { disabled }) }}" slot="title">
{{ label }}
</view>
</label>
<slot wx:else name="label" slot="title" />
<view class="{{ utils.bem('field__body', [type]) }}">
<view class="{{ utils.bem('field__control', [inputAlign, 'custom']) }}" bindtap="onClickInput">
@ -47,10 +47,10 @@
<slot name="button" />
</view>
</view>
<view wx:if="{{ showWordLimit && maxlength }}" class="van-field__word-limit">
<label for="{{ name }}" wx:if="{{ showWordLimit && maxlength }}" class="van-field__word-limit">
<view class="{{ utils.bem('field__word-num', { full: value.length >= maxlength }) }}">{{ value.length >= maxlength ? maxlength : value.length }}</view>/{{ maxlength }}
</view>
<view wx:if="{{ errorMessage }}" class="{{ utils.bem('field__error-message', [errorMessageAlign, { disabled, error }]) }}">
</label>
<label for="{{ name }}" wx:if="{{ errorMessage }}" class="{{ utils.bem('field__error-message', [errorMessageAlign, { disabled, error }]) }}">
{{ errorMessage }}
</view>
</label>
</van-cell>

View File

@ -1 +1 @@
@import '../common/index.wxss';.van-field{--cell-icon-size:var(--field-icon-size,16px)}.van-field__label{color:var(--field-label-color,#646566)}.van-field__label--disabled{color:var(--field-disabled-text-color,#c8c9cc)}.van-field__body{align-items:center;display:flex}.van-field__body--textarea{box-sizing:border-box;line-height:1.2em;min-height:var(--cell-line-height,24px);padding:3.6px 0}.van-field__control:empty+.van-field__control{display:block}.van-field__control{background-color:initial;border:0;box-sizing:border-box;color:var(--field-input-text-color,#323233);display:none;height:var(--cell-line-height,24px);line-height:inherit;margin:0;min-height:var(--cell-line-height,24px);padding:0;position:relative;resize:none;text-align:left;width:100%}.van-field__control:empty{display:none}.van-field__control--textarea{height:var(--field-text-area-min-height,18px);min-height:var(--field-text-area-min-height,18px)}.van-field__control--error{color:var(--field-input-error-text-color,#ee0a24)}.van-field__control--disabled{background-color:initial;color:var(--field-input-disabled-text-color,#c8c9cc);opacity:1}.van-field__control--center{text-align:center}.van-field__control--right{text-align:right}.van-field__control--custom{align-items:center;display:flex;min-height:var(--cell-line-height,24px)}.van-field__placeholder{color:var(--field-placeholder-text-color,#c8c9cc);left:0;pointer-events:none;position:absolute;right:0;top:0}.van-field__placeholder--error{color:var(--field-error-message-color,#ee0a24)}.van-field__icon-root{align-items:center;display:flex;min-height:var(--cell-line-height,24px)}.van-field__clear-root,.van-field__icon-container{line-height:inherit;margin-right:calc(var(--padding-xs, 8px)*-1);padding:0 var(--padding-xs,8px);vertical-align:middle}.van-field__button,.van-field__clear-root,.van-field__icon-container{flex-shrink:0}.van-field__clear-root{color:var(--field-clear-icon-color,#c8c9cc);font-size:var(--field-clear-icon-size,16px)}.van-field__icon-container{color:var(--field-icon-container-color,#969799);font-size:var(--field-icon-size,16px)}.van-field__icon-container:empty{display:none}.van-field__button{padding-left:var(--padding-xs,8px)}.van-field__button:empty{display:none}.van-field__error-message{color:var(--field-error-message-color,#ee0a24);font-size:var(--field-error-message-text-font-size,12px);text-align:left}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{color:var(--field-word-limit-color,#646566);font-size:var(--field-word-limit-font-size,12px);line-height:var(--field-word-limit-line-height,16px);margin-top:var(--padding-base,4px);text-align:right}.van-field__word-num{display:inline}.van-field__word-num--full{color:var(--field-word-num-full-color,#ee0a24)}
@import '../common/index.wxss';.van-field{--cell-icon-size:var(--field-icon-size,16px)}.van-field__label{color:var(--field-label-color,#646566)}.van-field__label--disabled{color:var(--field-disabled-text-color,#c8c9cc)}.van-field__body{align-items:center;display:flex}.van-field__body--textarea{box-sizing:border-box;line-height:1.2em;min-height:var(--cell-line-height,24px);padding:3.6px 0}.van-field__control:empty+.van-field__control{display:block}.van-field__control{background-color:initial;border:0;box-sizing:border-box;color:var(--field-input-text-color,#323233);display:none;height:var(--cell-line-height,24px);line-height:inherit;margin:0;min-height:var(--cell-line-height,24px);padding:0;position:relative;resize:none;text-align:left;width:100%}.van-field__control:empty{display:none}.van-field__control--textarea{height:var(--field-text-area-min-height,18px);min-height:var(--field-text-area-min-height,18px)}.van-field__control--error{color:var(--field-input-error-text-color,#ee0a24)}.van-field__control--disabled{background-color:initial;color:var(--field-input-disabled-text-color,#c8c9cc);opacity:1}.van-field__control--center{text-align:center}.van-field__control--right{text-align:right}.van-field__control--custom{align-items:center;display:flex;min-height:var(--cell-line-height,24px)}.van-field__placeholder{color:var(--field-placeholder-text-color,#c8c9cc);left:0;pointer-events:none;position:absolute;right:0;top:0}.van-field__placeholder--error{color:var(--field-error-message-color,#ee0a24)}.van-field__icon-root{align-items:center;display:flex;min-height:var(--cell-line-height,24px)}.van-field__clear-root,.van-field__icon-container{line-height:inherit;margin-right:calc(var(--padding-xs, 8px)*-1);padding:0 var(--padding-xs,8px);vertical-align:middle}.van-field__button,.van-field__clear-root,.van-field__icon-container{flex-shrink:0}.van-field__clear-root{color:var(--field-clear-icon-color,#c8c9cc);font-size:var(--field-clear-icon-size,16px)}.van-field__icon-container{color:var(--field-icon-container-color,#969799);font-size:var(--field-icon-size,16px)}.van-field__icon-container:empty{display:none}.van-field__button{padding-left:var(--padding-xs,8px)}.van-field__button:empty{display:none}.van-field__error-message{color:var(--field-error-message-color,#ee0a24);display:block;font-size:var(--field-error-message-text-font-size,12px);text-align:left}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{color:var(--field-word-limit-color,#646566);font-size:var(--field-word-limit-font-size,12px);line-height:var(--field-word-limit-line-height,16px);margin-top:var(--padding-base,4px);text-align:right}.van-field__word-num{display:inline}.van-field__word-num--full{color:var(--field-word-num-full-color,#ee0a24)}

View File

@ -1,4 +1,6 @@
<wxs src="../wxs/utils.wxs" module="utils" />
<input
id="{{ name }}"
class="{{ utils.bem('field__control', [inputAlign, { disabled, error }]) }} input-class"
type="{{ type }}"
focus="{{ focus }}"
@ -25,4 +27,5 @@
bindfocus="onFocus"
bindconfirm="onConfirm"
bindkeyboardheightchange="onKeyboardHeightChange"
bindnicknamereview="onBindNicknameReview"
/>

4
dist/field/props.d.ts vendored Normal file
View File

@ -0,0 +1,4 @@
/// <reference types="miniprogram-api-typings" />
export declare const commonProps: WechatMiniprogram.Component.PropertyOption;
export declare const inputProps: WechatMiniprogram.Component.PropertyOption;
export declare const textareaProps: WechatMiniprogram.Component.PropertyOption;

10
dist/field/props.js vendored
View File

@ -1,13 +1,5 @@
export const commonProps = {
value: {
type: String,
observer(value) {
if (value !== this.value) {
this.setData({ innerValue: value });
this.value = value;
}
},
},
value: String,
placeholder: String,
placeholderStyle: String,
placeholderClass: String,

View File

@ -1,4 +1,7 @@
<wxs src="../wxs/utils.wxs" module="utils" />
<wxs src="./index.wxs" module="computed" />
<textarea
id="{{ name }}"
class="{{ utils.bem('field__control', [inputAlign, type, { disabled, error }]) }} input-class"
fixed="{{ fixed }}"
focus="{{ focus }}"

8
dist/field/types.d.ts vendored Normal file
View File

@ -0,0 +1,8 @@
export interface InputDetails {
/** 输入框内容 */
value: string;
/** 光标位置 */
cursor?: number;
/** keyCode 为键值 (目前工具还不支持返回keyCode参数) `2.1.0` 起支持 */
keyCode?: number;
}

1
dist/field/types.js vendored Normal file
View File

@ -0,0 +1 @@
export {};

1
dist/goods-action-button/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

View File

@ -8,6 +8,10 @@ VantComponent({
props: {
text: String,
color: String,
size: {
type: String,
value: 'normal',
},
loading: Boolean,
disabled: Boolean,
plain: Boolean,
@ -15,6 +19,10 @@ VantComponent({
type: String,
value: 'danger',
},
customStyle: {
type: String,
value: '',
},
},
methods: {
onClick(event) {

View File

@ -1,15 +1,18 @@
<wxs src="../wxs/utils.wxs" module="utils" />
<van-button
id="{{ id }}"
button-id="{{ buttonId }}"
lang="{{ lang }}"
type="{{ type }}"
size="{{ size }}"
color="{{ color }}"
plain="{{ plain }}"
loading="{{ loading }}"
disabled="{{ disabled }}"
open-type="{{ openType }}"
class="{{ utils.bem('goods-action-button', [type, { first: isFirst, last: isLast, plain: plain }])}}"
custom-class="van-goods-action-button__inner"
custom-class="van-goods-action-button__inner custom-class"
custom-style="{{customStyle}}"
business-id="{{ businessId }}"
session-from="{{ sessionFrom }}"
app-parameter="{{ appParameter }}"
@ -22,6 +25,8 @@
bindcontact="onContact"
bindopensetting="onOpenSetting"
bindgetuserinfo="onGetUserInfo"
bindagreeprivacyauthorization="onAgreePrivacyAuthorization"
bindgetRealTimePhoneNumber="onGetRealTimePhoneNumber"
bindgetphonenumber="onGetPhoneNumber"
bindlaunchapp="onLaunchApp"
>

1
dist/goods-action-icon/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export {};

Some files were not shown because too many files have changed in this diff Show More