plm前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
265 B

1 year ago
  1. export default {
  2. update(el,binding, vnode){
  3. const input = el.querySelector('input');
  4. if (binding.value === false){
  5. input.value = "********";
  6. input.setAttribute('readonly', true)
  7. }else {
  8. input.removeAttribute('readonly');
  9. }
  10. }
  11. }