Socket
Socket
Sign inDemoInstall

@alilc/action-block

Package Overview
Dependencies
4
Maintainers
20
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alilc/action-block


Version published
Maintainers
20
Created

Readme

Source

区块管理 - 保存为区块

区块实体


interface Block {
  name: string;
  title: string;
  schema: string;
  screenshot: string;
  created_at?: string;
  updated_at?: string;
}

注意

使用区块管理需要提前将对应的 API 注册到 engine config 里:


interface BlockAPI {
  listBlocks: () => Block[];
  createBlock: (Block) => any;
}

function setupConfig() {
  config.set('apiList', {
    block: {
      listBlocks,
      createBlock
    },
  })
}

使用方式

import { material } from '@alilc/lowcode-engine';
import { default as saveAsBlock } from '@alilc/action-block';

material.addBuiltinComponentAction(saveAsBlock);

FAQs

Last updated on 08 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc