chore: sytlelint

pull/5/head
xingyu 2023-04-27 16:54:42 +08:00
parent 733611e00b
commit a282f70aef
53 changed files with 271 additions and 251 deletions

View File

@ -25,7 +25,7 @@
"clean:lib": "rimraf node_modules", "clean:lib": "rimraf node_modules",
"lint:eslint": "eslint --cache --max-warnings 0 \"src/**/*.{vue,ts,tsx}\" --fix", "lint:eslint": "eslint --cache --max-warnings 0 \"src/**/*.{vue,ts,tsx}\" --fix",
"lint:prettier": "prettier --write \"src/**/*.{js,json,ts,tsx,css,less,scss,vue,html,md}\"", "lint:prettier": "prettier --write \"src/**/*.{js,json,ts,tsx,css,less,scss,vue,html,md}\"",
"lint:style": "stylelint --cache --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/", "lint:stylelint": "stylelint \"**/*.{vue,css,less,postcss,scss}\" --fix --cache --cache-location node_modules/.cache/stylelint/",
"lint:lint-staged": "lint-staged", "lint:lint-staged": "lint-staged",
"npm:check": "npx npm-check-updates", "npm:check": "npx npm-check-updates",
"reinstall": "rimraf pnpm-lock.yaml && rimraf package.lock.json && rimraf node_modules && npm run bootstrap", "reinstall": "rimraf pnpm-lock.yaml && rimraf package.lock.json && rimraf node_modules && npm run bootstrap",
@ -112,8 +112,10 @@
"stylelint": "^15.6.0", "stylelint": "^15.6.0",
"stylelint-config-recommended": "^12.0.0", "stylelint-config-recommended": "^12.0.0",
"stylelint-config-recommended-vue": "^1.4.0", "stylelint-config-recommended-vue": "^1.4.0",
"stylelint-config-recess-order": "^4.0.0",
"stylelint-config-standard": "^33.0.0", "stylelint-config-standard": "^33.0.0",
"stylelint-order": "^6.0.3", "stylelint-order": "^6.0.3",
"stylelint-prettier": "^3.0.0",
"terser": "^5.17.1", "terser": "^5.17.1",
"typescript": "^5.0.4", "typescript": "^5.0.4",
"unplugin-vue-setup-extend-plus": "^1.0.0", "unplugin-vue-setup-extend-plus": "^1.0.0",

View File

@ -228,6 +228,9 @@ devDependencies:
stylelint: stylelint:
specifier: ^15.6.0 specifier: ^15.6.0
version: 15.6.0 version: 15.6.0
stylelint-config-recess-order:
specifier: ^4.0.0
version: 4.0.0(stylelint@15.6.0)
stylelint-config-recommended: stylelint-config-recommended:
specifier: ^12.0.0 specifier: ^12.0.0
version: 12.0.0(stylelint@15.6.0) version: 12.0.0(stylelint@15.6.0)
@ -240,6 +243,9 @@ devDependencies:
stylelint-order: stylelint-order:
specifier: ^6.0.3 specifier: ^6.0.3
version: 6.0.3(stylelint@15.6.0) version: 6.0.3(stylelint@15.6.0)
stylelint-prettier:
specifier: ^3.0.0
version: 3.0.0(prettier@2.8.8)(stylelint@15.6.0)
terser: terser:
specifier: ^5.17.1 specifier: ^5.17.1
version: 5.17.1 version: 5.17.1
@ -7852,6 +7858,15 @@ packages:
stylelint: 15.6.0 stylelint: 15.6.0
dev: true dev: true
/stylelint-config-recess-order@4.0.0(stylelint@15.6.0):
resolution: {integrity: sha512-sOb+OofMryBR91CbzgV2FavpONqiIeAE7cfrgyUHqePblWBKsYzoUuWThI5EjPRA7KKeovm6ykr7twWYLeafPQ==}
peerDependencies:
stylelint: '>=15'
dependencies:
stylelint: 15.6.0
stylelint-order: 6.0.3(stylelint@15.6.0)
dev: true
/stylelint-config-recommended-vue@1.4.0(postcss-html@1.5.0)(stylelint@15.6.0): /stylelint-config-recommended-vue@1.4.0(postcss-html@1.5.0)(stylelint@15.6.0):
resolution: {integrity: sha512-DVJqyX2KvMCn9U0+keL12r7xlsH26K4Vg8NrIZuq5MoF7g82DpMp326Om4E0Q+Il1o+bTHuUyejf2XAI0iD04Q==} resolution: {integrity: sha512-DVJqyX2KvMCn9U0+keL12r7xlsH26K4Vg8NrIZuq5MoF7g82DpMp326Om4E0Q+Il1o+bTHuUyejf2XAI0iD04Q==}
engines: {node: ^12 || >=14} engines: {node: ^12 || >=14}
@ -7893,6 +7908,18 @@ packages:
stylelint: 15.6.0 stylelint: 15.6.0
dev: true dev: true
/stylelint-prettier@3.0.0(prettier@2.8.8)(stylelint@15.6.0):
resolution: {integrity: sha512-kIks1xw6np0zElokMT2kP6ar3S4MBoj6vUtPJuND1pFELMpZxVS/0uHPR4HDAVn0WAD3I5oF0IA3qBFxBpMkLg==}
engines: {node: ^14.17.0 || >=16.0.0}
peerDependencies:
prettier: '>=2.0.0'
stylelint: '>=14.0.0'
dependencies:
prettier: 2.8.8
prettier-linter-helpers: 1.0.0
stylelint: 15.6.0
dev: true
/stylelint@15.6.0: /stylelint@15.6.0:
resolution: {integrity: sha512-Cqzpc8tvJm77KaM8qUbhpJ/UYK55Ia0whQXj4b9IId9dlPICO7J8Lyo15SZWiHxKjlvy3p5FQor/3n6i8ignXg==} resolution: {integrity: sha512-Cqzpc8tvJm77KaM8qUbhpJ/UYK55Ia0whQXj4b9IId9dlPICO7J8Lyo15SZWiHxKjlvy3p5FQor/3n6i8ignXg==}
engines: {node: ^14.13.1 || >=16.0.0} engines: {node: ^14.13.1 || >=16.0.0}

