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 48 minus (index) {
49 49 if (this.innerItems.length === 1) return
50 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 53 // const items = this.innerItems.slice(0)
53 54 // items.splice(index, 1)
54 55 // this.$emit('change', {
... ...