fix: tslint error
This commit is contained in:
@@ -128,7 +128,7 @@ export class Dialog {
|
|||||||
const cancelBtn = document.createElement('button')
|
const cancelBtn = document.createElement('button')
|
||||||
cancelBtn.classList.add('dialog-menu__cancel')
|
cancelBtn.classList.add('dialog-menu__cancel')
|
||||||
cancelBtn.append(document.createTextNode('取消'))
|
cancelBtn.append(document.createTextNode('取消'))
|
||||||
cancelBtn.type = 'default'
|
cancelBtn.type = 'button'
|
||||||
cancelBtn.onclick = () => {
|
cancelBtn.onclick = () => {
|
||||||
if (onCancel) {
|
if (onCancel) {
|
||||||
onCancel()
|
onCancel()
|
||||||
@@ -139,7 +139,7 @@ export class Dialog {
|
|||||||
// 确认按钮
|
// 确认按钮
|
||||||
const confirmBtn = document.createElement('button')
|
const confirmBtn = document.createElement('button')
|
||||||
confirmBtn.append(document.createTextNode('确定'))
|
confirmBtn.append(document.createTextNode('确定'))
|
||||||
confirmBtn.type = 'primary'
|
confirmBtn.type = 'submit'
|
||||||
confirmBtn.onclick = () => {
|
confirmBtn.onclick = () => {
|
||||||
if (onConfirm) {
|
if (onConfirm) {
|
||||||
const payload = this.inputList.map<IDialogConfirm>(input => ({
|
const payload = this.inputList.map<IDialogConfirm>(input => ({
|
||||||
|
|||||||
@@ -119,13 +119,13 @@
|
|||||||
margin-right: 16px;
|
margin-right: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog-menu button[type='primary'] {
|
.dialog-menu button[type='submit'] {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
background: #4991f2;
|
background: #4991f2;
|
||||||
border-color: #4991f2;
|
border-color: #4991f2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog-menu button[type='primary']:hover {
|
.dialog-menu button[type='submit']:hover {
|
||||||
background: #5b9cf3;
|
background: #5b9cf3;
|
||||||
border-color: #5b9cf3;
|
border-color: #5b9cf3;
|
||||||
}
|
}
|
||||||
@@ -124,7 +124,7 @@ export class Signature {
|
|||||||
const cancelBtn = document.createElement('button')
|
const cancelBtn = document.createElement('button')
|
||||||
cancelBtn.classList.add('signature-menu__cancel')
|
cancelBtn.classList.add('signature-menu__cancel')
|
||||||
cancelBtn.append(document.createTextNode('取消'))
|
cancelBtn.append(document.createTextNode('取消'))
|
||||||
cancelBtn.type = 'default'
|
cancelBtn.type = 'button'
|
||||||
cancelBtn.onclick = () => {
|
cancelBtn.onclick = () => {
|
||||||
if (onCancel) {
|
if (onCancel) {
|
||||||
onCancel()
|
onCancel()
|
||||||
@@ -135,7 +135,7 @@ export class Signature {
|
|||||||
// 确认按钮
|
// 确认按钮
|
||||||
const confirmBtn = document.createElement('button')
|
const confirmBtn = document.createElement('button')
|
||||||
confirmBtn.append(document.createTextNode('确定'))
|
confirmBtn.append(document.createTextNode('确定'))
|
||||||
confirmBtn.type = 'primary'
|
confirmBtn.type = 'submit'
|
||||||
confirmBtn.onclick = () => {
|
confirmBtn.onclick = () => {
|
||||||
if (onConfirm) {
|
if (onConfirm) {
|
||||||
onConfirm(this._toData())
|
onConfirm(this._toData())
|
||||||
|
|||||||
@@ -116,13 +116,13 @@
|
|||||||
margin-right: 16px;
|
margin-right: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.signature-menu button[type='primary'] {
|
.signature-menu button[type='submit'] {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
background: #4991f2;
|
background: #4991f2;
|
||||||
border-color: #4991f2;
|
border-color: #4991f2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.signature-menu button[type='primary']:hover {
|
.signature-menu button[type='submit']:hover {
|
||||||
background: #5b9cf3;
|
background: #5b9cf3;
|
||||||
border-color: #5b9cf3;
|
border-color: #5b9cf3;
|
||||||
}
|
}
|
||||||
@@ -132,7 +132,7 @@ export class Position {
|
|||||||
// 垂直对齐方式
|
// 垂直对齐方式
|
||||||
if (
|
if (
|
||||||
td.verticalAlign === VerticalAlign.MIDDLE
|
td.verticalAlign === VerticalAlign.MIDDLE
|
||||||
|| td.verticalAlign == VerticalAlign.BOTTOM
|
|| td.verticalAlign === VerticalAlign.BOTTOM
|
||||||
) {
|
) {
|
||||||
const rowsHeight = rowList.reduce((pre, cur) => pre + cur.height, 0)
|
const rowsHeight = rowList.reduce((pre, cur) => pre + cur.height, 0)
|
||||||
const blankHeight = (td.height! - tdGap) * scale - rowsHeight
|
const blankHeight = (td.height! - tdGap) * scale - rowsHeight
|
||||||
|
|||||||
Reference in New Issue
Block a user