From 5a177618fcef24f2dbe0c83b5942e595b2190e0e Mon Sep 17 00:00:00 2001 From: pomelo-nwu Date: Wed, 6 Sep 2023 17:32:50 +0800 Subject: [PATCH 1/2] feat: update version --- packages/gi-assets-algorithm/package.json | 2 +- packages/gi-assets-basic/package.json | 2 +- .../gi-assets-basic/src/components/RichContainer/Toolbar.tsx | 4 +++- packages/gi-sdk/package.json | 2 +- packages/gi-sdk/src/components/GIAC.tsx | 3 ++- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/gi-assets-algorithm/package.json b/packages/gi-assets-algorithm/package.json index 7562ea8d9..14f71f314 100644 --- a/packages/gi-assets-algorithm/package.json +++ b/packages/gi-assets-algorithm/package.json @@ -1,6 +1,6 @@ { "name": "@antv/gi-assets-algorithm", - "version": "2.3.8", + "version": "2.3.9", "description": "G6VP 图分析算法资产库", "repository": { "type": "git", diff --git a/packages/gi-assets-basic/package.json b/packages/gi-assets-basic/package.json index 34edce64e..185f0a798 100644 --- a/packages/gi-assets-basic/package.json +++ b/packages/gi-assets-basic/package.json @@ -1,6 +1,6 @@ { "name": "@antv/gi-assets-basic", - "version": "2.4.14", + "version": "2.4.16", "description": "G6VP 基础资产包", "main": "lib/index.js", "module": "es/index.js", diff --git a/packages/gi-assets-basic/src/components/RichContainer/Toolbar.tsx b/packages/gi-assets-basic/src/components/RichContainer/Toolbar.tsx index 6b9b20427..05dcb8975 100644 --- a/packages/gi-assets-basic/src/components/RichContainer/Toolbar.tsx +++ b/packages/gi-assets-basic/src/components/RichContainer/Toolbar.tsx @@ -32,9 +32,11 @@ const Toolbar = (props: ToolbarProps) => { const { GIAC_CONTENT } = itemProps; const title = GIAC_CONTENT ? GIAC_CONTENT.title : 'EMPTY'; const buttonType = isActive ? 'primary' : 'text'; + if (!HAS_GRAPH) { return null; } + if (!GIAC_CONTENT) { return ; } @@ -51,7 +53,7 @@ const Toolbar = (props: ToolbarProps) => { justifyContent: 'center', alignItems: 'center', width: 32, - marginRight: 8, + marginRight: 4, ...(isActive ? ActiveButtonStyle : {}), }} onClick={() => { diff --git a/packages/gi-sdk/package.json b/packages/gi-sdk/package.json index 2b5745ea9..360f3fe8f 100644 --- a/packages/gi-sdk/package.json +++ b/packages/gi-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@antv/gi-sdk", - "version": "2.4.10", + "version": "2.4.12", "description": "G6VP 核心画布渲染", "main": "lib/index.js", "module": "es/index.js", diff --git a/packages/gi-sdk/src/components/GIAC.tsx b/packages/gi-sdk/src/components/GIAC.tsx index ec75ab56f..85181eddc 100644 --- a/packages/gi-sdk/src/components/GIAC.tsx +++ b/packages/gi-sdk/src/components/GIAC.tsx @@ -41,12 +41,13 @@ const GIAComponent = (props: GIAComponentProps) => { } = GIAC || GIAC_PROPS.GIAC; const buttonStyle = isVertical - ? { height: '100%' } + ? { height: '100%', padding: '4px 8px' } : { display: 'flex', justifyContent: 'center', alignItems: 'center', }; + return (
Date: Thu, 7 Sep 2023 09:49:46 +0800 Subject: [PATCH 2/2] feat: fix ci --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3825349a8..44804857c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -28,7 +28,7 @@ jobs: # postInstall will build the product - name: Install dependencies and Build the product - run: pnpm install + run: pnpm install --no-frozen-lockfile - name: Workflow failed alert if: ${{ failure() }}