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.
Files changed (41) hide show
  1. package/lib/checkbox.js +20 -17
  2. package/lib/config/api.js +3 -1
  3. package/lib/eoss-mobile.common.js +374 -92
  4. package/lib/flow.js +173 -113
  5. package/lib/index.js +1 -1
  6. package/lib/picker.js +20 -17
  7. package/lib/pull-refresh.js +305 -0
  8. package/lib/radio.js +20 -17
  9. package/lib/selector.js +30 -24
  10. package/lib/swipe.js +327 -0
  11. package/lib/table.js +11 -11
  12. package/lib/theme-chalk/index.css +1 -1
  13. package/lib/theme-chalk/pull-refresh.css +0 -0
  14. package/lib/theme-chalk/selector.css +1 -1
  15. package/lib/theme-chalk/swipe.css +0 -0
  16. package/lib/utils/axios.js +2 -2
  17. package/package.json +1 -1
  18. package/packages/flow/src/components/Handle.vue +51 -24
  19. package/packages/flow/src/components/Message.vue +5 -1
  20. package/packages/flow/src/components/Opinion.vue +6 -2
  21. package/packages/flow/src/components/Reject.vue +7 -1
  22. package/packages/flow/src/components/StartFlow.vue +9 -3
  23. package/packages/flow/src/components/TaskRead.vue +12 -4
  24. package/packages/flow/src/components/taskUnionExamine.vue +17 -14
  25. package/packages/pull-refresh/index.js +5 -0
  26. package/packages/pull-refresh/src/main.vue +31 -0
  27. package/packages/selector/src/selector-tree.vue +2 -0
  28. package/packages/swipe/index.js +5 -0
  29. package/packages/swipe/src/main.vue +42 -0
  30. package/packages/theme-chalk/lib/index.css +1 -1
  31. package/packages/theme-chalk/lib/pull-refresh.css +0 -0
  32. package/packages/theme-chalk/lib/selector.css +1 -1
  33. package/packages/theme-chalk/lib/swipe.css +0 -0
  34. package/packages/theme-chalk/src/flow.scss +1 -0
  35. package/packages/theme-chalk/src/index.scss +2 -0
  36. package/packages/theme-chalk/src/pull-refresh.scss +0 -0
  37. package/packages/theme-chalk/src/selector.scss +6 -0
  38. package/packages/theme-chalk/src/swipe.scss +0 -0
  39. package/src/config/api.js +2 -0
  40. package/src/index.js +10 -4
  41. 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.7',
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
  };
@@ -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
  }