zydx-plus 1.10.38 → 1.11.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="tabs cl">
|
|
3
|
+
<div class="tabs-li" :class="{'tab-active': active === index}" @click="listTap(index)" v-for="(item,index) in list" :key="index">{{ item[column[0]] }}</div>
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
export default {
|
|
9
|
+
name: "zydx-tab",
|
|
10
|
+
data() {
|
|
11
|
+
return {
|
|
12
|
+
active: 0
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
props: {
|
|
16
|
+
list: { // 数据列表
|
|
17
|
+
type: Array,
|
|
18
|
+
default: () => []
|
|
19
|
+
},
|
|
20
|
+
column: { // 数据列表
|
|
21
|
+
type: Array,
|
|
22
|
+
default: () => ['name']
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
methods: {
|
|
26
|
+
listTap(index) {
|
|
27
|
+
this.active = index
|
|
28
|
+
this.$emit('confirm', {
|
|
29
|
+
data: this.list[index],
|
|
30
|
+
index: index
|
|
31
|
+
})
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
</script>
|
|
36
|
+
|
|
37
|
+
<style scoped>
|
|
38
|
+
.cl:after {
|
|
39
|
+
content: "";
|
|
40
|
+
clear: left;
|
|
41
|
+
display: block;
|
|
42
|
+
}
|
|
43
|
+
.tabs{
|
|
44
|
+
width: 100%;
|
|
45
|
+
background-image: url('./border.png');
|
|
46
|
+
background-size: 100% 100%;
|
|
47
|
+
padding: 12px 20px;
|
|
48
|
+
box-sizing: border-box;
|
|
49
|
+
}
|
|
50
|
+
.tabs-li{
|
|
51
|
+
min-width: 83px;
|
|
52
|
+
height: 26px;
|
|
53
|
+
background: url('./border-min.png') center center;
|
|
54
|
+
background-size: 100%;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
margin: 3px 6px;
|
|
57
|
+
float: left;
|
|
58
|
+
text-align: center;
|
|
59
|
+
line-height: 26px;
|
|
60
|
+
color: #333;
|
|
61
|
+
font-size: 14px;
|
|
62
|
+
}
|
|
63
|
+
.tabs-li:hover{
|
|
64
|
+
color: #999;
|
|
65
|
+
}
|
|
66
|
+
.tab-active{
|
|
67
|
+
background-image: url("./border-red.png") !important;
|
|
68
|
+
color: #00ff00 !important;
|
|
69
|
+
}
|
|
70
|
+
</style>
|
package/src/index.js
CHANGED
|
@@ -13,6 +13,7 @@ import spinner from './components/spinner/index';
|
|
|
13
13
|
import treeList from './components/treeList/index';
|
|
14
14
|
import flip from './components/flip/index';
|
|
15
15
|
import editor from './components/editor/index';
|
|
16
|
+
import tab from './components/tab/index';
|
|
16
17
|
|
|
17
18
|
const components = [
|
|
18
19
|
Calendar,
|
|
@@ -27,7 +28,8 @@ const components = [
|
|
|
27
28
|
buttonGroup,
|
|
28
29
|
treeList,
|
|
29
30
|
flip,
|
|
30
|
-
editor
|
|
31
|
+
editor,
|
|
32
|
+
tab
|
|
31
33
|
];
|
|
32
34
|
|
|
33
35
|
function install(app) {
|
|
@@ -39,7 +41,7 @@ function install(app) {
|
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
export default {
|
|
42
|
-
version: '1.
|
|
44
|
+
version: '1.11.38',
|
|
43
45
|
install,
|
|
44
46
|
Calendar,
|
|
45
47
|
Message,
|
|
@@ -55,6 +57,7 @@ export default {
|
|
|
55
57
|
buttonGroup,
|
|
56
58
|
treeList,
|
|
57
59
|
flip,
|
|
58
|
-
editor
|
|
60
|
+
editor,
|
|
61
|
+
tab
|
|
59
62
|
};
|
|
60
63
|
|