<commit_before><template>
    <div class="wd-scroller" ref="wrap">
      <div v-if="showTopText" class="wd-scroller-top-text">{{refreshText}}</div>
      <scrollLoader v-if="topLoading" :text="loadingText"></scrollLoader>
      <div v-if="noRefresh" class="wd-scroller-no-text">{{noDataText}}</div>
      <slot></slot>
      <div v-if="showBottomText" class="wd-scroller-bottom-text">{{bottomText}}</div>
      <scrollLoader v-if="bottomLoading" :text="loadingText"></scrollLoader>
      <div v-if="noLoad" class="wd-scroller-no-text">{{noDataText}}</div>
    </div>
  </div>
</template>

<script>
import draggable from '../../../src/utils/draggable.js'
import {animate, transformName} from '../../../src/utils/animation.js'
import scrollLoader from '../../../example/components/Example/wd-scroll-loader.vue'
const CUBIC = 'cubic-bezier(0.33,0.66,0.66,1)'
export default {
  name: 'wd-scroller',
  props: {
    onRefresh: Function,
    onLoad: Function,
    refreshText: {
      type: String,
      default: '下拉更新数据'
    },
    bottomText: {
      type: String,
      default: '加载更多数据'
    },
    loadingText: {
      type: String,
      default: '正在加载'
    },
    noDataText: {
      type: String,
      default: '没有更多数据了'
    }
  },
  data() {
    return {
      list: [],
      showTopText: false,
      topLoading: false,
      showBottomText: false,
      bottomLoading: false,
      noRefresh: false,
      noLoad: false
    }
  },
  components: {
    scrollLoader
  },
  mounted() {
    //容器目前显示的高度
    this.$nextTick(()=>{
      for (let i = 1; i <= 30; i++) {
        this.list.push(i)
      }
      this.init()
    })

  },
  methods: {
    init() {
      this.setInitData()
      this.scrollTo(0, 0)<commit_msg>[fix] remove useless variable data list<commit_after><template>
    <div class="wd-scroller" ref="wrap">
      <div v-if="showTopText" class="wd-scroller-top-text">{{refreshText}}</div>
      <scrollLoader v-if="topLoading" :text="loadingText"></scrollLoader>
      <div v-if="noRefresh" class="wd-scroller-no-text">{{noDataText}}</div>
      <slot></slot>
      <div v-if="showBottomText" class="wd-scroller-bottom-text">{{bottomText}}</div>
      <scrollLoader v-if="bottomLoading" :text="loadingText"></scrollLoader>
      <div v-if="noLoad" class="wd-scroller-no-text">{{noDataText}}</div>
    </div>
  </div>
</template>

<script>
import draggable from '../../../src/utils/draggable.js'
import {animate, transformName} from '../../../src/utils/animation.js'
import scrollLoader from '../../../example/components/Example/wd-scroll-loader.vue'
const CUBIC = 'cubic-bezier(0.33,0.66,0.66,1)'
export default {
  name: 'wd-scroller',
  props: {
    onRefresh: Function,
    onLoad: Function,
    refreshText: {
      type: String,
      default: '下拉更新数据'
    },
    bottomText: {
      type: String,
      default: '加载更多数据'
    },
    loadingText: {
      type: String,
      default: '正在加载'
    },
    noDataText: {
      type: String,
      default: '没有更多数据了'
    }
  },
  data() {
    return {
      showTopText: false,
      topLoading: false,
      showBottomText: false,
      bottomLoading: false,
      noRefresh: false,
      noLoad: false
    }
  },
  components: {
    scrollLoader
  },
  mounted() {
    //容器目前显示的高度
    this.$nextTick(()=>{
      this.init()
    })
  },
  methods: {
    init() {
      this.setInitData()
      this.scrollTo(0, 0)
{'fraction_non_alphanumeric': 0.18071576456669625, 'fraction_numerical': 0.007985803016858917, 'mean_word_length': 2.63265306122449, 'pattern_counts': {'":': 0, '<': 44, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1061151', 'n_tokens_mistral': 1210, 'n_tokens_neox': 1199, 'n_words': 207}