@sia.soul/sia-react-ui 0.1.22 → 0.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,14 +1,14 @@
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 { O as OverlayContainer, a as OverlayApiHandle, M as ModalOpenConfig, b as ModalActionResult, B as ButtonProps, T as TagStatus, c as ButtonSize, d as BadgeProps } from './core-C5OnrCi4.cjs';
4
- export { e as Badge, f as BadgeRibbonProps, g as BadgeStatus, h as Breadcrumb, i as BreadcrumbItem, j as BreadcrumbProps, k as Button, l as ButtonVariant, C as Calendar, m as CalendarProps, n as Card, o as CardAccent, p as CardProps, q as Carousel, r as CarouselProps, s as CarouselRef, t as Collapse, u as CollapseItem, v as CollapseKey, w as CollapseProps, D as Dropdown, x as DropdownButtonProps, y as DropdownMenuProps, z as DropdownOpenSource, A as DropdownPlacement, E as DropdownProps, F as DropdownTrigger, G as FILLED_ICON_NAMES, H as FilledIconName, I as FloatButton, J as FloatButtonBackTopProps, K as FloatButtonGroupProps, L as FloatButtonProps, N as FloatButtonShape, P as FloatingPlacement, Q as FloatingTrigger, R as ICON_NAMES, S as Icon, U as IconName, V as IconProps, W as IconVariant, X as Image, Y as ImagePreview, Z as ImagePreviewConfig, _ as ImagePreviewProps, $ as ImageProps, a0 as Input, a1 as InputProps, a2 as Menu, a3 as MenuClickInfo, a4 as MenuItem, a5 as MenuMode, a6 as MenuProps, a7 as MenuTheme, a8 as MessageConfig, a9 as MessageHandle, aa as MessageKey, ab as MessageType, ac as Modal, ad as ModalProps, ae as ModalType, af as NotificationConfig, ag as NotificationPlacement, ah as NotificationType, ai as Popconfirm, aj as PopconfirmProps, ak as Popover, al as PopoverProps, am as Progress, an as ProgressProps, ao as ProgressStatus, ap as Rate, aq as RateProps, ar as Segmented, as as SegmentedOption, at as SegmentedProps, au as SegmentedValue, av as Spin, aw as SpinProps, ax as StepItem, ay as StepStatus, az as Steps, aA as StepsProps, aB as TabItem, aC as Tabs, aD as TabsContextMenuClickInfo, aE as TabsOrientation, aF as TabsPosition, aG as TabsProps, aH as TabsType, aI as Tag, aJ as TagProps, aK as TagVariant, aL as Timeline, aM as TimelineItem, aN as TimelineProps, aO as Tooltip, aP as TooltipProps, aQ as Tour, aR as TourProps, aS as TourStep, aT as Tree, aU as TreeDropPosition, aV as TreeKey, aW as TreeNode, aX as TreeProps, aY as Typography, aZ as TypographyLinkProps, a_ as TypographyProps, a$ as TypographyTitleProps, b0 as TypographyType, b1 as Upload, b2 as UploadChangeInfo, b3 as UploadDraggerProps, b4 as UploadFile, b5 as UploadFileStatus, b6 as UploadProps, b7 as UploadRequestOptions, b8 as Watermark, b9 as WatermarkFont, ba as WatermarkProps, bb as message, bc as notification } from './core-C5OnrCi4.cjs';
3
+ import { T as TagStatus, B as BadgeProps } from './core-DF0pknX6.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 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 TagVariant, aA as Timeline, aB as TimelineItem, aC as TimelineProps, aD as Tooltip, aE as TooltipProps, aF as Tour, aG as TourProps, aH as TourStep, aI as Tree, aJ as TreeDropPosition, aK as TreeKey, aL as TreeNode, aM as TreeProps, aN as Typography, aO as TypographyLinkProps, aP as TypographyProps, aQ as TypographyTitleProps, aR as TypographyType, aS as Upload, aT as UploadChangeInfo, aU as UploadDraggerProps, aV as UploadFile, aW as UploadFileStatus, aX as UploadProps, aY as UploadRequestOptions, aZ as Watermark, a_ as WatermarkFont, a$ as WatermarkProps, b0 as message, b1 as notification } from './core-DF0pknX6.cjs';
5
5
  import { C as ControlSize, I as InputPlaceholderMode, a as ControlStatus } from './shared-Bx4B28Wh.cjs';
6
- export { D as DatePicker, a as DatePickerDisabledInfo, b as DatePickerPreset, c as DatePickerProps, d as DatePickerShowTime, e as DatePickerType, f as DatePickerValue, g as DateRangePickerPreset, h as DateRangePickerProps, S as SelectDateRange, i as SelectDateRangeProps, j as SelectDateRangeValue } from './select-date-range-DDmYGDD4.cjs';
6
+ import { O as OverlayContainer, a as OverlayApiHandle, M as ModalOpenConfig, S as SelectOption, b as SelectChangeValue, c as SelectProps, d as ModalActionResult, B as ButtonProps, e as ButtonSize } from './Select-BO3VyE2n.cjs';
7
+ export { f as Button, g as ButtonVariant, h as Modal, i as ModalProps, j as ModalType, k as Select, l as SelectMode, m as SelectValue } from './Select-BO3VyE2n.cjs';
8
+ export { D as DatePicker, a as DatePickerDisabledInfo, b as DatePickerPreset, c as DatePickerProps, d as DatePickerShowTime, e as DatePickerType, f as DatePickerValue, g as DateRangePickerPreset, h as DateRangePickerProps, S as SelectDateRange, i as SelectDateRangeProps, j as SelectDateRangeValue } from './select-date-range-IOe6MMqu.cjs';
7
9
  export { RichTextContent, RichTextContentFormat, RichTextContentProps, RichTextEditor, RichTextEditorProps, RichTextImagePasteHandler, RichTextToolbar } from './rich-text-editor.cjs';
