Skip to content

Commit

Permalink
feat: 添加dayjs依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
huangmingfu committed Oct 31, 2024
1 parent c6709c8 commit e80ce21
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# .env 文件
# 用途: 定义项目的基本环境变量,这些变量在所有环境中都会被加载。

# VITE_MY_APP_PREFIX = v_
# VITE_MY_APP_PREFIX = my
# 作用:
# VITE_ 前缀的变量会被 Vite 自动注入到客户端代码中,可以通过 import.meta.env.VITE_MY_APP_PREFIX 访问。
# 这些变量在开发环境、生产环境和测试环境中都会生效。
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ GitHub 项目地址:[React-Ts-Template](https://github.com/huangmingfu/react-t
- **Lodash-es**:提供常用工具函数。若更偏向现代 ES 实现,也可以考虑 `es-toolkit`
- **Axios**:封装 HTTP 请求库,更方便与后端接口对接。
- **classnames**:动态类名管理工具,特别适合条件渲染样式。
- **Dayjs**:轻量级的日期处理库,提供类似 Moment.js 的 API,但体积更小,性能更好。

### 🔧 其他推荐工具

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"ahooks": "^3.8.1",
"axios": "^1.7.7",
"classnames": "^2.5.1",
"dayjs": "^1.11.13",
"immer": "^10.1.1",
"lodash-es": "^4.17.21",
"react": "^18.3.1",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/hooks/use-namespace/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @see copy https://github.com/element-plus/element-plus/blob/dev/packages/hooks/use-namespace/index.ts
*/

export const DEFAULT_NAMESPACE = 'v';
export const DEFAULT_NAMESPACE = 'my';

const statePrefix = 'is-';

Expand Down

0 comments on commit e80ce21

Please sign in to comment.