Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kdcloudjs/kdesign

Package Overview
Dependencies
Maintainers
0
Versions
193
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kdcloudjs/kdesign

KDesign 金蝶前端react 组件库

  • 1.8.20
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
109
decreased by-27.33%
Maintainers
0
Weekly downloads
 
Created
Source

KDesign of React

KDesign of React 是基于金蝶的企业级设计系统KDesign 实现的一套React UI组件库,主要用于企业级系统的构建。

官网:https://react.kingdee.design/

特性

  • 提供开箱即用的 丰富的企业级 React UI 组件。
  • 使用 TypeScript 开发,提供完整的类型定义文件。
  • 组件全键盘的支持
  • 国际化支持
  • 全面的主题化定制

安装

使用 npm 或 yarn 安装

$ npm install @kdcloudjs/kdesign --save
# 或者
$ yarn add @kdcloudjs/kdesign

示例

import React from 'react'
import reactDom from 'react-dom'
import { Button } from '@kdcloudjs/kdesign'
import '@kdcloudjs/kdesign/dist/kdesign.css'

reactDom.render((
  <div>
    <Button>kdesign 按钮</Button>
  </div>
), document.getElementById('root'))

浏览器引入

在浏览器中使用 scriptlink 标签直接引入文件,并使用全局变量 kdesign。 目前尚未将文件上传至 cdn 需要手动将 dist 目录下的 kdesign.min.jskdesign.min.css 文件拷贝至项目。

使用:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>kdesign</title>
  <script src="https://cdn.staticfile.org/react/16.14.0/umd/react.development.js"></script>
  <script src="https://cdn.staticfile.org/react-dom/16.14.0/umd/react-dom.development.js"></script>
  <script src="https://cdn.staticfile.org/babel-standalone/6.26.0/babel.min.js"></script>

  <script src="https://unpkg.com/@kdcloudjs/kdesign@latest/dist/kdesign.min.js"></script>
  <link rel="stylesheet" href="https://unpkg.com/@kdcloudjs/kdesign@latest/dist/kdesign.min.css">
</head>
<body>
<div id="root"></div>
<script type="text/babel">
  ReactDOM.render((
      <div>
        <kdesign.Button>kdesign 按钮</kdesign.Button>
      </div>
    ),
    document.getElementById('root')
  )
</script>
</body>
</html>

相关链接

浏览器兼容性

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
iOS Safari
iOS Safari
Samsung
Samsung
Opera
Opera
IE11, Edgelast 2 versionslast 2 versionslast 2 versionslast 2 versionslast 2 versionslast 2 versions

参与贡献

参与贡献前请先阅读 贡献指南

License

kdesign 使用了 Apache License, Version 2.0. 详细license 请查看 LICENSE

Keywords

FAQs

Package last updated on 22 Nov 2024

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc