Giter Site home page Giter Site logo

Comments (1)

JiaAnTW avatar JiaAnTW commented on September 16, 2024

今天討論的schema

import { Selectors } from './dataSelection';

export default (function () {
    return {
        id: -1,
        step: 0,
        minStep: 0,
        maxStep: 1,
        pageMap: {
            2: {
                // page - step
                title: '留下更多資訊給學弟妹吧!',
                stat: {
                    0: {
                        value: '中文系',
                        keyName: 'maj',
                        type: 'select',
                        wording: '原主修科系',
                        options: [],
                        remark: '如不想透漏,可以只填學院或其他。',
                    },
                },
            },
            4: {
                // page - step
                title: {
                    0: { value: '留下更多資訊給學弟妹吧!', type: 'title' },
                },
                stat: {
                    0: {
                        // stat - id
                        value: {
                            1: {
                                id: 1, // stat - id
                                title: 'GPA',
                                value: false,
                            },
                            2: {
                                id: 2, // stat - id
                                title: 'TOFEL',
                                value: true,
                            },
                            3: {
                                id: 3, // stat - id
                                title: '學年成績',
                                value: true,
                            },
                        },
                        width: '100%',
                        type: 'toggle_button_group',
                    },
                    2: {
                        // stat - id
                        value: '',
                        type: 'input',
                        elementAttrs: {
                            type: 'number',
                            min: 1,
                            max: 200,
                        },
                        keyName: 'rank_1',
                        type: 'number',
                        wording: 'TOFEL',
                    },
                    3: {
                        // stat - id
                        value: '',
                        type: 'input',
                        elementAttrs: {
                            type: 'number',
                            min: 1,
                            max: 200,
                        },
                        keyName: 'rank_1',
                        type: 'number',
                        wording: '學年成績',
                    },
                },
                comment: {
                    0: {
                        value: '',
                        keyName: 'comment',
                        type: 'textarea',
                        wording: '心得',
                        width: 2,
                        elementAttrs: {
                            style: {
                                marginTop: '20px',
                            },
                        },
                    },
                },
            },
        },
    };
})();

from ncku_trans.

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.