antdv-next 1.0.0-alpha.3 → 1.0.0-alpha.5
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/_util/ActionButton.js +22 -10
- package/dist/_util/ContextIsolator.js +4 -2
- package/dist/_util/tools.js +2 -1
- package/dist/_util/wave/WaveEffect.js +6 -1
- package/dist/_util/wave/index.js +6 -3
- package/dist/_util/wave/style.js +4 -3
- package/dist/affix/index.d.ts +3 -3
- package/dist/affix/index.js +14 -6
- package/dist/alert/Alert.d.ts +4 -3
- package/dist/alert/Alert.js +52 -26
- package/dist/anchor/Anchor.d.ts +5 -5
- package/dist/anchor/Anchor.js +28 -14
- package/dist/anchor/AnchorLink.js +14 -8
- package/dist/anchor/index.d.ts +1 -1
- package/dist/antd.js +86 -86
- package/dist/app/App.d.ts +2 -2
- package/dist/app/App.js +12 -5
- package/dist/auto-complete/index.d.ts +77 -0
- package/dist/auto-complete/index.js +627 -0
- package/dist/avatar/Avatar.d.ts +3 -3
- package/dist/avatar/Avatar.js +24 -12
- package/dist/avatar/AvatarGroup.d.ts +2 -2
- package/dist/avatar/AvatarGroup.js +10 -5
- package/dist/badge/Ribbon.d.ts +3 -3
- package/dist/badge/Ribbon.js +14 -6
- package/dist/badge/ScrollNumber.js +10 -5
- package/dist/badge/SingleNumber.js +6 -3
- package/dist/badge/index.d.ts +3 -3
- package/dist/badge/index.js +32 -15
- package/dist/breadcrumb/Breadcrumb.d.ts +5 -5
- package/dist/breadcrumb/Breadcrumb.js +24 -19
- package/dist/breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/dist/breadcrumb/BreadcrumbItem.js +33 -33
- package/dist/breadcrumb/index.d.ts +1 -1
- package/dist/button/Button.d.ts +3 -3
- package/dist/button/Button.js +46 -22
- package/dist/button/DefaultLoadingIcon.js +12 -6
- package/dist/button/IconWrapper.js +2 -1
- package/dist/button/style/variant.js +116 -104
- package/dist/calendar/Header.js +81 -37
- package/dist/calendar/generateCalendar.js +44 -19
- package/dist/calendar/index.d.ts +3 -3
- package/dist/card/Card.d.ts +3 -3
- package/dist/card/Card.js +50 -25
- package/dist/card/CardGrid.d.ts +2 -2
- package/dist/card/CardGrid.js +4 -2
- package/dist/card/CardMeta.d.ts +3 -3
- package/dist/card/CardMeta.js +12 -6
- package/dist/carousel/index.d.ts +3 -3
- package/dist/carousel/index.js +112 -56
- package/dist/cascader/Panel.d.ts +3 -3
- package/dist/cascader/Panel.js +44 -17
- package/dist/cascader/index.d.ts +3 -3
- package/dist/cascader/index.js +175 -82
- package/dist/checkbox/Checkbox.d.ts +3 -3
- package/dist/checkbox/Checkbox.js +36 -17
- package/dist/checkbox/Group.d.ts +3 -3
- package/dist/checkbox/Group.js +16 -8
- package/dist/collapse/Collapse.d.ts +3 -3
- package/dist/collapse/Collapse.js +34 -17
- package/dist/color-picker/ColorPicker.d.ts +4 -4
- package/dist/color-picker/ColorPicker.js +58 -28
- package/dist/color-picker/ColorPickerPanel.js +74 -35
- package/dist/color-picker/components/ColorAlphaInput.js +6 -3
- package/dist/color-picker/components/ColorClear.js +8 -4
- package/dist/color-picker/components/ColorHexInput.js +6 -3
- package/dist/color-picker/components/ColorHsbInput.js +6 -3
- package/dist/color-picker/components/ColorInput.js +16 -7
- package/dist/color-picker/components/ColorPresets.js +8 -4
- package/dist/color-picker/components/ColorRgbInput.js +6 -3
- package/dist/color-picker/components/ColorSlider.js +58 -27
- package/dist/color-picker/components/ColorSteppers.js +14 -7
- package/dist/color-picker/components/ColorTrigger.js +20 -9
- package/dist/color-picker/components/PanelPicker/GradientColorBar.js +40 -19
- package/dist/components.d.ts +3 -2
- package/dist/components.js +7 -4
- package/dist/config-provider/SizeContext.js +2 -1
- package/dist/config-provider/context.js +2 -2
- package/dist/config-provider/defaultRenderEmpty.js +2 -1
- package/dist/config-provider/index.d.ts +3 -3
- package/dist/config-provider/index.js +304 -152
- package/dist/date-picker/PickerButton.js +46 -22
- package/dist/date-picker/generatePicker/SuffixIcon.js +8 -4
- package/dist/date-picker/generatePicker/generateRangePicker.js +555 -257
- package/dist/date-picker/generatePicker/generateSinglePicker.js +559 -257
- package/dist/date-picker/generatePicker/index.d.ts +15 -15
- package/dist/date-picker/index.d.ts +25 -25
- package/dist/descriptions/Cell.js +20 -10
- package/dist/descriptions/Row.js +16 -8
- package/dist/descriptions/index.d.ts +3 -3
- package/dist/descriptions/index.js +30 -15
- package/dist/divider/index.d.ts +2 -2
- package/dist/divider/index.js +26 -13
- package/dist/drawer/DrawerPanel.js +38 -18
- package/dist/drawer/index.d.ts +3 -3
- package/dist/drawer/index.js +130 -62
- package/dist/dropdown/dropdown.d.ts +4 -4
- package/dist/dropdown/dropdown.js +47 -24
- package/dist/empty/index.d.ts +3 -3
- package/dist/empty/index.js +12 -6
- package/dist/flex/index.d.ts +3 -3
- package/dist/flex/index.js +28 -9
- package/dist/float-button/BackTop.d.ts +3 -3
- package/dist/float-button/BackTop.js +36 -18
- package/dist/float-button/FloatButton.d.ts +3 -3
- package/dist/float-button/FloatButton.js +32 -16
- package/dist/float-button/FloatButtonGroup.d.ts +3 -3
- package/dist/float-button/FloatButtonGroup.js +42 -21
- package/dist/float-button/PurePanel.js +78 -39
- package/dist/float-button/style/button.js +4 -4
- package/dist/float-button/style/group.js +12 -12
- package/dist/form/ErrorList.js +12 -6
- package/dist/form/Form.d.ts +3 -3
- package/dist/form/Form.js +48 -24
- package/dist/form/FormItem/ItemHolder.js +66 -33
- package/dist/form/FormItem/StatusProvider.js +18 -8
- package/dist/form/FormItem/index.d.ts +3 -3
- package/dist/form/FormItem/index.js +56 -28
- package/dist/form/FormItemInput.js +24 -12
- package/dist/form/FormItemLabel.js +20 -10
- package/dist/form/context.js +10 -5
- package/dist/form/style/index.js +3 -2
- package/dist/grid/col.js +26 -13
- package/dist/grid/row.js +10 -5
- package/dist/grid/style/index.js +5 -4
- package/dist/image/PreviewGroup.d.ts +2 -2
- package/dist/image/PreviewGroup.js +20 -9
- package/dist/image/index.d.ts +4 -4
- package/dist/image/index.js +24 -12
- package/dist/index.d.ts +5 -4
- package/dist/index.js +5 -4
- package/dist/input/Group.js +6 -3
- package/dist/input/Input.js +71 -30
- package/dist/input/OTP/OTPInput.js +76 -33
- package/dist/input/OTP/index.js +37 -18
- package/dist/input/Password.js +76 -33
- package/dist/input/Search.js +80 -33
- package/dist/input/TextArea.d.ts +3 -3
- package/dist/input/TextArea.js +59 -26
- package/dist/input/index.d.ts +11 -11
- package/dist/input-number/index.d.ts +3 -3
- package/dist/input-number/index.js +89 -38
- package/dist/input-number/style/index.js +18 -17
- package/dist/layout/Sider.js +20 -10
- package/dist/layout/index.d.ts +6 -6
- package/dist/layout/layout.d.ts +2 -2
- package/dist/layout/layout.js +28 -14
- package/dist/locale/index.js +4 -2
- package/dist/masonry/Masonry.d.ts +3 -3
- package/dist/masonry/Masonry.js +28 -15
- package/dist/masonry/MasonryItem.js +18 -8
- package/dist/mentions/index.d.ts +3 -3
- package/dist/mentions/index.js +63 -29
- package/dist/mentions/style/index.js +18 -17
- package/dist/menu/MenuContext.js +2 -1
- package/dist/menu/MenuDivider.d.ts +2 -2
- package/dist/menu/MenuDivider.js +4 -2
- package/dist/menu/MenuItem.d.ts +3 -3
- package/dist/menu/MenuItem.js +38 -19
- package/dist/menu/OverrideContext.js +2 -1
- package/dist/menu/SubMenu.d.ts +3 -3
- package/dist/menu/SubMenu.js +40 -19
- package/dist/menu/index.d.ts +5 -5
- package/dist/menu/index.js +84 -37
- package/dist/menu/menu.js +88 -39
- package/dist/message/PurePanel.d.ts +2 -2
- package/dist/message/PurePanel.js +42 -20
- package/dist/message/index.js +6 -3
- package/dist/message/useMessage.js +26 -12
- package/dist/modal/ConfirmDialog.js +392 -184
- package/dist/modal/Modal.d.ts +3 -3
- package/dist/modal/Modal.js +102 -47
- package/dist/modal/confirm.js +116 -54
- package/dist/modal/shared.js +18 -9
- package/dist/modal/useModal/HookModal.js +8 -4
- package/dist/notification/PurePanel.d.ts +2 -2
- package/dist/notification/PurePanel.js +56 -27
- package/dist/notification/index.js +6 -3
- package/dist/notification/useNotification.js +34 -16
- package/dist/package.d.ts +109 -3
- package/dist/package.js +1 -1
- package/dist/pagination/Pagination.d.ts +3 -3
- package/dist/pagination/Pagination.js +69 -34
- package/dist/pagination/style/index.js +61 -50
- package/dist/popconfirm/PurePanel.d.ts +2 -2
- package/dist/popconfirm/PurePanel.js +68 -34
- package/dist/popconfirm/index.d.ts +3 -3
- package/dist/popconfirm/index.js +76 -35
- package/dist/popover/PurePanel.js +132 -60
- package/dist/popover/index.d.ts +3 -3
- package/dist/popover/index.js +60 -27
- package/dist/popover/style/index.js +11 -8
- package/dist/progress/Circle.js +52 -26
- package/dist/progress/Line.js +52 -26
- package/dist/progress/Steps.js +50 -25
- package/dist/progress/progress.d.ts +3 -3
- package/dist/progress/progress.js +50 -25
- package/dist/qrcode/QrcodeStatus.js +12 -5
- package/dist/qrcode/index.d.ts +3 -3
- package/dist/qrcode/index.js +48 -23
- package/dist/radio/group.js +34 -15
- package/dist/radio/index.d.ts +5 -5
- package/dist/radio/radio.d.ts +3 -3
- package/dist/radio/radio.js +36 -17
- package/dist/radio/radioButton.js +30 -14
- package/dist/rate/index.d.ts +3 -3
- package/dist/rate/index.js +34 -17
- package/dist/result/index.d.ts +3 -3
- package/dist/result/index.js +28 -12
- package/dist/result/noFound.d.ts +2 -2
- package/dist/result/serverError.d.ts +2 -2
- package/dist/result/unauthorized.d.ts +2 -2
- package/dist/segmented/index.d.ts +3 -3
- package/dist/segmented/index.js +36 -18
- package/dist/select/index.d.ts +6 -6
- package/dist/select/index.js +150 -74
- package/dist/select/style/select-input-multiple.js +31 -29
- package/dist/select/style/select-input.js +50 -44
- package/dist/skeleton/Avatar.d.ts +2 -2
- package/dist/skeleton/Avatar.js +10 -5
- package/dist/skeleton/Button.d.ts +2 -2
- package/dist/skeleton/Button.js +12 -6
- package/dist/skeleton/Element.js +10 -5
- package/dist/skeleton/Image.d.ts +2 -2
- package/dist/skeleton/Image.js +6 -3
- package/dist/skeleton/Input.d.ts +2 -2
- package/dist/skeleton/Input.js +10 -5
- package/dist/skeleton/Node.d.ts +3 -3
- package/dist/skeleton/Node.js +8 -4
- package/dist/skeleton/Paragraph.js +8 -4
- package/dist/skeleton/Skeleton.d.ts +3 -3
- package/dist/skeleton/Skeleton.js +20 -10
- package/dist/skeleton/Title.js +8 -4
- package/dist/slider/SliderTooltip.js +62 -28
- package/dist/slider/index.d.ts +3 -3
- package/dist/slider/index.js +60 -29
- package/dist/space/Addon.js +8 -4
- package/dist/space/Compact.d.ts +2 -0
- package/dist/space/Compact.js +37 -15
- package/dist/space/Item.js +8 -4
- package/dist/space/index.d.ts +5 -5
- package/dist/space/index.js +23 -12
- package/dist/space/style/addon.js +20 -19
- package/dist/space/style/compact.js +20 -0
- package/dist/spin/Indicator/Looper.js +4 -2
- package/dist/spin/Indicator/Progress.js +8 -4
- package/dist/spin/Indicator/index.js +6 -3
- package/dist/spin/index.d.ts +3 -3
- package/dist/spin/index.js +24 -12
- package/dist/splitter/Panel.js +18 -9
- package/dist/splitter/SplitBar.js +53 -24
- package/dist/splitter/Splitter.d.ts +3 -3
- package/dist/splitter/Splitter.js +22 -11
- package/dist/splitter/index.d.ts +2 -2
- package/dist/splitter/style/index.js +6 -6
- package/dist/statistic/Number.js +12 -6
- package/dist/statistic/Statistic.d.ts +3 -3
- package/dist/statistic/Statistic.js +30 -15
- package/dist/statistic/Timer.d.ts +5 -5
- package/dist/statistic/Timer.js +34 -17
- package/dist/statistic/index.d.ts +5 -5
- package/dist/steps/PanelArrow.js +2 -1
- package/dist/steps/ProgressIcon.js +13 -4
- package/dist/steps/index.d.ts +3 -3
- package/dist/steps/index.js +51 -26
- package/dist/steps/style/horizontal.js +13 -10
- package/dist/steps/style/icon.js +11 -8
- package/dist/steps/style/index.js +19 -18
- package/dist/steps/style/inline.js +19 -16
- package/dist/steps/style/label-placement.js +22 -20
- package/dist/steps/style/nav.js +7 -5
- package/dist/steps/style/panel.js +34 -32
- package/dist/steps/style/progress-dot.js +10 -8
- package/dist/steps/style/progress.js +29 -58
- package/dist/steps/style/rtl.js +6 -4
- package/dist/steps/style/small.js +10 -8
- package/dist/steps/style/status.js +124 -121
- package/dist/steps/style/util.js +7 -4
- package/dist/steps/style/vertical.js +17 -14
- package/dist/style/placementArrow.js +7 -5
- package/dist/switch/index.d.ts +3 -3
- package/dist/switch/index.js +34 -17
- package/dist/table/Column.d.ts +3 -3
- package/dist/table/Column.js +86 -41
- package/dist/table/ColumnGroup.d.ts +3 -3
- package/dist/table/ColumnGroup.js +84 -41
- package/dist/table/InternalTable.js +107 -53
- package/dist/table/Table.d.ts +3 -3
- package/dist/table/Table.js +104 -51
- package/dist/table/hooks/useFilter/FilterDropdown.js +39 -19
- package/dist/table/hooks/useFilter/FilterWrapper.js +4 -2
- package/dist/tabs/TabPane.d.ts +3 -3
- package/dist/tabs/index.d.ts +3 -3
- package/dist/tabs/index.js +62 -31
- package/dist/tag/CheckableTag.d.ts +3 -3
- package/dist/tag/CheckableTag.js +10 -5
- package/dist/tag/CheckableTagGroup.d.ts +3 -3
- package/dist/tag/CheckableTagGroup.js +28 -12
- package/dist/tag/index.d.ts +3 -3
- package/dist/tag/index.js +30 -14
- package/dist/theme/index.d.ts +4 -4
- package/dist/theme/util/genStyleUtils.js +8 -5
- package/dist/time-picker/index.d.ts +7 -7
- package/dist/time-picker/index.js +1106 -509
- package/dist/timeline/Timeline.d.ts +3 -3
- package/dist/timeline/Timeline.js +20 -10
- package/dist/timeline/TimelineItem.js +22 -10
- package/dist/timeline/TimelineItemList.js +24 -12
- package/dist/tooltip/PurePanel.d.ts +2 -2
- package/dist/tooltip/PurePanel.js +61 -29
- package/dist/tooltip/UniqueProvider/index.d.ts +2 -2
- package/dist/tooltip/index.d.ts +3 -3
- package/dist/tooltip/index.js +62 -30
- package/dist/tooltip/style/index.js +10 -8
- package/dist/tooltip/util.js +5 -3
- package/dist/tour/index.d.ts +3 -3
- package/dist/tour/index.js +52 -25
- package/dist/tour/panelRender.js +18 -9
- package/dist/tour/style/index.js +5 -4
- package/dist/transfer/Actions.d.ts +2 -2
- package/dist/transfer/Actions.js +36 -18
- package/dist/transfer/ListBody.js +76 -38
- package/dist/transfer/ListItem.js +22 -11
- package/dist/transfer/Section.d.ts +2 -2
- package/dist/transfer/Section.js +76 -38
- package/dist/transfer/Transfer.d.ts +3 -3
- package/dist/transfer/Transfer.js +53 -27
- package/dist/transfer/search.js +8 -4
- package/dist/tree/DirectoryTree.d.ts +3 -3
- package/dist/tree/DirectoryTree.js +90 -45
- package/dist/tree/Tree.d.ts +3 -3
- package/dist/tree/Tree.js +90 -45
- package/dist/tree/utils/iconUtil.js +10 -5
- package/dist/tree-select/index.d.ts +4 -4
- package/dist/tree-select/index.js +195 -95
- package/dist/typography/Base/CopyBtn.js +24 -12
- package/dist/typography/Base/Ellipsis.js +16 -8
- package/dist/typography/Base/EllipsisTooltip.js +6 -3
- package/dist/typography/Base/index.js +42 -20
- package/dist/typography/Editable.js +28 -13
- package/dist/typography/Link.d.ts +3 -3
- package/dist/typography/Link.js +48 -23
- package/dist/typography/Paragraph.d.ts +3 -3
- package/dist/typography/Paragraph.js +42 -20
- package/dist/typography/Text.js +42 -20
- package/dist/typography/Title.d.ts +3 -3
- package/dist/typography/Title.js +42 -20
- package/dist/typography/Typography.d.ts +3 -3
- package/dist/typography/Typography.js +16 -7
- package/dist/typography/index.d.ts +9 -9
- package/dist/upload/Dragger.d.ts +6 -3
- package/dist/upload/Dragger.js +76 -38
- package/dist/upload/Upload.d.ts +3 -3
- package/dist/upload/Upload.js +74 -37
- package/dist/upload/UploadList/ListItem.js +44 -22
- package/dist/upload/UploadList/index.js +50 -24
- package/dist/upload/index.d.ts +6 -3
- package/dist/watermark/index.d.ts +2 -2
- package/dist/watermark/index.js +22 -11
- package/global.d.ts +2 -0
- package/package.json +22 -4
- package/web-tags.json +4524 -0
- package/web-types.json +12779 -0
|
@@ -1,64 +1,67 @@
|
|
|
1
|
+
import { genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
2
|
+
|
|
1
3
|
//#region src/steps/style/status.ts
|
|
2
4
|
const STATUS_WAIT = "wait";
|
|
3
5
|
const STATUS_PROCESS = "process";
|
|
4
6
|
const STATUS_FINISH = "finish";
|
|
5
7
|
const STATUS_ERROR = "error";
|
|
6
8
|
const genStatusStyle = (token) => {
|
|
7
|
-
const { componentCls, colorTextDisabled, colorTextLightSolid, colorPrimary, colorTextLabel, colorError, colorText, colorTextDescription, colorBgContainer, colorPrimaryHover } = token;
|
|
9
|
+
const { componentCls, colorTextDisabled, colorTextLightSolid, colorPrimary, colorTextLabel, colorError, colorErrorHover, colorErrorBgFilledHover, colorFillTertiary, colorErrorBg, colorPrimaryBgHover, colorPrimaryBg, colorText, colorTextDescription, colorBgContainer, colorPrimaryHover, lineType, antCls } = token;
|
|
8
10
|
const itemCls = `${componentCls}-item`;
|
|
11
|
+
const [varName, varRef] = genCssVar(antCls, "cmp-steps");
|
|
9
12
|
return { [componentCls]: [
|
|
10
13
|
{
|
|
11
14
|
[itemCls]: {
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
15
|
+
[varName("item-solid-line-color")]: "#000",
|
|
16
|
+
[varName("item-title-color")]: "#000",
|
|
17
|
+
[varName("item-content-color")]: "#000",
|
|
18
|
+
[varName("item-subtitle-color")]: varRef("item-content-color"),
|
|
19
|
+
[varName("item-icon-custom-color")]: "#000",
|
|
20
|
+
[varName("item-icon-bg-color")]: "#000",
|
|
21
|
+
[varName("item-icon-border-color")]: "#000",
|
|
22
|
+
[varName("item-icon-text-color")]: "#fff",
|
|
23
|
+
[varName("item-icon-dot-color")]: "#000",
|
|
24
|
+
[varName("item-icon-dot-bg-color")]: varRef("item-icon-dot-color"),
|
|
25
|
+
[varName("item-icon-dot-border-color")]: varRef("item-icon-dot-color"),
|
|
26
|
+
[varName("item-text-hover-color")]: "#000",
|
|
27
|
+
[varName("item-icon-bg-hover-color")]: varRef("item-icon-bg-color"),
|
|
28
|
+
[varName("item-icon-border-hover-color")]: varRef("item-icon-border-color"),
|
|
29
|
+
[varName("item-icon-text-hover-color")]: varRef("item-icon-text-color"),
|
|
30
|
+
[varName("item-content-active-color")]: varRef("item-content-color"),
|
|
31
|
+
[varName("item-icon-active-bg-color")]: varRef("item-icon-bg-color"),
|
|
32
|
+
[varName("item-icon-active-border-color")]: varRef("item-icon-border-color"),
|
|
33
|
+
[varName("item-icon-active-text-color")]: varRef("item-icon-text-color"),
|
|
34
|
+
[varName("item-process-rail-line-style")]: lineType
|
|
32
35
|
},
|
|
33
|
-
[`${itemCls}-rail`]: { borderColor:
|
|
34
|
-
[`${itemCls}-custom ${itemCls}-icon`]: { color:
|
|
35
|
-
[`${itemCls}-title`]: { color:
|
|
36
|
-
[`${itemCls}-subtitle`]: { color:
|
|
37
|
-
[`${itemCls}-content`]: { color:
|
|
36
|
+
[`${itemCls}-rail`]: { borderColor: varRef("item-solid-line-color") },
|
|
37
|
+
[`${itemCls}-custom ${itemCls}-icon`]: { color: varRef("item-icon-custom-color") },
|
|
38
|
+
[`${itemCls}-title`]: { color: varRef("item-title-color") },
|
|
39
|
+
[`${itemCls}-subtitle`]: { color: varRef("item-subtitle-color") },
|
|
40
|
+
[`${itemCls}-content`]: { color: varRef("item-content-color") },
|
|
38
41
|
[`${itemCls}-active ${itemCls}-icon`]: {},
|
|
39
|
-
[`${itemCls}-active ${itemCls}-content`]: { color:
|
|
40
|
-
[`${itemCls}[role='button']:not(${itemCls}-active):hover`]: { [`${itemCls}-title, ${itemCls}-content`]: { color:
|
|
42
|
+
[`${itemCls}-active ${itemCls}-content`]: { color: varRef("item-content-active-color") },
|
|
43
|
+
[`${itemCls}[role='button']:not(${itemCls}-active):hover`]: { [`${itemCls}-title, ${itemCls}-content`]: { color: varRef("item-text-hover-color") } },
|
|
41
44
|
[`&:not(${componentCls}-dot)`]: { [`${itemCls}:not(${itemCls}-custom)`]: {
|
|
42
45
|
[`${itemCls}-icon`]: {
|
|
43
|
-
background:
|
|
44
|
-
borderColor:
|
|
45
|
-
color:
|
|
46
|
+
background: varRef("item-icon-bg-color"),
|
|
47
|
+
borderColor: varRef("item-icon-border-color"),
|
|
48
|
+
color: varRef("item-icon-text-color")
|
|
46
49
|
},
|
|
47
50
|
[`&[role='button']:not(${itemCls}-active):hover`]: { [`${itemCls}-icon`]: {
|
|
48
|
-
background:
|
|
49
|
-
borderColor:
|
|
50
|
-
color:
|
|
51
|
+
background: varRef("item-icon-bg-hover-color"),
|
|
52
|
+
borderColor: varRef("item-icon-border-hover-color"),
|
|
53
|
+
color: varRef("item-icon-text-hover-color")
|
|
51
54
|
} },
|
|
52
55
|
[`&${itemCls}-active`]: { [`${itemCls}-icon`]: {
|
|
53
|
-
background:
|
|
54
|
-
borderColor:
|
|
55
|
-
color:
|
|
56
|
+
background: varRef("item-icon-active-bg-color"),
|
|
57
|
+
borderColor: varRef("item-icon-active-border-color"),
|
|
58
|
+
color: varRef("item-icon-active-text-color")
|
|
56
59
|
} }
|
|
57
60
|
} },
|
|
58
61
|
[`&${componentCls}-dot`]: { [`${itemCls}-icon`]: {
|
|
59
|
-
background:
|
|
60
|
-
borderColor:
|
|
61
|
-
color:
|
|
62
|
+
background: varRef("item-icon-dot-bg-color"),
|
|
63
|
+
borderColor: varRef("item-icon-dot-border-color"),
|
|
64
|
+
color: varRef("item-icon-dot-color"),
|
|
62
65
|
[`&${itemCls}-icon-dot-custom`]: {
|
|
63
66
|
background: "transparent",
|
|
64
67
|
border: "none"
|
|
@@ -67,111 +70,111 @@ const genStatusStyle = (token) => {
|
|
|
67
70
|
},
|
|
68
71
|
{
|
|
69
72
|
[`${itemCls}-${STATUS_WAIT}`]: {
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
73
|
+
[varName("item-icon-custom-color")]: colorTextDisabled,
|
|
74
|
+
[varName("item-title-color")]: colorTextDescription,
|
|
75
|
+
[varName("item-content-color")]: colorTextDescription,
|
|
76
|
+
[varName("item-content-active-color")]: colorText,
|
|
77
|
+
[varName("item-text-hover-color")]: colorPrimaryHover
|
|
75
78
|
},
|
|
76
|
-
[`${itemCls}-rail-${STATUS_WAIT}`]: { "
|
|
79
|
+
[`${itemCls}-rail-${STATUS_WAIT}`]: { [varName("item-solid-line-color")]: colorTextDisabled },
|
|
77
80
|
[`${itemCls}-${STATUS_PROCESS}`]: {
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
81
|
+
[varName("item-icon-custom-color")]: colorPrimary,
|
|
82
|
+
[varName("item-title-color")]: colorText,
|
|
83
|
+
[varName("item-content-color")]: colorTextDescription,
|
|
84
|
+
[varName("item-content-active-color")]: colorText,
|
|
85
|
+
[varName("item-text-hover-color")]: colorPrimaryHover
|
|
83
86
|
},
|
|
84
87
|
[`${itemCls}-rail-${STATUS_PROCESS}`]: {
|
|
85
|
-
"
|
|
86
|
-
"
|
|
88
|
+
[varName("item-solid-line-color")]: colorPrimary,
|
|
89
|
+
[varName("rail-line-style")]: varRef("item-process-rail-line-style")
|
|
87
90
|
},
|
|
88
91
|
[`${itemCls}-${STATUS_FINISH}`]: {
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
92
|
+
[varName("item-icon-custom-color")]: colorPrimary,
|
|
93
|
+
[varName("item-title-color")]: colorText,
|
|
94
|
+
[varName("item-content-color")]: colorTextDescription,
|
|
95
|
+
[varName("item-content-active-color")]: colorText,
|
|
96
|
+
[varName("item-text-hover-color")]: colorPrimaryHover
|
|
94
97
|
},
|
|
95
|
-
[`${itemCls}-rail-${STATUS_FINISH}`]: { "
|
|
98
|
+
[`${itemCls}-rail-${STATUS_FINISH}`]: { [varName("item-solid-line-color")]: colorPrimary },
|
|
96
99
|
[`${itemCls}-${STATUS_ERROR}`]: {
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
100
|
+
[varName("item-icon-custom-color")]: colorError,
|
|
101
|
+
[varName("item-title-color")]: colorError,
|
|
102
|
+
[varName("item-content-color")]: colorError,
|
|
103
|
+
[varName("item-content-active-color")]: colorError,
|
|
104
|
+
[varName("item-text-hover-color")]: colorErrorHover
|
|
102
105
|
},
|
|
103
|
-
[`${itemCls}-rail-${STATUS_ERROR}`]: { "
|
|
106
|
+
[`${itemCls}-rail-${STATUS_ERROR}`]: { [varName("item-solid-line-color")]: colorError }
|
|
104
107
|
},
|
|
105
108
|
{ [`&${componentCls}-filled`]: {
|
|
106
|
-
[itemCls]: { "
|
|
109
|
+
[itemCls]: { [varName("item-icon-dot-border-color")]: "transparent" },
|
|
107
110
|
[`${itemCls}-${STATUS_WAIT}`]: {
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
111
|
+
[varName("item-icon-bg-color")]: colorFillTertiary,
|
|
112
|
+
[varName("item-icon-border-color")]: "transparent",
|
|
113
|
+
[varName("item-icon-text-color")]: colorTextLabel,
|
|
114
|
+
[varName("item-icon-dot-bg-color")]: colorTextDisabled,
|
|
115
|
+
[varName("item-icon-bg-hover-color")]: colorPrimaryBgHover,
|
|
116
|
+
[varName("item-icon-border-hover-color")]: "transparent",
|
|
117
|
+
[varName("item-icon-text-hover-color")]: colorPrimary,
|
|
118
|
+
[varName("item-icon-active-bg-color")]: colorPrimary,
|
|
119
|
+
[varName("item-icon-active-border-color")]: "transparent",
|
|
120
|
+
[varName("item-icon-active-text-color")]: colorTextLightSolid
|
|
118
121
|
},
|
|
119
122
|
[`${itemCls}-${STATUS_PROCESS}, ${itemCls}-${STATUS_FINISH}`]: {
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
123
|
+
[varName("item-icon-bg-color")]: colorPrimaryBg,
|
|
124
|
+
[varName("item-icon-border-color")]: "transparent",
|
|
125
|
+
[varName("item-icon-text-color")]: colorPrimary,
|
|
126
|
+
[varName("item-icon-dot-bg-color")]: colorPrimary,
|
|
127
|
+
[varName("item-icon-bg-hover-color")]: colorPrimaryBgHover,
|
|
128
|
+
[varName("item-icon-border-hover-color")]: "transparent",
|
|
129
|
+
[varName("item-icon-text-hover-color")]: colorPrimary,
|
|
130
|
+
[varName("item-icon-active-bg-color")]: colorPrimary,
|
|
131
|
+
[varName("item-icon-active-border-color")]: "transparent",
|
|
132
|
+
[varName("item-icon-active-text-color")]: colorTextLightSolid
|
|
130
133
|
},
|
|
131
134
|
[`${itemCls}-${STATUS_ERROR}`]: {
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
135
|
+
[varName("item-icon-bg-color")]: colorErrorBg,
|
|
136
|
+
[varName("item-icon-border-color")]: "transparent",
|
|
137
|
+
[varName("item-icon-text-color")]: colorError,
|
|
138
|
+
[varName("item-icon-dot-bg-color")]: colorError,
|
|
139
|
+
[varName("item-icon-bg-hover-color")]: colorErrorBgFilledHover,
|
|
140
|
+
[varName("item-icon-border-hover-color")]: "transparent",
|
|
141
|
+
[varName("item-icon-text-hover-color")]: colorError,
|
|
142
|
+
[varName("item-icon-active-bg-color")]: colorError,
|
|
143
|
+
[varName("item-icon-active-border-color")]: "transparent",
|
|
144
|
+
[varName("item-icon-active-text-color")]: colorTextLightSolid
|
|
142
145
|
}
|
|
143
146
|
} },
|
|
144
147
|
{ [`&${componentCls}-outlined`]: {
|
|
145
|
-
[itemCls]: { "
|
|
148
|
+
[itemCls]: { [varName("item-icon-dot-bg-color")]: "transparent" },
|
|
146
149
|
[`${itemCls}-${STATUS_WAIT}`]: {
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
"
|
|
150
|
+
[varName("item-icon-bg-color")]: colorBgContainer,
|
|
151
|
+
[varName("item-icon-border-color")]: colorTextDisabled,
|
|
152
|
+
[varName("item-icon-text-color")]: colorTextDisabled,
|
|
153
|
+
[varName("item-icon-dot-color")]: colorTextDisabled,
|
|
154
|
+
[varName("item-icon-bg-hover-color")]: "transparent",
|
|
155
|
+
[varName("item-icon-border-hover-color")]: colorPrimaryHover,
|
|
156
|
+
[varName("item-icon-text-hover-color")]: colorPrimaryHover,
|
|
157
|
+
[varName("item-icon-active-bg-color")]: colorFillTertiary
|
|
155
158
|
},
|
|
156
159
|
[`${itemCls}-${STATUS_PROCESS}, ${itemCls}-${STATUS_FINISH}`]: {
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
160
|
+
[varName("item-icon-bg-color")]: colorBgContainer,
|
|
161
|
+
[varName("item-icon-border-color")]: colorPrimary,
|
|
162
|
+
[varName("item-icon-text-color")]: colorPrimary,
|
|
163
|
+
[varName("item-icon-dot-color")]: colorPrimary,
|
|
164
|
+
[varName("item-icon-bg-hover-color")]: "transparent",
|
|
165
|
+
[varName("item-icon-border-hover-color")]: colorPrimaryHover,
|
|
166
|
+
[varName("item-icon-text-hover-color")]: colorPrimaryHover,
|
|
167
|
+
[varName("item-icon-active-bg-color")]: colorPrimaryBg
|
|
165
168
|
},
|
|
166
169
|
[`${itemCls}-${STATUS_ERROR}`]: {
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
"
|
|
173
|
-
"
|
|
174
|
-
"
|
|
170
|
+
[varName("item-icon-bg-color")]: colorBgContainer,
|
|
171
|
+
[varName("item-icon-border-color")]: colorError,
|
|
172
|
+
[varName("item-icon-text-color")]: colorError,
|
|
173
|
+
[varName("item-icon-dot-color")]: colorError,
|
|
174
|
+
[varName("item-icon-bg-hover-color")]: "transparent",
|
|
175
|
+
[varName("item-icon-border-hover-color")]: colorErrorHover,
|
|
176
|
+
[varName("item-icon-text-hover-color")]: colorErrorHover,
|
|
177
|
+
[varName("item-icon-active-bg-color")]: colorErrorBg
|
|
175
178
|
}
|
|
176
179
|
} }
|
|
177
180
|
] };
|
package/dist/steps/style/util.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
2
|
+
|
|
1
3
|
//#region src/steps/style/util.ts
|
|
2
4
|
function withoutVar(cssVar) {
|
|
3
5
|
return (cssVar || "--ant-not-exist").replace(/var\((.*)\)/, "$1");
|
|
@@ -7,14 +9,15 @@ function withoutVar(cssVar) {
|
|
|
7
9
|
* This should be multiple since will conflict with other `rail` styles.
|
|
8
10
|
*/
|
|
9
11
|
function getItemWithWidthStyle(token, marginSize, optionalStyle) {
|
|
10
|
-
const { calc, componentCls, descriptionMaxWidth } = token;
|
|
12
|
+
const { calc, componentCls, descriptionMaxWidth, antCls } = token;
|
|
11
13
|
const itemCls = `${componentCls}-item`;
|
|
14
|
+
const [, varRef] = genCssVar(antCls, "cmp-steps");
|
|
12
15
|
return { [`@container style(${withoutVar(descriptionMaxWidth)})`]: [{
|
|
13
|
-
[`${itemCls}-icon`]: { marginInlineStart: calc(descriptionMaxWidth).sub(
|
|
16
|
+
[`${itemCls}-icon`]: { marginInlineStart: calc(descriptionMaxWidth).sub(varRef("icon-size")).div(2).equal() },
|
|
14
17
|
[`${itemCls}-rail`]: {
|
|
15
18
|
width: "auto",
|
|
16
|
-
insetInlineStart: calc(descriptionMaxWidth).add(
|
|
17
|
-
insetInlineEnd: calc(descriptionMaxWidth).sub(
|
|
19
|
+
insetInlineStart: calc(descriptionMaxWidth).add(varRef("icon-size")).div(2).add(marginSize).equal(),
|
|
20
|
+
insetInlineEnd: calc(descriptionMaxWidth).sub(varRef("icon-size")).div(2).sub(marginSize).mul(-1).equal()
|
|
18
21
|
}
|
|
19
22
|
}, optionalStyle] };
|
|
20
23
|
}
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
+
import { genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
2
|
+
|
|
1
3
|
//#region src/steps/style/vertical.ts
|
|
2
4
|
const genVerticalStyle = (token) => {
|
|
3
|
-
const { componentCls, calc } = token;
|
|
5
|
+
const { componentCls, marginXXS, paddingSM, controlHeight, antCls, calc } = token;
|
|
4
6
|
const itemCls = `${componentCls}-item`;
|
|
7
|
+
const [varName, varRef] = genCssVar(antCls, "cmp-steps");
|
|
5
8
|
return { [`${componentCls}-vertical`]: {
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
[varName("vertical-rail-margin")]: calc(marginXXS).mul(1.5).equal(),
|
|
10
|
+
flexDirection: "column",
|
|
11
|
+
alignItems: "stretch",
|
|
9
12
|
[`> ${itemCls}`]: {
|
|
10
|
-
"minHeight": calc(
|
|
11
|
-
"paddingBottom":
|
|
13
|
+
"minHeight": calc(controlHeight).mul(1.5).equal(),
|
|
14
|
+
"paddingBottom": paddingSM,
|
|
12
15
|
"&:last-child": { paddingBottom: 0 },
|
|
13
|
-
[`${itemCls}-icon`]: { marginInlineStart:
|
|
16
|
+
[`${itemCls}-icon`]: { marginInlineStart: `calc((${varRef("icon-size-max")} - ${varRef("icon-size")}) / 2)` },
|
|
14
17
|
[`${itemCls}-rail`]: {
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
[varName("rail-offset")]: calc(varRef("heading-height")).sub(varRef("icon-size")).div(2).equal(),
|
|
19
|
+
borderInlineStartWidth: varRef("rail-size"),
|
|
20
|
+
position: "absolute",
|
|
21
|
+
top: calc(varRef("icon-size")).add(varRef("item-wrapper-padding-top")).add(varRef("rail-offset")).add(varRef("vertical-rail-margin")).equal(),
|
|
22
|
+
insetInlineStart: calc(varRef("icon-size-max")).div(2).equal(),
|
|
23
|
+
bottom: calc(varRef("vertical-rail-margin")).sub(varRef("rail-offset")).equal(),
|
|
24
|
+
marginInlineStart: `calc(${varRef("rail-size")} / -2)`
|
|
22
25
|
}
|
|
23
26
|
}
|
|
24
27
|
} };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { genCssVar } from "../theme/util/genStyleUtils.js";
|
|
1
2
|
import { genRoundedArrow } from "./roundedArrow.js";
|
|
2
3
|
import { unit } from "@antdv-next/cssinjs";
|
|
3
4
|
|
|
@@ -16,7 +17,8 @@ function isInject(valid, code) {
|
|
|
16
17
|
return code;
|
|
17
18
|
}
|
|
18
19
|
function getArrowStyle(token, colorBg, options) {
|
|
19
|
-
const { componentCls, boxShadowPopoverArrow, arrowOffsetVertical, arrowOffsetHorizontal } = token;
|
|
20
|
+
const { componentCls, boxShadowPopoverArrow, arrowOffsetVertical, arrowOffsetHorizontal, antCls } = token;
|
|
21
|
+
const [varName] = genCssVar(antCls, "tooltip");
|
|
20
22
|
const { arrowDistance = 0, arrowPlacement = {
|
|
21
23
|
left: true,
|
|
22
24
|
right: true,
|
|
@@ -48,14 +50,14 @@ function getArrowStyle(token, colorBg, options) {
|
|
|
48
50
|
transform: "translateX(-50%) translateY(100%) rotate(180deg)"
|
|
49
51
|
},
|
|
50
52
|
"&-placement-topLeft": {
|
|
51
|
-
"
|
|
53
|
+
[varName("arrow-offset-horizontal")]: arrowOffsetHorizontal,
|
|
52
54
|
[`> ${componentCls}-arrow`]: { left: {
|
|
53
55
|
_skip_check_: true,
|
|
54
56
|
value: arrowOffsetHorizontal
|
|
55
57
|
} }
|
|
56
58
|
},
|
|
57
59
|
"&-placement-topRight": {
|
|
58
|
-
"
|
|
60
|
+
[varName("arrow-offset-horizontal")]: `calc(100% - ${unit(arrowOffsetHorizontal)})`,
|
|
59
61
|
[`> ${componentCls}-arrow`]: { right: {
|
|
60
62
|
_skip_check_: true,
|
|
61
63
|
value: arrowOffsetHorizontal
|
|
@@ -79,14 +81,14 @@ function getArrowStyle(token, colorBg, options) {
|
|
|
79
81
|
transform: `translateX(-50%) translateY(-100%)`
|
|
80
82
|
},
|
|
81
83
|
"&-placement-bottomLeft": {
|
|
82
|
-
"
|
|
84
|
+
[varName("arrow-offset-horizontal")]: arrowOffsetHorizontal,
|
|
83
85
|
[`> ${componentCls}-arrow`]: { left: {
|
|
84
86
|
_skip_check_: true,
|
|
85
87
|
value: arrowOffsetHorizontal
|
|
86
88
|
} }
|
|
87
89
|
},
|
|
88
90
|
"&-placement-bottomRight": {
|
|
89
|
-
"
|
|
91
|
+
[varName("arrow-offset-horizontal")]: `calc(100% - ${unit(arrowOffsetHorizontal)})`,
|
|
90
92
|
[`> ${componentCls}-arrow`]: { right: {
|
|
91
93
|
_skip_check_: true,
|
|
92
94
|
value: arrowOffsetHorizontal
|
package/dist/switch/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { VueNode } from "../_util/type.js";
|
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
4
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue140 from "vue";
|
|
6
6
|
import { SlotsType } from "vue";
|
|
7
7
|
import { SwitchChangeEventHandler, SwitchClickEventHandler } from "@v-c/switch";
|
|
8
8
|
|
|
@@ -47,8 +47,8 @@ interface SwitchSlots {
|
|
|
47
47
|
checkedChildren: () => any;
|
|
48
48
|
unCheckedChildren: () => any;
|
|
49
49
|
}
|
|
50
|
-
declare const Switch:
|
|
50
|
+
declare const Switch: vue140.DefineSetupFnComponent<SwitchProps, SwitchEmits, SlotsType<SwitchSlots>, SwitchProps & {
|
|
51
51
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
52
|
-
},
|
|
52
|
+
}, vue140.PublicProps>;
|
|
53
53
|
//#endregion
|
|
54
54
|
export { Switch, SwitchEmits, SwitchProps, SwitchSize, SwitchSlots };
|
package/dist/switch/index.js
CHANGED
|
@@ -99,23 +99,28 @@ const Switch = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs }) =
|
|
|
99
99
|
props: {
|
|
100
100
|
size: {
|
|
101
101
|
type: String,
|
|
102
|
-
required: false
|
|
102
|
+
required: false,
|
|
103
|
+
default: void 0
|
|
103
104
|
},
|
|
104
105
|
checked: {
|
|
105
106
|
type: Boolean,
|
|
106
|
-
required: false
|
|
107
|
+
required: false,
|
|
108
|
+
default: void 0
|
|
107
109
|
},
|
|
108
110
|
defaultChecked: {
|
|
109
111
|
type: Boolean,
|
|
110
|
-
required: false
|
|
112
|
+
required: false,
|
|
113
|
+
default: void 0
|
|
111
114
|
},
|
|
112
115
|
value: {
|
|
113
116
|
type: Boolean,
|
|
114
|
-
required: false
|
|
117
|
+
required: false,
|
|
118
|
+
default: void 0
|
|
115
119
|
},
|
|
116
120
|
defaultValue: {
|
|
117
121
|
type: Boolean,
|
|
118
|
-
required: false
|
|
122
|
+
required: false,
|
|
123
|
+
default: void 0
|
|
119
124
|
},
|
|
120
125
|
checkedChildren: {
|
|
121
126
|
type: [
|
|
@@ -126,7 +131,8 @@ const Switch = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs }) =
|
|
|
126
131
|
null,
|
|
127
132
|
Object
|
|
128
133
|
],
|
|
129
|
-
required: false
|
|
134
|
+
required: false,
|
|
135
|
+
default: void 0
|
|
130
136
|
},
|
|
131
137
|
unCheckedChildren: {
|
|
132
138
|
type: [
|
|
@@ -137,47 +143,58 @@ const Switch = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs }) =
|
|
|
137
143
|
null,
|
|
138
144
|
Object
|
|
139
145
|
],
|
|
140
|
-
required: false
|
|
146
|
+
required: false,
|
|
147
|
+
default: void 0
|
|
141
148
|
},
|
|
142
149
|
disabled: {
|
|
143
150
|
type: Boolean,
|
|
144
|
-
required: false
|
|
151
|
+
required: false,
|
|
152
|
+
default: void 0
|
|
145
153
|
},
|
|
146
154
|
loading: {
|
|
147
155
|
type: Boolean,
|
|
148
|
-
required: false
|
|
156
|
+
required: false,
|
|
157
|
+
default: void 0
|
|
149
158
|
},
|
|
150
159
|
autoFocus: {
|
|
151
160
|
type: Boolean,
|
|
152
|
-
required: false
|
|
161
|
+
required: false,
|
|
162
|
+
default: void 0
|
|
153
163
|
},
|
|
154
164
|
title: {
|
|
155
165
|
type: String,
|
|
156
|
-
required: false
|
|
166
|
+
required: false,
|
|
167
|
+
default: void 0
|
|
157
168
|
},
|
|
158
169
|
tabIndex: {
|
|
159
170
|
type: Number,
|
|
160
|
-
required: false
|
|
171
|
+
required: false,
|
|
172
|
+
default: void 0
|
|
161
173
|
},
|
|
162
174
|
id: {
|
|
163
175
|
type: String,
|
|
164
|
-
required: false
|
|
176
|
+
required: false,
|
|
177
|
+
default: void 0
|
|
165
178
|
},
|
|
166
179
|
classes: {
|
|
167
180
|
type: [Object, Function],
|
|
168
|
-
required: false
|
|
181
|
+
required: false,
|
|
182
|
+
default: void 0
|
|
169
183
|
},
|
|
170
184
|
styles: {
|
|
171
185
|
type: [Object, Function],
|
|
172
|
-
required: false
|
|
186
|
+
required: false,
|
|
187
|
+
default: void 0
|
|
173
188
|
},
|
|
174
189
|
rootClass: {
|
|
175
190
|
type: String,
|
|
176
|
-
required: false
|
|
191
|
+
required: false,
|
|
192
|
+
default: void 0
|
|
177
193
|
},
|
|
178
194
|
prefixCls: {
|
|
179
195
|
type: String,
|
|
180
|
-
required: false
|
|
196
|
+
required: false,
|
|
197
|
+
default: void 0
|
|
181
198
|
}
|
|
182
199
|
},
|
|
183
200
|
name: "ASwitch",
|
package/dist/table/Column.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnyObject, EmptyEmit } from "../_util/type.js";
|
|
2
2
|
import { ColumnType } from "./interface.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue365 from "vue";
|
|
4
4
|
import { SlotsType } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/table/Column.d.ts
|
|
@@ -13,8 +13,8 @@ interface ColumnSlots {
|
|
|
13
13
|
/**
|
|
14
14
|
* Syntactic sugar for `columns` prop. HOC will not work on this.
|
|
15
15
|
*/
|
|
16
|
-
declare const Column:
|
|
16
|
+
declare const Column: vue365.DefineSetupFnComponent<ColumnProps<AnyObject>, EmptyEmit, SlotsType<ColumnSlots>, ColumnProps<AnyObject> & {
|
|
17
17
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
18
|
-
},
|
|
18
|
+
}, vue365.PublicProps>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { Column, ColumnProps };
|