eoss-mobiles 0.2.49 → 0.2.51

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 (40) hide show
  1. package/lib/checkbox.js +16 -1
  2. package/lib/date.js +60 -16
  3. package/lib/eoss-mobile.common.js +462 -380
  4. package/lib/field.js +14 -3
  5. package/lib/flow-btn.js +16 -1
  6. package/lib/flow-list.js +16 -1
  7. package/lib/flow.js +16 -1
  8. package/lib/form.js +336 -329
  9. package/lib/index.js +1 -1
  10. package/lib/picker.js +22 -3
  11. package/lib/radio.js +19 -4
  12. package/lib/retrial-auth.js +16 -1
  13. package/lib/selector.js +16 -1
  14. package/lib/table-column.js +16 -1
  15. package/lib/table.js +17 -1
  16. package/lib/theme-chalk/field.css +1 -1
  17. package/lib/theme-chalk/form.css +1 -0
  18. package/lib/theme-chalk/index.css +1 -1
  19. package/lib/theme-chalk/selector.css +1 -1
  20. package/lib/theme-chalk/table.css +1 -1
  21. package/lib/utils/axios.js +16 -1
  22. package/package.json +1 -1
  23. package/packages/date/src/date-picker.vue +68 -37
  24. package/packages/date/src/main.vue +48 -27
  25. package/packages/field/src/main.vue +9 -2
  26. package/packages/form/src/main.vue +10 -7
  27. package/packages/picker/src/main.vue +2 -0
  28. package/packages/radio/src/main.vue +1 -1
  29. package/packages/table/src/main.vue +1 -0
  30. package/packages/theme-chalk/lib/field.css +1 -1
  31. package/packages/theme-chalk/lib/form.css +1 -0
  32. package/packages/theme-chalk/lib/index.css +1 -1
  33. package/packages/theme-chalk/lib/selector.css +1 -1
  34. package/packages/theme-chalk/lib/table.css +1 -1
  35. package/packages/theme-chalk/src/field.scss +25 -5
  36. package/packages/theme-chalk/src/form.scss +5 -0
  37. package/packages/theme-chalk/src/selector.scss +5 -0
  38. package/packages/theme-chalk/src/table.scss +3 -0
  39. package/src/index.js +1 -1
  40. package/src/utils/axios.js +16 -1
package/lib/picker.js CHANGED
@@ -1803,7 +1803,22 @@ var axios_ajax = function ajax(url) {
1803
1803
  if (config.url.search('mecp/overtime') !== -1 || config.url.search('mecp/leave') !== -1 || config.url.search('contractext') !== -1 || config.url.search('getSysParam') !== -1) {
1804
1804
  delete config.headers.deviceId;
1805
1805
  }
1806
-
1806
+ var accessToken = util["a" /* default */].getStorage('accessToken');
1807
+ var tenantId = util["a" /* default */].getStorage('tenantId');
1808
+ var authorization = util["a" /* default */].getStorage('authorization') || util["a" /* default */].getStorage('token');
1809
+ var deviceId = util["a" /* default */].getStorage('deviceId');
1810
+ if (accessToken) {
1811
+ config.headers['X-Coos-Client-Access-Token'] = accessToken;
1812
+ }
1813
+ if (tenantId) {
1814
+ config.headers['X-Coos-Client-Tenant-Id'] = tenantId;
1815
+ }
1816
+ if (authorization) {
1817
+ config.headers['Authorization'] = authorization;
1818
+ }
1819
+ if (deviceId) {
1820
+ config.headers['deviceId'] = deviceId;
1821
+ }
1807
1822
  return config;
1808
1823
  }, function (error) {
1809
1824
  return Promise.error(error);
@@ -2041,7 +2056,7 @@ module.exports = require("sm-crypto");
2041
2056
  // ESM COMPAT FLAG
2042
2057
  __webpack_require__.r(__webpack_exports__);
2043
2058
 
2044
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/picker/src/main.vue?vue&type=template&id=2868c157&
2059
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/picker/src/main.vue?vue&type=template&id=19aea2bf&
2045
2060
  var render = function () {
2046
2061
  var _vm = this
2047
2062
  var _h = _vm.$createElement
@@ -2070,6 +2085,7 @@ var render = function () {
2070
2085
  : _vm.placeholder
2071
2086
  ? _vm.placeholder
2072
2087
  : "请选择" + _vm.label,
2088
+ "right-icon": "arrow",
2073
2089
  },
2074
2090
  on: { click: _vm.handlePicker },
2075
2091
  },
@@ -2090,6 +2106,7 @@ var render = function () {
2090
2106
  disabled: _vm.disabled || _vm.readonly,
2091
2107
  "label-width": _vm.labelWidth,
2092
2108
  hideLabel: _vm.hideLabel,
2109
+ "right-icon": "arrow",
2093
2110
  },
2094
2111
  on: { click: _vm.handlePicker },
2095
2112
  },