8
10
  export { MarkdownEditor, MarkdownEditorMode, MarkdownEditorProps } from './markdown-editor.cjs';
9
11
  import * as Monaco from 'monaco-editor';
10
- import { S as SelectOption, a as SelectChangeValue, b as SelectProps } from './Select-4hGJt3RJ.cjs';
11
- export { c as Select, d as SelectMode, e as SelectValue } from './Select-4hGJt3RJ.cjs';
12
12
  export { BaiduMapHostOptions, BaiduMapInstance, BaiduMapNamespace, BaiduMapPoint, BarChart, BarChartProps, BarDatum, BarSeries, CHART_VIEWBOX_HEIGHT, CHART_VIEWBOX_WIDTH, CandlestickChart, CandlestickChartProps, CandlestickDatum, CartesianChartProps, ChartAxis, ChartAxisProps, ChartComposite, ChartCompositeLayer, ChartCompositeProps, ChartCompositeRef, ChartDataClickInfo, ChartDataEditor, ChartDataEditorProps, ChartDataZoom, ChartDataZoomProps, ChartLegend, ChartLegendItem, ChartLegendProps, ChartMapOverlay, ChartMapOverlayProps, ChartMark, ChartMarkProps, ChartRoamController, ChartRoamControllerProps, ChartSeries, ChartTimeline, ChartTimelineProps, ChartToolbox, ChartToolboxFeature, ChartToolboxOptions, ChartToolboxProps, ChartTooltip, ChartTooltipProps, ChartValueAddress, ChartValueChannel, ChartValueIsland, ChartValueIslandProps, ChartValueTransferHandler, ChartVisualMap, ChartVisualMapProps, ChartWhirlingLoading, ChartWhirlingLoadingProps, ChordChart, ChordChartProps, ChordLink, ChordNode, DEFAULT_CHART_PALETTE, EventRiverChart, EventRiverChartProps, EventRiverEvent, EventRiverEvolution, EventRiverSeries, ForceChart, ForceGraphChart, FunnelChart, FunnelChartProps, FunnelDatum, FunnelSeries, GaugeChart, GaugeChartProps, GaugeDatum, GeoJsonFeature, GeoJsonFeatureCollection, GeoJsonMultiPolygonGeometry, GeoJsonPolygonGeometry, GraphChart, GraphChartProps, GraphLink, GraphNode, HeatmapChart, HeatmapChartProps, HeatmapPoint, KLineChart, LineChart, LineChartProps, LinePoint, LineSeries, LineShareChart, LineShareChartProps, MapChart, MapChartProps, MapDatum, MapMarkLine, MapMarkPoint, MapOverlayEvent, MapOverlayHost, MapOverlaySnapshot, MixedChart, MixedChartProps, MixedSeries, PieChart, PieChartProps, PieDatum, PieSeries, RadarChart, RadarChartProps, RadarIndicator, RadarPanel, RadarSeries, ScatterChart, ScatterChartProps, ScatterDatum, ScatterVisualMap, SiaChart, SiaChartProps, SiaChartRef, SvgMapPlot, SvgMapPlotProps, ThemeRiverChart, ThemeRiverChartProps, ThemeRiverSeries, TreeChart, TreeChartProps, TreeDatum, TreemapChart, TreemapChartProps, TreemapDatum, TreemapItemStyle, VennChart, VennChartProps, VennIntersection, VennSet, WordCloudChart, WordCloudChartProps, WordCloudDatum, XYChart, XYChartProps, XYSeries, chartColor, chartTicks, createBaiduMapHost, formatChartNumber, getChartMap, linearScale, niceChartDomain, paddedValueExtent, registerChartMap, saveCompositeImage, serializeChartStack, smoothSvgPath, svgArcPath, transferCompositeValue } from './chart.cjs';
13
13
  import 'vditor';
14
14
 
@@ -1682,6 +1682,10 @@ interface SelectModalConfig extends Omit<ModalOpenConfig, "children" | "footer"
1682
1682
  columns?: number;
1683
1683
  /** 允许的最大高度。 */
1684
1684
  maxHeight?: number;
1685
+ /** 标题下方的独立首行扩展内容,位于选项范围和搜索框上方。 */
1686
+ headerExtra?: ReactNode;
1687
+ /** 扩展控件数据,确认时作为第三个参数传出;可通过句柄 update({ extraValues }) 更新。 */
1688
+ extraValues?: Record<string, unknown>;
1685
1689
  /** 搜索框的占位提示文字。 */
1686
1690
  searchPlaceholder?: string;
1687
1691
  /** 自定义搜索匹配函数,返回 true 时保留该选项。 */
@@ -1689,7 +1693,7 @@ interface SelectModalConfig extends Omit<ModalOpenConfig, "children" | "footer"
1689
1693
  /** 搜索条件变化或提交搜索时调用,具体参数见签名。 */
1690
1694
  onSearch?: SelectProps["onSearch"];
1691
1695
  /** 确认后接收选中的值和对应选项;单选为单值,多选为数组。支持异步处理;返回 false 或抛出异常时保留弹框,允许重试。 */
1692
- onConfirm?: (value: SelectChangeValue, option: SelectOption | SelectOption[] | null) => ModalActionResult;
1696
+ onConfirm?: (value: SelectChangeValue, option: SelectOption | SelectOption[] | null, extraValues: Record<string, unknown>) => ModalActionResult;
1693
1697
  }
1694
1698
  /** 无需渲染 Select,直接打开选择弹框。取消不提交,确认支持异步处理及返回 false 阻止关闭。 */
