@sia.soul/sia-react-ui 0.1.144 → 0.1.146
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/dist/chart.cjs +2 -0
- package/dist/chart.js +5 -5
- package/dist/{chunk-F52O2MOV.js → chunk-DEA5BI3R.js} +3 -3
- package/dist/{chunk-JRXYM5YH.js → chunk-HDN7EEGA.js} +2 -2
- package/dist/{chunk-566S64IP.js → chunk-HPPF5JGF.js} +4 -4
- package/dist/{chunk-ORSQAJ22.js → chunk-KDG2P3JA.js} +5 -5
- package/dist/{chunk-WCYVBO2N.js → chunk-KSXTC3PD.js} +4 -4
- package/dist/{chunk-MD4CGSOR.js → chunk-LY73KGUH.js} +6 -6
- package/dist/{chunk-LKLPCYEP.js → chunk-NRLIOMXY.js} +2 -2
- package/dist/{chunk-7SEGBB6V.js → chunk-OTVK3HGP.js} +1 -1
- package/dist/{chunk-4TYHSAR3.js → chunk-ROV3QYE6.js} +5 -5
- package/dist/{chunk-4OHS7RXE.js → chunk-SRWUDTCS.js} +2 -0
- package/dist/{chunk-PD3K5U5Y.js → chunk-XXFYFLZA.js} +2 -2
- package/dist/{chunk-ETQJ2DQ2.js → chunk-YO5OJQEH.js} +1 -1
- package/dist/{core-COaZfusa.d.cts → core-8jfdF5IF.d.cts} +3 -3
- package/dist/{core-CvfsQGuT.d.ts → core-BbgdopTV.d.ts} +3 -3
- package/dist/core.cjs +2 -0
- package/dist/core.css +94 -34
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +8 -8
- package/dist/game.cjs +2 -0
- package/dist/game.css +94 -34
- package/dist/game.js +3 -3
- package/dist/index.cjs +1638 -1369
- package/dist/index.css +104 -34
- package/dist/index.d.cts +54 -8
- package/dist/index.d.ts +54 -8
- package/dist/index.js +402 -137
- package/dist/markdown-editor.cjs +2 -0
- package/dist/markdown-editor.js +3 -3
- package/dist/rich-text-editor.cjs +2 -0
- package/dist/rich-text-editor.js +7 -7
- package/dist/select-date-range.cjs +2 -0
- package/dist/select-date-range.js +8 -8
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -2553,7 +2553,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2553
2553
|
.sia-card {
|
|
2554
2554
|
--sia-card-accent: var(--sia-color-primary);
|
|
2555
2555
|
color: var(--sia-color-text);
|
|
2556
|
-
background: var(--sia-color-surface);
|
|
2556
|
+
background: var(--sia-card-background, var(--sia-color-surface));
|
|
2557
2557
|
border: 1px solid color-mix(in srgb, var(--sia-color-border) 75%, var(--sia-color-surface));
|
|
2558
2558
|
border-radius: var(--sia-radius);
|
|
2559
2559
|
}
|
|
@@ -2637,6 +2637,29 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2637
2637
|
.sia-card--actionable {
|
|
2638
2638
|
cursor: pointer;
|
|
2639
2639
|
}
|
|
2640
|
+
.sia-card--actionable:not([aria-disabled=true]) {
|
|
2641
|
+
transition:
|
|
2642
|
+
background-color 140ms ease,
|
|
2643
|
+
border-color 140ms ease,
|
|
2644
|
+
transform 100ms ease;
|
|
2645
|
+
}
|
|
2646
|
+
.sia-card--actionable:not([aria-disabled=true]):hover {
|
|
2647
|
+
background: color-mix(in srgb, var(--sia-color-primary) 8%, var(--sia-card-background, var(--sia-color-surface)));
|
|
2648
|
+
border-color: color-mix(in srgb, var(--sia-color-primary) 35%, var(--sia-color-border));
|
|
2649
|
+
}
|
|
2650
|
+
.sia-card--actionable:not([aria-disabled=true]):active:not(:has(button:active, a:active, input:active, select:active, textarea:active, [contenteditable=true]:active)) {
|
|
2651
|
+
background: color-mix(in srgb, var(--sia-color-primary) 16%, var(--sia-card-background, var(--sia-color-surface)));
|
|
2652
|
+
border-color: var(--sia-color-primary);
|
|
2653
|
+
transform: scale(.98);
|
|
2654
|
+
}
|
|
2655
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2656
|
+
.sia-card--actionable:not([aria-disabled=true]) {
|
|
2657
|
+
transition: none;
|
|
2658
|
+
}
|
|
2659
|
+
.sia-card--actionable:not([aria-disabled=true]):active {
|
|
2660
|
+
transform: none;
|
|
2661
|
+
}
|
|
2662
|
+
}
|
|
2640
2663
|
.sia-card--selectable[data-sia-interaction-cursor=default],
|
|
2641
2664
|
.sia-card--actionable[data-sia-interaction-cursor=default] {
|
|
2642
2665
|
cursor: default;
|
|
@@ -2693,6 +2716,33 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2693
2716
|
border-color: var(--sia-color-primary);
|
|
2694
2717
|
box-shadow: inset 0 0 0 1px var(--sia-color-primary);
|
|
2695
2718
|
}
|
|
2719
|
+
.sia-card--selectable:not([aria-disabled=true]) {
|
|
2720
|
+
transition:
|
|
2721
|
+
background-color 140ms ease,
|
|
2722
|
+
border-color 140ms ease,
|
|
2723
|
+
transform 100ms ease;
|
|
2724
|
+
}
|
|
2725
|
+
.sia-card--selectable:not([aria-disabled=true]):hover {
|
|
2726
|
+
background: color-mix(in srgb, var(--sia-color-primary) 8%, var(--sia-card-background, var(--sia-color-surface)));
|
|
2727
|
+
border-color: color-mix(in srgb, var(--sia-color-primary) 35%, var(--sia-color-border));
|
|
2728
|
+
}
|
|
2729
|
+
.sia-card--selectable.sia-card--selected:not([aria-disabled=true]):hover {
|
|
2730
|
+
background: color-mix(in srgb, var(--sia-color-primary) 16%, var(--sia-color-surface));
|
|
2731
|
+
border-color: var(--sia-color-primary);
|
|
2732
|
+
}
|
|
2733
|
+
.sia-card--selectable:not([aria-disabled=true]):active:not(:has(button:active, a:active, input:active, select:active, textarea:active, [contenteditable=true]:active)) {
|
|
2734
|
+
background: color-mix(in srgb, var(--sia-color-primary) 24%, var(--sia-card-background, var(--sia-color-surface)));
|
|
2735
|
+
border-color: var(--sia-color-primary);
|
|
2736
|
+
transform: scale(.98);
|
|
2737
|
+
}
|
|
2738
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2739
|
+
.sia-card--selectable:not([aria-disabled=true]) {
|
|
2740
|
+
transition: none;
|
|
2741
|
+
}
|
|
2742
|
+
.sia-card--selectable:not([aria-disabled=true]):active:not(:has(button:active, a:active, input:active, select:active, textarea:active, [contenteditable=true]:active)) {
|
|
2743
|
+
transform: none;
|
|
2744
|
+
}
|
|
2745
|
+
}
|
|
2696
2746
|
.sia-card.sia-card--borderless {
|
|
2697
2747
|
border: 0;
|
|
2698
2748
|
box-shadow: none;
|
|
@@ -5516,6 +5566,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
5516
5566
|
margin-bottom: 8px;
|
|
5517
5567
|
}
|
|
5518
5568
|
.sia-sortable-list {
|
|
5569
|
+
position: relative;
|
|
5519
5570
|
display: flex;
|
|
5520
5571
|
gap: 16px;
|
|
5521
5572
|
overflow: auto;
|
|
@@ -5531,7 +5582,25 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
5531
5582
|
min-width: 0;
|
|
5532
5583
|
}
|
|
5533
5584
|
.sia-sortable-list__item.is-dragging {
|
|
5534
|
-
|
|
5585
|
+
z-index: 2;
|
|
5586
|
+
filter: drop-shadow(0 6px 8px rgb(0 0 0 / 16%));
|
|
5587
|
+
}
|
|
5588
|
+
.sia-sortable-list__placeholder {
|
|
5589
|
+
position: absolute;
|
|
5590
|
+
box-sizing: border-box;
|
|
5591
|
+
border: 2px dashed var(--sia-color-primary);
|
|
5592
|
+
border-radius: var(--sia-radius-md, 6px);
|
|
5593
|
+
background: var(--sia-color-primary-light);
|
|
5594
|
+
pointer-events: none;
|
|
5595
|
+
}
|
|
5596
|
+
.sia-sortable-list.is-sorting {
|
|
5597
|
+
user-select: none;
|
|
5598
|
+
}
|
|
5599
|
+
.sia-sortable-list.is-sorting .sia-sortable-list__handle {
|
|
5600
|
+
cursor: grabbing;
|
|
5601
|
+
}
|
|
5602
|
+
.sia-sortable-list__handle {
|
|
5603
|
+
touch-action: none;
|
|
5535
5604
|
}
|
|
5536
5605
|
.sia-sortable-list__handle {
|
|
5537
5606
|
display: flex;
|
|
@@ -5560,38 +5629,6 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
5560
5629
|
background: transparent;
|
|
5561
5630
|
text-align: start;
|
|
5562
5631
|
}
|
|
5563
|
-
.sia-sortable-list__item.is-drop-before::before,
|
|
5564
|
-
.sia-sortable-list__item.is-drop-after::after {
|
|
5565
|
-
content: "";
|
|
5566
|
-
position: absolute;
|
|
5567
|
-
background: var(--sia-color-primary);
|
|
5568
|
-
pointer-events: none;
|
|
5569
|
-
z-index: 1;
|
|
5570
|
-
}
|
|
5571
|
-
.sia-sortable-list--horizontal .is-drop-before::before {
|
|
5572
|
-
top: 0;
|
|
5573
|
-
bottom: 0;
|
|
5574
|
-
left: -9px;
|
|
5575
|
-
width: 2px;
|
|
5576
|
-
}
|
|
5577
|
-
.sia-sortable-list--horizontal .is-drop-after::after {
|
|
5578
|
-
top: 0;
|
|
5579
|
-
bottom: 0;
|
|
5580
|
-
right: -9px;
|
|
5581
|
-
width: 2px;
|
|
5582
|
-
}
|
|
5583
|
-
.sia-sortable-list--vertical .is-drop-before::before {
|
|
5584
|
-
left: 0;
|
|
5585
|
-
right: 0;
|
|
5586
|
-
top: -9px;
|
|
5587
|
-
height: 2px;
|
|
5588
|
-
}
|
|
5589
|
-
.sia-sortable-list--vertical .is-drop-after::after {
|
|
5590
|
-
left: 0;
|
|
5591
|
-
right: 0;
|
|
5592
|
-
bottom: -9px;
|
|
5593
|
-
height: 2px;
|
|
5594
|
-
}
|
|
5595
5632
|
.sia-popover.sia-popover--wide {
|
|
5596
5633
|
width: 760px;
|
|
5597
5634
|
max-width: calc(100vw - 32px);
|
|
@@ -5647,6 +5684,29 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
5647
5684
|
.sia-query-form__fields {
|
|
5648
5685
|
position: relative;
|
|
5649
5686
|
}
|
|
5687
|
+
.sia-virtual-grid {
|
|
5688
|
+
position: relative;
|
|
5689
|
+
flex: 1;
|
|
5690
|
+
height: 100%;
|
|
5691
|
+
min-width: 0;
|
|
5692
|
+
min-height: 0;
|
|
5693
|
+
overflow: auto;
|
|
5694
|
+
overscroll-behavior: contain;
|
|
5695
|
+
overflow-anchor: none;
|
|
5696
|
+
}
|
|
5697
|
+
.sia-virtual-grid__spacer {
|
|
5698
|
+
position: relative;
|
|
5699
|
+
width: 100%;
|
|
5700
|
+
}
|
|
5701
|
+
.sia-virtual-grid__row {
|
|
5702
|
+
position: absolute;
|
|
5703
|
+
inset-inline: 0;
|
|
5704
|
+
display: grid;
|
|
5705
|
+
}
|
|
5706
|
+
.sia-virtual-grid__item {
|
|
5707
|
+
min-width: 0;
|
|
5708
|
+
height: 100%;
|
|
5709
|
+
}
|
|
5650
5710
|
|
|
5651
5711
|
/* src/overlay-borders.css */
|
|
5652
5712
|
.sia-select__dropdown.sia-select__dropdown,
|
|
@@ -11605,6 +11665,16 @@ body > .sia-title-tooltip[data-sia-popup-layer] {
|
|
|
11605
11665
|
gap: 8px;
|
|
11606
11666
|
}
|
|
11607
11667
|
|
|
11668
|
+
/* src/components/Video.css */
|
|
11669
|
+
.sia-video {
|
|
11670
|
+
display: block;
|
|
11671
|
+
width: 100%;
|
|
11672
|
+
max-width: 100%;
|
|
11673
|
+
object-fit: contain;
|
|
11674
|
+
background: var(--sia-color-surface);
|
|
11675
|
+
border-radius: var(--sia-radius, 8px);
|
|
11676
|
+
}
|
|
11677
|
+
|
|
11608
11678
|
/* src/float-button.css */
|
|
11609
11679
|
.sia-float-button-root,
|
|
11610
11680
|
.sia-float-button-group {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes } from 'react';
|
|
3
|
-
import { T as TagStatus, B as BadgeProps } from './core-
|
|
4
|
-
export { a as Badge, b as BadgeRibbonProps, c as BadgeStatus, d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, C as Calendar, g as CalendarProps, h as Card, i as CardAccent, j as CardProps, k as Carousel, l as CarouselProps, m as CarouselRef, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, D as Dropdown, r as DropdownButtonProps, s as DropdownMenuProps, t as DropdownOpenSource, u as DropdownPlacement, v as DropdownProps, w as DropdownTrigger, F as FILLED_ICON_NAMES, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, H as FloatingPlacement, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, K as FloatingTrigger, L as ICON_NAMES, M as Icon, N as IconName, O as IconProps, P as IconVariant, Q as Image, R as ImagePreview, S as ImagePreviewConfig, U as ImagePreviewGroup, V as ImagePreviewGroupProps, W as ImagePreviewProps, X as ImageProps, Y as Input, Z as InputProps, _ as Menu, $ as MenuClickInfo, a0 as MenuItem, a1 as MenuMode, a2 as MenuProps, a3 as MenuTheme, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, a8 as NotificationConfig, a9 as NotificationPlacement, aa as NotificationType, ab as Popconfirm, ac as PopconfirmProps, ad as Popover, ae as PopoverProps, af as Progress, ag as ProgressProps, ah as ProgressStatus, ai as Rate, aj as RateProps, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, at as Spin, au as SpinProps, av as StepItem, aw as StepStatus, ax as Steps, ay as StepsProps, az as TabItem, aA as Tabs, aB as TabsContextMenuClickInfo, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, aJ as TagVariant, aK as Timeline, aL as TimelineItem, aM as TimelineProps, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, aQ as Tooltip, aR as TooltipProps, aS as Tour, aT as TourProps, aU as TourStep, aV as Tree, aW as TreeDropPosition, aX as TreeKey, aY as TreeNode, aZ as TreeProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, b8 as UploadHttpRequest, b9 as UploadItemActions, ba as UploadProps, bb as UploadRef, bc as UploadRejectInfo, bd as UploadRequestHandle, be as UploadRequestOptions, bf as Watermark, bg as WatermarkFont, bh as WatermarkProps, bi as message, bj as notification } from './core-
|
|
2
|
+
import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes, VideoHTMLAttributes } from 'react';
|
|
3
|
+
import { T as TagStatus, B as BadgeProps } from './core-8jfdF5IF.cjs';
|
|
4
|
+
export { a as Badge, b as BadgeRibbonProps, c as BadgeStatus, d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, C as Calendar, g as CalendarProps, h as Card, i as CardAccent, j as CardProps, k as Carousel, l as CarouselProps, m as CarouselRef, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, D as Dropdown, r as DropdownButtonProps, s as DropdownMenuProps, t as DropdownOpenSource, u as DropdownPlacement, v as DropdownProps, w as DropdownTrigger, F as FILLED_ICON_NAMES, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, H as FloatingPlacement, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, K as FloatingTrigger, L as ICON_NAMES, M as Icon, N as IconName, O as IconProps, P as IconVariant, Q as Image, R as ImagePreview, S as ImagePreviewConfig, U as ImagePreviewGroup, V as ImagePreviewGroupProps, W as ImagePreviewProps, X as ImageProps, Y as Input, Z as InputProps, _ as Menu, $ as MenuClickInfo, a0 as MenuItem, a1 as MenuMode, a2 as MenuProps, a3 as MenuTheme, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, a8 as NotificationConfig, a9 as NotificationPlacement, aa as NotificationType, ab as Popconfirm, ac as PopconfirmProps, ad as Popover, ae as PopoverProps, af as Progress, ag as ProgressProps, ah as ProgressStatus, ai as Rate, aj as RateProps, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, at as Spin, au as SpinProps, av as StepItem, aw as StepStatus, ax as Steps, ay as StepsProps, az as TabItem, aA as Tabs, aB as TabsContextMenuClickInfo, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, aJ as TagVariant, aK as Timeline, aL as TimelineItem, aM as TimelineProps, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, aQ as Tooltip, aR as TooltipProps, aS as Tour, aT as TourProps, aU as TourStep, aV as Tree, aW as TreeDropPosition, aX as TreeKey, aY as TreeNode, aZ as TreeProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, b8 as UploadHttpRequest, b9 as UploadItemActions, ba as UploadProps, bb as UploadRef, bc as UploadRejectInfo, bd as UploadRequestHandle, be as UploadRequestOptions, bf as Watermark, bg as WatermarkFont, bh as WatermarkProps, bi as message, bj as notification } from './core-8jfdF5IF.cjs';
|
|
5
5
|
import { C as ControlSize, I as InputPlaceholderMode, a as ControlStatus } from './shared-Bx4B28Wh.cjs';
|
|
6
6
|
import { B as ButtonProps, a as ButtonSize } from './Button-CxKBjLda.cjs';
|
|
7
7
|
export { b as Button, c as ButtonVariant } from './Button-CxKBjLda.cjs';
|
|
@@ -82,20 +82,20 @@ type SortableKey = string | number;
|
|
|
82
82
|
interface SortableListProps {
|
|
83
83
|
/** 按当前顺序排列的唯一稳定标识,不允许重复。 */
|
|
84
84
|
items: readonly SortableKey[];
|
|
85
|
-
/**
|
|
85
|
+
/** 根据标识和已提交索引渲染内容;第三个参数为框架手柄,custom 模式须放入标题等位置。拖动预览只移动原节点,不重挂载或提前改变索引,输入草稿保持。 */
|
|
86
86
|
renderItem: (key: SortableKey, index: number, handle: ReactNode) => ReactNode;
|
|
87
87
|
/** 手柄位置;before 在条目前独占一行,custom 由 renderItem 放置框架提供的手柄。@defaultValue "before" */
|
|
88
88
|
handlePlacement?: "before" | "custom";
|
|
89
89
|
/** 手柄的内容,接收稳定标识和当前位置;未指定时显示拖动图标,可返回卡片标题文字。 */
|
|
90
90
|
handleContent?: (key: SortableKey, index: number) => ReactNode;
|
|
91
|
-
/**
|
|
91
|
+
/** 指针在列表内松手并完成 160ms 吸附动画后,或手柄方向键移动后,返回一次新顺序,调用方须回填 items。减少动态效果时立即提交;预览、原位放下、Esc/列表外取消、禁用、外部顺序变化均不触发,不等待回调返回值。 */
|
|
92
92
|
onOrderChange: (items: SortableKey[]) => void;
|
|
93
|
-
/**
|
|
93
|
+
/** 排列及拖动轴;按轴移动至少 4px 开始预览,相邻项以 180ms 让位,靠近列表滚动边缘自动滚动。仅由手柄发起,不影响内部输入;减少动态效果时相邻项直接定位。@defaultValue "horizontal" */
|
|
94
94
|
direction?: "horizontal" | "vertical";
|
|
95
95
|
/** 禁止拖放和键盘排序,不禁用条目内部业务控件。@defaultValue false */
|
|
96
96
|
disabled?: boolean;
|
|
97
97
|
}
|
|
98
|
-
/**
|
|
98
|
+
/** 拖放与键盘共用受控顺序;指针预览不重挂载内容,也不改变 renderItem 的业务索引。 */
|
|
99
99
|
declare function SortableList({ items, renderItem, onOrderChange, direction, disabled, handlePlacement, handleContent }: SortableListProps): react.JSX.Element;
|
|
100
100
|
|
|
101
101
|
/** 警告提示的状态类型。 */
|
|
@@ -3178,6 +3178,22 @@ interface ThemeSwitchProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>,
|
|
|
3178
3178
|
/** 主题切换组件。 */
|
|
3179
3179
|
declare const ThemeSwitch: react.ForwardRefExoticComponent<ThemeSwitchProps & react.RefAttributes<HTMLButtonElement>>;
|
|
3180
3180
|
|
|
3181
|
+
/** 视频展示组件的属性;继承视频地址、封面、媒体事件和无障碍属性。 */
|
|
3182
|
+
interface VideoProps extends VideoHTMLAttributes<HTMLVideoElement> {
|
|
3183
|
+
/** 是否显示浏览器播放控制栏,默认 true;窗口采集预览可设为 false。 */
|
|
3184
|
+
controls?: boolean;
|
|
3185
|
+
/** 是否静音,默认 false;自动播放的采集预览建议设为 true。 */
|
|
3186
|
+
muted?: boolean;
|
|
3187
|
+
/** 是否在页面内播放,默认 true,避免移动设备自动进入全屏播放器。 */
|
|
3188
|
+
playsInline?: boolean;
|
|
3189
|
+
}
|
|
3190
|
+
/**
|
|
3191
|
+
* 视频展示,默认占容器宽度并完整显示画面,沿用框架表面色和圆角。
|
|
3192
|
+
* ref 指向 HTMLVideoElement,可赋值 srcObject 接入 MediaStream;
|
|
3193
|
+
* 调用方负责捕获授权、处理 play() 拒绝及停止媒体轨道,组件不申请摄像头或屏幕权限。
|
|
3194
|
+
*/
|
|
3195
|
+
declare const Video: react.ForwardRefExoticComponent<VideoProps & react.RefAttributes<HTMLVideoElement>>;
|
|
3196
|
+
|
|
3181
3197
|
/** Selection的值类型。 */
|
|
3182
3198
|
type SelectionValue = string | number;
|
|
3183
3199
|
/** Selection的候选项定义。 */
|
|
@@ -3545,4 +3561,34 @@ interface NumberRangeProps extends Omit<HTMLAttributes<HTMLSpanElement>, "onChan
|
|
|
3545
3561
|
/** 日期区间风格的双数字输入框,使用波浪线分隔;可直接绑定 Form.Item。 */
|
|
3546
3562
|
declare const NumberRange: react.ForwardRefExoticComponent<NumberRangeProps & react.RefAttributes<HTMLSpanElement>>;
|
|
3547
3563
|
|
|
3548
|
-
|
|
3564
|
+
/** 固定行高的响应式虚拟网格;父容器需提供确定高度或可收缩的弹性高度。 */
|
|
3565
|
+
interface VirtualGridProps<T> extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
3566
|
+
/** 已加载的数据;追加数组可继续滚动,组件不请求或存储远程数据。 */
|
|
3567
|
+
items: readonly T[];
|
|
3568
|
+
/** 返回跨排序保持稳定的项目标识,供 React 复用可见项。 */
|
|
3569
|
+
itemKey: (item: T, index: number) => Key;
|
|
3570
|
+
/** 渲染可见项目;index 是项目在 items 中的原始索引。 */
|
|
3571
|
+
renderItem: (item: T, index: number) => ReactNode;
|
|
3572
|
+
/** 每行固定高度,单位 px,须容纳完整项目内容;最小 1px。 */
|
|
3573
|
+
rowHeight: number;
|
|
3574
|
+
/** 每列最小宽度,单位 px;宽度不足时仍显示一列。@defaultValue 200 */
|
|
3575
|
+
minColumnWidth?: number;
|
|
3576
|
+
/** 行与列之间的间隔,单位 px。@defaultValue 8 */
|
|
3577
|
+
gap?: number;
|
|
3578
|
+
/** 视口上下额外保留的行数,降低快速滚动时的空白。@defaultValue 2 */
|
|
3579
|
+
overscan?: number;
|
|
3580
|
+
/** 是否还有后续数据;为 false 时不触发 onLoadMore。@defaultValue false */
|
|
3581
|
+
hasMore?: boolean;
|
|
3582
|
+
/** 是否正在加载;为 true 时不触发 onLoadMore,并设置 aria-busy。@defaultValue false */
|
|
3583
|
+
loading?: boolean;
|
|
3584
|
+
/** 距已加载内容底部多少 px 时请求下一批;首屏不足一屏时也触发。@defaultValue 120 */
|
|
3585
|
+
loadMoreThreshold?: number;
|
|
3586
|
+
/** 接近底部且 hasMore=true、loading=false 时调用;同一数据长度只通知一次。调用方追加 items 或变更 hasMore,异步加载及失败提示由调用方管理;需重试时可更换组件 key。 */
|
|
3587
|
+
onLoadMore?: () => void;
|
|
3588
|
+
/** 无已加载项目且未加载中时显示的内容。 */
|
|
3589
|
+
empty?: ReactNode;
|
|
3590
|
+
}
|
|
3591
|
+
/** 仅挂载可视行及缓冲行的网格;宽度变化自动重算列数,筛选重置滚动可更换 key。 */
|
|
3592
|
+
declare function VirtualGrid<T>({ items, itemKey, renderItem, rowHeight, minColumnWidth, gap, overscan, hasMore, loading, loadMoreThreshold, onLoadMore, empty, className, onScroll, tabIndex, ...props }: VirtualGridProps<T>): react.JSX.Element;
|
|
3593
|
+
|
|
3594
|
+
export { Alert, type AlertProps, type AlertStatus, type AnyTablePlugin, AutoSizer, type AutoSizerProps, type AutoSizerSize, BadgeProps, ButtonProps, ButtonSize, Cascader, type CascaderFieldNames, type CascaderOption, type CascaderProps, type CascaderValue, Checkbox, type CheckboxGroupProps, type CheckboxOption, type CheckboxProps, type CheckboxValue, Col, type ColProps, type ColSize, ColorPicker, type ColorPickerMode, type ColorPickerPreset, type ColorPickerProps, ControlSize, ControlStatus, CursorPreview, type CursorPreviewFrame, type CursorPreviewProps, DEFAULT_PAGE_SIZE_OPTIONS, Divider, type DividerProps, Drawer, type DrawerOpenConfig, type DrawerPlacement, type DrawerProps, type DrawerPush, type DrawerPushConfig, Editor, type EditorCommand, type EditorCompletionContext, type EditorCompletionItem, type EditorCompletionItemKind, type EditorCompletionProvider, type EditorContextMenuItem, type EditorHandle, type EditorKeyDownEvent, type EditorLanguage, type EditorMarker, type EditorProps, type EditorRange, type EditorSelectionChange, type EditorTheme, type FlatTreeNode, type FlatTreeOptions, Flex, type FlexProps, FloatingPanel, type FloatingPanelProps, Form, type FormErrorField, type FormFieldData, type FormInstance, type FormItemProps, type FormListField, type FormListOperation, type FormListProps, type FormProps, type FormRule, type FormValues, type GridBreakpoint, InputNumber, type InputNumberProps, InputPlaceholderMode, InputSelect, type InputSelectProps, type LayoutGap, Markdown, type MarkdownProps, ModalActionResult, ModalOpenConfig, type NamePath, NumberRange, type NumberRangeProps, type NumberRangeValue, OverlayApiHandle, Pagination, type PaginationProps, QueryForm, type QueryFormField, type QueryFormFieldSetting, type QueryFormProps, type QueryFormSearchInfo, type QueryFormSettingsConfig, type QueryFormSettingsSnapshot, type QueryFormShortcut, Radio, type RadioGroupProps, type RadioOption, type RadioProps, type RadioValue, Row, type RowProps, SIA_THEME, SelectChangeValue, type SelectModalConfig, SelectOption, SelectProps, type SelectionOption, SelectionPanel, type SelectionPanelProps, type SelectionValue, type SiaThemeMode, Slider, type SliderMark, type SliderProps, type SliderValue, type SortableKey, SortableList, type SortableListProps, Space, type SpaceCompactProps, type SpaceProps, Splitter, type SplitterPanelProps, type SplitterProps, Switch, type SwitchProps, type SwitchVariant, Table, type TableAlign, type TableCanvasCell, type TableCellAddress, type TableCellFocusOptions, type TableCellRange, type TableCellRenderInfo, type TableCellSelectionApi, type TableCellSelectionPluginOptions, type TableColumn, type TableColumnSettingApi, type TableColumnSettingItem, type TableColumnSettingPluginOptions, type TableColumnTransformPluginOptions, type TableEditableApi, type TableEditableCellConfig, type TableEditableCellType, type TableEditablePluginOptions, type TableExportApi, type TableExportPluginOptions, type TableExportScope, type TableFilterApi, type TableFilterPluginOptions, type TableFilterValues, type TableFixed, type TableHighlightPluginOptions, type TableHighlightValue, type TableIndexPluginOptions, type TableKey, type TableMergeStickyConfig, type TablePageParams, type TablePaginationApi, type TablePaginationPluginOptions, type TablePlugin, type TablePluginCellProps, type TablePluginContext, type TablePluginEvent, type TableProps, type TableRef, type TableResizeApi, type TableResizePluginOptions, type TableRow, type TableRowSpanPluginOptions, type TableSelectedCell, type TableSelectionApi, type TableSelectionMode, type TableSelectionPluginOptions, type TableSettingsAdapter, type TableSettingsSnapshot, type TableSize, type TableSortApi, type TableSortInfo, type TableSortPluginOptions, type TableSummaryPluginOptions, type TableSummaryRow, type TableToolbarItem, type TableToolbarPluginOptions, type TableTreeApi, type TableTreePluginOptions, type TableWorksheetApi, type TableWorksheetChange, type TableWorksheetHistory, type TableWorksheetOperation, type TableWorksheetPluginOptions, type TableWorksheetReason, type TableWorksheetValueContext, TagStatus, TextArea, type TextAreaProps, ThemeSwitch, type ThemeSwitchProps, TimePicker, type TimePickerProps, type TimeRangePickerProps, ToolPanel, type ToolPanelItem, type ToolPanelPlacement, type ToolPanelProps, TreeSelect, type TreeSelectNode, type TreeSelectProps, type TreeSelectValue, Treemap, type TreemapNode, type TreemapNodeClickInfo, type TreemapNodeKind, type TreemapProps, Video, type VideoProps, VirtualGrid, type VirtualGridProps, type WindowAction, type WindowActionHandler, type WindowControlAction, type WindowControlLabels, WindowControls, type WindowControlsProps, WindowFrame, type WindowFrameProps, WindowTitleBar, type WindowTitleBarActionsAlign, type WindowTitleBarProps, applySiaTheme, buildFlatTree, createCellSelectionPlugin, createColumnSettingPlugin, createColumnTransformPlugin, createEditablePlugin, createExportPlugin, createFilterPlugin, createHighlightPlugin, createIndexPlugin, createLocalStorageTableSettingsAdapter, createPaginationPlugin, createResizePlugin, createRowSpanPlugin, createSelectionPlugin, createSortPlugin, createSummaryPlugin, createToolbarPlugin, createTreePlugin, createWorksheetPlugin, openSelectModal, useForm };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes } from 'react';
|
|
3
|
-
import { T as TagStatus, B as BadgeProps } from './core-
|
|
4
|
-
export { a as Badge, b as BadgeRibbonProps, c as BadgeStatus, d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, C as Calendar, g as CalendarProps, h as Card, i as CardAccent, j as CardProps, k as Carousel, l as CarouselProps, m as CarouselRef, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, D as Dropdown, r as DropdownButtonProps, s as DropdownMenuProps, t as DropdownOpenSource, u as DropdownPlacement, v as DropdownProps, w as DropdownTrigger, F as FILLED_ICON_NAMES, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, H as FloatingPlacement, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, K as FloatingTrigger, L as ICON_NAMES, M as Icon, N as IconName, O as IconProps, P as IconVariant, Q as Image, R as ImagePreview, S as ImagePreviewConfig, U as ImagePreviewGroup, V as ImagePreviewGroupProps, W as ImagePreviewProps, X as ImageProps, Y as Input, Z as InputProps, _ as Menu, $ as MenuClickInfo, a0 as MenuItem, a1 as MenuMode, a2 as MenuProps, a3 as MenuTheme, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, a8 as NotificationConfig, a9 as NotificationPlacement, aa as NotificationType, ab as Popconfirm, ac as PopconfirmProps, ad as Popover, ae as PopoverProps, af as Progress, ag as ProgressProps, ah as ProgressStatus, ai as Rate, aj as RateProps, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, at as Spin, au as SpinProps, av as StepItem, aw as StepStatus, ax as Steps, ay as StepsProps, az as TabItem, aA as Tabs, aB as TabsContextMenuClickInfo, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, aJ as TagVariant, aK as Timeline, aL as TimelineItem, aM as TimelineProps, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, aQ as Tooltip, aR as TooltipProps, aS as Tour, aT as TourProps, aU as TourStep, aV as Tree, aW as TreeDropPosition, aX as TreeKey, aY as TreeNode, aZ as TreeProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, b8 as UploadHttpRequest, b9 as UploadItemActions, ba as UploadProps, bb as UploadRef, bc as UploadRejectInfo, bd as UploadRequestHandle, be as UploadRequestOptions, bf as Watermark, bg as WatermarkFont, bh as WatermarkProps, bi as message, bj as notification } from './core-
|
|
2
|
+
import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes, VideoHTMLAttributes } from 'react';
|
|
3
|
+
import { T as TagStatus, B as BadgeProps } from './core-BbgdopTV.js';
|
|
4
|
+
export { a as Badge, b as BadgeRibbonProps, c as BadgeStatus, d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, C as Calendar, g as CalendarProps, h as Card, i as CardAccent, j as CardProps, k as Carousel, l as CarouselProps, m as CarouselRef, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, D as Dropdown, r as DropdownButtonProps, s as DropdownMenuProps, t as DropdownOpenSource, u as DropdownPlacement, v as DropdownProps, w as DropdownTrigger, F as FILLED_ICON_NAMES, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, H as FloatingPlacement, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, K as FloatingTrigger, L as ICON_NAMES, M as Icon, N as IconName, O as IconProps, P as IconVariant, Q as Image, R as ImagePreview, S as ImagePreviewConfig, U as ImagePreviewGroup, V as ImagePreviewGroupProps, W as ImagePreviewProps, X as ImageProps, Y as Input, Z as InputProps, _ as Menu, $ as MenuClickInfo, a0 as MenuItem, a1 as MenuMode, a2 as MenuProps, a3 as MenuTheme, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, a8 as NotificationConfig, a9 as NotificationPlacement, aa as NotificationType, ab as Popconfirm, ac as PopconfirmProps, ad as Popover, ae as PopoverProps, af as Progress, ag as ProgressProps, ah as ProgressStatus, ai as Rate, aj as RateProps, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, at as Spin, au as SpinProps, av as StepItem, aw as StepStatus, ax as Steps, ay as StepsProps, az as TabItem, aA as Tabs, aB as TabsContextMenuClickInfo, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, aJ as TagVariant, aK as Timeline, aL as TimelineItem, aM as TimelineProps, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, aQ as Tooltip, aR as TooltipProps, aS as Tour, aT as TourProps, aU as TourStep, aV as Tree, aW as TreeDropPosition, aX as TreeKey, aY as TreeNode, aZ as TreeProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, b8 as UploadHttpRequest, b9 as UploadItemActions, ba as UploadProps, bb as UploadRef, bc as UploadRejectInfo, bd as UploadRequestHandle, be as UploadRequestOptions, bf as Watermark, bg as WatermarkFont, bh as WatermarkProps, bi as message, bj as notification } from './core-BbgdopTV.js';
|
|
5
5
|
import { C as ControlSize, I as InputPlaceholderMode, a as ControlStatus } from './shared-Bx4B28Wh.js';
|
|
6
6
|
import { B as ButtonProps, a as ButtonSize } from './Button-C8W8ZHWV.js';
|
|
7
7
|
export { b as Button, c as ButtonVariant } from './Button-C8W8ZHWV.js';
|
|
@@ -82,20 +82,20 @@ type SortableKey = string | number;
|
|
|
82
82
|
interface SortableListProps {
|
|
83
83
|
/** 按当前顺序排列的唯一稳定标识,不允许重复。 */
|
|
84
84
|
items: readonly SortableKey[];
|
|
85
|
-
/**
|
|
85
|
+
/** 根据标识和已提交索引渲染内容;第三个参数为框架手柄,custom 模式须放入标题等位置。拖动预览只移动原节点,不重挂载或提前改变索引,输入草稿保持。 */
|
|
86
86
|
renderItem: (key: SortableKey, index: number, handle: ReactNode) => ReactNode;
|
|
87
87
|
/** 手柄位置;before 在条目前独占一行,custom 由 renderItem 放置框架提供的手柄。@defaultValue "before" */
|
|
88
88
|
handlePlacement?: "before" | "custom";
|
|
89
89
|
/** 手柄的内容,接收稳定标识和当前位置;未指定时显示拖动图标,可返回卡片标题文字。 */
|
|
90
90
|
handleContent?: (key: SortableKey, index: number) => ReactNode;
|
|
91
|
-
/**
|
|
91
|
+
/** 指针在列表内松手并完成 160ms 吸附动画后,或手柄方向键移动后,返回一次新顺序,调用方须回填 items。减少动态效果时立即提交;预览、原位放下、Esc/列表外取消、禁用、外部顺序变化均不触发,不等待回调返回值。 */
|
|
92
92
|
onOrderChange: (items: SortableKey[]) => void;
|
|
93
|
-
/**
|
|
93
|
+
/** 排列及拖动轴;按轴移动至少 4px 开始预览,相邻项以 180ms 让位,靠近列表滚动边缘自动滚动。仅由手柄发起,不影响内部输入;减少动态效果时相邻项直接定位。@defaultValue "horizontal" */
|
|
94
94
|
direction?: "horizontal" | "vertical";
|
|
95
95
|
/** 禁止拖放和键盘排序,不禁用条目内部业务控件。@defaultValue false */
|
|
96
96
|
disabled?: boolean;
|
|
97
97
|
}
|
|
98
|
-
/**
|
|
98
|
+
/** 拖放与键盘共用受控顺序;指针预览不重挂载内容,也不改变 renderItem 的业务索引。 */
|
|
99
99
|
declare function SortableList({ items, renderItem, onOrderChange, direction, disabled, handlePlacement, handleContent }: SortableListProps): react.JSX.Element;
|
|
100
100
|
|
|
101
101
|
/** 警告提示的状态类型。 */
|
|
@@ -3178,6 +3178,22 @@ interface ThemeSwitchProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>,
|
|
|
3178
3178
|
/** 主题切换组件。 */
|
|
3179
3179
|
declare const ThemeSwitch: react.ForwardRefExoticComponent<ThemeSwitchProps & react.RefAttributes<HTMLButtonElement>>;
|
|
3180
3180
|
|
|
3181
|
+
/** 视频展示组件的属性;继承视频地址、封面、媒体事件和无障碍属性。 */
|
|
3182
|
+
interface VideoProps extends VideoHTMLAttributes<HTMLVideoElement> {
|
|
3183
|
+
/** 是否显示浏览器播放控制栏,默认 true;窗口采集预览可设为 false。 */
|
|
3184
|
+
controls?: boolean;
|
|
3185
|
+
/** 是否静音,默认 false;自动播放的采集预览建议设为 true。 */
|
|
3186
|
+
muted?: boolean;
|
|
3187
|
+
/** 是否在页面内播放,默认 true,避免移动设备自动进入全屏播放器。 */
|
|
3188
|
+
playsInline?: boolean;
|
|
3189
|
+
}
|
|
3190
|
+
/**
|
|
3191
|
+
* 视频展示,默认占容器宽度并完整显示画面,沿用框架表面色和圆角。
|
|
3192
|
+
* ref 指向 HTMLVideoElement,可赋值 srcObject 接入 MediaStream;
|
|
3193
|
+
* 调用方负责捕获授权、处理 play() 拒绝及停止媒体轨道,组件不申请摄像头或屏幕权限。
|
|
3194
|
+
*/
|
|
3195
|
+
declare const Video: react.ForwardRefExoticComponent<VideoProps & react.RefAttributes<HTMLVideoElement>>;
|
|
3196
|
+
|
|
3181
3197
|
/** Selection的值类型。 */
|
|
3182
3198
|
type SelectionValue = string | number;
|
|
3183
3199
|
/** Selection的候选项定义。 */
|
|
@@ -3545,4 +3561,34 @@ interface NumberRangeProps extends Omit<HTMLAttributes<HTMLSpanElement>, "onChan
|
|
|
3545
3561
|
/** 日期区间风格的双数字输入框,使用波浪线分隔;可直接绑定 Form.Item。 */
|
|
3546
3562
|
declare const NumberRange: react.ForwardRefExoticComponent<NumberRangeProps & react.RefAttributes<HTMLSpanElement>>;
|
|
3547
3563
|
|
|
3548
|
-
|
|
3564
|
+
/** 固定行高的响应式虚拟网格;父容器需提供确定高度或可收缩的弹性高度。 */
|
|
3565
|
+
interface VirtualGridProps<T> extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
3566
|
+
/** 已加载的数据;追加数组可继续滚动,组件不请求或存储远程数据。 */
|
|
3567
|
+
items: readonly T[];
|
|
3568
|
+
/** 返回跨排序保持稳定的项目标识,供 React 复用可见项。 */
|
|
3569
|
+
itemKey: (item: T, index: number) => Key;
|
|
3570
|
+
/** 渲染可见项目;index 是项目在 items 中的原始索引。 */
|
|
3571
|
+
renderItem: (item: T, index: number) => ReactNode;
|
|
3572
|
+
/** 每行固定高度,单位 px,须容纳完整项目内容;最小 1px。 */
|
|
3573
|
+
rowHeight: number;
|
|
3574
|
+
/** 每列最小宽度,单位 px;宽度不足时仍显示一列。@defaultValue 200 */
|
|
3575
|
+
minColumnWidth?: number;
|
|
3576
|
+
/** 行与列之间的间隔,单位 px。@defaultValue 8 */
|
|
3577
|
+
gap?: number;
|
|
3578
|
+
/** 视口上下额外保留的行数,降低快速滚动时的空白。@defaultValue 2 */
|
|
3579
|
+
overscan?: number;
|
|
3580
|
+
/** 是否还有后续数据;为 false 时不触发 onLoadMore。@defaultValue false */
|
|
3581
|
+
hasMore?: boolean;
|
|
3582
|
+
/** 是否正在加载;为 true 时不触发 onLoadMore,并设置 aria-busy。@defaultValue false */
|
|
3583
|
+
loading?: boolean;
|
|
3584
|
+
/** 距已加载内容底部多少 px 时请求下一批;首屏不足一屏时也触发。@defaultValue 120 */
|
|
3585
|
+
loadMoreThreshold?: number;
|
|
3586
|
+
/** 接近底部且 hasMore=true、loading=false 时调用;同一数据长度只通知一次。调用方追加 items 或变更 hasMore,异步加载及失败提示由调用方管理;需重试时可更换组件 key。 */
|
|
3587
|
+
onLoadMore?: () => void;
|
|
3588
|
+
/** 无已加载项目且未加载中时显示的内容。 */
|
|
3589
|
+
empty?: ReactNode;
|
|
3590
|
+
}
|
|
3591
|
+
/** 仅挂载可视行及缓冲行的网格;宽度变化自动重算列数,筛选重置滚动可更换 key。 */
|
|
3592
|
+
declare function VirtualGrid<T>({ items, itemKey, renderItem, rowHeight, minColumnWidth, gap, overscan, hasMore, loading, loadMoreThreshold, onLoadMore, empty, className, onScroll, tabIndex, ...props }: VirtualGridProps<T>): react.JSX.Element;
|
|
3593
|
+
|
|
3594
|
+
export { Alert, type AlertProps, type AlertStatus, type AnyTablePlugin, AutoSizer, type AutoSizerProps, type AutoSizerSize, BadgeProps, ButtonProps, ButtonSize, Cascader, type CascaderFieldNames, type CascaderOption, type CascaderProps, type CascaderValue, Checkbox, type CheckboxGroupProps, type CheckboxOption, type CheckboxProps, type CheckboxValue, Col, type ColProps, type ColSize, ColorPicker, type ColorPickerMode, type ColorPickerPreset, type ColorPickerProps, ControlSize, ControlStatus, CursorPreview, type CursorPreviewFrame, type CursorPreviewProps, DEFAULT_PAGE_SIZE_OPTIONS, Divider, type DividerProps, Drawer, type DrawerOpenConfig, type DrawerPlacement, type DrawerProps, type DrawerPush, type DrawerPushConfig, Editor, type EditorCommand, type EditorCompletionContext, type EditorCompletionItem, type EditorCompletionItemKind, type EditorCompletionProvider, type EditorContextMenuItem, type EditorHandle, type EditorKeyDownEvent, type EditorLanguage, type EditorMarker, type EditorProps, type EditorRange, type EditorSelectionChange, type EditorTheme, type FlatTreeNode, type FlatTreeOptions, Flex, type FlexProps, FloatingPanel, type FloatingPanelProps, Form, type FormErrorField, type FormFieldData, type FormInstance, type FormItemProps, type FormListField, type FormListOperation, type FormListProps, type FormProps, type FormRule, type FormValues, type GridBreakpoint, InputNumber, type InputNumberProps, InputPlaceholderMode, InputSelect, type InputSelectProps, type LayoutGap, Markdown, type MarkdownProps, ModalActionResult, ModalOpenConfig, type NamePath, NumberRange, type NumberRangeProps, type NumberRangeValue, OverlayApiHandle, Pagination, type PaginationProps, QueryForm, type QueryFormField, type QueryFormFieldSetting, type QueryFormProps, type QueryFormSearchInfo, type QueryFormSettingsConfig, type QueryFormSettingsSnapshot, type QueryFormShortcut, Radio, type RadioGroupProps, type RadioOption, type RadioProps, type RadioValue, Row, type RowProps, SIA_THEME, SelectChangeValue, type SelectModalConfig, SelectOption, SelectProps, type SelectionOption, SelectionPanel, type SelectionPanelProps, type SelectionValue, type SiaThemeMode, Slider, type SliderMark, type SliderProps, type SliderValue, type SortableKey, SortableList, type SortableListProps, Space, type SpaceCompactProps, type SpaceProps, Splitter, type SplitterPanelProps, type SplitterProps, Switch, type SwitchProps, type SwitchVariant, Table, type TableAlign, type TableCanvasCell, type TableCellAddress, type TableCellFocusOptions, type TableCellRange, type TableCellRenderInfo, type TableCellSelectionApi, type TableCellSelectionPluginOptions, type TableColumn, type TableColumnSettingApi, type TableColumnSettingItem, type TableColumnSettingPluginOptions, type TableColumnTransformPluginOptions, type TableEditableApi, type TableEditableCellConfig, type TableEditableCellType, type TableEditablePluginOptions, type TableExportApi, type TableExportPluginOptions, type TableExportScope, type TableFilterApi, type TableFilterPluginOptions, type TableFilterValues, type TableFixed, type TableHighlightPluginOptions, type TableHighlightValue, type TableIndexPluginOptions, type TableKey, type TableMergeStickyConfig, type TablePageParams, type TablePaginationApi, type TablePaginationPluginOptions, type TablePlugin, type TablePluginCellProps, type TablePluginContext, type TablePluginEvent, type TableProps, type TableRef, type TableResizeApi, type TableResizePluginOptions, type TableRow, type TableRowSpanPluginOptions, type TableSelectedCell, type TableSelectionApi, type TableSelectionMode, type TableSelectionPluginOptions, type TableSettingsAdapter, type TableSettingsSnapshot, type TableSize, type TableSortApi, type TableSortInfo, type TableSortPluginOptions, type TableSummaryPluginOptions, type TableSummaryRow, type TableToolbarItem, type TableToolbarPluginOptions, type TableTreeApi, type TableTreePluginOptions, type TableWorksheetApi, type TableWorksheetChange, type TableWorksheetHistory, type TableWorksheetOperation, type TableWorksheetPluginOptions, type TableWorksheetReason, type TableWorksheetValueContext, TagStatus, TextArea, type TextAreaProps, ThemeSwitch, type ThemeSwitchProps, TimePicker, type TimePickerProps, type TimeRangePickerProps, ToolPanel, type ToolPanelItem, type ToolPanelPlacement, type ToolPanelProps, TreeSelect, type TreeSelectNode, type TreeSelectProps, type TreeSelectValue, Treemap, type TreemapNode, type TreemapNodeClickInfo, type TreemapNodeKind, type TreemapProps, Video, type VideoProps, VirtualGrid, type VirtualGridProps, type WindowAction, type WindowActionHandler, type WindowControlAction, type WindowControlLabels, WindowControls, type WindowControlsProps, WindowFrame, type WindowFrameProps, WindowTitleBar, type WindowTitleBarActionsAlign, type WindowTitleBarProps, applySiaTheme, buildFlatTree, createCellSelectionPlugin, createColumnSettingPlugin, createColumnTransformPlugin, createEditablePlugin, createExportPlugin, createFilterPlugin, createHighlightPlugin, createIndexPlugin, createLocalStorageTableSettingsAdapter, createPaginationPlugin, createResizePlugin, createRowSpanPlugin, createSelectionPlugin, createSortPlugin, createSummaryPlugin, createToolbarPlugin, createTreePlugin, createWorksheetPlugin, openSelectModal, useForm };
|