@zscreate/form-component 1.1.237 → 1.1.238

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.
@@ -79023,7 +79023,7 @@ const JeecgListMixin = {
79023
79023
  param.field = this.getQueryField();
79024
79024
  param.pageNo = this.ipagination.current;
79025
79025
  param.pageSize = this.ipagination.pageSize;
79026
- return (0,util/* filterObj */.G_)(param);
79026
+ return (0,util.filterObj)(param);
79027
79027
  },
79028
79028
  getQueryField() {
79029
79029
  //TODO 字段权限控制
@@ -87528,7 +87528,7 @@ const Verify_componentvue_type_script_lang_js_layoutItem = () => Promise.resolve
87528
87528
  layoutItem: Verify_componentvue_type_script_lang_js_layoutItem
87529
87529
  },
87530
87530
  async created() {
87531
- const [err, res] = await (0,util/* toAwait */.WP)((0,manage/* getAction */.s7)('sys/dict/getDictItems/reviewComments'));
87531
+ const [err, res] = await (0,util.toAwait)((0,manage/* getAction */.s7)('sys/dict/getDictItems/reviewComments'));
87532
87532
  if (err || !res.success) {
87533
87533
  this.$message.error(res.message);
87534
87534
  return;
@@ -87696,7 +87696,7 @@ const Verify_componentvue_type_script_lang_js_layoutItem = () => Promise.resolve
87696
87696
  async handleSeal(dataType) {
87697
87697
  console.log(this.widget.options.platform);
87698
87698
  if (this.widget.options.platform) {
87699
- const [err, res] = await (0,util/* toAwait */.WP)((0,manage/* postAction */.SI)("/form/qiyuesuo/getSignUrl", {
87699
+ const [err, res] = await (0,util.toAwait)((0,manage/* postAction */.SI)("/form/qiyuesuo/getSignUrl", {
87700
87700
  content: 'content',
87701
87701
  dataType
87702
87702
  }));
@@ -93160,7 +93160,7 @@ function getBase64(file) {
93160
93160
  uploadEncrypt
93161
93161
  } = this.widget.options;
93162
93162
  if (uploadEncrypt && !downloadVerifyToken) {
93163
- const [err, res] = await (0,util/* toAwait */.WP)((0,manage/* getAction */.s7)('/sys/user/getUserPublicOpenId'));
93163
+ const [err, res] = await (0,util.toAwait)((0,manage/* getAction */.s7)('/sys/user/getUserPublicOpenId'));
93164
93164
  this.openId = await (0,aesEncrypt/* encryption */.yc)(res.result);
93165
93165
  if (this.openId) {
93166
93166
  this.openId = this.openId.replaceAll("+", "%2B").replaceAll("=", "%3D");
@@ -109127,7 +109127,7 @@ function componentvue_type_script_lang_js_getBase64(file) {
109127
109127
  if (!file.url && !file.fileId) return;
109128
109128
  if (this.widget.options.uploadEncrypt) {
109129
109129
  const fileId = file.fileId;
109130
- const [err, res = {}] = await (0,util/* toAwait */.WP)((0,manage/* getAction */.s7)('/sys/common/checkDownloadZip', {
109130
+ const [err, res = {}] = await (0,util.toAwait)((0,manage/* getAction */.s7)('/sys/common/checkDownloadZip', {
109131
109131
  fileId
109132
109132
  }));
109133
109133
  if (err || !res.success) return this.$message.error(res.message || '文件检查状态失败');
@@ -117857,7 +117857,7 @@ var TextArea_component = (0,componentNormalizer/* default */.Z)(
117857
117857
  },
117858
117858
  async created() {
117859
117859
  if (this.widget.options.isAuditing == '1') {
117860
- const [err, res] = await (0,util/* toAwait */.WP)((0,manage/* getAction */.s7)('sys/dict/getDictItems/reviewComments'));
117860
+ const [err, res] = await (0,util.toAwait)((0,manage/* getAction */.s7)('sys/dict/getDictItems/reviewComments'));
117861
117861
  if (err || !res.success) {
117862
117862
  this.$message.error(res.message);
117863
117863
  return;
@@ -117897,7 +117897,7 @@ var TextArea_component = (0,componentNormalizer/* default */.Z)(
117897
117897
  verifyLogsList() {
117898
117898
  // 不支持多人审核的不显示历史审核信息
117899
117899
  if (!this.widget.options || !this.widget.options.supportMulti) return [];
117900
- if ((0,util/* isEmpty */.xb)(this.verifyLogs)) return [];
117900
+ if ((0,util.isEmpty)(this.verifyLogs)) return [];
117901
117901
  const list = this.verifyLogs[this.widget.model];
117902
117902
  if (this.widget.model !== this.verifyNode && list.length >= 1) return list.slice(0, list.length - 1);
117903
117903
  return list;
@@ -124481,12 +124481,17 @@ function encry_http_v1(config) {
124481
124481
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
124482
124482
 
124483
124483
  "use strict";
124484
+ __webpack_require__.r(__webpack_exports__);
124484
124485
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
124485
- /* harmony export */ G_: () => (/* binding */ filterObj),
124486
- /* harmony export */ Ph: () => (/* binding */ getQueryParam),
124487
- /* harmony export */ WP: () => (/* binding */ toAwait),
124488
- /* harmony export */ xb: () => (/* binding */ isEmpty)
124486
+ /* harmony export */ filterObj: () => (/* binding */ filterObj),
124487
+ /* harmony export */ getImageSize: () => (/* binding */ getImageSize),
124488
+ /* harmony export */ getQueryParam: () => (/* binding */ getQueryParam),
124489
+ /* harmony export */ isEmpty: () => (/* binding */ isEmpty),
124490
+ /* harmony export */ toAwait: () => (/* binding */ toAwait)
124489
124491
  /* harmony export */ });
124492
+ /* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1313);
124493
+ /* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0__);
124494
+
124490
124495
  /**
124491
124496
  * 过滤对象中为空的属性
124492
124497
  * @param obj
@@ -124536,6 +124541,21 @@ function getQueryParam(name, url = window.location.href) {
124536
124541
  if (!results[2]) return '';
124537
124542
  return decodeURIComponent(results[2].replace(/\+/g, " "));
124538
124543
  }
124544
+ function getImageSize(url) {
124545
+ return new Promise(function (resolve, reject) {
124546
+ let image = new Image();
124547
+ image.onload = function () {
124548
+ resolve({
124549
+ width: image.width,
124550
+ height: image.height
124551
+ });
124552
+ };
124553
+ image.onerror = function () {
124554
+ reject(new Error('error'));
124555
+ };
124556
+ image.src = url;
124557
+ });
124558
+ }
124539
124559
 
124540
124560
  /***/ }),
124541
124561
 
@@ -140700,7 +140720,7 @@ var util = __webpack_require__(4948);
140700
140720
  }
140701
140721
  // type = 2 授权后跳转回来
140702
140722
  if (state == 1) {
140703
- const [err1, res1 = {}] = await (0,util/* toAwait */.WP)((0,manage/* getAction */.s7)('/sys/common/getUnionIdByCode', {
140723
+ const [err1, res1 = {}] = await (0,util.toAwait)((0,manage/* getAction */.s7)('/sys/common/getUnionIdByCode', {
140704
140724
  code
140705
140725
  }));
140706
140726
  if (err1 || !res1.success || !res1.result) {
@@ -140712,7 +140732,7 @@ var util = __webpack_require__(4948);
140712
140732
  } = res1.result || {};
140713
140733
  // alert('1: ' + unionId)
140714
140734
  if (!unionId) return this.$message.error(res1.message || '获取unionId失败');
140715
- const [err, res = {}] = await (0,util/* toAwait */.WP)((0,manage/* getAction */.s7)('/sys/user/getUserPublicOpenIdByUnionId', {
140735
+ const [err, res = {}] = await (0,util.toAwait)((0,manage/* getAction */.s7)('/sys/user/getUserPublicOpenIdByUnionId', {
140716
140736
  unionId
140717
140737
  }));
140718
140738
  if (err || !res.success || !res.result) {
@@ -147325,7 +147345,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
147325
147345
  /***/ ((module) => {
147326
147346
 
147327
147347
  "use strict";
147328
- module.exports = {"i8":"1.1.237"};
147348
+ module.exports = {"i8":"1.1.238"};
147329
147349
 
147330
147350
  /***/ })
147331
147351
 
@@ -158267,7 +158287,7 @@ function useSsoStatus(options) {
158267
158287
  }
158268
158288
 
158269
158289
  if (resUrl.includes(serviceUrl)) {
158270
- const ticket = (0,utils_util/* getQueryParam */.Ph)('ticket', res.request.responseURL);
158290
+ const ticket = (0,utils_util.getQueryParam)('ticket', res.request.responseURL);
158271
158291
  return refreshTicket(ticket); // 重新获取用户信息
158272
158292
  }
158273
158293
 
@@ -158374,7 +158394,7 @@ function useSsoStatusV2(options) {
158374
158394
  debugger;
158375
158395
  const document = iframe.contentWindow.document;
158376
158396
  console.log("iframe onload", iframe.contentWindow, iframe);
158377
- const ticket = (0,utils_util/* getQueryParam */.Ph)('ticket', iframe.contentWindow.location.href);
158397
+ const ticket = (0,utils_util.getQueryParam)('ticket', iframe.contentWindow.location.href);
158378
158398
  return refreshTicket(ticket); // 重新获取用户信息
158379
158399
  } catch (e) {
158380
158400
  return logout(); // 退出登录
@@ -160277,6 +160297,7 @@ console.log("version:", version);
160277
160297
 
160278
160298
 
160279
160299
 
160300
+
160280
160301
  const main_components = [layoutForPaper["default"], Container, layoutItem["default"], FilePreview/* default */.Z, warpFormulaEdit];
160281
160302
  const main_install = function (Vue, opts = {}, router = undefined) {
160282
160303
  window.addEventListener("load", () => {
@@ -160288,6 +160309,7 @@ const main_install = function (Vue, opts = {}, router = undefined) {
160288
160309
  });
160289
160310
  opts.common_encrypt = encryption;
160290
160311
  Vue.prototype = Object.assign(Vue.prototype, opts);
160312
+ Vue.prototype.$formUtils = utils_util;
160291
160313
  (external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype = Object.assign((external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype, opts);
160292
160314
  main_components.forEach(component => {
160293
160315
  Vue.component(component.name, component);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/form-component",
3
- "version": "1.1.237",
3
+ "version": "1.1.238",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "main": "dist/form-component.umd.js",