From 263d8ec8e8cf13b24102fd0984b167c0a7a4dedb Mon Sep 17 00:00:00 2001 From: Chan Qin Liang <65329090+qlchan24@users.noreply.github.com> Date: Tue, 22 Dec 2020 11:08:12 +0800 Subject: [PATCH] Include parenthesis on mixin calls to support less 4.0.0 (#28465) --- components/alert/style/index.less | 2 +- components/anchor/style/index.less | 2 +- components/auto-complete/style/index.less | 2 +- components/avatar/style/index.less | 2 +- components/back-top/style/index.less | 2 +- components/badge/style/index.less | 2 +- components/badge/style/ribbon.less | 2 +- components/breadcrumb/style/index.less | 2 +- components/breadcrumb/style/rtl.less | 2 +- components/button/style/index.less | 24 +++++++++++------------ components/calendar/style/index.less | 2 +- components/card/style/index.less | 10 +++++----- components/carousel/style/index.less | 2 +- components/cascader/style/index.less | 8 ++++---- components/checkbox/style/mixin.less | 6 +++--- components/collapse/style/index.less | 4 ++-- components/date-picker/style/index.less | 4 ++-- components/divider/style/index.less | 2 +- components/dropdown/style/index.less | 2 +- components/form/style/index.less | 6 +++--- components/image/style/index.less | 10 +++++----- components/input-number/style/index.less | 4 ++-- components/input/style/index.less | 6 +++--- components/input/style/mixin.less | 2 +- components/list/style/index.less | 2 +- components/mentions/style/index.less | 6 +++--- components/menu/style/index.less | 4 ++-- components/message/style/index.less | 2 +- components/modal/style/modal.less | 4 ++-- components/notification/style/index.less | 2 +- components/page-header/style/index.less | 6 +++--- components/pagination/style/index.less | 6 +++--- components/popover/style/index.less | 2 +- components/progress/style/index.less | 2 +- components/radio/style/index.less | 6 +++--- components/rate/style/index.less | 2 +- components/select/style/index.less | 8 ++++---- components/slider/style/index.less | 2 +- components/spin/style/index.less | 2 +- components/statistic/style/index.less | 2 +- components/steps/style/index.less | 2 +- components/switch/style/index.less | 2 +- components/table/style/index.less | 6 +++--- components/tabs/style/dropdown.less | 2 +- components/tabs/style/index.less | 2 +- components/tag/style/index.less | 2 +- components/timeline/style/index.less | 2 +- components/tooltip/style/index.less | 2 +- components/transfer/style/index.less | 2 +- components/tree/style/mixin.less | 2 +- components/upload/style/index.less | 8 ++++---- 51 files changed, 100 insertions(+), 100 deletions(-) diff --git a/components/alert/style/index.less b/components/alert/style/index.less index 09a28dd974..7c9ffc69bb 100644 --- a/components/alert/style/index.less +++ b/components/alert/style/index.less @@ -4,7 +4,7 @@ @alert-prefix-cls: ~'@{ant-prefix}-alert'; .@{alert-prefix-cls} { - .reset-component; + .reset-component(); position: relative; display: flex; diff --git a/components/anchor/style/index.less b/components/anchor/style/index.less index 909ffd90ab..347bc91417 100644 --- a/components/anchor/style/index.less +++ b/components/anchor/style/index.less @@ -4,7 +4,7 @@ @anchor-border-width: 2px; .@{ant-prefix}-anchor { - .reset-component; + .reset-component(); position: relative; padding-left: @anchor-border-width; diff --git a/components/auto-complete/style/index.less b/components/auto-complete/style/index.less index 0430918761..571e796916 100644 --- a/components/auto-complete/style/index.less +++ b/components/auto-complete/style/index.less @@ -7,7 +7,7 @@ @autocomplete-prefix-cls: ~'@{select-prefix-cls}-auto-complete'; .@{autocomplete-prefix-cls} { - .reset-component; + .reset-component(); // https://github.com/ant-design/ant-design/issues/22302 .@{select-prefix-cls}-clear { diff --git a/components/avatar/style/index.less b/components/avatar/style/index.less index 6ba2dadd5c..62c158384d 100644 --- a/components/avatar/style/index.less +++ b/components/avatar/style/index.less @@ -4,7 +4,7 @@ @avatar-prefix-cls: ~'@{ant-prefix}-avatar'; .@{avatar-prefix-cls} { - .reset-component; + .reset-component(); position: relative; display: inline-block; diff --git a/components/back-top/style/index.less b/components/back-top/style/index.less index b05bb13901..60a3da5759 100644 --- a/components/back-top/style/index.less +++ b/components/back-top/style/index.less @@ -4,7 +4,7 @@ @backtop-prefix-cls: ~'@{ant-prefix}-back-top'; .@{backtop-prefix-cls} { - .reset-component; + .reset-component(); position: fixed; right: 100px; diff --git a/components/badge/style/index.less b/components/badge/style/index.less index 5773d2e500..7908132e9e 100644 --- a/components/badge/style/index.less +++ b/components/badge/style/index.less @@ -5,7 +5,7 @@ @number-prefix-cls: ~'@{ant-prefix}-scroll-number'; .@{badge-prefix-cls} { - .reset-component; + .reset-component(); position: relative; display: inline-block; diff --git a/components/badge/style/ribbon.less b/components/badge/style/ribbon.less index 2787137517..b2ea714c04 100644 --- a/components/badge/style/ribbon.less +++ b/components/badge/style/ribbon.less @@ -9,7 +9,7 @@ } .@{ribbon-prefix-cls} { - .reset-component; + .reset-component(); position: absolute; top: 8px; diff --git a/components/breadcrumb/style/index.less b/components/breadcrumb/style/index.less index 423c78a0a0..52bba12022 100644 --- a/components/breadcrumb/style/index.less +++ b/components/breadcrumb/style/index.less @@ -4,7 +4,7 @@ @breadcrumb-prefix-cls: ~'@{ant-prefix}-breadcrumb'; .@{breadcrumb-prefix-cls} { - .reset-component; + .reset-component(); color: @breadcrumb-base-color; font-size: @breadcrumb-font-size; diff --git a/components/breadcrumb/style/rtl.less b/components/breadcrumb/style/rtl.less index f962d46011..c1141c9937 100644 --- a/components/breadcrumb/style/rtl.less +++ b/components/breadcrumb/style/rtl.less @@ -1,6 +1,6 @@ .@{breadcrumb-prefix-cls} { &-rtl { - .clearfix; + .clearfix(); direction: rtl; > span { diff --git a/components/button/style/index.less b/components/button/style/index.less index 5aa2bbde4e..2441ef0314 100644 --- a/components/button/style/index.less +++ b/components/button/style/index.less @@ -20,8 +20,8 @@ // It is a render problem of chrome, which is only happened in the codesandbox demo // 0.001px solution works and I don't why line-height: @btn-line-height; - .btn; - .btn-default; + .btn(); + .btn-default(); // Fix loading button animation // https://github.com/ant-design/ant-design/issues/24323 @@ -30,7 +30,7 @@ } &-primary { - .btn-primary; + .btn-primary(); .@{btn-prefix-cls}-group &:not(:first-child):not(:last-child) { border-right-color: @btn-group-border; @@ -62,41 +62,41 @@ } &-ghost { - .btn-ghost; + .btn-ghost(); } &-dashed { - .btn-dashed; + .btn-dashed(); } // type="danger" will deprecated // use danger instead &-danger { - .btn-danger; + .btn-danger(); } &-link { - .btn-link; + .btn-link(); } &-text { - .btn-text; + .btn-text(); } &-dangerous { - .btn-danger-default; + .btn-danger-default(); } &-dangerous&-primary { - .btn-danger; + .btn-danger(); } &-dangerous&-link { - .btn-danger-link; + .btn-danger-link(); } &-dangerous&-text { - .btn-danger-text; + .btn-danger-text(); } &-icon-only { diff --git a/components/calendar/style/index.less b/components/calendar/style/index.less index 4828a5b7ff..48d4b54051 100644 --- a/components/calendar/style/index.less +++ b/components/calendar/style/index.less @@ -5,7 +5,7 @@ @calendar-picker-prefix-cls: ~'@{ant-prefix}-picker'; .@{calendar-prefix-cls} { - .reset-component; + .reset-component(); background: @calendar-full-bg; // ========================= Header ========================= diff --git a/components/card/style/index.less b/components/card/style/index.less index 6c750672b5..c48a215a1c 100644 --- a/components/card/style/index.less +++ b/components/card/style/index.less @@ -9,7 +9,7 @@ @gradient-max: fade(@card-skeleton-bg, 40%); .@{card-prefix-cls} { - .reset-component; + .reset-component(); position: relative; background: @card-background; @@ -43,7 +43,7 @@ background: @card-head-background; border-bottom: @border-width-base @border-style-base @border-color-split; border-radius: @card-radius @card-radius 0 0; - .clearfix; + .clearfix(); &-wrapper { display: flex; @@ -96,7 +96,7 @@ &-body { padding: @card-padding-base; - .clearfix; + .clearfix(); } &-contain-grid:not(&-loading) &-body { @@ -160,7 +160,7 @@ list-style: none; background: @card-actions-background; border-top: @border-width-base @border-style-base @border-color-split; - .clearfix; + .clearfix(); & > li { float: left; @@ -230,7 +230,7 @@ &-meta { margin: -4px 0; - .clearfix; + .clearfix(); &-avatar { float: left; diff --git a/components/carousel/style/index.less b/components/carousel/style/index.less index 6d312f694e..6cbfb93138 100644 --- a/components/carousel/style/index.less +++ b/components/carousel/style/index.less @@ -4,7 +4,7 @@ @carousel-prefix-cls: ~'@{ant-prefix}-carousel'; .@{carousel-prefix-cls} { - .reset-component; + .reset-component(); .slick-slider { position: relative; diff --git a/components/cascader/style/index.less b/components/cascader/style/index.less index 6f0a37a05f..89cc37e637 100644 --- a/components/cascader/style/index.less +++ b/components/cascader/style/index.less @@ -5,7 +5,7 @@ @cascader-prefix-cls: ~'@{ant-prefix}-cascader'; .@{cascader-prefix-cls} { - .reset-component; + .reset-component(); &-input.@{ant-prefix}-input { // Keep it static for https://github.com/ant-design/ant-design/issues/16738 @@ -24,7 +24,7 @@ } &-picker { - .reset-component; + .reset-component(); position: relative; display: inline-block; @@ -48,7 +48,7 @@ } &:focus .@{cascader-prefix-cls}-input { - .active; + .active(); } &-borderless .@{cascader-prefix-cls}-input { @@ -116,7 +116,7 @@ // https://github.com/ant-design/ant-design/pull/12407#issuecomment-424657810 &-picker-label:hover + &-input { &:not(.@{cascader-prefix-cls}-picker-disabled &) { - .hover; + .hover(); } } diff --git a/components/checkbox/style/mixin.less b/components/checkbox/style/mixin.less index e46238cd57..990fcd79dd 100644 --- a/components/checkbox/style/mixin.less +++ b/components/checkbox/style/mixin.less @@ -4,7 +4,7 @@ @checkbox-inner-prefix-cls: ~'@{checkbox-prefix-cls}-inner'; // 一般状态 .@{checkbox-prefix-cls} { - .reset-component; + .reset-component(); position: relative; top: -0.09em; @@ -147,7 +147,7 @@ } .@{checkbox-prefix-cls}-wrapper { - .reset-component; + .reset-component(); display: inline-block; line-height: unset; @@ -166,7 +166,7 @@ } .@{checkbox-prefix-cls}-group { - .reset-component; + .reset-component(); display: inline-block; &-item { diff --git a/components/collapse/style/index.less b/components/collapse/style/index.less index 0fb269be4b..29b4ccf5b2 100644 --- a/components/collapse/style/index.less +++ b/components/collapse/style/index.less @@ -4,7 +4,7 @@ @collapse-prefix-cls: ~'@{ant-prefix}-collapse'; .@{collapse-prefix-cls} { - .reset-component; + .reset-component(); background-color: @collapse-header-bg; border: @border-width-base @border-style-base @border-color-base; @@ -29,7 +29,7 @@ line-height: @line-height-base; cursor: pointer; transition: all 0.3s; - .clearfix; + .clearfix(); .@{collapse-prefix-cls}-arrow { .iconfont-mixin(); diff --git a/components/date-picker/style/index.less b/components/date-picker/style/index.less index 335e129500..f4141a72d1 100644 --- a/components/date-picker/style/index.less +++ b/components/date-picker/style/index.less @@ -21,7 +21,7 @@ @input-padding-vertical-sm - 2 * @border-width-base; @arrow-size: 10px; - .reset-component; + .reset-component(); .picker-padding(@input-height-base, @font-size-base, @input-padding-horizontal-base); position: relative; display: inline-flex; @@ -217,7 +217,7 @@ // ======================= Dropdown ======================= &-dropdown { - .reset-component; + .reset-component(); position: absolute; z-index: @zindex-picker; diff --git a/components/divider/style/index.less b/components/divider/style/index.less index e4aa6714ca..82377f7c91 100644 --- a/components/divider/style/index.less +++ b/components/divider/style/index.less @@ -4,7 +4,7 @@ @divider-prefix-cls: ~'@{ant-prefix}-divider'; .@{divider-prefix-cls} { - .reset-component; + .reset-component(); border-top: @border-width-base solid @divider-color; diff --git a/components/dropdown/style/index.less b/components/dropdown/style/index.less index 3acb49345d..5319945450 100644 --- a/components/dropdown/style/index.less +++ b/components/dropdown/style/index.less @@ -5,7 +5,7 @@ @dropdown-prefix-cls: ~'@{ant-prefix}-dropdown'; .@{dropdown-prefix-cls} { - .reset-component; + .reset-component(); position: absolute; top: -9999px; diff --git a/components/form/style/index.less b/components/form/style/index.less index fea4524705..a4241f51b6 100644 --- a/components/form/style/index.less +++ b/components/form/style/index.less @@ -15,8 +15,8 @@ @form-font-height: ceil(@font-size-base * @line-height-base); .@{form-prefix-cls} { - .reset-component; - .reset-form; + .reset-component(); + .reset-form(); .@{form-prefix-cls}-text { display: inline-block; @@ -57,7 +57,7 @@ // = Item = // ================================================================ .@{form-item-prefix-cls} { - .reset-component; + .reset-component(); margin-bottom: @form-item-margin-bottom; vertical-align: top; diff --git a/components/image/style/index.less b/components/image/style/index.less index 78eafaeee9..45f8460526 100644 --- a/components/image/style/index.less +++ b/components/image/style/index.less @@ -21,17 +21,17 @@ } &-placeholder { - .box; + .box(); } &-preview { - .modal-mask; + .modal-mask(); height: 100%; text-align: center; &-body { - .box; + .box(); overflow: hidden; } @@ -45,7 +45,7 @@ user-select: none; pointer-events: auto; &-wrapper { - .box; + .box(); transition: transform 0.3s @ease-out 0s; &::before { display: inline-block; @@ -71,7 +71,7 @@ } &-operations { - .reset-component; + .reset-component(); position: absolute; top: 0; right: 0; diff --git a/components/input-number/style/index.less b/components/input-number/style/index.less index f059851f48..7ff61c6f0d 100644 --- a/components/input-number/style/index.less +++ b/components/input-number/style/index.less @@ -6,8 +6,8 @@ @form-item-prefix-cls: ~'@{ant-prefix}-form-item'; .@{input-number-prefix-cls} { - .reset-component; - .input; + .reset-component(); + .input(); display: inline-block; width: 90px; diff --git a/components/input/style/index.less b/components/input/style/index.less index 51142d3a87..30db6042c6 100644 --- a/components/input/style/index.less +++ b/components/input/style/index.less @@ -6,12 +6,12 @@ // Input styles .@{ant-prefix}-input { - .reset-component; - .input; + .reset-component(); + .input(); //== Style for input-group: input with label, with button or dropdown... &-group { - .reset-component; + .reset-component(); .input-group(~'@{ant-prefix}-input'); &-wrapper { display: inline-block; diff --git a/components/input/style/mixin.less b/components/input/style/mixin.less index 2b824cdd5f..73d7c1452e 100644 --- a/components/input/style/mixin.less +++ b/components/input/style/mixin.less @@ -290,7 +290,7 @@ &&-compact { display: block; - .clearfix; + .clearfix(); &-addon, &-wrap, diff --git a/components/list/style/index.less b/components/list/style/index.less index ddb14a128a..72e75eec4b 100644 --- a/components/list/style/index.less +++ b/components/list/style/index.less @@ -5,7 +5,7 @@ @list-prefix-cls: ~'@{ant-prefix}-list'; .@{list-prefix-cls} { - .reset-component; + .reset-component(); position: relative; diff --git a/components/mentions/style/index.less b/components/mentions/style/index.less index b2476bfc47..d2285d943c 100644 --- a/components/mentions/style/index.less +++ b/components/mentions/style/index.less @@ -5,8 +5,8 @@ @mention-prefix-cls: ~'@{ant-prefix}-mentions'; .@{mention-prefix-cls} { - .reset-component; - .input; + .reset-component(); + .input(); position: relative; display: inline-block; @@ -85,7 +85,7 @@ // ================== Dropdown ================== &-dropdown { // Ref select dropdown style - .reset-component; + .reset-component(); position: absolute; top: -9999px; diff --git a/components/menu/style/index.less b/components/menu/style/index.less index 1b17311566..e6da98c923 100644 --- a/components/menu/style/index.less +++ b/components/menu/style/index.less @@ -6,7 +6,7 @@ // default theme .@{menu-prefix-cls} { - .reset-component; + .reset-component(); margin-bottom: 0; padding-left: 0; // Override default ul/ol @@ -19,7 +19,7 @@ outline: none; box-shadow: @box-shadow-base; transition: background 0.3s, width 0.3s cubic-bezier(0.2, 0, 0, 1) 0s; - .clearfix; + .clearfix(); ul, ol { diff --git a/components/message/style/index.less b/components/message/style/index.less index 3f8529683a..67245372bd 100644 --- a/components/message/style/index.less +++ b/components/message/style/index.less @@ -4,7 +4,7 @@ @message-prefix-cls: ~'@{ant-prefix}-message'; .@{message-prefix-cls} { - .reset-component; + .reset-component(); position: fixed; top: 8px; diff --git a/components/modal/style/modal.less b/components/modal/style/modal.less index 1f0fef86f7..198a4111da 100644 --- a/components/modal/style/modal.less +++ b/components/modal/style/modal.less @@ -2,8 +2,8 @@ @table-prefix-cls: ~'@{ant-prefix}-table'; .@{dialog-prefix-cls} { - .reset-component; - .modal-mask; + .reset-component(); + .modal-mask(); position: relative; top: 100px; diff --git a/components/notification/style/index.less b/components/notification/style/index.less index e3dbc42c6d..e001323d8c 100644 --- a/components/notification/style/index.less +++ b/components/notification/style/index.less @@ -9,7 +9,7 @@ @notification-margin-edge: 24px; .@{notification-prefix-cls} { - .reset-component; + .reset-component(); position: fixed; z-index: @zindex-notification; diff --git a/components/page-header/style/index.less b/components/page-header/style/index.less index 793cf38dc4..f74a60ec69 100644 --- a/components/page-header/style/index.less +++ b/components/page-header/style/index.less @@ -4,7 +4,7 @@ @pageheader-prefix-cls: ~'@{ant-prefix}-page-header'; .@{pageheader-prefix-cls} { - .reset-component; + .reset-component(); position: relative; padding: @page-header-padding-vertical @page-header-padding; background-color: @component-background; @@ -67,7 +67,7 @@ font-weight: 600; font-size: @page-header-heading-title; line-height: 32px; - .text-overflow-ellipsis; + .text-overflow-ellipsis(); } .@{ant-prefix}-avatar { @@ -79,7 +79,7 @@ color: @text-color-secondary; font-size: @page-header-heading-sub-title; line-height: @line-height-base; - .text-overflow-ellipsis; + .text-overflow-ellipsis(); } &-extra { diff --git a/components/pagination/style/index.less b/components/pagination/style/index.less index 7ae0dfde22..bbc707b370 100644 --- a/components/pagination/style/index.less +++ b/components/pagination/style/index.less @@ -5,7 +5,7 @@ @pagination-prefix-cls: ~'@{ant-prefix}-pagination'; .@{pagination-prefix-cls} { - .reset-component; + .reset-component(); ul, ol { @@ -241,7 +241,7 @@ vertical-align: top; input { - .input; + .input(); width: 50px; margin: 0 8px; @@ -350,7 +350,7 @@ line-height: @pagination-item-size-sm; input { - .input-sm; + .input-sm(); width: 44px; } diff --git a/components/popover/style/index.less b/components/popover/style/index.less index b15e50644d..a981c1c15c 100644 --- a/components/popover/style/index.less +++ b/components/popover/style/index.less @@ -4,7 +4,7 @@ @popover-prefix-cls: ~'@{ant-prefix}-popover'; .@{popover-prefix-cls} { - .reset-component; + .reset-component(); position: absolute; top: 0; diff --git a/components/progress/style/index.less b/components/progress/style/index.less index 338d8d633c..c44dd8bef7 100644 --- a/components/progress/style/index.less +++ b/components/progress/style/index.less @@ -4,7 +4,7 @@ @progress-prefix-cls: ~'@{ant-prefix}-progress'; .@{progress-prefix-cls} { - .reset-component; + .reset-component(); display: inline-block; diff --git a/components/radio/style/index.less b/components/radio/style/index.less index 2c30a74788..f80a75a8a6 100644 --- a/components/radio/style/index.less +++ b/components/radio/style/index.less @@ -9,7 +9,7 @@ @radio-button-focus-shadow: @radio-focus-shadow; .@{radio-group-prefix-cls} { - .reset-component; + .reset-component(); display: inline-block; font-size: 0; @@ -26,7 +26,7 @@ // 一般状态 .@{radio-prefix-cls}-wrapper { - .reset-component; + .reset-component(); position: relative; display: inline-block; @@ -36,7 +36,7 @@ } .@{radio-prefix-cls} { - .reset-component; + .reset-component(); position: relative; top: @radio-top; diff --git a/components/rate/style/index.less b/components/rate/style/index.less index 33584f25f4..d5e9353be4 100644 --- a/components/rate/style/index.less +++ b/components/rate/style/index.less @@ -4,7 +4,7 @@ @rate-prefix-cls: ~'@{ant-prefix}-rate'; .@{rate-prefix-cls} { - .reset-component; + .reset-component(); display: inline-block; margin: 0; diff --git a/components/select/style/index.less b/components/select/style/index.less index 91df06a83f..ab630fa57c 100644 --- a/components/select/style/index.less +++ b/components/select/style/index.less @@ -61,14 +61,14 @@ } .@{select-prefix-cls} { - .reset-component; + .reset-component(); position: relative; display: inline-block; cursor: pointer; &:not(&-customize-input) &-selector { - .select-selector; - .select-search-input-without-border; + .select-selector(); + .select-search-input-without-border(); } &:not(&-disabled):hover &-selector { @@ -176,7 +176,7 @@ // ========================== Popup ========================== &-dropdown { - .reset-component; + .reset-component(); position: absolute; top: -9999px; left: -9999px; diff --git a/components/slider/style/index.less b/components/slider/style/index.less index 492844e859..13ea3a2cc4 100644 --- a/components/slider/style/index.less +++ b/components/slider/style/index.less @@ -4,7 +4,7 @@ @slider-prefix-cls: ~'@{ant-prefix}-slider'; .@{slider-prefix-cls} { - .reset-component; + .reset-component(); position: relative; height: 12px; diff --git a/components/spin/style/index.less b/components/spin/style/index.less index 0851c965d4..8647ce3067 100644 --- a/components/spin/style/index.less +++ b/components/spin/style/index.less @@ -5,7 +5,7 @@ @spin-dot-default: @text-color-secondary; .@{spin-prefix-cls} { - .reset-component; + .reset-component(); position: absolute; display: none; diff --git a/components/statistic/style/index.less b/components/statistic/style/index.less index 9b9ed6eb68..17d023ffa3 100644 --- a/components/statistic/style/index.less +++ b/components/statistic/style/index.less @@ -4,7 +4,7 @@ @statistic-prefix-cls: ~'@{ant-prefix}-statistic'; .@{statistic-prefix-cls} { - .reset-component; + .reset-component(); &-title { margin-bottom: @margin-xss; diff --git a/components/steps/style/index.less b/components/steps/style/index.less index 8929d25e0d..d78ffaa45d 100644 --- a/components/steps/style/index.less +++ b/components/steps/style/index.less @@ -21,7 +21,7 @@ @steps-nav-active-color: @primary-color; .@{steps-prefix-cls} { - .reset-component; + .reset-component(); display: flex; width: 100%; diff --git a/components/switch/style/index.less b/components/switch/style/index.less index 360038da62..a97e99f0b5 100644 --- a/components/switch/style/index.less +++ b/components/switch/style/index.less @@ -8,7 +8,7 @@ @switch-sm-pin-size: @switch-sm-height - 4px; .@{switch-prefix-cls} { - .reset-component; + .reset-component(); position: relative; display: inline-block; diff --git a/components/table/style/index.less b/components/table/style/index.less index e09d71a5e3..ffa37fe4b5 100644 --- a/components/table/style/index.less +++ b/components/table/style/index.less @@ -15,11 +15,11 @@ .@{table-prefix-cls}-wrapper { clear: both; max-width: 100%; - .clearfix; + .clearfix(); } .@{table-prefix-cls} { - .reset-component; + .reset-component(); position: relative; font-size: @table-font-size; background: @table-bg; @@ -312,7 +312,7 @@ // Dropdown &-filter-dropdown { - .reset-component; + .reset-component(); // Reset menu .@{dropdown-prefix-cls}-menu { diff --git a/components/tabs/style/dropdown.less b/components/tabs/style/dropdown.less index d9bcdf9e0b..7cbd909415 100644 --- a/components/tabs/style/dropdown.less +++ b/components/tabs/style/dropdown.less @@ -3,7 +3,7 @@ @import './index'; .@{tab-prefix-cls}-dropdown { - .reset-component; + .reset-component(); position: absolute; top: -9999px; diff --git a/components/tabs/style/index.less b/components/tabs/style/index.less index b569161938..500a4c4b84 100644 --- a/components/tabs/style/index.less +++ b/components/tabs/style/index.less @@ -9,7 +9,7 @@ @tab-prefix-cls: ~'@{ant-prefix}-tabs'; .@{tab-prefix-cls} { - .reset-component; + .reset-component(); display: flex; overflow: hidden; diff --git a/components/tag/style/index.less b/components/tag/style/index.less index 02c7862343..dd959d9a18 100644 --- a/components/tag/style/index.less +++ b/components/tag/style/index.less @@ -4,7 +4,7 @@ @tag-prefix-cls: ~'@{ant-prefix}-tag'; .@{tag-prefix-cls} { - .reset-component; + .reset-component(); display: inline-block; height: auto; diff --git a/components/timeline/style/index.less b/components/timeline/style/index.less index 9c65173396..506e6bace9 100644 --- a/components/timeline/style/index.less +++ b/components/timeline/style/index.less @@ -4,7 +4,7 @@ @timeline-prefix-cls: ~'@{ant-prefix}-timeline'; .@{timeline-prefix-cls} { - .reset-component; + .reset-component(); margin: 0; padding: 0; diff --git a/components/tooltip/style/index.less b/components/tooltip/style/index.less index 53d6ba5d78..9f7607e6ab 100644 --- a/components/tooltip/style/index.less +++ b/components/tooltip/style/index.less @@ -13,7 +13,7 @@ // Base class .@{tooltip-prefix-cls} { - .reset-component; + .reset-component(); position: absolute; z-index: @zindex-tooltip; diff --git a/components/transfer/style/index.less b/components/transfer/style/index.less index 9eeba8c418..5b3e26ed37 100644 --- a/components/transfer/style/index.less +++ b/components/transfer/style/index.less @@ -10,7 +10,7 @@ ); .@{transfer-prefix-cls} { - .reset-component; + .reset-component(); position: relative; display: flex; diff --git a/components/tree/style/mixin.less b/components/tree/style/mixin.less index 4746704214..a2e79fca19 100644 --- a/components/tree/style/mixin.less +++ b/components/tree/style/mixin.less @@ -43,7 +43,7 @@ .antTreeFn(@custom-tree-prefix-cls) { @custom-tree-node-prefix-cls: ~'@{custom-tree-prefix-cls}-treenode'; - .reset-component; + .reset-component(); background: @tree-bg; border-radius: @border-radius-base; transition: background-color 0.3s; diff --git a/components/upload/style/index.less b/components/upload/style/index.less index 4aaf9ca748..99e5c6b87e 100644 --- a/components/upload/style/index.less +++ b/components/upload/style/index.less @@ -7,7 +7,7 @@ @upload-picture-card-border-style: @border-style-base; .@{upload-prefix-cls} { - .reset-component; + .reset-component(); outline: 0; @@ -131,7 +131,7 @@ } &-picture-card-wrapper { - .clearfix; + .clearfix(); display: inline-block; width: 100%; @@ -139,8 +139,8 @@ } .@{upload-prefix-cls}-list { - .reset-component; - .clearfix; + .reset-component(); + .clearfix(); line-height: @line-height-base; // ============================ Item ============================