Comments (4)
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.
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.
Sorry for the delay, I will include this in the next major version I am working on.
from vuetify-jsonschema-form.
v1 was released a short while ago with this functionality, see this example.
from vuetify-jsonschema-form.
Related Issues (20)
- Date-time validation fails with useValidator: true HOT 2
- display and edit an array item HOT 1
- ArrayProp with schema dependencies HOT 1
- `oneOf` issues HOT 2
- Collapsible Array Elements HOT 5
- release of v3 alpha HOT 7
- Support for $ref external schema references HOT 2
- v3 alpha: import fails with "Default condition should be last one" HOT 14
- Feat: AdditionalProperties HOT 2
- x-directives seems to be broken HOT 4
- Console error in `initFromSchema`
- v3 beta: "ResizeObserver loop completed with undelivered notifications." in v-dialog with auto width HOT 3
- Behavior of optional objects with required fields HOT 2
- vjsf: missing component to render vjsf node "markdown" HOT 5
- Plugin creation HOT 4
- Have an option to silence logs HOT 2
- How to clear extraneous properties from v-model when switching schemas dynamically HOT 2
- Add support for radio (Vuetifiy components) HOT 3
- Warning with "default" value
- Error when a control is clearable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vuetify-jsonschema-form.