eoss-ui 0.5.79 → 0.5.80
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/button-group.js +1 -1
- package/lib/button.js +1 -1
- package/lib/checkbox-group.js +1 -1
- package/lib/clients.js +9 -9
- package/lib/data-table-form.js +1 -1
- package/lib/data-table.js +16 -11
- package/lib/date-picker.js +1 -1
- package/lib/dialog.js +1 -1
- package/lib/eoss-ui.common.js +254 -147
- package/lib/flow-group.js +1 -1
- package/lib/flow-list.js +1 -1
- package/lib/flow.js +1 -1
- package/lib/form.js +109 -29
- package/lib/handle-user.js +1 -1
- package/lib/handler.js +1 -1
- package/lib/index.js +1 -1
- package/lib/input-number.js +1 -1
- package/lib/input.js +1 -5
- package/lib/login.js +3 -5
- package/lib/main.js +28 -27
- package/lib/nav.js +1 -1
- package/lib/page.js +1 -1
- package/lib/player.js +1 -1
- package/lib/qr-code.js +1 -1
- package/lib/radio-group.js +1 -1
- package/lib/retrial-auth.js +1 -1
- package/lib/select-ganged.js +1 -1
- package/lib/select.js +1 -1
- package/lib/selector-panel.js +1 -1
- package/lib/selector.js +1 -1
- package/lib/sizer.js +1 -1
- package/lib/steps.js +1 -1
- package/lib/switch.js +1 -1
- package/lib/table-form.js +1 -1
- package/lib/tabs.js +1 -1
- package/lib/theme-chalk/clients.css +1 -1
- package/lib/theme-chalk/data-table.css +1 -1
- package/lib/theme-chalk/form.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/tips.js +1 -1
- package/lib/tree-group.js +1 -1
- package/lib/tree.js +1 -1
- package/lib/upload.js +68 -41
- package/lib/utils/util.js +1 -1
- package/lib/wujie.js +1 -1
- package/lib/wxlogin.js +1 -1
- package/package.json +2 -2
- package/packages/clients/src/main.vue +7 -7
- package/packages/data-table/src/main.vue +16 -5
- package/packages/form/src/main.vue +27 -13
- package/packages/input/src/main.vue +0 -4
- package/packages/login/src/main.vue +0 -1
- package/packages/main/src/main.vue +25 -24
- package/packages/theme-chalk/lib/clients.css +1 -1
- package/packages/theme-chalk/lib/data-table.css +1 -1
- package/packages/theme-chalk/lib/form.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/src/clients.scss +1 -1
- package/packages/theme-chalk/src/data-table.scss +3 -0
- package/packages/theme-chalk/src/form.scss +2 -2
- package/packages/upload/src/main.vue +126 -72
- package/src/index.js +1 -1
- package/src/utils/util.js +1 -1
package/lib/button-group.js
CHANGED
|
@@ -351,7 +351,7 @@ var ajax = function ajax(_ref) {
|
|
|
351
351
|
}, 1000);
|
|
352
352
|
}
|
|
353
353
|
// eslint-disable-next-line no-undef
|
|
354
|
-
return Promise.resolve(response.data);
|
|
354
|
+
return Promise.resolve(JSON.parse(JSON.stringify(response.data)));
|
|
355
355
|
}
|
|
356
356
|
}, function (error) {
|
|
357
357
|
loading && loading.close();
|
package/lib/button.js
CHANGED
|
@@ -351,7 +351,7 @@ var ajax = function ajax(_ref) {
|
|
|
351
351
|
}, 1000);
|
|
352
352
|
}
|
|
353
353
|
// eslint-disable-next-line no-undef
|
|
354
|
-
return Promise.resolve(response.data);
|
|
354
|
+
return Promise.resolve(JSON.parse(JSON.stringify(response.data)));
|
|
355
355
|
}
|
|
356
356
|
}, function (error) {
|
|
357
357
|
loading && loading.close();
|
package/lib/checkbox-group.js
CHANGED
|
@@ -350,7 +350,7 @@ var ajax = function ajax(_ref) {
|
|
|
350
350
|
}, 1000);
|
|
351
351
|
}
|
|
352
352
|
// eslint-disable-next-line no-undef
|
|
353
|
-
return Promise.resolve(response.data);
|
|
353
|
+
return Promise.resolve(JSON.parse(JSON.stringify(response.data)));
|
|
354
354
|
}
|
|
355
355
|
}, function (error) {
|
|
356
356
|
loading && loading.close();
|
package/lib/clients.js
CHANGED
|
@@ -199,7 +199,7 @@ 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/clients/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/clients/src/main.vue?vue&type=template&id=f0512042&
|
|
203
203
|
var render = function () {
|
|
204
204
|
var _vm = this
|
|
205
205
|
var _h = _vm.$createElement
|
|
@@ -370,7 +370,7 @@ var staticRenderFns = [
|
|
|
370
370
|
render._withStripped = true
|
|
371
371
|
|
|
372
372
|
|
|
373
|
-
// CONCATENATED MODULE: ./packages/clients/src/main.vue?vue&type=template&id=
|
|
373
|
+
// CONCATENATED MODULE: ./packages/clients/src/main.vue?vue&type=template&id=f0512042&
|
|
374
374
|
|
|
375
375
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/clients/src/main.vue?vue&type=script&lang=js&
|
|
376
376
|
//
|
|
@@ -476,7 +476,7 @@ render._withStripped = true
|
|
|
476
476
|
|
|
477
477
|
methods: {
|
|
478
478
|
handleDownload: function handleDownload(url) {
|
|
479
|
-
if (url) {
|
|
479
|
+
if (url && typeof url == 'string') {
|
|
480
480
|
window.open(url);
|
|
481
481
|
return;
|
|
482
482
|
}
|
|
@@ -484,24 +484,24 @@ render._withStripped = true
|
|
|
484
484
|
var isMac = navigator.platform == 'Mac68K' || navigator.platform == 'MacPPC' || navigator.platform == 'Macintosh' || navigator.platform == 'MacIntel';
|
|
485
485
|
var isLinux = navigator.platform == 'X11' || navigator.platform.indexOf('Linux') > -1;
|
|
486
486
|
if (isWin) {
|
|
487
|
-
if (this.win) {
|
|
488
|
-
window.open(this.win);
|
|
487
|
+
if (this.downloads.win) {
|
|
488
|
+
window.open(this.downloads.win);
|
|
489
489
|
} else {
|
|
490
490
|
this.$message.error('下载地址不存在!');
|
|
491
491
|
return;
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
if (isMac) {
|
|
495
|
-
if (this.mac) {
|
|
496
|
-
window.open(this.mac);
|
|
495
|
+
if (this.downloads.mac) {
|
|
496
|
+
window.open(this.downloads.mac);
|
|
497
497
|
} else {
|
|
498
498
|
this.$message.error('下载地址不存在!');
|
|
499
499
|
return;
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
if (isLinux) {
|
|
503
|
-
if (this.linux) {
|
|
504
|
-
window.open(this.linux);
|
|
503
|
+
if (this.downloads.linux) {
|
|
504
|
+
window.open(this.downloads.linux);
|
|
505
505
|
} else {
|
|
506
506
|
this.$message.error('下载地址不存在!');
|
|
507
507
|
return;
|
package/lib/data-table-form.js
CHANGED
|
@@ -350,7 +350,7 @@ var ajax = function ajax(_ref) {
|
|
|
350
350
|
}, 1000);
|
|
351
351
|
}
|
|
352
352
|
// eslint-disable-next-line no-undef
|
|
353
|
-
return Promise.resolve(response.data);
|
|
353
|
+
return Promise.resolve(JSON.parse(JSON.stringify(response.data)));
|
|
354
354
|
}
|
|
355
355
|
}, function (error) {
|
|
356
356
|
loading && loading.close();
|
package/lib/data-table.js
CHANGED
|
@@ -350,7 +350,7 @@ var ajax = function ajax(_ref) {
|
|
|
350
350
|
}, 1000);
|
|
351
351
|
}
|
|
352
352
|
// eslint-disable-next-line no-undef
|
|
353
|
-
return Promise.resolve(response.data);
|
|
353
|
+
return Promise.resolve(JSON.parse(JSON.stringify(response.data)));
|
|
354
354
|
}
|
|
355
355
|
}, function (error) {
|
|
356
356
|
loading && loading.close();
|
|
@@ -3928,8 +3928,8 @@ module.exports = require("vue");
|
|
|
3928
3928
|
// ESM COMPAT FLAG
|
|
3929
3929
|
__webpack_require__.r(__webpack_exports__);
|
|
3930
3930
|
|
|
3931
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=
|
|
3932
|
-
var
|
|
3931
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=1f63e6c2&
|
|
3932
|
+
var mainvue_type_template_id_1f63e6c2_render = function () {
|
|
3933
3933
|
var _vm = this
|
|
3934
3934
|
var _h = _vm.$createElement
|
|
3935
3935
|
var _c = _vm._self._c || _h
|
|
@@ -4240,10 +4240,10 @@ var mainvue_type_template_id_58029cb3_render = function () {
|
|
|
4240
4240
|
)
|
|
4241
4241
|
}
|
|
4242
4242
|
var staticRenderFns = []
|
|
4243
|
-
|
|
4243
|
+
mainvue_type_template_id_1f63e6c2_render._withStripped = true
|
|
4244
4244
|
|
|
4245
4245
|
|
|
4246
|
-
// CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=
|
|
4246
|
+
// CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=1f63e6c2&
|
|
4247
4247
|
|
|
4248
4248
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
4249
4249
|
var api = __webpack_require__(1);
|
|
@@ -6768,7 +6768,7 @@ var mainvue_type_script_lang_js_components, _watch;
|
|
|
6768
6768
|
if (this.list && this.list.length) {
|
|
6769
6769
|
return this.list;
|
|
6770
6770
|
}
|
|
6771
|
-
if (this.
|
|
6771
|
+
if (this.page && (_typeof(this.page) === 'object' && (!Object.prototype.hasOwnProperty.call(this.page, 'totalCount') || this.page.totalCount == 0) || this.page === true)) {
|
|
6772
6772
|
this.config.totalCount = this.data.length - this.lose;
|
|
6773
6773
|
}
|
|
6774
6774
|
if (this.page && this.data.length > this.config.pageSize) {
|
|
@@ -6838,10 +6838,15 @@ var mainvue_type_script_lang_js_components, _watch;
|
|
|
6838
6838
|
},
|
|
6839
6839
|
|
|
6840
6840
|
// data: {
|
|
6841
|
-
// immediate: true,
|
|
6842
6841
|
// deep: true,
|
|
6843
6842
|
// handler(val) {
|
|
6844
|
-
//
|
|
6843
|
+
// if (
|
|
6844
|
+
// this.page &&
|
|
6845
|
+
// typeof this.page === 'object' &&
|
|
6846
|
+
// !Object.prototype.hasOwnProperty.call(this.page, 'totalCount')
|
|
6847
|
+
// ) {
|
|
6848
|
+
// this.config.totalCount = val.length - this.lose;
|
|
6849
|
+
// }
|
|
6845
6850
|
// }
|
|
6846
6851
|
// },
|
|
6847
6852
|
page: function page() {
|
|
@@ -7182,7 +7187,7 @@ var mainvue_type_script_lang_js_components, _watch;
|
|
|
7182
7187
|
if (where) {
|
|
7183
7188
|
reqData = util["a" /* default */].extend({}, reqData, where);
|
|
7184
7189
|
}
|
|
7185
|
-
if (this.retainSearh) {
|
|
7190
|
+
if (this.retainSearh || first === false) {
|
|
7186
7191
|
reqData = util["a" /* default */].extend({}, reqData, this.wheres);
|
|
7187
7192
|
}
|
|
7188
7193
|
if (this.isJoin) {
|
|
@@ -7406,7 +7411,7 @@ var mainvue_type_script_lang_js_components, _watch;
|
|
|
7406
7411
|
}
|
|
7407
7412
|
var thead = this.theads;
|
|
7408
7413
|
if (this.$refs.oaTable) {
|
|
7409
|
-
thead = this.$refs.oaTable.getThead();
|
|
7414
|
+
thead = this.$refs.oaTable.getThead().thead;
|
|
7410
7415
|
}
|
|
7411
7416
|
if (handle.action) {
|
|
7412
7417
|
var isConfirm = handle.confirm || true;
|
|
@@ -7715,7 +7720,7 @@ var mainvue_type_script_lang_js_components, _watch;
|
|
|
7715
7720
|
|
|
7716
7721
|
var main_component = Object(componentNormalizer["a" /* default */])(
|
|
7717
7722
|
src_mainvue_type_script_lang_js_,
|
|
7718
|
-
|
|
7723
|
+
mainvue_type_template_id_1f63e6c2_render,
|
|
7719
7724
|
staticRenderFns,
|
|
7720
7725
|
false,
|
|
7721
7726
|
null,
|
package/lib/date-picker.js
CHANGED
|
@@ -351,7 +351,7 @@ var ajax = function ajax(_ref) {
|
|
|
351
351
|
}, 1000);
|
|
352
352
|
}
|
|
353
353
|
// eslint-disable-next-line no-undef
|
|
354
|
-
return Promise.resolve(response.data);
|
|
354
|
+
return Promise.resolve(JSON.parse(JSON.stringify(response.data)));
|
|
355
355
|
}
|
|
356
356
|
}, function (error) {
|
|
357
357
|
loading && loading.close();
|
package/lib/dialog.js
CHANGED
|
@@ -350,7 +350,7 @@ var ajax = function ajax(_ref) {
|
|
|
350
350
|
}, 1000);
|
|
351
351
|
}
|
|
352
352
|
// eslint-disable-next-line no-undef
|
|
353
|
-
return Promise.resolve(response.data);
|
|
353
|
+
return Promise.resolve(JSON.parse(JSON.stringify(response.data)));
|
|
354
354
|
}
|
|
355
355
|
}, function (error) {
|
|
356
356
|
loading && loading.close();
|