forked from github/dataease
Merge pull request #1273 from dataease/pr@dev@fix_时钟组件边框属性
fix: 时钟组件边框属性导致背景下移
This commit is contained in:
commit
1ef27410f6
@ -78,12 +78,12 @@
|
|||||||
<el-input v-model="styleInfo.margin" type="number" size="mini" min="0" max="99" @change="styleChange" />
|
<el-input v-model="styleInfo.margin" type="number" size="mini" min="0" max="99" @change="styleChange" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-tooltip v-if="attrShow('time_margin')" :content="$t('panel.margin')">
|
<el-tooltip v-if="attrShow('padding')" :content="$t('panel.margin')">
|
||||||
<i style="float: left;margin-top: 3px;margin-left: 2px;" class="icon iconfont icon-margin" />
|
<i style="float: left;margin-top: 3px;margin-left: 2px;" class="icon iconfont icon-margin" />
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
|
|
||||||
<div v-if="attrShow('time_margin')" style="width: 70px;float: left;margin-top: 2px;margin-left: 2px;">
|
<div v-if="attrShow('padding')" style="width: 70px;float: left;margin-top: 2px;margin-left: 2px;">
|
||||||
<el-input v-model="styleInfo.time_margin" type="number" size="mini" min="0" max="99" @change="styleChange" />
|
<el-input v-model="styleInfo.padding" type="number" size="mini" min="0" max="99" @change="styleChange" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-tooltip v-if="attrShow('opacity')" :content="$t('panel.opacity')">
|
<el-tooltip v-if="attrShow('opacity')" :content="$t('panel.opacity')">
|
||||||
@ -268,7 +268,8 @@ export default {
|
|||||||
'color',
|
'color',
|
||||||
'backgroundColor',
|
'backgroundColor',
|
||||||
'date-format',
|
'date-format',
|
||||||
'time_margin'
|
'time_margin',
|
||||||
|
'padding'
|
||||||
/* 'margin' */
|
/* 'margin' */
|
||||||
],
|
],
|
||||||
// 文本组件显示的属性
|
// 文本组件显示的属性
|
||||||
|
@ -307,8 +307,8 @@ const list = [
|
|||||||
borderStyle: 'solid',
|
borderStyle: 'solid',
|
||||||
borderColor: '#000000',
|
borderColor: '#000000',
|
||||||
borderRadius: 0,
|
borderRadius: 0,
|
||||||
/* margin: 10, */
|
time_margin: 0,
|
||||||
time_margin: 0
|
padding: 10
|
||||||
},
|
},
|
||||||
formatInfo: {
|
formatInfo: {
|
||||||
openMode: '0',
|
openMode: '0',
|
||||||
|
@ -10,7 +10,8 @@ export function getStyle(style, filter = []) {
|
|||||||
'borderWidth',
|
'borderWidth',
|
||||||
'letterSpacing',
|
'letterSpacing',
|
||||||
'borderRadius',
|
'borderRadius',
|
||||||
'margin'
|
'margin',
|
||||||
|
'padding'
|
||||||
]
|
]
|
||||||
|
|
||||||
const result = {}
|
const result = {}
|
||||||
@ -75,7 +76,7 @@ export function colorRgb(color, opacity) {
|
|||||||
}
|
}
|
||||||
// 处理六位的颜色值
|
// 处理六位的颜色值
|
||||||
var sColorChange = []
|
var sColorChange = []
|
||||||
for (var i = 1; i < 7; i += 2) {
|
for (let i = 1; i < 7; i += 2) {
|
||||||
sColorChange.push(parseInt('0x' + sColor.slice(i, i + 2)))
|
sColorChange.push(parseInt('0x' + sColor.slice(i, i + 2)))
|
||||||
}
|
}
|
||||||
if (opacity || opacity === 0) {
|
if (opacity || opacity === 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user