Skip to content

Commit d0f65c4

Browse files
chore(release): release 17.1.0 (#351)
Co-authored-by: huaweidevcloud <devcloudmobile@huawei.com>
1 parent 35bf8d8 commit d0f65c4

File tree

150 files changed

+1611
-849
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+1611
-849
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ To see more in [devui.design](https://devui.design/home).
2323

2424
## Angular Support
2525

26-
Now supports Angular <font color=red>`^16.0.0`</font>
26+
Now supports Angular <font color=red>`^17.0.0`</font>
2727

2828
## Getting Started
2929

README_zh_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ DevUI Design设计系统包含了DevUI规则、设计语言和最佳实践的资
2323

2424
## Angular版本
2525

26-
当前支持的angular版本<font color=red>`^16.0.0`</font>
26+
当前支持的angular版本<font color=red>`^17.0.0`</font>
2727

2828
## 快速开始
2929

devui/auto-complete/demo/disabled/auto-complete-demo-disable.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
[disabledKey]="'disable'"
3333
[source]="languages1"
3434
[formatter]="formatter"
35+
[valueParser]="valueParser"
3536
dAutoComplete
3637
[tipsText]="'search result'"
3738
/>

devui/auto-complete/demo/disabled/auto-complete-demo-disable.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,8 @@ export class AutoDemoDisableComponent {
4747
formatter(item) {
4848
return item.name;
4949
}
50+
51+
valueParser(item) {
52+
return item.name;
53+
}
5054
}

devui/avatar/avatar.component.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ export class AvatarComponent implements OnChanges, OnInit {
108108
}
109109
}
110110
if (width < 30) {
111-
this.nameDisplay = this.name.substr(0, 1).toUpperCase();
111+
if (/^[\u4e00-\u9fa5]/.test(name)) {
112+
this.nameDisplay = name.substr(name.length - 1, 1);
113+
} else {
114+
this.nameDisplay = this.name.substr(0, 1).toUpperCase();
115+
}
112116
}
113117
this.getBackgroundColor(name.substr(0, 1));
114118
}

devui/avatar/avatar.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe('avatar basic', () => {
5151
component.comp.setDisplayName(component.name, component.width);
5252
fixture.detectChanges();
5353

54-
expect(nativeEl.textContent).toBe(component.name.substr(0, 1));
54+
expect(nativeEl.textContent).toBe(component.name.substr(component.name.length - 1, 1));
5555
});
5656

5757
it('one word name pick first two character', () => {

devui/breadcrumb/breadcrumb-item/breadcrumb-item.component.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@
1111
<ng-template [ngTemplateOutlet]="breadcrumbContentTpl"></ng-template>
1212
<i class="devui-breadcrumb-down-icon">
1313
<svg
14-
width="1em"
15-
height="1em"
14+
width="16px"
15+
height="16px"
1616
viewBox="0 0 16 16"
1717
version="1.1"
1818
xmlns="http://www.w3.org/2000/svg"
1919
xmlns:xlink="http://www.w3.org/1999/xlink"
2020
>
2121
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
2222
<path
23-
d="M12.1464466,6.85355339 L8.35355339,10.6464466 C8.15829124,10.8417088 7.84170876,10.8417088 7.64644661,10.6464466 L3.85355339,6.85355339 C3.65829124,6.65829124 3.65829124,6.34170876 3.85355339,6.14644661 C3.94732158,6.05267842 4.07449854,6 4.20710678,6 L11.7928932,6 C12.0690356,6 12.2928932,6.22385763 12.2928932,6.5 C12.2928932,6.63260824 12.2402148,6.7597852 12.1464466,6.85355339 Z"
24-
fill-rule="nonzero"
23+
d="M3.64644661,5.64644661 C3.82001296,5.47288026 4.08943736,5.45359511 4.2843055,5.58859116 L4.35355339,5.64644661 L8,9.293 L11.6464466,5.64644661 C11.820013,5.47288026 12.0894374,5.45359511 12.2843055,5.58859116 L12.3535534,5.64644661 C12.5271197,5.82001296 12.5464049,6.08943736 12.4114088,6.2843055 L12.3535534,6.35355339 L8.35355339,10.3535534 C8.17998704,10.5271197 7.91056264,10.5464049 7.7156945,10.4114088 L7.64644661,10.3535534 L3.64644661,6.35355339 C3.45118446,6.15829124 3.45118446,5.84170876 3.64644661,5.64644661 Z"
2524
></path>
2625
</g>
2726
</svg>

devui/breadcrumb/breadcrumb-item/breadcrumb-item.component.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
@import '../../style/core/_font';
33
@import '../../style/core/animation';
44

5+
:host {
6+
display: inline-flex;
7+
}
8+
59
.devui-breadcrumb-font-style {
6-
font-size: $devui-font-size-sm;
10+
font-size: $devui-font-size;
711
color: $devui-aide-text;
812
}
913

@@ -136,6 +140,11 @@ d-search {
136140
::ng-deep a,
137141
::ng-deep span {
138142
transition: color $devui-animation-duration-slow $devui-animation-ease-in-out-smooth;
143+
display: inline-block;
144+
text-overflow: ellipsis;
145+
overflow: hidden;
146+
white-space: nowrap;
147+
max-width: 440px;
139148
}
140149
}
141150

devui/breadcrumb/breadcrumb.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
:host {
44
display: flex;
5-
-webkit-align-items: center;
5+
align-items: center;
66
min-height: 28px;
77

88
::ng-deep d-breadcrumb-item:last-child {

devui/breadcrumb/demo/custom/custom.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h4>Use Custom Dropdown Behavior</h4>
3131
<span>{{ item.label }}</span>
3232
<i
3333
*ngIf="item.showMenu"
34-
class="icon icon-select-arrow devui-icon-rotate"
34+
class="icon icon-chevron-down-2 devui-icon-rotate"
3535
[style.transform]="dropdownInstance?.isOpen ? 'rotate(180deg)' : 'rotate(0deg)'"
3636
></i>
3737
</a>

0 commit comments

Comments
 (0)