GithubHelp home page GithubHelp logo

crud-search筛选后,通过crud-toolbar隐藏搜索区,再展示后,搜索条件重置按钮无法重置 about d2-crud-plus HOT 1 CLOSED

YuuyaRin avatar YuuyaRin commented on June 3, 2024
crud-search筛选后,通过crud-toolbar隐藏搜索区,再展示后,搜索条件重置按钮无法重置

from d2-crud-plus.

Comments (1)

greper avatar greper commented on June 3, 2024

这是因为筛选框是被v-if控制显示和隐藏,实际上是重新被创建,当重新被创建时,它使用了当前的查询条件作为默认值。所以出现了这个问题。
你可以将:search.sync="crud.searchOptions.show"修改为:search.sync="crud.searchOptions.show2
然后给crud-search配置 v-show = crud.searchOptions.show2来控制搜索框的显隐

或者你还可以监听toolbar的update:search事件,收到此事件后,清空search.form的值

from d2-crud-plus.

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.