eoss-mobiles 0.2.91 → 0.2.93
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/lib/checkbox.js +28 -8
- package/lib/eoss-mobile.common.js +224 -124
- package/lib/flow.js +145 -83
- package/lib/index.js +1 -1
- package/lib/radio.js +11 -2
- package/lib/selector.js +29 -20
- package/package.json +1 -1
- package/packages/checkbox/src/main.vue +22 -0
- package/packages/flow/src/components/Handle.vue +46 -36
- package/packages/flow/src/components/Message.vue +10 -0
- package/packages/flow/src/components/Reject.vue +9 -0
- package/packages/flow/src/components/StartFlow.vue +29 -19
- package/packages/flow/src/components/TaskRead.vue +10 -3
- package/packages/flow/src/components/taskUnionExamine.vue +10 -4
- package/packages/radio/src/main.vue +4 -0
- package/packages/selector/src/selector-field.vue +21 -9
- package/src/index.js +1 -1
|
@@ -6,12 +6,11 @@
|
|
|
6
6
|
v-model="inputValue"
|
|
7
7
|
readonly
|
|
8
8
|
clickable
|
|
9
|
-
|
|
10
9
|
:right-icon="disabled || readonly ? '' : 'arrow'"
|
|
11
10
|
>
|
|
12
11
|
<template slot="input">
|
|
13
|
-
<div style="width:100%"
|
|
14
|
-
<div
|
|
12
|
+
<div style="width:100%" @click="clickTree()">
|
|
13
|
+
<div style="width:100%">
|
|
15
14
|
<div
|
|
16
15
|
v-if="newNextUserList.length > 0 && multiple"
|
|
17
16
|
class="selector-checkList"
|
|
@@ -35,6 +34,7 @@
|
|
|
35
34
|
:disabled="selectDisabled"
|
|
36
35
|
:data="newNextUserList"
|
|
37
36
|
direction="horizontal"
|
|
37
|
+
@click="handleClickRadio"
|
|
38
38
|
@change="handleChange"
|
|
39
39
|
/>
|
|
40
40
|
</div>
|
|
@@ -59,7 +59,10 @@
|
|
|
59
59
|
|
|
60
60
|
<div v-else style="color:#c8c9cc">
|
|
61
61
|
{{
|
|
62
|
-
disabled && !$attrs.placeholder
|
|
62
|
+
disabled && !$attrs.placeholder
|
|
63
|
+
? '暂无数据'
|
|
64
|
+
: !$attrs.placeholder
|
|
65
|
+
? '请选择' + $attrs.label
|
|
63
66
|
: $attrs.placeholder
|
|
64
67
|
}}
|
|
65
68
|
</div>
|
|
@@ -76,6 +79,7 @@ export default {
|
|
|
76
79
|
newSelectList: [],
|
|
77
80
|
newNextUserList: [],
|
|
78
81
|
selectValue: '',
|
|
82
|
+
openSelect: true
|
|
79
83
|
};
|
|
80
84
|
},
|
|
81
85
|
props: {
|
|
@@ -87,9 +91,9 @@ export default {
|
|
|
87
91
|
type: Boolean,
|
|
88
92
|
default: false
|
|
89
93
|
},
|
|
90
|
-
inputValue:{
|
|
91
|
-
type:String,
|
|
92
|
-
default:''
|
|
94
|
+
inputValue: {
|
|
95
|
+
type: String,
|
|
96
|
+
default: ''
|
|
93
97
|
},
|
|
94
98
|
readonly: { type: Boolean, default: false },
|
|
95
99
|
selectDisabled: {
|
|
@@ -142,7 +146,9 @@ export default {
|
|
|
142
146
|
}
|
|
143
147
|
},
|
|
144
148
|
methods: {
|
|
145
|
-
|
|
149
|
+
handleClickRadio(val){
|
|
150
|
+
this.openSelect = false
|
|
151
|
+
},
|
|
146
152
|
getDefault() {
|
|
147
153
|
let selectArr = [];
|
|
148
154
|
const _that = this;
|
|
@@ -183,6 +189,7 @@ export default {
|
|
|
183
189
|
},
|
|
184
190
|
handleChange(val, info) {
|
|
185
191
|
const _this = this;
|
|
192
|
+
_this.openSelect = false;
|
|
186
193
|
if (_this.multiple) {
|
|
187
194
|
if (info.checked) {
|
|
188
195
|
if (this.newSelectList.length > 0 && !this.multiple) {
|
|
@@ -215,7 +222,12 @@ export default {
|
|
|
215
222
|
if (this.disabled === true) {
|
|
216
223
|
return; // 表单禁用不显示弹窗
|
|
217
224
|
}
|
|
218
|
-
|
|
225
|
+
setTimeout(() => {
|
|
226
|
+
if (this.openSelect) {
|
|
227
|
+
this.$emit('click');
|
|
228
|
+
}
|
|
229
|
+
this.openSelect = true;
|
|
230
|
+
}, 30);
|
|
219
231
|
},
|
|
220
232
|
/**
|
|
221
233
|
* delteList
|