Merge pull request #7413 from dataease/pr@dev-v2@style_label

style: 文案提示修改
This commit is contained in:
王嘉豪 2023-12-27 16:28:24 +08:00 committed by GitHub
commit b55d457d64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View File

@ -103,6 +103,11 @@ const state = reactive({
required: true,
message: t('commons.input_content'),
trigger: 'change'
},
{
max: 50,
message: t('commons.char_can_not_more_50'),
trigger: 'change'
}
],
categories: [
@ -153,6 +158,10 @@ const saveTemplate = () => {
ElMessage.warning(t('chart.name_can_not_empty'))
return false
}
if (state.templateInfo.name.length > 50) {
ElMessage.warning(t('commons.char_can_not_more_50'))
return false
}
if (!state.templateInfo.templateData) {
ElMessage.warning(t('chart.template_can_not_empty'))
return false
@ -278,7 +287,7 @@ if (props.templateId) {
justify-content: flex-end;
}
.preview {
margin-top: -12px;
margin-top: -5px;
border: 1px solid #e6e6e6;
height: 300px !important;
overflow: auto;

View File

@ -17,9 +17,6 @@
:class="[{ select: state.activeTemplate === ele.id }]"
@click="nodeClick(ele)"
>
<el-icon class="de-icon-sense">
<Icon name="scene" />
</el-icon>
<span class="text-template-overflow" :title="ele.name">{{ ele.name }}</span>
<span class="more" @click.stop>
<el-dropdown trigger="click" size="small" @command="type => clickMore(type, ele)">