@4geit/rct-data-table-component 中文文档教程

发布于 7年前 浏览 24 项目主页 更新于 3年前

@4geit/rct-data-table-component npm version


React 应用程序的数据表组件 可以

Demo

使用实时故事书查看组件的外观 @ http://rct-data-table-component.ws3.4ge.it

Installation

  1. A recommended way to install @4geit/rct-data-table-component is through npm package manager using the following command:
npm i @4geit/rct-data-table-component --save

或使用 yarn 使用以下命令:

yarn add @4geit/rct-data-table-component

确保你在系统中全局安装了这些工具,因为 @4geit/rct-data-table-component 需要它们才能正常工作:

  • create-react-app: sudo npm i -g create-react-app
  • storybook: sudo npm i -g @storybook/cli
  1. Depending on where you want to use the component you will need to import the class RctDataTableComponent to your project JS file as follows:
import RctDataTableComponent from '@4geit/rct-data-table-component'

例如,如果你想在你的 App.js 组件,您可以在 JSX 代码中使用 RctDataTableComponent 组件,如下所示:

import React from 'react'
// ...
import RctDataTableComponent from '@4geit/rct-data-table-component'
// ...
const App = () => (
  <div className="App">
    <RctDataTableComponent/>
  </div>
)

Usage

  1. You can actually use the component rct-data-table-component alone by running the command:
yarn start

通过运行命令 yarn 确保依赖项已全部安装。

  1. rct-data-table-component comes along with storybook already setup therefore you can use it by running the command:
yarn storybook

故事书也在线部署并可用@ http://rct-data-table-component.ws3.4ge.it

@4geit/rct-data-table-component npm version


data table component for react apps

Demo

A live storybook is available to see how the component looks like @ http://rct-data-table-component.ws3.4ge.it

Installation

  1. A recommended way to install @4geit/rct-data-table-component is through npm package manager using the following command:
npm i @4geit/rct-data-table-component --save

Or use yarn using the following command:

yarn add @4geit/rct-data-table-component

Make sure you also have those tools installed globally in your system since @4geit/rct-data-table-component requires them to work properly:

  • create-react-app: sudo npm i -g create-react-app
  • storybook: sudo npm i -g @storybook/cli
  1. Depending on where you want to use the component you will need to import the class RctDataTableComponent to your project JS file as follows:
import RctDataTableComponent from '@4geit/rct-data-table-component'

For instance if you want to use this component in your App.js component, you can use the RctDataTableComponent component in the JSX code as follows:

import React from 'react'
// ...
import RctDataTableComponent from '@4geit/rct-data-table-component'
// ...
const App = () => (
  <div className="App">
    <RctDataTableComponent/>
  </div>
)

Usage

  1. You can actually use the component rct-data-table-component alone by running the command:
yarn start

Make sure the dependencies are all installed by running the command yarn.

  1. rct-data-table-component comes along with storybook already setup therefore you can use it by running the command:
yarn storybook

The storybook is also deployed online and available @ http://rct-data-table-component.ws3.4ge.it

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文