New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-up-props

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-up-props

基于蚂蚁金服前端团队开发的UI库做二封,另外收录一些好用的库如:拖动功能、滚动条、富文本框等

latest
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

下载

npm install react-up-props

使用

import { Button } from 'react-up-props'
import 'react-up-props/dist/index/index.css'

0.0.2版本更新

新增(Layout 、Menu 、Pagination 、TreeSelect 、Upload 、Avatar 、Badge 、Card 、Collapse 、Descriptions 、Empty 、Spin )

删除(-)

以上参考源的api

0.0.3版本更新

删除ckeditor的能力,增加:前端生成excel的能力、发布订阅模式、24个方法封装、提醒框

新增(Global 、Methodset 、PortTable 、store )

删除(CKEditor

新增依赖(crypto-es 、exceljs 、file-saver )

删除依赖(@ckeditor/ckeditor5-build-classic 、@ckeditor/ckeditor5-react )

Global

import { Global } from 'react-up-props';
// function
Global.prompt("sure","成功");
Global.prompt("error","失败");
Global.prompt("warn","警告");
Global.prompt("ruin");// 销毁

Methodset

import { Methodset } from 'react-up-props/lib';
const {encrypt, decrypt} = Methodset;

store

import { store } from 'react-up-props/lib';

store.on("key",(value)=>{ console.log("订阅") })
store.emit("key","发布");

// 组件销毁则删除订阅,否则可能造成内存泄漏
store.delete("key");

依赖

react@17.0.0 react-dom@17.0.0 antd@4.24.15 @ant-design/icons@5.2.6 braft-editor@2.3.9 react-custom-scrollbars@4.2.1 react-codemirror2@7.2.1 codemirror@5.65.11 react-draggable@4.4.6 crypto-es exceljs file-saver

FAQs

Package last updated on 21 Dec 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