diff --git a/components/auto-complete/__tests__/__snapshots__/demo.test.js.snap b/components/auto-complete/__tests__/__snapshots__/demo.test.js.snap index caad4b292..b64970890 100644 --- a/components/auto-complete/__tests__/__snapshots__/demo.test.js.snap +++ b/components/auto-complete/__tests__/__snapshots__/demo.test.js.snap @@ -10,7 +10,7 @@ exports[`renders ./components/auto-complete/demo/basic.md correctly 1`] = `
 
- + `; @@ -26,7 +26,7 @@ exports[`renders ./components/auto-complete/demo/certain-category.md correctly 1
 
- + @@ -41,7 +41,7 @@ exports[`renders ./components/auto-complete/demo/custom.md correctly 1`] = `
 
- + `; @@ -56,7 +56,7 @@ exports[`renders ./components/auto-complete/demo/non-case-sensitive.md correctly
 
- + `; @@ -71,7 +71,7 @@ exports[`renders ./components/auto-complete/demo/options.md correctly 1`] = `
 
- + `; @@ -87,7 +87,7 @@ exports[`renders ./components/auto-complete/demo/uncertain-category.md correctly
 
- + diff --git a/components/calendar/__tests__/__snapshots__/demo.test.js.snap b/components/calendar/__tests__/__snapshots__/demo.test.js.snap index e48c4e450..b49312553 100644 --- a/components/calendar/__tests__/__snapshots__/demo.test.js.snap +++ b/components/calendar/__tests__/__snapshots__/demo.test.js.snap @@ -7,14 +7,14 @@ exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
2016
-
+
Nov
-
+
@@ -313,14 +313,14 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
2016
-
+
Nov
-
+
@@ -619,14 +619,14 @@ exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
2016
-
+
Nov
-
+
@@ -1032,14 +1032,14 @@ exports[`renders ./components/calendar/demo/select.md correctly 1`] = `
2017
-
+
Jan
-
+
@@ -1336,14 +1336,14 @@ exports[`renders ./components/calendar/demo/select.md correctly 1`] = `
2017
-
+
Jan
-
+
diff --git a/components/form/__tests__/__snapshots__/demo.test.js.snap b/components/form/__tests__/__snapshots__/demo.test.js.snap index 2e02496d6..0640ade67 100644 --- a/components/form/__tests__/__snapshots__/demo.test.js.snap +++ b/components/form/__tests__/__snapshots__/demo.test.js.snap @@ -126,7 +126,7 @@ exports[`renders ./components/form/demo/coordinated.vue correctly 1`] = `
-
Select a option and change input text above
+
Select a option and change input text above
@@ -147,7 +147,7 @@ exports[`renders ./components/form/demo/customized-form-controls.vue correctly 1
-
RMB
+
RMB
@@ -379,7 +379,7 @@ exports[`renders ./components/form/demo/register.vue correctly 1`] = `
-
+86
+
+86
@@ -391,7 +391,7 @@ exports[`renders ./components/form/demo/register.vue correctly 1`] = `
@@ -498,7 +498,7 @@ exports[`renders ./components/form/demo/validate-other.vue correctly 1`] = `
-
Please select a country
+
Please select a country
@@ -666,7 +666,7 @@ exports[`renders ./components/form/demo/validate-static.vue correctly 1`] = `
-
Option 1
+
Option 1
diff --git a/components/input/__tests__/__snapshots__/demo.test.js.snap b/components/input/__tests__/__snapshots__/demo.test.js.snap index 753457f55..f8f8f5319 100644 --- a/components/input/__tests__/__snapshots__/demo.test.js.snap +++ b/components/input/__tests__/__snapshots__/demo.test.js.snap @@ -3,8 +3,8 @@ exports[`renders ./components/input/demo/addon.md correctly 1`] = `
Http://.com
-
Http://
-
.com
+
Http://
+
.com
@@ -18,19 +18,19 @@ exports[`renders ./components/input/demo/autosize-textarea.md correctly 1`] = ` exports[`renders ./components/input/demo/basic.md correctly 1`] = ``; exports[`renders ./components/input/demo/group.md correctly 1`] = ` -


Zhejiang
-

Option1
-


Option1-1
+


Zhejiang
+

Option1
+


Option1-1
Option2-2
-
+
-
Between
-

Sign Up
+
Between
+

Sign Up
-

Home
+
Home
`; diff --git a/components/locale-provider/__tests__/__snapshots__/demo.test.js.snap b/components/locale-provider/__tests__/__snapshots__/demo.test.js.snap index e9b48be26..aeb01ca9c 100644 --- a/components/locale-provider/__tests__/__snapshots__/demo.test.js.snap +++ b/components/locale-provider/__tests__/__snapshots__/demo.test.js.snap @@ -20,7 +20,7 @@ exports[`renders ./components/locale-provider/demo/all.md correctly 1`] = `
10 / page
-
+
@@ -33,7 +33,7 @@ exports[`renders ./components/locale-provider/demo/all.md correctly 1`] = ` -
+
~ @@ -71,14 +71,14 @@ exports[`renders ./components/locale-provider/demo/all.md correctly 1`] = `
2016
-
+
Nov
-
+
@@ -387,7 +387,7 @@ exports[`renders ./components/locale-provider/demo/basic.md correctly 1`] = `
10 / page
-
+
diff --git a/components/locale-provider/__tests__/__snapshots__/index.test.js.snap b/components/locale-provider/__tests__/__snapshots__/index.test.js.snap index d247d04be..328fc0eb9 100644 --- a/components/locale-provider/__tests__/__snapshots__/index.test.js.snap +++ b/components/locale-provider/__tests__/__snapshots__/index.test.js.snap @@ -549,7 +549,7 @@ exports[`Locale Provider should display the text as ar 1`] = `
10 / الصفحة
-
+
@@ -560,7 +560,7 @@ exports[`Locale Provider should display the text as ar 1`] = ` -
+
~ Click to confirm @@ -591,14 +591,14 @@ exports[`Locale Provider should display the text as ar 1`] = `
2017
-
+
سبتمبر
-
+
@@ -917,7 +917,7 @@ exports[`Locale Provider should display the text as bg 1`] = `
10 / страница
-
+
@@ -928,7 +928,7 @@ exports[`Locale Provider should display the text as bg 1`] = ` -
+
~ Click to confirm @@ -959,14 +959,14 @@ exports[`Locale Provider should display the text as bg 1`] = `
2017
-
+
сеп
-
+
@@ -1285,7 +1285,7 @@ exports[`Locale Provider should display the text as ca 1`] = `
10 / pàgina
-
+
@@ -1296,7 +1296,7 @@ exports[`Locale Provider should display the text as ca 1`] = ` - +
~ Click to confirm @@ -1327,14 +1327,14 @@ exports[`Locale Provider should display the text as ca 1`] = `
2017
-
+
set.
-
+
@@ -1653,7 +1653,7 @@ exports[`Locale Provider should display the text as cs 1`] = `
10 / strana
-
+
@@ -1664,7 +1664,7 @@ exports[`Locale Provider should display the text as cs 1`] = ` - +
~ Click to confirm @@ -1695,14 +1695,14 @@ exports[`Locale Provider should display the text as cs 1`] = `
2017
-
+
zář
-
+
@@ -2021,7 +2021,7 @@ exports[`Locale Provider should display the text as de 1`] = `
10 / Seite
-
+
@@ -2032,7 +2032,7 @@ exports[`Locale Provider should display the text as de 1`] = ` - +
~ Click to confirm @@ -2063,14 +2063,14 @@ exports[`Locale Provider should display the text as de 1`] = `
2017
-
+
Sep.
-
+
@@ -2389,7 +2389,7 @@ exports[`Locale Provider should display the text as el 1`] = `
10 / σελίδα
-
+
@@ -2400,7 +2400,7 @@ exports[`Locale Provider should display the text as el 1`] = ` - +
~ Click to confirm @@ -2431,14 +2431,14 @@ exports[`Locale Provider should display the text as el 1`] = `
2017
-
+
Σεπ
-
+
@@ -2757,7 +2757,7 @@ exports[`Locale Provider should display the text as en 1`] = `
10 / page
-
+
@@ -2768,7 +2768,7 @@ exports[`Locale Provider should display the text as en 1`] = ` - +
~ Click to confirm @@ -2799,14 +2799,14 @@ exports[`Locale Provider should display the text as en 1`] = `
2017
-
+
Sep
-
+
@@ -3125,7 +3125,7 @@ exports[`Locale Provider should display the text as en-gb 1`] = `
10 / page
-
+
@@ -3136,7 +3136,7 @@ exports[`Locale Provider should display the text as en-gb 1`] = ` - +
~ Click to confirm @@ -3167,14 +3167,14 @@ exports[`Locale Provider should display the text as en-gb 1`] = `
2017
-
+
Sep
-
+
@@ -3493,7 +3493,7 @@ exports[`Locale Provider should display the text as es 1`] = `
10 / página
-
+
@@ -3504,7 +3504,7 @@ exports[`Locale Provider should display the text as es 1`] = ` - +
~ Click to confirm @@ -3535,14 +3535,14 @@ exports[`Locale Provider should display the text as es 1`] = `
2017
-
+
sep.
-
+
@@ -3861,7 +3861,7 @@ exports[`Locale Provider should display the text as et 1`] = `
10 / leheküljel
-
+
@@ -3872,7 +3872,7 @@ exports[`Locale Provider should display the text as et 1`] = ` - +
~ Click to confirm @@ -3903,14 +3903,14 @@ exports[`Locale Provider should display the text as et 1`] = `
2017
-
+
sept
-
+
@@ -4229,7 +4229,7 @@ exports[`Locale Provider should display the text as fa 1`] = `
10 / صفحه
-
+
@@ -4240,7 +4240,7 @@ exports[`Locale Provider should display the text as fa 1`] = ` - +
~ Click to confirm @@ -4271,14 +4271,14 @@ exports[`Locale Provider should display the text as fa 1`] = `
2017
-
+
سپتامبر
-
+
@@ -4597,7 +4597,7 @@ exports[`Locale Provider should display the text as fi 1`] = `
10 / sivu
-
+
@@ -4608,7 +4608,7 @@ exports[`Locale Provider should display the text as fi 1`] = ` - +
~ Click to confirm @@ -4639,14 +4639,14 @@ exports[`Locale Provider should display the text as fi 1`] = `
2017
-
+
syys
-
+
@@ -4965,7 +4965,7 @@ exports[`Locale Provider should display the text as fr 1`] = `
10 / page
-
+
@@ -4976,7 +4976,7 @@ exports[`Locale Provider should display the text as fr 1`] = ` - +
~ Click to confirm @@ -5007,14 +5007,14 @@ exports[`Locale Provider should display the text as fr 1`] = `
2017
-
+
sept.
-
+
@@ -5333,7 +5333,7 @@ exports[`Locale Provider should display the text as fr 2`] = `
10 / page
-
+
@@ -5344,7 +5344,7 @@ exports[`Locale Provider should display the text as fr 2`] = ` - +
~ Click to confirm @@ -5375,14 +5375,14 @@ exports[`Locale Provider should display the text as fr 2`] = `
2017
-
+
sept.
-
+
@@ -5701,7 +5701,7 @@ exports[`Locale Provider should display the text as is 1`] = `
10 / síðu
-
+
@@ -5712,7 +5712,7 @@ exports[`Locale Provider should display the text as is 1`] = ` - +
~ Click to confirm @@ -5743,14 +5743,14 @@ exports[`Locale Provider should display the text as is 1`] = `
2017
-
+
sep
-
+
@@ -6069,7 +6069,7 @@ exports[`Locale Provider should display the text as it 1`] = `
10 / pagina
-
+
@@ -6080,7 +6080,7 @@ exports[`Locale Provider should display the text as it 1`] = ` - +
~ Click to confirm @@ -6111,14 +6111,14 @@ exports[`Locale Provider should display the text as it 1`] = `
2017
-
+
set
-
+
@@ -6437,7 +6437,7 @@ exports[`Locale Provider should display the text as ja 1`] = `
10 / ページ
-
+
@@ -6448,7 +6448,7 @@ exports[`Locale Provider should display the text as ja 1`] = ` - +
~ Click to confirm @@ -6479,14 +6479,14 @@ exports[`Locale Provider should display the text as ja 1`] = `
2017年
-
+
9月
-
+
@@ -6805,7 +6805,7 @@ exports[`Locale Provider should display the text as ko 1`] = `
10 / 쪽
-
+
@@ -6816,7 +6816,7 @@ exports[`Locale Provider should display the text as ko 1`] = ` - +
~ Click to confirm @@ -6847,14 +6847,14 @@ exports[`Locale Provider should display the text as ko 1`] = `
2017
-
+
9월
-
+
@@ -7173,7 +7173,7 @@ exports[`Locale Provider should display the text as ku-iq 1`] = `
10 / rûpel
-
+
@@ -7184,7 +7184,7 @@ exports[`Locale Provider should display the text as ku-iq 1`] = ` - +
~ Click to confirm @@ -7215,14 +7215,14 @@ exports[`Locale Provider should display the text as ku-iq 1`] = `
2017
-
+
9月
-
+
@@ -7541,7 +7541,7 @@ exports[`Locale Provider should display the text as nb 1`] = `
10 / side
-
+
@@ -7552,7 +7552,7 @@ exports[`Locale Provider should display the text as nb 1`] = ` - +
~ Click to confirm @@ -7583,14 +7583,14 @@ exports[`Locale Provider should display the text as nb 1`] = `
2017
-
+
sep.
-
+
@@ -7909,7 +7909,7 @@ exports[`Locale Provider should display the text as nl 1`] = `
10 / pagina
-
+
@@ -7920,7 +7920,7 @@ exports[`Locale Provider should display the text as nl 1`] = ` - +
~ Click to confirm @@ -7951,14 +7951,14 @@ exports[`Locale Provider should display the text as nl 1`] = `
2017
-
+
sep.
-
+
@@ -8277,7 +8277,7 @@ exports[`Locale Provider should display the text as nl-be 1`] = `
10 / pagina
-
+
@@ -8288,7 +8288,7 @@ exports[`Locale Provider should display the text as nl-be 1`] = ` - +
~ Click to confirm @@ -8319,14 +8319,14 @@ exports[`Locale Provider should display the text as nl-be 1`] = `
2017
-
+
sep.
-
+
@@ -8645,7 +8645,7 @@ exports[`Locale Provider should display the text as pl 1`] = `
10 / stronę
-
+
@@ -8656,7 +8656,7 @@ exports[`Locale Provider should display the text as pl 1`] = ` - +
~ Click to confirm @@ -8687,14 +8687,14 @@ exports[`Locale Provider should display the text as pl 1`] = `
2017
-
+
wrz
-
+
@@ -9013,7 +9013,7 @@ exports[`Locale Provider should display the text as pt 1`] = `
10 / página
-
+
@@ -9024,7 +9024,7 @@ exports[`Locale Provider should display the text as pt 1`] = ` - +
~ Click to confirm @@ -9055,14 +9055,14 @@ exports[`Locale Provider should display the text as pt 1`] = `
2017
-
+
set
-
+
@@ -9381,7 +9381,7 @@ exports[`Locale Provider should display the text as pt-br 1`] = `
10 / páginas
-
+
@@ -9392,7 +9392,7 @@ exports[`Locale Provider should display the text as pt-br 1`] = ` - +
~ Click to confirm @@ -9423,14 +9423,14 @@ exports[`Locale Provider should display the text as pt-br 1`] = `
2017
-
+
set
-
+
@@ -9749,7 +9749,7 @@ exports[`Locale Provider should display the text as ru 1`] = `
10 / стр.
-
+
@@ -9760,7 +9760,7 @@ exports[`Locale Provider should display the text as ru 1`] = ` - +
~ Click to confirm @@ -9791,14 +9791,14 @@ exports[`Locale Provider should display the text as ru 1`] = `
2017
-
+
сент.
-
+
@@ -10117,7 +10117,7 @@ exports[`Locale Provider should display the text as sk 1`] = `
10 / strana
-
+
@@ -10128,7 +10128,7 @@ exports[`Locale Provider should display the text as sk 1`] = ` - +
~ Click to confirm @@ -10159,14 +10159,14 @@ exports[`Locale Provider should display the text as sk 1`] = `
2017
-
+
sep
-
+
@@ -10485,7 +10485,7 @@ exports[`Locale Provider should display the text as sl 1`] = `
10 / strani
-
+
@@ -10496,7 +10496,7 @@ exports[`Locale Provider should display the text as sl 1`] = ` - +
~ Click to confirm @@ -10527,14 +10527,14 @@ exports[`Locale Provider should display the text as sl 1`] = `
2017
-
+
sep.
-
+
@@ -10853,7 +10853,7 @@ exports[`Locale Provider should display the text as sr 1`] = `
10 / strani
-
+
@@ -10864,7 +10864,7 @@ exports[`Locale Provider should display the text as sr 1`] = ` - +
~ Click to confirm @@ -10895,14 +10895,14 @@ exports[`Locale Provider should display the text as sr 1`] = `
2017
-
+
sep.
-
+
@@ -11221,7 +11221,7 @@ exports[`Locale Provider should display the text as sv 1`] = `
10 / sida
-
+
@@ -11232,7 +11232,7 @@ exports[`Locale Provider should display the text as sv 1`] = ` - +
~ Click to confirm @@ -11263,14 +11263,14 @@ exports[`Locale Provider should display the text as sv 1`] = `
2017
-
+
sep
-
+
@@ -11589,7 +11589,7 @@ exports[`Locale Provider should display the text as th 1`] = `
10 / หน้า
-
+
@@ -11600,7 +11600,7 @@ exports[`Locale Provider should display the text as th 1`] = ` - +
~ Click to confirm @@ -11631,14 +11631,14 @@ exports[`Locale Provider should display the text as th 1`] = `
2017
-
+
ก.ย.
-
+
@@ -11957,7 +11957,7 @@ exports[`Locale Provider should display the text as tr 1`] = `
10 / sayfa
-
+
@@ -11968,7 +11968,7 @@ exports[`Locale Provider should display the text as tr 1`] = ` - +
~ Click to confirm @@ -11999,14 +11999,14 @@ exports[`Locale Provider should display the text as tr 1`] = `
2017
-
+
Eyl
-
+
@@ -12325,7 +12325,7 @@ exports[`Locale Provider should display the text as uk 1`] = `
10 / сторінці
-
+
@@ -12336,7 +12336,7 @@ exports[`Locale Provider should display the text as uk 1`] = ` - +
~ Click to confirm @@ -12367,14 +12367,14 @@ exports[`Locale Provider should display the text as uk 1`] = `
2017
-
+
вер
-
+
@@ -12693,7 +12693,7 @@ exports[`Locale Provider should display the text as vi 1`] = `
10 / trang
-
+
@@ -12704,7 +12704,7 @@ exports[`Locale Provider should display the text as vi 1`] = ` - +
~ Click to confirm @@ -12735,14 +12735,14 @@ exports[`Locale Provider should display the text as vi 1`] = `
2017
-
+
Th09
-
+
@@ -13061,7 +13061,7 @@ exports[`Locale Provider should display the text as zh-cn 1`] = `
10 条/页
-
+
@@ -13072,7 +13072,7 @@ exports[`Locale Provider should display the text as zh-cn 1`] = ` - +
~ Click to confirm @@ -13103,14 +13103,14 @@ exports[`Locale Provider should display the text as zh-cn 1`] = `
2017年
-
+
9月
-
+
@@ -13429,7 +13429,7 @@ exports[`Locale Provider should display the text as zh-tw 1`] = `
10 條/頁
-
+
@@ -13440,7 +13440,7 @@ exports[`Locale Provider should display the text as zh-tw 1`] = ` - +
~ Click to confirm @@ -13471,14 +13471,14 @@ exports[`Locale Provider should display the text as zh-tw 1`] = `
2017年
-
+
9月
-
+
diff --git a/components/notification/__tests__/__snapshots__/demo.test.js.snap b/components/notification/__tests__/__snapshots__/demo.test.js.snap index 97543f0d8..ea04f975a 100644 --- a/components/notification/__tests__/__snapshots__/demo.test.js.snap +++ b/components/notification/__tests__/__snapshots__/demo.test.js.snap @@ -14,7 +14,7 @@ exports[`renders ./components/notification/demo/placement.md correctly 1`] = `
topRight
-
+
diff --git a/components/pagination/__tests__/__snapshots__/demo.test.js.snap b/components/pagination/__tests__/__snapshots__/demo.test.js.snap index 0d5ce26ba..f9284e04c 100644 --- a/components/pagination/__tests__/__snapshots__/demo.test.js.snap +++ b/components/pagination/__tests__/__snapshots__/demo.test.js.snap @@ -30,7 +30,7 @@ exports[`renders ./components/pagination/demo/changer.md correctly 1`] = `
10 / page
-
+
@@ -51,7 +51,7 @@ exports[`renders ./components/pagination/demo/changer.md correctly 1`] = `
20 / page
-
+
@@ -88,7 +88,7 @@ exports[`renders ./components/pagination/demo/custom-changer.md correctly 1`] =
10条/页
- + @@ -152,7 +152,7 @@ exports[`renders ./components/pagination/demo/mini.md correctly 1`] = `
10 / page
-
+
Goto
diff --git a/components/select/__tests__/__snapshots__/demo.test.js.snap b/components/select/__tests__/__snapshots__/demo.test.js.snap index a88a7ff3e..f99bd46fe 100644 --- a/components/select/__tests__/__snapshots__/demo.test.js.snap +++ b/components/select/__tests__/__snapshots__/demo.test.js.snap @@ -20,14 +20,14 @@ exports[`renders ./components/select/demo/basic.md correctly 1`] = `
Lucy
-
+
Lucy
-
+
@@ -39,14 +39,14 @@ exports[`renders ./components/select/demo/coordinate.md correctly 1`] = `
Zhejiang
-
+
Hangzhou
-
+
@@ -57,7 +57,7 @@ exports[`renders ./components/select/demo/label-in-value.md correctly 1`] = `
Lucy (101)
-
+
`; @@ -69,10 +69,10 @@ exports[`renders ./components/select/demo/multiple.md correctly 1`] = `
  • -
    a1
    +
    a1
    ×
  • -
    b2
    +
    b2
    ×
  • `; @@ -98,7 +98,7 @@ exports[`renders ./components/select/demo/options.md correctly 1`] = `
    北京
    -
    +
    `; @@ -111,7 +111,7 @@ exports[`renders ./components/select/demo/search.md correctly 1`] = ` - + `; @@ -155,7 +155,7 @@ exports[`renders ./components/select/demo/size.md correctly 1`] = ` " class="ant-select-selection-selected-value" style="display: block; opacity: 1;"> a1 - +
    @@ -168,14 +168,14 @@ exports[`renders ./components/select/demo/size.md correctly 1`] = ` " class="ant-select-selection__choice">
    a1 -
    +
    ×
  • b2 -
    + ×
  • b2 -
    + ×
  • ) }) @@ -1585,15 +1350,16 @@ const Select = { renderClear () { const { prefixCls, allowClear } = this.$props const { _value: value, _inputValue: inputValue } = this.$data + const clearIcon = getComponentFromProp(this, 'clearIcon') const clear = ( + >{clearIcon || ×} ) if (!allowClear) { return null @@ -1609,16 +1375,7 @@ const Select = { } return null }, - // rootRefClick (e) { - // // e.stopPropagation() - // if (this._focused) { - // // this.getInputDOMNode().blur() - // this.onOuterBlur() - // } else { - // this.onOuterFocus() - // // this.getInputDOMNode().focus() - // } - // }, + selectionRefClick (e) { e.stopPropagation() if (!this.disabled) { @@ -1655,6 +1412,7 @@ const Select = { const multiple = isMultipleOrTags(props) const state = this.$data const { disabled, prefixCls } = props + const inputIcon = getComponentFromProp(this, 'inputIcon') const ctrlNode = this.renderTopControlNode() const { _open: open, _inputValue: inputValue, _value: value } = this.$data if (open) { @@ -1729,6 +1487,7 @@ const Select = { onMouseenter={mouseenter} onMouseleave={mouseleave} showAction={props.showAction} + menuItemSelectedIcon={getComponentFromProp(this, 'menuItemSelectedIcon')} {...{ directives: [{ name: 'ref', value: this.saveSelectTriggerRef, @@ -1741,6 +1500,9 @@ const Select = { }] }} style={getStyle(this)} class={classnames(rootCls)} + onMousedown={this.markMouseDown} + onMouseup={this.markMouseLeave} + onMouseout={this.markMouseLeave} // tabindex='-1' // onBlur={this.onOuterBlur} // onFocus={this.onOuterFocus} @@ -1756,7 +1518,7 @@ const Select = { unselectable='unselectable' // onClick={this.onArrowClick} > - + {inputIcon || } )} diff --git a/components/vc-select/assets/index.less b/components/vc-select/assets/index.less index 68bb0719b..35cbf7184 100644 --- a/components/vc-select/assets/index.less +++ b/components/vc-select/assets/index.less @@ -14,12 +14,6 @@ color: #666; line-height: 28px; - &-allow-clear { - .@{selectPrefixCls}-selection--single .@{selectPrefixCls}-selection__rendered { - padding-right: 40px; - } - } - ul, li { margin: 0; padding: 0; @@ -39,8 +33,10 @@ right: 1px; width: 20px; outline: none; - b { - border-color: #999999 transparent transparent transparent; + } + + &-arrow &-arrow-icon { + border-color: #999999 transparent transparent transparent; border-style: solid; border-width: 5px 4px 0 4px; height: 0; @@ -50,7 +46,6 @@ position: absolute; top: 50%; left: 50%; - } } &-selection { @@ -75,9 +70,8 @@ font-weight: bold; position: absolute; line-height: 28px; - - &:after { - content: '×' + &-icon { + font-style: normal; } } } @@ -118,7 +112,6 @@ white-space: nowrap; text-overflow: ellipsis; margin-left: 10px; - padding-right: 20px; line-height: 28px; } @@ -318,8 +311,9 @@ top: 0; right: 2px; transition: opacity .3s, transform .3s; - &:before { - content: '×' + + &-icon { + font-style: normal; } &:hover { diff --git a/components/vc-select/index.js b/components/vc-select/index.js index 4ed5aea9b..17ad5872a 100644 --- a/components/vc-select/index.js +++ b/components/vc-select/index.js @@ -1,4 +1,4 @@ -// based on vc-select 7.7.5 +// based on vc-select 8.4.4 import ProxySelect, { Select } from './Select' import Option from './Option' import { SelectPropTypes } from './PropTypes'