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.
- package/lib/checkbox.js +16 -1
- package/lib/date.js +60 -16
- package/lib/eoss-mobile.common.js +462 -380
- package/lib/field.js +14 -3
- package/lib/flow-btn.js +16 -1
- package/lib/flow-list.js +16 -1
- package/lib/flow.js +16 -1
- package/lib/form.js +336 -329
- package/lib/index.js +1 -1
- package/lib/picker.js +22 -3
- package/lib/radio.js +19 -4
- package/lib/retrial-auth.js +16 -1
- package/lib/selector.js +16 -1
- package/lib/table-column.js +16 -1
- package/lib/table.js +17 -1
- package/lib/theme-chalk/field.css +1 -1
- package/lib/theme-chalk/form.css +1 -0
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/selector.css +1 -1
- package/lib/theme-chalk/table.css +1 -1
- package/lib/utils/axios.js +16 -1
- package/package.json +1 -1
- package/packages/date/src/date-picker.vue +68 -37
- package/packages/date/src/main.vue +48 -27
- package/packages/field/src/main.vue +9 -2
- package/packages/form/src/main.vue +10 -7
- package/packages/picker/src/main.vue +2 -0
- package/packages/radio/src/main.vue +1 -1
- package/packages/table/src/main.vue +1 -0
- package/packages/theme-chalk/lib/field.css +1 -1
- package/packages/theme-chalk/lib/form.css +1 -0
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/selector.css +1 -1
- package/packages/theme-chalk/lib/table.css +1 -1
- package/packages/theme-chalk/src/field.scss +25 -5
- package/packages/theme-chalk/src/form.scss +5 -0
- package/packages/theme-chalk/src/selector.scss +5 -0
- package/packages/theme-chalk/src/table.scss +3 -0
- package/src/index.js +1 -1
- package/src/utils/axios.js +16 -1
package/lib/field.js
CHANGED
|
@@ -199,14 +199,14 @@ function normalizeComponent(
|
|
|
199
199
|
// ESM COMPAT FLAG
|
|
200
200
|
__webpack_require__.r(__webpack_exports__);
|
|
201
201
|
|
|
202
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/field/src/main.vue?vue&type=template&id=
|
|
202
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/field/src/main.vue?vue&type=template&id=099f12b6&
|
|
203
203
|
var render = function () {
|
|
204
204
|
var _vm = this
|
|
205
205
|
var _h = _vm.$createElement
|
|
206
206
|
var _c = _vm._self._c || _h
|
|
207
207
|
return _c(
|
|
208
208
|
"div",
|
|
209
|
-
{ staticClass: "em-input" },
|
|
209
|
+
{ staticClass: "em-input", class: { "em-input-border": _vm.border } },
|
|
210
210
|
[
|
|
211
211
|
_c(
|
|
212
212
|
"van-field",
|
|
@@ -217,6 +217,9 @@ var render = function () {
|
|
|
217
217
|
"hide-label": _vm.hideLabel,
|
|
218
218
|
"input-wrap": _vm.labelPosition == "top",
|
|
219
219
|
"required-right": _vm.requiredPosition == "right",
|
|
220
|
+
"input-right":
|
|
221
|
+
(_vm.$attrs["inputAlign"] || _vm.$attrs["input-align"]) ===
|
|
222
|
+
"right",
|
|
220
223
|
isRequired:
|
|
221
224
|
(_vm.required ||
|
|
222
225
|
(Array.isArray(_vm.rules)
|
|
@@ -226,6 +229,7 @@ var render = function () {
|
|
|
226
229
|
"is-left-icon": _vm.leftIcon,
|
|
227
230
|
},
|
|
228
231
|
attrs: {
|
|
232
|
+
border: _vm.border,
|
|
229
233
|
autocomplete: "new-password",
|
|
230
234
|
"label-width": _vm.labelWidth,
|
|
231
235
|
placeholder: _vm.newPlaceholder
|
|
@@ -317,7 +321,7 @@ var staticRenderFns = []
|
|
|
317
321
|
render._withStripped = true
|
|
318
322
|
|
|
319
323
|
|
|
320
|
-
// CONCATENATED MODULE: ./packages/field/src/main.vue?vue&type=template&id=
|
|
324
|
+
// CONCATENATED MODULE: ./packages/field/src/main.vue?vue&type=template&id=099f12b6&
|
|
321
325
|
|
|
322
326
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/field/src/main.vue?vue&type=script&lang=js&
|
|
323
327
|
//
|
|
@@ -382,6 +386,9 @@ render._withStripped = true
|
|
|
382
386
|
//
|
|
383
387
|
//
|
|
384
388
|
//
|
|
389
|
+
//
|
|
390
|
+
//
|
|
391
|
+
//
|
|
385
392
|
|
|
386
393
|
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
|
387
394
|
name: 'EmInput',
|
|
@@ -444,6 +451,10 @@ render._withStripped = true
|
|
|
444
451
|
leftIcon: {
|
|
445
452
|
type: String,
|
|
446
453
|
default: ''
|
|
454
|
+
},
|
|
455
|
+
border: {
|
|
456
|
+
type: Boolean,
|
|
457
|
+
default: true
|
|
447
458
|
}
|
|
448
459
|
},
|
|
449
460
|
data: function data() {
|
package/lib/flow-btn.js
CHANGED
|
@@ -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/flow-list.js
CHANGED
|
@@ -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/flow.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);
|