pcloud-components-usage

Use when developer needs to install, use, or look up components from @pointcloud/pcloud-components npm package

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "pcloud-components-usage" with this command: npx skills add frank17008/pcloud-components-usage

pcloud-components Usage Guide

Overview

@pointcloud/pcloud-components is a React component library based on Ant Design v4.24.16 and React v18. Contains 30+ business components for enterprise mid-backend products.

Quick Start

Installation

# npm
npm install @pointcloud/pcloud-components

# yarn
yarn add @pointcloud/pcloud-components

# pnpm
pnpm add @pointcloud/pcloud-components

Peer Dependencies (Required)

npm install @ant-design/icons@^4.8.3 antd@^4.24.16 react@18 react-dom@18

Basic Usage

import React from 'react';
import { DCascader } from '@pointcloud/pcloud-components';

const App = () => {
  const handleChange = (value, selectedOptions) => {
    console.log(value, selectedOptions);
  };

  return <DCascader showSearch placeholder="请选择" onChange={handleChange} />;
};

export default App;

Using Form Components (DForm)

import { DForm } from '@pointcloud/pcloud-components';

const App = () => {
  const onFinish = (values) => {
    console.log('表单值:', values);
  };
  const items = [
    {
      label: '用户名',
      name: 'username',
      rules: [{ required: true, message: '请输入用户名' }],
      renderType: 'input',
    },
    {
      label: '状态',
      name: 'status',
      rules: [{ required: true, message: '请选择状态' }],
      renderType: 'select',
      options: [
        { label: '启用', value: 1 },
        { label: '禁用', value: 0 },
      ],
    },
    {
      label: '提交',
      renderType: 'button',
      type: 'primary',
      htmlType: 'submit',
    },
  ];

  return <DForm onFinish={onFinish} items={items}></DForm>;
};

UMD/CDN Usage

<link rel="stylesheet" href="https://unpkg.com/@pointcloud/pcloud-components@1.0.0/dist/umd/pcloud-components.min.css" />
<script src="https://unpkg.com/react@18.3.1/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@18.3.1/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/@pointcloud/pcloud-components@1.0.0/dist/umd/pcloud-components.min.js"></script>

Component List

Form Components

ComponentDescription
DFormEnhanced form based on Ant Design Form
DInputEnhanced input component
DSelectSelect with async loading support
DCascaderCascader with async loading support
DTreeSelectTreeSelect with async loading support
DUploadFile upload component
DRangePickerDate range picker
DynamicFormItemDynamic form component

Data Display

ComponentDescription
DTableEnhanced table component
LabelValueLabel-value display component
WordCloudWord cloud visualization
ScrollNumberNumber animation component
AspectRatioAspect ratio container
NoDataNo data display component
IPAddressIP address input component
AnimatedScrollListAnimated scroll list
OrgTreeOrganization tree component
TypewriterTextTypewriter effect component
ErrorBoundaryError boundary component
IconFontCustom icon component

Modal

ComponentDescription
DModalEnhanced modal component
ModalFormModal form component
LoginFormLogin form component

Other Components

ComponentDescription
LoadingGlobal loading component
ContextMenuRight-click menu component
AdvancedFilterAdvanced filter component
InfiniteScrollListInfinite scroll list
PictureCardPicture card component
SignaturePadSignature pad component
RndDragDraggable resizable component
RCropperImage cropper component
CRUDCRUD operation component
AuthComponentPermission component
ColorPickerColor picker component

Import All Components

import * as PCloud from '@pointcloud/pcloud-components';
// PCloud.DForm, PCloud.DTable, etc.

Documentation

Online docs: https://frank17008.github.io/pcloud-components

Detailed Component Reference

所有组件的详细文档已内置在 skill 中,位置: references/docs/组件名.md

表单组件

组件文档
DFormreferences/docs/DForm.md
DInputreferences/docs/DInput.md
DSelectreferences/docs/DSelect.md
DCascaderreferences/docs/DCascader.md
DTreeSelectreferences/docs/DTreeSelect.md
DUploadreferences/docs/DUpload.md
DRangePickerreferences/docs/DRangePicker.md
DynamicFormItemreferences/docs/DynamicFormItem.md

数据展示组件

组件文档
DTablereferences/docs/DTable.md
NoDatareferences/docs/NoData.md
Loadingreferences/docs/Loading.md
LabelValuereferences/docs/LabelValue.md
ScrollNumberreferences/docs/ScrollNumber.md
TypewriterTextreferences/docs/TypewriterText.md
WordCloudreferences/docs/WordCloud.md
AspectRatioreferences/docs/AspectRatio.md
AnimatedScrollListreferences/docs/AnimatedScrollList.md
ErrorBoundaryreferences/docs/ErrorBoundary.md
IconFontreferences/docs/IconFont.md
IPAddressreferences/docs/IPAddress.md
OrgTreereferences/docs/OrgTree.md

模态框组件

组件文档
DModalreferences/docs/DModal.md
ModalFormreferences/docs/ModalForm.md
LoginFormreferences/docs/LoginForm.md

其他组件

组件文档
CRUDreferences/docs/CRUD.md
AdvancedFilterreferences/docs/AdvancedFilter.md
ContextMenureferences/docs/ContextMenu.md
InfiniteScrollListreferences/docs/InfiniteScrollList.md
PictureCardreferences/docs/PictureCard.md
SignaturePadreferences/docs/SignaturePad.md
RndDragreferences/docs/RndDrag.md
RCropperreferences/docs/RCropper.md
AuthComponentreferences/docs/AuthComponent.md
ColorPickerreferences/docs/ColorPicker.md
ConfigProviderreferences/docs/ConfigProvider.md

在线文档

如需最新在线版本: https://frank17008.github.io/pcloud-components

Environment Requirements

  • React >= 18
  • Ant Design <= 6.x
  • Node >= 16.20.0
  • Modern browsers

Common Issues

  1. Missing peer dependencies: Ensure @ant-design/icons, antd, react, react-dom are installed
  2. Version mismatch: This library requires React 18 and Ant Design 4.x
  3. Style not loading: Import component CSS or use ConfigProvider for global styles

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

AI Code Review

AI-powered service for pull request code reviews with optional voice note transcription, Discord alerts, and secure diff URL handling.

Registry SourceRecently Updated
Coding

Salesforce Fast integrations

Complete Salesforce CRM integration for real-time data access, lead management, opportunity tracking, duplicate detection, and bulk operations. One-click OAu...

Registry SourceRecently Updated
Coding

Google Voice

Google Voice web-client automation and MCP integration from HAR captures. Use when reverse-engineering voice.google.com.har or call_voice.google.com.har, lis...

Registry SourceRecently Updated
Coding

HTTPeep CLI SKILLS. HTTP API Deubgger | Give the agent the ability to see the network.

Use HTTPeep from the terminal with httpeep-cli for proxy lifecycle control, HTTP/HTTPS traffic capture, session inspection, rule injection, request replay, r...

Registry SourceRecently Updated