Browse Source

[修改]修改icon图标为本地资源

master
邵佳豪 5 years ago
parent
commit
5d0626312b
  1. 17
      src/app/ui/all-file/all-file.component.ts
  2. BIN
      src/assets/icon/MaterialIcons-Regular.eot
  3. 1
      src/assets/icon/MaterialIcons-Regular.ijmap
  4. 2373
      src/assets/icon/MaterialIcons-Regular.svg
  5. BIN
      src/assets/icon/MaterialIcons-Regular.ttf
  6. BIN
      src/assets/icon/MaterialIcons-Regular.woff
  7. BIN
      src/assets/icon/MaterialIcons-Regular.woff2
  8. 36
      src/assets/icon/material-icons.css
  9. 3
      src/index.html

17
src/app/ui/all-file/all-file.component.ts

@ -110,8 +110,7 @@ export class AllFileComponent {
size: 0,
isDir: false,
type: "denggao"
}
,
},
{ key: "装备车辆/机器人",
lastModified: null,
eTag: null,
@ -186,8 +185,6 @@ export class AllFileComponent {
this.isAllSelected() ? this.isDelete = true : this.isDelete = false;
}
//搜索框获得焦点事件
searchfocus(e){
this.isCancel = true
@ -195,6 +192,7 @@ export class AllFileComponent {
e.target.value = ""
}
}
//搜索框失去焦点事件
searchblur(e){
if(e.target.value == ""){
@ -202,6 +200,7 @@ export class AllFileComponent {
this.isCancel = false
}
}
//搜索框点击X事件
cancelbtn(){
this.getALLFileList(this.selectedDataBank)
@ -209,7 +208,6 @@ export class AllFileComponent {
this.isCancel = false
}
allFiles:any //搜索出来的全部文件
checkedAllFiles:any = []
//点击搜索
@ -469,6 +467,7 @@ export class AllFileComponent {
}
}
PartNumberETag2:any=[]; //每次返回需要保存的信息
//开始分段上传
async subsectionUploading2 (e,result,reject,filesnum,selectedDataBank2) {
@ -533,6 +532,7 @@ export class AllFileComponent {
this.PartNumberETag2 =[] //清空保存返回的信息
})
}
//取消分块上传
cancel2 () {
this.http.delete(`/api/MultipartUpload/drives/${this.objectName2}?uploadId=${this.uploadId2}`).subscribe(data=>{
@ -549,7 +549,6 @@ export class AllFileComponent {
})
}
//新建文件夹
createFolder(){
const dialogRef = this.dialog.open(FolderDialog);
@ -581,8 +580,6 @@ export class AllFileComponent {
}
}
//上传文件
objectName:any //上传对象名
uploadisLoading:boolean = false //上传进度条显示
@ -681,8 +678,6 @@ export class AllFileComponent {
})
}
isTrueDelete:any = ['基础知识','装备','技战术','消防设施','资料库']; //匹配内置一级目录 是否被选择删除
// 删除文件
deleteFiles(){
@ -907,6 +902,4 @@ export class FolderDialog {
this.dialogRef.close(value);
}
}

BIN
src/assets/icon/MaterialIcons-Regular.eot

Binary file not shown.

1
src/assets/icon/MaterialIcons-Regular.ijmap

File diff suppressed because one or more lines are too long

2373
src/assets/icon/MaterialIcons-Regular.svg

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 275 KiB

BIN
src/assets/icon/MaterialIcons-Regular.ttf

Binary file not shown.

BIN
src/assets/icon/MaterialIcons-Regular.woff

Binary file not shown.

BIN
src/assets/icon/MaterialIcons-Regular.woff2

Binary file not shown.

36
src/assets/icon/material-icons.css

@ -0,0 +1,36 @@
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: url(./MaterialIcons-Regular.eot); /* For IE6-8 */
src: local('Material Icons'),
local('MaterialIcons-Regular'),
url(./MaterialIcons-Regular.woff2) format('woff2'),
url(./MaterialIcons-Regular.woff) format('woff'),
url(./MaterialIcons-Regular.ttf) format('truetype');
}
.material-icons {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 24px; /* Preferred icon size */
display: inline-block;
line-height: 1;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
white-space: nowrap;
direction: ltr;
/* Support for all WebKit browsers. */
-webkit-font-smoothing: antialiased;
/* Support for Safari and Chrome. */
text-rendering: optimizeLegibility;
/* Support for Firefox. */
-moz-osx-font-smoothing: grayscale;
/* Support for IE. */
font-feature-settings: 'liga';
}

3
src/index.html

@ -6,7 +6,8 @@
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href='/assets/icon/material-icons.css' rel="stylesheet">
<!-- <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> -->
</head>
<body>
<app-root></app-root>

Loading…
Cancel
Save