From b327f969592465ea75fca1cfd065f7eda5df188c Mon Sep 17 00:00:00 2001 From: Kilian Date: Wed, 1 Nov 2023 23:17:36 +0800 Subject: [PATCH] fix: one way link icon (#3) * fix: one way link icon * fix: update npm version --- package.json | 2 +- src/form_components/field_select.tsx | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index edb587e..814440d 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "1.1.6", + "version": "1.2.0", "description": "my apitable widget chart", "engines": { "node": ">=8.x" diff --git a/src/form_components/field_select.tsx b/src/form_components/field_select.tsx index 293f371..326c9a4 100644 --- a/src/form_components/field_select.tsx +++ b/src/form_components/field_select.tsx @@ -27,6 +27,8 @@ import { ColumnLookupFilled, ColumnRatingFilled, CascadeOutlined, + OneWayLinkOutlined, + TwoWayLinkOutlined } from '@apitable/icons'; import styled from 'styled-components'; import { Strings } from '../i18n'; @@ -39,6 +41,8 @@ const FieldIconMap = { [FieldType.MultiSelect]: ColumnMultipleFilled, [FieldType.DateTime]: ColumnCalendarFilled, // FIXME: icon there is a problem with the naming. [FieldType.Attachment]: ColumnAttachmentFilled, + [FieldType.OneWayLink]: OneWayLinkOutlined, + [FieldType.TwoWayLink]: TwoWayLinkOutlined, [FieldType.MagicLink]: ColumnLinktableFilled, // ? [FieldType.URL]: ColumnUrlOutlined, [FieldType.Email]: ColumnEmailFilled,