Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

pit-bimwin-react-ui

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pit-bimwin-react-ui

基于 tsdx, 整合 storybook, less, sass

latest
npmnpm
Version
0.1.16
Version published
Maintainers
1
Created
Source

pit-bimwin-react-ui

基于 tsdx, 整合 storybook, less, sass

基于 Typescript 语法, 创建 Npm 组件

目录说明

src                     # 源代码目录
|-assets                # 静态文件目录
|-hooks                 # 自定义钩子函数目录
|-components            # 内置的业务组件目录
|-core                  # 初始化bimwin-api
|-PitBimwinApp.tsx      # 主容器
|-index.config.ts       # ts配置文件
|-index.tsx             # 只有在该文件导出的组件,才能被用户引用
|-useBtnOpt.ts          # 操作按钮及其他配置项
stories                 # storybook目录
example                 # 自行调用实验目录(基于parcel)
main.ts                 # storybook配置文件
manager.js              # storybook配置文件
YourTheme.js            # storybook配置文件
tsdx.config.js          # tsdx配置文件
tsconfig.json           # ts配置文件

使用说明

运行

npm start # or yarn start

运行 dome

cd ./example

在 example>目录下运行

npm start # or yarn start
http://localhost:1234  // 3d
http://localhost:1234/2d // 2d
http://localhost:1234/two // 3d and 2d

全局属性

参数名类型描述参数
optionsobject属性配置(具体请看下表)
headersobject11
visibleToolbararray--

options 属性字段说明

参数名类型描述参数
urlstring主机地址''
fileIdstring模型 id

命令说明

运行 tsdx 的监听

npm start # or yarn start

执行 tsdx 打包

npm build # or yarn build

运行 storybook

npm storybook # or yarn storybook

storybook 打包

npm build-storybook # or yarn build-storybook

将组件上传 npm

yarn build
npm login # npm登录
npm pub # 组件发布

FAQs

Package last updated on 10 Oct 2022

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