roma219 / vue-jsonschema-form Goto Github PK
View Code? Open in Web Editor NEWJSON Schema based Form Generator built with Vue.js
Home Page: https://roma219.github.io/vue-jsonschema-form
License: MIT License
JSON Schema based Form Generator built with Vue.js
Home Page: https://roma219.github.io/vue-jsonschema-form
License: MIT License
It seems there is an issue with running vue-jsonschem-form, caused by a dependency problem with vuelidate.
Assuming the following is installed:
npm install @roma219/vue-jsonschema-form
npm install @types/vuelidate
Then the following component in a vue 2.7 app:
Simple Component to Test:
<template>
<JsonSchema :schema="schema" v-model="model"/>
</template>
<script>
import JsonSchema from '@roma219/vue-jsonschema-form';
let SCHEMA2 = {
type: 'array',
items: {
type: 'object',
properties: {
a: { type: 'string' },
b: { type: 'number' }
}
}
};
export default {
components: {
JsonSchema
},
data: () => ({
schema: SCHEMA2,
model: {}
})
};
</script>
and running it with:
To run:
npm run serve
leads to:
What Happens?
INFO Starting development server...
ERROR Failed to compile with 1 error 15:14:28
error in ./node_modules/@roma219/vue-jsonschema-form/dist/entry.js
Module not found: Error: Can't resolve 'vuelidate' in 'src/node_modules/@roma219/vue-jsonschema-form/dist'
ERROR in ./node_modules/@roma219/vue-jsonschema-form/dist/entry.js 1:19-63
Module not found: Error: Can't resolve 'vuelidate' in ...
Web App should work.
Is your feature request related to a problem? Please describe.
I'm trying to use this package together with Quasar native inputs (https://quasar.dev).
I'm overriding the components
props to use Quasar widgets but the Pure-based default styling make the output quite messy.
Describe the solution you'd like
<style></style>
block of the parent component?)Thank you for this nice package!
[Vue warn]: Error in render: "TypeError: can't convert undefined to object"
get entry.js:20
VueJS 3
render entry.js:20
VueJS 36
Simple Component to Test:
<template>
<JsonSchema :schema="schema" v-model="model"/>
</template>
<script>
import JsonSchema from '@roma219/vue-jsonschema-form';
let SCHEMA2 = {
type: 'array',
items: {
type: 'object',
properties: {
a: { type: 'string' },
b: { type: 'number' }
}
}
};
export default {
components: {
JsonSchema
},
data: () => ({
schema: SCHEMA2,
model: {}
})
};
</script>
and running it with:
To run:
npm run serve
leads to:
What Happens?
TypeError
Web App should work.
When I do:
data() { return { schema: {} } }
It just does not bring anything back, it is almost like it is relying on the global const
Can you please tell me where to use wrapper config code for a custom wrapper?
{ componentName: 'CustomWrapper', props: (propName, schema, uiSchema) => ({ title: schema.title || propName }) }
Describe the bug
When i try to add a Array of Objects like the example in the docs
array: {
type: "array",
title: "Users",
items: {
type: "object",
properties: {
name: {
type: "string",
title: "Username",
},
},
},
},
If i click the plus icon I get this error and none of the properties display
vue.runtime.esm.js:5143 Uncaught (in promise) TypeError: Cannot add property _Ctor, object is not extensible
at Function.Vue.extend (vue.runtime.esm.js:5143)
at ensureCtor (vue.runtime.esm.js:3598)
at vue.runtime.esm.js:3665
at vue.runtime.esm.js:336
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.