yixiangling / abp-ng-zorro Goto Github PK
View Code? Open in Web Editor NEW阿里云的NG-ZORRO为组件基础,替换ABP 免费版前端
阿里云的NG-ZORRO为组件基础,替换ABP 免费版前端
弹窗怎么总是闪一下?
表格分页有问题,点击页码后页码会变成只有1.
群号是多少啊
熊猫 假如我用这个做产品 如何升级呢?
Error: write after end (writeStream "error") (writeStream "error"), GET https://cdn.npm.taobao.org/ace
-builds/-/ace-builds-1.4.1.tgz 200 (connected: true, keepalive socket: false, agent status: {"createSo
cketCount":52,"createSocketErrorCount":0,"closeSocketCount":50,"errorSocketCount":0,"timeoutSocketCoun
t":0,"requestCount":943,"freeSockets":{},"sockets":{"cdn.npm.taobao.org:443:::::::true::":2},"requests
":{}}, socketHandledRequests: 1, socketHandledResponses: 1)
headers: {"server":"Tengine","content-type":"application/octet-stream","content-length":"8649738","con
nection":"keep-alive","date":"Wed, 19 Sep 2018 02:42:55 GMT","x-oss-request-id":"5BA1B7AF7F911BE38CABB
08F","accept-ranges":"bytes","etag":""E2E01F4EBD0B4B15FDE2D9B754976DD2"","last-modified":"Tue, 07 Au
g 2018 20:06:12 GMT","x-oss-object-type":"Normal","x-oss-hash-crc64ecma":"15141884169936956505","x-oss
-storage-class":"Standard","cache-control":"max-age=0, s-maxage=86400","x-oss-server-time":"31","via":
"cache21.l2cm9[79,206-0,M], cache24.l2cm9[80,0], cache3.cn548[0,206-0,H], cache6.cn548[1,0]","age":"18
19","x-cache":"HIT TCP_MEM_HIT dirn:0:43994045 mlen:0","x-swift-savetime":"Wed, 19 Sep 2018 02:42:55 G
MT","x-swift-cachetime":"86400","timing-allow-origin":"*","eagleid":"dbee144615373267946473965e"}
ng-zorro 已经升级到1.1了,angular也到6.0了。请问还会继续更新本项目吗?
https://cipchk.github.io/ng-alain/dashboard/v1
大佬这个项目左侧主题可以切换,您看可以搞过来吧
import { Component } from '@angular/core';
import { NzMessageService, UploadFile } from 'ng-zorro-antd';
@component({
selector: 'nz-demo-upload-avatar',
template: <nz-upload class="avatar-uploader" nzAction="https://jsonplaceholder.typicode.com/posts/" nzName="avatar" nzListType="picture-card" [nzShowUploadList]="false" [nzBeforeUpload]="beforeUpload" (nzChange)="handleChange($event)"> <ng-container *ngIf="!avatarUrl"> <i class="anticon anticon-plus"></i> <div class="ant-upload-text">Upload</div> </ng-container> <img *ngIf="avatarUrl" [src]="avatarUrl" class="avatar"> </nz-upload>
,
styles: [
:host ::ng-deep .avatar-uploader > .ant-upload { width: 128px; height: 128px; } :host ::ng-deep .ant-upload-select-picture-card i { font-size: 32px; color: #999; } :host ::ng-deep .ant-upload-select-picture-card .ant-upload-text { margin-top: 8px; color: #666; }
]
})
export class NzDemoUploadAvatarComponent {
loading = false;
avatarUrl: string;
constructor(private msg: NzMessageService) {}
beforeUpload = (file: File) => {
const isJPG = file.type === 'image/jpeg';
if (!isJPG) {
this.msg.error('You can only upload JPG file!');
}
const isLt2M = file.size / 1024 / 1024 < 2;
if (!isLt2M) {
this.msg.error('Image must smaller than 2MB!');
}
return isJPG && isLt2M;
}
private getBase64(img: File, callback: (img: {}) => void): void {
const reader = new FileReader();
reader.addEventListener('load', () => callback(reader.result));
reader.readAsDataURL(img);
}
handleChange(info: { file: UploadFile }): void {
if (info.file.status === 'uploading') {
this.loading = true;
return;
}
if (info.file.status === 'done') {
// Get this url from response in real world.
this.getBase64(info.file.originFileObj, (img: string) => {
this.loading = false;
this.avatarUrl = img;
});
}
}
}
怎么调用abp中ServiceProxyModule?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.