diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4adf39ef5..f393719da 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,11 @@
# 更新日志
+## 2.11.0
+
+- 新增 `` altCalendarPreset 预设历法信息(支持中国农历和印度节假日),altCalendar 自定义日期显示,dateMarkRender 自定义日期右上角显示标志,dateMarkPreset 预设右上角显示标志「班」和「休」 [#902](https://github.com/XiaoMi/hiui/issues/902)[#992](https://github.com/XiaoMi/hiui/issues/992)
+- 修复 `
` 高亮、展开对应菜单项不正确的问题 [#993](https://github.com/XiaoMi/hiui/issues/993)
+- 优化若干视觉还原问题:[#990](https://github.com/XiaoMi/hiui/issues/990) [#991](https://github.com/XiaoMi/hiui/issues/991) [#998](https://github.com/XiaoMi/hiui/issues/998) [#1000](https://github.com/XiaoMi/hiui/issues/1000) [#954](https://github.com/XiaoMi/hiui/issues/954) [#1001](https://github.com/XiaoMi/hiui/issues/1001) [#1002](https://github.com/XiaoMi/hiui/issues/1002) [#1003](https://github.com/XiaoMi/hiui/issues/1003) [#1004](https://github.com/XiaoMi/hiui/issues/1004) [#1005](https://github.com/XiaoMi/hiui/issues/1005)
+
## 2.10.0
- 新增 `` onDownload 点击上传成功文件的回调 [#613](https://github.com/XiaoMi/hiui/issues/613)
diff --git a/components/alert/style/index.scss b/components/alert/style/index.scss
index 4022cef0b..2aa75598c 100755
--- a/components/alert/style/index.scss
+++ b/components/alert/style/index.scss
@@ -2,7 +2,7 @@
.hi-alert {
position: relative;
- padding: 9px 12px;
+ padding: 9px 11px;
background: #ebf2fd;
border: 1px solid #b3cdfb;
border-radius: 2px;
@@ -89,8 +89,15 @@
.hi-alert.theme__#{$key} {
&.info {
color: $value;
- background-color: rgba(map-get(get-palette(get-color($palette-primary, $key)), '50'), 0.1);
- border: 1px solid map-get(get-palette(get-color($palette-primary, $key)), '20');
+ background-color:
+ rgba(
+ map-get(get-palette(get-color($palette-primary, $key)), '50'),
+ 0.1
+ );
+ border:
+ 1px
+ solid
+ map-get(get-palette(get-color($palette-primary, $key)), '20');
}
}
}
diff --git a/components/badge/style/index.scss b/components/badge/style/index.scss
index 977e08ef9..a19facc4f 100755
--- a/components/badge/style/index.scss
+++ b/components/badge/style/index.scss
@@ -11,6 +11,7 @@
transform: translateX(50%);
height: 16px;
padding: 0 4px;
+ min-width: 8px;
border: 2px solid #fff;
border-radius: 10px;
line-height: 16px;
@@ -29,7 +30,7 @@
position: absolute;
width: 8px;
height: 8px;
- top: -7px;
+ top: -5px;
right: -5px;
background: #f44141;
border: 1px solid #fff;
diff --git a/components/carousel/style/index.scss b/components/carousel/style/index.scss
index 34d58f669..b8653ad91 100644
--- a/components/carousel/style/index.scss
+++ b/components/carousel/style/index.scss
@@ -1,6 +1,6 @@
.hi-carousel {
width: 100%;
- color: rgba(153, 153, 153, 1);
+ color: #fff;
overflow: hidden;
position: relative;
@@ -69,6 +69,10 @@
margin-left: 24px;
cursor: pointer;
+ &:hover {
+ background: rgba(0, 0, 0, 0.45);
+ }
+
&:last-child {
margin-right: 24px;
}
diff --git a/components/cascader/style/cascader.scss b/components/cascader/style/cascader.scss
index 26695e6e2..8dcb72950 100644
--- a/components/cascader/style/cascader.scss
+++ b/components/cascader/style/cascader.scss
@@ -36,7 +36,7 @@ $cascader: 'hi-cascader' !default;
display: flex;
align-items: center;
padding: 5px 12px;
- border: 1px solid #d9d9d9;
+ border: 1px solid #d8d8d8;
}
&__input-keyword {
diff --git a/components/collapse/style/index.scss b/components/collapse/style/index.scss
index 7dbc163c1..0b052f9f3 100755
--- a/components/collapse/style/index.scss
+++ b/components/collapse/style/index.scss
@@ -6,7 +6,7 @@
font-size: 14px;
.collapse-item {
- border-bottom: 1px solid #d9d9d9;
+ border-bottom: 1px solid #d8d8d8;
&__head {
display: flex;
diff --git a/components/counter/style/index.scss b/components/counter/style/index.scss
index 9885177f0..6cf331eaf 100644
--- a/components/counter/style/index.scss
+++ b/components/counter/style/index.scss
@@ -32,7 +32,7 @@ $counter: 'hi-counter' !default;
width: $m-width-ceil;
height: $m-width-ceil;
line-height: $m-width-ceil;
- border: 1px solid $border-color-normal;
+ border: 1px solid $gray-light;
border-radius: 2px;
font-weight: bold;
color: $active-color;
@@ -64,7 +64,7 @@ $counter: 'hi-counter' !default;
flex: 1 1 auto;
width: 2 * $m-width-ceil;
padding: 0 6px;
- border: 1px solid $border-color-normal;
+ border: 1px solid $gray-light;
color: $normal-color;
outline: none;
box-sizing: border-box;
diff --git a/components/date-picker/Calender.js b/components/date-picker/Calender.js
index 6623239e8..77c06d61c 100644
--- a/components/date-picker/Calender.js
+++ b/components/date-picker/Calender.js
@@ -249,19 +249,19 @@ class Calender extends Component {
const LunarInfo = Lunar.toLunar(_year, _month, _value)
let lunarcellinfo = {
text: altCalendarPreset === 'zh-CN' ? LunarInfo[6] : null, // 默认预置信息
- hightlight: false
+ highlight: false
}
if (altCalendar || dateMarkRender) {
lunarcellinfo = {
text: this.altCalendarText(datainfo, lunarcellinfo),
- hightlight: altCalendarPresetData && altCalendarPresetData[datainfo] && altCalendarPresetData[datainfo].hightlight,
+ highlight: altCalendarPresetData && altCalendarPresetData[datainfo] && altCalendarPresetData[datainfo].highlight,
nodeMark: this.markRender(datainfo)
}
}
if ((dateMarkPresetData && dateMarkPresetData[datainfo]) || (altCalendarPresetData && altCalendarPresetData[datainfo])) {
lunarcellinfo = {
text: this.altCalendarText(datainfo, lunarcellinfo),
- hightlight: altCalendarPresetData && altCalendarPresetData[datainfo] && altCalendarPresetData[datainfo].hightlight,
+ highlight: altCalendarPresetData && altCalendarPresetData[datainfo] && altCalendarPresetData[datainfo].highlight,
nodeMark: this.markRender(datainfo)
}
}
@@ -338,7 +338,7 @@ class Calender extends Component {
}}
>
{
- fullTimeInfo.hightlight
+ fullTimeInfo.highlight
?
{fullTimeInfo.text}
diff --git a/components/date-picker/DatePicker.js b/components/date-picker/DatePicker.js
index bbbcac441..cc18e8248 100644
--- a/components/date-picker/DatePicker.js
+++ b/components/date-picker/DatePicker.js
@@ -46,7 +46,7 @@ class DatePicker extends BasePicker {
Object.assign(oneYear, {
[item.date.replace(/-/g, '/')]: {
...item,
- hightlight: true
+ highlight: true
}
})
})
diff --git a/components/dropdown/DropdownMenu.jsx b/components/dropdown/DropdownMenu.jsx
index 79f9396f5..c8b14947f 100644
--- a/components/dropdown/DropdownMenu.jsx
+++ b/components/dropdown/DropdownMenu.jsx
@@ -30,7 +30,7 @@ class DropdownMenu extends React.Component {
placement={placement}
width={width}
onMouseEnter={onMouseEnter}
- leftGap={1}
+ leftGap={0}
onMouseLeave={onMouseLeave}
>
diff --git a/components/menu/SubMenu.js b/components/menu/SubMenu.js
index cd0b643e7..cc74c236a 100644
--- a/components/menu/SubMenu.js
+++ b/components/menu/SubMenu.js
@@ -10,12 +10,16 @@ class SubMenu extends Component {
}
checkActive (activeIndex, index) {
- return activeIndex.indexOf(index) === 0
+ const indexArr = index.split('-')
+ const activeIndexArr = activeIndex.split('-')
+ return activeIndexArr.slice(0, indexArr.length).join('-') === index
}
checkExpand (activeIndex, expandIndex, index) {
return expandIndex.some(item => {
- return item.indexOf(index) === 0
+ const indexArr = index.split('-')
+ const expandIndexArr = item.split('-')
+ return expandIndexArr.slice(0, indexArr.length).join('-') === index
})
}
diff --git a/components/modal/index.js b/components/modal/index.js
index 309d55922..e3f65195f 100755
--- a/components/modal/index.js
+++ b/components/modal/index.js
@@ -87,7 +87,7 @@ class Modal extends Component {
return footers || footer
} else {
return [
-