open-index/open-npm huggingface dataset:
npm package: @luban-low-code/luban-base
Description: This library was generated with [Nx](https://nx.dev).
Latest version: 0.0.18

# luban-base

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build luban-base` to build the library.

## Running unit tests

Run `nx test luban-base` to execute the unit tests via [Vitest](https://vitest.dev/).
npm package: @luban-low-code/luban-low-code
Description: Low-code runtime and designer for Vue 3: render from JSON schema and optional drag-and-drop design surface.
Latest version: 0.0.15

# luban-low-code

Low-code runtime and designer for Vue 3: render from JSON schema and optional drag-and-drop design surface.

## Installation

Install this package; it will pull `@luban-low-code/luban-base` and `vue` as dependencies. No need to install the base package separately.

```bash
pnpm add @luban-low-code/luban-low-code
```

## Render from JSON

Pass a `PageSchema` (tree of `NodeSchema` + optional `formState`) to render the page:

```vue
<template>
  <LubanPage :schema="schema" />
</template>
<script setup>
import { LubanPage } from '@luban-low-code/luban-low-code';
import type { PageSchema } from '@luban-low-code/luban-low-code';

const schema = { root: { id: 'root', type: 'LubanContainer', props: {}, children: [] }, formState: {} };
</script>
```

Or use `RuntimeRenderer` directly with `root` and `formState` for more control.

## Building

Run `nx build luban-low-code` to build the library.

## Running unit tests

Run `nx test luban-low-code` to execute the unit tests via [Vitest](https://vitest.dev/).