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
| <template>
| <div class="secondar-box">
| <ul>
| <li
| v-for="(item, index) in secondaryLineList"
| :key="index"
| :class="[selectIndex == item ? 'active' : '']"
| @click="checkLineType(item)"
| >
| {{ item }}
| </li>
| </ul>
| </div>
| </template>
| <script>
| export default {
| emits: ["checkLineType"],
| name: "secondaryLine",
| data() {
| return {
| secondaryLineList: [
| "VOL",
| "MACD",
| "KDJ",
| "RSI",
| "DMI",
| "OBV",
| "BOLL",
| "SAR",
| "DMA",
| "TRIX",
| "BRAR",
| "VR",
| "EMV",
| "WR",
| "ROC",
| "MTM",
| "PSY",
| ],
| selectIndex: "VOL",
| };
| },
| mounted() {
| this.$emit("checkLineType", this.selectIndex);
| },
|
| watch: {},
| methods: {
| //选择副线
| checkLineType(item) {
| this.selectIndex = item;
| this.$emit("checkLineType", this.selectIndex);
| },
| },
| };
| </script>
| <style scoped>
| .secondar-box {
| }
| ul {
| display: flex;
| padding-left: 10px;
| }
| li {
| padding-right: 13px;
| color: #929aa5;
| padding-top: 15px;
| }
| .active {
| color: #1d91ff !important;
| }
| </style>
|
|