From 2ba865af2c1f9ae33868b7de0f77a5fd2d0d8e34 Mon Sep 17 00:00:00 2001 From: "bai.zixv" Date: Wed, 17 Apr 2024 12:14:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=94=B9npm=E5=8C=85=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=99=A8=E9=BB=98=E8=AE=A4=E5=9C=B0=E5=9D=80,=20?= =?UTF-8?q?=E4=BB=A5=E5=8F=8A=20=E6=9B=B4=E6=94=B9dump-load=E7=9A=84file?= =?UTF-8?q?=E9=80=89=E9=A1=B9=E4=B8=BA=E5=BF=85=E9=80=89=20(#740)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-on: https://git.daoyoucloud.com/daoyoucloud/tachycode/pulls/740 Co-authored-by: bai.zixv Co-committed-by: bai.zixv --- .../core/client/src/pm/PluginForm/form/PluginNpmForm.tsx | 9 ++++++--- .../src/schema-component/antd/menu/Menu.Designer.tsx | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/core/client/src/pm/PluginForm/form/PluginNpmForm.tsx b/packages/core/client/src/pm/PluginForm/form/PluginNpmForm.tsx index e04f1bb8a..6b1974343 100644 --- a/packages/core/client/src/pm/PluginForm/form/PluginNpmForm.tsx +++ b/packages/core/client/src/pm/PluginForm/form/PluginNpmForm.tsx @@ -96,13 +96,16 @@ export const PluginNpmForm: FC = ({ onClose, isUpgrade, plu registry: { type: 'string', title: "{{t('Registry url')}}", - default: 'https://registry.npmjs.org/', + default: 'https://npm.daoyoucloud.com/', 'x-decorator': 'FormItem', 'x-component': 'Input', // required: true, - 'x-decorator-props': { - tooltip: 'Example: https://registry.npmjs.org/', + 'x-component-props': { + placeholder: 'https://registry.npmjs.org/', }, + // 'x-decorator-props': { + // tooltip: 'Example: https://registry.npmjs.org/', + // }, }, authToken: { type: 'string', diff --git a/packages/core/client/src/schema-component/antd/menu/Menu.Designer.tsx b/packages/core/client/src/schema-component/antd/menu/Menu.Designer.tsx index afbaef992..de0895299 100644 --- a/packages/core/client/src/schema-component/antd/menu/Menu.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/menu/Menu.Designer.tsx @@ -220,6 +220,7 @@ const InsertMenuItems = (props) => { file: { type: 'object', title: '{{ t("File") }}', + required: true, 'x-decorator': 'FormItem', 'x-component': 'Upload.Attachment', 'x-component-props': {