Browse Source

Merge pull request #773 from cdswyda/fix/dataVerification

fix(dataVerificationCtrl): 修复文本长度验证切换选项时 下面输入框不切换的问题
master
Dushusir 4 years ago
committed by GitHub
parent
commit
4a6f1c327f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      src/controllers/dataVerificationCtrl.js

13
src/controllers/dataVerificationCtrl.js

@ -582,6 +582,19 @@ const dataVerificationCtrl = {
$("#luckysheet-dataVerification-dialog .show-box-item-number .input2").show();
}
});
// 文本长度选择变化
$(document).off("change.textLengthSelect").on("change.textLengthSelect", "#data-verification-textLength-select", function(e) {
$("#luckysheet-dataVerification-dialog .show-box-item-textLength .input").hide();
let value = this.value;
if(value == 'bw' || value == 'nb'){
$("#luckysheet-dataVerification-dialog .show-box-item-textLength .input1").show();
}
else{
$("#luckysheet-dataVerification-dialog .show-box-item-textLength .input2").show();
}
});
$(document).off("change.dateSelect").on("change.dateSelect", "#data-verification-date-select", function(e) {
$("#luckysheet-dataVerification-dialog .show-box-item-date .input").hide();

Loading…
Cancel
Save