1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
| <template>
| <el-row justify="center" align="middle" class="wrap">
| <!-- <el-col :span="6"> -->
| <el-form-item label="展示数据量">
| <el-select
| v-model="pageSize"
| @change="handleSizeChange"
| placeholder="数据量"
| size="small"
| class="w-60"
| >
| <el-option label="200" :value="200" />
| <el-option label="500" :value="500" />
| </el-select>
| </el-form-item>
| <!-- </el-col> -->
| <!-- <el-col :span="18"> -->
| <div class="slider-wrap m-l-16">
| <el-slider :model-value="progress" :marks="marks" @input="handleInput" />
| </div>
| <!-- </el-col> -->
| </el-row>
| </template>
| <script>
| export default {
| props: {
| progress: {
| type: Number,
| default: 0
| }
| },
| emits: ['update:progress', 'sizeChange'],
| data() {
| return {
| pageSize: 200,
| marks: {
| 0: {
| style: {
| color: 'white'
| },
| label: '0%'
| },
| 100: {
| style: {
| color: 'white'
| },
| label: '100%'
| }
| }
| };
| },
| methods: {
| handleInput(e) {
| // console.log(e);
| this.$emit('update:progress', e);
| },
| handleSizeChange(e) {
| this.$emit('sizeChange', e);
| }
| }
| };
| </script>
| <style scoped>
| .wrap {
| background-color: transparent;
| height: 60px;
| }
| .slider-wrap {
| /* background-color: aliceblue; */
| min-width: 290px;
| }
| .el-form-item {
| margin-bottom: 0px;
| }
| </style>
|
|