Giter Site home page Giter Site logo

Comments (4)

agmoyano avatar agmoyano commented on July 19, 2024

fullSchema is a computed property, so any changes in it are not reactive. We should pass schema as a property also to slot, in order to be able to modify schema on any given condition.

from vuetify-jsonschema-form.

agmoyano avatar agmoyano commented on July 19, 2024

schema as it is a prop passed to Property it's not reactive for local changes.. for my particular use, I need to be able to change the schema within a slot and for things to happen in consecuence, but I'm not sure if this is just my particular use case..

This could be useful if combined with Issue #45, where in a prepend or append slot you change the schema, that affects the Property component in the default slot.

For this to happen, the schema prop should be assigned to a data variable like this

data() {
  return {
    ...,
    localSchema: this.schema
  }
}

and then use it like this for each slot

<slot :name="`prepend-${slotName}`" :schema="localSchema" .. />

and maybe use it to compute fullSchema

   fullSchema() {
      return schemaUtils.prepareFullSchema(this.localSchema, this.modelWrapper, this.modelKey)
    }

If you agree to this I'll PR.

Thanks

from vuetify-jsonschema-form.

albanm avatar albanm commented on July 19, 2024

Sorry for the delay, I will include this in the next major version I am working on.

from vuetify-jsonschema-form.

albanm avatar albanm commented on July 19, 2024

v1 was released a short while ago with this functionality, see this example.

from vuetify-jsonschema-form.

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.