@zscreate/form-component 1.1.237 → 1.1.239

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,19 @@ 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 */ hexToRgb: () => (/* binding */ hexToRgb),
124490
+ /* harmony export */ isEmpty: () => (/* binding */ isEmpty),
124491
+ /* harmony export */ rgbToHex: () => (/* binding */ rgbToHex),
124492
+ /* harmony export */ toAwait: () => (/* binding */ toAwait)
124489
124493
  /* harmony export */ });
124494
+ /* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1313);
124495
+ /* 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__);
124496
+
124490
124497
  /**
124491
124498
  * 过滤对象中为空的属性
124492
124499
  * @param obj
@@ -124536,6 +124543,57 @@ function getQueryParam(name, url = window.location.href) {
124536
124543
  if (!results[2]) return '';
124537
124544
  return decodeURIComponent(results[2].replace(/\+/g, " "));
124538
124545
  }
124546
+ function getImageSize(url) {
124547
+ return new Promise(function (resolve, reject) {
124548
+ let image = new Image();
124549
+ image.onload = function () {
124550
+ resolve({
124551
+ width: image.width,
124552
+ height: image.height
124553
+ });
124554
+ };
124555
+ image.onerror = function () {
124556
+ reject(new Error('error'));
124557
+ };
124558
+ image.src = url;
124559
+ });
124560
+ }
124561
+ /**
124562
+ * 将颜色值rgb格式转换为HEX的格式
124563
+ * @param {rgb} rgb 需要转换的rgb字符串
124564
+ * @return {string} ;
124565
+ */
124566
+ function rgbToHex(rgb) {
124567
+ let arr = rgb.replace("rgb", "").replace("(", "").replace(")", "").split(",");
124568
+ // 转十六进制
124569
+ let h = parseInt(arr[0]).toString(16);
124570
+ let e = parseInt(arr[1]).toString(16);
124571
+ let x = parseInt(arr[2]).toString(16);
124572
+ return "#" + h + e + x;
124573
+ }
124574
+
124575
+ /**
124576
+ * 将颜色值HEX格式转换为rgb的格式
124577
+ * @param {hex} hex 需要转换的rgb字符串
124578
+ * @return {string} ;
124579
+ */
124580
+ function hexToRgb(hex, transparent) {
124581
+ let str = hex.replace("#", "");
124582
+ if (str.length % 3) {
124583
+ return "hex格式不正确!";
124584
+ }
124585
+ //获取截取的字符长度
124586
+ let count = str.length / 3;
124587
+ //根据字符串的长度判断是否需要 进行幂次方
124588
+ let power = 6 / str.length;
124589
+ let r = parseInt("0x" + str.substring(0 * count, 1 * count)) ** power;
124590
+ let g = parseInt("0x" + str.substring(1 * count, 2 * count)) ** power;
124591
+ let b = parseInt("0x" + str.substring(2 * count)) ** power;
124592
+ if (transparent !== undefined) {
124593
+ return `rgba(${r}, ${g}, ${b}, ${transparent})`;
124594
+ }
124595
+ return `rgb(${r}, ${g}, ${b})`;
124596
+ }
124539
124597
 
124540
124598
  /***/ }),
124541
124599
 
@@ -140700,7 +140758,7 @@ var util = __webpack_require__(4948);
140700
140758
  }
140701
140759
  // type = 2 授权后跳转回来
140702
140760
  if (state == 1) {
140703
- const [err1, res1 = {}] = await (0,util/* toAwait */.WP)((0,manage/* getAction */.s7)('/sys/common/getUnionIdByCode', {
140761
+ const [err1, res1 = {}] = await (0,util.toAwait)((0,manage/* getAction */.s7)('/sys/common/getUnionIdByCode', {
140704
140762
  code
140705
140763
  }));
140706
140764
  if (err1 || !res1.success || !res1.result) {
@@ -140712,7 +140770,7 @@ var util = __webpack_require__(4948);
140712
140770
  } = res1.result || {};
140713
140771
  // alert('1: ' + unionId)
140714
140772
  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', {
140773
+ const [err, res = {}] = await (0,util.toAwait)((0,manage/* getAction */.s7)('/sys/user/getUserPublicOpenIdByUnionId', {
140716
140774
  unionId
140717
140775
  }));
140718
140776
  if (err || !res.success || !res.result) {
@@ -147325,7 +147383,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
147325
147383
  /***/ ((module) => {
147326
147384
 
147327
147385
  "use strict";
147328
- module.exports = {"i8":"1.1.237"};
147386
+ module.exports = {"i8":"1.1.239"};
147329
147387
 
147330
147388
  /***/ })
147331
147389
 
@@ -158267,7 +158325,7 @@ function useSsoStatus(options) {
158267
158325
  }
158268
158326
 
158269
158327
  if (resUrl.includes(serviceUrl)) {
158270
- const ticket = (0,utils_util/* getQueryParam */.Ph)('ticket', res.request.responseURL);
158328
+ const ticket = (0,utils_util.getQueryParam)('ticket', res.request.responseURL);
158271
158329
  return refreshTicket(ticket); // 重新获取用户信息
158272
158330
  }
158273
158331
 
@@ -158374,7 +158432,7 @@ function useSsoStatusV2(options) {
158374
158432
  debugger;
158375
158433
  const document = iframe.contentWindow.document;
158376
158434
  console.log("iframe onload", iframe.contentWindow, iframe);
158377
- const ticket = (0,utils_util/* getQueryParam */.Ph)('ticket', iframe.contentWindow.location.href);
158435
+ const ticket = (0,utils_util.getQueryParam)('ticket', iframe.contentWindow.location.href);
158378
158436
  return refreshTicket(ticket); // 重新获取用户信息
158379
158437
  } catch (e) {
158380
158438
  return logout(); // 退出登录
@@ -160277,6 +160335,7 @@ console.log("version:", version);
160277
160335
 
160278
160336
 
160279
160337
 
160338
+
160280
160339
  const main_components = [layoutForPaper["default"], Container, layoutItem["default"], FilePreview/* default */.Z, warpFormulaEdit];
160281
160340
  const main_install = function (Vue, opts = {}, router = undefined) {
160282
160341
  window.addEventListener("load", () => {
@@ -160288,6 +160347,7 @@ const main_install = function (Vue, opts = {}, router = undefined) {
160288
160347
  });
160289
160348
  opts.common_encrypt = encryption;
160290
160349
  Vue.prototype = Object.assign(Vue.prototype, opts);
160350
+ Vue.prototype.$formUtils = utils_util;
160291
160351
  (external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype = Object.assign((external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype, opts);
160292
160352
  main_components.forEach(component => {
160293
160353
  Vue.component(component.name, component);
@@ -160312,7 +160372,8 @@ if (typeof window !== 'undefined' && window.Vue) {
160312
160372
  MessageBox: components_MessageBox,
160313
160373
  useSsoStatus: useSsoStatus,
160314
160374
  useSsoStatusV2: useSsoStatusV2,
160315
- encrypt: encryption
160375
+ encrypt: encryption,
160376
+ $formUtils: utils_util
160316
160377
  });
160317
160378
  ;// CONCATENATED MODULE: ./node_modules/_@vue_cli-service@5.0.8@@vue/cli-service/lib/commands/build/entry-lib.js
160318
160379
 
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.239",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "main": "dist/form-component.umd.js",