zydx-plus 1.16.67 → 1.16.68

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zydx-plus",
3
- "version": "1.16.67",
3
+ "version": "1.16.68",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -1,14 +1,21 @@
1
1
  <template>
2
2
  <div class="list">
3
3
  <div class="list-cont" v-if="list.length > 0">
4
- <div class="list-li" @click="listTap(item,index)" :class="{'list-active': active === index}" v-for="(item,index) in list" :key="index">
4
+ <div class="list-li" :style="{'border-bottom': (link)? '1px solid #ccc': '0', 'color': (active === index)? activeColor : '#333'}" @click="listTap(item,index)" v-for="(item,index) in list" :key="index">
5
5
  <div class="list-title">
6
- <span>{{ index + 1 }}. {{ item[column[0].label] }}</span>
6
+ <span :style="{'font-size': column[0].fontSize + 'px', 'font-weight': column[0].fontWeight}">{{ index + 1 }}. {{ (angleBrackets)? '《': '' }} {{ item[column[0].label] }} {{ (angleBrackets)? '》': '' }}</span>
7
7
  <button v-if="delShow" @click="del(item)">删除</button>
8
8
  </div>
9
- <div class="list-li-cont" v-if="active === index">
10
- <p v-for="(it,ind) in column.slice(1, column.length)" :key="ind">{{ it.name }}:{{ item[it.label] }}</p>
11
- </div>
9
+ <div class="list-cont" v-if="open">
10
+ <div class="list-li-cont">
11
+ <p v-for="(it,ind) in column.slice(1, column.length)" :key="ind">{{ it.name }}:{{ item[it.label] }}</p>
12
+ </div>
13
+ </div>
14
+ <div class="list-cont" v-else>
15
+ <div class="list-li-cont" v-if="active === index">
16
+ <p v-for="(it,ind) in column.slice(1, column.length)" :key="ind">{{ it.name }}:{{ item[it.label] }}</p>
17
+ </div>
18
+ </div>
12
19
  </div>
13
20
  </div>
14
21
  <div v-else class="wu">暂无数据</div>
@@ -36,9 +43,25 @@ export default {
36
43
  type: Boolean,
37
44
  default: false
38
45
  },
46
+ angleBrackets: {
47
+ type: Boolean,
48
+ default: false
49
+ },
50
+ open: {
51
+ type: Boolean,
52
+ default: false
53
+ },
54
+ link: {
55
+ type: Boolean,
56
+ default: false
57
+ },
58
+ activeColor: {
59
+ type: String,
60
+ default: '#e20808'
61
+ }
39
62
  },
40
- methods: {
41
- del() {
63
+ methods: {
64
+ del(data) {
42
65
  this.$emit('del',data)
43
66
  },
44
67
  listTap(data,index) {
@@ -95,7 +118,4 @@ export default {
95
118
  height: 26px;
96
119
  line-height: 26px;
97
120
  }
98
- .list-active{
99
- color: #e20808;
100
- }
101
121
  </style>
package/src/index.js CHANGED
@@ -51,7 +51,7 @@ function install(app) {
51
51
  }
52
52
 
53
53
  export default {
54
- version: '1.16.67',
54
+ version: '1.16.68',
55
55
  install,
56
56
  Calendar,
57
57
  Message,