@sia.soul/sia-react-ui 0.1.115 → 0.1.117
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/{chunk-SPIQSYWQ.js → chunk-6DFAX43X.js} +28 -2
- package/dist/{chunk-GNOZYUIH.js → chunk-CKP3SNVH.js} +3 -3
- package/dist/{chunk-MDU5EONC.js → chunk-HHPZOBY3.js} +2 -2
- package/dist/{chunk-XY7CXJS6.js → chunk-KIQSPAAQ.js} +3 -2
- package/dist/{chunk-6XQ2LDGT.js → chunk-RYNEJ6LD.js} +2 -2
- package/dist/{chunk-KPOK4HIQ.js → chunk-SB53UBFV.js} +2 -2
- package/dist/{core-uVaNwjTO.d.ts → core-De9MXbF6.d.ts} +15 -2
- package/dist/{core-O6oDXbkG.d.cts → core-DlngVjmf.d.cts} +15 -2
- package/dist/core.cjs +30 -3
- package/dist/core.css +15 -2
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +4 -4
- package/dist/game.cjs +3 -2
- package/dist/game.css +13 -0
- package/dist/game.js +1 -1
- package/dist/index.cjs +794 -715
- package/dist/index.css +15 -2
- package/dist/index.d.cts +13 -7
- package/dist/index.d.ts +13 -7
- package/dist/index.js +197 -145
- package/dist/rich-text-editor.cjs +30 -3
- package/dist/rich-text-editor.js +3 -3
- package/dist/select-date-range.cjs +3 -2
- package/dist/select-date-range.js +4 -4
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -364,6 +364,18 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
364
364
|
.sia-form--horizontal .sia-form-item__input-wrap > :is(.sia-radio, .sia-checkbox, .sia-radio-group, .sia-checkbox-group) {
|
|
365
365
|
min-height: var(--sia-form-row-height);
|
|
366
366
|
}
|
|
367
|
+
.sia-form--horizontal .sia-form-item--align-center {
|
|
368
|
+
align-items: center;
|
|
369
|
+
}
|
|
370
|
+
.sia-form--horizontal .sia-form-item--align-center > .sia-form-item__label {
|
|
371
|
+
padding-top: 0;
|
|
372
|
+
}
|
|
373
|
+
.sia-form--horizontal .sia-form-item--align-center > .sia-form-item__control > .sia-floating > .sia-form-item__input-wrap {
|
|
374
|
+
display: flex;
|
|
375
|
+
flex-direction: column;
|
|
376
|
+
justify-content: center;
|
|
377
|
+
min-height: var(--sia-form-row-height);
|
|
378
|
+
}
|
|
367
379
|
}
|
|
368
380
|
.sia-form.sia-form--vertical .sia-form-item__label {
|
|
369
381
|
padding-top: 0;
|
|
@@ -5374,6 +5386,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
5374
5386
|
.sia-table__toolbar > div:last-child {
|
|
5375
5387
|
flex-shrink: 0;
|
|
5376
5388
|
flex-wrap: nowrap;
|
|
5389
|
+
gap: 4px;
|
|
5377
5390
|
}
|
|
5378
5391
|
.sia-tabs--horizontal > .sia-tabs__header > .sia-tabs__list {
|
|
5379
5392
|
position: relative;
|
|
@@ -8254,9 +8267,9 @@ body:has(.sia-window-frame[data-sia-text-selectable=false]) img {
|
|
|
8254
8267
|
transform: translateY(-50%);
|
|
8255
8268
|
display: inline-flex;
|
|
8256
8269
|
color: var(--sia-color-primary);
|
|
8257
|
-
opacity: .
|
|
8270
|
+
opacity: .92;
|
|
8258
8271
|
pointer-events: none;
|
|
8259
|
-
z-index:
|
|
8272
|
+
z-index: 1;
|
|
8260
8273
|
}
|
|
8261
8274
|
.sia-menu--grid,
|
|
8262
8275
|
.sia-menu--grid .sia-menu__group > ul {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes, RefObject } 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 FloatingTrigger, J as ICON_NAMES, K as Icon, L as IconName, M as IconProps, N as IconVariant, O as Image, P as ImagePreview, Q as ImagePreviewConfig, R as ImagePreviewProps, S as ImageProps, U as Input, V as InputProps, W as Menu, X as MenuClickInfo, Y as MenuItem, Z as MenuMode, _ as MenuProps, $ as MenuTheme, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, a4 as NotificationConfig, a5 as NotificationPlacement, a6 as NotificationType, a7 as Popconfirm, a8 as PopconfirmProps, a9 as Popover, aa as PopoverProps, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ae as Rate, af as RateProps, ag as Result, ah as ResultProps, ai as ResultStatus, aj as Segmented, ak as SegmentedOption, al as SegmentedProps, am as SegmentedValue, an as Spin, ao as SpinProps, ap as StepItem, aq as StepStatus, ar as Steps, as as StepsProps, at as TabItem, au as Tabs, av as TabsContextMenuClickInfo, aw as TabsOrientation, ax as TabsPosition, ay as TabsProps, az as TabsType, aA as Tag, aB as TagProps, aC as TagSize, aD as TagVariant, aE as Timeline, aF as TimelineItem, aG as TimelineProps, aH as Toolbar, aI as ToolbarItem, aJ as ToolbarProps, aK as Tooltip, aL as TooltipProps, aM as Tour, aN as TourProps, aO as TourStep, aP as Tree, aQ as TreeDropPosition, aR as TreeKey, aS as TreeNode, aT as TreeProps, aU as Typography, aV as TypographyLinkProps, aW as TypographyProps, aX as TypographyTitleProps, aY as TypographyType, aZ as Upload, a_ as UploadChangeInfo, a$ as UploadDraggerProps, b0 as UploadFile, b1 as UploadFileStatus, b2 as UploadHttpRequest, b3 as UploadItemActions, b4 as UploadProps, b5 as UploadRef, b6 as UploadRejectInfo, b7 as UploadRequestHandle, b8 as UploadRequestOptions, b9 as Watermark, ba as WatermarkFont, bb as WatermarkProps, bc as message, bd as notification } from './core-
|
|
3
|
+
import { T as TagStatus, B as BadgeProps } from './core-DlngVjmf.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 FloatingTrigger, J as ICON_NAMES, K as Icon, L as IconName, M as IconProps, N as IconVariant, O as Image, P as ImagePreview, Q as ImagePreviewConfig, R as ImagePreviewProps, S as ImageProps, U as Input, V as InputProps, W as Menu, X as MenuClickInfo, Y as MenuItem, Z as MenuMode, _ as MenuProps, $ as MenuTheme, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, a4 as NotificationConfig, a5 as NotificationPlacement, a6 as NotificationType, a7 as Popconfirm, a8 as PopconfirmProps, a9 as Popover, aa as PopoverProps, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ae as Rate, af as RateProps, ag as Result, ah as ResultProps, ai as ResultStatus, aj as Segmented, ak as SegmentedOption, al as SegmentedProps, am as SegmentedValue, an as Spin, ao as SpinProps, ap as StepItem, aq as StepStatus, ar as Steps, as as StepsProps, at as TabItem, au as Tabs, av as TabsContextMenuClickInfo, aw as TabsOrientation, ax as TabsPosition, ay as TabsProps, az as TabsType, aA as Tag, aB as TagProps, aC as TagSize, aD as TagVariant, aE as Timeline, aF as TimelineItem, aG as TimelineProps, aH as Toolbar, aI as ToolbarItem, aJ as ToolbarProps, aK as Tooltip, aL as TooltipProps, aM as Tour, aN as TourProps, aO as TourStep, aP as Tree, aQ as TreeDropPosition, aR as TreeKey, aS as TreeNode, aT as TreeProps, aU as Typography, aV as TypographyLinkProps, aW as TypographyProps, aX as TypographyTitleProps, aY as TypographyType, aZ as Upload, a_ as UploadChangeInfo, a$ as UploadDraggerProps, b0 as UploadFile, b1 as UploadFileStatus, b2 as UploadHttpRequest, b3 as UploadItemActions, b4 as UploadProps, b5 as UploadRef, b6 as UploadRejectInfo, b7 as UploadRequestHandle, b8 as UploadRequestOptions, b9 as Watermark, ba as WatermarkFont, bb as WatermarkProps, bc as message, bd as notification } from './core-DlngVjmf.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-O_pNB3SQ.cjs';
|
|
7
7
|
export { b as Button, c as ButtonVariant } from './Button-O_pNB3SQ.cjs';
|
|
@@ -29,8 +29,10 @@ interface CursorPreviewFrame {
|
|
|
29
29
|
interface CursorPreviewProps extends HTMLAttributes<HTMLDivElement> {
|
|
30
30
|
/** 按播放顺序排列的帧;空数组显示 empty 内容。更新资源后重新从第一帧播放。 */
|
|
31
31
|
frames: readonly CursorPreviewFrame[];
|
|
32
|
-
/**
|
|
32
|
+
/** 位图宽高,默认 CSS 像素,最小为 8;sizeUnit 为 device 时改用物理像素,应与帧的原始像素宽度一致。@defaultValue 48 */
|
|
33
33
|
size?: number;
|
|
34
|
+
/** 尺寸单位:css 随页面缩放;device 按屏幕物理像素显示并吸附像素网格,适合核对原生指针。@defaultValue 'css' */
|
|
35
|
+
sizeUnit?: 'css' | 'device';
|
|
34
36
|
/** 是否循环播放;false 显示第一帧。系统偏好减少动态效果时也显示第一帧。@defaultValue true */
|
|
35
37
|
playing?: boolean;
|
|
36
38
|
/** 移入区域后隐藏原生指针,并按热点跟随鼠标位置;移出后回到中央。图片加载失败时保留原生指针。@defaultValue true */
|
|
@@ -45,7 +47,7 @@ interface CursorPreviewProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
45
47
|
alt?: string;
|
|
46
48
|
}
|
|
47
49
|
/** 展示指针原画、逐帧动画与热点跟随,复用 Sia 图片组件和主题令牌。 */
|
|
48
|
-
declare function CursorPreview({ frames, size, playing, followPointer, showHotspot, height, empty, alt, className, style, children, onPointerEnter, onPointerMove, onPointerLeave, ...props }: CursorPreviewProps): react.JSX.Element;
|
|
50
|
+
declare function CursorPreview({ frames, size, sizeUnit, playing, followPointer, showHotspot, height, empty, alt, className, style, children, onPointerEnter, onPointerMove, onPointerLeave, ...props }: CursorPreviewProps): react.JSX.Element;
|
|
49
51
|
|
|
50
52
|
/** 自适应容器的实测尺寸,单位为 CSS 像素。 */
|
|
51
53
|
interface AutoSizerSize {
|
|
@@ -646,7 +648,7 @@ interface WindowTitleBarProps extends HTMLAttributes<HTMLElement> {
|
|
|
646
648
|
disabledActions?: readonly WindowControlAction[];
|
|
647
649
|
/** 窗口控制按钮的文案。 */
|
|
648
650
|
controlLabels?: Partial<WindowControlLabels>;
|
|
649
|
-
/**
|
|
651
|
+
/** 操作发生时调用;主键按住并移动至少 2 CSS 像素时触发 start-dragging,静止按住不触发;双击触发 toggle-maximize。 */
|
|
650
652
|
onWindowAction?: WindowActionHandler;
|
|
651
653
|
}
|
|
652
654
|
/** 窗口框架组件。 */
|
|
@@ -857,6 +859,10 @@ interface FormItemProps {
|
|
|
857
859
|
name?: NamePath;
|
|
858
860
|
/** 字段标签,支持文本或 React 节点;横向及行内布局未指定标签列宽时,与同一 Form 内最宽的可见标签对齐,测量包含必填标记。未渲染标签时,控件占据表单项整行宽度。 */
|
|
859
861
|
label?: ReactNode;
|
|
862
|
+
/** 横向表单中标签与内容的垂直对齐:start 对齐首行控件,center 将标签与整个内容区居中,适合只读文字和多行信息。纵向、行内、窄屏堆叠及 noStyle 布局不受影响。
|
|
863
|
+
* @defaultValue "start"
|
|
864
|
+
*/
|
|
865
|
+
align?: "start" | "center";
|
|
860
866
|
/**
|
|
861
867
|
* 字段的校验规则,按配置执行。
|
|
862
868
|
* @defaultValue []
|
|
@@ -904,7 +910,7 @@ interface FormItemProps {
|
|
|
904
910
|
*/
|
|
905
911
|
className?: string;
|
|
906
912
|
}
|
|
907
|
-
declare function FormItem({ name, label, rules, required, extra, help, validateStatus, valuePropName, trigger, validateTrigger, getValueFromEvent, noStyle, children, className, }: FormItemProps): react.JSX.Element;
|
|
913
|
+
declare function FormItem({ name, label, align, rules, required, extra, help, validateStatus, valuePropName, trigger, validateTrigger, getValueFromEvent, noStyle, children, className, }: FormItemProps): react.JSX.Element;
|
|
908
914
|
/** 动态列表中一个字段的渲染标识和索引。 */
|
|
909
915
|
interface FormListField {
|
|
910
916
|
/** 唯一标识;同一集合内应保持唯一且稳定,用于定位、渲染和状态关联。 */
|
|
@@ -2923,7 +2929,7 @@ interface TableToolbarItem<T> {
|
|
|
2923
2929
|
interface TableToolbarPluginOptions<T> {
|
|
2924
2930
|
/** 范围起点。 */
|
|
2925
2931
|
start?: ReactNode;
|
|
2926
|
-
/** 工具栏右侧内容。纯图标按钮默认使用 30px 方形点击区域,与设置按钮一致;直接嵌套的横向 Space 或 Toolbar 统一使用外层
|
|
2932
|
+
/** 工具栏右侧内容。纯图标按钮默认使用 30px 方形点击区域,与设置按钮一致;直接嵌套的横向 Space 或 Toolbar 统一使用外层 4px 间距。 */
|
|
2927
2933
|
end?: ReactNode;
|
|
2928
2934
|
/** 按展示顺序排列的项目配置。 */
|
|
2929
2935
|
items?: readonly TableToolbarItem<T>[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes, RefObject } 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 FloatingTrigger, J as ICON_NAMES, K as Icon, L as IconName, M as IconProps, N as IconVariant, O as Image, P as ImagePreview, Q as ImagePreviewConfig, R as ImagePreviewProps, S as ImageProps, U as Input, V as InputProps, W as Menu, X as MenuClickInfo, Y as MenuItem, Z as MenuMode, _ as MenuProps, $ as MenuTheme, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, a4 as NotificationConfig, a5 as NotificationPlacement, a6 as NotificationType, a7 as Popconfirm, a8 as PopconfirmProps, a9 as Popover, aa as PopoverProps, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ae as Rate, af as RateProps, ag as Result, ah as ResultProps, ai as ResultStatus, aj as Segmented, ak as SegmentedOption, al as SegmentedProps, am as SegmentedValue, an as Spin, ao as SpinProps, ap as StepItem, aq as StepStatus, ar as Steps, as as StepsProps, at as TabItem, au as Tabs, av as TabsContextMenuClickInfo, aw as TabsOrientation, ax as TabsPosition, ay as TabsProps, az as TabsType, aA as Tag, aB as TagProps, aC as TagSize, aD as TagVariant, aE as Timeline, aF as TimelineItem, aG as TimelineProps, aH as Toolbar, aI as ToolbarItem, aJ as ToolbarProps, aK as Tooltip, aL as TooltipProps, aM as Tour, aN as TourProps, aO as TourStep, aP as Tree, aQ as TreeDropPosition, aR as TreeKey, aS as TreeNode, aT as TreeProps, aU as Typography, aV as TypographyLinkProps, aW as TypographyProps, aX as TypographyTitleProps, aY as TypographyType, aZ as Upload, a_ as UploadChangeInfo, a$ as UploadDraggerProps, b0 as UploadFile, b1 as UploadFileStatus, b2 as UploadHttpRequest, b3 as UploadItemActions, b4 as UploadProps, b5 as UploadRef, b6 as UploadRejectInfo, b7 as UploadRequestHandle, b8 as UploadRequestOptions, b9 as Watermark, ba as WatermarkFont, bb as WatermarkProps, bc as message, bd as notification } from './core-
|
|
3
|
+
import { T as TagStatus, B as BadgeProps } from './core-De9MXbF6.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 FloatingTrigger, J as ICON_NAMES, K as Icon, L as IconName, M as IconProps, N as IconVariant, O as Image, P as ImagePreview, Q as ImagePreviewConfig, R as ImagePreviewProps, S as ImageProps, U as Input, V as InputProps, W as Menu, X as MenuClickInfo, Y as MenuItem, Z as MenuMode, _ as MenuProps, $ as MenuTheme, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, a4 as NotificationConfig, a5 as NotificationPlacement, a6 as NotificationType, a7 as Popconfirm, a8 as PopconfirmProps, a9 as Popover, aa as PopoverProps, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ae as Rate, af as RateProps, ag as Result, ah as ResultProps, ai as ResultStatus, aj as Segmented, ak as SegmentedOption, al as SegmentedProps, am as SegmentedValue, an as Spin, ao as SpinProps, ap as StepItem, aq as StepStatus, ar as Steps, as as StepsProps, at as TabItem, au as Tabs, av as TabsContextMenuClickInfo, aw as TabsOrientation, ax as TabsPosition, ay as TabsProps, az as TabsType, aA as Tag, aB as TagProps, aC as TagSize, aD as TagVariant, aE as Timeline, aF as TimelineItem, aG as TimelineProps, aH as Toolbar, aI as ToolbarItem, aJ as ToolbarProps, aK as Tooltip, aL as TooltipProps, aM as Tour, aN as TourProps, aO as TourStep, aP as Tree, aQ as TreeDropPosition, aR as TreeKey, aS as TreeNode, aT as TreeProps, aU as Typography, aV as TypographyLinkProps, aW as TypographyProps, aX as TypographyTitleProps, aY as TypographyType, aZ as Upload, a_ as UploadChangeInfo, a$ as UploadDraggerProps, b0 as UploadFile, b1 as UploadFileStatus, b2 as UploadHttpRequest, b3 as UploadItemActions, b4 as UploadProps, b5 as UploadRef, b6 as UploadRejectInfo, b7 as UploadRequestHandle, b8 as UploadRequestOptions, b9 as Watermark, ba as WatermarkFont, bb as WatermarkProps, bc as message, bd as notification } from './core-De9MXbF6.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-BiL3Wjsd.js';
|
|
7
7
|
export { b as Button, c as ButtonVariant } from './Button-BiL3Wjsd.js';
|
|
@@ -29,8 +29,10 @@ interface CursorPreviewFrame {
|
|
|
29
29
|
interface CursorPreviewProps extends HTMLAttributes<HTMLDivElement> {
|
|
30
30
|
/** 按播放顺序排列的帧;空数组显示 empty 内容。更新资源后重新从第一帧播放。 */
|
|
31
31
|
frames: readonly CursorPreviewFrame[];
|
|
32
|
-
/**
|
|
32
|
+
/** 位图宽高,默认 CSS 像素,最小为 8;sizeUnit 为 device 时改用物理像素,应与帧的原始像素宽度一致。@defaultValue 48 */
|
|
33
33
|
size?: number;
|
|
34
|
+
/** 尺寸单位:css 随页面缩放;device 按屏幕物理像素显示并吸附像素网格,适合核对原生指针。@defaultValue 'css' */
|
|
35
|
+
sizeUnit?: 'css' | 'device';
|
|
34
36
|
/** 是否循环播放;false 显示第一帧。系统偏好减少动态效果时也显示第一帧。@defaultValue true */
|
|
35
37
|
playing?: boolean;
|
|
36
38
|
/** 移入区域后隐藏原生指针,并按热点跟随鼠标位置;移出后回到中央。图片加载失败时保留原生指针。@defaultValue true */
|
|
@@ -45,7 +47,7 @@ interface CursorPreviewProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
45
47
|
alt?: string;
|
|
46
48
|
}
|
|
47
49
|
/** 展示指针原画、逐帧动画与热点跟随,复用 Sia 图片组件和主题令牌。 */
|
|
48
|
-
declare function CursorPreview({ frames, size, playing, followPointer, showHotspot, height, empty, alt, className, style, children, onPointerEnter, onPointerMove, onPointerLeave, ...props }: CursorPreviewProps): react.JSX.Element;
|
|
50
|
+
declare function CursorPreview({ frames, size, sizeUnit, playing, followPointer, showHotspot, height, empty, alt, className, style, children, onPointerEnter, onPointerMove, onPointerLeave, ...props }: CursorPreviewProps): react.JSX.Element;
|
|
49
51
|
|
|
50
52
|
/** 自适应容器的实测尺寸,单位为 CSS 像素。 */
|
|
51
53
|
interface AutoSizerSize {
|
|
@@ -646,7 +648,7 @@ interface WindowTitleBarProps extends HTMLAttributes<HTMLElement> {
|
|
|
646
648
|
disabledActions?: readonly WindowControlAction[];
|
|
647
649
|
/** 窗口控制按钮的文案。 */
|
|
648
650
|
controlLabels?: Partial<WindowControlLabels>;
|
|
649
|
-
/**
|
|
651
|
+
/** 操作发生时调用;主键按住并移动至少 2 CSS 像素时触发 start-dragging,静止按住不触发;双击触发 toggle-maximize。 */
|
|
650
652
|
onWindowAction?: WindowActionHandler;
|
|
651
653
|
}
|
|
652
654
|
/** 窗口框架组件。 */
|
|
@@ -857,6 +859,10 @@ interface FormItemProps {
|
|
|
857
859
|
name?: NamePath;
|
|
858
860
|
/** 字段标签,支持文本或 React 节点;横向及行内布局未指定标签列宽时,与同一 Form 内最宽的可见标签对齐,测量包含必填标记。未渲染标签时,控件占据表单项整行宽度。 */
|
|
859
861
|
label?: ReactNode;
|
|
862
|
+
/** 横向表单中标签与内容的垂直对齐:start 对齐首行控件,center 将标签与整个内容区居中,适合只读文字和多行信息。纵向、行内、窄屏堆叠及 noStyle 布局不受影响。
|
|
863
|
+
* @defaultValue "start"
|
|
864
|
+
*/
|
|
865
|
+
align?: "start" | "center";
|
|
860
866
|
/**
|
|
861
867
|
* 字段的校验规则,按配置执行。
|
|
862
868
|
* @defaultValue []
|
|
@@ -904,7 +910,7 @@ interface FormItemProps {
|
|
|
904
910
|
*/
|
|
905
911
|
className?: string;
|
|
906
912
|
}
|
|
907
|
-
declare function FormItem({ name, label, rules, required, extra, help, validateStatus, valuePropName, trigger, validateTrigger, getValueFromEvent, noStyle, children, className, }: FormItemProps): react.JSX.Element;
|
|
913
|
+
declare function FormItem({ name, label, align, rules, required, extra, help, validateStatus, valuePropName, trigger, validateTrigger, getValueFromEvent, noStyle, children, className, }: FormItemProps): react.JSX.Element;
|
|
908
914
|
/** 动态列表中一个字段的渲染标识和索引。 */
|
|
909
915
|
interface FormListField {
|
|
910
916
|
/** 唯一标识;同一集合内应保持唯一且稳定,用于定位、渲染和状态关联。 */
|
|
@@ -2923,7 +2929,7 @@ interface TableToolbarItem<T> {
|
|
|
2923
2929
|
interface TableToolbarPluginOptions<T> {
|
|
2924
2930
|
/** 范围起点。 */
|
|
2925
2931
|
start?: ReactNode;
|
|
2926
|
-
/** 工具栏右侧内容。纯图标按钮默认使用 30px 方形点击区域,与设置按钮一致;直接嵌套的横向 Space 或 Toolbar 统一使用外层
|
|
2932
|
+
/** 工具栏右侧内容。纯图标按钮默认使用 30px 方形点击区域,与设置按钮一致;直接嵌套的横向 Space 或 Toolbar 统一使用外层 4px 间距。 */
|
|
2927
2933
|
end?: ReactNode;
|
|
2928
2934
|
/** 按展示顺序排列的项目配置。 */
|
|
2929
2935
|
items?: readonly TableToolbarItem<T>[];
|