From d312aaa5fc428fa77151060259c6ad6da92bef8e Mon Sep 17 00:00:00 2001 From: "lihao.ylh" Date: Mon, 25 Oct 2021 11:31:36 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=B0=83=E6=95=B4=E5=BC=95?= =?UTF-8?q?=E6=93=8E=E5=86=85=E7=9A=84=E8=A1=8C=E5=8A=A8=E7=82=B9=E7=9A=84?= =?UTF-8?q?=20icon,=20=E5=85=B7=E4=BD=93=E5=8F=82=E8=A7=81=20#111480?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/designer/jest.config.js | 2 +- packages/designer/src/component-meta.ts | 4 ++-- .../src/components/widget-views/panel-operation-row.tsx | 2 +- packages/editor-skeleton/src/icons/fix.tsx | 6 +++++- packages/plugin-outline-pane/src/views/tree-title.tsx | 4 ++-- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/packages/designer/jest.config.js b/packages/designer/jest.config.js index b32307826..9b3b48919 100644 --- a/packages/designer/jest.config.js +++ b/packages/designer/jest.config.js @@ -6,7 +6,7 @@ module.exports = { // // '^.+\\.(ts|tsx)$': 'ts-jest', // // '^.+\\.(js|jsx)$': 'babel-jest', // }, - testMatch: ['**/bugs/*.test.ts'], + // testMatch: ['**/bugs/*.test.ts'], // testMatch: ['(/tests?/.*(test))\\.[jt]s$'], transformIgnorePatterns: [ `/node_modules/(?!${esModules})/`, diff --git a/packages/designer/src/component-meta.ts b/packages/designer/src/component-meta.ts index e8c5445cb..9baa5726d 100644 --- a/packages/designer/src/component-meta.ts +++ b/packages/designer/src/component-meta.ts @@ -471,7 +471,7 @@ const builtinComponentActions: ComponentAction[] = [ { name: 'lock', content: { - icon: IconUnlock, // 解锁icon + icon: IconLock, // 锁定 icon title: intlNode('lock'), action(node: Node) { node.lock(); @@ -485,7 +485,7 @@ const builtinComponentActions: ComponentAction[] = [ { name: 'unlock', content: { - icon: IconLock, // 锁定icon + icon: IconUnlock, // 解锁 icon title: intlNode('unlock'), action(node: Node) { node.lock(false); diff --git a/packages/editor-skeleton/src/components/widget-views/panel-operation-row.tsx b/packages/editor-skeleton/src/components/widget-views/panel-operation-row.tsx index f5b9d3d93..a280faf9e 100644 --- a/packages/editor-skeleton/src/components/widget-views/panel-operation-row.tsx +++ b/packages/editor-skeleton/src/components/widget-views/panel-operation-row.tsx @@ -46,7 +46,7 @@ export default class PanelOperationRow extends Component<{ panel: Panel }> { {canSetFixed && ( // eslint-disable-next-line react/jsx-no-bind )}