Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a4aa133d
authored
Nov 09, 2025
by
Jin Mao
Committed by
GitHub
Nov 09, 2025
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'main' into tdesign
2 parents
83ea27af
6bbe523f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
14 deletions
cspell.json
internal/tailwind-config/src/index.ts
packages/@core/base/shared/src/utils/date.ts
packages/@core/ui-kit/shadcn-ui/src/components/button/button.ts
packages/@core/ui-kit/tabs-ui/src/use-tabs-view-scroll.ts
playground/src/api/request.ts
cspell.json
View file @
a4aa133
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
"prefixs"
,
"prefixs"
,
"publint"
,
"publint"
,
"qrcode"
,
"qrcode"
,
"reka"
,
"shadcn"
,
"shadcn"
,
"sonner"
,
"sonner"
,
"sortablejs"
,
"sortablejs"
,
...
...
internal/tailwind-config/src/index.ts
View file @
a4aa133
...
@@ -175,18 +175,18 @@ export default {
...
@@ -175,18 +175,18 @@ export default {
keyframes
:
{
keyframes
:
{
'accordion-down'
:
{
'accordion-down'
:
{
from
:
{
height
:
'0'
},
from
:
{
height
:
'0'
},
to
:
{
height
:
'var(--r
adix
-accordion-content-height)'
},
to
:
{
height
:
'var(--r
eka
-accordion-content-height)'
},
},
},
'accordion-up'
:
{
'accordion-up'
:
{
from
:
{
height
:
'var(--r
adix
-accordion-content-height)'
},
from
:
{
height
:
'var(--r
eka
-accordion-content-height)'
},
to
:
{
height
:
'0'
},
to
:
{
height
:
'0'
},
},
},
'collapsible-down'
:
{
'collapsible-down'
:
{
from
:
{
height
:
'0'
},
from
:
{
height
:
'0'
},
to
:
{
height
:
'var(--r
adix
-collapsible-content-height)'
},
to
:
{
height
:
'var(--r
eka
-collapsible-content-height)'
},
},
},
'collapsible-up'
:
{
'collapsible-up'
:
{
from
:
{
height
:
'var(--r
adix
-collapsible-content-height)'
},
from
:
{
height
:
'var(--r
eka
-collapsible-content-height)'
},
to
:
{
height
:
'0'
},
to
:
{
height
:
'0'
},
},
},
float
:
{
float
:
{
...
...
packages/@core/base/shared/src/utils/date.ts
View file @
a4aa133
...
@@ -7,7 +7,19 @@ dayjs.extend(timezone);
...
@@ -7,7 +7,19 @@ dayjs.extend(timezone);
type
FormatDate
=
Date
|
dayjs
.
Dayjs
|
number
|
string
;
type
FormatDate
=
Date
|
dayjs
.
Dayjs
|
number
|
string
;
export
function
formatDate
(
time
:
FormatDate
,
format
=
'YYYY-MM-DD'
)
{
type
Format
=
|
'HH'
|
'HH:mm'
|
'HH:mm:ss'
|
'YYYY'
|
'YYYY-MM'
|
'YYYY-MM-DD'
|
'YYYY-MM-DD HH'
|
'YYYY-MM-DD HH:mm'
|
'YYYY-MM-DD HH:mm:ss'
|
(
string
&
{});
export
function
formatDate
(
time
?:
FormatDate
,
format
:
Format
=
'YYYY-MM-DD'
)
{
try
{
try
{
const
date
=
dayjs
.
isDayjs
(
time
)
?
time
:
dayjs
(
time
);
const
date
=
dayjs
.
isDayjs
(
time
)
?
time
:
dayjs
(
time
);
if
(
!
date
.
isValid
())
{
if
(
!
date
.
isValid
())
{
...
@@ -16,11 +28,11 @@ export function formatDate(time: FormatDate, format = 'YYYY-MM-DD') {
...
@@ -16,11 +28,11 @@ export function formatDate(time: FormatDate, format = 'YYYY-MM-DD') {
return
date
.
tz
().
format
(
format
);
return
date
.
tz
().
format
(
format
);
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
error
(
`Error formatting date:
${
error
}
`
);
console
.
error
(
`Error formatting date:
${
error
}
`
);
return
String
(
time
);
return
String
(
time
??
''
);
}
}
}
}
export
function
formatDateTime
(
time
:
FormatDate
)
{
export
function
formatDateTime
(
time
?
:
FormatDate
)
{
return
formatDate
(
time
,
'YYYY-MM-DD HH:mm:ss'
);
return
formatDate
(
time
,
'YYYY-MM-DD HH:mm:ss'
);
}
}
...
...
packages/@core/ui-kit/shadcn-ui/src/components/button/button.ts
View file @
a4aa133
...
@@ -13,7 +13,7 @@ export interface VbenButtonProps {
...
@@ -13,7 +13,7 @@ export interface VbenButtonProps {
/**
/**
* Change the default rendered element for the one passed as a child, merging their props and behavior.
* Change the default rendered element for the one passed as a child, merging their props and behavior.
*
*
* Read our [Composition](https://www.r
adix-vue.com/guides/composition.html
) guide for more details.
* Read our [Composition](https://www.r
eka-ui.com/docs/guides/composition
) guide for more details.
*/
*/
asChild
?:
boolean
;
asChild
?:
boolean
;
class
?:
any
;
class
?:
any
;
...
...
packages/@core/ui-kit/tabs-ui/src/use-tabs-view-scroll.ts
View file @
a4aa133
...
@@ -59,7 +59,7 @@ export function useTabsViewScroll(props: TabsProps) {
...
@@ -59,7 +59,7 @@ export function useTabsViewScroll(props: TabsProps) {
}
}
const
viewportEl
=
scrollbarEl
?.
querySelector
(
const
viewportEl
=
scrollbarEl
?.
querySelector
(
'div[data-r
adix
-scroll-area-viewport]'
,
'div[data-r
eka
-scroll-area-viewport]'
,
);
);
scrollViewportEl
.
value
=
viewportEl
;
scrollViewportEl
.
value
=
viewportEl
;
...
...
playground/src/api/request.ts
View file @
a4aa133
...
@@ -29,11 +29,15 @@ function createRequestClient(baseURL: string, options?: RequestClientOptions) {
...
@@ -29,11 +29,15 @@ function createRequestClient(baseURL: string, options?: RequestClientOptions) {
baseURL
,
baseURL
,
transformResponse
:
(
data
:
any
,
header
:
AxiosResponseHeaders
)
=>
{
transformResponse
:
(
data
:
any
,
header
:
AxiosResponseHeaders
)
=>
{
// storeAsString指示将BigInt存储为字符串,设为false则会存储为内置的BigInt类型
// storeAsString指示将BigInt存储为字符串,设为false则会存储为内置的BigInt类型
return
header
.
getContentType
()?.
toString
().
includes
(
'application/json'
)
if
(
?
cloneDeep
(
header
.
getContentType
()?.
toString
().
includes
(
'application/json'
)
&&
JSONBigInt
({
storeAsString
:
true
,
strict
:
true
}).
parse
(
data
),
typeof
data
===
'string'
)
)
{
:
data
;
return
cloneDeep
(
JSONBigInt
({
storeAsString
:
true
,
strict
:
true
}).
parse
(
data
),
);
}
return
data
;
},
},
});
});
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment