ng-ytl-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
75 lines (65 loc) • 2.12 kB
text/typescript
import { Component } from '@angular/core';
export class NzDemoModalStyleComponent {
isVisibleTop = false;
isVisibleMiddle = false;
style: any = {
top: '20px'
};
showModalTop = () => {
this.isVisibleTop = true;
};
showModalMiddle = () => {
this.isVisibleMiddle = true;
};
handleOkTop = (e) => {
console.log('点击了确定');
this.isVisibleTop = false;
};
handleCancelTop = (e) => {
console.log(e);
this.isVisibleTop = false;
};
handleOkMiddle = (e) => {
console.log('点击了确定');
this.isVisibleMiddle = false;
};
handleCancelMiddle = (e) => {
console.log(e);
this.isVisibleMiddle = false;
};
}