View File

@ -46,6 +46,8 @@ html[data-theme='dark'] {
.@{prefix-cls} { .@{prefix-cls} {
position: relative; position: relative;
display: flex; display: flex;
align-items: center;
justify-content: space-between;
width: 50px; width: 50px;
height: 26px; height: 26px;
padding: 0 6px; padding: 0 6px;
@ -53,8 +55,6 @@ html[data-theme='dark'] {
cursor: pointer; cursor: pointer;
background-color: #151515; background-color: #151515;
border-radius: 30px; border-radius: 30px;
justify-content: space-between;
align-items: center;
&-inner { &-inner {
position: absolute; position: absolute;

View File

@ -70,8 +70,8 @@ function goHome() {
&__title { &__title {
font-size: 16px; font-size: 16px;
font-weight: 700; font-weight: 700;
transition: all 0.5s;
line-height: normal; line-height: normal;
transition: all 0.5s;
} }
} }
</style> </style>

View File

@ -23,6 +23,8 @@ const { t } = useI18n()
.@{prefix-cls} { .@{prefix-cls} {
position: relative; position: relative;
display: flex; display: flex;
flex-shrink: 0;
align-items: center;
height: 44px; height: 44px;
padding: 0 16px; padding: 0 16px;
font-size: 12px; font-size: 12px;
@ -30,11 +32,11 @@ const { t } = useI18n()
background-color: @component-background; background-color: @component-background;
border-top: 1px solid @border-color-base; border-top: 1px solid @border-color-base;
border-radius: 0 0 16px 16px; border-radius: 0 0 16px 16px;
align-items: center;
flex-shrink: 0;
&-item { &-item {
display: flex; display: flex;
align-items: center;
justify-content: center;
width: 20px; width: 20px;
height: 18px; height: 18px;
padding-bottom: 2px; padding-bottom: 2px;
@ -42,8 +44,6 @@ const { t } = useI18n()
background-color: linear-gradient(-225deg, #d5dbe4, #f8f8f8); background-color: linear-gradient(-225deg, #d5dbe4, #f8f8f8);
border-radius: 2px; border-radius: 2px;
box-shadow: inset 0 -2px 0 0 #cdcde6, inset 0 0 1px 1px #fff, 0 1px 2px 1px rgb(30 35 90 / 40%); box-shadow: inset 0 -2px 0 0 #cdcde6, inset 0 0 1px 1px #fff, 0 1px 2px 1px rgb(30 35 90 / 40%);
align-items: center;
justify-content: center;
&:nth-child(2), &:nth-child(2),
&:nth-child(3), &:nth-child(3),

View File

@ -114,11 +114,11 @@ function handleClose() {
left: 0; left: 0;
z-index: 800; z-index: 800;
display: flex; display: flex;
justify-content: center;
width: 100%; width: 100%;
height: 100%; height: 100%;
padding-top: 50px; padding-top: 50px;
background-color: rgb(0 0 0 / 25%); background-color: rgb(0 0 0 / 25%);
justify-content: center;
&--mobile { &--mobile {
padding: 0; padding: 0;
@ -159,19 +159,19 @@ function handleClose() {
&-content { &-content {
position: relative; position: relative;
flex-direction: column;
width: 632px; width: 632px;
margin: 0 auto auto; margin: 0 auto auto;
background-color: @component-background; background-color: @component-background;
border-radius: 16px; border-radius: 16px;
box-shadow: 0 25px 50px -12px rgb(0 0 0 / 25%); box-shadow: 0 25px 50px -12px rgb(0 0 0 / 25%);
flex-direction: column;
} }
&-input__wrapper { &-input__wrapper {
display: flex; display: flex;
padding: 14px 14px 0;
justify-content: space-between;
align-items: center; align-items: center;
justify-content: space-between;
padding: 14px 14px 0;
} }
&-input { &-input {
@ -194,12 +194,12 @@ function handleClose() {
&-not-data { &-not-data {
display: flex; display: flex;
align-items: center;
justify-content: center;
width: 100%; width: 100%;
height: 100px; height: 100px;
font-size: 0.9; font-size: 0.9;
color: rgb(150 159 175); color: rgb(150 159 175);
align-items: center;
justify-content: center;
} }
&-list { &-list {
@ -213,6 +213,7 @@ function handleClose() {
&__item { &__item {
position: relative; position: relative;
display: flex; display: flex;
align-items: center;
width: 100%; width: 100%;
height: 56px; height: 56px;
padding-bottom: 4px; padding-bottom: 4px;
@ -224,7 +225,6 @@ function handleClose() {
background-color: @component-background; background-color: @component-background;
border-radius: 4px; border-radius: 4px;
box-shadow: 0 1px 3px 0 #d4d9e1; box-shadow: 0 1px 3px 0 #d4d9e1;
align-items: center;
> div:first-child, > div:first-child,
> div:last-child { > div:last-child {

View File

@ -49,8 +49,8 @@ const getClass = computed(() => {
.@{prefix-cls} { .@{prefix-cls} {
display: inline-block; display: inline-block;
cursor: pointer; cursor: pointer;
transform: rotate(0deg);
transition: all 0.3s ease 0.1s; transition: all 0.3s ease 0.1s;
transform: rotate(0deg);
transform-origin: center center; transform-origin: center center;
&--active { &--active {

View File

@ -64,8 +64,8 @@ const getClass = computed(() => [
width: 3px; width: 3px;
height: 16px; height: 16px;
margin-right: 4px; margin-right: 4px;
background-color: @primary-color;
content: ''; content: '';
background-color: @primary-color;
} }
&-help { &-help {

View File

@ -97,9 +97,9 @@ export default defineComponent({
&__header { &__header {
display: flex; display: flex;
height: 32px;
justify-content: space-between;
align-items: center; align-items: center;
justify-content: space-between;
height: 32px;
border-bottom: 1px solid @border-color-light; border-bottom: 1px solid @border-color-light;
} }
@ -109,10 +109,10 @@ export default defineComponent({
&__action { &__action {
display: flex; display: flex;
text-align: right;
flex: 1; flex: 1;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
text-align: right;
} }
} }
</style> </style>

View File

@ -172,12 +172,12 @@ export default defineComponent({
width: 156px; width: 156px;
margin: 0; margin: 0;
list-style: none; list-style: none;
user-select: none;
background-color: @component-background; background-color: @component-background;
background-clip: padding-box;
border: 1px solid rgb(0 0 0 / 8%); border: 1px solid rgb(0 0 0 / 8%);
border-radius: 0.25rem; border-radius: 0.25rem;
box-shadow: 0 2px 2px 0 rgb(0 0 0 / 14%), 0 3px 1px -2px rgb(0 0 0 / 10%), 0 1px 5px 0 rgb(0 0 0 / 6%); box-shadow: 0 2px 2px 0 rgb(0 0 0 / 14%), 0 3px 1px -2px rgb(0 0 0 / 10%), 0 1px 5px 0 rgb(0 0 0 / 6%);
background-clip: padding-box;
user-select: none;
&__item { &__item {
margin: 0 !important; margin: 0 !important;

View File

@ -204,8 +204,8 @@ async function handleOk() {
&-toolbar { &-toolbar {
display: flex; display: flex;
justify-content: space-between;
align-items: center; align-items: center;
justify-content: space-between;
margin-top: 10px; margin-top: 10px;
} }
@ -225,11 +225,11 @@ async function handleOk() {
&-group { &-group {
display: flex; display: flex;
align-items: center;
justify-content: space-around;
padding-top: 8px; padding-top: 8px;
margin-top: 8px; margin-top: 8px;
border-top: 1px solid @border-color-base; border-top: 1px solid @border-color-base;
justify-content: space-around;
align-items: center;
} }
} }
</style> </style>

View File

@ -90,14 +90,14 @@ defineExpose({ openModal: openModal.bind(null, true), closeModal })
} }
&-image-mask { &-image-mask {
opacity: 0;
position: absolute; position: absolute;
width: inherit; width: inherit;
height: inherit; height: inherit;
border-radius: inherit;
border: inherit;
background: rgb(0 0 0 / 40%);
cursor: pointer; cursor: pointer;
background: rgb(0 0 0 / 40%);
border: inherit;
border-radius: inherit;
opacity: 0;
transition: opacity 0.4s; transition: opacity 0.4s;
:deep(svg) { :deep(svg) {

View File

@ -191,11 +191,11 @@ function handleOk() {
position: absolute; position: absolute;
.ant-drawer-header { .ant-drawer-header {
box-sizing: border-box;
width: 100%; width: 100%;
height: @detail-header-height; height: @detail-header-height;
padding: 0; padding: 0;
border-top: 1px solid @border-color-base; border-top: 1px solid @border-color-base;
box-sizing: border-box;
} }
.ant-drawer-title { .ant-drawer-title {

View File

@ -42,8 +42,8 @@ function handleClose() {
@footer-height: 60px; @footer-height: 60px;
.@{prefix-cls} { .@{prefix-cls} {
display: flex; display: flex;
height: 100%;
align-items: center; align-items: center;
height: 100%;
&__back { &__back {
padding: 0 12px; padding: 0 12px;

View File

@ -299,10 +299,10 @@ const getFormActionBindProps = computed((): Recordable => ({ ...getProps.value,
.suffix { .suffix {
display: inline-flex; display: inline-flex;
align-items: center;
padding-left: 6px; padding-left: 6px;
margin-top: 1px; margin-top: 1px;
line-height: 1; line-height: 1;
align-items: center;
} }
} }
} }

View File

@ -94,14 +94,14 @@ export default defineComponent({
} }
.options-delete { .options-delete {
flex-shrink: 0;
width: 30px; width: 30px;
height: 30px; height: 30px;
flex-shrink: 0;
line-height: 30px; line-height: 30px;
text-align: center;
border-radius: 50%;
background: #f5f5f5;
color: #666; color: #666;
text-align: center;
background: #f5f5f5;
border-radius: 50%;
&:hover { &:hover {
background: #ff4d4f; background: #ff4d4f;

View File

@ -237,9 +237,9 @@ export default defineComponent({
:deep(.icon) { :deep(.icon) {
width: 1em; width: 1em;
height: 1em; height: 1em;
overflow: hidden;
vertical-align: -0.15em; vertical-align: -0.15em;
fill: currentcolor; fill: currentcolor;
overflow: hidden;
} }
.rule-props-content { .rule-props-content {
@ -249,10 +249,10 @@ export default defineComponent({
.rule-props-item { .rule-props-item {
position: relative; position: relative;
background-color: #f0eded;
padding: 3px 2px; padding: 3px 2px;
border-radius: 5px;
margin-bottom: 5px; margin-bottom: 5px;
background-color: #f0eded;
border-radius: 5px;
:deep(.ant-form-item) { :deep(.ant-form-item) {
border: 0 !important; border: 0 !important;
@ -262,11 +262,11 @@ export default defineComponent({
position: absolute; position: absolute;
top: -5px; top: -5px;
right: -5px; right: -5px;
z-index: 999;
color: #ccc; color: #ccc;
cursor: pointer; cursor: pointer;
border-radius: 7px;
background-color: #a3a0a0; background-color: #a3a0a0;
z-index: 999; border-radius: 7px;
&:hover { &:hover {
color: #00c; color: #00c;

View File

@ -68,28 +68,28 @@ export default defineComponent({
@import url('../styles/variable.less'); @import url('../styles/variable.less');
ul { ul {
padding: 5px;
list-style: none;
display: flex; display: flex;
margin-bottom: 0;
flex-wrap: wrap; flex-wrap: wrap;
padding: 5px;
margin-bottom: 0;
list-style: none;
// background: #efefef; // background: #efefef;
li { li {
padding: 8px 12px;
transition: all 0.3s;
width: calc(50% - 6px); width: calc(50% - 6px);
margin: 2.7px;
height: 36px; height: 36px;
padding: 8px 12px;
margin: 2.7px;
line-height: 20px; line-height: 20px;
cursor: move; cursor: move;
border: 1px solid @border-color; border: 1px solid @border-color;
border-radius: 3px; border-radius: 3px;
transition: all 0.3s;
&:hover { &:hover {
position: relative;
color: @primary-color; color: @primary-color;
border: 1px solid @primary-color; border: 1px solid @primary-color;
position: relative;
// z-index: 1; // z-index: 1;
box-shadow: 0 2px 6px @primary-color; box-shadow: 0 2px 6px @primary-color;
} }

View File

@ -94,8 +94,8 @@ export default defineComponent({
.list-main { .list-main {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: flex-start;
align-content: flex-start; align-content: flex-start;
justify-content: flex-start;
.layout-width { .layout-width {
width: 100%; width: 100%;
@ -113,24 +113,24 @@ export default defineComponent({
height: 100%; height: 100%;
.empty-text { .empty-text {
color: #aaa;
height: 150px;
inset: -10% 0 0;
margin: auto;
position: absolute; position: absolute;
inset: -10% 0 0;
z-index: 100; z-index: 100;
height: 150px;
margin: auto;
color: #aaa;
} }
.draggable-box { .draggable-box {
// width: 100%; // width: 100%;
.drag-move { .drag-move {
cursor: move;
min-height: 62px; min-height: 62px;
cursor: move;
} }
.list-main { .list-main {
overflow: auto;
height: 100%; height: 100%;
overflow: auto;
// //
.list-enter-active { .list-enter-active {
transition: all 0.5s; transition: all 0.5s;

View File

@ -60,12 +60,12 @@ export default defineComponent({
box-sizing: border-box; box-sizing: border-box;
form { form {
width: 100%;
position: absolute; position: absolute;
width: 100%;
height: calc(100% - 50px); height: calc(100% - 50px);
margin-right: 10px; margin-right: 10px;
overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
overflow-y: auto;
} }
.hint-box { .hint-box {
@ -74,9 +74,9 @@ export default defineComponent({
.ant-form-item, .ant-form-item,
.ant-slider-with-marks { .ant-slider-with-marks {
margin-left: 10px;
margin-right: 20px; margin-right: 20px;
margin-bottom: 0; margin-bottom: 0;
margin-left: 10px;
} }
.ant-form-item { .ant-form-item {

View File

@ -99,24 +99,23 @@ export default defineComponent({
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
//noinspection CssUnknownTarget
@import url('../styles/variable.less'); @import url('../styles/variable.less');
.operating-area { .operating-area {
border-bottom: 2px solid @border-color;
font-size: 16px;
text-align: left;
height: @operating-area-height;
line-height: @operating-area-height;
padding: 0 12px;
display: flex; display: flex;
justify-content: space-between;
align-content: center; align-content: center;
justify-content: space-between;
height: @operating-area-height;
padding: 0 12px;
padding-left: 30px; padding-left: 30px;
font-size: 16px;
line-height: @operating-area-height;
text-align: left;
border-bottom: 2px solid @border-color;
a { a {
color: #666;
margin: 0 5px; margin: 0 5px;
color: #666;
&.disabled, &.disabled,
&.disabled:hover { &.disabled:hover {
@ -128,8 +127,8 @@ export default defineComponent({
} }
> span { > span {
font-size: 14px;
padding-left: 2px; padding-left: 2px;
font-size: 14px;
} }
} }
} }

View File

@ -4,36 +4,36 @@
/* stylelint-disable-next-line selector-pseudo-class-no-unknown */ /* stylelint-disable-next-line selector-pseudo-class-no-unknown */
:deep(.list-main) { :deep(.list-main) {
overflow: hidden;
padding: 5px;
position: relative; position: relative;
padding: 5px;
overflow: hidden;
.moving { .moving {
position: relative;
box-sizing: border-box;
// 拖放移动中; // 拖放移动中;
min-height: 35px; min-height: 35px;
box-sizing: border-box;
overflow: hidden;
padding: 0 !important; padding: 0 !important;
position: relative; overflow: hidden;
&::before { &::before {
content: '';
height: 5px;
width: 100%;
background-color: @primary-color;
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
width: 100%;
height: 5px;
content: '';
background-color: @primary-color;
} }
} }
.drag-move-box { .drag-move-box {
position: relative; position: relative;
box-sizing: border-box; box-sizing: border-box;
min-height: 60px;
padding: 8px; padding: 8px;
overflow: hidden; overflow: hidden;
transition: all 0.3s; transition: all 0.3s;
min-height: 60px;
&:hover { &:hover {
background-color: @primary-hover-bg-color; background-color: @primary-hover-bg-color;
@ -41,13 +41,13 @@
// 选择时 start // 选择时 start
&::before { &::before {
content: '';
height: 5px;
width: 100%;
background-color: @primary-color;
position: absolute; position: absolute;
top: 0; top: 0;
right: -100%; right: -100%;
width: 100%;
height: 5px;
content: '';
background-color: @primary-color;
transition: all 0.3s; transition: all 0.3s;
} }
@ -67,26 +67,26 @@
word-wrap: break-word; word-wrap: break-word;
&::before { &::before {
content: '';
position: absolute; position: absolute;
width: 100%;
height: 100%;
top: 0; top: 0;
left: 0; left: 0;
width: 100%;
height: 100%;
content: '';
} }
.ant-form-item { .ant-form-item {
padding-bottom: 6px;
// 修改ant form-item的margin为padding // 修改ant form-item的margin为padding
margin: 0; margin: 0;
padding-bottom: 6px;
} }
} }
.show-key-box { .show-key-box {
// 显示key // 显示key
position: absolute; position: absolute;
bottom: 2px;
right: 5px; right: 5px;
bottom: 2px;
font-size: 14px; font-size: 14px;
// z-index: 999; // z-index: 999;
color: @primary-color; color: @primary-color;
@ -99,14 +99,14 @@
width: 30px; width: 30px;
height: 30px; height: 30px;
line-height: 30px; line-height: 30px;
text-align: center;
color: #fff; color: #fff;
text-align: center;
// z-index: 989; // z-index: 989;
transition: all 0.3s; transition: all 0.3s;
&.unactivated { &.unactivated {
opacity: 0 !important;
pointer-events: none; pointer-events: none;
opacity: 0 !important;
} }
&.active { &.active {
@ -115,9 +115,9 @@
} }
.copy { .copy {
border-radius: 0 0 0 8px;
right: 30px; right: 30px;
background-color: @primary-color; background-color: @primary-color;
border-radius: 0 0 0 8px;
} }
.delete { .delete {
@ -129,20 +129,20 @@
.grid-box { .grid-box {
position: relative; position: relative;
box-sizing: border-box; box-sizing: border-box;
padding: 5px;
background-color: @layout-background-color;
width: 100%; width: 100%;
transition: all 0.3s; padding: 5px;
overflow: hidden; overflow: hidden;
background-color: @layout-background-color;
transition: all 0.3s;
.form-item-box { .form-item-box {
position: relative; position: relative;
box-sizing: border-box; box-sizing: border-box;
.ant-form-item { .ant-form-item {
padding-bottom: 15px;
// 修改ant form-item的margin为padding // 修改ant form-item的margin为padding
margin: 0; margin: 0;
padding-bottom: 15px;
} }
} }
@ -151,14 +151,14 @@
.grid-col { .grid-col {
.draggable-box { .draggable-box {
min-height: 80px;
min-width: 50px; min-width: 50px;
min-height: 80px;
border: 1px #ccc dashed; border: 1px #ccc dashed;
// background: #fff; // background: #fff;
.list-main { .list-main {
min-height: 83px;
position: relative; position: relative;
min-height: 83px;
border: 1px #ccc dashed; border: 1px #ccc dashed;
} }
} }
@ -167,13 +167,13 @@
// 选择时 start // 选择时 start
&::before { &::before {
content: '';
height: 5px;
width: 100%;
background: transparent;
position: absolute; position: absolute;
top: 0; top: 0;
right: -100%; right: -100%;
width: 100%;
height: 5px;
content: '';
background: transparent;
transition: all 0.3s; transition: all 0.3s;
} }
@ -182,8 +182,8 @@
outline-offset: 0; outline-offset: 0;
&::before { &::before {
background-color: @layout-color;
right: 0; right: 0;
background-color: @layout-color;
} }
} }
// 选择时 end // 选择时 end
@ -195,14 +195,14 @@
width: 30px; width: 30px;
height: 30px; height: 30px;
line-height: 30px; line-height: 30px;
text-align: center;
color: #fff; color: #fff;
text-align: center;
// z-index: 989; // z-index: 989;
transition: all 0.3s; transition: all 0.3s;
&.unactivated { &.unactivated {
opacity: 0 !important;
pointer-events: none; pointer-events: none;
opacity: 0 !important;
} }
&.active { &.active {
@ -211,9 +211,9 @@
} }
> .copy { > .copy {
border-radius: 0 0 0 8px;
right: 30px; right: 30px;
background-color: @layout-color; background-color: @layout-color;
border-radius: 0 0 0 8px;
} }
> .delete { > .delete {

View File

@ -35,10 +35,10 @@ defineProps({
left: 0; left: 0;
z-index: 200; z-index: 200;
display: flex; display: flex;
align-items: center;
justify-content: center;
width: 100%; width: 100%;
height: 100%; height: 100%;
justify-content: center;
align-items: center;
background-color: rgb(240 242 245 / 40%); background-color: rgb(240 242 245 / 40%);
&.absolute { &.absolute {

View File

@ -55,8 +55,8 @@ function handleFullScreen(e: Event) {
@prefix-cls: ~'@{namespace}-basic-modal-close'; @prefix-cls: ~'@{namespace}-basic-modal-close';
.@{prefix-cls} { .@{prefix-cls} {
display: flex; display: flex;
height: 95%;
align-items: center; align-items: center;
height: 95%;
> span { > span {
margin-left: 48px; margin-left: 48px;

View File

@ -26,8 +26,8 @@ const { getCalcContentWidth } = useMenuSetting()
bottom: 0; bottom: 0;
z-index: @page-footer-z-index; z-index: @page-footer-z-index;
display: flex; display: flex;
width: 100%;
align-items: center; align-items: center;
width: 100%;
padding: 0 24px; padding: 0 24px;
line-height: 44px; line-height: 44px;
background-color: @component-background; background-color: @component-background;

View File

@ -419,16 +419,16 @@ export default defineComponent({
position: fixed; position: fixed;
inset: 0; inset: 0;
z-index: @preview-comp-z-index; z-index: @preview-comp-z-index;
background: rgb(0 0 0 / 50%);
user-select: none; user-select: none;
background: rgb(0 0 0 / 50%);
&-content { &-content {
display: flex; display: flex;
align-items: center;
justify-content: center;
width: 100%; width: 100%;
height: 100%; height: 100%;
color: @white; color: @white;
justify-content: center;
align-items: center;
} }
&-image { &-image {
@ -477,13 +477,13 @@ export default defineComponent({
bottom: 10%; bottom: 10%;
left: 50%; left: 50%;
display: flex; display: flex;
justify-content: center;
width: 260px; width: 260px;
height: 44px; height: 44px;
padding: 0 22px; padding: 0 22px;
margin-left: -139px; margin-left: -139px;
background: rgb(109 109 109 / 60%); background: rgb(109 109 109 / 60%);
border-radius: 22px; border-radius: 22px;
justify-content: center;
&-item { &-item {
display: flex; display: flex;

View File

@ -69,11 +69,11 @@ watch(
display: block; display: block;
width: 20%; width: 20%;
height: inherit; height: inherit;
content: '';
background-color: transparent; background-color: transparent;
border-color: @white; border-color: @white;
border-style: solid; border-style: solid;
border-width: 0 5px; border-width: 0 5px;
content: '';
} }
&::before { &::before {

View File

@ -361,10 +361,10 @@ emit('register', tableAction, formActions)
&-title { &-title {
display: flex; display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 6px; padding: 8px 6px;
border-bottom: none; border-bottom: none;
justify-content: space-between;
align-items: center;
} }
//.ant-table-tbody > tr.ant-table-row-selected td { //.ant-table-tbody > tr.ant-table-row-selected td {

View File

@ -169,8 +169,8 @@ function onCellClick(e: MouseEvent) {
} }
.ant-btn-link { .ant-btn-link {
margin-left: 0;
padding: 8px 4px; padding: 8px 4px;
margin-left: 0;
} }
.ant-divider, .ant-divider,

View File

@ -48,8 +48,8 @@ function handleColumnChange(data: ColumnChangeParam[]) {
.@{prefix-cls} { .@{prefix-cls} {
&__toolbar { &__toolbar {
flex: 1;
display: flex; display: flex;
flex: 1;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;

View File

@ -40,7 +40,7 @@ const getTitle = computed(() => {
.@{prefix-cls} { .@{prefix-cls} {
display: flex; display: flex;
justify-content: space-between;
align-items: center; align-items: center;
justify-content: space-between;
} }
</style> </style>

View File

@ -498,11 +498,11 @@ export default defineComponent({
.ellipsis-cell { .ellipsis-cell {
.cell-content { .cell-content {
overflow-wrap: break-word;
word-break: break-word;
overflow: hidden; overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
word-break: break-word;
overflow-wrap: break-word;
white-space: nowrap;
} }
} }

View File

@ -268,9 +268,9 @@ async function handleCloseFunc() {
margin-bottom: 8px; margin-bottom: 8px;
&__btn { &__btn {
flex: 1;
margin-left: 8px; margin-left: 8px;
text-align: right; text-align: right;
flex: 1;
} }
} }
} }

File diff suppressed because one or more lines are too long

View File

@ -17,7 +17,7 @@
:src="'data:image/png;base64,' + pointBackImgBase" :src="'data:image/png;base64,' + pointBackImgBase"
ref="canvas" ref="canvas"
alt="" alt=""
style="width: 100%; height: 100%; display: block" style="display: block; width: 100%; height: 100%"
@click="bindingClick ? canvasClick($event) : undefined" @click="bindingClick ? canvasClick($event) : undefined"
/> />

View File

@ -2,7 +2,7 @@
<div style="position: relative"> <div style="position: relative">
<div v-if="type === '2'" class="verify-img-out" :style="{ height: parseInt(setSize.imgHeight) + vSpace + 'px' }"> <div v-if="type === '2'" class="verify-img-out" :style="{ height: parseInt(setSize.imgHeight) + vSpace + 'px' }">
<div class="verify-img-panel" :style="{ width: setSize.imgWidth, height: setSize.imgHeight }"> <div class="verify-img-panel" :style="{ width: setSize.imgWidth, height: setSize.imgHeight }">
<img :src="'data:image/png;base64,' + backImgBase" alt="" style="width: 100%; height: 100%; display: block" /> <img :src="'data:image/png;base64,' + backImgBase" alt="" style=" display: block;width: 100%; height: 100%" />
<div class="verify-refresh" @click="refresh" v-show="showRefresh"> <div class="verify-refresh" @click="refresh" v-show="showRefresh">
<i class="iconfont icon-refresh"></i> <i class="iconfont icon-refresh"></i>
</div> </div>
@ -49,7 +49,7 @@
'background-size': setSize.imgWidth + ' ' + setSize.imgHeight 'background-size': setSize.imgWidth + ' ' + setSize.imgHeight
}" }"
> >
<img :src="blockBackImgBase" alt="" style="width: 100%; height: 100%; display: block; -webkit-user-drag: none" /> <img :src="blockBackImgBase" alt="" style=" display: block;width: 100%; height: 100%; -webkit-user-drag: none" />
</div> </div>
</div> </div>
</div> </div>

View File

@ -162,10 +162,10 @@ export default defineComponent({
.virtual-scroll { .virtual-scroll {
position: relative; position: relative;
display: block; display: block;
flex: 1 1 auto;
width: 100%; width: 100%;
max-width: 100%; max-width: 100%;
overflow: auto; overflow: auto;
flex: 1 1 auto;
&__container { &__container {
display: block; display: block;

View File

@ -186,8 +186,8 @@
} }
&-background-ghost { &-background-ghost {
border-width: 1px;
background-color: transparent !important; background-color: transparent !important;
border-width: 1px;
&[disabled], &[disabled],
&[disabled]:hover { &[disabled]:hover {

View File

@ -4,8 +4,8 @@
.ant-input { .ant-input {
&-number, &-number,
&-number-group-wrapper { &-number-group-wrapper {
min-width: 110px;
width: 100% !important; width: 100% !important;
min-width: 110px;
max-width: 100%; max-width: 100%;
} }
} }

View File

@ -52,13 +52,13 @@ const getIsFixedSettingDrawer = computed(() => {
right: 0; right: 0;
z-index: 10; z-index: 10;
display: flex; display: flex;
align-items: center;
justify-content: center;
padding: 10px; padding: 10px;
color: @white; color: @white;
cursor: pointer; cursor: pointer;
background-color: @primary-color; background-color: @primary-color;
border-radius: 6px 0 0 6px; border-radius: 6px 0 0 6px;
justify-content: center;
align-items: center;
svg { svg {
width: 1em; width: 1em;

View File

@ -78,8 +78,8 @@ const getClass = computed(() => {
@prefix-cls: ~'@{namespace}-layout-multiple-header'; @prefix-cls: ~'@{namespace}-layout-multiple-header';
.@{prefix-cls} { .@{prefix-cls} {
transition: width 0.2s;
flex: 0 0 auto; flex: 0 0 auto;
transition: width 0.2s;
&--dark { &--dark {
margin-left: -1px; margin-left: -1px;

View File

@ -1,6 +1,6 @@
<template> <template>
<div :class="[prefixCls, `${prefixCls}--${theme}`]"> <div :class="[prefixCls, `${prefixCls}--${theme}`]">
<Breadcrumb :routes="routes"> <Breadcrumb :routes="routes as any">
<template #itemRender="{ route, routes: routesMatched, paths }"> <template #itemRender="{ route, routes: routesMatched, paths }">
<Icon :icon="getIcon(route)" v-if="getShowBreadCrumbIcon && getIcon(route)" /> <Icon :icon="getIcon(route)" v-if="getShowBreadCrumbIcon && getIcon(route)" />
<span v-if="!hasRedirect(routesMatched, route)"> <span v-if="!hasRedirect(routesMatched, route)">
@ -142,8 +142,8 @@ function getIcon(route) {
.@{prefix-cls} { .@{prefix-cls} {
display: flex; display: flex;
padding: 0 8px;
align-items: center; align-items: center;
padding: 0 8px;
.ant-breadcrumb-link { .ant-breadcrumb-link {
.anticon { .anticon {

View File

@ -98,13 +98,13 @@ function handleMenuClick(e: MenuInfo) {
@prefix-cls: ~'@{namespace}-header-user-dropdown'; @prefix-cls: ~'@{namespace}-header-user-dropdown';
.@{prefix-cls} { .@{prefix-cls} {
align-items: center;
height: @header-height; height: @header-height;
padding: 0 0 0 10px; padding: 0 0 0 10px;
padding-right: 10px; padding-right: 10px;
overflow: hidden; overflow: hidden;
font-size: 12px; font-size: 12px;
cursor: pointer; cursor: pointer;
align-items: center;
img { img {
width: 24px; width: 24px;

View File

@ -5,14 +5,14 @@
.@{header-prefix-cls} { .@{header-prefix-cls} {
display: flex; display: flex;
align-items: center;
justify-content: space-between;
height: @header-height; height: @header-height;
padding: 0; padding: 0;
margin-left: -1px; margin-left: -1px;
line-height: @header-height; line-height: @header-height;
color: @white; color: @white;
background-color: @white; background-color: @white;
align-items: center;
justify-content: space-between;
&--mobile { &--mobile {
.@{breadcrumb-prefix-cls}, .@{breadcrumb-prefix-cls},
@ -47,8 +47,8 @@
} }
&-logo { &-logo {
height: @header-height;
min-width: 192px; min-width: 192px;
height: @header-height;
padding: 0 10px; padding: 0 10px;
font-size: 14px; font-size: 14px;
@ -61,15 +61,15 @@
&-left { &-left {
display: flex; display: flex;
height: 100%;
align-items: center; align-items: center;
height: 100%;
.@{header-trigger-prefix-cls} { .@{header-trigger-prefix-cls} {
display: flex; display: flex;
align-items: center;
height: 100%; height: 100%;
padding: 1px 10px 0; padding: 1px 10px 0;
cursor: pointer; cursor: pointer;
align-items: center;
.anticon { .anticon {
font-size: 16px; font-size: 16px;
@ -94,25 +94,25 @@
} }
&-menu { &-menu {
height: 100%;
min-width: 0;
flex: 1; flex: 1;
align-items: center; align-items: center;
min-width: 0;
height: 100%;
} }
&-action { &-action {
display: flex; display: flex;
min-width: 180px;
// padding-right: 12px; // padding-right: 12px;
align-items: center; align-items: center;
min-width: 180px;
&__item { &__item {
display: flex !important; display: flex !important;
align-items: center;
height: @header-height; height: @header-height;
padding: 0 2px; padding: 0 2px;
font-size: 1.2em; font-size: 1.2em;
cursor: pointer; cursor: pointer;
align-items: center;
.ant-badge { .ant-badge {
height: @header-height; height: @header-height;

View File

@ -54,10 +54,10 @@ const layoutClass = computed(() => {
.@{prefix-cls} { .@{prefix-cls} {
display: flex; display: flex;
flex-direction: column;
width: 100%; width: 100%;
min-height: 100%; min-height: 100%;
background-color: @content-bg; background-color: @content-bg;
flex-direction: column;
> .ant-layout { > .ant-layout {
min-height: 100%; min-height: 100%;

View File

@ -48,8 +48,8 @@ function handleClick(color: string) {
.@{prefix-cls} { .@{prefix-cls} {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin: 16px 0;
justify-content: space-around; justify-content: space-around;
margin: 16px 0;
&__item { &__item {
width: 20px; width: 20px;

View File

@ -345,9 +345,9 @@ export default defineComponent({
&-logo { &-logo {
display: flex; display: flex;
justify-content: center;
height: @header-height; height: @header-height;
padding-left: 0 !important; padding-left: 0 !important;
justify-content: center;
img { img {
width: @logo-width; width: @logo-width;
@ -457,8 +457,8 @@ export default defineComponent({
left: 0; left: 0;
width: 3px; width: 3px;
height: 100%; height: 100%;
background-color: @primary-color;
content: ''; content: '';
background-color: @primary-color;
} }
} }
} }
@ -481,13 +481,13 @@ export default defineComponent({
bottom: 0; bottom: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 36px;
font-size: 14px; font-size: 14px;
line-height: 36px;
color: rgb(255 255 255 / 65%); color: rgb(255 255 255 / 65%);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
background-color: @trigger-dark-bg-color; background-color: @trigger-dark-bg-color;
height: 36px;
line-height: 36px;
} }
&.light &-trigger { &.light &-trigger {
@ -506,6 +506,8 @@ export default defineComponent({
&__title { &__title {
display: flex; display: flex;
align-items: center;
justify-content: space-between;
height: @header-height; height: @header-height;
// margin-left: -6px; // margin-left: -6px;
font-size: 18px; font-size: 18px;
@ -513,8 +515,6 @@ export default defineComponent({
border-bottom: 1px solid rgb(238 238 238); border-bottom: 1px solid rgb(238 238 238);
opacity: 0; opacity: 0;
transition: unset; transition: unset;
align-items: center;
justify-content: space-between;
&.show { &.show {
min-width: 130px; min-width: 130px;

View File

@ -29,8 +29,8 @@ html[data-theme='light'] {
.ant-tabs.ant-tabs-card { .ant-tabs.ant-tabs-card {
.ant-tabs-nav { .ant-tabs-nav {
padding-top: 2px;
height: @multiple-height; height: @multiple-height;
padding-top: 2px;
margin: 0; margin: 0;
background-color: @component-background; background-color: @component-background;
border: 0; border: 0;
@ -58,12 +58,12 @@ html[data-theme='light'] {
.ant-tabs-tab-remove { .ant-tabs-tab-remove {
width: 8px; width: 8px;
height: 28px; height: 28px;
margin-right: -4px;
margin-left: 2px;
font-size: 12px; font-size: 12px;
color: inherit; color: inherit;
opacity: 0; opacity: 0;
transition: none; transition: none;
margin-left: 2px;
margin-right: -4px;
&:hover { &:hover {
svg { svg {

View File

@ -129,8 +129,8 @@ export default defineComponent({
.@{prefix-cls} { .@{prefix-cls} {
display: flex; display: flex;
align-items: center;
flex-direction: column; flex-direction: column;
align-items: center;
.ant-result-icon { .ant-result-icon {
img { img {

View File

@ -74,12 +74,12 @@ function hideLoading() {
} }
&__main { &__main {
box-sizing: border-box;
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
background-color: @component-background; background-color: @component-background;
border: 0; border: 0;
box-sizing: border-box;
} }
} }
</style> </style>

View File

@ -127,12 +127,12 @@ function handleShowForm(show = false) {
&__hour, &__hour,
&__minute { &__minute {
display: flex; display: flex;
align-items: center;
justify-content: center;
font-weight: 700; font-weight: 700;
color: #bababa; color: #bababa;
background-color: #141313; background-color: #141313;
border-radius: 30px; border-radius: 30px;
justify-content: center;
align-items: center;
@media screen and (max-width: @screen-md) { @media screen and (max-width: @screen-md) {
span:not(.meridiem) { span:not(.meridiem) {
@ -176,12 +176,12 @@ function handleShowForm(show = false) {
top: 0; top: 0;
left: 0; left: 0;
display: flex; display: flex;
align-items: center;
justify-content: center;
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: rgb(0 0 0 / 50%); background-color: rgb(0 0 0 / 50%);
backdrop-filter: blur(8px); backdrop-filter: blur(8px);
justify-content: center;
align-items: center;
&-content { &-content {
width: 260px; width: 260px;

View File

@ -125,11 +125,11 @@ html[data-theme='dark'] {
width: 100%; width: 100%;
height: 100%; height: 100%;
margin-left: -48%; margin-left: -48%;
background-image: url('@/assets/svg/login-bg.svg');
background-position: 100%;
background-repeat: no-repeat;
background-size: auto 100%;
content: ''; content: '';
background-image: url('@/assets/svg/login-bg.svg');
background-repeat: no-repeat;
background-position: 100%;
background-size: auto 100%;
@media (max-width: @screen-xl) { @media (max-width: @screen-xl) {
display: none; display: none;

View File

@ -1,15 +1,29 @@
module.exports = { module.exports = {
root: true, root: true,
plugins: ['stylelint-order'], plugins: ['stylelint-order', 'stylelint-prettier'],
extends: ['stylelint-config-standard'], extends: ['stylelint-config-standard', 'stylelint-config-recess-order'],
customSyntax: 'postcss-html', overrides: [
{
files: ['**/*.(css|html|vue)'],
customSyntax: 'postcss-html'
},
{
files: ['*.less', '**/*.less'],
customSyntax: 'postcss-less',
extends: ['stylelint-config-standard', 'stylelint-config-recommended-vue']
}
],
rules: { rules: {
'prettier/prettier': true,
'at-rule-no-unknown': null,
'selector-not-notation': null,
'import-notation': null,
'function-no-unknown': null, 'function-no-unknown': null,
'selector-class-pattern': null, 'selector-class-pattern': null,
'selector-pseudo-class-no-unknown': [ 'selector-pseudo-class-no-unknown': [
true, true,
{ {
ignorePseudoClasses: ['global'] ignorePseudoClasses: ['global', 'deep']
} }
], ],
'selector-pseudo-element-no-unknown': [ 'selector-pseudo-element-no-unknown': [
@ -24,19 +38,19 @@ module.exports = {
ignoreAtRules: ['tailwind', 'apply', 'variants', 'responsive', 'screen', 'function', 'if', 'each', 'include', 'mixin'] ignoreAtRules: ['tailwind', 'apply', 'variants', 'responsive', 'screen', 'function', 'if', 'each', 'include', 'mixin']
} }
], ],
'media-feature-range-notation': null,
'no-empty-source': null, 'no-empty-source': null,
'string-quotes': null,
'import-notation': null, 'import-notation': null,
'named-grid-areas-no-invalid': null, 'named-grid-areas-no-invalid': null,
'no-descending-specificity': null, 'no-descending-specificity': null,
'font-family-no-missing-generic-family-keyword': null, 'font-family-no-missing-generic-family-keyword': null,
// 'declaration-block-trailing-semicolon': 'always',
'rule-empty-line-before': [ 'rule-empty-line-before': [
'always', 'always',
{ {
ignore: ['after-comment', 'first-nested'] ignore: ['after-comment', 'first-nested']
} }
], ],
'unit-no-unknown': [true, { ignoreUnits: ['rpx'] }],
'order/order': [ 'order/order': [
[ [
'dollar-variables', 'dollar-variables',
@ -51,36 +65,14 @@ module.exports = {
type: 'at-rule', type: 'at-rule',
name: 'media' name: 'media'
}, },
{
type: 'at-rule',
name: 'include'
},
'rules' 'rules'
], ],
{ severity: 'warning' } { severity: 'error' }
] ]
}, },
ignoreFiles: ['**/*.js', '**/*.jsx', '**/*.tsx', '**/*.ts'], ignoreFiles: ['**/*.js', '**/*.jsx', '**/*.tsx', '**/*.ts']
overrides: [
{
files: ['*.vue', '**/*.vue', '*.html', '**/*.html'],
extends: ['stylelint-config-recommended'],
rules: {
'keyframes-name-pattern': null,
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['deep', 'global']
}
],
'selector-pseudo-element-no-unknown': [
true,
{
ignorePseudoElements: ['v-deep', 'v-global', 'v-slotted']
}
]
}
},
{
files: ['*.less', '**/*.less'],
customSyntax: 'postcss-less',
extends: ['stylelint-config-standard', 'stylelint-config-recommended-vue']
}
]
} }