@pisell/materials 6.8.2 → 6.8.3
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +2 -2
- package/es/components/Pagination/index.d.ts +1 -1
- package/es/components/PisellCards/components/MultilevelCard/hooks/useMultilevelCardExpand.d.ts +0 -1
- package/es/components/PisellCards/components/PisellImageCard/hooks/useImageLoad.d.ts +0 -1
- package/es/components/PisellCards/index.d.ts +0 -1
- package/es/components/PisellProcedure/PisellProcedure.js +4 -2
- package/es/components/PisellProcedure/PisellProcedure.less +115 -106
- package/es/components/PisellProcedure/components/ProcedureSidebar.js +4 -2
- package/es/components/PisellProcedure/hooks/useElementSize.js +3 -2
- package/es/components/PisellProcedure/hooks/useSidebarHeight.js +1 -1
- package/es/components/PisellTabbar2/PisellTabbar.js +39 -1
- package/es/components/PisellTabbar2/PisellTabbar.less +1 -0
- package/es/components/PisellTabbar2/components/TabbarLevel.js +1 -0
- package/es/components/batch-editor/fields/index.d.ts +0 -1
- package/es/components/calendar/index.d.ts +0 -1
- package/es/components/checkbox/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -3
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +0 -1
- package/es/components/date-picker/index.d.ts +0 -1
- package/es/components/filter/components/items/index.d.ts +0 -1
- package/es/components/filter/components/items/text/Editor/index.d.ts +0 -1
- package/es/components/filter/components/items/text/Preview/index.d.ts +0 -1
- package/es/components/filter/components/items/text/index.d.ts +0 -1
- package/es/components/pisellDatePicker/index.d.ts +0 -1
- package/es/components/pisellModal/components/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/radio/index.d.ts +0 -1
- package/es/components/skeleton/index.d.ts +0 -1
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Table/fields/date/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/index.d.ts +0 -1
- package/es/components/table/Table/fields/index.d.ts +0 -1
- package/es/components/table/Table/fields/link/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/index.d.ts +0 -1
- package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/index.d.ts +0 -1
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/select/index.d.ts +0 -1
- package/es/components/table/Table/fields/text/index.d.ts +0 -1
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/treeSelect/index.d.ts +0 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/time-picker/index.d.ts +0 -1
- package/es/components/upload/index.d.ts +0 -1
- package/es/components/virtual-keyboard/Time/utils.d.ts +0 -1
- package/es/utils/index.d.ts +1 -1
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/Pagination/index.d.ts +1 -1
- package/lib/components/PisellCards/components/MultilevelCard/hooks/useMultilevelCardExpand.d.ts +0 -1
- package/lib/components/PisellCards/components/PisellImageCard/hooks/useImageLoad.d.ts +0 -1
- package/lib/components/PisellCards/index.d.ts +0 -1
- package/lib/components/PisellProcedure/PisellProcedure.js +3 -1
- package/lib/components/PisellProcedure/PisellProcedure.less +115 -106
- package/lib/components/PisellProcedure/components/ProcedureSidebar.js +9 -2
- package/lib/components/PisellProcedure/hooks/useElementSize.js +2 -2
- package/lib/components/PisellProcedure/hooks/useSidebarHeight.js +1 -1
- package/lib/components/PisellTabbar2/PisellTabbar.js +5 -1
- package/lib/components/PisellTabbar2/PisellTabbar.less +1 -0
- package/lib/components/PisellTabbar2/components/TabbarLevel.js +1 -0
- package/lib/components/batch-editor/fields/index.d.ts +0 -1
- package/lib/components/calendar/index.d.ts +0 -1
- package/lib/components/checkbox/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -3
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +0 -1
- package/lib/components/date-picker/index.d.ts +0 -1
- package/lib/components/filter/components/items/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/Editor/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/Preview/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/index.d.ts +0 -1
- package/lib/components/pisellDatePicker/index.d.ts +0 -1
- package/lib/components/pisellModal/components/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/radio/index.d.ts +0 -1
- package/lib/components/skeleton/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Table/fields/date/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/index.d.ts +0 -1
- package/lib/components/table/Table/fields/index.d.ts +0 -1
- package/lib/components/table/Table/fields/link/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/index.d.ts +0 -1
- package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
- package/lib/components/table/Table/fields/search/index.d.ts +0 -1
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/select/index.d.ts +0 -1
- package/lib/components/table/Table/fields/text/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/treeSelect/index.d.ts +0 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/time-picker/index.d.ts +0 -1
- package/lib/components/upload/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/Time/utils.d.ts +0 -1
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/platform.d.ts +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ export declare const paginationConfig: {
|
|
|
5
5
|
className: string;
|
|
6
6
|
defaultCurrent: number;
|
|
7
7
|
showTotal: (total: number, range: [number, number]) => string;
|
|
8
|
-
itemRender: (page: number, type: "
|
|
8
|
+
itemRender: (page: number, type: "next" | "page" | "prev" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
|
|
9
9
|
responsive: boolean;
|
|
10
10
|
size: string;
|
|
11
11
|
};
|
|
@@ -89,8 +89,10 @@ var PisellProcedure = function PisellProcedure(props) {
|
|
|
89
89
|
|
|
90
90
|
// 容器类名
|
|
91
91
|
var containerCls = useMemo(function () {
|
|
92
|
-
return mergeClassNames('pisell-procedure', className,
|
|
93
|
-
|
|
92
|
+
return mergeClassNames('pisell-procedure', className,
|
|
93
|
+
// 弹窗模式添加 --modal 修饰类,用于禁用媒体查询
|
|
94
|
+
mode === 'modal' && 'pisell-procedure--modal', modifierClassName('pisell-procedure', "footer-".concat(footerPosition)));
|
|
95
|
+
}, [className, mode, footerPosition]);
|
|
94
96
|
|
|
95
97
|
// 判断底部是否全局显示
|
|
96
98
|
var footerIsGlobal = isFooterGlobal(footerPosition);
|
|
@@ -105,17 +105,19 @@
|
|
|
105
105
|
|
|
106
106
|
// ========== 布局模式:比例布局 ==========
|
|
107
107
|
&--ratio {
|
|
108
|
-
//
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
108
|
+
// 移动端:比例模式下也隐藏信息区(弹窗模式下不执行)
|
|
109
|
+
.@{procedure-prefix}:not(.@{procedure-prefix}--modal) & {
|
|
110
|
+
@media (max-width: calc(@breakpoint-sm - 1px)) {
|
|
111
|
+
> .pisell-lowcode-layout,
|
|
112
|
+
> .ant-layout {
|
|
113
|
+
.@{procedure-prefix}-sidebar {
|
|
114
|
+
display: none !important;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.@{procedure-prefix}-content {
|
|
118
|
+
flex: 1 !important;
|
|
119
|
+
max-width: 100% !important;
|
|
120
|
+
}
|
|
119
121
|
}
|
|
120
122
|
}
|
|
121
123
|
}
|
|
@@ -139,10 +141,12 @@
|
|
|
139
141
|
|
|
140
142
|
// 信息区 - 高度自适应内容,sticky 定位
|
|
141
143
|
&-sidebar {
|
|
144
|
+
width: initial !important;
|
|
145
|
+
max-width: initial !important;
|
|
146
|
+
min-width: initial !important;
|
|
142
147
|
background-color: @color-bg-sidebar;
|
|
143
148
|
border-radius: 4px;
|
|
144
149
|
position: sticky!important;
|
|
145
|
-
top: calc(64px + @gap-default * 2); // header 高度 + body padding + 额外间距
|
|
146
150
|
overflow-y: auto;
|
|
147
151
|
align-self: flex-start; // 不拉伸高度
|
|
148
152
|
background: transparent !important;
|
|
@@ -212,45 +216,46 @@
|
|
|
212
216
|
display: initial !important;
|
|
213
217
|
}
|
|
214
218
|
|
|
215
|
-
// 大于1133px: 405px
|
|
216
|
-
|
|
217
|
-
width: @
|
|
218
|
-
|
|
219
|
-
min-width: @sidebar-width-xl !important;
|
|
220
|
-
flex: 0 0 @sidebar-width-xl !important;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
// 保留媒体查询作为降级方案(当没有提供 containerSelector 时,即页面模式)
|
|
224
|
-
// 弹窗模式下会添加 responsive-xs 类名,所以媒体查询不会生效
|
|
225
|
-
// 960px < viewportWidth < 1133px: 376px ~ 405px 线性插值
|
|
226
|
-
@media (max-width: calc(@breakpoint-lg - 1px)) and (min-width: @breakpoint-md) {
|
|
227
|
-
// 如果没有响应式类名,则应用媒体查询样式
|
|
228
|
-
&:not(.pisell-procedure-sidebar--responsive-md):not(.pisell-procedure-sidebar--responsive-sm):not(.pisell-procedure-sidebar--responsive-xs) {
|
|
229
|
-
@sidebar-width-dynamic: calc(@sidebar-width-md + (100vw - @breakpoint-md) * (405 - 376) / (1133 - 960));
|
|
230
|
-
width: @sidebar-width-dynamic !important;
|
|
219
|
+
// 大于1133px: 405px(仅页面模式,弹窗模式下不执行媒体查询)
|
|
220
|
+
.@{procedure-prefix}:not(.@{procedure-prefix}--modal) & {
|
|
221
|
+
@media (min-width: @breakpoint-lg) {
|
|
222
|
+
width: @sidebar-width-xl !important;
|
|
231
223
|
max-width: @sidebar-width-xl !important;
|
|
232
|
-
min-width: @sidebar-width-
|
|
233
|
-
flex: 0 0 @sidebar-width-
|
|
224
|
+
min-width: @sidebar-width-xl !important;
|
|
225
|
+
flex: 0 0 @sidebar-width-xl !important;
|
|
234
226
|
}
|
|
235
|
-
}
|
|
236
227
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
228
|
+
// 保留媒体查询作为降级方案(当没有提供 containerSelector 时,即页面模式)
|
|
229
|
+
// 960px < viewportWidth < 1133px: 376px ~ 405px 线性插值
|
|
230
|
+
@media (max-width: calc(@breakpoint-lg - 1px)) and (min-width: @breakpoint-md) {
|
|
231
|
+
// 如果没有响应式类名,则应用媒体查询样式
|
|
232
|
+
&:not(.pisell-procedure-sidebar--responsive-md):not(.pisell-procedure-sidebar--responsive-sm):not(.pisell-procedure-sidebar--responsive-xs) {
|
|
233
|
+
@sidebar-width-dynamic: calc(@sidebar-width-md + (100vw - @breakpoint-md) * (405 - 376) / (1133 - 960));
|
|
234
|
+
width: @sidebar-width-dynamic !important;
|
|
235
|
+
max-width: @sidebar-width-xl !important;
|
|
236
|
+
min-width: @sidebar-width-md !important;
|
|
237
|
+
flex: 0 0 @sidebar-width-dynamic !important;
|
|
238
|
+
}
|
|
246
239
|
}
|
|
247
|
-
}
|
|
248
240
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
241
|
+
// 744px < viewportWidth < 960px: 290px ~ 376px 线性插值
|
|
242
|
+
@media (max-width: calc(@breakpoint-md)) and (min-width: @breakpoint-sm) {
|
|
243
|
+
// 如果没有响应式类名,则应用媒体查询样式
|
|
244
|
+
&:not(.pisell-procedure-sidebar--responsive-md):not(.pisell-procedure-sidebar--responsive-sm):not(.pisell-procedure-sidebar--responsive-xs) {
|
|
245
|
+
@sidebar-width-dynamic: calc(@sidebar-width-sm + (100vw - @breakpoint-sm) * (376 - 290) / (960 - 744));
|
|
246
|
+
width: @sidebar-width-dynamic !important;
|
|
247
|
+
max-width: @sidebar-width-md !important;
|
|
248
|
+
min-width: @sidebar-width-sm !important;
|
|
249
|
+
flex: 0 0 @sidebar-width-dynamic !important;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
// viewportWidth < 744px: 隐藏(仅页面模式)
|
|
254
|
+
@media (max-width: calc(@breakpoint-sm - 1px)) {
|
|
255
|
+
// 如果没有响应式类名,则应用媒体查询样式
|
|
256
|
+
&:not(.pisell-procedure-sidebar--responsive-md):not(.pisell-procedure-sidebar--responsive-sm):not(.pisell-procedure-sidebar--responsive-xs) {
|
|
257
|
+
display: none !important;
|
|
258
|
+
}
|
|
254
259
|
}
|
|
255
260
|
}
|
|
256
261
|
|
|
@@ -278,7 +283,7 @@
|
|
|
278
283
|
z-index: 100;
|
|
279
284
|
overflow: hidden; // 防止内容溢出
|
|
280
285
|
|
|
281
|
-
// 总结按钮插槽 - 仅移动端显示(< 744px
|
|
286
|
+
// 总结按钮插槽 - 仅移动端显示(< 744px),弹窗模式下不执行媒体查询
|
|
282
287
|
&__summary {
|
|
283
288
|
flex-shrink: 0;
|
|
284
289
|
margin-right: auto;
|
|
@@ -286,9 +291,11 @@
|
|
|
286
291
|
display: none;
|
|
287
292
|
cursor: pointer;
|
|
288
293
|
|
|
289
|
-
//
|
|
290
|
-
|
|
291
|
-
|
|
294
|
+
// 移动端显示(仅页面模式)
|
|
295
|
+
.@{procedure-prefix}:not(.@{procedure-prefix}--modal) & {
|
|
296
|
+
@media (max-width: calc(@breakpoint-sm - 1px)) {
|
|
297
|
+
display: block;
|
|
298
|
+
}
|
|
292
299
|
}
|
|
293
300
|
}
|
|
294
301
|
|
|
@@ -478,74 +485,76 @@
|
|
|
478
485
|
}
|
|
479
486
|
}
|
|
480
487
|
|
|
481
|
-
// ========== 小屏适配(744px-960px
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
488
|
+
// ========== 小屏适配(744px-960px):头部两行显示(仅页面模式) ==========
|
|
489
|
+
&:not(&--modal) {
|
|
490
|
+
@media (min-width: @breakpoint-sm) and (max-width: calc(@breakpoint-md - 1px)) {
|
|
491
|
+
.@{procedure-prefix}-header {
|
|
492
|
+
flex-wrap: wrap;
|
|
493
|
+
min-height: auto;
|
|
494
|
+
padding: 12px @padding-default;
|
|
495
|
+
|
|
496
|
+
// 第一行:返回按钮
|
|
497
|
+
.@{procedure-prefix}-header__left {
|
|
498
|
+
order: 1;
|
|
499
|
+
flex: 0 0 auto;
|
|
500
|
+
}
|
|
493
501
|
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
502
|
+
// 第一行:关闭按钮,推到右边
|
|
503
|
+
.@{procedure-prefix}-header__right {
|
|
504
|
+
order: 2;
|
|
505
|
+
flex: 0 0 auto;
|
|
506
|
+
margin-left: auto;
|
|
507
|
+
}
|
|
500
508
|
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
+
// 第二行:步骤条独占一行
|
|
510
|
+
.@{procedure-prefix}-header__center {
|
|
511
|
+
order: 3;
|
|
512
|
+
width: 100%;
|
|
513
|
+
flex: 0 0 100%;
|
|
514
|
+
padding: 0;
|
|
515
|
+
justify-content: flex-start;
|
|
516
|
+
overflow-x: auto;
|
|
517
|
+
}
|
|
509
518
|
}
|
|
510
519
|
}
|
|
511
|
-
}
|
|
512
520
|
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
521
|
+
// ========== 移动端适配(<744px):头部一行显示 ==========
|
|
522
|
+
@media (max-width: calc(@breakpoint-sm - 1px)) {
|
|
523
|
+
.@{procedure-prefix}-header {
|
|
524
|
+
flex-wrap: nowrap;
|
|
525
|
+
min-height: auto;
|
|
526
|
+
padding: 12px @padding-default;
|
|
527
|
+
|
|
528
|
+
// 左侧:返回按钮
|
|
529
|
+
.@{procedure-prefix}-header__left {
|
|
530
|
+
flex: 0 0 auto;
|
|
531
|
+
}
|
|
519
532
|
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
533
|
+
// 中间:步骤条(简化显示当前步骤)
|
|
534
|
+
.@{procedure-prefix}-header__center {
|
|
535
|
+
flex: 1;
|
|
536
|
+
padding: 0 @gap-default;
|
|
537
|
+
overflow: hidden;
|
|
538
|
+
}
|
|
524
539
|
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
overflow: hidden;
|
|
540
|
+
// 右侧:关闭按钮
|
|
541
|
+
.@{procedure-prefix}-header__right {
|
|
542
|
+
flex: 0 0 auto;
|
|
543
|
+
}
|
|
530
544
|
}
|
|
531
545
|
|
|
532
|
-
//
|
|
533
|
-
|
|
534
|
-
|
|
546
|
+
// 主体区域移动端
|
|
547
|
+
.@{procedure-prefix}-body {
|
|
548
|
+
> .pisell-lowcode-layout,
|
|
549
|
+
> .ant-layout {
|
|
550
|
+
padding: @gap-default;
|
|
551
|
+
}
|
|
535
552
|
}
|
|
536
|
-
}
|
|
537
553
|
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
> .ant-layout {
|
|
542
|
-
padding: @gap-default;
|
|
554
|
+
// 内容区占满
|
|
555
|
+
.@{procedure-prefix}-content {
|
|
556
|
+
width: 100% !important;
|
|
543
557
|
}
|
|
544
558
|
}
|
|
545
|
-
|
|
546
|
-
// 内容区占满
|
|
547
|
-
&-content {
|
|
548
|
-
width: 100% !important;
|
|
549
|
-
}
|
|
550
559
|
}
|
|
551
560
|
}
|
|
@@ -106,11 +106,13 @@ var ProcedureSidebar = function ProcedureSidebar(_ref) {
|
|
|
106
106
|
}, [className, isRatioMode, responsiveCls]);
|
|
107
107
|
return /*#__PURE__*/React.createElement(PisellSider, {
|
|
108
108
|
className: sidebarCls,
|
|
109
|
-
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
109
|
+
style: _objectSpread(_objectSpread(_objectSpread({}, style), {}, {
|
|
110
110
|
overflow: 'hidden'
|
|
111
111
|
}, siderHeight && siderHeight > 0 ? {
|
|
112
112
|
height: "".concat(siderHeight, "px")
|
|
113
|
-
} : {})
|
|
113
|
+
} : {}), {}, {
|
|
114
|
+
top: mode === 'modal' ? 0 : "".concat((headerSize === null || headerSize === void 0 ? void 0 : headerSize.height) + 32, "px")
|
|
115
|
+
})
|
|
114
116
|
}, /*#__PURE__*/React.createElement("div", {
|
|
115
117
|
className: "pisell-procedure-sider-content-top"
|
|
116
118
|
}, children), extra);
|
|
@@ -78,8 +78,9 @@ export var useElementSize = function useElementSize(_ref) {
|
|
|
78
78
|
var element = document.querySelector(selector);
|
|
79
79
|
if (element) {
|
|
80
80
|
var rect = element.getBoundingClientRect();
|
|
81
|
-
|
|
82
|
-
var
|
|
81
|
+
// 保留两位小数,避免浮点数精度问题导致频繁更新
|
|
82
|
+
var newWidth = Math.round(rect.width * 100) / 100;
|
|
83
|
+
var newHeight = Math.round(rect.height * 100) / 100;
|
|
83
84
|
var previousSize = previousSizeRef.current;
|
|
84
85
|
|
|
85
86
|
// 只有尺寸变化超过阈值时才更新
|
|
@@ -52,7 +52,7 @@ export var useSidebarHeight = function useSidebarHeight(isSizeStable, sizeValues
|
|
|
52
52
|
var headerHeightValue = headerHeight || 0;
|
|
53
53
|
var calculatedHeight = baseHeight - headerHeightValue - footerHeight - bodyPadding;
|
|
54
54
|
return calculatedHeight;
|
|
55
|
-
}, []);
|
|
55
|
+
}, [sizeValuesRef.current]);
|
|
56
56
|
|
|
57
57
|
// 使用 requestAnimationFrame 确保在浏览器重绘后计算,更稳定
|
|
58
58
|
useEffect(function () {
|
|
@@ -217,7 +217,11 @@ var PisellTabbar = function PisellTabbar(props) {
|
|
|
217
217
|
gap: 12
|
|
218
218
|
},
|
|
219
219
|
panelStyle: {
|
|
220
|
-
|
|
220
|
+
position: 'absolute',
|
|
221
|
+
top: 40,
|
|
222
|
+
right: 0,
|
|
223
|
+
// zIndex: 99,
|
|
224
|
+
height: 'calc(100% - 40px)',
|
|
221
225
|
transition: '0.3s ease-in-out'
|
|
222
226
|
},
|
|
223
227
|
startSlot: null,
|
|
@@ -241,4 +245,38 @@ var PisellTabbar = function PisellTabbar(props) {
|
|
|
241
245
|
};
|
|
242
246
|
PisellTabbar.displayName = 'PisellTabbar';
|
|
243
247
|
PisellTabbar.getDefaultActiveKey = getDefaultActiveKey;
|
|
248
|
+
|
|
249
|
+
// const Demo = () => {
|
|
250
|
+
// return (
|
|
251
|
+
// <div style={{ height: '100vh', width: '100%', display: 'flex' }}>
|
|
252
|
+
// <div className="" style={{ height: '100%', width: 'calc(100% - 100px)' }}>
|
|
253
|
+
// <div className="tabbar-level-3-wrap" style={{ width: '100%' }}></div>
|
|
254
|
+
// <div className="" style={{ height: '400px' }}>
|
|
255
|
+
// content
|
|
256
|
+
// </div>
|
|
257
|
+
// </div>
|
|
258
|
+
// <div
|
|
259
|
+
// className=""
|
|
260
|
+
// style={{
|
|
261
|
+
// height: '100%',
|
|
262
|
+
// width: '100px',
|
|
263
|
+
// display: 'flex',
|
|
264
|
+
// alignItems: 'flex-start',
|
|
265
|
+
// }}
|
|
266
|
+
// >
|
|
267
|
+
// <div
|
|
268
|
+
// className="tabbar-level-2-wrap"
|
|
269
|
+
// style={{
|
|
270
|
+
// height: '100%',
|
|
271
|
+
// position: 'relative',
|
|
272
|
+
// }}
|
|
273
|
+
// ></div>
|
|
274
|
+
// <div className="" style={{ height: '100%' }}>
|
|
275
|
+
// <PisellTabbar __designMode />
|
|
276
|
+
// </div>
|
|
277
|
+
// </div>
|
|
278
|
+
// </div>
|
|
279
|
+
// );
|
|
280
|
+
// };
|
|
281
|
+
|
|
244
282
|
export default PisellTabbar;
|
|
@@ -256,6 +256,7 @@ var TabbarLevel = /*#__PURE__*/memo(function (props) {
|
|
|
256
256
|
|
|
257
257
|
// 普通项
|
|
258
258
|
return /*#__PURE__*/React.createElement(PisellCards.MultilevelCard, _extends({}, itemProps, {
|
|
259
|
+
panelWidthMode: "auto",
|
|
259
260
|
card: function card(cardProps) {
|
|
260
261
|
if (level === 'level1') {
|
|
261
262
|
return renderLevel1NormalCard(cardProps);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const useDataSourceKey: () => {
|
|
3
|
-
dataSourceKey: string | undefined;
|
|
4
|
-
dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
|
|
2
|
+
dataSourceKey: string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined;
|
|
3
|
+
dataSourceKeyRef: import("react").MutableRefObject<string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined>;
|
|
5
4
|
};
|
|
6
5
|
export default useDataSourceKey;
|
|
@@ -19,7 +19,7 @@ interface UseTablePropsProps {
|
|
|
19
19
|
*/
|
|
20
20
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
21
21
|
currentComponentId: any;
|
|
22
|
-
title:
|
|
22
|
+
title: string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
23
23
|
pagination: {
|
|
24
24
|
total: number;
|
|
25
25
|
current: number;
|
|
@@ -28,7 +28,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
28
28
|
showSizeChanger: boolean;
|
|
29
29
|
};
|
|
30
30
|
columns: import("./useColumns").Column[];
|
|
31
|
-
subTitle:
|
|
31
|
+
subTitle: string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
32
32
|
buttons: any[] | null;
|
|
33
33
|
filter: {
|
|
34
34
|
dom: any;
|
|
@@ -54,7 +54,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
54
54
|
width: number;
|
|
55
55
|
align: "center" | "left" | "right";
|
|
56
56
|
fixed: false | "left" | "right";
|
|
57
|
-
type: "
|
|
57
|
+
type: "button" | "link";
|
|
58
58
|
items: OperationItem[];
|
|
59
59
|
} | undefined;
|
|
60
60
|
operationContent?: {
|
|
@@ -72,7 +72,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
72
72
|
useCustomAction: boolean;
|
|
73
73
|
actionType: string;
|
|
74
74
|
openMode: "modal" | "drawer";
|
|
75
|
-
openContentSize: "small" | "
|
|
75
|
+
openContentSize: "small" | "middle" | "large";
|
|
76
76
|
openTitle: string;
|
|
77
77
|
key: string;
|
|
78
78
|
} | undefined;
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|