fuchengshen
2022-07-09 3a25c05b5ab837714f30469cdcb1e2a77d8d7f6c
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<template>
  <example-list @jump="jumpUrl"></example-list>
</template>
 
<script lang="ts" setup>
import ExampleList from "@mars/components/mars-work/example-list.vue"
 
const jumpUrl = (item: any) => {
  let url = process.env.BASE_URL
  if (process.env.EDITOR_MODE) {
    url += "editor-vue.html"
  } else {
    url += "read-vue.html"
  }
 
  // 处理参数
  url += "?id=" + encodeURI(item.main)
  if (item.params) {
    url += `&${item.params}&name=${item.fullName}`
  }
  window.open(url, "_blank")
}
</script>
 
<style lang="less">
body {
  background-color: #fff;
}
* {
  padding: 0;
  margin: 0;
}
 
.hide {
  display: none;
}
ul,
li {
  list-style: none;
}
.center {
  text-align: center;
}
a {
  color: #666;
  text-decoration: none;
}
img {
  border: 0;
}
input,
textarea,
select {
  color: #797979;
  border: 0;
  outline: none;
  resize: none;
}
input:focus,
textarea:focus,
select:focus {
  outline: 0;
}
textarea {
  resize: vertical;
  resize: none;
}
em,
i,
strike {
  font-style: normal;
}
.hide {
  display: none !important;
}
.block {
  display: block;
}
.fl {
  float: left;
}
.fr {
  float: right;
}
.clearfix:after {
  display: block;
  content: "";
  clear: both;
  height: 0;
}
.text-r {
  text-align: right;
}
.ell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flex-between {
  display: flex;
  justify-content: space-between;
}
.no-select-text {
  /*禁止文本被多次点击选中*/
  -moz-user-select: none;
  -khtml-user-select: none;
  user-select: none;
}
.i-icon-right {
  color: #fff;
  opacity: 0.6;
}
.download {
  color: #d5e5f8;
  a {
    color: #91adc6;
  }
}
</style>