@jlgj/antd-jl 0.5.0 → 0.5.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/README.md +4 -100
- package/es/_util/ActionButton.d.ts +28 -0
- package/es/_util/colors.d.ts +1 -1
- package/es/_util/colors.js +1 -1
- package/es/_util/statusUtils.d.ts +1 -1
- package/es/_util/statusUtils.js +1 -1
- package/es/_util/util.d.ts +9 -0
- package/es/_util/util.js +15 -0
- package/es/alert/style/index.js +11 -11
- package/es/app/style/index.js +2 -2
- package/es/auto-complete/index.d.ts +4 -4
- package/es/badge/Badge.d.ts +6 -6
- package/es/badge/index.d.ts +6 -6
- package/es/badge/style/index.js +7 -4
- package/es/breadcrumb/BreadcrumbItem.d.ts +13 -0
- package/es/breadcrumb/BreadcrumbItem.js +15 -3
- package/es/breadcrumb/style/index.js +17 -4
- package/es/button/button.d.ts +9 -0
- package/es/button/button.js +12 -6
- package/es/button/buttonTypes.d.ts +6 -2
- package/es/button/buttonTypes.js +9 -0
- package/es/button/index.d.ts +15 -0
- package/es/button/style/index.js +133 -118
- package/es/calendar/style/index.js +4 -2
- package/es/card/style/index.js +9 -5
- package/es/cascader/index.d.ts +4 -4
- package/es/cascader/index.js +3 -1
- package/es/cascader/style/index.js +38 -7
- package/es/checkbox/style/index.d.ts +1 -0
- package/es/checkbox/style/index.js +17 -9
- package/es/collapse/style/index.d.ts +1 -0
- package/es/collapse/style/index.js +15 -10
- package/es/components.d.ts +2 -1
- package/es/components.js +1 -1
- package/es/config-provider/context.d.ts +1 -0
- package/es/config-provider/cssVariables.js +4 -0
- package/es/custom-picker/PickerButton.d.ts +4 -0
- package/es/custom-picker/PickerButton.js +13 -0
- package/es/custom-picker/PickerTag.d.ts +5 -0
- package/es/custom-picker/PickerTag.js +11 -0
- package/es/custom-picker/custom.d.ts +935 -0
- package/es/custom-picker/custom.js +13 -0
- package/es/custom-picker/generatePicker/generateSinglePicker.d.ts +769 -0
- package/es/custom-picker/generatePicker/generateSinglePicker.js +188 -0
- package/es/custom-picker/generatePicker/index.d.ts +404 -0
- package/es/custom-picker/generatePicker/index.js +18 -0
- package/es/custom-picker/generatePicker/interface.d.ts +20 -0
- package/es/custom-picker/generatePicker/interface.js +1 -0
- package/es/custom-picker/generatePicker/props.d.ts +229 -0
- package/es/custom-picker/generatePicker/props.js +63 -0
- package/es/custom-picker/index.d.ts +9 -0
- package/es/custom-picker/index.js +3 -0
- package/es/custom-picker/locale/en_US.d.ts +3 -0
- package/es/custom-picker/locale/en_US.js +11 -0
- package/es/custom-picker/locale/zh_CN.d.ts +3 -0
- package/es/custom-picker/locale/zh_CN.js +9 -0
- package/es/custom-picker/locale/zh_TW.d.ts +3 -0
- package/es/custom-picker/locale/zh_TW.js +9 -0
- package/es/custom-picker/style/index.d.ts +35 -0
- package/es/custom-picker/style/index.js +1053 -0
- package/es/custom-picker/util.d.ts +10 -0
- package/es/custom-picker/util.js +48 -0
- package/es/date-picker/date-fns.d.ts +59 -59
- package/es/date-picker/dayjs.d.ts +59 -59
- package/es/date-picker/generatePicker/generateRangePicker.d.ts +10 -10
- package/es/date-picker/generatePicker/generateRangePicker.js +6 -2
- package/es/date-picker/generatePicker/generateSinglePicker.d.ts +60 -60
- package/es/date-picker/generatePicker/generateSinglePicker.js +13 -1
- package/es/date-picker/generatePicker/index.d.ts +74 -70
- package/es/date-picker/generatePicker/interface.d.ts +1 -1
- package/es/date-picker/generatePicker/props.d.ts +2 -2
- package/es/date-picker/moment.d.ts +59 -59
- package/es/date-picker/style/index.d.ts +1 -0
- package/es/date-picker/style/index.js +107 -62
- package/es/descriptions/style/index.js +6 -4
- package/es/drawer/index.js +4 -4
- package/es/drawer/style/index.js +9 -5
- package/es/dropdown/style/index.js +4 -2
- package/es/empty/index.d.ts +44 -12
- package/es/empty/index.js +37 -10
- package/es/empty/net-error.d.ts +2 -0
- package/es/empty/net-error.js +132 -0
- package/es/empty/{simple.d.ts → no-data.d.ts} +2 -2
- package/es/empty/no-data.js +101 -0
- package/{lib/empty/simple.d.ts → es/empty/no-page.d.ts} +2 -2
- package/es/empty/no-page.js +114 -0
- package/es/empty/style/index.js +2 -2
- package/es/float-button/BackTop.d.ts +9 -0
- package/es/float-button/BackTop.js +4 -1
- package/es/float-button/FloatButton.d.ts +9 -0
- package/es/float-button/FloatButton.js +11 -5
- package/es/float-button/FloatButtonGroup.d.ts +9 -0
- package/es/float-button/FloatButtonGroup.js +7 -3
- package/es/float-button/context.d.ts +2 -1
- package/es/float-button/context.js +2 -1
- package/es/float-button/index.d.ts +15 -0
- package/es/float-button/interface.d.ts +14 -1
- package/es/float-button/interface.js +2 -1
- package/es/float-button/style/index.js +158 -40
- package/es/form/style/index.js +7 -7
- package/es/input/ClearableLabeledInput.d.ts +2 -2
- package/es/input/Input.d.ts +6 -2
- package/es/input/Input.js +8 -5
- package/es/input/Password.d.ts +6 -2
- package/es/input/ResizableTextArea.d.ts +6 -2
- package/es/input/Search.d.ts +6 -2
- package/es/input/TextArea.d.ts +6 -2
- package/es/input/index.d.ts +9 -3
- package/es/input/inputProps.d.ts +6 -2
- package/es/input/style/index.js +53 -16
- package/es/input-number/index.d.ts +30 -11
- package/es/input-number/index.js +8 -2
- package/es/input-number/src/InputNumber.d.ts +16 -0
- package/es/input-number/src/InputNumber.js +37 -7
- package/es/input-number/src/StepHandlerOutSide.d.ts +31 -0
- package/es/input-number/src/StepHandlerOutSide.js +89 -0
- package/es/input-number/style/index.js +76 -13
- package/es/list/style/index.js +7 -5
- package/es/locale/en_US.js +1 -0
- package/es/locale/index.d.ts +2 -0
- package/es/locale/index.js +1 -0
- package/es/locale/zh_CN.js +3 -0
- package/es/locale/zh_HK.js +1 -0
- package/es/locale/zh_TW.js +1 -0
- package/es/mentions/index.d.ts +4 -4
- package/es/mentions/style/index.js +7 -4
- package/es/menu/style/index.js +2 -2
- package/es/message/style/index.js +3 -1
- package/es/modal/Modal.d.ts +73 -1
- package/es/modal/Modal.js +18 -2
- package/es/modal/index.d.ts +87 -0
- package/es/modal/style/index.js +5 -3
- package/es/notification/style/index.js +6 -4
- package/es/page-header/style/index.js +1 -1
- package/es/pagination/Select.d.ts +10 -10
- package/es/pagination/style/index.js +36 -11
- package/es/popconfirm/index.d.ts +64 -0
- package/es/popconfirm/index.js +1 -1
- package/es/popconfirm/style/index.js +6 -1
- package/es/popover/style/index.js +3 -1
- package/es/progress/Circle.d.ts +27 -14
- package/es/progress/Circle.js +1 -1
- package/es/progress/Line.d.ts +27 -14
- package/es/progress/Line.js +5 -5
- package/es/progress/Steps.d.ts +27 -14
- package/es/progress/index.d.ts +33 -18
- package/es/progress/progress.d.ts +19 -10
- package/es/progress/progress.js +8 -3
- package/es/progress/props.d.ts +9 -5
- package/es/progress/props.js +3 -2
- package/es/progress/style/index.js +39 -0
- package/es/progress/utils.js +7 -7
- package/es/qrcode/style/index.js +1 -1
- package/es/radio/style/index.js +62 -41
- package/es/rate/index.d.ts +23 -0
- package/es/rate/index.js +19 -3
- package/es/rate/style/index.js +14 -4
- package/es/result/style/index.js +7 -6
- package/es/select/index.d.ts +11 -11
- package/es/select/index.js +3 -1
- package/es/select/style/dropdown.js +33 -7
- package/es/select/style/index.js +21 -1
- package/es/select/style/multiple.js +3 -7
- package/es/select/style/single.js +7 -6
- package/es/steps/style/index.js +6 -7
- package/es/steps/style/inline.js +1 -1
- package/es/steps/style/label-placement.js +2 -2
- package/es/steps/style/progress-dot.js +2 -2
- package/es/style/index.js +1 -1
- package/es/switch/index.d.ts +5 -5
- package/es/switch/index.js +2 -1
- package/es/switch/style/index.js +170 -36
- package/es/table/Table.d.ts +13 -0
- package/es/table/Table.js +33 -3
- package/es/table/hooks/useFilter/FilterDropdown.js +11 -7
- package/es/table/hooks/useFilter/index.d.ts +4 -1
- package/es/table/hooks/useFilter/index.js +18 -1
- package/es/table/index.d.ts +15 -0
- package/es/table/style/expand.js +3 -1
- package/es/table/style/filter.js +1 -1
- package/es/table/style/fixed.js +4 -0
- package/es/table/style/index.d.ts +2 -0
- package/es/table/style/index.js +26 -20
- package/es/table/style/size.js +3 -2
- package/es/tabs/style/index.js +4 -2
- package/es/tag/index.d.ts +81 -4
- package/es/tag/index.js +30 -1
- package/es/tag/style/index.d.ts +2 -0
- package/es/tag/style/index.js +179 -13
- package/es/theme/interface/alias.d.ts +5 -0
- package/es/theme/interface/components.d.ts +2 -0
- package/es/theme/interface/maps/colors.d.ts +120 -54
- package/es/theme/interface/maps/font.d.ts +8 -0
- package/es/theme/interface/presetColors.d.ts +1 -1
- package/es/theme/interface/presetColors.js +1 -1
- package/es/theme/interface/seeds.d.ts +45 -8
- package/es/theme/themes/dark/colors.js +25 -24
- package/es/theme/themes/default/colors.js +8 -5
- package/es/theme/themes/default/index.js +46 -2
- package/es/theme/themes/seed.js +29 -19
- package/es/theme/themes/shared/genColorMapToken.js +25 -12
- package/es/theme/themes/shared/genFontMapToken.js +10 -1
- package/es/theme/themes/shared/genFontSizes.d.ts +1 -0
- package/es/theme/themes/shared/genFontSizes.js +3 -1
- package/es/theme/themes/shared/genRadius.js +2 -2
- package/es/theme/util/alias.js +9 -4
- package/es/time-picker/time-picker.d.ts +2 -2
- package/es/timeline/Timeline.d.ts +29 -0
- package/es/timeline/Timeline.js +43 -15
- package/es/timeline/TimelineItem.d.ts +16 -0
- package/es/timeline/TimelineItem.js +19 -9
- package/es/timeline/index.d.ts +27 -0
- package/es/timeline/style/index.js +217 -70
- package/es/tooltip/style/index.js +3 -3
- package/es/tour/interface.d.ts +1 -0
- package/es/tour/panelRender.js +13 -13
- package/es/tour/style/index.js +37 -30
- package/es/transfer/index.d.ts +11 -11
- package/es/transfer/style/index.js +5 -2
- package/es/tree/style/index.js +19 -8
- package/es/tree-select/index.d.ts +11 -11
- package/es/typography/style/index.js +1 -1
- package/es/upload/style/index.js +3 -1
- package/es/upload/style/list.js +9 -5
- package/es/vc-input/BaseInput.d.ts +4 -0
- package/es/vc-input/BaseInput.js +20 -3
- package/es/vc-input/Input.d.ts +6 -2
- package/es/vc-input/inputProps.d.ts +7 -1
- package/es/vc-input/inputProps.js +2 -0
- package/es/vc-input/utils/commonUtils.d.ts +1 -0
- package/es/vc-input/utils/commonUtils.js +3 -0
- package/es/vc-picker/Picker.d.ts +7 -3
- package/es/vc-picker/Picker.js +39 -6
- package/es/vc-picker/PickerPanel.d.ts +12 -4
- package/es/vc-picker/PickerPanel.js +29 -6
- package/es/vc-picker/RangePicker.d.ts +2 -0
- package/es/vc-picker/RangePicker.js +6 -3
- package/es/vc-picker/hooks/useValueTexts.d.ts +4 -1
- package/es/vc-picker/hooks/useValueTexts.js +7 -0
- package/es/vc-picker/interface.d.ts +2 -2
- package/es/vc-picker/panels/CustomPanel/BasePanelBody.d.ts +84 -0
- package/es/vc-picker/panels/CustomPanel/BasePanelBody.js +179 -0
- package/es/vc-picker/panels/CustomPanel/CustomPanelBody.d.ts +19 -0
- package/es/vc-picker/panels/CustomPanel/CustomPanelBody.js +21 -0
- package/es/vc-picker/panels/CustomPanel/CustomPanelHeader.d.ts +11 -0
- package/es/vc-picker/panels/CustomPanel/CustomPanelHeader.js +18 -0
- package/es/vc-picker/panels/CustomPanel/index.d.ts +20 -0
- package/es/vc-picker/panels/CustomPanel/index.js +41 -0
- package/es/vc-picker/utils/getRanges.js +1 -1
- package/es/vc-picker/utils/uiUtil.js +2 -1
- package/es/vc-select/OptionList.js +8 -1
- package/es/vc-select/SelectTrigger.js +4 -4
- package/es/vc-table/Body/index.js +20 -1
- package/es/vc-table/Table.js +2 -1
- package/es/vc-tour/Mask.js +76 -60
- package/es/vc-tour/Tour.js +4 -2
- package/es/vc-tour/hooks/useTarget.js +2 -2
- package/es/vc-tree/TreeNode.js +7 -3
- package/es/version/token-meta.json +1 -1
- package/es/version/token.json +1 -1
- package/es/version/version.d.ts +1 -1
- package/es/version/version.js +1 -1
- package/lib/_util/ActionButton.d.ts +28 -0
- package/lib/_util/colors.d.ts +1 -1
- package/lib/_util/colors.js +1 -1
- package/lib/_util/statusUtils.d.ts +1 -1
- package/lib/_util/statusUtils.js +1 -1
- package/lib/_util/util.d.ts +9 -0
- package/lib/_util/util.js +16 -0
- package/lib/alert/style/index.js +11 -11
- package/lib/app/style/index.js +2 -2
- package/lib/auto-complete/index.d.ts +4 -4
- package/lib/badge/Badge.d.ts +6 -6
- package/lib/badge/index.d.ts +6 -6
- package/lib/badge/style/index.js +7 -4
- package/lib/breadcrumb/BreadcrumbItem.d.ts +13 -0
- package/lib/breadcrumb/BreadcrumbItem.js +15 -3
- package/lib/breadcrumb/style/index.js +17 -4
- package/lib/button/button.d.ts +9 -0
- package/lib/button/button.js +12 -6
- package/lib/button/buttonTypes.d.ts +6 -2
- package/lib/button/buttonTypes.js +9 -0
- package/lib/button/index.d.ts +15 -0
- package/lib/button/style/index.js +133 -118
- package/lib/calendar/style/index.js +4 -2
- package/lib/card/style/index.js +9 -5
- package/lib/cascader/index.d.ts +4 -4
- package/lib/cascader/index.js +3 -1
- package/lib/cascader/style/index.js +38 -7
- package/lib/checkbox/style/index.d.ts +1 -0
- package/lib/checkbox/style/index.js +17 -9
- package/lib/collapse/style/index.d.ts +1 -0
- package/lib/collapse/style/index.js +15 -10
- package/lib/components.d.ts +2 -1
- package/lib/components.js +7 -7
- package/lib/config-provider/context.d.ts +1 -0
- package/lib/config-provider/cssVariables.js +4 -0
- package/lib/custom-picker/PickerButton.d.ts +4 -0
- package/lib/custom-picker/PickerButton.js +20 -0
- package/lib/custom-picker/PickerTag.d.ts +5 -0
- package/lib/custom-picker/PickerTag.js +18 -0
- package/lib/custom-picker/custom.d.ts +935 -0
- package/lib/custom-picker/custom.js +20 -0
- package/lib/custom-picker/generatePicker/generateSinglePicker.d.ts +769 -0
- package/lib/custom-picker/generatePicker/generateSinglePicker.js +196 -0
- package/lib/custom-picker/generatePicker/index.d.ts +404 -0
- package/lib/custom-picker/generatePicker/index.js +39 -0
- package/lib/custom-picker/generatePicker/interface.d.ts +20 -0
- package/lib/custom-picker/generatePicker/interface.js +5 -0
- package/lib/custom-picker/generatePicker/props.d.ts +229 -0
- package/lib/custom-picker/generatePicker/props.js +69 -0
- package/lib/custom-picker/index.d.ts +9 -0
- package/lib/custom-picker/index.js +21 -0
- package/lib/custom-picker/locale/en_US.d.ts +3 -0
- package/lib/custom-picker/locale/en_US.js +17 -0
- package/lib/custom-picker/locale/zh_CN.d.ts +3 -0
- package/lib/custom-picker/locale/zh_CN.js +15 -0
- package/lib/custom-picker/locale/zh_TW.d.ts +3 -0
- package/lib/custom-picker/locale/zh_TW.js +15 -0
- package/lib/custom-picker/style/index.d.ts +35 -0
- package/lib/custom-picker/style/index.js +1062 -0
- package/lib/custom-picker/util.d.ts +10 -0
- package/lib/custom-picker/util.js +54 -0
- package/lib/date-picker/date-fns.d.ts +59 -59
- package/lib/date-picker/dayjs.d.ts +59 -59
- package/lib/date-picker/generatePicker/generateRangePicker.d.ts +10 -10
- package/lib/date-picker/generatePicker/generateRangePicker.js +6 -2
- package/lib/date-picker/generatePicker/generateSinglePicker.d.ts +60 -60
- package/lib/date-picker/generatePicker/generateSinglePicker.js +13 -1
- package/lib/date-picker/generatePicker/index.d.ts +74 -70
- package/lib/date-picker/generatePicker/interface.d.ts +1 -1
- package/lib/date-picker/generatePicker/props.d.ts +2 -2
- package/lib/date-picker/moment.d.ts +59 -59
- package/lib/date-picker/style/index.d.ts +1 -0
- package/lib/date-picker/style/index.js +107 -62
- package/lib/descriptions/style/index.js +6 -4
- package/lib/drawer/index.js +4 -4
- package/lib/drawer/style/index.js +9 -5
- package/lib/dropdown/style/index.js +4 -2
- package/lib/empty/index.d.ts +44 -12
- package/lib/empty/index.js +38 -11
- package/lib/empty/net-error.d.ts +2 -0
- package/lib/empty/net-error.js +138 -0
- package/lib/empty/no-data.d.ts +2 -0
- package/lib/empty/no-data.js +107 -0
- package/lib/empty/no-page.d.ts +2 -0
- package/lib/empty/no-page.js +120 -0
- package/lib/empty/style/index.js +2 -2
- package/lib/float-button/BackTop.d.ts +9 -0
- package/lib/float-button/BackTop.js +4 -1
- package/lib/float-button/FloatButton.d.ts +9 -0
- package/lib/float-button/FloatButton.js +11 -5
- package/lib/float-button/FloatButtonGroup.d.ts +9 -0
- package/lib/float-button/FloatButtonGroup.js +7 -3
- package/lib/float-button/context.d.ts +2 -1
- package/lib/float-button/context.js +2 -1
- package/lib/float-button/index.d.ts +15 -0
- package/lib/float-button/interface.d.ts +14 -1
- package/lib/float-button/interface.js +2 -1
- package/lib/float-button/style/index.js +158 -40
- package/lib/form/style/index.js +7 -7
- package/lib/input/ClearableLabeledInput.d.ts +2 -2
- package/lib/input/Input.d.ts +6 -2
- package/lib/input/Input.js +8 -5
- package/lib/input/Password.d.ts +6 -2
- package/lib/input/ResizableTextArea.d.ts +6 -2
- package/lib/input/Search.d.ts +6 -2
- package/lib/input/TextArea.d.ts +6 -2
- package/lib/input/index.d.ts +9 -3
- package/lib/input/inputProps.d.ts +6 -2
- package/lib/input/style/index.js +53 -16
- package/lib/input-number/index.d.ts +30 -11
- package/lib/input-number/index.js +8 -2
- package/lib/input-number/src/InputNumber.d.ts +16 -0
- package/lib/input-number/src/InputNumber.js +37 -7
- package/lib/input-number/src/StepHandlerOutSide.d.ts +31 -0
- package/lib/input-number/src/StepHandlerOutSide.js +95 -0
- package/lib/input-number/style/index.js +76 -13
- package/lib/list/style/index.js +7 -5
- package/lib/locale/en_US.js +1 -0
- package/lib/locale/index.d.ts +2 -0
- package/lib/locale/index.js +1 -0
- package/lib/locale/zh_CN.js +3 -0
- package/lib/locale/zh_HK.js +1 -0
- package/lib/locale/zh_TW.js +1 -0
- package/lib/mentions/index.d.ts +4 -4
- package/lib/mentions/style/index.js +7 -4
- package/lib/menu/style/index.js +2 -2
- package/lib/message/style/index.js +3 -1
- package/lib/modal/Modal.d.ts +73 -1
- package/lib/modal/Modal.js +18 -2
- package/lib/modal/index.d.ts +87 -0
- package/lib/modal/style/index.js +5 -3
- package/lib/notification/style/index.js +6 -4
- package/lib/page-header/style/index.js +1 -1
- package/lib/pagination/Select.d.ts +10 -10
- package/lib/pagination/style/index.js +36 -11
- package/lib/popconfirm/index.d.ts +64 -0
- package/lib/popconfirm/index.js +1 -1
- package/lib/popconfirm/style/index.js +6 -1
- package/lib/popover/style/index.js +3 -1
- package/lib/progress/Circle.d.ts +27 -14
- package/lib/progress/Circle.js +1 -1
- package/lib/progress/Line.d.ts +27 -14
- package/lib/progress/Line.js +5 -5
- package/lib/progress/Steps.d.ts +27 -14
- package/lib/progress/index.d.ts +33 -18
- package/lib/progress/progress.d.ts +19 -10
- package/lib/progress/progress.js +8 -3
- package/lib/progress/props.d.ts +9 -5
- package/lib/progress/props.js +3 -2
- package/lib/progress/style/index.js +39 -0
- package/lib/progress/utils.js +7 -7
- package/lib/qrcode/style/index.js +1 -1
- package/lib/radio/style/index.js +62 -41
- package/lib/rate/index.d.ts +23 -0
- package/lib/rate/index.js +19 -3
- package/lib/rate/style/index.js +14 -4
- package/lib/result/style/index.js +7 -6
- package/lib/select/index.d.ts +11 -11
- package/lib/select/index.js +3 -1
- package/lib/select/style/dropdown.js +33 -7
- package/lib/select/style/index.js +21 -1
- package/lib/select/style/multiple.js +3 -7
- package/lib/select/style/single.js +7 -6
- package/lib/steps/style/index.js +6 -7
- package/lib/steps/style/inline.js +1 -1
- package/lib/steps/style/label-placement.js +2 -2
- package/lib/steps/style/progress-dot.js +2 -2
- package/lib/style/index.js +1 -1
- package/lib/switch/index.d.ts +5 -5
- package/lib/switch/index.js +2 -1
- package/lib/switch/style/index.js +170 -36
- package/lib/table/Table.d.ts +13 -0
- package/lib/table/Table.js +33 -4
- package/lib/table/hooks/useFilter/FilterDropdown.js +11 -7
- package/lib/table/hooks/useFilter/index.d.ts +4 -1
- package/lib/table/hooks/useFilter/index.js +18 -1
- package/lib/table/index.d.ts +15 -0
- package/lib/table/style/expand.js +3 -1
- package/lib/table/style/filter.js +1 -1
- package/lib/table/style/fixed.js +4 -0
- package/lib/table/style/index.d.ts +2 -0
- package/lib/table/style/index.js +26 -20
- package/lib/table/style/size.js +3 -2
- package/lib/tabs/style/index.js +4 -2
- package/lib/tag/index.d.ts +81 -4
- package/lib/tag/index.js +30 -1
- package/lib/tag/style/index.d.ts +2 -0
- package/lib/tag/style/index.js +178 -12
- package/lib/theme/interface/alias.d.ts +5 -0
- package/lib/theme/interface/components.d.ts +2 -0
- package/lib/theme/interface/maps/colors.d.ts +120 -54
- package/lib/theme/interface/maps/font.d.ts +8 -0
- package/lib/theme/interface/presetColors.d.ts +1 -1
- package/lib/theme/interface/presetColors.js +1 -1
- package/lib/theme/interface/seeds.d.ts +45 -8
- package/lib/theme/themes/dark/colors.js +25 -24
- package/lib/theme/themes/default/colors.js +8 -5
- package/lib/theme/themes/default/index.js +46 -2
- package/lib/theme/themes/seed.js +29 -19
- package/lib/theme/themes/shared/genColorMapToken.js +25 -12
- package/lib/theme/themes/shared/genFontMapToken.js +10 -1
- package/lib/theme/themes/shared/genFontSizes.d.ts +1 -0
- package/lib/theme/themes/shared/genFontSizes.js +3 -1
- package/lib/theme/themes/shared/genRadius.js +2 -2
- package/lib/theme/util/alias.js +9 -4
- package/lib/time-picker/time-picker.d.ts +2 -2
- package/lib/timeline/Timeline.d.ts +29 -0
- package/lib/timeline/Timeline.js +43 -15
- package/lib/timeline/TimelineItem.d.ts +16 -0
- package/lib/timeline/TimelineItem.js +19 -9
- package/lib/timeline/index.d.ts +27 -0
- package/lib/timeline/style/index.js +217 -70
- package/lib/tooltip/style/index.js +3 -3
- package/lib/tour/interface.d.ts +1 -0
- package/lib/tour/panelRender.js +12 -12
- package/lib/tour/style/index.js +37 -30
- package/lib/transfer/index.d.ts +11 -11
- package/lib/transfer/style/index.js +5 -2
- package/lib/tree/style/index.js +19 -8
- package/lib/tree-select/index.d.ts +11 -11
- package/lib/typography/style/index.js +1 -1
- package/lib/upload/style/index.js +3 -1
- package/lib/upload/style/list.js +9 -5
- package/lib/vc-input/BaseInput.d.ts +4 -0
- package/lib/vc-input/BaseInput.js +19 -2
- package/lib/vc-input/Input.d.ts +6 -2
- package/lib/vc-input/inputProps.d.ts +7 -1
- package/lib/vc-input/inputProps.js +2 -0
- package/lib/vc-input/utils/commonUtils.d.ts +1 -0
- package/lib/vc-input/utils/commonUtils.js +4 -0
- package/lib/vc-picker/Picker.d.ts +7 -3
- package/lib/vc-picker/Picker.js +39 -6
- package/lib/vc-picker/PickerPanel.d.ts +12 -4
- package/lib/vc-picker/PickerPanel.js +29 -6
- package/lib/vc-picker/RangePicker.d.ts +2 -0
- package/lib/vc-picker/RangePicker.js +6 -3
- package/lib/vc-picker/hooks/useValueTexts.d.ts +4 -1
- package/lib/vc-picker/hooks/useValueTexts.js +7 -0
- package/lib/vc-picker/interface.d.ts +2 -2
- package/lib/vc-picker/panels/CustomPanel/BasePanelBody.d.ts +84 -0
- package/lib/vc-picker/panels/CustomPanel/BasePanelBody.js +185 -0
- package/lib/vc-picker/panels/CustomPanel/CustomPanelBody.d.ts +19 -0
- package/lib/vc-picker/panels/CustomPanel/CustomPanelBody.js +28 -0
- package/lib/vc-picker/panels/CustomPanel/CustomPanelHeader.d.ts +11 -0
- package/lib/vc-picker/panels/CustomPanel/CustomPanelHeader.js +25 -0
- package/lib/vc-picker/panels/CustomPanel/index.d.ts +20 -0
- package/lib/vc-picker/panels/CustomPanel/index.js +48 -0
- package/lib/vc-picker/utils/getRanges.js +1 -1
- package/lib/vc-picker/utils/uiUtil.js +2 -1
- package/lib/vc-select/OptionList.js +8 -1
- package/lib/vc-select/SelectTrigger.js +4 -4
- package/lib/vc-table/Body/index.js +20 -1
- package/lib/vc-table/Table.js +2 -1
- package/lib/vc-tour/Mask.js +76 -60
- package/lib/vc-tour/Tour.js +4 -2
- package/lib/vc-tour/hooks/useTarget.js +2 -2
- package/lib/vc-tree/TreeNode.js +7 -3
- package/lib/version/token-meta.json +1 -1
- package/lib/version/token.json +1 -1
- package/lib/version/version.d.ts +1 -1
- package/lib/version/version.js +1 -1
- package/package.json +2 -1
- package/typings/global.d.ts +2 -0
- package/es/buttonA/LoadingIcon.d.ts +0 -12
- package/es/buttonA/LoadingIcon.js +0 -68
- package/es/buttonA/button-group.d.ts +0 -33
- package/es/buttonA/button-group.js +0 -64
- package/es/buttonA/button.d.ts +0 -112
- package/es/buttonA/button.js +0 -221
- package/es/buttonA/buttonTypes.d.ts +0 -58
- package/es/buttonA/buttonTypes.js +0 -53
- package/es/buttonA/index.d.ts +0 -197
- package/es/buttonA/index.js +0 -11
- package/es/buttonA/style/group.d.ts +0 -4
- package/es/buttonA/style/group.js +0 -68
- package/es/buttonA/style/index.d.ts +0 -10
- package/es/buttonA/style/index.js +0 -423
- package/es/empty/empty.d.ts +0 -2
- package/es/empty/empty.js +0 -69
- package/es/empty/simple.js +0 -51
- package/lib/buttonA/LoadingIcon.d.ts +0 -12
- package/lib/buttonA/LoadingIcon.js +0 -75
- package/lib/buttonA/button-group.d.ts +0 -33
- package/lib/buttonA/button-group.js +0 -72
- package/lib/buttonA/button.d.ts +0 -112
- package/lib/buttonA/button.js +0 -233
- package/lib/buttonA/buttonTypes.d.ts +0 -58
- package/lib/buttonA/buttonTypes.js +0 -63
- package/lib/buttonA/index.d.ts +0 -197
- package/lib/buttonA/index.js +0 -23
- package/lib/buttonA/style/group.d.ts +0 -4
- package/lib/buttonA/style/group.js +0 -74
- package/lib/buttonA/style/index.d.ts +0 -10
- package/lib/buttonA/style/index.js +0 -430
- package/lib/empty/empty.d.ts +0 -2
- package/lib/empty/empty.js +0 -74
- package/lib/empty/simple.js +0 -56
package/README.md
CHANGED
|
@@ -1,106 +1,10 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<a href="https://
|
|
3
|
-
<img width="200" src="https://
|
|
2
|
+
<a href="https://jielong.com/">
|
|
3
|
+
<img width="200" src="https://resoure-cos.jielong.com/console/image-webp/logo.webp">
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
7
|
<h1 align="center">
|
|
8
|
-
<a href="https://
|
|
8
|
+
<a href="https://jielong.com/" target="_blank">Antd-JL</a>
|
|
9
9
|
</h1>
|
|
10
|
-
|
|
11
|
-
<div align="center">
|
|
12
|
-
|
|
13
|
-
An enterprise-class UI components based on Ant Design and Vue.
|
|
14
|
-
|
|
15
|
-
 [](https://codecov.io/gh/vueComponent/ant-design-vue) [](https://www.npmjs.org/package/ant-design-vue) [](http://www.npmtrends.com/ant-design-vue) [](#backers) [](#sponsors) [](https://marketplace.visualstudio.com/items?itemName=ant-design-vue.vscode-ant-design-vue-helper) [](https://github.com/actions-cool/issues-helper)
|
|
16
|
-
|
|
17
|
-
</div>
|
|
18
|
-
|
|
19
|
-
[](https://www.antdv.com/)
|
|
20
|
-
|
|
21
|
-
English | [简体中文](./README-zh_CN.md)
|
|
22
|
-
|
|
23
|
-
## Features
|
|
24
|
-
|
|
25
|
-
- An enterprise-class UI design system for desktop applications.
|
|
26
|
-
- A set of high-quality Vue components out of the box.
|
|
27
|
-
- Shared [Ant Design of React](https://ant.design/docs/spec/introduce) design resources.
|
|
28
|
-
|
|
29
|
-
## Getting started & staying tuned with us.
|
|
30
|
-
|
|
31
|
-
Star us, and you will receive all releases notifications from GitHub without any delay!
|
|
32
|
-
|
|
33
|
-

|
|
34
|
-
|
|
35
|
-
## Environment Support
|
|
36
|
-
|
|
37
|
-
- Modern browsers. v1.x support Internet Explorer 9+ (with [polyfills](https://www.antdv.com/docs/vue/getting-started/#compatibility))
|
|
38
|
-
- Server-side Rendering
|
|
39
|
-
- Support Vue 2 & Vue 3
|
|
40
|
-
- [Electron](https://electronjs.org/)
|
|
41
|
-
|
|
42
|
-
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Opera | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/electron/electron_48x48.png" alt="Electron" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Electron |
|
|
43
|
-
| --- | --- | --- | --- | --- | --- |
|
|
44
|
-
| Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
|
|
45
|
-
|
|
46
|
-
## Using npm or yarn
|
|
47
|
-
|
|
48
|
-
**We recommend using npm or yarn to install**, it not only makes development easier, but also allow you to take advantage of the rich ecosystem of Javascript packages and tooling.
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
$ npm install ant-design-vue --save
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
```bash
|
|
55
|
-
$ yarn add ant-design-vue
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
If you are in a bad network environment, you can try other registries and tools like [cnpm](https://github.com/cnpm/cnpm).
|
|
59
|
-
|
|
60
|
-
## Links
|
|
61
|
-
|
|
62
|
-
- [Home page](https://www.antdv.com/)
|
|
63
|
-
- [Vue](https://vuejs.org/)
|
|
64
|
-
- [Ant Design Of React](http://ant.design/)
|
|
65
|
-
|
|
66
|
-
## Ecosystem
|
|
67
|
-
|
|
68
|
-
| Project | Description |
|
|
69
|
-
| --- | --- |
|
|
70
|
-
| [vue-ref](https://github.com/vueComponent/vue-ref) | You can use the callback to get a reference like react |
|
|
71
|
-
| [ant-design-vue-helper](https://marketplace.visualstudio.com/items?itemName=ant-design-vue.vscode-ant-design-vue-helper) | A vscode extension for ant-design-vue |
|
|
72
|
-
| [vue-cli-plugin-ant-design](https://github.com/vueComponent/vue-cli-plugin-ant-design) | Vue-cli 3 plugin to add ant-design-vue |
|
|
73
|
-
| [vue-dash-event](https://github.com/vueComponent/vue-dash-event) | The library function, implemented in the DOM template, can use the custom event of the ant-design-vue component (camelCase) |
|
|
74
|
-
| [@formily/antdv](https://github.com/formilyjs/antdv) | The Library with Formily and ant-design-vue |
|
|
75
|
-
| [@ant-design-vue/nuxt](https://github.com/vueComponent/ant-design-vue-nuxt) | A nuxt module for ant-design-vue |
|
|
76
|
-
| [ant-design-x-vue](https://github.com/wzc520pyfm/ant-design-x-vue) | A Vue AI interface solutions base on the Ant Design X design specification |
|
|
77
|
-
|
|
78
|
-
## Donation
|
|
79
|
-
|
|
80
|
-
ant-design-vue is an MIT-licensed open source project. In order to achieve better and sustainable development of the project, we expect to gain more [backers](https://github.com/vueComponent/ant-design-vue/blob/master/BACKERS.md). You can support us in any of the following ways:
|
|
81
|
-
|
|
82
|
-
- [Patreon](https://www.patreon.com/tangjinzhou)
|
|
83
|
-
- [opencollective](https://opencollective.com/ant-design-vue)
|
|
84
|
-
- [paypal](https://www.paypal.me/tangjinzhou)
|
|
85
|
-
- [支付宝或微信](https://aliyuncdn.antdv.com/alipay-and-wechat.png)
|
|
86
|
-
- ETH: 0x30cc48515d8ae9fefa20ab87226ad7e8ab9c3bc2
|
|
87
|
-
|
|
88
|
-
## Sponsors
|
|
89
|
-
|
|
90
|
-
Become a sponsor and get your logo on our README on Github with a link to your site. [[Become a sponsor](https://opencollective.com/ant-design-vue#sponsor)]
|
|
91
|
-
|
|
92
|
-
<a href="http://www.jeecg.com/" target="_blank"><img src="https://aliyuncdn.antdv.com/jeecg-logo.png" height="64"></a> <a href="https://opencollective.com/ant-design-vue/sponsor/0/website" target="_blank"><img src="https://opencollective.com/ant-design-vue/sponsor/0/avatar.svg"></a> <a href="https://opencollective.com/ant-design-vue/sponsor/1/website" target="_blank"><img src="https://opencollective.com/ant-design-vue/sponsor/1/avatar.svg"></a> <a href="https://opencollective.com/ant-design-vue/sponsor/2/website" target="_blank"><img src="https://opencollective.com/ant-design-vue/sponsor/2/avatar.svg"></a> <a href="https://opencollective.com/ant-design-vue/sponsor/3/website" target="_blank"><img src="https://opencollective.com/ant-design-vue/sponsor/3/avatar.svg"></a> <a href="https://opencollective.com/ant-design-vue/sponsor/4/website" target="_blank"><img src="https://opencollective.com/ant-design-vue/sponsor/4/avatar.svg"></a> <a href="https://opencollective.com/ant-design-vue/sponsor/5/website" target="_blank"><img src="https://opencollective.com/ant-design-vue/sponsor/5/avatar.svg"></a> <a href="https://opencollective.com/ant-design-vue/sponsor/6/website" target="_blank"><img src="https://opencollective.com/ant-design-vue/sponsor/6/avatar.svg"></a> <a href="https://opencollective.com/ant-design-vue/sponsor/7/website" target="_blank"><img src="https://opencollective.com/ant-design-vue/sponsor/7/avatar.svg"></a> <a href="https://opencollective.com/ant-design-vue/sponsor/8/website" target="_blank"><img src="https://opencollective.com/ant-design-vue/sponsor/8/avatar.svg"></a> <a href="https://opencollective.com/ant-design-vue/sponsor/9/website" target="_blank"><img src="https://opencollective.com/ant-design-vue/sponsor/9/avatar.svg"></a> <a href="https://opencollective.com/ant-design-vue/sponsor/10/website" target="_blank"><img src="https://opencollective.com/ant-design-vue/sponsor/10/avatar.svg"></a>
|
|
93
|
-
|
|
94
|
-
## [More Sponsor (From Patreon、alipay、wechat、paypal...)](https://github.com/vueComponent/ant-design-vue/blob/master/BACKERS.md)
|
|
95
|
-
|
|
96
|
-
## Contributors
|
|
97
|
-
|
|
98
|
-
Thank you to all the people who already contributed to ant-design-vue!
|
|
99
|
-
|
|
100
|
-
<a href="https://github.com/vueComponent/ant-design-vue/graphs/contributors">
|
|
101
|
-
<img src="https://contrib.rocks/image?repo=vueComponent/ant-design-vue&max=100&columns=15" />
|
|
102
|
-
</a>
|
|
103
|
-
|
|
104
|
-
[](https://issuehunt.io/repos/104172832)
|
|
105
|
-
|
|
106
|
-
This project is tested with BrowserStack.
|
|
10
|
+
<h2 align="center">基于antd封装的jl组件库</h2>
|
|
@@ -46,6 +46,10 @@ declare const actionButtonProps: {
|
|
|
46
46
|
type: BooleanConstructor;
|
|
47
47
|
default: any;
|
|
48
48
|
};
|
|
49
|
+
secondary: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: any;
|
|
52
|
+
};
|
|
49
53
|
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
50
54
|
href: StringConstructor;
|
|
51
55
|
target: StringConstructor;
|
|
@@ -94,6 +98,10 @@ declare const actionButtonProps: {
|
|
|
94
98
|
type: BooleanConstructor;
|
|
95
99
|
default: any;
|
|
96
100
|
};
|
|
101
|
+
secondary: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: any;
|
|
104
|
+
};
|
|
97
105
|
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
98
106
|
href: StringConstructor;
|
|
99
107
|
target: StringConstructor;
|
|
@@ -156,6 +164,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
156
164
|
type: BooleanConstructor;
|
|
157
165
|
default: any;
|
|
158
166
|
};
|
|
167
|
+
secondary: {
|
|
168
|
+
type: BooleanConstructor;
|
|
169
|
+
default: any;
|
|
170
|
+
};
|
|
159
171
|
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
160
172
|
href: StringConstructor;
|
|
161
173
|
target: StringConstructor;
|
|
@@ -204,6 +216,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
204
216
|
type: BooleanConstructor;
|
|
205
217
|
default: any;
|
|
206
218
|
};
|
|
219
|
+
secondary: {
|
|
220
|
+
type: BooleanConstructor;
|
|
221
|
+
default: any;
|
|
222
|
+
};
|
|
207
223
|
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
208
224
|
href: StringConstructor;
|
|
209
225
|
target: StringConstructor;
|
|
@@ -264,6 +280,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
264
280
|
type: BooleanConstructor;
|
|
265
281
|
default: any;
|
|
266
282
|
};
|
|
283
|
+
secondary: {
|
|
284
|
+
type: BooleanConstructor;
|
|
285
|
+
default: any;
|
|
286
|
+
};
|
|
267
287
|
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
268
288
|
href: StringConstructor;
|
|
269
289
|
target: StringConstructor;
|
|
@@ -312,6 +332,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
312
332
|
type: BooleanConstructor;
|
|
313
333
|
default: any;
|
|
314
334
|
};
|
|
335
|
+
secondary: {
|
|
336
|
+
type: BooleanConstructor;
|
|
337
|
+
default: any;
|
|
338
|
+
};
|
|
315
339
|
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
316
340
|
href: StringConstructor;
|
|
317
341
|
target: StringConstructor;
|
|
@@ -365,6 +389,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
365
389
|
type: BooleanConstructor;
|
|
366
390
|
default: any;
|
|
367
391
|
};
|
|
392
|
+
secondary: {
|
|
393
|
+
type: BooleanConstructor;
|
|
394
|
+
default: any;
|
|
395
|
+
};
|
|
368
396
|
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
369
397
|
href: StringConstructor;
|
|
370
398
|
target: StringConstructor;
|
package/es/_util/colors.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PresetColorKey } from '../theme/interface';
|
|
2
2
|
type InverseColor = `${PresetColorKey}-inverse`;
|
|
3
|
-
export declare const PresetStatusColorTypes: readonly ["success", "processing", "error", "default", "warning"];
|
|
3
|
+
export declare const PresetStatusColorTypes: readonly ["success", "processing", "error", "default", "warning", "primary"];
|
|
4
4
|
export type PresetColorType = PresetColorKey | InverseColor;
|
|
5
5
|
export type PresetStatusColorType = (typeof PresetStatusColorTypes)[number];
|
|
6
6
|
/**
|
package/es/_util/colors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PresetColors } from '../theme/interface';
|
|
2
2
|
const inverseColors = PresetColors.map(color => `${color}-inverse`);
|
|
3
|
-
export const PresetStatusColorTypes = ['success', 'processing', 'error', 'default', 'warning'];
|
|
3
|
+
export const PresetStatusColorTypes = ['success', 'processing', 'error', 'default', 'warning', 'primary'];
|
|
4
4
|
/**
|
|
5
5
|
* determine if the color keyword belongs to the `Ant Design` {@link PresetColors}.
|
|
6
6
|
* @param color color to be judged
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ValidateStatus } from '../form/FormItem';
|
|
2
|
-
declare const InputStatuses: readonly ["warning", "error", ""];
|
|
2
|
+
declare const InputStatuses: readonly ["warning", "error", "success", ""];
|
|
3
3
|
export type InputStatus = (typeof InputStatuses)[number];
|
|
4
4
|
export declare function getStatusClassNames(prefixCls: string, status?: ValidateStatus, hasFeedback?: boolean): string;
|
|
5
5
|
export declare const getMergedStatus: (contextStatus?: ValidateStatus, customStatus?: InputStatus) => "" | "error" | "validating" | "success" | "warning";
|
package/es/_util/statusUtils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import classNames from './classNames';
|
|
2
|
-
const InputStatuses = ['warning', 'error', ''];
|
|
2
|
+
const InputStatuses = ['warning', 'error', 'success', ''];
|
|
3
3
|
export function getStatusClassNames(prefixCls, status, hasFeedback) {
|
|
4
4
|
return classNames({
|
|
5
5
|
[`${prefixCls}-status-success`]: status === 'success',
|
package/es/_util/util.d.ts
CHANGED
|
@@ -15,4 +15,13 @@ export declare function getDataAndAriaProps(props: any): {};
|
|
|
15
15
|
export declare function toPx(val: any): any;
|
|
16
16
|
export declare function renderHelper<T = Record<string, any>>(v: VueNode | ((arg0: T) => VueNode), props?: T, defaultV?: any): any;
|
|
17
17
|
export declare function wrapPromiseFn(openFn: (resolve: VoidFunction) => VoidFunction): any;
|
|
18
|
+
/**
|
|
19
|
+
* @name roundToNearest
|
|
20
|
+
* @function
|
|
21
|
+
* @param num
|
|
22
|
+
* @param precision
|
|
23
|
+
* @description 精确处理lineHeight数值问题,2.99->3 14.445->14.5H
|
|
24
|
+
* @returns number
|
|
25
|
+
*/
|
|
26
|
+
export declare function roundToNearest(num: number): number;
|
|
18
27
|
export { isOn, cacheStringFunction, camelize, hyphenate, capitalize, resolvePropValue };
|
package/es/_util/util.js
CHANGED
|
@@ -79,4 +79,19 @@ export function wrapPromiseFn(openFn) {
|
|
|
79
79
|
result.promise = closePromise;
|
|
80
80
|
return result;
|
|
81
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* @name roundToNearest
|
|
84
|
+
* @function
|
|
85
|
+
* @param num
|
|
86
|
+
* @param precision
|
|
87
|
+
* @description 精确处理lineHeight数值问题,2.99->3 14.445->14.5H
|
|
88
|
+
* @returns number
|
|
89
|
+
*/
|
|
90
|
+
export function roundToNearest(num) {
|
|
91
|
+
const decimalPart = num - Math.floor(num);
|
|
92
|
+
// 整数还是半整数
|
|
93
|
+
const factor = decimalPart >= 0.4 && decimalPart < 0.5 ? 2 : 1;
|
|
94
|
+
// 四舍五入到最近的整数,再还原步长
|
|
95
|
+
return Math.round(num * factor) / factor;
|
|
96
|
+
}
|
|
82
97
|
export { isOn, cacheStringFunction, camelize, hyphenate, capitalize, resolvePropValue };
|
package/es/alert/style/index.js
CHANGED
|
@@ -16,8 +16,8 @@ export const genBaseStyle = token => {
|
|
|
16
16
|
marginSM,
|
|
17
17
|
fontSize,
|
|
18
18
|
fontSizeLG,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
lineHeightPx,
|
|
20
|
+
borderRadius,
|
|
21
21
|
motionEaseInOutCirc,
|
|
22
22
|
alertIconSizeLG,
|
|
23
23
|
colorText,
|
|
@@ -48,7 +48,7 @@ export const genBaseStyle = token => {
|
|
|
48
48
|
[`&-description`]: {
|
|
49
49
|
display: 'none',
|
|
50
50
|
fontSize,
|
|
51
|
-
lineHeight
|
|
51
|
+
lineHeight: lineHeightPx
|
|
52
52
|
},
|
|
53
53
|
'&-message': {
|
|
54
54
|
color: colorText
|
|
@@ -98,24 +98,24 @@ export const genTypeStyle = token => {
|
|
|
98
98
|
const {
|
|
99
99
|
componentCls,
|
|
100
100
|
colorSuccess,
|
|
101
|
-
|
|
101
|
+
colorSuccessDisabled,
|
|
102
102
|
colorSuccessBg,
|
|
103
103
|
colorWarning,
|
|
104
|
-
|
|
104
|
+
colorWarningDisabled,
|
|
105
105
|
colorWarningBg,
|
|
106
106
|
colorError,
|
|
107
|
-
|
|
107
|
+
colorErrorDisabled,
|
|
108
108
|
colorErrorBg,
|
|
109
109
|
colorInfo,
|
|
110
|
-
|
|
110
|
+
colorInfoDisabled,
|
|
111
111
|
colorInfoBg
|
|
112
112
|
} = token;
|
|
113
113
|
return {
|
|
114
114
|
[componentCls]: {
|
|
115
|
-
'&-success': genAlertTypeStyle(colorSuccessBg,
|
|
116
|
-
'&-info': genAlertTypeStyle(colorInfoBg,
|
|
117
|
-
'&-warning': genAlertTypeStyle(colorWarningBg,
|
|
118
|
-
'&-error': _extends(_extends({}, genAlertTypeStyle(colorErrorBg,
|
|
115
|
+
'&-success': genAlertTypeStyle(colorSuccessBg, colorSuccessDisabled, colorSuccess, token, componentCls),
|
|
116
|
+
'&-info': genAlertTypeStyle(colorInfoBg, colorInfoDisabled, colorInfo, token, componentCls),
|
|
117
|
+
'&-warning': genAlertTypeStyle(colorWarningBg, colorWarningDisabled, colorWarning, token, componentCls),
|
|
118
|
+
'&-error': _extends(_extends({}, genAlertTypeStyle(colorErrorBg, colorErrorDisabled, colorError, token, componentCls)), {
|
|
119
119
|
[`${componentCls}-description > pre`]: {
|
|
120
120
|
margin: 0,
|
|
121
121
|
padding: 0
|
package/es/app/style/index.js
CHANGED
|
@@ -5,14 +5,14 @@ const genBaseStyle = token => {
|
|
|
5
5
|
componentCls,
|
|
6
6
|
colorText,
|
|
7
7
|
fontSize,
|
|
8
|
-
|
|
8
|
+
lineHeightPx,
|
|
9
9
|
fontFamily
|
|
10
10
|
} = token;
|
|
11
11
|
return {
|
|
12
12
|
[componentCls]: {
|
|
13
13
|
color: colorText,
|
|
14
14
|
fontSize,
|
|
15
|
-
lineHeight,
|
|
15
|
+
lineHeight: lineHeightPx,
|
|
16
16
|
fontFamily
|
|
17
17
|
}
|
|
18
18
|
};
|
|
@@ -39,7 +39,7 @@ export declare const autoCompleteProps: () => {
|
|
|
39
39
|
type: BooleanConstructor;
|
|
40
40
|
default: boolean;
|
|
41
41
|
};
|
|
42
|
-
status: PropType<"" | "error" | "warning">;
|
|
42
|
+
status: PropType<"" | "error" | "success" | "warning">;
|
|
43
43
|
size: {
|
|
44
44
|
type: PropType<import("../config-provider").SizeType>;
|
|
45
45
|
default: import("../config-provider").SizeType;
|
|
@@ -209,7 +209,7 @@ declare const _default: {
|
|
|
209
209
|
type: BooleanConstructor;
|
|
210
210
|
default: boolean;
|
|
211
211
|
};
|
|
212
|
-
status: PropType<"" | "error" | "warning">;
|
|
212
|
+
status: PropType<"" | "error" | "success" | "warning">;
|
|
213
213
|
size: {
|
|
214
214
|
type: PropType<import("../config-provider").SizeType>;
|
|
215
215
|
default: import("../config-provider").SizeType;
|
|
@@ -410,7 +410,7 @@ declare const _default: {
|
|
|
410
410
|
type: BooleanConstructor;
|
|
411
411
|
default: boolean;
|
|
412
412
|
};
|
|
413
|
-
status: PropType<"" | "error" | "warning">;
|
|
413
|
+
status: PropType<"" | "error" | "success" | "warning">;
|
|
414
414
|
size: {
|
|
415
415
|
type: PropType<import("../config-provider").SizeType>;
|
|
416
416
|
default: import("../config-provider").SizeType;
|
|
@@ -601,7 +601,7 @@ declare const _default: {
|
|
|
601
601
|
type: BooleanConstructor;
|
|
602
602
|
default: boolean;
|
|
603
603
|
};
|
|
604
|
-
status: PropType<"" | "error" | "warning">;
|
|
604
|
+
status: PropType<"" | "error" | "success" | "warning">;
|
|
605
605
|
size: {
|
|
606
606
|
type: PropType<import("../config-provider").SizeType>;
|
|
607
607
|
default: import("../config-provider").SizeType;
|
package/es/badge/Badge.d.ts
CHANGED
|
@@ -22,13 +22,13 @@ export declare const badgeProps: () => {
|
|
|
22
22
|
prefixCls: StringConstructor;
|
|
23
23
|
scrollNumberPrefixCls: StringConstructor;
|
|
24
24
|
status: {
|
|
25
|
-
type: PropType<"default" | "error" | "success" | "
|
|
25
|
+
type: PropType<"default" | "error" | "success" | "primary" | "warning" | "processing">;
|
|
26
26
|
};
|
|
27
27
|
size: {
|
|
28
28
|
type: PropType<"default" | "small">;
|
|
29
29
|
default: string;
|
|
30
30
|
};
|
|
31
|
-
color: PropType<LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue">>;
|
|
31
|
+
color: PropType<LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "colorPrimaryPreset" | "colorWarningPreset">>;
|
|
32
32
|
text: import("vue-types").VueTypeValidableDef<any>;
|
|
33
33
|
offset: PropType<[string | number, string | number]>;
|
|
34
34
|
numberStyle: {
|
|
@@ -60,13 +60,13 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
60
60
|
prefixCls: StringConstructor;
|
|
61
61
|
scrollNumberPrefixCls: StringConstructor;
|
|
62
62
|
status: {
|
|
63
|
-
type: PropType<"default" | "error" | "success" | "
|
|
63
|
+
type: PropType<"default" | "error" | "success" | "primary" | "warning" | "processing">;
|
|
64
64
|
};
|
|
65
65
|
size: {
|
|
66
66
|
type: PropType<"default" | "small">;
|
|
67
67
|
default: string;
|
|
68
68
|
};
|
|
69
|
-
color: PropType<LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue">>;
|
|
69
|
+
color: PropType<LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "colorPrimaryPreset" | "colorWarningPreset">>;
|
|
70
70
|
text: import("vue-types").VueTypeValidableDef<any>;
|
|
71
71
|
offset: PropType<[string | number, string | number]>;
|
|
72
72
|
numberStyle: {
|
|
@@ -96,13 +96,13 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
96
96
|
prefixCls: StringConstructor;
|
|
97
97
|
scrollNumberPrefixCls: StringConstructor;
|
|
98
98
|
status: {
|
|
99
|
-
type: PropType<"default" | "error" | "success" | "
|
|
99
|
+
type: PropType<"default" | "error" | "success" | "primary" | "warning" | "processing">;
|
|
100
100
|
};
|
|
101
101
|
size: {
|
|
102
102
|
type: PropType<"default" | "small">;
|
|
103
103
|
default: string;
|
|
104
104
|
};
|
|
105
|
-
color: PropType<LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue">>;
|
|
105
|
+
color: PropType<LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "colorPrimaryPreset" | "colorWarningPreset">>;
|
|
106
106
|
text: import("vue-types").VueTypeValidableDef<any>;
|
|
107
107
|
offset: PropType<[string | number, string | number]>;
|
|
108
108
|
numberStyle: {
|
package/es/badge/index.d.ts
CHANGED
|
@@ -22,13 +22,13 @@ declare const _default: {
|
|
|
22
22
|
prefixCls: StringConstructor;
|
|
23
23
|
scrollNumberPrefixCls: StringConstructor;
|
|
24
24
|
status: {
|
|
25
|
-
type: import("vue").PropType<"default" | "error" | "success" | "
|
|
25
|
+
type: import("vue").PropType<"default" | "error" | "success" | "primary" | "warning" | "processing">;
|
|
26
26
|
};
|
|
27
27
|
size: {
|
|
28
28
|
type: import("vue").PropType<"default" | "small">;
|
|
29
29
|
default: string;
|
|
30
30
|
};
|
|
31
|
-
color: import("vue").PropType<import("../_util/type").LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue">>;
|
|
31
|
+
color: import("vue").PropType<import("../_util/type").LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "colorPrimaryPreset" | "colorWarningPreset">>;
|
|
32
32
|
text: import("vue-types").VueTypeValidableDef<any>;
|
|
33
33
|
offset: import("vue").PropType<[string | number, string | number]>;
|
|
34
34
|
numberStyle: {
|
|
@@ -73,13 +73,13 @@ declare const _default: {
|
|
|
73
73
|
prefixCls: StringConstructor;
|
|
74
74
|
scrollNumberPrefixCls: StringConstructor;
|
|
75
75
|
status: {
|
|
76
|
-
type: import("vue").PropType<"default" | "error" | "success" | "
|
|
76
|
+
type: import("vue").PropType<"default" | "error" | "success" | "primary" | "warning" | "processing">;
|
|
77
77
|
};
|
|
78
78
|
size: {
|
|
79
79
|
type: import("vue").PropType<"default" | "small">;
|
|
80
80
|
default: string;
|
|
81
81
|
};
|
|
82
|
-
color: import("vue").PropType<import("../_util/type").LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue">>;
|
|
82
|
+
color: import("vue").PropType<import("../_util/type").LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "colorPrimaryPreset" | "colorWarningPreset">>;
|
|
83
83
|
text: import("vue-types").VueTypeValidableDef<any>;
|
|
84
84
|
offset: import("vue").PropType<[string | number, string | number]>;
|
|
85
85
|
numberStyle: {
|
|
@@ -117,13 +117,13 @@ declare const _default: {
|
|
|
117
117
|
prefixCls: StringConstructor;
|
|
118
118
|
scrollNumberPrefixCls: StringConstructor;
|
|
119
119
|
status: {
|
|
120
|
-
type: import("vue").PropType<"default" | "error" | "success" | "
|
|
120
|
+
type: import("vue").PropType<"default" | "error" | "success" | "primary" | "warning" | "processing">;
|
|
121
121
|
};
|
|
122
122
|
size: {
|
|
123
123
|
type: import("vue").PropType<"default" | "small">;
|
|
124
124
|
default: string;
|
|
125
125
|
};
|
|
126
|
-
color: import("vue").PropType<import("../_util/type").LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue">>;
|
|
126
|
+
color: import("vue").PropType<import("../_util/type").LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "colorPrimaryPreset" | "colorWarningPreset">>;
|
|
127
127
|
text: import("vue-types").VueTypeValidableDef<any>;
|
|
128
128
|
offset: import("vue").PropType<[string | number, string | number]>;
|
|
129
129
|
numberStyle: {
|
package/es/badge/style/index.js
CHANGED
|
@@ -2,6 +2,8 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import { Keyframes } from '../../_util/cssinjs';
|
|
3
3
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
|
4
4
|
import { genPresetColor, resetComponent } from '../../style';
|
|
5
|
+
import { roundToNearest } from 'ant-design-vue/es/_util/util';
|
|
6
|
+
import { getAlphaColor } from '../../theme/themes/dark/colorAlgorithm';
|
|
5
7
|
const antStatusProcessing = new Keyframes('antStatusProcessing', {
|
|
6
8
|
'0%': {
|
|
7
9
|
transform: 'scale(0.8)',
|
|
@@ -109,7 +111,7 @@ const genSharedBadgeStyle = token => {
|
|
|
109
111
|
textAlign: 'center',
|
|
110
112
|
background: token.badgeColor,
|
|
111
113
|
borderRadius: token.badgeHeight / 2,
|
|
112
|
-
boxShadow: `0 0 0 ${badgeShadowSize}px ${token.badgeShadowColor}`,
|
|
114
|
+
// boxShadow: `0 0 0 ${badgeShadowSize}px ${token.badgeShadowColor}`,
|
|
113
115
|
transition: `background ${token.motionDurationMid}`,
|
|
114
116
|
a: {
|
|
115
117
|
color: token.badgeTextColor
|
|
@@ -334,16 +336,17 @@ export default genComponentStyleHook('Badge', token => {
|
|
|
334
336
|
marginXS,
|
|
335
337
|
colorBorderBg
|
|
336
338
|
} = token;
|
|
337
|
-
|
|
339
|
+
// TODO:lineheight
|
|
340
|
+
const badgeFontHeight = roundToNearest(fontSize * lineHeight);
|
|
338
341
|
const badgeShadowSize = lineWidth;
|
|
339
342
|
const badgeZIndex = 'auto';
|
|
340
343
|
const badgeHeight = badgeFontHeight - 2 * badgeShadowSize;
|
|
341
|
-
const badgeTextColor = token.colorBgContainer;
|
|
344
|
+
const badgeTextColor = getAlphaColor(token.colorBgContainer, 0.9);
|
|
342
345
|
const badgeFontWeight = 'normal';
|
|
343
346
|
const badgeFontSize = fontSizeSM;
|
|
344
347
|
const badgeColor = token.colorError;
|
|
345
348
|
const badgeColorHover = token.colorErrorHover;
|
|
346
|
-
const badgeHeightSm =
|
|
349
|
+
const badgeHeightSm = token.fontSizeLG;
|
|
347
350
|
const badgeDotSize = fontSizeSM / 2;
|
|
348
351
|
const badgeFontSizeSm = fontSizeSM;
|
|
349
352
|
const badgeStatusSize = fontSizeSM / 2;
|
|
@@ -423,6 +423,10 @@ export declare const breadcrumbItemProps: () => {
|
|
|
423
423
|
onClick: {
|
|
424
424
|
type: import("vue").PropType<MouseEventHandler | MouseEventHandler[]>;
|
|
425
425
|
};
|
|
426
|
+
disabled: {
|
|
427
|
+
type: BooleanConstructor;
|
|
428
|
+
default: any;
|
|
429
|
+
};
|
|
426
430
|
};
|
|
427
431
|
export type BreadcrumbItemProps = Partial<ExtractPropTypes<ReturnType<typeof breadcrumbItemProps>>>;
|
|
428
432
|
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
@@ -847,6 +851,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
847
851
|
onClick: {
|
|
848
852
|
type: import("vue").PropType<MouseEventHandler | MouseEventHandler[]>;
|
|
849
853
|
};
|
|
854
|
+
disabled: {
|
|
855
|
+
type: BooleanConstructor;
|
|
856
|
+
default: any;
|
|
857
|
+
};
|
|
850
858
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
851
859
|
prefixCls: StringConstructor;
|
|
852
860
|
href: StringConstructor;
|
|
@@ -1269,7 +1277,12 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
1269
1277
|
onClick: {
|
|
1270
1278
|
type: import("vue").PropType<MouseEventHandler | MouseEventHandler[]>;
|
|
1271
1279
|
};
|
|
1280
|
+
disabled: {
|
|
1281
|
+
type: BooleanConstructor;
|
|
1282
|
+
default: any;
|
|
1283
|
+
};
|
|
1272
1284
|
}>> & Readonly<{}>, {
|
|
1285
|
+
disabled: boolean;
|
|
1273
1286
|
dropdownProps: Partial<ExtractPropTypes<{
|
|
1274
1287
|
arrow: {
|
|
1275
1288
|
type: import("vue").PropType<boolean | import("../dropdown/props").DropdownArrowOptions>;
|
|
@@ -20,7 +20,11 @@ export const breadcrumbItemProps = () => ({
|
|
|
20
20
|
separator: PropTypes.any,
|
|
21
21
|
dropdownProps: objectType(),
|
|
22
22
|
overlay: PropTypes.any,
|
|
23
|
-
onClick: eventType()
|
|
23
|
+
onClick: eventType(),
|
|
24
|
+
disabled: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: undefined
|
|
27
|
+
}
|
|
24
28
|
});
|
|
25
29
|
export default defineComponent({
|
|
26
30
|
compatConfig: {
|
|
@@ -59,6 +63,10 @@ export default defineComponent({
|
|
|
59
63
|
return breadcrumbItem;
|
|
60
64
|
};
|
|
61
65
|
const handleClick = e => {
|
|
66
|
+
if (props.disabled) {
|
|
67
|
+
e.preventDefault();
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
62
70
|
emit('click', e);
|
|
63
71
|
};
|
|
64
72
|
return () => {
|
|
@@ -73,12 +81,16 @@ export default defineComponent({
|
|
|
73
81
|
let link;
|
|
74
82
|
if (props.href !== undefined) {
|
|
75
83
|
link = _createVNode("a", _objectSpread({
|
|
76
|
-
"class": `${prefixCls.value}-link`,
|
|
84
|
+
"class": [`${prefixCls.value}-link`, {
|
|
85
|
+
disabled: props.disabled
|
|
86
|
+
}],
|
|
77
87
|
"onClick": handleClick
|
|
78
88
|
}, restAttrs), [children]);
|
|
79
89
|
} else {
|
|
80
90
|
link = _createVNode("span", _objectSpread({
|
|
81
|
-
"class": `${prefixCls.value}-link`,
|
|
91
|
+
"class": [`${prefixCls.value}-link`, {
|
|
92
|
+
disabled: props.disabled
|
|
93
|
+
}],
|
|
82
94
|
"onClick": handleClick
|
|
83
95
|
}, restAttrs), [children]);
|
|
84
96
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
|
3
3
|
import { genFocusStyle, resetComponent } from '../../style';
|
|
4
|
+
import { roundToNearest } from 'ant-design-vue/es/_util/util';
|
|
4
5
|
const genBreadcrumbStyle = token => {
|
|
5
6
|
const {
|
|
6
7
|
componentCls,
|
|
@@ -25,12 +26,13 @@ const genBreadcrumbStyle = token => {
|
|
|
25
26
|
transition: `color ${token.motionDurationMid}`,
|
|
26
27
|
padding: `0 ${token.paddingXXS}px`,
|
|
27
28
|
borderRadius: token.borderRadiusSM,
|
|
28
|
-
|
|
29
|
+
// TODO:lineheight
|
|
30
|
+
height: roundToNearest(token.lineHeight * token.fontSize),
|
|
29
31
|
display: 'inline-block',
|
|
30
32
|
marginInline: -token.marginXXS,
|
|
31
33
|
'&:hover': {
|
|
32
34
|
color: token.breadcrumbLinkColorHover,
|
|
33
|
-
backgroundColor: token.
|
|
35
|
+
backgroundColor: token.colorSecondary
|
|
34
36
|
}
|
|
35
37
|
}, genFocusStyle(token)),
|
|
36
38
|
[`li:last-child`]: {
|
|
@@ -49,11 +51,22 @@ const genBreadcrumbStyle = token => {
|
|
|
49
51
|
> ${iconCls} + a
|
|
50
52
|
`]: {
|
|
51
53
|
marginInlineStart: token.marginXXS
|
|
54
|
+
},
|
|
55
|
+
[`&.disabled`]: {
|
|
56
|
+
a: {
|
|
57
|
+
color: token.colorTextQuaternary,
|
|
58
|
+
cursor: 'not-allowed',
|
|
59
|
+
'&:hover': {
|
|
60
|
+
color: token.colorTextQuaternary,
|
|
61
|
+
backgroundColor: 'transparent'
|
|
62
|
+
}
|
|
63
|
+
}
|
|
52
64
|
}
|
|
53
65
|
},
|
|
54
66
|
[`${componentCls}-overlay-link`]: {
|
|
55
67
|
borderRadius: token.borderRadiusSM,
|
|
56
|
-
|
|
68
|
+
// TODO:lineheight
|
|
69
|
+
height: roundToNearest(token.lineHeight * token.fontSize),
|
|
57
70
|
display: 'inline-block',
|
|
58
71
|
padding: `0 ${token.paddingXXS}px`,
|
|
59
72
|
marginInline: -token.marginXXS,
|
|
@@ -91,7 +104,7 @@ export default genComponentStyleHook('Breadcrumb', token => {
|
|
|
91
104
|
breadcrumbLinkColorHover: token.colorText,
|
|
92
105
|
breadcrumbLastItemColor: token.colorText,
|
|
93
106
|
breadcrumbSeparatorMargin: token.marginXS,
|
|
94
|
-
breadcrumbSeparatorColor: token.
|
|
107
|
+
breadcrumbSeparatorColor: token.colorTextSecondary
|
|
95
108
|
});
|
|
96
109
|
return [genBreadcrumbStyle(BreadcrumbToken)];
|
|
97
110
|
});
|