style: 优化场景联动卡片的省略内容显示样式

This commit is contained in:
xieyonghong 2023-03-27 09:24:45 +08:00
parent 9b459f2507
commit fed5c348e0
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ export const handleParamsData = (data: any[], key: string = 'column'): any[] =>
export const thenRules = [{
validator(_: string, value: any) {
if (!value || (value && !value.length) || !v.some(item => item.actions && item.actions.length)) {
if (!value || (value && !value.length) || !value.some(item => item.actions && item.actions.length)) {
return Promise.reject('至少配置一个执行动作')
}
return Promise.resolve();

View File

@ -52,14 +52,14 @@
{{ slotProps.name }}
</span>
</Ellipsis>
<div class="subTitle">
<Ellipsis :lineClamp="2">
<div class="subTitle">
说明{{
slotProps?.description ||
typeMap.get(slotProps.triggerType)?.tip
}}
</div>
</Ellipsis>
</div>
</template>
<template #actions="item">
<PermissionButton