2019-12-26 01:32:36 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<style>@import url("https://unpkg.com/element-ui@2.13.0/lib/theme-chalk/index.css");</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="app">
|
|
|
|
<template>
|
2019-12-26 14:48:45 +08:00
|
|
|
<el-select v-model="value" placeholder="请选择" multiple>
|
2019-12-26 01:32:36 +08:00
|
|
|
<el-option
|
|
|
|
v-for="item in options"
|
|
|
|
:key="item.value"
|
|
|
|
:label="item.label"
|
|
|
|
:value="item.value">
|
|
|
|
</el-option>
|
|
|
|
</el-select>
|
|
|
|
</template>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script src="https://unpkg.com/vue/dist/vue.js"></script>
|
|
|
|
<script src="https://unpkg.com/element-ui@2.13.0/lib/index.js"></script>
|
|
|
|
<script>var Main = {
|
|
|
|
data() {
|
|
|
|
var options = []
|
2019-12-26 14:48:45 +08:00
|
|
|
for (let i = 0; i < 2500; ++i) {
|
2019-12-26 01:32:36 +08:00
|
|
|
options.push({
|
|
|
|
label: String(i),
|
|
|
|
value: i
|
|
|
|
})
|
|
|
|
}
|
|
|
|
return {
|
|
|
|
options,
|
|
|
|
value: ''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var Ctor = Vue.extend(Main)
|
|
|
|
new Ctor().$mount('#app')</script>
|
|
|
|
</body>
|
|
|
|
</html>
|