Code Monkey home page Code Monkey logo

Comments (6)

ac8881 avatar ac8881 commented on July 17, 2024

还有就是,新增的表单里面有的,点编辑,哪怕设置了editDisplay:false,也会显示出来,反过来一样
确定以上的问题,都没有设置错误addDisplay和editDisplay ,试了只用display :false ,也不行,很蛋疼

from mineadmin-vue.

kanyxmo avatar kanyxmo commented on July 17, 2024

这个bug已经修复,拉取main分支的最新代码即可

from mineadmin-vue.

kanyxmo avatar kanyxmo commented on July 17, 2024

4515d20

from mineadmin-vue.

kanyxmo avatar kanyxmo commented on July 17, 2024

fb08531

display问题也可以照此修复下

from mineadmin-vue.

ac8881 avatar ac8881 commented on July 17, 2024

收到,感谢大佬🙏

from mineadmin-vue.

ac8881 avatar ac8881 commented on July 17, 2024

fb08531

display问题也可以照此修复下

不过使用这个代码还是有一些问题,我最后是这么修改的:

  let disabledProp = currentAction.value === 'add' ? 'addDisabled' : currentAction.value === 'edit' ? 'editDisabled' : 'disabled';

  if (typeof item[disabledProp] !== 'undefined') {
    return item[disabledProp];
  } else if (typeof item.disabled !== 'undefined') {
    return item.disabled;
  }

  return false;
};

from mineadmin-vue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.