diff --git a/components/cascader/demo/basic.md b/components/cascader/demo/basic.md index c60b6e8c45..2c093c06ff 100644 --- a/components/cascader/demo/basic.md +++ b/components/cascader/demo/basic.md @@ -24,31 +24,7 @@ const options = [{ label: '杭州', children: [{ value: 'xihu', - label: '西湖西湖西湖西湖西湖西湖', - }, { - value: 'xihu1', - label: '西湖西湖西湖西湖西湖西湖', - }, { - value: 'xihu2', - label: '西湖西湖西湖西湖西湖西湖', - }, { - value: 'xihu3', - label: '西湖西湖西湖西湖西湖西湖', - }, { - value: 'xihu4', - label: '西湖西湖西湖西湖西湖西湖', - }, { - value: 'xihu5', - label: '西湖西湖西湖西湖西湖西湖', - }, { - value: 'xihu6', - label: '西湖西湖西湖西湖西湖西湖', - }, { - value: 'xihu7', - label: '西湖西湖西湖西湖西湖西湖', - }, { - value: 'xihu8', - label: '西湖西湖西湖西湖西湖西湖', + label: '西湖', }], }], }, { @@ -59,7 +35,7 @@ const options = [{ label: '南京', children: [{ value: 'zhonghuamen', - label: '中华门中华门中华门中华门中华门', + label: '中华门', }], }], }]; diff --git a/components/cascader/style/index.less b/components/cascader/style/index.less index 93ed7ced21..5e12146ff8 100644 --- a/components/cascader/style/index.less +++ b/components/cascader/style/index.less @@ -9,7 +9,6 @@ display: block; cursor: pointer; width: 100%; - background: rgba(255, 255, 255, 0); z-index: 1; } &-picker { @@ -37,13 +36,14 @@ overflow: hidden; width: 100%; padding: 0 12px 0 8px; + z-index: 1; } &-clear { opacity: 0; position: absolute; right: 8px; - z-index: 1; + z-index: 2; background: #fff; top: 50%; font-size: 12px; @@ -66,6 +66,7 @@ // arrow &-arrow { position: absolute; + z-index: 1; top: 50%; right: 8px; width: 12px; @@ -73,7 +74,6 @@ margin-top: -6px; line-height: 12px; color: #999; - background: #fff; .iconfont-size-under-12px(8px); &:before { transition: transform 0.2s ease; diff --git a/components/date-picker/style/Picker.less b/components/date-picker/style/Picker.less index 66f2760669..d2c1c05ef4 100644 --- a/components/date-picker/style/Picker.less +++ b/components/date-picker/style/Picker.less @@ -39,9 +39,9 @@ } &-clear { opacity: 0; + z-index: -1; position: absolute; right: 7px; - z-index: 1; background: #fff; top: 50%; font-size: 12px; @@ -59,6 +59,7 @@ &:hover &-clear { opacity: 1; + z-index: 1; } &-icon { position: absolute; diff --git a/components/tag/index.tsx b/components/tag/index.tsx index abe2c47735..fcb48a56c2 100644 --- a/components/tag/index.tsx +++ b/components/tag/index.tsx @@ -86,7 +86,12 @@ export default class Tag extends React.Component { onEnd={this.animationEnd} > {this.state.closed ? null : ( -
+
{children} {closeIcon}
diff --git a/components/tree-select/style/index.less b/components/tree-select/style/index.less index bba53e7905..1d8b4b27f5 100644 --- a/components/tree-select/style/index.less +++ b/components/tree-select/style/index.less @@ -118,3 +118,10 @@ cursor: not-allowed; display: block; } + +.ant-select-not-found { + cursor: not-allowed; + color: #ccc; + padding: 7px 15px; + display: block; +} diff --git a/components/upload/style/index.less b/components/upload/style/index.less index fb37c45ffd..58f2f9800b 100644 --- a/components/upload/style/index.less +++ b/components/upload/style/index.less @@ -237,7 +237,7 @@ } &-picture-card { - display: inline-block; + display: inline; .@{upload-item} { display: inline-block; @@ -317,6 +317,7 @@ } .@{upload-item}-info { + height: auto; &:before, .anticon-eye-o, .anticon-delete {