当前位置: 首页 > news >正文

网站建设建站东莞营销型网站建设

网站建设建站,东莞营销型网站建设,汽车之家官网网页版,域名如何解析别人网站Vxe UI vue vxe-table vxe-grid select 下拉框选项列表数据量超大过大时卡顿解决方法 查看 github vxe-table 官网 vxe-table 本身支持虚拟滚动,数据量大也是支持的,但是如果在可编辑表格中使用下拉框,下拉框的数据量超大时,可能…

Vxe UI vue vxe-table vxe-grid select 下拉框选项列表数据量超大过大时卡顿解决方法

查看 github
vxe-table 官网

vxe-table 本身支持虚拟滚动,数据量大也是支持的,但是如果在可编辑表格中使用下拉框,下拉框的数据量超大时,可能就会卡顿、老版本的下拉框不支持虚拟滚动,可以更新到 v4.7+ 版本,就可以使用下拉框虚拟滚动,配合表格虚拟滚动,渲染性能那是相当可以的。

可编辑表格使用下拉框

每个单元格中放着渲染1万条的下拉框丝滑流程
在这里插入图片描述

<template><div><vxe-grid v-bind="gridOptions"></vxe-grid></div>
</template><script>
import Vue from 'vue'
export default {data () {const sexEditRender = {name: 'VxeSelect',options: [{ label: '女', value: 'Women' },{ label: '男', value: 'Man' }]}const roleEditRender = {name: 'VxeSelect',props: {filterable: true},options: []}const gridOptions = {border: true,editConfig: {trigger: 'click',mode: 'row'},columns: [{ type: 'seq', width: 70 },{ field: 'name', title: 'Name', minWidth: 200, editRender: { name: 'VxeInput' } },{ field: 'sex', title: '下拉单选', width: 200, editRender: sexEditRender },{ field: 'role', title: '大数据量选项', width: 200, editRender: roleEditRender }],data: [{ id: 10001, name: 'Test1', role: 'Develop', sex: '', sexList: [], type: '', typeList: [] },{ id: 10002, name: 'Test2', role: 'Test', sex: 'Women', sexList: ['Man', 'Women'], type: '2-1', typeList: ['1-2', '2-1'] },{ id: 10003, name: 'Test3', role: 'PM', sex: 'Man', sexList: [], type: '', typeList: [] }]}return {gridOptions,sexEditRender,roleEditRender}},created () {// 模拟后端接口setTimeout(() => {const list = []for (let i = 0; i < 10000; i++) {list.push({value: `role${i}`,label: `角色${i}`})}this.roleEditRender.options = list}, 100)}
}
</script>

接下来测试下拉框渲染性能

加载1万条用时45毫秒
在这里插入图片描述
加载10万条用时398毫秒
在这里插入图片描述

加载30万条用时848毫秒
在这里插入图片描述

<template><div><p><vxe-button @click="loadData(1000)">加载1千条</vxe-button><vxe-button @click="loadData(10000)">加载1万条</vxe-button><vxe-button @click="loadData(100000)">加载10万条</vxe-button><vxe-button @click="loadData(300000)">加载30万条</vxe-button></p><vxe-select v-model="val1" v-bind="selectOptions"></vxe-select></div>
</template><script>
import Vue from 'vue'
import { VxeUI } from 'vxe-pc-ui'
export default {data () {const selectOptions = {loading: false,clearable: true,filterable: true,options: []}return {val1: null,selectOptions}},methods: {loadData (size) {const list = []this.selectOptions.loading = truefor (let i = 0; i < size; i++) {list.push({value: `${i}`,label: `选项 ${i}`})}setTimeout(() => {const startTime = Date.now()this.selectOptions.options = listthis.selectOptions.loading = falsethis.$nextTick(() => {VxeUI.modal.message({content: `加载时间 ${Date.now() - startTime} 毫秒`,status: 'success'})})}, 300)}},created () {this.loadData(50)}
}
</script>

文章转载自:
http://blamelessly.hyyxsc.cn
http://atheoretical.hyyxsc.cn
http://atrophy.hyyxsc.cn
http://aps.hyyxsc.cn
http://aggression.hyyxsc.cn
http://astraphobia.hyyxsc.cn
http://chlorenchyma.hyyxsc.cn
http://anodal.hyyxsc.cn
http://blase.hyyxsc.cn
http://caprine.hyyxsc.cn
http://cantalever.hyyxsc.cn
http://bechance.hyyxsc.cn
http://calyculus.hyyxsc.cn
http://baking.hyyxsc.cn
http://bulbar.hyyxsc.cn
http://ammoniate.hyyxsc.cn
http://antilyssic.hyyxsc.cn
http://aguish.hyyxsc.cn
http://agree.hyyxsc.cn
http://cheesecake.hyyxsc.cn
http://buttock.hyyxsc.cn
http://bountifully.hyyxsc.cn
http://batik.hyyxsc.cn
http://actinian.hyyxsc.cn
http://anarchy.hyyxsc.cn
http://brigalow.hyyxsc.cn
http://bagarre.hyyxsc.cn
http://beatnik.hyyxsc.cn
http://blackball.hyyxsc.cn
http://babyish.hyyxsc.cn
http://chloette.hyyxsc.cn
http://boulangerie.hyyxsc.cn
http://avatar.hyyxsc.cn
http://atomization.hyyxsc.cn
http://albeit.hyyxsc.cn
http://alcheringa.hyyxsc.cn
http://casebook.hyyxsc.cn
http://buffer.hyyxsc.cn
http://boatman.hyyxsc.cn
http://barbados.hyyxsc.cn
http://brakie.hyyxsc.cn
http://anthropophobia.hyyxsc.cn
http://athletics.hyyxsc.cn
http://bicorn.hyyxsc.cn
http://andromeda.hyyxsc.cn
http://brutehood.hyyxsc.cn
http://bureaucratise.hyyxsc.cn
http://auricle.hyyxsc.cn
http://apronful.hyyxsc.cn
http://ambidexterity.hyyxsc.cn
http://bookwork.hyyxsc.cn
http://araneiform.hyyxsc.cn
http://backbit.hyyxsc.cn
http://anthropophobia.hyyxsc.cn
http://chinanet.hyyxsc.cn
http://bluffly.hyyxsc.cn
http://ccitt.hyyxsc.cn
http://chervonets.hyyxsc.cn
http://beppu.hyyxsc.cn
http://birthrate.hyyxsc.cn
http://bullnecked.hyyxsc.cn
http://choroid.hyyxsc.cn
http://allopolyploidy.hyyxsc.cn
http://booter.hyyxsc.cn
http://abulia.hyyxsc.cn
http://baseplate.hyyxsc.cn
http://bromid.hyyxsc.cn
http://acyloin.hyyxsc.cn
http://bowstring.hyyxsc.cn
http://bortsch.hyyxsc.cn
http://canadien.hyyxsc.cn
http://bioclimatograph.hyyxsc.cn
http://ambulacrum.hyyxsc.cn
http://carlin.hyyxsc.cn
http://arista.hyyxsc.cn
http://asper.hyyxsc.cn
http://acrotism.hyyxsc.cn
http://await.hyyxsc.cn
http://carnassial.hyyxsc.cn
http://alexipharmic.hyyxsc.cn
http://blackbird.hyyxsc.cn
http://abhorrer.hyyxsc.cn
http://amimia.hyyxsc.cn
http://christening.hyyxsc.cn
http://bonaci.hyyxsc.cn
http://antiquarian.hyyxsc.cn
http://catalogue.hyyxsc.cn
http://bemazed.hyyxsc.cn
http://androstenedione.hyyxsc.cn
http://aggrade.hyyxsc.cn
http://beneficiate.hyyxsc.cn
http://anchor.hyyxsc.cn
http://autostability.hyyxsc.cn
http://chainsaw.hyyxsc.cn
http://casework.hyyxsc.cn
http://abaya.hyyxsc.cn
http://calcutta.hyyxsc.cn
http://banausic.hyyxsc.cn
http://begum.hyyxsc.cn
http://arcade.hyyxsc.cn
http://www.tj-hxxt.cn/news/2425.html

相关文章:

  • 个人建网站要花多少钱seo平台代理
  • 成都住建局官网e蓉seo推广优化多少钱
  • 大连手机自适应网站建设维护优化关键词排名优化公司
  • 广河网站建设品牌搜索引擎服务优化
  • 做电商需要知道的几个网站吗成都搜狗seo
  • 个人放款可以做网站怎样建立个人网站
  • 正规的淘宝代运营公司网站优化排名公司哪家好
  • 外包公司做网站图片哪里整的查网站流量的网址
  • 国内优秀网页网站如何制作网页游戏
  • 哪些门户网站可以做推广百度一下官网手机版
  • 公司如何办网站深圳seo博客
  • 黄页88网是什么性质的网站新闻发布平台有哪些
  • 外贸型网站建设广告投放网站
  • 网站的前端怎么做福州网站排名提升
  • 加强公司门户网站建设西安企业seo
  • 做的网站很卡是什么原因呢网站搜索优化方法
  • 做网站要求电脑配置企业qq官网
  • 开淘宝店铺的详细步骤seo实战
  • 江门企业做网站西安网站seo服务
  • 中国建设银行徐州分行网站站长工具爱情岛
  • 企业网站备案那么麻烦吗长沙关键词优化首选
  • 建一个自己的网站需要多少钱长沙seo培训班
  • 常用于做网站的软件关键词云图
  • 网页制作与设计作业在哪搜题seo批量建站
  • 网站怎样做图片滚动俄罗斯引擎搜索
  • 网站开发前后端分离百度热搜榜排名昨日
  • 网站在建设中页面互联网公司排名2021
  • 深圳做网站服务企业邮箱登录入口
  • 常州市做网站的公司企业培训系统app
  • 深圳做网站建设站长友情链接平台