Skip to content

Commit

Permalink
fix: 使用 "use client" 解决组件在next使用报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
huabingtao committed Oct 9, 2024
1 parent 3083570 commit 10ad883
Show file tree
Hide file tree
Showing 10 changed files with 1,995 additions and 2,002 deletions.
30 changes: 15 additions & 15 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
import "./style/index.scss";
// import 'antd-mobile/dist/antd-mobile.css'; // or 'antd-mobile/dist/antd-mobile.less'
// base
export { default as Loading } from "./components/loading";
export { default as Icon } from "./components/icon";
// display
export { default as Badge } from "./components/badge";
// navigation
// export { default as TabBar } from './components/navigation/tab-bar';
// export { default as TabBarItem } from './components/navigation/tab-bar/item';
export { default as Breadcrumb } from "./components/breadcrumb";
export { default as BreadcrumbItem } from "./components/breadcrumb/breadcrumb-item";
export { default as Button } from "./components/button";
export { default as Mask } from "./components/mask";
export { default as Icon } from "./components/icon";
export { default as Image } from "./components/image";
// feedback
export { default as Toast } from "./components/toast";
export { default as Input } from "./components/input";
export { default as Loading } from "./components/loading";
export { default as Mask } from "./components/mask";
export { default as Modal } from "./components/modal";
export { default as Progress } from "./components/progress";
// form
export { default as Switch } from "./components/switch";
export { default as Input } from "./components/input";
export { default as Uploader } from "./components/uploader";
// navigation
// export { default as TabBar } from './components/navigation/tab-bar';
// export { default as TabBarItem } from './components/navigation/tab-bar/item';
export { default as Breadcrumb } from "./components/breadcrumb";
export { default as BreadcrmbItem } from "./components/breadcrumb/breadcrumb-item";
// feedback
export { default as Toast } from "./components/toast";
export { default as TreeSelect } from "./components/tree-select";
// display
export { default as Badge } from "./components/badge";
export { default as Progress } from "./components/progress";
export { default as Uploader } from "./components/uploader";
22 changes: 17 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
{
"name": "react-single-ui",
"version": "0.0.5",
"version": "0.0.9",
"description": "A react library developed with dumi",
"keywords": [
"react",
"ui",
"components",
"react components",
"ui library",
"customizable",
"lightweight",
"frontend",
"responsive",
"design system",
"component library"
],
"license": "MIT",
"module": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -75,9 +88,8 @@
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react-lazyload": "^3.2.3",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^8.4.0",
"@typescript-eslint/parser": "^8.4.0",
"@umijs/lint": "^4.0.0",
Expand All @@ -98,7 +110,7 @@
"react-dom": "^18.0.0",
"stylelint": "^14.4.0",
"ts-jest": "^29.0.0",
"typescript": "4.9"
"typescript": "5.6.3"
},
"peerDependencies": {
"react": ">=16.9.0",
Expand Down
Loading

0 comments on commit 10ad883

Please sign in to comment.