1695
1699
  declare function openSelectModal(config: SelectModalConfig): OverlayApiHandle<SelectModalConfig>;
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
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 { O as OverlayContainer, a as OverlayApiHandle, M as ModalOpenConfig, b as ModalActionResult, B as ButtonProps, T as TagStatus, c as ButtonSize, d as BadgeProps } from './core-DeZknKwc.js';
4
- export { e as Badge, f as BadgeRibbonProps, g as BadgeStatus, h as Breadcrumb, i as BreadcrumbItem, j as BreadcrumbProps, k as Button, l as ButtonVariant, C as Calendar, m as CalendarProps, n as Card, o as CardAccent, p as CardProps, q as Carousel, r as CarouselProps, s as CarouselRef, t as Collapse, u as CollapseItem, v as CollapseKey, w as CollapseProps, D as Dropdown, x as DropdownButtonProps, y as DropdownMenuProps, z as DropdownOpenSource, A as DropdownPlacement, E as DropdownProps, F as DropdownTrigger, G as FILLED_ICON_NAMES, H as FilledIconName, I as FloatButton, J as FloatButtonBackTopProps, K as FloatButtonGroupProps, L as FloatButtonProps, N as FloatButtonShape, P as FloatingPlacement, Q as FloatingTrigger, R as ICON_NAMES, S as Icon, U as IconName, V as IconProps, W as IconVariant, X as Image, Y as ImagePreview, Z as ImagePreviewConfig, _ as ImagePreviewProps, $ as ImageProps, a0 as Input, a1 as InputProps, a2 as Menu, a3 as MenuClickInfo, a4 as MenuItem, a5 as MenuMode, a6 as MenuProps, a7 as MenuTheme, a8 as MessageConfig, a9 as MessageHandle, aa as MessageKey, ab as MessageType, ac as Modal, ad as ModalProps, ae as ModalType, af as NotificationConfig, ag as NotificationPlacement, ah as NotificationType, ai as Popconfirm, aj as PopconfirmProps, ak as Popover, al as PopoverProps, am as Progress, an as ProgressProps, ao as ProgressStatus, ap as Rate, aq as RateProps, ar as Segmented, as as SegmentedOption, at as SegmentedProps, au as SegmentedValue, av as Spin, aw as SpinProps, ax as StepItem, ay as StepStatus, az as Steps, aA as StepsProps, aB as TabItem, aC as Tabs, aD as TabsContextMenuClickInfo, aE as TabsOrientation, aF as TabsPosition, aG as TabsProps, aH as TabsType, aI as Tag, aJ as TagProps, aK as TagVariant, aL as Timeline, aM as TimelineItem, aN as TimelineProps, aO as Tooltip, aP as TooltipProps, aQ as Tour, aR as TourProps, aS as TourStep, aT as Tree, aU as TreeDropPosition, aV as TreeKey, aW as TreeNode, aX as TreeProps, aY as Typography, aZ as TypographyLinkProps, a_ as TypographyProps, a$ as TypographyTitleProps, b0 as TypographyType, b1 as Upload, b2 as UploadChangeInfo, b3 as UploadDraggerProps, b4 as UploadFile, b5 as UploadFileStatus, b6 as UploadProps, b7 as UploadRequestOptions, b8 as Watermark, b9 as WatermarkFont, ba as WatermarkProps, bb as message, bc as notification } from './core-DeZknKwc.js';
3
+ import { T as TagStatus, B as BadgeProps } from './core-Cqgl6Z7h.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 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 TagVariant, aA as Timeline, aB as TimelineItem, aC as TimelineProps, aD as Tooltip, aE as TooltipProps, aF as Tour, aG as TourProps, aH as TourStep, aI as Tree, aJ as TreeDropPosition, aK as TreeKey, aL as TreeNode, aM as TreeProps, aN as Typography, aO as TypographyLinkProps, aP as TypographyProps, aQ as TypographyTitleProps, aR as TypographyType, aS as Upload, aT as UploadChangeInfo, aU as UploadDraggerProps, aV as UploadFile, aW as UploadFileStatus, aX as UploadProps, aY as UploadRequestOptions, aZ as Watermark, a_ as WatermarkFont, a$ as WatermarkProps, b0 as message, b1 as notification } from './core-Cqgl6Z7h.js';
5
5
  import { C as ControlSize, I as InputPlaceholderMode, a as ControlStatus } from './shared-Bx4B28Wh.js';
6
- export { D as DatePicker, a as DatePickerDisabledInfo, b as DatePickerPreset, c as DatePickerProps, d as DatePickerShowTime, e as DatePickerType, f as DatePickerValue, g as DateRangePickerPreset, h as DateRangePickerProps, S as SelectDateRange, i as SelectDateRangeProps, j as SelectDateRangeValue } from './select-date-range-CGRb3-W8.js';
6
+ import { O as OverlayContainer, a as OverlayApiHandle, M as ModalOpenConfig, S as SelectOption, b as SelectChangeValue, c as SelectProps, d as ModalActionResult, B as ButtonProps, e as ButtonSize } from './Select-BoVx-D0D.js';
7
+ export { f as Button, g as ButtonVariant, h as Modal, i as ModalProps, j as ModalType, k as Select, l as SelectMode, m as SelectValue } from './Select-BoVx-D0D.js';
8
+ export { D as DatePicker, a as DatePickerDisabledInfo, b as DatePickerPreset, c as DatePickerProps, d as DatePickerShowTime, e as DatePickerType, f as DatePickerValue, g as DateRangePickerPreset, h as DateRangePickerProps, S as SelectDateRange, i as SelectDateRangeProps, j as SelectDateRangeValue } from './select-date-range-a6nzK7Wu.js';
7
9
  export { RichTextContent, RichTextContentFormat, RichTextContentProps, RichTextEditor, RichTextEditorProps, RichTextImagePasteHandler, RichTextToolbar } from './rich-text-editor.js';
