0.0.31 • Published 11 months ago

tenhigh-ecommerce-ui v0.0.31

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

注意事项

  • 组件引入 mui 不能用引入指定组件的方式,必须从 '@mui/material' 引入
// 这样引入打包后在其他项目引入,会报错 React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object.

import Button from '@mui/material/Button';


// 这样引入就不会报错
import {Button} from '@mui/material';
  • tailwind css 需要把 src 下的 globals.css 编译到 .storybook 目录下之后,在 preview.ts 中引用

https://tailwindcss.com/docs/installation

// 编译
npx tailwindcss -i ./src/input.css -o ./dist/output.css --watch
  • 组件导出用 export,不要用 default export,会导致在其他项目引入报错类型问题,例如组件 Dialog
// 使用 export
// export const Dialog = ...

// 不使用 export default
// const Dialog = ...
// export default Dialog
0.0.30

11 months ago

0.0.31

11 months ago

0.0.26

12 months ago

0.0.27

11 months ago

0.0.28

11 months ago

0.0.29

11 months ago

0.0.25

1 year ago

0.0.24

1 year ago

0.0.20

1 year ago

0.0.21

1 year ago

0.0.22

1 year ago

0.0.23

1 year ago

0.0.19

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.14

1 year ago

0.0.15

1 year ago

0.0.16

1 year ago

0.0.17

1 year ago

0.0.18

1 year ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago