npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

rh-lcdp

v0.3.70

Published

> `0.2.x`版本`rh-lcdp`库依赖于`rh-base:~15.0.11`

Downloads

478

Readme

瑞辉低代码平台库

0.2.x版本rh-lcdp库依赖于rh-base:~15.0.11

0.3.x版本rh-lcdp库依赖于rh-base:~15.1.x

层级结构

rh-lcdp库的模块层级由上往下,如下所示:

  • rh-lcd/page;
  • rh-lcd/designer;
  • rh-lcd/renderer;
  • rh-lcd/component;
  • rh-lcd/shared;
  • rh-lcd/editor;
  • rh-lcd/core;
  • rh-lcd/data;
  • rh-lcd/model;

安装指南

完全功能

完全功能包括但不限于设计器页面、预览页面和资源管理等诸多页面,且由于完整功能需要打包monaco-editor资源,所以打包体积会增大80MB左右;

  1. 安装rh-lcdp
npm install rh-lcdp
  1. angular.jsonproject.json(如果使用了nx)中添加资源和样式文件
"assets":[
  // ***
  {
    "glob": "**/*",
    "input": "./node_modules/monaco-editor",
    "output": "assets/monaco-editor"
  },
  {
    "glob": "**/*",
    "input": "./node_modules/rh-lcdp/assets/",
    "output": "/assets/"
  }
  // ***
]
  • 对应的全局样式文件
"styles": [
   "node_modules/rh-lcdp/lcdp.min.css"
 ],

如果想要在自身的项目中使用lcdp的样式,则需要在style.less中导入:

// 引入库中的样式
@import '~rh-lcdp/lcdp.min.css';
  1. 在项目中引入页面模块
import { RhLcdpPageModule } from 'rh-lcdp/page';

仅页面预览功能

  1. 安装rh-lcdp
npm install rh-lcdp
  1. angular.jsonproject.json(如果使用了nx)中添加部分资源和样式文件,(对比完全功能,不需要引入monaco-editor资源,打包后整体体积大大减少)
  • 资源文件(可选)
"assets": [
  // ***
  {
    "glob": "**/*",
    "input": "./node_modules/rh-lcdp/assets/",
    "output": "/assets/"
  }
  // ***
]
  • 样式文件(可选)
"styles": [
    "node_modules/rh-lcdp/lcdp.less"
 ],

如果想要在自身的项目中使用lcdp的样式,则需要在style.less中导入:

// 引入库中的样式
@import '../../../libs/rh-lcdp/lcdp.less';
  1. 在项目中引入页面模块
import { RhLcdpPageModule } from 'rh-lcdp/page';
  1. 在前端app.module.ts文件中初始化InteractionService自定义selector