From 0c37e693c249ecffe5c40da4121e2d2a77f6e4bf Mon Sep 17 00:00:00 2001 From: bqy_fe <1743369777@qq.com> Date: Tue, 7 Sep 2021 16:09:59 +0800 Subject: [PATCH] chore: :arrow_up: update deps --- .eslintrc.js | 4 +- README.md | 2 +- components.d.ts | 42 +- package.json | 54 +- src/App.vue | 4 +- src/plugins/element-plus.ts | 96 +- stylelint.config.js | 8 +- tsconfig.json | 46 +- types/shims/shims-app.d.ts | 67 ++ types/shims/shims-tsx.d.ts | 18 + types/shims/shims-vue.d.ts | 24 + types/vuex.d.ts | 16 + vite.config.ts | 24 +- yarn.lock | 1838 ++++++++++++++++------------------- 14 files changed, 1130 insertions(+), 1113 deletions(-) create mode 100644 types/shims/shims-app.d.ts create mode 100644 types/shims/shims-tsx.d.ts create mode 100644 types/shims/shims-vue.d.ts create mode 100644 types/vuex.d.ts diff --git a/.eslintrc.js b/.eslintrc.js index db6fdf9..5106789 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -18,8 +18,8 @@ module.exports = { extends: [ 'plugin:vue/vue3-recommended', 'plugin:@typescript-eslint/recommended', - 'prettier', - 'plugin:prettier/recommended' + 'plugin:prettier/recommended', + 'prettier' ], rules: { 'vue/require-default-prop': 'off', diff --git a/README.md b/README.md index 7bc28e4..0e45ba2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 基于 Vite2.x + Vue3.x + TypeScript H5 低代码平台 -### 只是一个简单的模板,感兴趣可以根据自己的需要调整, 在这里你可以看到 vue3 很多有趣的新特性和玩法。 +### 目前还只是一个简单的模板,后面可能会引入较为完善的机制系统,感兴趣的小伙伴可以根据自己的需要去调整, 通过这个项目或许你可以学到 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 6bc1810..0268008 100644 --- a/components.d.ts +++ b/components.d.ts @@ -3,27 +3,27 @@ declare module 'vue' { export interface GlobalComponents { - ElAside: typeof import('element-plus/es/el-aside')['default'] - ElButton: typeof import('element-plus/es/el-button')['default'] - 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'] - ElDropdownItem: typeof import('element-plus/es/el-dropdown-item')['default'] - ElDropdownMenu: typeof import('element-plus/es/el-dropdown-menu')['default'] - ElHeader: typeof import('element-plus/es/el-header')['default'] - ElMain: typeof import('element-plus/es/el-main')['default'] - ElPopconfirm: typeof import('element-plus/es/el-popconfirm')['default'] - ElPopover: typeof import('element-plus/es/el-popover')['default'] - ElRow: typeof import('element-plus/es/el-row')['default'] - ElTabPane: typeof import('element-plus/es/el-tab-pane')['default'] - ElTabs: typeof import('element-plus/es/el-tabs')['default'] - ElTag: typeof import('element-plus/es/el-tag')['default'] - ElTooltip: typeof import('element-plus/es/el-tooltip')['default'] - ElTree: typeof import('element-plus/es/el-tree')['default'] + ElAside: typeof import('element-plus/es')['ElAside'] + ElButton: typeof import('element-plus/es')['ElButton'] + ElCol: typeof import('element-plus/es')['ElCol'] + ElCollapse: typeof import('element-plus/es')['ElCollapse'] + ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem'] + ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] + ElContainer: typeof import('element-plus/es')['ElContainer'] + ElDialog: typeof import('element-plus/es')['ElDialog'] + ElDropdown: typeof import('element-plus/es')['ElDropdown'] + ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem'] + ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu'] + ElHeader: typeof import('element-plus/es')['ElHeader'] + ElMain: typeof import('element-plus/es')['ElMain'] + ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm'] + ElPopover: typeof import('element-plus/es')['ElPopover'] + ElRow: typeof import('element-plus/es')['ElRow'] + ElTabPane: typeof import('element-plus/es')['ElTabPane'] + ElTabs: typeof import('element-plus/es')['ElTabs'] + ElTag: typeof import('element-plus/es')['ElTag'] + ElTooltip: typeof import('element-plus/es')['ElTooltip'] + ElTree: typeof import('element-plus/es')['ElTree'] } } diff --git a/package.json b/package.json index 8f1766f..1c9a063 100644 --- a/package.json +++ b/package.json @@ -21,62 +21,64 @@ }, "dependencies": { "@vant/touch-emulator": "^1.3.2", - "@vueuse/core": "^5.3.0", - "@vueuse/integrations": "^5.3.0", + "@vueuse/core": "^6.2.1", + "@vueuse/integrations": "^6.2.1", "animate.css": "^4.1.1", - "axios": "^0.21.1", + "axios": "^0.21.4", "dayjs": "^1.10.6", "dexie": "^3.0.3", - "element-plus": "1.0.2-beta.70", + "element-plus": "1.1.0-beta.9", "lodash": "^4.17.21", - "monaco-editor": "^0.26.1", + "monaco-editor": "^0.27.0", "nanoid": "^3.1.25", "normalize.css": "^8.0.1", "nprogress": "^1.0.0-1", "qrcode": "^1.4.4", "qs": "^6.10.1", - "vant": "3.2.0", - "vue": "3.2.2", + "vant": "3.2.2", + "vue": "3.2.9", "vue-router": "^4.0.11", - "vuedraggable": "^4.0.3", + "vuedraggable": "^4.1.0", "vuex": "^4.0.2" }, "devDependencies": { "@commitlint/cli": "^13.1.0", "@commitlint/config-conventional": "^13.1.0", - "@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", + "@types/lodash": "^4.14.172", + "@types/node": "^16.7.12", + "@typescript-eslint/eslint-plugin": "^4.31.0", + "@typescript-eslint/parser": "^4.31.0", + "@vitejs/plugin-legacy": "^1.5.2", + "@vitejs/plugin-vue": "^1.6.1", "@vitejs/plugin-vue-jsx": "^1.1.7", - "@vue/compiler-sfc": "3.2.2", + "@vue/compiler-sfc": "3.2.9", "commitizen": "^4.2.4", "cross-env": "^7.0.3", "cz-conventional-changelog": "^3.3.0", "cz-customizable": "^6.3.0", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", - "eslint-plugin-import": "^2.24.0", - "eslint-plugin-prettier": "^3.4.0", - "eslint-plugin-vue": "^7.16.0", + "eslint-plugin-import": "^2.24.2", + "eslint-plugin-prettier": "^4.0.0", + "eslint-plugin-vue": "^7.17.0", "gh-pages": "^3.2.3", - "husky": "^7.0.1", + "husky": "^7.0.2", "lint-staged": "^11.1.2", "prettier": "^2.3.2", "pretty-quick": "^3.1.1", - "sass": "1.37.5", + "sass": "1.39.0", "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.4", - "vite-plugin-components": "^0.13.2", - "vite-plugin-style-import": "^1.1.1", - "vite-plugin-windicss": "^1.2.7", - "vue-eslint-parser": "^7.10.0", - "vue-tsc": "^0.2.2", + "stylelint-scss": "^3.20.1", + "typescript": "^4.4.2", + "vite": "2.5.3", + "vite-plugin-components": "^0.13.3", + "vite-plugin-element-plus": "^0.0.12", + "vite-plugin-windicss": "^1.4.1", + "vue-eslint-parser": "^7.11.0", + "vue-tsc": "^0.3.0", "windicss": "^3.1.7" }, "repository": { diff --git a/src/App.vue b/src/App.vue index b5f3802..466f2e2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@