@sia.soul/sia-react-ui 0.1.62 → 0.1.64
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-F4XMRO6G.js → chunk-B42RCR7O.js} +1300 -1198
- package/dist/{chunk-QJH7H3CB.js → chunk-NKSPPR2A.js} +11 -5
- package/dist/{chunk-7CAQPLKC.js → chunk-VGIGEDUP.js} +1 -1
- package/dist/{core-BrQetGru.d.ts → core-DrNZuMER.d.ts} +31 -10
- package/dist/{core-MTKdBVk3.d.cts → core-hpkUd4EO.d.cts} +31 -10
- package/dist/core.cjs +1239 -1235
- package/dist/core.css +158 -2
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +2 -2
- package/dist/index.cjs +959 -848
- package/dist/index.css +158 -2
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -3
- package/dist/select-date-range.js +2 -2
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -2496,7 +2496,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2496
2496
|
align-items: center;
|
|
2497
2497
|
justify-content: space-between;
|
|
2498
2498
|
gap: 16px;
|
|
2499
|
-
min-height:
|
|
2499
|
+
min-height: 40px;
|
|
2500
2500
|
margin-inline: 16px;
|
|
2501
2501
|
border-bottom: 1px solid var(--sia-color-border);
|
|
2502
2502
|
}
|
|
@@ -2538,7 +2538,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2538
2538
|
line-height: 1.55;
|
|
2539
2539
|
}
|
|
2540
2540
|
.sia-card__body {
|
|
2541
|
-
padding: var(--sia-spacing);
|
|
2541
|
+
padding: 6px var(--sia-spacing);
|
|
2542
2542
|
}
|
|
2543
2543
|
.sia-card__collapse-trigger {
|
|
2544
2544
|
display: flex;
|
|
@@ -2593,6 +2593,18 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2593
2593
|
border-color: var(--sia-color-primary);
|
|
2594
2594
|
box-shadow: inset 0 0 0 1px var(--sia-color-primary);
|
|
2595
2595
|
}
|
|
2596
|
+
.sia-card.sia-card--borderless {
|
|
2597
|
+
border: 0;
|
|
2598
|
+
box-shadow: none;
|
|
2599
|
+
}
|
|
2600
|
+
.sia-card--borderless > .sia-card__header {
|
|
2601
|
+
margin-inline: 0;
|
|
2602
|
+
}
|
|
2603
|
+
.sia-card--borderless > .sia-card__description,
|
|
2604
|
+
.sia-card--borderless > .sia-card__body,
|
|
2605
|
+
.sia-card--borderless > .sia-card__hover-actions {
|
|
2606
|
+
padding: 0;
|
|
2607
|
+
}
|
|
2596
2608
|
.sia-card--selectable:focus-visible {
|
|
2597
2609
|
outline: 2px solid var(--sia-color-primary);
|
|
2598
2610
|
outline-offset: 2px;
|
|
@@ -7336,6 +7348,91 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
7336
7348
|
.sia-upload__item--error .sia-upload__remove {
|
|
7337
7349
|
color: var(--sia-color-error);
|
|
7338
7350
|
}
|
|
7351
|
+
.sia-upload__list-heading {
|
|
7352
|
+
display: flex;
|
|
7353
|
+
align-items: center;
|
|
7354
|
+
gap: 8px;
|
|
7355
|
+
margin-top: 4px;
|
|
7356
|
+
font-size: 14px;
|
|
7357
|
+
font-weight: 600;
|
|
7358
|
+
}
|
|
7359
|
+
.sia-upload__count {
|
|
7360
|
+
display: inline-grid;
|
|
7361
|
+
place-items: center;
|
|
7362
|
+
min-width: 24px;
|
|
7363
|
+
height: 24px;
|
|
7364
|
+
padding: 0 6px;
|
|
7365
|
+
box-sizing: border-box;
|
|
7366
|
+
color: var(--sia-color-primary-text);
|
|
7367
|
+
background: var(--sia-color-control-hover);
|
|
7368
|
+
border-radius: 12px;
|
|
7369
|
+
font-size: 12px;
|
|
7370
|
+
}
|
|
7371
|
+
.sia-upload--text .sia-upload__list {
|
|
7372
|
+
gap: 8px;
|
|
7373
|
+
}
|
|
7374
|
+
.sia-upload--text .sia-upload__item {
|
|
7375
|
+
box-sizing: border-box;
|
|
7376
|
+
min-height: 72px;
|
|
7377
|
+
padding: 12px;
|
|
7378
|
+
column-gap: 12px;
|
|
7379
|
+
row-gap: 4px;
|
|
7380
|
+
border: 1px solid var(--sia-color-border);
|
|
7381
|
+
border-radius: 8px;
|
|
7382
|
+
background: var(--sia-color-control-hover);
|
|
7383
|
+
}
|
|
7384
|
+
.sia-upload--text .sia-upload__name {
|
|
7385
|
+
font-size: 14px;
|
|
7386
|
+
font-weight: 500;
|
|
7387
|
+
}
|
|
7388
|
+
.sia-upload__file-icon {
|
|
7389
|
+
display: grid;
|
|
7390
|
+
place-items: center;
|
|
7391
|
+
grid-column: 1;
|
|
7392
|
+
grid-row: 1 / 3;
|
|
7393
|
+
width: 40px;
|
|
7394
|
+
height: 40px;
|
|
7395
|
+
color: var(--sia-color-primary-text);
|
|
7396
|
+
background: var(--sia-color-surface);
|
|
7397
|
+
border-radius: 8px;
|
|
7398
|
+
}
|
|
7399
|
+
.sia-upload__status {
|
|
7400
|
+
grid-column: 2;
|
|
7401
|
+
font-size: 12px;
|
|
7402
|
+
color: var(--sia-color-text-secondary);
|
|
7403
|
+
}
|
|
7404
|
+
.sia-upload--text .sia-upload__actions {
|
|
7405
|
+
grid-row: 1 / 3;
|
|
7406
|
+
gap: 4px;
|
|
7407
|
+
}
|
|
7408
|
+
.sia-upload--text .sia-upload__actions > .sia-button {
|
|
7409
|
+
width: 30px;
|
|
7410
|
+
height: 30px;
|
|
7411
|
+
}
|
|
7412
|
+
.sia-upload--text .sia-upload__uploading,
|
|
7413
|
+
.sia-upload--text .sia-upload__error {
|
|
7414
|
+
grid-column: 2;
|
|
7415
|
+
}
|
|
7416
|
+
.sia-upload--text .sia-upload__item--done .sia-upload__file-icon,
|
|
7417
|
+
.sia-upload--text .sia-upload__item--done .sia-upload__status {
|
|
7418
|
+
color: var(--sia-color-success);
|
|
7419
|
+
}
|
|
7420
|
+
.sia-upload--text .sia-upload__item--error {
|
|
7421
|
+
border-color: var(--sia-color-error);
|
|
7422
|
+
}
|
|
7423
|
+
.sia-upload--text .sia-upload__item--error .sia-upload__file-icon {
|
|
7424
|
+
color: var(--sia-color-error);
|
|
7425
|
+
}
|
|
7426
|
+
@media (max-width: 480px) {
|
|
7427
|
+
.sia-upload--text .sia-upload__item {
|
|
7428
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
7429
|
+
}
|
|
7430
|
+
.sia-upload--text .sia-upload__actions {
|
|
7431
|
+
grid-column: 2;
|
|
7432
|
+
grid-row: 3;
|
|
7433
|
+
justify-self: end;
|
|
7434
|
+
}
|
|
7435
|
+
}
|
|
7339
7436
|
.sia-upload__thumbnail.sia-button {
|
|
7340
7437
|
display: grid;
|
|
7341
7438
|
place-items: center;
|
|
@@ -7502,6 +7599,16 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
7502
7599
|
.sia-upload-dragger__content > .sia-icon {
|
|
7503
7600
|
color: var(--sia-color-primary);
|
|
7504
7601
|
}
|
|
7602
|
+
.sia-upload-dragger:not(.sia-upload--picture-card):has(.sia-upload__list:not(:empty)) .sia-upload-dragger__content {
|
|
7603
|
+
min-height: 104px;
|
|
7604
|
+
padding: 16px;
|
|
7605
|
+
gap: 6px;
|
|
7606
|
+
}
|
|
7607
|
+
.sia-upload-dragger:not(.sia-upload--picture-card):has(.sia-upload__list:not(:empty)) .sia-upload-dragger__content > .sia-icon {
|
|
7608
|
+
width: 24px;
|
|
7609
|
+
height: 24px;
|
|
7610
|
+
font-size: 24px;
|
|
7611
|
+
}
|
|
7505
7612
|
.sia-upload.is-dragging .sia-upload__choose {
|
|
7506
7613
|
outline: 2px solid var(--sia-color-primary);
|
|
7507
7614
|
outline-offset: 2px;
|
|
@@ -9367,6 +9474,55 @@ body > .sia-popup-portal[data-sia-popup-layer] {
|
|
|
9367
9474
|
display: grid;
|
|
9368
9475
|
color: var(--sia-color-text);
|
|
9369
9476
|
}
|
|
9477
|
+
.sia-tree--virtual {
|
|
9478
|
+
position: relative;
|
|
9479
|
+
display: block;
|
|
9480
|
+
}
|
|
9481
|
+
.sia-tree__virtual-space {
|
|
9482
|
+
position: relative;
|
|
9483
|
+
min-width: 100%;
|
|
9484
|
+
}
|
|
9485
|
+
.sia-tree__virtual-node,
|
|
9486
|
+
.sia-tree__virtual-sticky-node {
|
|
9487
|
+
position: absolute;
|
|
9488
|
+
right: 0;
|
|
9489
|
+
left: 0;
|
|
9490
|
+
box-sizing: border-box;
|
|
9491
|
+
contain: layout style;
|
|
9492
|
+
}
|
|
9493
|
+
.sia-tree__virtual-node {
|
|
9494
|
+
top: 0;
|
|
9495
|
+
will-change: transform;
|
|
9496
|
+
}
|
|
9497
|
+
.sia-tree__virtual-node > .sia-tree__row,
|
|
9498
|
+
.sia-tree__virtual-sticky-node > .sia-tree__row {
|
|
9499
|
+
position: relative;
|
|
9500
|
+
z-index: 1;
|
|
9501
|
+
min-height: 0;
|
|
9502
|
+
}
|
|
9503
|
+
.sia-tree__virtual-sticky-layer {
|
|
9504
|
+
position: sticky;
|
|
9505
|
+
z-index: 120;
|
|
9506
|
+
top: 0;
|
|
9507
|
+
height: 0;
|
|
9508
|
+
overflow: visible;
|
|
9509
|
+
}
|
|
9510
|
+
.sia-tree__virtual-sticky-node > .sia-tree__row {
|
|
9511
|
+
background: var(--sia-color-surface);
|
|
9512
|
+
}
|
|
9513
|
+
.sia-tree__virtual-guides {
|
|
9514
|
+
position: absolute;
|
|
9515
|
+
z-index: 0;
|
|
9516
|
+
inset: 0;
|
|
9517
|
+
pointer-events: none;
|
|
9518
|
+
}
|
|
9519
|
+
.sia-tree__virtual-guide {
|
|
9520
|
+
position: absolute;
|
|
9521
|
+
top: 0;
|
|
9522
|
+
bottom: 0;
|
|
9523
|
+
width: 1px;
|
|
9524
|
+
background: var(--sia-color-border);
|
|
9525
|
+
}
|
|
9370
9526
|
.sia-tree__row {
|
|
9371
9527
|
display: flex;
|
|
9372
9528
|
align-items: center;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TagStatus, B as BadgeProps } from './core-
|
|
2
|
-
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 Segmented, ah as SegmentedOption, ai as SegmentedProps, aj as SegmentedValue, ak as Spin, al as SpinProps, am as StepItem, an as StepStatus, ao as Steps, ap as StepsProps, aq as TabItem, ar as Tabs, as as TabsContextMenuClickInfo, at as TabsOrientation, au as TabsPosition, av as TabsProps, aw as TabsType, ax as Tag, ay as TagProps, az as TagSize, aA as TagVariant, aB as Timeline, aC as TimelineItem, aD as TimelineProps, aE as Toolbar, aF as ToolbarItem, aG as ToolbarProps, aH as Tooltip, aI as TooltipProps, aJ as Tour, aK as TourProps, aL as TourStep, aM as Tree, aN as TreeDropPosition, aO as TreeKey, aP as TreeNode, aQ as TreeProps, aR as Typography, aS as TypographyLinkProps, aT as TypographyProps, aU as TypographyTitleProps, aV as TypographyType, aW as Upload, aX as UploadChangeInfo, aY as UploadDraggerProps, aZ as UploadFile, a_ as UploadFileStatus, a$ as UploadHttpRequest, b0 as UploadItemActions, b1 as UploadProps, b2 as UploadRef, b3 as UploadRejectInfo, b4 as UploadRequestHandle, b5 as UploadRequestOptions, b6 as Watermark, b7 as WatermarkFont, b8 as WatermarkProps, b9 as message, ba as notification } from './core-
|
|
1
|
+
import { T as TagStatus, B as BadgeProps } from './core-hpkUd4EO.cjs';
|
|
2
|
+
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 Segmented, ah as SegmentedOption, ai as SegmentedProps, aj as SegmentedValue, ak as Spin, al as SpinProps, am as StepItem, an as StepStatus, ao as Steps, ap as StepsProps, aq as TabItem, ar as Tabs, as as TabsContextMenuClickInfo, at as TabsOrientation, au as TabsPosition, av as TabsProps, aw as TabsType, ax as Tag, ay as TagProps, az as TagSize, aA as TagVariant, aB as Timeline, aC as TimelineItem, aD as TimelineProps, aE as Toolbar, aF as ToolbarItem, aG as ToolbarProps, aH as Tooltip, aI as TooltipProps, aJ as Tour, aK as TourProps, aL as TourStep, aM as Tree, aN as TreeDropPosition, aO as TreeKey, aP as TreeNode, aQ as TreeProps, aR as Typography, aS as TypographyLinkProps, aT as TypographyProps, aU as TypographyTitleProps, aV as TypographyType, aW as Upload, aX as UploadChangeInfo, aY as UploadDraggerProps, aZ as UploadFile, a_ as UploadFileStatus, a$ as UploadHttpRequest, b0 as UploadItemActions, b1 as UploadProps, b2 as UploadRef, b3 as UploadRejectInfo, b4 as UploadRequestHandle, b5 as UploadRequestOptions, b6 as Watermark, b7 as WatermarkFont, b8 as WatermarkProps, b9 as message, ba as notification } from './core-hpkUd4EO.cjs';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes, RefObject } from 'react';
|
|
5
5
|
import { C as ControlSize, I as InputPlaceholderMode, a as ControlStatus } from './shared-Bx4B28Wh.cjs';
|
|
@@ -752,7 +752,7 @@ interface FormProps extends Omit<FormHTMLAttributes<HTMLFormElement>, "onSubmit"
|
|
|
752
752
|
* @defaultValue true
|
|
753
753
|
*/
|
|
754
754
|
requiredMark?: boolean | "optional";
|
|
755
|
-
/**
|
|
755
|
+
/** 当前表单提交并且校验通过时调用,参数为完整的表单字段值;提交事件不会冒泡触发祖先表单,包含 Portal 内的子表单。 */
|
|
756
756
|
onFinish?: (values: FormValues) => void;
|
|
757
757
|
/** 表单提交校验失败时调用,参数包含字段值和错误列表。 */
|
|
758
758
|
onFinishFailed?: (info: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TagStatus, B as BadgeProps } from './core-
|
|
2
|
-
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 Segmented, ah as SegmentedOption, ai as SegmentedProps, aj as SegmentedValue, ak as Spin, al as SpinProps, am as StepItem, an as StepStatus, ao as Steps, ap as StepsProps, aq as TabItem, ar as Tabs, as as TabsContextMenuClickInfo, at as TabsOrientation, au as TabsPosition, av as TabsProps, aw as TabsType, ax as Tag, ay as TagProps, az as TagSize, aA as TagVariant, aB as Timeline, aC as TimelineItem, aD as TimelineProps, aE as Toolbar, aF as ToolbarItem, aG as ToolbarProps, aH as Tooltip, aI as TooltipProps, aJ as Tour, aK as TourProps, aL as TourStep, aM as Tree, aN as TreeDropPosition, aO as TreeKey, aP as TreeNode, aQ as TreeProps, aR as Typography, aS as TypographyLinkProps, aT as TypographyProps, aU as TypographyTitleProps, aV as TypographyType, aW as Upload, aX as UploadChangeInfo, aY as UploadDraggerProps, aZ as UploadFile, a_ as UploadFileStatus, a$ as UploadHttpRequest, b0 as UploadItemActions, b1 as UploadProps, b2 as UploadRef, b3 as UploadRejectInfo, b4 as UploadRequestHandle, b5 as UploadRequestOptions, b6 as Watermark, b7 as WatermarkFont, b8 as WatermarkProps, b9 as message, ba as notification } from './core-
|
|
1
|
+
import { T as TagStatus, B as BadgeProps } from './core-DrNZuMER.js';
|
|
2
|
+
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 Segmented, ah as SegmentedOption, ai as SegmentedProps, aj as SegmentedValue, ak as Spin, al as SpinProps, am as StepItem, an as StepStatus, ao as Steps, ap as StepsProps, aq as TabItem, ar as Tabs, as as TabsContextMenuClickInfo, at as TabsOrientation, au as TabsPosition, av as TabsProps, aw as TabsType, ax as Tag, ay as TagProps, az as TagSize, aA as TagVariant, aB as Timeline, aC as TimelineItem, aD as TimelineProps, aE as Toolbar, aF as ToolbarItem, aG as ToolbarProps, aH as Tooltip, aI as TooltipProps, aJ as Tour, aK as TourProps, aL as TourStep, aM as Tree, aN as TreeDropPosition, aO as TreeKey, aP as TreeNode, aQ as TreeProps, aR as Typography, aS as TypographyLinkProps, aT as TypographyProps, aU as TypographyTitleProps, aV as TypographyType, aW as Upload, aX as UploadChangeInfo, aY as UploadDraggerProps, aZ as UploadFile, a_ as UploadFileStatus, a$ as UploadHttpRequest, b0 as UploadItemActions, b1 as UploadProps, b2 as UploadRef, b3 as UploadRejectInfo, b4 as UploadRequestHandle, b5 as UploadRequestOptions, b6 as Watermark, b7 as WatermarkFont, b8 as WatermarkProps, b9 as message, ba as notification } from './core-DrNZuMER.js';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes, RefObject } from 'react';
|
|
5
5
|
import { C as ControlSize, I as InputPlaceholderMode, a as ControlStatus } from './shared-Bx4B28Wh.js';
|
|
@@ -752,7 +752,7 @@ interface FormProps extends Omit<FormHTMLAttributes<HTMLFormElement>, "onSubmit"
|
|
|
752
752
|
* @defaultValue true
|
|
753
753
|
*/
|
|
754
754
|
requiredMark?: boolean | "optional";
|
|
755
|
-
/**
|
|
755
|
+
/** 当前表单提交并且校验通过时调用,参数为完整的表单字段值;提交事件不会冒泡触发祖先表单,包含 Portal 内的子表单。 */
|
|
756
756
|
onFinish?: (values: FormValues) => void;
|
|
757
757
|
/** 表单提交校验失败时调用,参数包含字段值和错误列表。 */
|
|
758
758
|
onFinishFailed?: (info: {
|
package/dist/index.js
CHANGED
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
Watermark,
|
|
81
81
|
message,
|
|
82
82
|
notification
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-NKSPPR2A.js";
|
|
84
84
|
import {
|
|
85
85
|
TextArea
|
|
86
86
|
} from "./chunk-SMCYEPBL.js";
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
DatePicker,
|
|
96
96
|
SelectDateRange,
|
|
97
97
|
TimePanel
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-VGIGEDUP.js";
|
|
99
99
|
import {
|
|
100
100
|
Checkbox,
|
|
101
101
|
FloatingScrollbarProvider,
|
|
@@ -110,7 +110,7 @@ import {
|
|
|
110
110
|
Tree,
|
|
111
111
|
useOverlayLifecycle,
|
|
112
112
|
useScrollbarProximity
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-B42RCR7O.js";
|
|
114
114
|
import {
|
|
115
115
|
Dropdown,
|
|
116
116
|
FILLED_ICON_NAMES,
|
|
@@ -1710,6 +1710,7 @@ function FormRoot({
|
|
|
1710
1710
|
"data-required-mark": requiredMark,
|
|
1711
1711
|
onSubmit: (event) => {
|
|
1712
1712
|
event.preventDefault();
|
|
1713
|
+
event.stopPropagation();
|
|
1713
1714
|
instance.submit();
|
|
1714
1715
|
},
|
|
1715
1716
|
children: /* @__PURE__ */ jsx9("fieldset", { disabled, children })
|