feat(devops): 新增流水线节点组件并优化相关功能

- 新增 CutePipelineNode 组件用于展示流水线节点状态
- 新增 CutePreviewDrawer 组件用于展示详细信息
- 新增 CuteFileDragUploadDemo 和 CutePipelineNodeDemo 组件用于演示功能
- 在 package.json 中添加 dayjs 依赖
- 更新 README 文档,添加新组件的说明和截图
This commit is contained in:
2025-07-18 20:23:00 +08:00
parent 6e6a1e8233
commit da830f3039
14 changed files with 1064 additions and 15 deletions
+10
View File
@@ -2,6 +2,8 @@
* Created by PanJiaChen on 16/11/18.
*/
import dayjs from 'dayjs'
/**
* Parse the time to string
* @param {(Object|string|number)} time
@@ -373,3 +375,11 @@ export const type = (value) => Object.prototype.toString.call(value).slice(8, -1
// 深拷贝对象
export const deepClone = (obj) => JSON.parse(JSON.stringify(obj))
// 格式化日期时间字符串
export const formatDateTimeStr = (date) => {
if (date) {
return dayjs(date).format('YYYY-MM-DD HH:mm:ss')
}
return ''
}