Giter VIP home page Giter VIP logo

vue-awesome-form's People

Contributors

fightingm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vue-awesome-form's Issues

不支持SSR?

TypeError
Cannot convert undefined or null to object
dist/main.js 1:16274

different schema format

I find schema format differs from projects to projects. Instead of writing schema myself, I want to fetch schema from api, and might later modified a bit. Modern API framework, like django rest framework, generates schema automatically. Here is what it looks like
https://restframework.herokuapp.com/schema/
https://restframework.herokuapp.com/schema/?format=corejson
I want to fetch the second link above, and use the schema in vue-awesome-form. Is it a good idea? Would you consider to support such format in the near future?

Logical issue while using 2 instance of schema-form

I have a senario where I have to use multiple instances of the schema-form on same page with same schema. But even after using different :key both are using the same value. I have 2 seperate value variables still somehow I'm facing this issue.

As in if I update the value of a field name in form1 the value of name in form2 is also updated.

TheNumberInput return string

Use TheNumberInput type in schema but it return a string when submit.

I found a piece of code that commented out in mixins/base.js:

// if(this.theFormat && this.theFormat === 'number') {
// value = Number(value);
// }

remove comments then the bug is fixed
Why commented out the piece of code?

Alternative output model format

I think the schema format is amazing since it preserves the nested hierarchy properly. However, this hierarchy is lost once I get the data back as just key-value pairs. Is there a way to get all the values in the same structure as the schema?

For example:

schema

"location": {
    "type": "TheTree",
    "title": "地址信息",
    "propertyOrder": 3,
    "properties": {
        "province": {
            "type": "TheInput",
            "title": "省份",
            "rules": {
                "required": true,
                "message": "The 省份 cannot be empty"
            }
        },
        "city": {
            "type": "TheInput",
            "title": "市",
            "rules": {
                "required": true,
                "message": "The 市 cannot be empty"
            }
        }
    }
}

output

"location": {
    "title": "地址信息",
    "value": {
        "province": {
            "title": "省份",
            "value": "北京省"
        },
        "city": {
            "title": "市",
            "value": "北京市"
        }
    }
}

This will help us in preserving the hierarchy of the data.

P.S.: Thank you for creating this project. It's one of a kind and pretty useful.

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.