zydx-plus 1.33.417 → 1.33.419
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,7 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :style="heightStyle" class="edit">
|
|
3
|
-
<div class="ed-head">
|
|
4
|
-
<div
|
|
3
|
+
<div :class="{'ed-head': !titleVertical, 'ed-head-vertical': titleVertical}">
|
|
4
|
+
<div v-if="titleShow && titleVertical" :style="titleStyle" v-html="title"></div>
|
|
5
|
+
<div class="ed-title" v-if="titleShow && !titleVertical" :style="titleStyle" v-html="title"></div>
|
|
5
6
|
<div class="ed-but" v-if="readOnly">
|
|
6
7
|
<div class="ed-head-but" v-for="(item,index) in toolbar">
|
|
7
8
|
<button v-if="item.key === 'but'" class="buts" @click="item.onClick(item,info)"
|
|
@@ -207,6 +208,10 @@ export default {
|
|
|
207
208
|
this.ws = null
|
|
208
209
|
},
|
|
209
210
|
props: {
|
|
211
|
+
titleVertical: {
|
|
212
|
+
type: Boolean,
|
|
213
|
+
default: false
|
|
214
|
+
},
|
|
210
215
|
data: {
|
|
211
216
|
type: Object,
|
|
212
217
|
default: () => {
|
|
@@ -984,7 +989,12 @@ export default {
|
|
|
984
989
|
.ed-head-but label span {
|
|
985
990
|
line-height: 16px !important;
|
|
986
991
|
}
|
|
987
|
-
|
|
992
|
+
.ed-head-vertical{
|
|
993
|
+
overflow: hidden;
|
|
994
|
+
}
|
|
995
|
+
.ed-head-vertical .ed-but{
|
|
996
|
+
float: right;
|
|
997
|
+
}
|
|
988
998
|
.ed-title {
|
|
989
999
|
flex: 1;
|
|
990
1000
|
text-align: left;
|
|
@@ -1053,7 +1063,6 @@ export default {
|
|
|
1053
1063
|
.ed-head {
|
|
1054
1064
|
text-align: right;
|
|
1055
1065
|
}
|
|
1056
|
-
|
|
1057
1066
|
.buts {
|
|
1058
1067
|
margin-left: 1px;
|
|
1059
1068
|
font-size: 12px;
|
|
@@ -59,6 +59,16 @@
|
|
|
59
59
|
v-model="item.value" :disabled="item.disabled"/>
|
|
60
60
|
<b>{{ item.tail }}</b>
|
|
61
61
|
</div>
|
|
62
|
+
<div class="input-name" v-if="item.type === 'query'">
|
|
63
|
+
<div class="number-input">
|
|
64
|
+
<input type="text"
|
|
65
|
+
:placeholder="item.placeholder"
|
|
66
|
+
v-model="item.value" @input="queryDrop($event,item)" />
|
|
67
|
+
</div>
|
|
68
|
+
<div class="drop-down" v-if="dropData.length > 0">
|
|
69
|
+
<p @click="dropTap(item,item3)" v-for="item3 in dropData">{{ item3[item.column] }}</p>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
62
72
|
<div class="input-name" v-if="item.type === 'textarea'">
|
|
63
73
|
<div style="width: 300px;height: 100px; text-align: left;font-size: 16px;">
|
|
64
74
|
<zydx-textarea
|
|
@@ -134,7 +144,8 @@ export default {
|
|
|
134
144
|
fileName: '',
|
|
135
145
|
middles: this.middle,
|
|
136
146
|
indent: false,
|
|
137
|
-
timeo: 0
|
|
147
|
+
timeo: 0,
|
|
148
|
+
dropData: []
|
|
138
149
|
}
|
|
139
150
|
},
|
|
140
151
|
props: {
|
|
@@ -226,6 +237,20 @@ export default {
|
|
|
226
237
|
clearInterval(timeStop)
|
|
227
238
|
},
|
|
228
239
|
methods: {
|
|
240
|
+
dropTap(e,v) {
|
|
241
|
+
e.value = v[e.column]
|
|
242
|
+
this.dropData = []
|
|
243
|
+
},
|
|
244
|
+
queryDrop(e,v) {
|
|
245
|
+
const value = e.target.value
|
|
246
|
+
if(value === '') {
|
|
247
|
+
this.dropData = []
|
|
248
|
+
return
|
|
249
|
+
}
|
|
250
|
+
this.dropData = v.data.filter((x) => {
|
|
251
|
+
return x[v.column].indexOf(value) > -1;
|
|
252
|
+
});
|
|
253
|
+
},
|
|
229
254
|
getTextareaContent() {
|
|
230
255
|
return _that.$refs.textarea[0].getContent()
|
|
231
256
|
},
|
|
@@ -262,7 +262,29 @@
|
|
|
262
262
|
box-shadow: 0 1px 0 1px rgb(0 0 0 / 4%);
|
|
263
263
|
overflow: hidden;
|
|
264
264
|
}
|
|
265
|
-
|
|
265
|
+
.drop-down{
|
|
266
|
+
position: absolute;
|
|
267
|
+
top: 32px;
|
|
268
|
+
left: 0;
|
|
269
|
+
width: 100%;
|
|
270
|
+
border-left: 1px solid #ccc;
|
|
271
|
+
border-right: 1px solid #ccc;
|
|
272
|
+
border-bottom: 1px solid #ccc;
|
|
273
|
+
z-index: 10;
|
|
274
|
+
background-color: #fff;
|
|
275
|
+
padding: 0 10px;
|
|
276
|
+
max-height: 300px;
|
|
277
|
+
overflow: auto;
|
|
278
|
+
}
|
|
279
|
+
.drop-down>p{
|
|
280
|
+
text-align: left;
|
|
281
|
+
padding: 5px 0;
|
|
282
|
+
font-size: 14px;
|
|
283
|
+
cursor: pointer;
|
|
284
|
+
}
|
|
285
|
+
.drop-down>p:hover {
|
|
286
|
+
color: #dc231d;
|
|
287
|
+
}
|
|
266
288
|
.number-input > input {
|
|
267
289
|
border: 0 !important;
|
|
268
290
|
box-shadow: none !important;
|