Skip to content

Commit 7285704

Browse files
committed
feat: 3.1.2
1 parent c98c016 commit 7285704

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+571
-282
lines changed

.browserslistrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Chrome >= 51
2+
iOS >= 10

.eslintrc.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ module.exports = {
2626
'no-console': 'off',
2727
// js 和 ts 的规则重合
2828
'no-undef': 'off',
29-
// vue3 和 vue2 rules 冲突
30-
'vue/no-v-model-argument': 'off',
31-
'vue/no-multiple-template-root': 'off',
32-
// 'vue/no-duplicate-attributes': 'off',
33-
// 'vue/no-v-for-template-key': 'off',
29+
// @typescript-eslint
3430
'@typescript-eslint/prefer-optional-chain': 'off',
3531
},
3632
};

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.DS_Store
22
node_modules
3-
/dist
3+
dist
4+
.eslintcache
45

56

67
# local env files

.vscode/settings.json

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"swipeable",
3131
"tabbar",
3232
"tailwindcss",
33+
"unplugin",
3334
"unref",
3435
"vant",
3536
"vconsole",

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
> 记录下重大改动
44
5+
## v3.1.2(2022-08-16)
6+
7+
主要改动
8+
9+
- 新增依赖 `unplugin-vue-components`, `vue-page-stack-router`
10+
- types 目录调整
11+
- utils 重构优化
12+
- 优化代码逻辑和其他细节完善
13+
514
## v3.0.1(2022-08-16)
615

716
主要改动

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ v-shop 是一个前端免费开源的企业级移动端(H5)商城,使用 `
88

99
- 💪 使用前端主流技术栈搭建
1010
- 🍭 使用 [api 工厂](https://www.it120.cc/) 提供的开放 API 接口
11-
- 🍭 Vant 设计风格,支持 Vue 2、Vue 3
11+
- 🍭 [Vant](https://github.com/youzan/vant) 设计风格,支持 Vue 2、Vue 3
1212
- 🍭 清晰的项目结构,业务代码的最佳实现
13-
- 🍭 使用 TypeScript 开发
13+
- 🍭 使用 [TypeScript](https://github.com/microsoft/TypeScript) 开发
1414
- 🍭 使用 [AlloyTeam ESLint](https://github.com/AlloyTeam/eslint-config-alloy) 规则, 规范项目代码
15+
- 🍭 支持页面栈导航体验,使用 [vue-page-stack-router](https://github.com/JoeshuTT/vue-page-stack-router)实现
1516
- 🎨 支持动态切换主题,支持动态加载 vconsole 面板
1617

1718
## 🔥 预览
@@ -49,7 +50,7 @@ v-shop 是一个前端免费开源的企业级移动端(H5)商城,使用 `
4950

5051
## 🔨 使用
5152

52-
> Node.js 版本最好 `12.x` 以上,偶数版本 `14.x``16.x`
53+
> Node.js 版本最好 `14.x` 以上
5354
5455
获取项目代码
5556

@@ -87,4 +88,4 @@ pnpm run build
8788

8889
如果觉得项目不错,或者有帮助到你,希望你可以去 Github 或者 Gitee 帮我点个 ⭐ Star,这将是对我极大的鼓励与支持。
8990

90-
微信: f144270(请备注 v-shop)
91+
微信不加蟹蟹,有疑问加 qq 群:262053992 问。

package.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "v-shop",
3-
"version": "3.0.0",
3+
"version": "3.1.2",
44
"private": true,
55
"engines": {
66
"node": ">= 12",
@@ -26,6 +26,7 @@
2626
"qs": "^6.11.0",
2727
"vant": "^3.5.4",
2828
"vue": "^3.2.37",
29+
"vue-page-stack-router": "^3.2.5",
2930
"vue-router": "^4.1.3"
3031
},
3132
"devDependencies": {
@@ -47,13 +48,10 @@
4748
"postcss-px-to-viewport": "^1.1.1",
4849
"prettier": "^2.7.1",
4950
"typescript": "^4.7.4",
51+
"unplugin-vue-components": "^0.22.9",
5052
"vite": "^2.9.15",
5153
"vite-plugin-html": "^3.2.0",
5254
"vue-eslint-parser": "^9.0.3",
5355
"vue-tsc": "^0.31.4"
54-
},
55-
"browserslist": [
56-
"Chrome >= 51",
57-
"iOS >= 10.0"
58-
]
56+
}
5957
}

pnpm-lock.yaml

+151
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/App.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<AppProvider>
3-
<RouterView />
3+
<PageStackRouterView />
44
</AppProvider>
55
</template>
66

0 commit comments

Comments
 (0)