From 855bb5b6e2df5bc048e040bf92df63076e9472c4 Mon Sep 17 00:00:00 2001 From: ZLY Date: Tue, 11 Nov 2025 16:13:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(const):=E4=BF=AE=E6=94=B9=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/const/isdp/componentRelease.ts | 53 +++++++++++++++--------------- 1 file changed, 26 insertions(+), 27 deletions(-) diff --git a/src/const/isdp/componentRelease.ts b/src/const/isdp/componentRelease.ts index 17b9d1c..e40d2ab 100644 --- a/src/const/isdp/componentRelease.ts +++ b/src/const/isdp/componentRelease.ts @@ -1,19 +1,18 @@ import { globalOption, patternTrim } from '../globalOption'; -import { componentBaseTagsUrl } from '@/api/isdp/componentBase'; export const releaseMaping = { 0: { label: '未公开', - type: 'info', + type: 'info' }, '-1': { label: '未公开', - type: 'info', + type: 'info' }, 1: { label: '已公开', - type: 'success', - }, + type: 'success' + } }; export const option = { @@ -42,11 +41,11 @@ export const option = { { required: true, message: '组件名称不能为空', - trigger: 'blur', + trigger: 'blur' }, patternTrim, - { max: 20, message: '组件名称最长为20字符' }, - ], + { max: 20, message: '组件名称最长为20字符' } + ] }, { label: '项目名', @@ -59,11 +58,11 @@ export const option = { { required: true, message: '项目名不能为空' }, { pattern: /^([a-z][a-z0-9]*[_-]?)+$/, - message: '项目名由小写字母、数字、"-"、"_"组成,以小写字母开头,且“-”、"_"后第一个字符需为小写字母', + message: '项目名由小写字母、数字、"-"、"_"组成,以小写字母开头,且“-”、"_"后第一个字符需为小写字母' }, { max: 30, message: '项目名最长为30个字符' }, - patternTrim, - ], + patternTrim + ] }, { label: '版本号', @@ -78,15 +77,15 @@ export const option = { { required: true, message: '请输入组件版本号', - trigger: 'blur', + trigger: 'blur' }, // { // pattern: /^\d+(\.\d+){0,3}$/, // message: "版本只能是由数字组成的x.x或x.x.x格式", // trigger: "blur" // }, - { max: 20, message: '版本号最长为20字符' }, - ], + { max: 20, message: '版本号最长为20字符' } + ] }, { label: '分类', @@ -97,10 +96,10 @@ export const option = { dicUrl: '/api/blade-system/dict-biz/dictionary-tree?code=component_classify', props: { label: 'dictValue', - value: 'dictKey', + value: 'dictKey' }, span: 9, - rules: [{ required: true, message: '分类不能为空' }], + rules: [{ required: true, message: '分类不能为空' }] // search: true, }, { @@ -115,9 +114,9 @@ export const option = { placeholder: '请选择代码语言', props: { label: 'dictValue', - value: 'dictKey', + value: 'dictKey' }, - rules: [{ required: true, message: '代码语言不能为空' }], + rules: [{ required: true, message: '代码语言不能为空' }] }, { label: '标签', @@ -129,8 +128,8 @@ export const option = { filterable: true, placeholder: '请选择标签', span: 24, - dicUrl: componentBaseTagsUrl, - hide: true, + dicUrl: '/api/blade-isdp/componentBase/tags', + hide: true }, { label: '描述', @@ -141,7 +140,7 @@ export const option = { minRows: 2, maxLen: 100, rules: [{ max: 200, message: '最长为200个字符' }], - span: 24, + span: 24 }, { label: '图标', @@ -152,13 +151,13 @@ export const option = { action: '/api/blade-isdp/fileSystem/fileUpload', propsHttp: { res: 'data', - url: 'link', + url: 'link' }, fileType: 'img', limit: 1, fileSize: 1024, accept: 'image/png, image/jpeg, image/jpg', - tip: '图片尺寸不超过300*300像素,大小限制为1mb以内', + tip: '图片尺寸不超过300*300像素,大小限制为1mb以内' }, { label: '公开状态', @@ -166,14 +165,14 @@ export const option = { type: 'input', slot: true, display: false, - width: 90, + width: 90 }, { label: '修改时间', prop: 'updateTime', type: 'input', width: 130, - display: false, - }, - ], + display: false + } + ] };