Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/components/myClass.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<div ref="slotList" :style="float">
<slot></slot>
</div>
<div v-html="copyHtml" :style="float"></div>
<div v-if="scrollSwitch" :style="float"><slot></slot><div>
</div>
</div>
</template>
Expand All @@ -44,7 +44,6 @@
xPos: 0,
yPos: 0,
delay: 0,
copyHtml: '',
height: 0,
width: 0, // 外容器宽度
realBoxWidth: 0, // 内容实际宽度
Expand Down Expand Up @@ -319,7 +318,6 @@
const { switchDelay } = this.options
const { autoPlay, isHorizontal } = this
this._dataWarm(this.data)
this.copyHtml = '' //清空copy
if (isHorizontal) {
this.height = this.$refs.wrap.offsetHeight
this.width = this.$refs.wrap.offsetWidth
Expand All @@ -346,7 +344,6 @@
if (this.scrollSwitch) {
let timer
if (timer) clearTimeout(timer)
this.copyHtml = this.$refs.slotList.innerHTML
setTimeout(() => {
this.realBoxHeight = this.$refs.realBox.offsetHeight
this._move()
Expand Down