refactor: 去掉组件悬浮样式框多余的样式设置

This commit is contained in:
wangjiahao 2022-04-01 19:17:16 +08:00
parent cea18cdc03
commit da2cbc4ce6
2 changed files with 13 additions and 41 deletions

View File

@ -244,8 +244,6 @@ export default {
'picture-add': [
'borderStyle',
'borderWidth',
'borderRadius',
'opacity',
'borderColor',
'hyperlinks'
],
@ -254,15 +252,12 @@ export default {
'fontSize',
'fontWeight',
'letterSpacing',
'color',
'backgroundColor'
'color'
],
// tab
'de-tabs': [
'borderStyle',
'borderWidth',
'borderRadius',
'opacity',
'borderColor',
'deTabStyle'
],
@ -270,20 +265,14 @@ export default {
'rect-shape': [
'borderStyle',
'borderWidth',
'borderRadius',
'opacity',
'borderColor',
'backgroundColor'
'borderColor'
],
//
'de-show-date': [
'textAlign',
'fontSize',
'fontWeight',
'opacity',
'borderRadius',
'color',
'backgroundColor',
'date-format',
'time_margin',
'padding'
@ -295,10 +284,7 @@ export default {
'fontSize',
'fontWeight',
'letterSpacing',
'opacity',
'borderRadius',
'color',
'backgroundColor',
'hyperlinks'
],
'de-video': [
@ -405,9 +391,9 @@ export default {
this.innerOpacity = this.styleInfo['opacity'] * 100
}
if (this.curComponent.type === 'v-text') {
this.mainWidthOffset = 600
this.mainWidthOffset = 400
} else if (this.curComponent.type === 'de-show-date') {
this.mainWidthOffset = 600
this.mainWidthOffset = 350
} else {
this.mainWidthOffset = document.getElementById('main-attr').offsetWidth - 50
}

View File

@ -208,9 +208,7 @@ const list = [
letterSpacing: 0,
textAlign: 'center',
color: '#000000',
verticalAlign: 'middle',
backgroundColor: '#ffffff',
borderRadius: 0
verticalAlign: 'middle'
},
hyperlinks: HYPERLINKS,
x: 1,
@ -255,8 +253,7 @@ const list = [
mobileStyle: BASE_MOBILE_STYLE,
style: {
width: 300,
height: 200,
borderRadius: ''
height: 200
},
x: 1,
y: 1,
@ -296,9 +293,7 @@ const list = [
height: 200,
borderStyle: 'solid',
borderWidth: 0,
borderColor: '#000000',
backgroundColor: '#ffffff',
borderRadius: 0
borderColor: '#000000'
},
x: 1,
y: 1,
@ -317,8 +312,7 @@ const list = [
mobileStyle: BASE_MOBILE_STYLE,
style: {
width: 300,
height: 200,
borderRadius: ''
height: 200
},
x: 1,
y: 36,
@ -341,9 +335,7 @@ const list = [
height: 200,
borderStyle: 'solid',
borderWidth: 0,
borderColor: '#000000',
backgroundColor: '#ffffff',
borderRadius: 0
borderColor: '#000000'
},
options: {
tabList: [{
@ -377,10 +369,8 @@ const list = [
textAlign: 'center',
color: '#000000',
verticalAlign: 'middle',
backgroundColor: '#ffffff',
borderStyle: 'solid',
borderColor: '#000000',
borderRadius: 0,
time_margin: 0,
padding: 10
},
@ -408,8 +398,7 @@ const list = [
mobileStyle: BASE_MOBILE_STYLE,
style: {
width: 400,
height: 200,
borderRadius: ''
height: 200
},
frameLinks: FRAMELINKS,
x: 1,
@ -430,8 +419,7 @@ const list = [
hyperlinks: HYPERLINKS,
style: {
width: 400,
height: 200,
borderRadius: ''
height: 200
},
x: 1,
y: 1,
@ -450,8 +438,7 @@ const list = [
mobileStyle: BASE_MOBILE_STYLE,
style: {
width: 400,
height: 200,
borderRadius: ''
height: 200
},
videoLinks: VIDEOLINKS,
x: 1,
@ -471,8 +458,7 @@ const list = [
mobileStyle: BASE_MOBILE_STYLE,
style: {
width: 400,
height: 200,
borderRadius: ''
height: 200
},
streamMediaLinks: STREAMMEDIALINKS,
x: 1,