resolver-egretimp-plus 0.1.144 → 0.1.145

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resolver-egretimp-plus",
3
- "version": "0.1.144",
3
+ "version": "0.1.145",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -277,7 +277,7 @@ export default {
277
277
  definePrivatelyProp(props.config, '_formFields', [])
278
278
  }
279
279
  const originValidate = field.validate
280
- field.validate = function (...arg) {
280
+ field.validate = async function (...arg) {
281
281
  if (!assertNeedToValid()) {
282
282
  return
283
283
  }
@@ -324,13 +324,12 @@ export default {
324
324
  addField(field) {
325
325
  if (field.validate && isFunction(field.validate)) {
326
326
  const originValidate = field.validate
327
- field.validate = function (...arg) {
327
+ field.validate = async function (...arg) {
328
328
  if (!assertNeedToValid()) {
329
329
  return
330
330
  }
331
331
  const ret = originValidate.apply(this, arg)
332
332
  return ret?.then(ret => ret)?.catch(err => {
333
- debugger
334
333
  if (isPlainObject(err)) {
335
334
  Object.keys(err).forEach(key => {
336
335
  // 在自定义组件中form-item 校验失败之后,err 中绑定的 prop 属性手动替换成config 的dynamicHireRelat
@@ -2,7 +2,7 @@ import { isArray, isHasVal, isNull, isUndefined } from "../../utils/is"
2
2
  import { DATA_VALID_RULE_EXECUTE } from "../../api/builtIn"
3
3
  import { getRelateConfigKeys } from "../../rules/ruleUtils"
4
4
  import { RESULT_CODE, resultToast } from "../../utils/respone"
5
- import { assignmentPathVal, definePrivatelyProp, getPathVal, isPromise, modelValueDeepMerge, parseExtendAttr, unionWith } from "../../utils/index"
5
+ import { assignmentPathVal, cloneDeep, definePrivatelyProp, getPathVal, isPromise, modelValueDeepMerge, parseExtendAttr, unionWith } from "../../utils/index"
6
6
  import { buildInRequest } from "../../utils/request"
7
7
  import { bpmInstance } from "../../bpm/bpmInstance"
8
8
 
@@ -34,7 +34,7 @@ export async function dispatchClickEvent(service, {
34
34
  }
35
35
  // 把执行逻辑封装成一个方法
36
36
  async function toExecute(resetPageNum = true) {
37
- let reqData = rootValue || {}
37
+ let reqData = cloneDeep(rootValue || {})
38
38
  let tableConfig = null
39
39
  const serviceCustomProps = parseExtendAttr({extendAttr: service.extendAttr})
40
40
 
@@ -121,24 +121,17 @@
121
121
  margin-bottom: 16px;
122
122
  }
123
123
 
124
- // 选择第一个
125
- // :not(.CustomComponentCollapse.is-card) + .CustomComponentCollapse.is-card {
126
- // background: red;
127
- // }
128
- .CustomComponentCollapse.is-card:has(+ .CustomComponentCollapse.is-card) {
124
+ // 当卡片组件、被包裹的折叠组件、页签组件相邻排列时,给前面的组件添加 16px 底部间距
125
+ // 卡片组件后面紧跟被包裹的折叠组件、卡片组件或页签组件时
126
+ .CustomComponentCard.is-card:has(+ .CustomComponentCollapse.is-card, + .CustomComponentCard.is-card, + .CustomComponentTabs) {
129
127
  margin-bottom: 16px;
130
128
  }
131
-
132
- .CustomComponentCollapse.is-card:has(+ .CustomComponentCard.is-card) {
133
- margin-bottom: 16px;
134
- }
135
-
136
- .CustomComponentCard.is-card:has(+ .CustomComponentCollapse.is-card) {
129
+ // 被包裹的折叠组件后面紧跟同类组件、卡片组件或页签组件时
130
+ .CustomComponentCollapse.is-card:has(+ .CustomComponentCollapse.is-card, + .CustomComponentCard.is-card, + .CustomComponentTabs) {
137
131
  margin-bottom: 16px;
138
132
  }
139
-
140
-
141
- .CustomComponentCard.is-card:has(+ .CustomComponentCard.is-card) {
133
+ // 页签组件后面紧跟被包裹的折叠组件、卡片组件或页签组件时
134
+ .CustomComponentTabs:has(+ .CustomComponentCollapse.is-card, + .CustomComponentCard.is-card, + .CustomComponentTabs) {
142
135
  margin-bottom: 16px;
143
136
  }
144
137