提交 64e5c34f authored 作者: taojinlong's avatar taojinlong

Merge branch 'dev' of github.com:dataease/dataease into dev

...@@ -51,6 +51,7 @@ public class ShiroServiceImpl implements ShiroService { ...@@ -51,6 +51,7 @@ public class ShiroServiceImpl implements ShiroService {
filterChainDefinitionMap.put("/api/map/areaEntitys/**", ANON); filterChainDefinitionMap.put("/api/map/areaEntitys/**", ANON);
filterChainDefinitionMap.put("/dataset/field/fieldValues/**", ANON); filterChainDefinitionMap.put("/dataset/field/fieldValues/**", ANON);
filterChainDefinitionMap.put("/linkJump/queryPanelJumpInfo/**", ANON); filterChainDefinitionMap.put("/linkJump/queryPanelJumpInfo/**", ANON);
filterChainDefinitionMap.put("/linkJump/queryTargetPanelJumpInfo", ANON);
filterChainDefinitionMap.put("/tempMobileLink/**", ANON); filterChainDefinitionMap.put("/tempMobileLink/**", ANON);
filterChainDefinitionMap.put("/de-app/**", ANON); filterChainDefinitionMap.put("/de-app/**", ANON);
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
:id="'component' + config.id" :id="'component' + config.id"
class="component-custom" class="component-custom"
:style="getComponentStyleDefault(config.style)" :style="getComponentStyleDefault(config.style)"
style="overflow: hidden"
:out-style="config.style" :out-style="config.style"
:element="config" :element="config"
:in-screen="inScreen" :in-screen="inScreen"
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</el-tooltip> </el-tooltip>
<div v-if="attrShow('fontSize')" style="width: 70px;float: left;margin-top: 2px;margin-left: 2px;"> <div v-if="attrShow('fontSize')" style="width: 70px;float: left;margin-top: 2px;margin-left: 2px;">
<el-input v-model="styleInfo.fontSize" type="number" size="mini" min="12" max="128" @change="styleChange" /> <el-input v-model="initFontSize" type="number" size="mini" :min="miniFontSize" :max="maxFontSize" @change="styleChange" />
</div> </div>
<el-tooltip v-if="attrShow('fontWeight')" :content="$t('panel.fontWeight')"> <el-tooltip v-if="attrShow('fontWeight')" :content="$t('panel.fontWeight')">
...@@ -150,6 +150,7 @@ import Hyperlinks from '@/components/canvas/components/Editor/Hyperlinks' ...@@ -150,6 +150,7 @@ import Hyperlinks from '@/components/canvas/components/Editor/Hyperlinks'
import VideoLinks from '@/components/canvas/components/Editor/VideoLinks' import VideoLinks from '@/components/canvas/components/Editor/VideoLinks'
import DateFormat from '@/components/canvas/components/Editor/DateFormat' import DateFormat from '@/components/canvas/components/Editor/DateFormat'
import { COLOR_PANEL } from '@/views/chart/chart/chart' import { COLOR_PANEL } from '@/views/chart/chart/chart'
import { chartTransStr2Object } from '@/views/panel/panel'
export default { export default {
components: { Hyperlinks, DateFormat, VideoLinks }, components: { Hyperlinks, DateFormat, VideoLinks },
...@@ -169,6 +170,9 @@ export default { ...@@ -169,6 +170,9 @@ export default {
showMain: true, showMain: true,
innerOpacity: 0, innerOpacity: 0,
mainWidthOffset: 600, mainWidthOffset: 600,
initFontSize: 12,
miniFontSize: 12,
maxFontSize: 128,
textAlignOptions: [ textAlignOptions: [
{ {
icon: 'iconfont icon-juzuo', icon: 'iconfont icon-juzuo',
...@@ -285,7 +289,6 @@ export default { ...@@ -285,7 +289,6 @@ export default {
] ]
} }
}, },
computed: { computed: {
boardDivColor() { boardDivColor() {
const style = { const style = {
...@@ -330,11 +333,30 @@ export default { ...@@ -330,11 +333,30 @@ export default {
}, },
watch: { watch: {
styleInfo: {
handler(newVal, oldVla) {
if (newVal.fontSize) {
this.initFontSize = newVal.fontSize
}
},
deep: true
},
innerOpacity: { innerOpacity: {
handler(oldVal, newVal) { handler(oldVal, newVal) {
this.styleInfo['opacity'] = this.innerOpacity / 100 this.styleInfo['opacity'] = this.innerOpacity / 100
} }
}, },
initFontSize: {
handler(newVal) {
if (newVal < this.miniFontSize) {
this.styleInfo.fontSize = this.miniFontSize
} else if (newVal > this.maxFontSize) {
this.styleInfo.fontSize = this.maxFontSize
} else {
this.styleInfo.fontSize = newVal
}
}
},
curComponent: { curComponent: {
handler(oldVal, newVal) { handler(oldVal, newVal) {
this.$nextTick(() => { this.$nextTick(() => {
...@@ -346,6 +368,9 @@ export default { ...@@ -346,6 +368,9 @@ export default {
}, },
mounted() { mounted() {
this.init() this.init()
if (this.attrShow('fontSize')) {
this.initFontSize = this.styleInfo.fontSize
}
}, },
methods: { methods: {
......
...@@ -87,8 +87,7 @@ export default { ...@@ -87,8 +87,7 @@ export default {
computed: { computed: {
sizeInfo() { sizeInfo() {
let size let size
if (this.duHeight > this.inputMaxSize) { if (this.duHeight > this.inputLargeSize) {
} else if (this.duHeight > this.inputLargeSize) {
size = 'medium' size = 'medium'
} else if (this.duHeight > this.inputSmallSize) { } else if (this.duHeight > this.inputSmallSize) {
size = 'small' size = 'small'
...@@ -101,6 +100,14 @@ export default { ...@@ -101,6 +100,14 @@ export default {
'curCanvasScale' 'curCanvasScale'
]) ])
}, },
watch: {
element: {
handler() {
this.watchSize()
},
deep: true
}
},
mounted() { mounted() {
this.watchSize() this.watchSize()
}, },
...@@ -121,13 +128,15 @@ export default { ...@@ -121,13 +128,15 @@ export default {
return return
} }
const titleWidth = this.$refs.deTitle.offsetWidth const titleWidth = this.$refs.deTitle.offsetWidth
this.duHeight = height - titleWidth
this.$nextTick(() => { this.$nextTick(() => {
let min = this.element.style.fontSize * 2 + 50 let numRange = 0
let min = this.element.style.fontSize * 2 + 30
if (this.element.component === 'de-number-range') { if (this.element.component === 'de-number-range') {
min = this.element.style.fontSize * 2 + 80 min = this.element.style.fontSize * 2 + 55
numRange = 25
} }
if (height < min) { if (height < min) {
this.duHeight = height - numRange
this.mainClass = 'condition-main-line' this.mainClass = 'condition-main-line'
if (deContentContainer) { if (deContentContainer) {
...@@ -135,6 +144,7 @@ export default { ...@@ -135,6 +144,7 @@ export default {
deContentContainer.style.marginLeft = (titleWidth + 15) + 'px' deContentContainer.style.marginLeft = (titleWidth + 15) + 'px'
} }
} else { } else {
this.duHeight = height - titleWidth + numRange
this.mainClass = '' this.mainClass = ''
if (deContentContainer) { if (deContentContainer) {
deContentContainer.style.top = '2em' deContentContainer.style.top = '2em'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论