fix: stylelint版本

This commit is contained in:
april 2023-07-13 10:53:41 +08:00
parent 4d8668b047
commit c639a374a3
6 changed files with 60 additions and 32 deletions

View File

@ -86,7 +86,7 @@
"postcss-scss": "^4.0.6", "postcss-scss": "^4.0.6",
"prettier": "^2.8.8", "prettier": "^2.8.8",
"sass": "^1.58.3", "sass": "^1.58.3",
"stylelint": "^15.5.0", "stylelint": "^15.7.0",
"stylelint-config-html": "^1.1.0", "stylelint-config-html": "^1.1.0",
"stylelint-config-recess-order": "^4.0.0", "stylelint-config-recess-order": "^4.0.0",
"stylelint-config-recommended-scss": "11.0.0 ", "stylelint-config-recommended-scss": "11.0.0 ",

View File

@ -358,11 +358,12 @@ defineExpose({
<style lang="scss" scoped> <style lang="scss" scoped>
.tagInputarea { .tagInputarea {
min-width: 0; min-width: 0;
:deep { :deep {
.tagInputareaIuput { .tagInputareaIuput {
border-radius: 3px;
border: 1px solid #409eff;
overflow: auto; overflow: auto;
border: 1px solid #409eff;
border-radius: 3px;
&:not(.active) { &:not(.active) {
border-color: #ccc !important; border-color: #ccc !important;
@ -388,9 +389,9 @@ defineExpose({
// border-radius: 0 3px 3px 0; // border-radius: 0 3px 3px 0;
// } // }
.CodeMirror { .CodeMirror {
font-family: inherit !important;
box-sizing: border-box; box-sizing: border-box;
height: auto !important; height: auto !important;
font-family: inherit !important;
.CodeMirror-vscrollbar { .CodeMirror-vscrollbar {
display: none !important; display: none !important;
@ -403,12 +404,14 @@ defineExpose({
// } // }
.CodeMirror-lines { .CodeMirror-lines {
padding: 6px 0;
min-height: 35px; min-height: 35px;
padding: 6px 0;
} }
.CodeMirror-line { .CodeMirror-line {
padding: 0 10px; padding: 0 10px;
} }
.columnTagCon { .columnTagCon {
position: relative; position: relative;
display: inline-flex; display: inline-flex;
@ -420,69 +423,84 @@ defineExpose({
// border: 1px solid #bbd6ea; // border: 1px solid #bbd6ea;
// border-radius: 5px; // border-radius: 5px;
} }
.columnTag { .columnTag {
position: relative; position: relative;
display: inline-flex;
box-sizing: border-box; box-sizing: border-box;
cursor: pointer; display: inline-flex;
height: 24px; height: 24px;
font-size: 12px; font-size: 12px;
cursor: pointer;
border: 1px solid #90caf9; border: 1px solid #90caf9;
border-radius: 24px; border-radius: 24px;
.columnName, .columnName,
.columnValue { .columnValue {
display: inline-block; display: inline-block;
height: 22px; height: 22px;
line-height: 22px;
padding: 0 10px; padding: 0 10px;
overflow: hidden; overflow: hidden;
line-height: 22px;
} }
.columnName { .columnName {
color: #2196f3; color: #2196f3;
background-color: rgba(33, 150, 243, 0.06); background-color: rgb(33 150 243 / 6%);
} }
.columnValue { .columnValue {
color: #fff; color: #fff;
border-radius: 0 22px 22px 0;
background-color: #249eff; background-color: #249eff;
border-radius: 0 22px 22px 0;
.ellipsis { .ellipsis {
max-width: 9em; max-width: 9em;
} }
} }
&.onlytag { &.onlytag {
margin-right: 6px; margin-right: 6px;
&:after {
content: ","; &::after {
position: absolute; position: absolute;
right: -6px;
top: 6px; top: 6px;
right: -6px;
content: ",";
} }
} }
&.deleted { &.deleted {
border-color: #f44336; border-color: #f44336;
.columnName { .columnName {
color: #f44336; color: #f44336;
background-color: rgba(244, 67, 54, 0.06); background-color: rgb(244 67 54 / 6%);
} }
&:hover { &:hover {
border-color: #f44336; border-color: #f44336;
.columnName { .columnName {
color: #f44336; color: #f44336;
background-color: rgba(244, 67, 54, 0.12); background-color: rgb(244 67 54 / 12%);
} }
} }
} }
&:hover { &:hover {
border-color: #ddd; border-color: #ddd;
.columnName { .columnName {
color: #9e9e9e; color: #9e9e9e;
background-color: rgba(158, 158, 158, 0.06); background-color: rgb(158 158 158 / 6%);
} }
.columnValue { .columnValue {
background-color: #bdbdbd; background-color: #bdbdbd;
} }
} }
} }
.operator { .operator {
margin: 0 4px; margin: 0 4px;
} }

View File

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

View File

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

View File

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

View File

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