@baishuyun/ui-base 6.7.2 → 6.8.2
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/Amap/{Amap-Dnvu_pUP.js → Amap-BNnmSPnl.js} +1 -1
- package/dist/Amap/AmapCircle/index.js +4 -3
- package/dist/Amap/{AmapCircle-Wfn43qco.js → AmapCircle-BDW6pnNR.js} +1 -1
- package/dist/Amap/AmapMarker/index.js +5 -4
- package/dist/Amap/{AmapMarker-CMlzx_nj.js → AmapMarker-CdoPWdff.js} +2 -2
- package/dist/Amap/AmapMarkerCluster/index.js +5 -4
- package/dist/Amap/{AmapMarkerCluster-MDUfcIqP.js → AmapMarkerCluster-CSIxiVC5.js} +2 -2
- package/dist/Amap/AmapProvider/index.js +5 -4
- package/dist/Amap/{AmapProvider-CGedZdvQ.js → AmapProvider-Cwi6WOe0.js} +2 -2
- package/dist/Amap/hooks/index.js +3 -2
- package/dist/Amap/{hooks-DwRvpafb.js → hooks-DAN31s_-.js} +1 -1
- package/dist/Amap/index.js +11 -10
- package/dist/Calendar/{AllDaySection-Bd5Po_DI.js → AllDaySection-a96dIzs3.js} +4 -4
- package/dist/Calendar/{Calendar-Bs4S-6rW.js → Calendar-DnQrN8KB.js} +13 -13
- package/dist/Calendar/{CurrentTimeIndicator-twXtFHIp.js → CurrentTimeIndicator-CNKsVEXH.js} +1 -1
- package/dist/Calendar/{EventCard-CvEnWcKd.js → EventCard-B1LoBxth.js} +3 -3
- package/dist/Calendar/{TimeGrid-DPtU6Qvo.js → TimeGrid-DIw8oCqY.js} +2 -2
- package/dist/Calendar/context/index.js +2 -1
- package/dist/Calendar/index.js +21 -20
- package/dist/Calendar/subcomponents/AllDaySection/index.js +8 -7
- package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +5 -4
- package/dist/Calendar/subcomponents/EventCard/index.js +6 -5
- package/dist/Calendar/subcomponents/TimeAxis/index.js +4 -3
- package/dist/Calendar/subcomponents/TimeGrid/index.js +4 -3
- package/dist/Calendar/{theme-BRVmxhqD.js → theme-xnrMsnkg.js} +2 -2
- package/dist/Calendar/utils/index.js +4 -3
- package/dist/Calendar/utils/layout/index.js +3 -2
- package/dist/Calendar/utils/theme/index.js +2 -1
- package/dist/Card/{Card-BjWdQRjq.js → Card-CtKLNh3n.js} +1 -1
- package/dist/Card/index.js +3 -2
- package/dist/CheckBox/{CheckBox-D7bCjlkU.js → CheckBox-ByWSy9Yr.js} +1 -1
- package/dist/CheckBox/{CheckBox-GtT43IQ8.js → CheckBox-nBm0u6zX.js} +1 -1
- package/dist/CheckBox/index.js +4 -3
- package/dist/ColorPicker/{ColorPicker-Hjs4Vp5a.js → ColorPicker-CL57cSDG.js} +7 -6
- package/dist/ColorPicker/index.js +8 -7
- package/dist/ConfigProvider/index.js +3 -2
- package/dist/DatePicker/{DatePicker-C_ssCNGN.js → DatePicker-C0XbZmrZ.js} +7 -7
- package/dist/DatePicker/{DatePickerPanel-DNDw-H39.js → DatePickerPanel-BEn16cat.js} +6 -5
- package/dist/DatePicker/index.js +9 -8
- package/dist/DatePicker/style/index.js +2 -1
- package/dist/DatePicker/{style-BwmM26RP.js → style-CNtPPsZp.js} +1 -1
- package/dist/DropDown/{DropDown-DYhDwsNm.js → DropDown-yDH9V_9Y.js} +8 -8
- package/dist/DropDown/index.js +12 -10
- package/dist/DropDown/style/index.js +2 -1
- package/dist/DropDown/{style-BSgosymi.js → style-Fdp-U4md.js} +1 -1
- package/dist/Editor/{Buttons-D1fP8aYo.js → Buttons-BivKInBV.js} +147 -127
- package/dist/Editor/ToolbarPlugin/Buttons/index.js +19 -17
- package/dist/Editor/constants/index.js +1 -0
- package/dist/Editor/index.js +286 -174
- package/dist/Gantt/GanttChart/index.js +19 -17
- package/dist/Gantt/{GanttChart-VoKzDvu-.js → GanttChart-CDw1IQ4F.js} +9 -9
- package/dist/Gantt/GanttTable/index.js +12 -10
- package/dist/Gantt/{GanttTable-l-pMVjWe.js → GanttTable-xbXD_PWI.js} +5 -5
- package/dist/Gantt/GanttToolBar/index.js +15 -13
- package/dist/Gantt/{GanttToolBar-Bm_4cVHF.js → GanttToolBar-BTeTsR6Z.js} +4 -4
- package/dist/Gantt/{collapseKeys-_ShTXPKt.js → collapseKeys-B4SOVHjd.js} +2 -2
- package/dist/Gantt/index.js +27 -24
- package/dist/Gantt/{theme-CiMD9Y6i.js → theme-DLNvgM9X.js} +1 -1
- package/dist/Gantt/{timelineViewConfig-CLIpppp0.js → timelineViewConfig-9HArvbmb.js} +1 -1
- package/dist/Gantt/utils/index.js +6 -5
- package/dist/Gantt/utils/theme/index.js +2 -1
- package/dist/Icon/index.js +2 -1
- package/dist/InputTag/InputTag-hzCCJQ1z.js +144 -0
- package/dist/InputTag/index.js +7 -4
- package/dist/Loading/Loading-DiywS7ex.js +19 -0
- package/dist/Loading/index.js +4 -1
- package/dist/Modal/{Modal-GGHNlZv3.js → Modal-LiztSF7x.js} +1 -1
- package/dist/Modal/index.js +3 -2
- package/dist/NotFoundContent/index.js +2 -1
- package/dist/Radio/{Radio-CMAwZdP7.js → Radio-CX9cUqb7.js} +12 -12
- package/dist/Radio/index.js +2 -1
- package/dist/ScrollBar/{ScrollBar-CnwYQfXM.js → ScrollBar-QhXVe8zd.js} +1 -1
- package/dist/ScrollBar/index.js +3 -2
- package/dist/Segmented/{Segmented-Ck2ZmfF7.js → Segmented-BDz1hMDT.js} +1 -1
- package/dist/Segmented/index.js +2 -1
- package/dist/Select/{Select-CwABtVnS.js → Select-D6EK7whJ.js} +202 -201
- package/dist/Select/{SelectInputSearch-dfBUnTCY.js → SelectInputSearch-COUzreau.js} +2 -2
- package/dist/Select/index.js +15 -14
- package/dist/Table/{Table-ByNcMkaT.js → Table-yQXQEk6d.js} +5 -5
- package/dist/Table/hooks/index.js +2 -1
- package/dist/Table/{hooks-uCDY9dqx.js → hooks-BceUZQQm.js} +1 -1
- package/dist/Table/index.js +9 -8
- package/dist/Table/{processRowspan-nIGqGyHh.js → processRowspan-B0WELhG2.js} +1 -1
- package/dist/Table/style/index.js +2 -1
- package/dist/Table/{style-x9xfw6te.js → style-DgiPEsSp.js} +1 -1
- package/dist/Table/utils/index.js +2 -1
- package/dist/Tabs/Tabs-BiKW70CL.js +398 -0
- package/dist/Tabs/index.js +7 -4
- package/dist/Tooltip/{Tooltip-DWWWYn1a.js → Tooltip-Ch9lti_7.js} +1 -1
- package/dist/Tooltip/index.js +2 -1
- package/dist/Tree/index.js +5 -4
- package/dist/Tree/utils/index.js +1 -0
- package/dist/components/DropDown/interface.d.ts +167 -169
- package/dist/components/Editor/LengthBadge.d.ts +6 -0
- package/dist/components/Editor/ToolbarPlugin/BaseButton/BaseButton.d.ts +1 -1
- package/dist/components/Editor/ToolbarPlugin/ToolbarPlugin.d.ts +5 -1
- package/dist/components/Editor/ToolbarPlugin/context/EditorToolbarThemeContext.d.ts +6 -0
- package/dist/components/Editor/ToolbarPlugin/interface.d.ts +30 -32
- package/dist/components/Editor/index.d.ts +1 -1
- package/dist/components/Editor/interface.d.ts +118 -60
- package/dist/components/Editor/plugins/MaxLengthPlugin.d.ts +7 -0
- package/dist/components/Editor/utils/resolveEditorToolbarThemeVars.d.ts +5 -0
- package/dist/components/Editor/utils/textLength.d.ts +4 -0
- package/dist/components/InputTag/interface.d.ts +32 -32
- package/dist/components/Radio/interface.d.ts +95 -97
- package/dist/components/Tabs/TabSelect/interface.d.ts +23 -25
- package/dist/components/Tabs/interface.d.ts +58 -60
- package/dist/components/Tree/types/node.d.ts +19 -19
- package/dist/components/Tree/types/tree.d.ts +81 -83
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +54 -51
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/lang/en-US.json.d.ts +177 -166
- package/dist/locale/lang/zh-CN.json.d.ts +177 -166
- package/dist/locale/lang/zh-TW.json.d.ts +177 -166
- package/dist/style.css +1 -1
- package/dist/vendors/{ConfigProvider-AQTr7T_c.js → ConfigProvider-DxrZpdIb.js} +23 -1
- package/dist/vendors/{LocaleContext-CBcJzvUD.js → LocaleContext-Dcw6C1LX.js} +11 -0
- package/dist/vendors/{Tree-DMC_MSw1.js → Tree-DXmVRDn0.js} +10 -9
- package/dist/vendors/{useLocale-DZ8XW2VL.js → useLocale-BKZX2_zw.js} +1 -1
- package/dist/vendors/version-4HBYLKDL.js +6 -0
- package/dist/vite-env.d.ts +13 -10
- package/dist/vitest-matchers.d.ts +0 -1
- package/package.json +8 -8
- package/dist/InputTag/InputTag-25vFChWE.js +0 -143
- package/dist/Loading/Loading--cdn92gm.js +0 -15
- package/dist/Tabs/Tabs-ZRWBbBdF.js +0 -410
- package/dist/components/Amap/AmapMarker/__tests__/AmapMarker.test.d.ts +0 -1
- package/dist/components/Amap/AmapMarkerCluster/__tests__/AmapMarkerCluster.test.d.ts +0 -1
- package/dist/components/Amap/AmapProvider/__tests__/AmapProvider.test.d.ts +0 -1
- package/dist/components/Amap/__tests__/Amap.test.d.ts +0 -1
- package/dist/components/Amap/hooks/__tests__/useCurrentLocation.test.d.ts +0 -1
- package/dist/components/Calendar/__tests__/Calendar.contract.test.d.ts +0 -1
- package/dist/components/Calendar/__tests__/algorithm/monthLayoutAlgorithm.test.d.ts +0 -1
- package/dist/components/Calendar/subcomponents/DateDisplay/__tests__/DateDisplay.weekPicker.test.d.ts +0 -1
- package/dist/components/Calendar/subcomponents/DayView/__tests__/CalendarDay.dayFilter.test.d.ts +0 -1
- package/dist/components/Calendar/subcomponents/EventCard/__tests__/EventCard.tooltip.test.d.ts +0 -1
- package/dist/components/Calendar/utils/__tests__/dateUtils.test.d.ts +0 -1
- package/dist/components/Calendar/utils/__tests__/eventUtils.contract.test.d.ts +0 -1
- package/dist/components/Calendar/utils/__tests__/normalizeData.test.d.ts +0 -1
- package/dist/components/Calendar/utils/theme/__tests__/platformTheme.test.d.ts +0 -1
- package/dist/components/Calendar/utils/theme/__tests__/resolveCalendarThemeVars.test.d.ts +0 -1
- package/dist/components/Calendar/utils/theme/__tests__/resolveScheduleColorVars.test.d.ts +0 -1
- package/dist/components/Calendar/utils/theme/__tests__/resolveSubcomponentThemes.test.d.ts +0 -1
- package/dist/components/ConfigProvider/__tests__/ConfigProvider.test.d.ts +0 -1
- package/dist/components/DatePicker/__tests__/DatePicker.getPopupContainer.test.d.ts +0 -1
- package/dist/components/DatePicker/__tests__/DatePicker.triggerActiveClassName.test.d.ts +0 -1
- package/dist/components/DatePicker/__tests__/DatePickerPanel.dom.test.d.ts +0 -1
- package/dist/components/DatePicker/style/__tests__/resolveDatePickerThemeVars.test.d.ts +0 -1
- package/dist/components/DatePicker/utils/__tests__/normalizePickerValue.test.d.ts +0 -1
- package/dist/components/DropDown/__tests__/DropDown.test.d.ts +0 -1
- package/dist/components/DropDown/style/__tests__/resolveDropDownThemeVars.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/OffscreenTaskIndicators/__tests__/OffscreenTaskIndicators.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/hooks/__tests__/timelineFocus.contract.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/hooks/__tests__/useGanttColumnVirtual.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/hooks/__tests__/useGanttDrag.clippedQuarterMonth.test.d.ts +0 -0
- package/dist/components/Gantt/GanttChart/hooks/__tests__/useOffscreenIndicators.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/hooks/__tests__/useTimelineViewportController.test.d.ts +0 -0
- package/dist/components/Gantt/GanttChart/utils/__tests__/dateRangeNormalizer.subday.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/dragEngine.quarterMonth.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/dragEngine.subday.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/headerBuilder.quarterMonth.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/headerBuilder.subday.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/quarterMonthScale.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/subdayScale.contract.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/timelineMarkers.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/timelineRange.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/timelineViewConfig.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/timelineViewportEngine.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/Gantt.contract.test.d.ts +0 -0
- package/dist/components/Gantt/__tests__/Gantt.grouped.contract.test.d.ts +0 -0
- package/dist/components/Gantt/__tests__/GanttBars.renderWindow.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/GanttChart.contract.test.d.ts +0 -0
- package/dist/components/Gantt/__tests__/GanttSummaryBar.tooltip.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/GanttToolBar.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/filterItemsByCollapse.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/interface.contract.types.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/timezoneUtils.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/useBarTooltipHover.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/useGanttHighlight.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/useTaskBarPointer.test.d.ts +0 -1
- package/dist/components/Gantt/utils/theme/__tests__/resolveGanttTheme.test.d.ts +0 -1
- package/dist/components/Gantt/utils/theme/__tests__/resolveGanttThemeVars.test.d.ts +0 -1
- package/dist/components/Gantt/utils/theme/__tests__/resolveTableThemeFromGantt.test.d.ts +0 -1
- package/dist/components/ScrollBar/__tests__/ScrollBar.test.d.ts +0 -1
- package/dist/components/Select/__tests__/Select.getPopupContainer.test.d.ts +0 -1
- package/dist/components/Select/__tests__/Select.optionDisabled.test.d.ts +0 -1
- package/dist/components/Table/__tests__/HeaderCell.test.d.ts +0 -1
- package/dist/components/Table/__tests__/TableBody.test.d.ts +0 -1
- package/dist/components/Table/__tests__/processRowspan.test.d.ts +0 -1
- package/dist/components/Table/style/__tests__/resolveTableThemeVars.test.d.ts +0 -1
- package/dist/components/Tooltip/__tests__/Tooltip.test.d.ts +0 -1
- package/dist/components/Tree/Tree.test.d.ts +0 -1
- package/dist/locale/__tests__/locale.test.d.ts +0 -1
- /package/dist/Amap/{AmapContext-CFmsMycg.js → AmapContext-D7Njjm5a.js} +0 -0
- /package/dist/Amap/{useMarkerInfoWindowController-BvP2jo7K.js → useMarkerInfoWindowController-BQmhR0N7.js} +0 -0
- /package/dist/Calendar/{TimeAxis-D7bgZDKs.js → TimeAxis-C9e2BdYs.js} +0 -0
- /package/dist/Calendar/{colorUtils-lXNjGoCk.js → colorUtils-CBLTsDX0.js} +0 -0
- /package/dist/Calendar/{context-CBJnz0IH.js → context-4tCN5X33.js} +0 -0
- /package/dist/Calendar/{layout-BglMom3m.js → layout-Dz-grtu9.js} +0 -0
- /package/dist/DatePicker/{ensureDayjsPlugins-CVL-fnAl.js → ensureDayjsPlugins-Cn9Bkjkj.js} +0 -0
- /package/dist/DatePicker/{pickerLocale-BeMlfhKu.js → pickerLocale-BRnNjLcv.js} +0 -0
- /package/dist/Gantt/{GanttHighlightContext-grda5bhd.js → GanttHighlightContext-ChThr8ia.js} +0 -0
- /package/dist/Gantt/{columnResize-DV1tSBx_.js → columnResize-jG0Wy2PC.js} +0 -0
- /package/dist/Gantt/{constants-BObDP0h6.js → constants-LIz5jwed.js} +0 -0
- /package/dist/Gantt/{highlightTarget-DrP0_NrM.js → highlightTarget-BpkYTonb.js} +0 -0
- /package/dist/Icon/{Icon-SQ5tu-yG.js → Icon-BBDcb-yw.js} +0 -0
- /package/dist/NotFoundContent/{NotFoundContent-J-TEnljc.js → NotFoundContent-BLmzWNBi.js} +0 -0
- /package/dist/ScrollBar/{style-B1NkMGtS.js → style-D26azwz6.js} +0 -0
- /package/dist/Table/{constants-CcwjDbe7.js → constants-kRpjsoet.js} +0 -0
- /package/dist/vendors/{animations-Mlw78WYo.js → animations-rwUbyoT0.js} +0 -0
- /package/dist/vendors/{color-BQYy0Wgy.js → color-D6XBXROa.js} +0 -0
- /package/dist/vendors/{cssVars-B8o94Yao.js → cssVars-BYg1matG.js} +0 -0
- /package/dist/vendors/{mergeRefs-Bai1cIzv.js → mergeRefs-Bsywq1Vo.js} +0 -0
- /package/dist/vendors/{useFloatingOverlay-WbbHmuT-.js → useFloatingOverlay-BApqkHSu.js} +0 -0
- /package/dist/vendors/{useFloatingPortal-C8V67X0v.js → useFloatingPortal-CmVJbuRm.js} +0 -0
- /package/dist/vendors/{useLatchedPopupPortalRoot-hwf14FJ5.js → useLatchedPopupPortalRoot-4fVhqVT4.js} +0 -0
- /package/dist/{components/Amap/AmapCircle/__tests__/AmapCircle.test.d.ts → version.d.ts} +0 -0
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
type InputTagProps = {
|
|
2
|
-
/**
|
|
3
|
-
* 标签值,对象数组格式
|
|
4
|
-
*/
|
|
5
|
-
value?: string[];
|
|
6
|
-
/**
|
|
7
|
-
* 标签值变化回调
|
|
8
|
-
*/
|
|
9
|
-
onChange?: (value: string[]) => void;
|
|
10
|
-
/**
|
|
11
|
-
* 默认标签值
|
|
12
|
-
*/
|
|
13
|
-
defaultValue?: string[];
|
|
14
|
-
/**
|
|
15
|
-
* 是否启用点击高亮功能
|
|
16
|
-
*/
|
|
17
|
-
enableActive?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* 当前激活的标签索引(受控模式)
|
|
20
|
-
*/
|
|
21
|
-
activeIndex?: number;
|
|
22
|
-
/**
|
|
23
|
-
* 默认激活的标签索引(非受控模式)
|
|
24
|
-
*/
|
|
25
|
-
defaultActiveIndex?: number;
|
|
26
|
-
/**
|
|
27
|
-
* 激活标签索引变化回调
|
|
28
|
-
*/
|
|
29
|
-
onActiveIndexChange?: (index: number, text: string) => void;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export type { InputTagProps };
|
|
1
|
+
type InputTagProps = {
|
|
2
|
+
/**
|
|
3
|
+
* 标签值,对象数组格式
|
|
4
|
+
*/
|
|
5
|
+
value?: string[];
|
|
6
|
+
/**
|
|
7
|
+
* 标签值变化回调
|
|
8
|
+
*/
|
|
9
|
+
onChange?: (value: string[]) => void;
|
|
10
|
+
/**
|
|
11
|
+
* 默认标签值
|
|
12
|
+
*/
|
|
13
|
+
defaultValue?: string[];
|
|
14
|
+
/**
|
|
15
|
+
* 是否启用点击高亮功能
|
|
16
|
+
*/
|
|
17
|
+
enableActive?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 当前激活的标签索引(受控模式)
|
|
20
|
+
*/
|
|
21
|
+
activeIndex?: number;
|
|
22
|
+
/**
|
|
23
|
+
* 默认激活的标签索引(非受控模式)
|
|
24
|
+
*/
|
|
25
|
+
defaultActiveIndex?: number;
|
|
26
|
+
/**
|
|
27
|
+
* 激活标签索引变化回调
|
|
28
|
+
*/
|
|
29
|
+
onActiveIndexChange?: (index: number, text: string) => void;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type { InputTagProps };
|
|
@@ -1,98 +1,96 @@
|
|
|
1
1
|
import { Layout } from './constants';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
style?: React.CSSProperties;
|
|
98
|
-
}
|
|
2
|
+
export interface RadioProps {
|
|
3
|
+
/**
|
|
4
|
+
* @description 是否选中
|
|
5
|
+
*/
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @description 默认是否选中
|
|
10
|
+
*/
|
|
11
|
+
defaultChecked?: boolean;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @description 是否禁用
|
|
15
|
+
*/
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @description 值改变时的回调
|
|
20
|
+
*/
|
|
21
|
+
onChange?: (checked: boolean) => void;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @description 自定义类名
|
|
25
|
+
*/
|
|
26
|
+
className?: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @description 自定义样式
|
|
30
|
+
*/
|
|
31
|
+
style?: React.CSSProperties;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @description 子元素
|
|
35
|
+
*/
|
|
36
|
+
children?: React.ReactNode;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @description label 的位置,默认在右侧
|
|
40
|
+
* @default 'right'
|
|
41
|
+
*/
|
|
42
|
+
labelPosition?: 'left' | 'right';
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @description radio 的值,用于 radio group
|
|
46
|
+
*/
|
|
47
|
+
value?: string | number;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface RadioGroupProps {
|
|
51
|
+
/**
|
|
52
|
+
* @description 选中的值
|
|
53
|
+
*/
|
|
54
|
+
value?: string | number;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @description 默认选中的值
|
|
58
|
+
*/
|
|
59
|
+
defaultValue?: string | number;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @description 值改变时的回调
|
|
63
|
+
*/
|
|
64
|
+
onChange?: (value: string | number) => void;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @description 值反选的回调
|
|
68
|
+
*/
|
|
69
|
+
onDeselect?: (value: string | number) => void;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @description 是否禁用
|
|
73
|
+
*/
|
|
74
|
+
disabled?: boolean;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @description 布局方式
|
|
78
|
+
* @default 'none'
|
|
79
|
+
*/
|
|
80
|
+
layout?: Layout;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @description Radio 子元素
|
|
84
|
+
*/
|
|
85
|
+
children?: React.ReactNode;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @description 自定义类名
|
|
89
|
+
*/
|
|
90
|
+
className?: string;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @description 自定义样式
|
|
94
|
+
*/
|
|
95
|
+
style?: React.CSSProperties;
|
|
96
|
+
}
|
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
import { TabType } from '../constants';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export type { TabSelectProps };
|
|
2
|
+
type TabSelectProps = {
|
|
3
|
+
/**
|
|
4
|
+
* @description 下拉选中的 tab 类型
|
|
5
|
+
*/
|
|
6
|
+
value?: TabType;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @description 切换 tab 类型的回调
|
|
10
|
+
*/
|
|
11
|
+
onChange?: (value: TabType) => void;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @description 初始化选中 tab 类型,如果没有设置 value,则默认选中第一个
|
|
15
|
+
*/
|
|
16
|
+
defaultValue?: TabType;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @description 主题色
|
|
20
|
+
*/
|
|
21
|
+
color?: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type { TabSelectProps };
|
|
@@ -1,61 +1,59 @@
|
|
|
1
1
|
import { TabType } from './constants';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export type { TabsProps };
|
|
2
|
+
interface TabsProps {
|
|
3
|
+
items?: {
|
|
4
|
+
/**
|
|
5
|
+
* @description 页签的唯一标识
|
|
6
|
+
*/
|
|
7
|
+
key: string;
|
|
8
|
+
/**
|
|
9
|
+
* @description 页签的标签
|
|
10
|
+
*/
|
|
11
|
+
label: React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* @description 页签的内容
|
|
14
|
+
*/
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}[];
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @description 当前激活的页签的唯一标识
|
|
20
|
+
*/
|
|
21
|
+
activeKey?: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @description 初始化选中面板的 key,如果没有设置 activeKey,则默认选中第一个
|
|
25
|
+
*/
|
|
26
|
+
defaultActiveKey?: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @description 切换页签的回调
|
|
30
|
+
*/
|
|
31
|
+
onChange?: (key: string) => void;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @description 主题色
|
|
35
|
+
*/
|
|
36
|
+
color?: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @description 页签的基本样式,可选 line、card 、 filled-card、 badge-card 类型
|
|
40
|
+
*/
|
|
41
|
+
type?: TabType;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* 禁止卡片交互效果
|
|
45
|
+
*/
|
|
46
|
+
disabled?: boolean;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @description 自定义样式类
|
|
50
|
+
*/
|
|
51
|
+
className?: string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @description 自定义样式
|
|
55
|
+
*/
|
|
56
|
+
style?: React.CSSProperties;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type { TabsProps };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
type TreeNodeDefine = {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
icon?: React.ReactNode | ((node: TreeNodeDefine) => React.ReactNode);
|
|
4
|
-
/**
|
|
5
|
-
* @description 节点是否可被选中
|
|
6
|
-
* @description 如果设置为 `false` 点击该节点不会有任何的交互和事件响应(但是如果节点有 children,会自动展开 children)
|
|
7
|
-
* @default true
|
|
8
|
-
*/
|
|
9
|
-
checkable?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* @description 节点是否被禁用
|
|
12
|
-
* @description 如果设置为 `true`,节点仍会渲染灰色 checkbox/radio,但点击不会触发选中/取消选中
|
|
13
|
-
* @description 与 `checkable: false` 不同——后者会隐藏勾选控件
|
|
14
|
-
* @default false
|
|
15
|
-
*/
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export type { TreeNodeDefine };
|
|
1
|
+
type TreeNodeDefine = {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
icon?: React.ReactNode | ((node: TreeNodeDefine) => React.ReactNode);
|
|
4
|
+
/**
|
|
5
|
+
* @description 节点是否可被选中
|
|
6
|
+
* @description 如果设置为 `false` 点击该节点不会有任何的交互和事件响应(但是如果节点有 children,会自动展开 children)
|
|
7
|
+
* @default true
|
|
8
|
+
*/
|
|
9
|
+
checkable?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* @description 节点是否被禁用
|
|
12
|
+
* @description 如果设置为 `true`,节点仍会渲染灰色 checkbox/radio,但点击不会触发选中/取消选中
|
|
13
|
+
* @description 与 `checkable: false` 不同——后者会隐藏勾选控件
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type { TreeNodeDefine };
|
|
@@ -1,84 +1,82 @@
|
|
|
1
1
|
import { TreeNodeDefine } from './node';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export type
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
* @
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
showSwitcher?: boolean;
|
|
84
|
-
};
|
|
2
|
+
export type CheckType = 'radio' | 'checkbox' | 'default';
|
|
3
|
+
|
|
4
|
+
export type TreeProps = {
|
|
5
|
+
data: TreeNodeDefine[];
|
|
6
|
+
/**
|
|
7
|
+
* @description 搜索值 (用于高亮显示)
|
|
8
|
+
*/
|
|
9
|
+
searchValue?: string;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @description 字段名
|
|
13
|
+
*/
|
|
14
|
+
fieldNames?: {
|
|
15
|
+
title: string;
|
|
16
|
+
value: string;
|
|
17
|
+
children: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @description 选中的节点 (受控)
|
|
22
|
+
*/
|
|
23
|
+
selectedKeys?: (string | number)[];
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @description 默认选中的节点 (非受控)
|
|
27
|
+
*/
|
|
28
|
+
defaultSelectedKeys?: (string | number)[];
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @description 展开的节点keys (受控)
|
|
32
|
+
*/
|
|
33
|
+
expandedKeys?: (string | number)[];
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @description 默认展开的节点keys (非受控)
|
|
37
|
+
*/
|
|
38
|
+
defaultExpandedKeys?: (string | number)[];
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @description 展开/收起节点时的回调
|
|
42
|
+
*/
|
|
43
|
+
onExpand?: (expandedKeys: (string | number)[]) => void;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @description 选中节点回调
|
|
47
|
+
*/
|
|
48
|
+
onSelect?: (value: string | number, node?: TreeNodeDefine) => void;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @description 取消选中节点回调
|
|
52
|
+
*/
|
|
53
|
+
onDeSelect?: (value: string | number) => void;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @description 全局节点图标渲染函数
|
|
57
|
+
*/
|
|
58
|
+
icon?: (node: TreeNodeDefine) => React.ReactNode;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @description 全局下拉箭头图标渲染函数
|
|
62
|
+
*/
|
|
63
|
+
switcherIcon?: (expanded: boolean, node: TreeNodeDefine) => React.ReactNode;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @description 父节点是否可以被选中(如果设置为 true, 则所有节点的展开/折叠必须点击箭头按钮才能正常操作)
|
|
67
|
+
*/
|
|
68
|
+
parentCheckable?: boolean;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @description 树形节点的选择样式
|
|
72
|
+
* @description 如果设置为 `radio`,则只能单选,如果设置为 `checkbox`,则可以多选,如果设置为 `default`,则节点遵循默认行为
|
|
73
|
+
* @default default
|
|
74
|
+
*/
|
|
75
|
+
checkType?: CheckType;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @description 是否显示展开/收起节点时的箭头按钮
|
|
79
|
+
* @default true
|
|
80
|
+
*/
|
|
81
|
+
showSwitcher?: boolean;
|
|
82
|
+
};
|
|
@@ -14,6 +14,8 @@ export type { TooltipProps, TooltipTrigger, TooltipWidthMode, VirtualReference }
|
|
|
14
14
|
export { Select } from './Select';
|
|
15
15
|
export { Tree } from './Tree';
|
|
16
16
|
export { default as Checkbox } from './CheckBox';
|
|
17
|
+
export { default as Radio } from './Radio';
|
|
18
|
+
/** @deprecated 拼写错误别名,请改用 `Radio` */
|
|
17
19
|
export { default as Ratio } from './Radio';
|
|
18
20
|
export { default as Tabs } from './Tabs';
|
|
19
21
|
export { default as DropDown } from './DropDown';
|