From c56ed765346c003e3241569917deb42cce4c6d55 Mon Sep 17 00:00:00 2001 From: hxr <1490493387@qq.com> Date: Wed, 19 Jul 2023 23:57:17 +0800 Subject: [PATCH 1/6] =?UTF-8?q?feat:=20:sparkles:=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=AD=97=E5=85=B8=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 784fe1ff49d6224fce1f47e22b6b90ff819567f3 --- src/components/Dictionay/index.vue | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 src/components/Dictionay/index.vue diff --git a/src/components/Dictionay/index.vue b/src/components/Dictionay/index.vue new file mode 100644 index 00000000..e69de29b From 3372a05e0b9cdc7547b59eb0403e911b002f9e10 Mon Sep 17 00:00:00 2001 From: hxr <1490493387@qq.com> Date: Thu, 20 Jul 2023 01:31:23 +0800 Subject: [PATCH 2/6] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E5=AD=97?= =?UTF-8?q?=E5=85=B8=E7=BB=84=E4=BB=B6=E5=B0=81=E8=A3=85=E5=92=8C=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: bb4ce3c0504987d8f33dbd09c93f685e5ca3b9df --- src/api/dict/index.ts | 64 ++++++++++++++--------------- src/components/Dictionary/index.vue | 53 ++++++++++++++++++++++++ src/components/Dictionay/index.vue | 0 src/types/components.d.ts | 1 + src/views/demo/dict.vue | 21 ++++++++++ 5 files changed, 107 insertions(+), 32 deletions(-) create mode 100644 src/components/Dictionary/index.vue delete mode 100644 src/components/Dictionay/index.vue create mode 100644 src/views/demo/dict.vue diff --git a/src/api/dict/index.ts b/src/api/dict/index.ts index ab67b20f..635297eb 100644 --- a/src/api/dict/index.ts +++ b/src/api/dict/index.ts @@ -1,13 +1,13 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; +import request from "@/utils/request"; +import { AxiosPromise } from "axios"; import { DictTypeQuery, DictTypePageResult, DictTypeForm, DictQuery, DictForm, - DictPageResult -} from './types'; + DictPageResult, +} from "./types"; /** * 字典类型分页列表 @@ -18,9 +18,9 @@ export function getDictTypePage( queryParams: DictTypeQuery ): AxiosPromise { return request({ - url: '/api/v1/dict/types/page', - method: 'get', - params: queryParams + url: "/api/v1/dict/types/page", + method: "get", + params: queryParams, }); } @@ -31,8 +31,8 @@ export function getDictTypePage( */ export function getDictTypeForm(id: number): AxiosPromise { return request({ - url: '/api/v1/dict/types/' + id + '/form', - method: 'get' + url: "/api/v1/dict/types/" + id + "/form", + method: "get", }); } @@ -43,9 +43,9 @@ export function getDictTypeForm(id: number): AxiosPromise { */ export function addDictType(data: DictTypeForm) { return request({ - url: '/api/v1/dict/types', - method: 'post', - data: data + url: "/api/v1/dict/types", + method: "post", + data: data, }); } @@ -57,9 +57,9 @@ export function addDictType(data: DictTypeForm) { */ export function updateDictType(id: number, data: DictTypeForm) { return request({ - url: '/api/v1/dict/types/' + id, - method: 'put', - data: data + url: "/api/v1/dict/types/" + id, + method: "put", + data: data, }); } @@ -68,8 +68,8 @@ export function updateDictType(id: number, data: DictTypeForm) { */ export function deleteDictTypes(ids: string) { return request({ - url: '/api/v1/dict/types/' + ids, - method: 'delete' + url: "/api/v1/dict/types/" + ids, + method: "delete", }); } @@ -80,8 +80,8 @@ export function deleteDictTypes(ids: string) { */ export function getDictOptions(typeCode: string): AxiosPromise { return request({ - url: '/api/v1/dict/types/' + typeCode + '/items', - method: 'get' + url: "/api/v1/dict/" + typeCode + "/options", + method: "get", }); } @@ -92,9 +92,9 @@ export function getDictPage( queryParams: DictQuery ): AxiosPromise { return request({ - url: '/api/v1/dict/page', - method: 'get', - params: queryParams + url: "/api/v1/dict/page", + method: "get", + params: queryParams, }); } @@ -105,8 +105,8 @@ export function getDictPage( */ export function getDictFormData(id: number): AxiosPromise { return request({ - url: '/api/v1/dict/' + id + '/form', - method: 'get' + url: "/api/v1/dict/" + id + "/form", + method: "get", }); } @@ -117,9 +117,9 @@ export function getDictFormData(id: number): AxiosPromise { */ export function addDict(data: DictForm) { return request({ - url: '/api/v1/dict', - method: 'post', - data: data + url: "/api/v1/dict", + method: "post", + data: data, }); } @@ -131,9 +131,9 @@ export function addDict(data: DictForm) { */ export function updateDict(id: number, data: DictForm) { return request({ - url: '/api/v1/dict/' + id, - method: 'put', - data: data + url: "/api/v1/dict/" + id, + method: "put", + data: data, }); } @@ -144,7 +144,7 @@ export function updateDict(id: number, data: DictForm) { */ export function deleteDict(ids: string) { return request({ - url: '/api/v1/dict/' + ids, - method: 'delete' + url: "/api/v1/dict/" + ids, + method: "delete", }); } diff --git a/src/components/Dictionary/index.vue b/src/components/Dictionary/index.vue new file mode 100644 index 00000000..892cc642 --- /dev/null +++ b/src/components/Dictionary/index.vue @@ -0,0 +1,53 @@ + + + diff --git a/src/components/Dictionay/index.vue b/src/components/Dictionay/index.vue deleted file mode 100644 index e69de29b..00000000 diff --git a/src/types/components.d.ts b/src/types/components.d.ts index a9bed336..d2439624 100644 --- a/src/types/components.d.ts +++ b/src/types/components.d.ts @@ -91,6 +91,7 @@ declare module "@vue/runtime-core" { TagInput: typeof import("./../components/TagInput/index.vue")["default"]; TagsView: typeof import("./../layout/components/TagsView/index.vue")["default"]; WangEditor: typeof import("./../components/WangEditor/index.vue")["default"]; + Dictionary: typeof import("./../components/Dictionary/index.vue")["default"]; } export interface ComponentCustomProperties { vLoading: typeof import("element-plus/es")["ElLoadingDirective"]; diff --git a/src/views/demo/dict.vue b/src/views/demo/dict.vue new file mode 100644 index 00000000..4c82ef70 --- /dev/null +++ b/src/views/demo/dict.vue @@ -0,0 +1,21 @@ + + + + From d260a0c02568d9bbe330a823aeeb418ea77010d3 Mon Sep 17 00:00:00 2001 From: hxr <1490493387@qq.com> Date: Thu, 20 Jul 2023 01:46:22 +0800 Subject: [PATCH 3/6] =?UTF-8?q?docs:=20:memo:=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=BC=95=E7=94=A8=E5=87=BD=E6=95=B0=E7=88=86?= =?UTF-8?q?=E7=BA=A2=E6=B3=A8=E6=84=8F=E4=BA=8B=E9=A1=B9=E5=92=8C=E8=A7=A3?= =?UTF-8?q?=E5=86=B3=E6=96=B9=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: b19ca0512990f18d5583aa9663e6da7501e0a6eb --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 7ae7ea76..63e929d6 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,10 @@ server { 项目同步仓库更新升级之后,建议 `pnpm install` 安装更新依赖之后启动 。 +- **项目组件、函数和引用爆红** + + 重启 VSCode 尝试 + - **其他问题** 如果有其他问题或者建议,建议 [ISSUE](https://gitee.com/youlaiorg/vue3-element-admin/issues/new) From b9625f8becd0d26a363384d872a669bde9ddad5a Mon Sep 17 00:00:00 2001 From: hxr <1490493387@qq.com> Date: Thu, 20 Jul 2023 01:47:07 +0800 Subject: [PATCH 4/6] =?UTF-8?q?docs:=20:memo:=20=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: a4e18688075b5914edfebe63549ce9505c2ee960 --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb19a4a5..6419785f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# 2.4.1 (2023/7/20) + +### ✨ feat +- 整合 vite-plugin-compression 插件打包优化(3.66MB → 1.58MB) (author by [april-tong](https://april-tong.com/)) +- 字典组件封装(author by [haoxr](https://juejin.cn/user/4187394044331261/posts)) + # 2.4.0 (2023/6/17) ### ✨ feat From 4e3e49990394b9a91f31730e372e314e2d2d219c Mon Sep 17 00:00:00 2001 From: hxr <1490493387@qq.com> Date: Thu, 20 Jul 2023 01:48:12 +0800 Subject: [PATCH 5/6] =?UTF-8?q?chore:=20:hammer:=20=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B72.4.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: f7ff255099c4f58778b773ac0331a0782cd1d331 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 89ac747f..2aab06c5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vue3-element-admin", "private": true, - "version": "2.4.0", + "version": "2.4.1", "type": "module", "scripts": { "preinstall": "npx only-allow pnpm", From 620f6ca38f7f4da47e9a8352d0567234dd45f2c0 Mon Sep 17 00:00:00 2001 From: hxr <1490493387@qq.com> Date: Thu, 20 Jul 2023 01:51:39 +0800 Subject: [PATCH 6/6] =?UTF-8?q?docs:=20:memo:=20=E9=A1=B9=E7=9B=AE2.4.1?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=9B=B4=E6=96=B0=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 998cb52eaa3d2ceb35621594e7e7a4b679279c83 --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6419785f..b64c5b5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ - 整合 vite-plugin-compression 插件打包优化(3.66MB → 1.58MB) (author by [april-tong](https://april-tong.com/)) - 字典组件封装(author by [haoxr](https://juejin.cn/user/4187394044331261/posts)) +### 🐛 fix +- 分页组件hidden无效 +- 签名无法保存至后端 +- Git 提交 stylelint 校验部分机器报错 + # 2.4.0 (2023/6/17) ### ✨ feat