|
@@ -57,11 +57,9 @@ let displayLocation = $ref({
|
|
|
|
|
|
const handlingClickEvents = (cb, index) => {
|
|
|
let data = props.config[index]
|
|
|
- if (data.validator) {
|
|
|
- if (!data.validator(props.mousePosition.data)) {
|
|
|
- modal.value = false
|
|
|
- return;
|
|
|
- }
|
|
|
+ if (data.validator && !data.validator(props.mousePosition.data)) {
|
|
|
+ modal.value = false
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
cb(props.mousePosition.data, props.mousePosition.index);
|