1.0.6 • Published 3 years ago

skutil-datamodel v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

A datamodel util for backend in the skutil system used by the author privately.

Install

安装
yarn add skutil-datamodel

Usage

const { ModelSchema } = require('skutil-datamodel')

const schema = new ModelSchema([
    {
      'name': 'someObj',
      'label': '',
      'type': 'object',
      'typeInfo': {},
      'desc': '',
      'required': true,
      'id': 'r8r6ac4gdkg0'
    },
    {
      'parentId': 'r8r6ac4gdkg0',
      'name': 'aString',
      'label': '',
      'type': 'string',
      'typeInfo': {},
      'defV': '',
      'desc': '',
      'required': false,
      'id': '11utlqk9jqig0'
    },
    {
      'name': 'c',
      'label': '',
      'type': 'array',
      'typeInfo': {},
      'desc': '',
      'required': true,
      'id': '13fma5urtn1g0'
    }
])
const displayList = schema.getDisplayList()
const value = displayList.retrieveValue()
1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago