fix: stylelint版本

Former-commit-id: c639a374a3c9cdfd3c92c5000385e90e755571a7
This commit is contained in:
april
2023-07-13 10:53:41 +08:00
parent 3339dd0d85
commit bca211f48c
6 changed files with 60 additions and 32 deletions

View File

@@ -185,8 +185,10 @@ const downloadEchart = () => {
.title {
display: flex;
justify-content: space-between;
.download {
cursor: pointer;
&:hover {
color: #409eff;
}

View File

@@ -66,6 +66,7 @@ const handleToFile = async () => {
return;
}
const file = dataURLtoFile(canvas.value.toDataURL(), "签名.png");
if (!file) return;
const { data } = await uploadFileApi(file);
handleClearSign();
@@ -104,14 +105,14 @@ const dataURLtoFile = (dataurl: string, filename: string) => {
if (!arr.length) return;
const mime = arr[0].match(/:(.*?);/);
if (mime && !mime.length) {
if (mime) {
const bstr = atob(arr[1]);
let n = bstr.length;
const u8arr = new Uint8Array(n);
while (n--) {
u8arr[n] = bstr.charCodeAt(n);
}
return new File([u8arr], filename, { type: mime[0] });
return new File([u8arr], filename, { type: mime[1] });
}
};
// canvas 画图
@@ -188,18 +189,19 @@ function eraser(
.canvas-dom {
width: 100%;
height: 100%;
padding: 0px 20px;
padding: 0 20px;
background-color: #fff;
canvas {
border: 1px solid #e6e6e6;
}
header {
width: 100%;
margin: 8px;
display: flex;
flex-flow: row nowrap;
align-items: center;
width: 100%;
margin: 8px;
.eraser-option {
display: flex;

View File

@@ -57,7 +57,6 @@
:http-request="handleUploadFile"
>
<i-ep-upload-filled class="icon"></i-ep-upload-filled>
<!-- <el-icon class="el-icon--upload"><upload-filled /></el-icon> -->
<div class="el-upload__text">拖拽excel到这里</div>
</el-upload>
<div v-loading="loading" class="excel-table-wrap">
@@ -126,7 +125,7 @@ const orginData = [
address: "湖南",
id: 4,
gender: "男",
height: 173,
height: 176,
school: "清华大学",
hobby: "游泳",
},
@@ -410,24 +409,28 @@ const readFile = (file: any, callback: any) => {
}
}
}
.upload {
margin-top: 16px;
border: 2px dashed #90caf9;
border-radius: 2px;
box-sizing: border-box;
height: 230px;
margin-top: 16px;
margin-bottom: 20px;
background-color: #e3f2fd;
border: 2px dashed #90caf9;
border-radius: 2px;
:deep(.el-upload-dragger) {
padding: 0;
background-color: #e3f2fd;
border: none;
padding: 0px;
.icon {
font-size: 110px;
color: #90caf9;
}
}
}
.excel-table-wrap {
width: 100%;
min-height: 300px;

View File

@@ -71,20 +71,22 @@ const onBlur = (): void => {
width: 500px;
height: auto;
margin: 10px;
:deep {
.tag-demo-con {
.tag-wrap {
height: 25px;
line-height: 25px;
.tag {
box-sizing: border-box;
display: inline-block;
padding: 2px 8px;
box-sizing: border-box;
border-radius: 16px;
background: #d8eeff;
color: #174c76;
border: 1px solid #bbd6ea;
margin: 0 4px;
color: #174c76;
background: #d8eeff;
border: 1px solid #bbd6ea;
border-radius: 16px;
}
// padding: 4px;
// margin: 4px;
@@ -95,6 +97,7 @@ const onBlur = (): void => {
}
}
}
.tag-wrap {
margin-top: 10px;
}