@ithinkdt/ui 4.0.0-22 → 4.0.0-23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/page.jsx +9 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ithinkdt/ui",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-23",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "iThinkDT UI",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"unocss": ">=66.5.4",
|
|
88
88
|
"vite": "npm:rolldown-vite@^7.1.17",
|
|
89
89
|
"vue": "^3.5.22",
|
|
90
|
-
"vue-router": "^4.6.
|
|
91
|
-
"@ithinkdt/page": "^4.0.0-
|
|
90
|
+
"vue-router": "^4.6.2",
|
|
91
|
+
"@ithinkdt/page": "^4.0.0-16"
|
|
92
92
|
},
|
|
93
93
|
"scripts": {
|
|
94
94
|
"release": "pnpm publish --no-git-checks"
|
package/src/page.jsx
CHANGED
|
@@ -555,7 +555,7 @@ export function createModalHelper() {
|
|
|
555
555
|
const footer0 = footer
|
|
556
556
|
? () => footer
|
|
557
557
|
: footer === null
|
|
558
|
-
?
|
|
558
|
+
? null
|
|
559
559
|
: () => (
|
|
560
560
|
<NFlex justify="end" gap="16">
|
|
561
561
|
{cancelText === null ? undefined : <NButton onClick={onCancel} disabled={cancelDisabled} loading={cancelLoading} style="min-width: 60px">{cancelText}</NButton>}
|
|
@@ -598,6 +598,7 @@ export function createModalHelper() {
|
|
|
598
598
|
)
|
|
599
599
|
}
|
|
600
600
|
|
|
601
|
+
const { bodyContentClass, bodyContentStyle, ...options2 } = options
|
|
601
602
|
return (
|
|
602
603
|
<NDrawer
|
|
603
604
|
show={visible}
|
|
@@ -613,9 +614,14 @@ export function createModalHelper() {
|
|
|
613
614
|
onAfterEnter={onAfterOpen}
|
|
614
615
|
onAfterLeave={onAfterClose}
|
|
615
616
|
style={style}
|
|
616
|
-
{...
|
|
617
|
+
{...options2}
|
|
617
618
|
>
|
|
618
|
-
<NDrawerContent
|
|
619
|
+
<NDrawerContent
|
|
620
|
+
closable={closable}
|
|
621
|
+
nativeScrollbar={nativeScrollbar ?? false}
|
|
622
|
+
bodyContentClass={bodyContentClass}
|
|
623
|
+
bodyContentStyle={bodyContentStyle}
|
|
624
|
+
>
|
|
619
625
|
{{
|
|
620
626
|
default: () => content,
|
|
621
627
|
header: () => title,
|