Commit ff7f283bb784806c914df2fdb9ad4668d9fecd9a

Authored by ly525
1 parent 5f84f995

chore(plugin) update slide editor

front-end/h5/src/components/plugins/lbp-slide__editor.js
@@ -48,7 +48,8 @@ export default { @@ -48,7 +48,8 @@ export default {
48 minus (index) { 48 minus (index) {
49 if (this.innerItems.length === 1) return 49 if (this.innerItems.length === 1) return
50 this.elementProps.items.splice(index, 1) 50 this.elementProps.items.splice(index, 1)
51 - this.elementProps.activeIndex = index > 0 ? index - 1 : 0 51 + // this.elementProps.activeIndex = index > 0 ? index - 1 : 0
  52 + this.elementProps.activeIndex = Math.max(index - 1, 0)
52 // const items = this.innerItems.slice(0) 53 // const items = this.innerItems.slice(0)
53 // items.splice(index, 1) 54 // items.splice(index, 1)
54 // this.$emit('change', { 55 // this.$emit('change', {