-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: 重构选择器联动逻辑,适配vant的areaList数据结构 (#5)
* refactor(src): 重构成使用扁平结构的地址查询表,数据结构和编码与vant 地址选择组件同步 - 修改了组件默认使用的数据结构 - 使用 memoize 缓存相同查询的结果 - 优化代码,减少使用ifelse 和 switch case - 优化了对错误输入的兼容 BREAKING CHANGE: 如果使用默认的地址数据可以继续使用,如果引入了自定义的地址数据需要转换为新的数据结构。
- Loading branch information
1 parent
0591235
commit 9ecf4db
Showing
37 changed files
with
14,150 additions
and
29,044 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
insert_final_newline = false | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module.exports = { | ||
dataSource: 'prs', | ||
prefix: '', | ||
ignoreLabels: ['duplicate', 'help wanted', 'invalid', 'question', 'wontfix'], | ||
ignoreIssuesWith: [ | ||
'duplicate', | ||
'help wanted', | ||
'invalid', | ||
'question', | ||
'wontfix' | ||
], | ||
onlyMilestones: false, | ||
changelogFilename: 'CHANGELOG.md', | ||
template: { | ||
issue: '- {{name}} [{{text}}]({{url}})' | ||
}, | ||
groupBy: { | ||
'✨ New Features:': ['enhancement'], | ||
'🐛 Bug Fixes:': ['bug'] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
branches: | ||
only: | ||
- master | ||
language: node_js | ||
node_js: | ||
- lts/* | ||
git: | ||
depth: 3 | ||
install: | ||
- yarn --frozen-lockfile | ||
script: | ||
- yarn build | ||
cache: yarn | ||
deploy: | ||
- provider: pages | ||
local-dir: docs | ||
github-token: $GITHUB_TOKEN | ||
skip-cleanup: true | ||
keep-history: true | ||
- provider: npm | ||
email: [email protected] | ||
api_key: $NPM_TOKEN | ||
skip-cleanup: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.