UNPKG
taffy-coustom-ui
Version:
latest (12.0.4)
12.0.4
自己编译的
www.jqwidgets.com
TaffyBlog/jQWidgets
taffy-coustom-ui
/
demos
/
Angular
/
src
/
rangeselector
/
negativescale
/
app.component.ts
17 lines
(13 loc)
•
262 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import
{ Component } from
'@angular/core'
;
@Component({ selector:
'app-root'
, templateUrl:
'./app.component.html'
})
export
class
AppComponent
{ getWidth() : any {
if
(document.body.offsetWidth <
750
) {
return
'90%'
; }
return
750
; } }