diff --git a/.vscode/settings.json b/.vscode/settings.json index d2284bc..b747179 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -9,5 +9,8 @@ }, "css.validate": false, "less.validate": false, - "scss.validate": false + "scss.validate": false, + "i18n-ally.localesPaths": [ + "src/languages" + ] } diff --git a/src/common/hooks/history.ts b/src/common/hooks/history.ts index cfb09cf..988374a 100644 --- a/src/common/hooks/history.ts +++ b/src/common/hooks/history.ts @@ -6,7 +6,7 @@ * 差分补丁目前已知的问题是,对于预期以外的影响状态树的修改,现在都会写进历史记录,看起来就像多了一段毫无变化的历史栈一样 * 例如图层的 left 在修改后可能为 12.6262638 但为了输入框中显示友好,在 input 组件中将自动格式化为 12.63,这个逻辑以前不会有问题,现在则不能这么做了 * @LastEditors: ShawnPhang - * @LastEditTime: 2024-05-18 01:51:34 + * @LastEditTime: 2024-05-22 19:33:04 */ import { onMounted } from 'vue' // import WebWorker from '@/utils/plugins/webWorker' @@ -14,7 +14,7 @@ import historyFactory from '@/utils/widgets/diffLayouts' import { useHistoryStore, useWidgetStore } from '@/store' const blackClass: string[] = ['operation-item', 'icon-undo', 'icon-redo'] -const whiteKey: string[] = ['ArrowLeft', 'ArrowDown', 'ArrowRight', 'ArrowUp', 'Backspace', 'Delete'] +const whiteKey: string[] = ['ArrowLeft', 'ArrowDown', 'ArrowRight', 'ArrowUp', 'Backspace', 'Delete', 'v'] const historyStore = useHistoryStore() const widgetStore = useWidgetStore() diff --git a/src/components/modules/layout/designBoard/index.vue b/src/components/modules/layout/designBoard/index.vue index 5cc0156..cc16a2c 100644 --- a/src/components/modules/layout/designBoard/index.vue +++ b/src/components/modules/layout/designBoard/index.vue @@ -3,7 +3,7 @@ * @Date: 2024-04-10 23:02:46 * @Description: 主画布 * @LastEditors: ShawnPhang - * @LastEditTime: 2024-04-16 11:34:08 + * @LastEditTime: 2024-05-22 19:29:51 -->