fix: tslint error
This commit is contained in:
@@ -128,7 +128,7 @@ export class Dialog {
|
||||
const cancelBtn = document.createElement('button')
|
||||
cancelBtn.classList.add('dialog-menu__cancel')
|
||||
cancelBtn.append(document.createTextNode('取消'))
|
||||
cancelBtn.type = 'default'
|
||||
cancelBtn.type = 'button'
|
||||
cancelBtn.onclick = () => {
|
||||
if (onCancel) {
|
||||
onCancel()
|
||||
@@ -139,7 +139,7 @@ export class Dialog {
|
||||
// 确认按钮
|
||||
const confirmBtn = document.createElement('button')
|
||||
confirmBtn.append(document.createTextNode('确定'))
|
||||
confirmBtn.type = 'primary'
|
||||
confirmBtn.type = 'submit'
|
||||
confirmBtn.onclick = () => {
|
||||
if (onConfirm) {
|
||||
const payload = this.inputList.map<IDialogConfirm>(input => ({
|
||||
|
||||
@@ -119,13 +119,13 @@
|
||||
margin-right: 16px;
|
||||
}
|
||||
|
||||
.dialog-menu button[type='primary'] {
|
||||
.dialog-menu button[type='submit'] {
|
||||
color: #ffffff;
|
||||
background: #4991f2;
|
||||
border-color: #4991f2;
|
||||
}
|
||||
|
||||
.dialog-menu button[type='primary']:hover {
|
||||
.dialog-menu button[type='submit']:hover {
|
||||
background: #5b9cf3;
|
||||
border-color: #5b9cf3;
|
||||
}
|
||||
@@ -124,7 +124,7 @@ export class Signature {
|
||||
const cancelBtn = document.createElement('button')
|
||||
cancelBtn.classList.add('signature-menu__cancel')
|
||||
cancelBtn.append(document.createTextNode('取消'))
|
||||
cancelBtn.type = 'default'
|
||||
cancelBtn.type = 'button'
|
||||
cancelBtn.onclick = () => {
|
||||
if (onCancel) {
|
||||
onCancel()
|
||||
@@ -135,7 +135,7 @@ export class Signature {
|
||||
// 确认按钮
|
||||
const confirmBtn = document.createElement('button')
|
||||
confirmBtn.append(document.createTextNode('确定'))
|
||||
confirmBtn.type = 'primary'
|
||||
confirmBtn.type = 'submit'
|
||||
confirmBtn.onclick = () => {
|
||||
if (onConfirm) {
|
||||
onConfirm(this._toData())
|
||||
|
||||
@@ -116,13 +116,13 @@
|
||||
margin-right: 16px;
|
||||
}
|
||||
|
||||
.signature-menu button[type='primary'] {
|
||||
.signature-menu button[type='submit'] {
|
||||
color: #ffffff;
|
||||
background: #4991f2;
|
||||
border-color: #4991f2;
|
||||
}
|
||||
|
||||
.signature-menu button[type='primary']:hover {
|
||||
.signature-menu button[type='submit']:hover {
|
||||
background: #5b9cf3;
|
||||
border-color: #5b9cf3;
|
||||
}
|
||||
Reference in New Issue
Block a user