8
10
  export { MarkdownEditor, MarkdownEditorMode, MarkdownEditorProps } from './markdown-editor.js';
9
11
  import * as Monaco from 'monaco-editor';
10
- import { S as SelectOption, a as SelectChangeValue, b as SelectProps } from './Select-BNSE67xn.js';
11
- export { c as Select, d as SelectMode, e as SelectValue } from './Select-BNSE67xn.js';
12
12
  export { BaiduMapHostOptions, BaiduMapInstance, BaiduMapNamespace, BaiduMapPoint, BarChart, BarChartProps, BarDatum, BarSeries, CHART_VIEWBOX_HEIGHT, CHART_VIEWBOX_WIDTH, CandlestickChart, CandlestickChartProps, CandlestickDatum, CartesianChartProps, ChartAxis, ChartAxisProps, ChartComposite, ChartCompositeLayer, ChartCompositeProps, ChartCompositeRef, ChartDataClickInfo, ChartDataEditor, ChartDataEditorProps, ChartDataZoom, ChartDataZoomProps, ChartLegend, ChartLegendItem, ChartLegendProps, ChartMapOverlay, ChartMapOverlayProps, ChartMark, ChartMarkProps, ChartRoamController, ChartRoamControllerProps, ChartSeries, ChartTimeline, ChartTimelineProps, ChartToolbox, ChartToolboxFeature, ChartToolboxOptions, ChartToolboxProps, ChartTooltip, ChartTooltipProps, ChartValueAddress, ChartValueChannel, ChartValueIsland, ChartValueIslandProps, ChartValueTransferHandler, ChartVisualMap, ChartVisualMapProps, ChartWhirlingLoading, ChartWhirlingLoadingProps, ChordChart, ChordChartProps, ChordLink, ChordNode, DEFAULT_CHART_PALETTE, EventRiverChart, EventRiverChartProps, EventRiverEvent, EventRiverEvolution, EventRiverSeries, ForceChart, ForceGraphChart, FunnelChart, FunnelChartProps, FunnelDatum, FunnelSeries, GaugeChart, GaugeChartProps, GaugeDatum, GeoJsonFeature, GeoJsonFeatureCollection, GeoJsonMultiPolygonGeometry, GeoJsonPolygonGeometry, GraphChart, GraphChartProps, GraphLink, GraphNode, HeatmapChart, HeatmapChartProps, HeatmapPoint, KLineChart, LineChart, LineChartProps, LinePoint, LineSeries, LineShareChart, LineShareChartProps, MapChart, MapChartProps, MapDatum, MapMarkLine, MapMarkPoint, MapOverlayEvent, MapOverlayHost, MapOverlaySnapshot, MixedChart, MixedChartProps, MixedSeries, PieChart, PieChartProps, PieDatum, PieSeries, RadarChart, RadarChartProps, RadarIndicator, RadarPanel, RadarSeries, ScatterChart, ScatterChartProps, ScatterDatum, ScatterVisualMap, SiaChart, SiaChartProps, SiaChartRef, SvgMapPlot, SvgMapPlotProps, ThemeRiverChart, ThemeRiverChartProps, ThemeRiverSeries, TreeChart, TreeChartProps, TreeDatum, TreemapChart, TreemapChartProps, TreemapDatum, TreemapItemStyle, VennChart, VennChartProps, VennIntersection, VennSet, WordCloudChart, WordCloudChartProps, WordCloudDatum, XYChart, XYChartProps, XYSeries, chartColor, chartTicks, createBaiduMapHost, formatChartNumber, getChartMap, linearScale, niceChartDomain, paddedValueExtent, registerChartMap, saveCompositeImage, serializeChartStack, smoothSvgPath, svgArcPath, transferCompositeValue } from './chart.js';
13
13
  import 'vditor';
14
14
 
@@ -1682,6 +1682,10 @@ interface SelectModalConfig extends Omit<ModalOpenConfig, "children" | "footer"
1682
1682
  columns?: number;
1683
1683
  /** 允许的最大高度。 */
1684
1684
  maxHeight?: number;
1685
+ /** 标题下方的独立首行扩展内容,位于选项范围和搜索框上方。 */
1686
+ headerExtra?: ReactNode;
1687
+ /** 扩展控件数据,确认时作为第三个参数传出;可通过句柄 update({ extraValues }) 更新。 */
1688
+ extraValues?: Record<string, unknown>;
1685
1689
  /** 搜索框的占位提示文字。 */
1686
1690
  searchPlaceholder?: string;
1687
1691
  /** 自定义搜索匹配函数,返回 true 时保留该选项。 */
@@ -1689,7 +1693,7 @@ interface SelectModalConfig extends Omit<ModalOpenConfig, "children" | "footer"
1689
1693
  /** 搜索条件变化或提交搜索时调用,具体参数见签名。 */
1690
1694
  onSearch?: SelectProps["onSearch"];
1691
1695
  /** 确认后接收选中的值和对应选项;单选为单值,多选为数组。支持异步处理;返回 false 或抛出异常时保留弹框,允许重试。 */
1692
- onConfirm?: (value: SelectChangeValue, option: SelectOption | SelectOption[] | null) => ModalActionResult;
1696
+ onConfirm?: (value: SelectChangeValue, option: SelectOption | SelectOption[] | null, extraValues: Record<string, unknown>) => ModalActionResult;
1693
1697
  }
1694
1698
  /** 无需渲染 Select,直接打开选择弹框。取消不提交,确认支持异步处理及返回 false 阻止关闭。 */
