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

View File

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