resolver-egretimp-plus 0.1.9 → 0.1.11

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.9",
3
+ "version": "0.1.11",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -190,7 +190,7 @@ export default class UdcSdkForIfame {
190
190
  };
191
191
  /** 获取客户定制API */
192
192
  getCustomApi = () => {
193
- const _tenant = currentSDK.baseInfo.tenant;
193
+ const _tenant = currentSDK.baseInfo.tenant || 'CMI';
194
194
  const _tenantApi = this._customization[_tenant];
195
195
  if (!_tenantApi) {
196
196
  console.error(!_tenant ? "缺少tenant信息" : "该tenant未定制过API");
@@ -99,6 +99,7 @@ export function useToolTip({
99
99
  })
100
100
  function generateTooltipWrap(node, opt) {
101
101
  const {
102
+ wrapAttrs = {},
102
103
  maintain = false,
103
104
  } = opt || {}
104
105
  const nodeComp = defineComponent(node)
@@ -106,7 +107,7 @@ export function useToolTip({
106
107
  return <nodeComp></nodeComp>
107
108
  }
108
109
  return (
109
- <div class="resolver-calc-contrainer custom-error-tip-block">
110
+ <div class="resolver-calc-contrainer" {...wrapAttrs}>
110
111
  <span ref={(e) => calcSpanRef.value = e} class="resolver-calc-span">{ displayValue.value }</span>
111
112
  {
112
113
  isOverflow.value ?
@@ -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 { isPromise, parseExtendAttr, unionWith } from "../../utils/index"
5
+ import { isPromise, modelValueDeepMerge, parseExtendAttr, unionWith } from "../../utils/index"
6
6
  import { buildInRequest } from "../../utils/request"
7
7
 
8
8
  function getPathVal(obj = {}, path) {
@@ -119,10 +119,8 @@ export async function dispatchClickEvent(service, {
119
119
  reqResult = {
120
120
  }
121
121
  }
122
- reqResult = {
123
- ...reqResult,
124
- ...reqData
125
- }
122
+ const mergeObj = modelValueDeepMerge(reqResult, reqData)
123
+ reqResult = mergeObj
126
124
 
127
125
  let beforeRequestServiceRet = true
128
126
  if (normalBeforeRequestService) {
@@ -173,12 +173,18 @@ export default {
173
173
  }
174
174
  return ret
175
175
  })
176
-
176
+ const inputWrapAttrs = computed(() => {
177
+ return {
178
+ class: attrs?.class,
179
+ style: attrs?.style
180
+ }
181
+ })
177
182
  const normalAttrs = computed(() => {
178
183
  const ret = {
179
184
  ...attrs
180
185
  }
181
186
  delete ret.class
187
+ delete ret.style
182
188
 
183
189
  if (isPagePopupAndSearch.value && isOnlyIconClickFlag.value) {
184
190
  delete ret.onClick
@@ -293,7 +299,10 @@ export default {
293
299
  {
294
300
  getInputSolts()
295
301
  }
296
- </ElInput>
302
+ </ElInput>,
303
+ {
304
+ wrapAttrs: inputWrapAttrs.value
305
+ }
297
306
  )
298
307
  }
299
308
  }
@@ -1,4 +1,4 @@
1
- .error-tip-block,.custom-error-tip-block {
1
+ .error-tip-block {
2
2
  & + .el-form-item__error {
3
3
  position: relative;
4
4
  }
@@ -1053,9 +1053,6 @@ export function getComponentSolt({
1053
1053
  slotKey = 'slots'
1054
1054
  }) {
1055
1055
  const slots = config?.[slotKey]
1056
- if (config.metaType === 'ElButton') {
1057
- // debugger
1058
- }
1059
1056
  if (slots) {
1060
1057
  let retSlots = null
1061
1058
  try {