From 79362bc5180214325e0ab12ad69fa643b5c65145 Mon Sep 17 00:00:00 2001 From: jialin Date: Wed, 6 Mar 2024 13:04:19 +0800 Subject: [PATCH] fix(style): editor size in fullscreen --- components.d.ts | 4 + src/assets/style/variable.less | 2 +- src/components/code-diff-view/index.vue | 13 +- .../highlight-block/code-viewer.vue | 5 +- src/components/highlight-block/index.vue | 2 +- src/components/menu/config/index.ts | 2 +- src/components/menu/index.vue | 112 ++++++++++++------ .../seal-form/components/seal-select.vue | 22 +--- src/env.d.ts | 5 + src/locale/en-US.ts | 1 + src/locale/zh-CN.ts | 1 + .../components/runs/detail-modal/index.vue | 10 +- .../runs/detail-modal/run-attributes.vue | 10 +- .../runs/detail-modal/run-change-history.vue | 11 ++ .../services/pages/edit.vue | 32 +++-- .../components/definition-rules.vue | 18 ++- 16 files changed, 167 insertions(+), 83 deletions(-) diff --git a/components.d.ts b/components.d.ts index c6110a560..4f1d45626 100644 --- a/components.d.ts +++ b/components.d.ts @@ -17,6 +17,7 @@ declare module 'vue' { ADescriptions: typeof import('@arco-design/web-vue')['Descriptions']; ADivider: typeof import('@arco-design/web-vue')['Divider']; ADoption: typeof import('@arco-design/web-vue')['Doption']; + ADropdown: typeof import('@arco-design/web-vue')['Dropdown']; AEmpty: typeof import('@arco-design/web-vue')['Empty']; AForm: typeof import('@arco-design/web-vue')['Form']; AFormItem: typeof import('@arco-design/web-vue')['FormItem']; @@ -25,8 +26,10 @@ declare module 'vue' { AInput: typeof import('@arco-design/web-vue')['Input']; AInputNumber: typeof import('@arco-design/web-vue')['InputNumber']; AInputPassword: typeof import('@arco-design/web-vue')['InputPassword']; + AInputSearch: typeof import('@arco-design/web-vue')['InputSearch']; ALayout: typeof import('@arco-design/web-vue')['Layout']; ALayoutContent: typeof import('@arco-design/web-vue')['LayoutContent']; + ALayoutFooter: typeof import('@arco-design/web-vue')['LayoutFooter']; ALayoutSider: typeof import('@arco-design/web-vue')['LayoutSider']; ALink: typeof import('@arco-design/web-vue')['Link']; AMenu: typeof import('@arco-design/web-vue')['Menu']; @@ -48,6 +51,7 @@ declare module 'vue' { ATag: typeof import('@arco-design/web-vue')['Tag']; ATextarea: typeof import('@arco-design/web-vue')['Textarea']; ATooltip: typeof import('@arco-design/web-vue')['Tooltip']; + AUpload: typeof import('@arco-design/web-vue')['Upload']; } } diff --git a/src/assets/style/variable.less b/src/assets/style/variable.less index c13b6a5a3..ab61fa38b 100644 --- a/src/assets/style/variable.less +++ b/src/assets/style/variable.less @@ -100,7 +100,7 @@ body { --color-data-card-shadow: 0 0 6px rgba(229, 230, 235, 0.3); // form card shadow - --color-form-card-shadow: 0 4px 3px -1px rgba(234, 236, 238, 1), + --color-form-card-shadow: 0 4px 3px -2px rgba(234, 236, 238, 1), 0 1px 4px 0 rgba(169, 174, 184, 0.2); --color-form-card-shadow-hover: rgba(169, 174, 184, 1) 0 3px 6px -1px, rgba(169, 174, 184, 0.2) 0 3px 6px 0; diff --git a/src/components/code-diff-view/index.vue b/src/components/code-diff-view/index.vue index 8c903992a..ff9c4e1cb 100644 --- a/src/components/code-diff-view/index.vue +++ b/src/components/code-diff-view/index.vue @@ -1,4 +1,5 @@