diff --git a/.vscode/settings.json b/.vscode/settings.json index 9ed484d..6c66f4e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -112,18 +112,22 @@ "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[scss]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.codeActionsOnSave": { + "source.fixAll.eslint": false, + "source.fixAll.stylelint": true + } }, "[markdown]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "editor.codeActionsOnSave": { - "source.fixAll.eslint": true, - "source.fixAll.stylelint": true + "source.fixAll.eslint": true }, "[vue]": { "editor.codeActionsOnSave": { - "source.fixAll.eslint": false + "source.fixAll.eslint": false, + "source.fixAll.stylelint": true } }, "i18n-ally.localesPaths": ["src/locales/lang"], diff --git a/README.md b/README.md index 9830d7c..7bc28e4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 基于 Vite2.x + Vue3.x + TypeScript H5 低代码平台 -### 只是一个简单的模板,感兴趣可以根据自己的需要调整 +### 只是一个简单的模板,感兴趣可以根据自己的需要调整, 在这里你可以看到 vue3 很多有趣的新特性和玩法。 [![license](https://img.shields.io/github/license/buqiyuan/vite-vue3-lowcode.svg)](LICENSE) diff --git a/components.d.ts b/components.d.ts index 5fab99d..6bc1810 100644 --- a/components.d.ts +++ b/components.d.ts @@ -8,6 +8,7 @@ declare module 'vue' { ElCol: typeof import('element-plus/es/el-col')['default'] ElCollapse: typeof import('element-plus/es/el-collapse')['default'] ElCollapseItem: typeof import('element-plus/es/el-collapse-item')['default'] + ElConfigProvider: typeof import('element-plus/es/el-config-provider')['default'] ElContainer: typeof import('element-plus/es/el-container')['default'] ElDialog: typeof import('element-plus/es/el-dialog')['default'] ElDropdown: typeof import('element-plus/es/el-dropdown')['default'] diff --git a/package.json b/package.json index b69dc9d..8f1766f 100644 --- a/package.json +++ b/package.json @@ -21,63 +21,63 @@ }, "dependencies": { "@vant/touch-emulator": "^1.3.2", - "@vueuse/core": "^5.2.0", - "@vueuse/integrations": "^5.2.0", + "@vueuse/core": "^5.3.0", + "@vueuse/integrations": "^5.3.0", "animate.css": "^4.1.1", "axios": "^0.21.1", "dayjs": "^1.10.6", "dexie": "^3.0.3", - "element-plus": "1.0.2-beta.58", + "element-plus": "1.0.2-beta.70", "lodash": "^4.17.21", "monaco-editor": "^0.26.1", - "nanoid": "^3.1.23", + "nanoid": "^3.1.25", "normalize.css": "^8.0.1", "nprogress": "^1.0.0-1", "qrcode": "^1.4.4", "qs": "^6.10.1", - "vant": "3.1.4", - "vue": "3.1.5", - "vue-router": "^4.0.10", + "vant": "3.2.0", + "vue": "3.2.2", + "vue-router": "^4.0.11", "vuedraggable": "^4.0.3", "vuex": "^4.0.2" }, "devDependencies": { "@commitlint/cli": "^13.1.0", "@commitlint/config-conventional": "^13.1.0", - "@types/node": "^16.4.2", - "@typescript-eslint/eslint-plugin": "^4.28.4", - "@typescript-eslint/parser": "^4.28.4", - "@vitejs/plugin-legacy": "^1.4.4", - "@vitejs/plugin-vue": "^1.2.5", - "@vitejs/plugin-vue-jsx": "^1.1.6", - "@vue/compiler-sfc": "3.1.5", + "@types/node": "^16.6.0", + "@typescript-eslint/eslint-plugin": "^4.29.1", + "@typescript-eslint/parser": "^4.29.1", + "@vitejs/plugin-legacy": "^1.5.1", + "@vitejs/plugin-vue": "^1.4.0", + "@vitejs/plugin-vue-jsx": "^1.1.7", + "@vue/compiler-sfc": "3.2.2", "commitizen": "^4.2.4", "cross-env": "^7.0.3", "cz-conventional-changelog": "^3.3.0", "cz-customizable": "^6.3.0", - "eslint": "^7.31.0", + "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", - "eslint-plugin-import": "^2.23.4", + "eslint-plugin-import": "^2.24.0", "eslint-plugin-prettier": "^3.4.0", - "eslint-plugin-vue": "^7.14.0", + "eslint-plugin-vue": "^7.16.0", "gh-pages": "^3.2.3", "husky": "^7.0.1", - "lint-staged": "^11.1.1", + "lint-staged": "^11.1.2", "prettier": "^2.3.2", "pretty-quick": "^3.1.1", - "sass": "1.36.0", + "sass": "1.37.5", "stylelint": "^13.13.1", "stylelint-config-prettier": "^8.0.2", "stylelint-config-standard": "^22.0.0", "stylelint-order": "^4.1.0", "typescript": "^4.3.5", - "vite": "2.4.3", + "vite": "2.4.4", "vite-plugin-components": "^0.13.2", - "vite-plugin-style-import": "^1.0.1", - "vite-plugin-windicss": "^1.2.5", - "vue-eslint-parser": "^7.9.0", + "vite-plugin-style-import": "^1.1.1", + "vite-plugin-windicss": "^1.2.7", + "vue-eslint-parser": "^7.10.0", "vue-tsc": "^0.2.2", - "windicss": "^3.1.5" + "windicss": "^3.1.7" }, "repository": { "type": "git", diff --git a/src/App.vue b/src/App.vue index 11699e5..b5f3802 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,11 +1,14 @@