@@ -2313,7 +2330,7 @@ var staticRenderFns = []
2313
2330
  render._withStripped = true
2314
2331
 
2315
2332
 
2316
- // CONCATENATED MODULE: ./packages/picker/src/main.vue?vue&type=template&id=2868c157&
2333
+ // CONCATENATED MODULE: ./packages/picker/src/main.vue?vue&type=template&id=19aea2bf&
2317
2334
 
2318
2335
  // EXTERNAL MODULE: ./src/config/api.js
2319
2336
  var api = __webpack_require__(2);
@@ -2448,6 +2465,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2448
2465
  //
2449
2466
  //
2450
2467
  //
2468
+ //
2469
+ //
2451
2470
 
2452
2471
 
2453
2472
 
package/lib/radio.js CHANGED
@@ -1803,7 +1803,22 @@ var axios_ajax = function ajax(url) {
1803
1803
  if (config.url.search('mecp/overtime') !== -1 || config.url.search('mecp/leave') !== -1 || config.url.search('contractext') !== -1 || config.url.search('getSysParam') !== -1) {
1804
1804
  delete config.headers.deviceId;
1805
1805
  }
1806
-
1806
+ var accessToken = util["a" /* default */].getStorage('accessToken');
1807
+ var tenantId = util["a" /* default */].getStorage('tenantId');
1808
+ var authorization = util["a" /* default */].getStorage('authorization') || util["a" /* default */].getStorage('token');
1809
+ var deviceId = util["a" /* default */].getStorage('deviceId');
1810
+ if (accessToken) {
1811
+ config.headers['X-Coos-Client-Access-Token'] = accessToken;
1812
+ }
1813
+ if (tenantId) {
1814
+ config.headers['X-Coos-Client-Tenant-Id'] = tenantId;
1815
+ }
1816
+ if (authorization) {
1817
+ config.headers['Authorization'] = authorization;
1818
+ }
1819
+ if (deviceId) {
1820
+ config.headers['deviceId'] = deviceId;
1821
+ }
1807
1822
  return config;
1808
1823
  }, function (error) {
1809
1824
  return Promise.error(error);
@@ -2040,7 +2055,7 @@ module.exports = require("sm-crypto");
2040
2055
  // ESM COMPAT FLAG
2041
2056
  __webpack_require__.r(__webpack_exports__);
2042
2057
 
2043
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/main.vue?vue&type=template&id=6780641d&
2058
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/main.vue?vue&type=template&id=526e450c&
2044
2059
  var render = function () {
2045
2060
  var _vm = this
2046
2061
  var _h = _vm.$createElement
@@ -2107,7 +2122,7 @@ var staticRenderFns = []
2107
2122
  render._withStripped = true
2108
2123
 
2109
2124
 
2110
- // CONCATENATED MODULE: ./packages/radio/src/main.vue?vue&type=template&id=6780641d&
2125
+ // CONCATENATED MODULE: ./packages/radio/src/main.vue?vue&type=template&id=526e450c&
2111
2126
 
2112
2127
  // EXTERNAL MODULE: ./src/config/api.js
2113
2128
  var api = __webpack_require__(2);
@@ -2183,7 +2198,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2183
2198
  default: 'vertical'
2184
2199
  },
2185
2200
  value: {
2186
- type: String,
2201
+ type: [String, Number],
2187
2202
  default: ''
2188
2203
  },
2189
2204
  sysAppCode: {
@@ -1807,7 +1807,22 @@ var axios_ajax = function ajax(url) {
1807
1807
  if (config.url.search('mecp/overtime') !== -1 || config.url.search('mecp/leave') !== -1 || config.url.search('contractext') !== -1 || config.url.search('getSysParam') !== -1) {
1808
1808
  delete config.headers.deviceId;
1809
1809
  }
1810
-
1810
+ var accessToken = util["a" /* default */].getStorage('accessToken');
1811
+ var tenantId = util["a" /* default */].getStorage('tenantId');
1812
+ var authorization = util["a" /* default */].getStorage('authorization') || util["a" /* default */].getStorage('token');
1813
+ var deviceId = util["a" /* default */].getStorage('deviceId');
1814
+ if (accessToken) {
1815
+ config.headers['X-Coos-Client-Access-Token'] = accessToken;
1816
+ }
1817
+ if (tenantId) {
1818
+ config.headers['X-Coos-Client-Tenant-Id'] = tenantId;
1819
+ }
1820
+ if (authorization) {
1821
+ config.headers['Authorization'] = authorization;
1822
+ }
1823
+ if (deviceId) {
1824
+ config.headers['deviceId'] = deviceId;
1825
+ }
1811
1826
  return config;
1812
1827
  }, function (error) {
1813
1828
  return Promise.error(error);
package/lib/selector.js CHANGED
@@ -1803,7 +1803,22 @@ var axios_ajax = function ajax(url) {
1803
1803
  if (config.url.search('mecp/overtime') !== -1 || config.url.search('mecp/leave') !== -1 || config.url.search('contractext') !== -1 || config.url.search('getSysParam') !== -1) {
1804
1804
  delete config.headers.deviceId;
1805
1805
  }
1806
-
1806
+ var accessToken = util["a" /* default */].getStorage('accessToken');
1807
+ var tenantId = util["a" /* default */].getStorage('tenantId');
1808
+ var authorization = util["a" /* default */].getStorage('authorization') || util["a" /* default */].getStorage('token');
1809
+ var deviceId = util["a" /* default */].getStorage('deviceId');
1810
+ if (accessToken) {
1811
+ config.headers['X-Coos-Client-Access-Token'] = accessToken;
1812
+ }
1813
+ if (tenantId) {
1814
+ config.headers['X-Coos-Client-Tenant-Id'] = tenantId;
1815
+ }
1816
+ if (authorization) {
1817
+ config.headers['Authorization'] = authorization;
1818
+ }
1819
+ if (deviceId) {
1820
+ config.headers['deviceId'] = deviceId;
1821
+ }
1807
1822
  return config;
1808
1823
  }, function (error) {
1809
1824
  return Promise.error(error);
@@ -1803,7 +1803,22 @@ var axios_ajax = function ajax(url) {
1803
1803
  if (config.url.search('mecp/overtime') !== -1 || config.url.search('mecp/leave') !== -1 || config.url.search('contractext') !== -1 || config.url.search('getSysParam') !== -1) {
1804
1804
  delete config.headers.deviceId;
1805
1805
  }
1806
-
1806
+ var accessToken = util["a" /* default */].getStorage('accessToken');
1807
+ var tenantId = util["a" /* default */].getStorage('tenantId');
1808
+ var authorization = util["a" /* default */].getStorage('authorization') || util["a" /* default */].getStorage('token');
1809
+ var deviceId = util["a" /* default */].getStorage('deviceId');
1810
+ if (accessToken) {
1811
+ config.headers['X-Coos-Client-Access-Token'] = accessToken;
1812
+ }
1813
+ if (tenantId) {
1814
+ config.headers['X-Coos-Client-Tenant-Id'] = tenantId;
1815
+ }
1816
+ if (authorization) {
1817
+ config.headers['Authorization'] = authorization;
1818
+ }
1819
+ if (deviceId) {
1820
+ config.headers['deviceId'] = deviceId;
1821
+ }
1807
1822
  return config;
1808
1823
  }, function (error) {
1809
1824
  return Promise.error(error);
package/lib/table.js CHANGED
@@ -1682,7 +1682,22 @@ var axios_ajax = function ajax(url) {
1682
1682
  if (config.url.search('mecp/overtime') !== -1 || config.url.search('mecp/leave') !== -1 || config.url.search('contractext') !== -1 || config.url.search('getSysParam') !== -1) {
1683
1683
  delete config.headers.deviceId;
1684
1684
  }
1685
-
1685
+ var accessToken = util["a" /* default */].getStorage('accessToken');
1686
+ var tenantId = util["a" /* default */].getStorage('tenantId');
1687
+ var authorization = util["a" /* default */].getStorage('authorization') || util["a" /* default */].getStorage('token');
1688
+ var deviceId = util["a" /* default */].getStorage('deviceId');
1689
+ if (accessToken) {
1690
+ config.headers['X-Coos-Client-Access-Token'] = accessToken;
1691
+ }
1692
+ if (tenantId) {
1693
+ config.headers['X-Coos-Client-Tenant-Id'] = tenantId;
1694
+ }
1695
+ if (authorization) {
1696
+ config.headers['Authorization'] = authorization;
1697
+ }
1698
+ if (deviceId) {
1699
+ config.headers['deviceId'] = deviceId;
1700
+ }
1686
1701
  return config;
1687
1702
  }, function (error) {
1688
1703
  return Promise.error(error);
@@ -2685,6 +2700,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2685
2700
  'header-row-class-name': this.tableHeader,
2686
2701
  data: this.datas
2687
2702
  }, this.$attrs, {
2703
+ 'max-height': this.maxHeight,
2688
2704
  height: this.tableHeight !== 'auto' ? this.tableHeight : this.tableClientHeight
2689
2705
  }),
2690
2706
  on: _extends({}, this.$listeners, {
@@ -1 +1 @@
1
- .em-input .van-field__left-icon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.em-input .input-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.em-input .input-wrap .van-field__label{width:100%!important;padding-right:20px}.em-input .input-wrap .van-field__left-icon{position:absolute}.em-input .is-left-icon.input-wrap .van-field__label{margin-left:20px}.em-input .required-right .van-field__label::before{display:none}.em-input .isRequired.input-wrap.is-left-icon .van-field__label{margin-left:30px}.em-input .isRequired .van-field__left-icon{margin-right:14px}.em-input .em-cell--required{position:relative;display:inline-block}.em-input .van-field__label{margin-right:17px;-ms-flex-item-align:center;align-self:center}.em-input .em-cell--required::after{position:absolute;right:-8px;top:60%;-webkit-transform:translate(0,-50%);transform:translate(0,-50%);color:#ee0a24;font-size:14px;content:'*'}.em-input .hide-label .van-field__label{display:none}.em-input .van-cell--required::before{content:''}.em-input .van-cell--required .van-field__label{position:relative}.em-input .van-cell--required .van-field__label::before{position:absolute;left:-10px;top:60%;-webkit-transform:translate(0,-50%);transform:translate(0,-50%);color:#ee0a24;font-size:14px;content:'*'}
1
+ .em-input .van-field__left-icon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.em-input .input-right .van-field__error-message{text-align:right}.em-input .em-input-border .van-cell::after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:' ';display:inline-block;pointer-events:none;right:16px;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.em-input .input-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.em-input .input-wrap .van-field__label{width:100%!important;padding-right:20px}.em-input .input-wrap .van-field__left-icon{position:absolute}.em-input .is-left-icon.input-wrap .van-field__label{margin-left:20px}.em-input .required-right .van-field__label::before{display:none}.em-input .isRequired.input-wrap.is-left-icon .van-field__label{margin-left:30px}.em-input .isRequired .van-field__left-icon{margin-right:14px}.em-input .em-cell--required{position:relative;display:inline-block}.em-input .van-field__label{margin-right:17px;-ms-flex-item-align:center;align-self:center}.em-input .em-cell--required::after{position:absolute;right:-8px;top:60%;-webkit-transform:translate(0,-50%);transform:translate(0,-50%);color:#ee0a24;font-size:14px;content:'*'}.em-input .hide-label .van-field__label{display:none}.em-input .van-cell--required::before{content:''}.em-input .van-cell--required .van-field__label{position:relative}.em-input .van-cell--required .van-field__label::before{position:absolute;left:-10px;top:60%;-webkit-transform:translate(0,-50%);transform:translate(0,-50%);color:#ee0a24;font-size:14px;content:'*'}
@@ -0,0 +1 @@
1
+ .em-form{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.em-form-content{-webkit-box-flex:1;-ms-flex:1;flex:1}