1695
1699
  declare function openSelectModal(config: SelectModalConfig): OverlayApiHandle<SelectModalConfig>;
package/dist/index.js CHANGED
@@ -79,7 +79,7 @@ import {
79
79
  Watermark,
80
80
  message,
81
81
  notification
82
- } from "./chunk-7RNS52YG.js";
82
+ } from "./chunk-NPB33IXJ.js";
83
83
  import {
84
84
  TextArea
85
85
  } from "./chunk-YT6E3X2K.js";
@@ -94,7 +94,7 @@ import {
94
94
  DatePicker,
95
95
  SelectDateRange,
96
96
  TimePanel
97
- } from "./chunk-VN6PIPP7.js";
97
+ } from "./chunk-GM47DAAN.js";
98
98
  import {
99
99
  Checkbox,
100
100
  FloatingScrollbarProvider,
@@ -109,7 +109,7 @@ import {
109
109
  Tree,
110
110
  useOverlayLifecycle,
111
111
  useScrollbarProximity
112
- } from "./chunk-3TRRBMXY.js";
112
+ } from "./chunk-VX2JECOU.js";
113
113
  import {
114
114
  Dropdown,
115
115
  FILLED_ICON_NAMES,
@@ -4096,6 +4096,7 @@ function SelectModalBody({ config, values, disabled, onChange }) {
4096
4096
  onChange([...next]);
4097
4097
  };
4098
4098
  return /* @__PURE__ */ jsxs18(Fragment6, { children: [
4099
+ config.headerExtra != null && config.headerExtra !== false ? /* @__PURE__ */ jsx18("div", { className: "sia-select-modal__header-extra", children: config.headerExtra }) : null,
4099
4100
  /* @__PURE__ */ jsxs18("div", { className: "sia-select-modal__heading", children: [
4100
4101
  /* @__PURE__ */ jsxs18("div", { role: "tablist", "aria-label": "\u9009\u9879\u8303\u56F4", children: [
4101
4102
  /* @__PURE__ */ jsx18(Button, { role: "tab", "aria-selected": !selectedOnly, variant: "link", onClick: () => setSelectedOnly(false), children: "\u5168\u90E8" }),
@@ -4167,7 +4168,7 @@ function openSelectModal(config) {
4167
4168
  } });
4168
4169
  }
4169
4170
  function modalConfig() {
4170
- const { options, value, mode, showValue, columns, maxHeight, searchPlaceholder, filterOption, onSearch, onConfirm, ...modal } = current;
4171
+ const { options, value, mode, showValue, columns, maxHeight, headerExtra, extraValues, searchPlaceholder, filterOption, onSearch, onConfirm, ...modal } = current;
4171
4172
  return {
4172
4173
  ...modal,
4173
4174
  title: current.title ?? "\u8BF7\u9009\u62E9",
@@ -4181,7 +4182,8 @@ function openSelectModal(config) {
4181
4182
  try {
4182
4183
  return await current.onConfirm?.(
4183
4184
  current.mode === "multiple" ? [...values] : values[0] ?? null,
4184
- current.mode === "multiple" ? selected : selected[0] ?? null
4185
+ current.mode === "multiple" ? selected : selected[0] ?? null,
4186
+ { ...current.extraValues }
4185
4187
  );
4186
4188
  } finally {
4187
4189
  submitting = false;
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { InputHTMLAttributes, ReactNode, HTMLAttributes, CSSProperties } from 'react';
3
3
  import { I as InputPlaceholderMode, C as ControlSize, a as ControlStatus } from './shared-Bx4B28Wh.cjs';
4
- import { S as SelectOption, e as SelectValue } from './Select-4hGJt3RJ.cjs';
4
+ import { S as SelectOption, m as SelectValue } from './Select-BO3VyE2n.cjs';
5
5
 
6
6
  /** 日期选择附带的时间选择配置。 */
7
7
  type DatePickerShowTime = boolean | {
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { InputHTMLAttributes, ReactNode, HTMLAttributes, CSSProperties } from 'react';
3
3
  import { I as InputPlaceholderMode, C as ControlSize, a as ControlStatus } from './shared-Bx4B28Wh.js';
4
- import { S as SelectOption, e as SelectValue } from './Select-BNSE67xn.js';
4
+ import { S as SelectOption, m as SelectValue } from './Select-BoVx-D0D.js';
5
5
 
6
6
  /** 日期选择附带的时间选择配置。 */
7
7
  type DatePickerShowTime = boolean | {
@@ -3198,6 +3198,8 @@ var Select = (0, import_react16.forwardRef)(function Select2({
3198
3198
  const [openedMode, setOpenedMode] = (0, import_react16.useState)(automaticMode);
3199
3199
  const popupMode = open ? openedMode : automaticMode;
3200
3200
  const [modalValues, setModalValues] = (0, import_react16.useState)([]);
3201
+ const [modalSubmitting, setModalSubmitting] = (0, import_react16.useState)(false);
3202
+ const modalSubmitLock = (0, import_react16.useRef)(false);
3201
3203
  const [selectedOnly, setSelectedOnly] = (0, import_react16.useState)(false);
3202
3204
  const [query, setQuery] = (0, import_react16.useState)("");
3203
3205
  const [activeIndex, setActiveIndex] = (0, import_react16.useState)(-1);
@@ -3266,6 +3268,24 @@ var Select = (0, import_react16.forwardRef)(function Select2({
3266
3268
  setQuery("");
3267
3269
  setScrollTop(0);
3268
3270
  }
3271
+ async function confirmModalSelection() {
3272
+ if (disabled || loading || modalSubmitLock.current) return;
3273
+ modalSubmitLock.current = true;
3274
+ const nextValue = multiple ? [...modalValues] : modalValues[0] ?? null;
3275
+ const selected = modalValues.map((selectedValue) => availableOptions.find((option) => option.value === selectedValue) ?? (allowInput ? { value: selectedValue, label: String(selectedValue) } : void 0)).filter((option) => option !== void 0);
3276
+ const extraValues = { ...modalConfig?.extraValues };
3277
+ setModalSubmitting(true);
3278
+ try {
3279
+ const result = await modalConfig?.onConfirm?.(nextValue, multiple ? selected : selected[0] ?? null, extraValues);
3280
+ if (result === false) return;
3281
+ setCurrentValue(nextValue);
3282
+ closeDropdown();
3283
+ } catch {
3284
+ } finally {
3285
+ modalSubmitLock.current = false;
3286
+ setModalSubmitting(false);
3287
+ }
3288
+ }
3269
3289
  function openDropdown() {
3270
3290
  if (disabled || loading) return;
3271
3291
  setOpenedMode(automaticMode);
@@ -3490,6 +3510,7 @@ var Select = (0, import_react16.forwardRef)(function Select2({
3490
3510
  open,
3491
3511
  title: modalConfig?.title ?? placeholder,
3492
3512
  width: modalConfig?.width ?? 900,
3513
+ confirmLoading: modalSubmitting,
3493
3514
  onOpenChange: (next) => {
3494
3515
  if (!next) closeDropdown();
3495
3516
  },
@@ -3497,14 +3518,12 @@ var Select = (0, import_react16.forwardRef)(function Select2({
3497
3518
  footer: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "sia-select-modal__footer", children: [
3498
3519
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { children: modalConfig?.footerExtra }),
3499
3520
  /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { children: [
3500
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Button, { onClick: closeDropdown, children: "\u53D6\u6D88" }),
3501
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Button, { variant: "primary", disabled: disabled || loading, onClick: () => {
3502
- setCurrentValue(multiple ? modalValues : modalValues[0] ?? null);
3503
- closeDropdown();
3504
- }, children: "\u786E\u5B9A" })
3521
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Button, { disabled: modalSubmitting, onClick: closeDropdown, children: "\u53D6\u6D88" }),
3522
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Button, { variant: "primary", loading: modalSubmitting, disabled: disabled || loading, onClick: confirmModalSelection, children: "\u786E\u5B9A" })
3505
3523
  ] })
3506
3524
  ] }),
3507
3525
  children: open ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
3526
+ modalConfig?.headerExtra != null && modalConfig.headerExtra !== false ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "sia-select-modal__header-extra", children: modalConfig.headerExtra }) : null,
3508
3527
  /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "sia-select-modal__heading", children: [
3509
3528
  /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { role: "tablist", "aria-label": "\u9009\u9879\u8303\u56F4", children: [
3510
3529
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Button, { role: "tab", "aria-selected": !selectedOnly, variant: "link", onClick: () => setSelectedOnly(false), children: "\u5168\u90E8" }),
@@ -1,4 +1,4 @@
1
- export { S as SelectDateRange, i as SelectDateRangeProps, j as SelectDateRangeValue } from './select-date-range-DDmYGDD4.cjs';
1
+ export { S as SelectDateRange, i as SelectDateRangeProps, j as SelectDateRangeValue } from './select-date-range-IOe6MMqu.cjs';
2
2
  import 'react';
3
3
  import './shared-Bx4B28Wh.cjs';
4
- import './Select-4hGJt3RJ.cjs';
4
+ import './Select-BO3VyE2n.cjs';
@@ -1,4 +1,4 @@
1
- export { S as SelectDateRange, i as SelectDateRangeProps, j as SelectDateRangeValue } from './select-date-range-CGRb3-W8.js';
1
+ export { S as SelectDateRange, i as SelectDateRangeProps, j as SelectDateRangeValue } from './select-date-range-a6nzK7Wu.js';
2
2
  import 'react';
3
3
  import './shared-Bx4B28Wh.js';
4
- import './Select-BNSE67xn.js';
4
+ import './Select-BoVx-D0D.js';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SelectDateRange
3
- } from "./chunk-VN6PIPP7.js";
4
- import "./chunk-3TRRBMXY.js";
3
+ } from "./chunk-GM47DAAN.js";
4
+ import "./chunk-VX2JECOU.js";
5
5
  import "./chunk-KLI65JVD.js";
6
6
  import "./chunk-TZGUBGA4.js";
7
7
  import "./chunk-3VJ4CZDQ.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sia.soul/sia-react-ui",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "Sia Design components and tokens for React",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -1,142 +0,0 @@
1
- import * as react from 'react';
2
- import { ButtonHTMLAttributes, ReactNode } from 'react';
3
- import { I as InputPlaceholderMode, C as ControlSize, a as ControlStatus } from './shared-Bx4B28Wh.cjs';
4
-
5
- /** 选择器的值类型。 */
6
- type SelectValue = string | number;
7
- /** 选择器的模式类型。 */
8
- type SelectMode = "single" | "multiple";
9
- /** 选择变更后的值:单选为字符串、数字或 null,多选为值数组。 */
10
- type SelectChangeValue = SelectValue | SelectValue[] | null;
11
- /** 选择器的候选项定义。 */
12
- type SelectOption = {
13
- /** 展示给用户的名称,可传入文本或 React 节点。 */
14
- label: ReactNode;
15
- /** 该项目对应的数据值,用于标识、选择或计算。 */
16
- value: SelectValue;
17
- /** 是否禁用交互。 */
18
- disabled?: boolean;
19
- /** 弹框模式中的分组标题。 */
20
- group?: string;
21
- };
22
- /** 选择器的属性配置。 */
23
- interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "defaultValue" | "onChange" | "value"> {
24
- /** 下拉选项 */
25
- options: readonly SelectOption[];
26
- /**
27
- * 单选或多选模式
28
- * @defaultValue "single"
29
- */
30
- mode?: SelectMode;
31
- /** 显式指定下拉或弹框。未设置时根据 options 总数判断:超过 modalThreshold 使用弹框。显式配置优先于阈值;弹框点击确定才提交。 */
32
- popupMode?: "dropdown" | "modal";
33
- /**
34
- * 未指定 popupMode 时,选项总数超过此值自动使用弹框,等于阈值时仍使用下拉。
35
- * @defaultValue 15
36
- */
37
- modalThreshold?: number;
38
- /** 弹框 title、width、columns、maxHeight 与左下角扩展 footerExtra */
39
- modalConfig?: {
40
- /** 弹框标题,未设置时使用 Select 的 placeholder。 */
41
- title?: ReactNode;
42
- /** 弹框宽度,默认 900px。 */
43
- width?: number | string;
44
- /** 每行选项列数,默认 3 列。 */
45
- columns?: number;
46
- /** 列表最大可视高度,默认 360px。 */
47
- maxHeight?: number;
48
- /** 底部左侧扩展内容,例如维护按钮。 */
49
- footerExtra?: ReactNode;
50
- };
51
- /** 当前值(受控) */
52
- value?: SelectChangeValue;
53
- /** 初始选中值 */
54
- defaultValue?: SelectChangeValue;
55
- /** 确认选择或清空时调用。单选返回单值及对应选项,清空返回 null;多选返回值数组及选项数组。弹框中的草稿变化不会直接触发。 */
56
- onChange?: (value: SelectChangeValue, option: SelectOption | SelectOption[] | null) => void;
57
- /**
58
- * 未选择时的提示
59
- * @defaultValue "请选择"
60
- */
61
- placeholder?: ReactNode;
62
- /** 占位提示的显示模式;floating 为浮动标签。 */
63
- placeholderMode?: InputPlaceholderMode;
64
- /** small / medium / large 高度为 22 / 30 / 38px;默认继承 Form,组件自身 size 优先 */
65
- size?: ControlSize;
66
- /**
67
- * 当前状态,用于选择对应的状态样式。
68
- * @defaultValue "default"
69
- */
70
- status?: ControlStatus;
71
- /**
72
- * 是否允许清空当前选择;单选弹框中同时允许再次点击已选项取消选择。显式设为 false 可禁用。
73
- * @defaultValue true
74
- */
75
- allowClear?: boolean;
76
- /**
77
- * 显示加载状态并禁用展开
78
- * @defaultValue false
79
- */
80
- loading?: boolean;
81
- /**
82
- 是否显示搜索输入框。
83
- * @defaultValue false
84
- */
85
- showSearch?: boolean;
86
- /** 在选项名称下方显示对应的 value。 */
87
- showValue?: boolean;
88
- /** 允许将搜索框内容作为自定义选项提交。 */
89
- allowInput?: boolean;
90
- /** 手动输入内容的最大长度 */
91
- inputMaxLength?: number;
92
- /**
93
- * 搜索框的占位提示文字。
94
- * @defaultValue "搜索选项"
95
- */
96
- searchPlaceholder?: string;
97
- /** 搜索条件变化或提交搜索时调用,具体参数见签名。 */
98
- onSearch?: (query: string) => void;
99
- /**
100
- * 自定义搜索匹配函数,返回 true 时保留该选项。
101
- * @defaultValue defaultFilterOption
102
- */
103
- filterOption?: (query: string, option: SelectOption) => boolean;
104
- /**
105
- * 多选时显示全选、反选;下拉操作栏固定在列表底部
106
- * @defaultValue true
107
- */
108
- showSelectAll?: boolean;
109
- /** 是否显示下拉面板底部的条数统计与操作行;默认单选隐藏、多选显示,不影响弹框模式。 */
110
- showActions?: boolean;
111
- /** 最多显示的标签数;空间不足时会继续折叠,并为 +N 预留宽度。 */
112
- maxTagCount?: number;
113
- /**
114
- * 长列表启用窗口化渲染
115
- * @defaultValue true
116
- */
117
- virtual?: boolean;
118
- /**
119
- * 启用虚拟滚动的选项数量
120
- * @defaultValue 100
121
- */
122
- virtualThreshold?: number;
123
- /**
124
- * 选项列表的最大可视高度,单位为像素。
125
- * @defaultValue 256
126
- */
127
- listHeight?: number;
128
- /**
129
- * 单个选项的高度,虚拟列表据此计算可见区域。
130
- * @defaultValue showValue ? 54 : 34
131
- */
132
- optionHeight?: number;
133
- /**
134
- * 没有匹配选项时的提示内容。
135
- * @defaultValue "暂无数据"
136
- */
137
- notFoundContent?: ReactNode;
138
- }
139
- /** 选择器组件。 */
140
- declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
141
-
142
- export { type SelectOption as S, type SelectChangeValue as a, type SelectProps as b, Select as c, type SelectMode as d, type SelectValue as e };
@@ -1,142 +0,0 @@
1
- import * as react from 'react';
2
- import { ButtonHTMLAttributes, ReactNode } from 'react';
3
- import { I as InputPlaceholderMode, C as ControlSize, a as ControlStatus } from './shared-Bx4B28Wh.js';
4
-
5
- /** 选择器的值类型。 */
6
- type SelectValue = string | number;
7
- /** 选择器的模式类型。 */
8
- type SelectMode = "single" | "multiple";
9
- /** 选择变更后的值:单选为字符串、数字或 null,多选为值数组。 */
10
- type SelectChangeValue = SelectValue | SelectValue[] | null;
11
- /** 选择器的候选项定义。 */
12
- type SelectOption = {
13
- /** 展示给用户的名称,可传入文本或 React 节点。 */
14
- label: ReactNode;
15
- /** 该项目对应的数据值,用于标识、选择或计算。 */
16
- value: SelectValue;
17
- /** 是否禁用交互。 */
18
- disabled?: boolean;
19
- /** 弹框模式中的分组标题。 */
20
- group?: string;
21
- };
22
- /** 选择器的属性配置。 */
23
- interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "defaultValue" | "onChange" | "value"> {
24
- /** 下拉选项 */
25
- options: readonly SelectOption[];
26
- /**
27
- * 单选或多选模式
28
- * @defaultValue "single"
29
- */
30
- mode?: SelectMode;
31
- /** 显式指定下拉或弹框。未设置时根据 options 总数判断:超过 modalThreshold 使用弹框。显式配置优先于阈值;弹框点击确定才提交。 */
32
- popupMode?: "dropdown" | "modal";
33
- /**
34
- * 未指定 popupMode 时,选项总数超过此值自动使用弹框,等于阈值时仍使用下拉。
35
- * @defaultValue 15
36
- */
37
- modalThreshold?: number;
38
- /** 弹框 title、width、columns、maxHeight 与左下角扩展 footerExtra */
39
- modalConfig?: {
40
- /** 弹框标题,未设置时使用 Select 的 placeholder。 */
41
- title?: ReactNode;
42
- /** 弹框宽度,默认 900px。 */
43
- width?: number | string;
44
- /** 每行选项列数,默认 3 列。 */
45
- columns?: number;
46
- /** 列表最大可视高度,默认 360px。 */
47
- maxHeight?: number;
48
- /** 底部左侧扩展内容,例如维护按钮。 */
49
- footerExtra?: ReactNode;
50
- };
51
- /** 当前值(受控) */
52
- value?: SelectChangeValue;
53
- /** 初始选中值 */
54
- defaultValue?: SelectChangeValue;
55
- /** 确认选择或清空时调用。单选返回单值及对应选项,清空返回 null;多选返回值数组及选项数组。弹框中的草稿变化不会直接触发。 */
56
- onChange?: (value: SelectChangeValue, option: SelectOption | SelectOption[] | null) => void;
57
- /**
58
- * 未选择时的提示
59
- * @defaultValue "请选择"
60
- */
61
- placeholder?: ReactNode;
62
- /** 占位提示的显示模式;floating 为浮动标签。 */
63
- placeholderMode?: InputPlaceholderMode;
64
- /** small / medium / large 高度为 22 / 30 / 38px;默认继承 Form,组件自身 size 优先 */
65
- size?: ControlSize;
66
- /**
67
- * 当前状态,用于选择对应的状态样式。
68
- * @defaultValue "default"
69
- */
70
- status?: ControlStatus;
71
- /**
72
- * 是否允许清空当前选择;单选弹框中同时允许再次点击已选项取消选择。显式设为 false 可禁用。
73
- * @defaultValue true
74
- */
75
- allowClear?: boolean;
76
- /**
77
- * 显示加载状态并禁用展开
78
- * @defaultValue false
79
- */
80
- loading?: boolean;
81
- /**
82
- 是否显示搜索输入框。
83
- * @defaultValue false
84
- */
85
- showSearch?: boolean;
86
- /** 在选项名称下方显示对应的 value。 */
87
- showValue?: boolean;
88
- /** 允许将搜索框内容作为自定义选项提交。 */
89
- allowInput?: boolean;
90
- /** 手动输入内容的最大长度 */
91
- inputMaxLength?: number;
92
- /**
93
- * 搜索框的占位提示文字。
94
- * @defaultValue "搜索选项"
95
- */
96
- searchPlaceholder?: string;
97
- /** 搜索条件变化或提交搜索时调用,具体参数见签名。 */
98
- onSearch?: (query: string) => void;
99
- /**
100
- * 自定义搜索匹配函数,返回 true 时保留该选项。
101
- * @defaultValue defaultFilterOption
102
- */
103
- filterOption?: (query: string, option: SelectOption) => boolean;
104
- /**
105
- * 多选时显示全选、反选;下拉操作栏固定在列表底部
106
- * @defaultValue true
107
- */
108
- showSelectAll?: boolean;
109
- /** 是否显示下拉面板底部的条数统计与操作行;默认单选隐藏、多选显示,不影响弹框模式。 */
110
- showActions?: boolean;
111
- /** 最多显示的标签数;空间不足时会继续折叠,并为 +N 预留宽度。 */
112
- maxTagCount?: number;
113
- /**
114
- * 长列表启用窗口化渲染
115
- * @defaultValue true
116
- */
117
- virtual?: boolean;
118
- /**
119
- * 启用虚拟滚动的选项数量
120
- * @defaultValue 100
121
- */
122
- virtualThreshold?: number;
123
- /**
124
- * 选项列表的最大可视高度,单位为像素。
125
- * @defaultValue 256
126
- */
127
- listHeight?: number;
128
- /**
129
- * 单个选项的高度,虚拟列表据此计算可见区域。
130
- * @defaultValue showValue ? 54 : 34
131
- */
132
- optionHeight?: number;
133
- /**
134
- * 没有匹配选项时的提示内容。
135
- * @defaultValue "暂无数据"
136
- */
137
- notFoundContent?: ReactNode;
138
- }
139
- /** 选择器组件。 */
140
- declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
141
-
142
- export { type SelectOption as S, type SelectChangeValue as a, type SelectProps as b, Select as c, type SelectMode as d, type SelectValue as e };