-
+
+
+
@@ -221,10 +230,12 @@ export default {
name: 'UploadImgs',
data() {
return {
+ srcList: [],
itemList: [],
+ imageRefs: [],
loading: false,
currentId: '', // 正在操作项的id
- globalImgPriview: '$imagePreview', // 全局图片预览方法名
+ imageInitialIndex: 0,
}
},
props: {
@@ -714,23 +725,13 @@ export default {
* @param {Number} index 索引序号
*/
previewImg(data, index) {
- // 如果有全局预览方法
- if (this[this.globalImgPriview]) {
- const images = []
- this.itemList.forEach(element => {
- if (element.display) {
- images.push(element.display)
- }
- })
- this[this.globalImgPriview]({
- images,
- index,
- })
- } else {
- // element 原生粗糙模式
- this.$confirm(`

`, '预览', {
- dangerouslyUseHTMLString: true,
- })
+ const usable = this.itemList.filter(item => item.status !== 'input')
+ this.srcList = usable.map(item => item.display)
+ this.imageRefs[index].showViewer = true
+ },
+ setImageRef(el) {
+ if (el) {
+ this.imageRefs.push(el)
}
},
/**
@@ -1079,6 +1080,12 @@ export default {
}
.thumb-item {
+ :v-deep(.el-image-viewer__canvas) {
+ position: absolute;
+ max-width: 800px;
+ left: 50%;
+ transform: translateX(-50%);
+ }
.info {
display: flex;
align-items: center;
diff --git a/src/component/layout/user.vue b/src/component/layout/user.vue
index be485dcf..114343c1 100644
--- a/src/component/layout/user.vue
+++ b/src/component/layout/user.vue
@@ -392,12 +392,12 @@ export default {
diff --git a/src/plugin/custom/view/multiple-input.vue b/src/plugin/custom/view/multiple-input.vue
index e478261e..2b45db7b 100644
--- a/src/plugin/custom/view/multiple-input.vue
+++ b/src/plugin/custom/view/multiple-input.vue
@@ -78,11 +78,11 @@ export default {
@@ -370,7 +370,7 @@ export default {
margin-left: 10px;
vertical-align: bottom;
}
-.input-new-tag ::v-deep .el-input__inner {
+.input-new-tag :v-deep(.el-input__inner) {
height: 24px;
}
diff --git a/src/plugin/lin-cms-ui/view/form/input.vue b/src/plugin/lin-cms-ui/view/form/input.vue
index 01bcbc1d..941225a7 100644
--- a/src/plugin/lin-cms-ui/view/form/input.vue
+++ b/src/plugin/lin-cms-ui/view/form/input.vue
@@ -189,7 +189,7 @@ export default {
diff --git a/src/plugin/lin-cms-ui/view/other/dialog.vue b/src/plugin/lin-cms-ui/view/other/dialog.vue
index 6511d252..c4255845 100644
--- a/src/plugin/lin-cms-ui/view/other/dialog.vue
+++ b/src/plugin/lin-cms-ui/view/other/dialog.vue
@@ -355,7 +355,7 @@ export default {
margin-bottom: 20px;
}
-.dialogForm ::v-deep .el-select {
+.dialogForm :v-deep(.el-select) {
width: 100%;
}
diff --git a/src/plugin/lin-cms-ui/view/other/timeline.vue b/src/plugin/lin-cms-ui/view/other/timeline.vue
index 3f434915..95165569 100644
--- a/src/plugin/lin-cms-ui/view/other/timeline.vue
+++ b/src/plugin/lin-cms-ui/view/other/timeline.vue
@@ -276,15 +276,15 @@ export default {
margin-bottom: 20px;
}
-.timeLineCard ::v-deep .el-card__body {
+.timeLineCard :v-deep(.el-card__body) {
padding: 20px;
}
-.timeLineCard ::v-deep .el-card__body h4 {
+.timeLineCard :v-deep(.el-card__body h4) {
margin: 20px 0px;
}
-.timeLineCard ::v-deep .el-card__body {
+.timeLineCard :v-deep(.el-card__body) {
margin: 14px 0px;
}
diff --git a/src/plugin/lin-cms-ui/view/table/table-combo.vue b/src/plugin/lin-cms-ui/view/table/table-combo.vue
index e07e4c88..1319786a 100644
--- a/src/plugin/lin-cms-ui/view/table/table-combo.vue
+++ b/src/plugin/lin-cms-ui/view/table/table-combo.vue
@@ -518,16 +518,16 @@ export default {
}
}
// dialog
-.tableSample ::v-deep .el-dialog__footer {
+.tableSample :v-deep(.el-dialog__footer) {
text-align: left;
padding-left: 30px;
}
-.tableSample ::v-deep .el-dialog__header {
+.tableSample :v-deep(.el-dialog__header) {
padding-left: 30px;
}
-.tableSample ::v-deep .el-dialog__body {
+.tableSample :v-deep(.el-dialog__body) {
padding: 30px;
}
diff --git a/src/view/about/about.vue b/src/view/about/about.vue
index b4aa67ed..6c7b7596 100644
--- a/src/view/about/about.vue
+++ b/src/view/about/about.vue
@@ -466,12 +466,12 @@ export default {
.personal-tabs {
margin-bottom: 20px;
}
- .personal-tabs ::v-deep .is-top {
+ .personal-tabs :v-deep(.is-top) {
width: 320px;
display: flex;
justify-content: space-around;
}
- .personal-tabs ::v-deep .el-tabs__content {
+ .personal-tabs :v-deep(.el-tabs__content) {
text-indent: 20px;
}
}
diff --git a/src/view/admin/group/group-list.vue b/src/view/admin/group/group-list.vue
index 1327917d..1c3cb6ba 100644
--- a/src/view/admin/group/group-list.vue
+++ b/src/view/admin/group/group-list.vue
@@ -118,15 +118,15 @@ export default {
font-weight: 500;
}
}
-.groupListInfoDialog ::v-deep .el-dialog__footer {
+.groupListInfoDialog :v-deep(.el-dialog__footer) {
text-align: left;
padding-left: 30px;
}
-.groupListInfoDialog ::v-deep .el-dialog__header {
+.groupListInfoDialog :v-deep(.el-dialog__header) {
padding-left: 30px;
}
-.groupListInfoDialog ::v-deep .el-dialog__body {
+.groupListInfoDialog :v-deep(.el-dialog__body) {
padding: 30px;
}
diff --git a/src/view/admin/user/user-password.vue b/src/view/admin/user/user-password.vue
index 38005ca5..b12eb5f5 100644
--- a/src/view/admin/user/user-password.vue
+++ b/src/view/admin/user/user-password.vue
@@ -127,7 +127,7 @@ function getRules(ctx, info, form) {
diff --git a/src/view/log/log.vue b/src/view/log/log.vue
index f065e4a4..7f800b6b 100644
--- a/src/view/log/log.vue
+++ b/src/view/log/log.vue
@@ -313,7 +313,7 @@ export default {