Skip to content

Commit

Permalink
fix(frontend): mysql、spider库表输入限制更新 #7934
Browse files Browse the repository at this point in the history
  • Loading branch information
jinquantianxia committed Nov 13, 2024
1 parent e732759 commit 7d66190
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,16 +161,16 @@
message: t('不支持 *'),
trigger: 'change',
},
{
validator: (value: string[]) => {
if (_.some(value, (item) => /[*%?]/.test(item))) {
return value.length < 2;
}
return true;
},
message: t('含通配符的单元格仅支持输入单个对象'),
trigger: 'change',
},
// {
// validator: (value: string[]) => {
// if (_.some(value, (item) => /[*%?]/.test(item))) {
// return value.length < 2;
// }
// return true;
// },
// message: t('含通配符的单元格仅支持输入单个对象'),
// trigger: 'change',
// },
{
validator: (value: string[]) => _.every(value, (item) => !/^%$/.test(item)),
message: t('% 不允许单独使用'),
Expand Down

0 comments on commit 7d66190

Please sign in to comment.