From 03fb8af6eb071bef24a1ab3224905c13f238241d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 18 六月 2023 15:49:13 +0800 Subject: [PATCH] 2023-06-18 --- src/menu/components/share/markcomponent/index.jsx | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/menu/components/share/markcomponent/index.jsx b/src/menu/components/share/markcomponent/index.jsx index 53a2a73..c188601 100644 --- a/src/menu/components/share/markcomponent/index.jsx +++ b/src/menu/components/share/markcomponent/index.jsx @@ -34,6 +34,15 @@ editable: true, inputType: 'cascader', options: [], + rules: [{ + validator: (rule, value, callback) => { + if (value[1] === 'dynamic' && value[0] === value[2]) { + callback('瀵规瘮瀛楁涓嶅彲鐩稿悓锛�') + } else { + callback() + } + } + }], render: text => { return ( <div>{text[0]} VS {text[2] ? text[2] : '闈欐�佸��'}</div> -- Gitblit v1.8.0