@ncform/nc-array-import

0.0.2 • Public • Published

nc-array-import

nc-array-import widget for ncform

Install and basic usage

npm i -s @ncform/nc-array-import

Add the widget

import ncArrayImport from '@ncform/nc-array-import';

Vue.use(vueNcform, { extComponents: { ncArrayImport } });

// or vm.$ncformAddWidget({name: 'ncArrayImport', widget: ncArrayImport});

Use the widget

{
  "type": "object",
  "properties": {
    "qq": {
      "type": "array",
      "items": {
        "type": "number",
        "ui": {},
      },
      "ui": {
        "showLegend": false,
        "label": "QQ号",
        "widget": "nc-array-import",
        "widgetConfig": {
          "disableCollapse": true,
        }
      }
    },
  }
}

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

You only need to care about src/components/index.vue

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Run your end-to-end tests

npm run test:e2e

Run your unit tests

npm run test:unit

Readme

Keywords

Package Sidebar

Install

npm i @ncform/nc-array-import

Weekly Downloads

2

Version

0.0.2

License

none

Unpacked Size

520 kB

Total Files

28

Last publish

Collaborators

  • gcaufy
  • daniel-dx
  • kyleloh