Skip to content

Commit 0526045

Browse files
author
wangxiang
committed
fix select 在 chrome 63.0.3239.84(64 位)浏览器,垂直滚动条始终显示的问题
add select 组件重置功能 delete 无用代码
1 parent 209837f commit 0526045

File tree

7 files changed

+13
-11
lines changed

7 files changed

+13
-11
lines changed

dist/0.5a5671f45064142c1cc9.chunk.js renamed to dist/0.31211c6f5a00b02e5825.chunk.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

dist/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
<title>Angular4 Seed</title>
88
<base href="/angular4-seed/dist/">
99
<link rel="icon" type="image/x-icon" href="favicon.ico">
10-
<link href="styles.9eeed79c8c9d18dcc543.bundle.css" rel="stylesheet"/>
10+
<link href="styles.70d7a66ac20045658997.bundle.css" rel="stylesheet"/>
1111
</head>
1212
<body>
1313
<app-root></app-root>
14-
<script type="text/javascript" src="inline.474100f886140ea36876.bundle.js"></script>
14+
<script type="text/javascript" src="inline.0ccfdcd5d02c89feecc4.bundle.js"></script>
1515
<script type="text/javascript" src="polyfills.959d3093e6b7c4a0727b.bundle.js"></script>
1616
<script type="text/javascript" src="scripts.e917b1e50247050aac34.bundle.js"></script>
1717
<script type="text/javascript" src="vendor.c720ef2214c9e4ee0b3d.bundle.js"></script>

dist/inline.474100f886140ea36876.bundle.js renamed to dist/inline.0ccfdcd5d02c89feecc4.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/styles.9eeed79c8c9d18dcc543.bundle.css renamed to dist/styles.70d7a66ac20045658997.bundle.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/shared/ui-plugins/select/index.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $lineHeight: 32px;
3636
overflow: auto;
3737
display: none;
3838
position: absolute;
39-
top: 50px;
39+
top: 40px;
4040
left: 0;
4141
z-index: 10000;
4242
border: 1px solid #D4D4D4;

src/app/shared/ui-plugins/select/index.component.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,19 @@ export class SelectComponent implements OnInit {
1414
@Input() currText = ''
1515
@Input() dataList: Array<ISelectItem>
1616
@Output('selectChanged') selectChanged = new EventEmitter()
17+
18+
initText: string
1719
isShowSelectUL = false
1820

1921
constructor () {
2022
}
2123

2224
ngOnInit () {
25+
this.initText = this.currText
26+
}
27+
28+
reset () {
29+
this.currText = this.initText
2330
}
2431

2532
show () {
@@ -39,9 +46,4 @@ export class SelectComponent implements OnInit {
3946
this.selectChanged.emit({ text, value })
4047
this.hide()
4148
}
42-
43-
handleClickedOutside () {
44-
console.log(1111)
45-
this.hide()
46-
}
4749
}

0 commit comments

Comments
 (0)