Merge branch 'main' of github.com:maxkb-dev/maxkb
This commit is contained in:
commit
69d9932467
@ -79,6 +79,7 @@
|
|||||||
}
|
}
|
||||||
.el-dialog__header {
|
.el-dialog__header {
|
||||||
padding-bottom: 24px;
|
padding-bottom: 24px;
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
.el-dialog__footer {
|
.el-dialog__footer {
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
|
|||||||
@ -49,6 +49,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, reactive, onMounted, watch } from 'vue'
|
import { ref, reactive, onMounted, watch } from 'vue'
|
||||||
|
import { cloneDeep } from 'lodash'
|
||||||
import type { TabsPaneContext } from 'element-plus'
|
import type { TabsPaneContext } from 'element-plus'
|
||||||
import EditParagraphDialog from './EditParagraphDialog.vue'
|
import EditParagraphDialog from './EditParagraphDialog.vue'
|
||||||
import { filesize, getImgUrl } from '@/utils/utils'
|
import { filesize, getImgUrl } from '@/utils/utils'
|
||||||
@ -100,7 +101,7 @@ function deleteHandle(item: any, index: number, cIndex: number) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function updateContent(data: any) {
|
function updateContent(data: any) {
|
||||||
newData.value[currentPIndex.value].content[currentCIndex.value] = data
|
newData.value[currentPIndex.value].content[currentCIndex.value] = cloneDeep(data)
|
||||||
emit('update:data', newData.value)
|
emit('update:data', newData.value)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user