eoss-mobiles 0.2.7 → 0.2.9
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 +20 -17
- package/lib/config/api.js +3 -1
- package/lib/eoss-mobile.common.js +374 -92
- package/lib/flow.js +173 -113
- package/lib/index.js +1 -1
- package/lib/picker.js +20 -17
- package/lib/pull-refresh.js +305 -0
- package/lib/radio.js +20 -17
- package/lib/selector.js +30 -24
- package/lib/swipe.js +327 -0
- package/lib/table.js +11 -11
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/pull-refresh.css +0 -0
- package/lib/theme-chalk/selector.css +1 -1
- package/lib/theme-chalk/swipe.css +0 -0
- package/lib/utils/axios.js +2 -2
- package/package.json +1 -1
- package/packages/flow/src/components/Handle.vue +51 -24
- package/packages/flow/src/components/Message.vue +5 -1
- package/packages/flow/src/components/Opinion.vue +6 -2
- package/packages/flow/src/components/Reject.vue +7 -1
- package/packages/flow/src/components/StartFlow.vue +9 -3
- package/packages/flow/src/components/TaskRead.vue +12 -4
- package/packages/flow/src/components/taskUnionExamine.vue +17 -14
- package/packages/pull-refresh/index.js +5 -0
- package/packages/pull-refresh/src/main.vue +31 -0
- package/packages/selector/src/selector-tree.vue +2 -0
- package/packages/swipe/index.js +5 -0
- package/packages/swipe/src/main.vue +42 -0
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/pull-refresh.css +0 -0
- package/packages/theme-chalk/lib/selector.css +1 -1
- package/packages/theme-chalk/lib/swipe.css +0 -0
- package/packages/theme-chalk/src/flow.scss +1 -0
- package/packages/theme-chalk/src/index.scss +2 -0
- package/packages/theme-chalk/src/pull-refresh.scss +0 -0
- package/packages/theme-chalk/src/selector.scss +6 -0
- package/packages/theme-chalk/src/swipe.scss +0 -0
- package/src/config/api.js +2 -0
- package/src/index.js +10 -4
- package/src/utils/axios.js +2 -2
package/src/index.js
CHANGED
|
@@ -38,7 +38,9 @@ import ActionSheet from '../packages/action-sheet/index.js';
|
|
|
38
38
|
import Popup from '../packages/popup/index.js';
|
|
39
39
|
import Stepper from '../packages/stepper/index.js';
|
|
40
40
|
import Esign from '../packages/esign/index.js';
|
|
41
|
-
import Pagination from '../packages/pagination/index.js';
|
|
41
|
+
import Pagination from '../packages/pagination/index.js';
|
|
42
|
+
import Swipe from '../packages/swipe/index.js';
|
|
43
|
+
import PullRefresh from '../packages/pull-refresh/index.js';
|
|
42
44
|
|
|
43
45
|
const components = [
|
|
44
46
|
Loading,
|
|
@@ -79,7 +81,9 @@ const components = [
|
|
|
79
81
|
Popup,
|
|
80
82
|
Stepper,
|
|
81
83
|
Esign,
|
|
82
|
-
Pagination
|
|
84
|
+
Pagination,
|
|
85
|
+
Swipe,
|
|
86
|
+
PullRefresh
|
|
83
87
|
];
|
|
84
88
|
|
|
85
89
|
const install = function(Vue, opts = {}) {
|
|
@@ -93,7 +97,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
93
97
|
}
|
|
94
98
|
|
|
95
99
|
export default {
|
|
96
|
-
version: '0.2.
|
|
100
|
+
version: '0.2.9',
|
|
97
101
|
install,
|
|
98
102
|
Button,
|
|
99
103
|
ButtonGroup,
|
|
@@ -132,5 +136,7 @@ export default {
|
|
|
132
136
|
Popup,
|
|
133
137
|
Stepper,
|
|
134
138
|
Esign,
|
|
135
|
-
Pagination
|
|
139
|
+
Pagination,
|
|
140
|
+
Swipe,
|
|
141
|
+
PullRefresh
|
|
136
142
|
};
|
package/src/utils/axios.js
CHANGED
|
@@ -207,9 +207,9 @@ const base = {
|
|
|
207
207
|
},
|
|
208
208
|
post: (url, params = {}) => {
|
|
209
209
|
if (params.params) {
|
|
210
|
-
params.params.userId = $.getStorage('userId');
|
|
210
|
+
params.params.userId = params.params.userId || $.getStorage('userId');
|
|
211
211
|
} else {
|
|
212
|
-
params.userId = $.getStorage('userId');
|
|
212
|
+
params.userId = params.userId || $.getStorage('userId');
|
|
213
213
|
}
|
|
214
214
|
return http.post(url, params);
|
|
215
215
|
}
|