forked from github/dataease
refactor: 主题名称修改优化
This commit is contained in:
parent
f4e07fc869
commit
b23dd3d8f0
@ -296,7 +296,7 @@ function fillPositionBox(maxY) {
|
||||
function removeItemFromPositionBox(item) {
|
||||
const pb = positionBox
|
||||
// console.log('removeItem=>x:' + item.x + ';y:' + item.y + ';sizex:' + item.sizex + ';sizey:' + item.sizey)
|
||||
if (item.x <= 0 || item.y <= 0) return
|
||||
if (!item || item.x <= 0 || item.y <= 0) return
|
||||
for (let i = item.x - 1; i < item.x - 1 + item.sizex; i++) {
|
||||
for (let j = item.y - 1; j < item.y - 1 + item.sizey; j++) {
|
||||
if (pb[j][i]) {
|
||||
|
@ -55,7 +55,7 @@ export default {
|
||||
created() {
|
||||
this.restore()
|
||||
// 全局监听按键事件
|
||||
listenGlobalKeyDown()
|
||||
// listenGlobalKeyDown()
|
||||
},
|
||||
methods: {
|
||||
restore() {
|
||||
|
@ -12,7 +12,7 @@
|
||||
<el-col :span="20">
|
||||
<el-row id="slider">
|
||||
<div class="window">
|
||||
<ul class="container" :style="containerStyle">
|
||||
<ul v-if="!slidersLoading" class="container" :style="containerStyle">
|
||||
<li>
|
||||
<div style="width:240px; height: 208px;overflow: hidden">
|
||||
<subject-template-item
|
||||
@ -156,6 +156,7 @@ export default {
|
||||
querySubjectWithGroup() {
|
||||
this.slidersLoading = true
|
||||
querySubjectWithGroup({}).then(response => {
|
||||
this.sliders = []
|
||||
this.sliders = response.data
|
||||
this.slidersLoading = false
|
||||
}).catch(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user