New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tdesign-custom

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tdesign-custom

#### 使用 npm 安装

  • 0.0.1
  • alpha
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-83.33%
Maintainers
1
Weekly downloads
 
Created
Source

安装

使用 npm 安装

推荐使用 npm 方式进行开发

npm i tdesign-custom

使用

基础使用
import Vue from 'vue';
import TdesignCustom from 'tdesign-custom';

Vue.use(TdesignCustom);

scripts

  • init: 子仓库依赖初始化
  • dev:site: 示例文档站点开发环境
  • build:site: 示例站点打包
  • build:pkg: npm 包构建
  • build:tsc: types 文件构建
  • test:update: 单元测试更新

如何开发业务组件

组件目录如下

custom
├── __tests__ // 单元测试目录
│   └── index.test.jsx
├── _example // 示例文档目录
│   └── base.vue
├── api_en.md // 英文API文档
├── custom.en-US.md // 英文示例文档
├── custom.md // 示例文档
├── custom.tsx // 组件
├── index.ts // 组件入口
├── type.ts // ts 类型文件
├── props.ts // props 文件
└── style  // 样式目录
    ├── _index.less // 样式文件
    ├── css.js // 样式中介文件
    └── index.js // 样式中介文件

开发规范

  • 业务组件前缀统一为 TCus

单元测试

遵循TD单元测试规范

FAQs

Package last updated on 17 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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc