resolver-egretimp-plus 0.0.121 → 0.0.123
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/dist/h5/index.js +2 -2
- package/dist/web/index.js +2 -2
- package/package.json +1 -1
- package/src/components/helper/eventOrchestration.js +12 -16
- package/src/components/packages-web/CustomComponentTable.jsx +7 -0
- package/src/components/styles/CustomComponenTable.scss +2 -2
- package/src/enums/index.js +3 -2
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isArray, isHasVal } from "../../utils/is"
|
|
1
|
+
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"
|
|
@@ -51,8 +51,12 @@ export async function dispatchClickEvent(service, { dynamicMapComp, requestTrace
|
|
|
51
51
|
reqData = getReqData(service.inParamMappingList || [], {dynamicMapComp, dynamicMapCompKeys, dynamicHireRelat})
|
|
52
52
|
tableConfig = getTableConfig(service.outParamMappingList, { dynamicMapComp, dynamicMapCompKeys, dynamicHireRelat })
|
|
53
53
|
if (tableConfig?.vm) {
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
if (!isUndefined(tableConfig.vm.page?.pageNum) && !isNull(tableConfig.vm.page?.pageNum) ) {
|
|
55
|
+
assignmentPathVal(reqData, service.pageNum || 'pageNum', tableConfig.vm.page?.pageNum)
|
|
56
|
+
}
|
|
57
|
+
if (!isUndefined(tableConfig.vm.page?.pageSize) && !isNull(tableConfig.vm.page?.pageSize) ) {
|
|
58
|
+
assignmentPathVal(reqData, service.pageSize || 'pageSize', tableConfig.vm.page?.pageSize)
|
|
59
|
+
}
|
|
56
60
|
}
|
|
57
61
|
reqData = {
|
|
58
62
|
...reqData,
|
|
@@ -123,21 +127,13 @@ function getReqData(inParamMappingList = [], {dynamicMapComp, dynamicMapCompKeys
|
|
|
123
127
|
console.error('search arg muti', params, configCodes)
|
|
124
128
|
}
|
|
125
129
|
const configCode = configCodes[0]
|
|
126
|
-
if (
|
|
130
|
+
if (
|
|
131
|
+
configCode &&
|
|
132
|
+
!isUndefined(dynamicMapComp[configCode]?.refValue) &&
|
|
133
|
+
!isNull(dynamicMapComp[configCode]?.refValue)
|
|
134
|
+
) {
|
|
127
135
|
const destParamArr = destParam?.split('.') || []
|
|
128
136
|
assignmentPathVal(ret, destParamArr, dynamicMapComp[configCode]?.refValue)
|
|
129
|
-
|
|
130
|
-
// let currentObj = ret
|
|
131
|
-
// destParamArr.forEach((item, idx) => {
|
|
132
|
-
// if (idx + 1 === destParamArr.length) {
|
|
133
|
-
// currentObj[item] = dynamicMapComp[configCode]?.refValue
|
|
134
|
-
// } else {
|
|
135
|
-
// if (!currentObj[item]) {
|
|
136
|
-
// currentObj[item] = {}
|
|
137
|
-
// }
|
|
138
|
-
// currentObj = currentObj[item]
|
|
139
|
-
// }
|
|
140
|
-
// })
|
|
141
137
|
}
|
|
142
138
|
return ret
|
|
143
139
|
}, {})
|
|
@@ -133,6 +133,10 @@ export default {
|
|
|
133
133
|
// 获取表格列的属性配置
|
|
134
134
|
const getTableColumnProps = (config, idx) => {
|
|
135
135
|
const nextList = tableColumnConfigs.value.slice(idx + 1)
|
|
136
|
+
// 当前config表格列是最后一个显示列,并且后面有hidden的列
|
|
137
|
+
const isEndConfig = !nextList?.filter(config => {
|
|
138
|
+
return config.displayType != DISPLAY_HIDDEN && !(config.width == 0 || config.width == '0px' || config.hidden == '1')
|
|
139
|
+
})?.length
|
|
136
140
|
const nextConfig = nextList.find(config => config.displayType != DISPLAY_HIDDEN)
|
|
137
141
|
const props = Object.keys(ElTableColumn.props).reduce((ret, key) => {
|
|
138
142
|
if (hasOwn(config, key)) {
|
|
@@ -153,6 +157,9 @@ export default {
|
|
|
153
157
|
if (nextConfig && (nextConfig.width == 0 || nextConfig.width == '0px' || nextConfig.hidden == '1')) {
|
|
154
158
|
props.className = `${props.className || ''} next-hidden-column`
|
|
155
159
|
}
|
|
160
|
+
if (isEndConfig) {
|
|
161
|
+
props.className = `${props.className || ''} end-show-column`
|
|
162
|
+
}
|
|
156
163
|
if (
|
|
157
164
|
isPlainColumn({...config, isColumn: true}, calcDisable(config, props.mode)) &&
|
|
158
165
|
config.showOverflowTooltip !== false &&
|
package/src/enums/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GET_SYS_PARAM_CACHE, LCP_LOGIN, QUERY_PAGE_CONFIG_DATA } from "../api/builtIn"
|
|
1
|
+
import { DATA_VALID_RULE_EXECUTE, GET_SYS_PARAM_CACHE, LCP_LOGIN, QUERY_PAGE_CONFIG_DATA } from "../api/builtIn"
|
|
2
2
|
|
|
3
3
|
export const USER_NAME = 'lcpsupport'
|
|
4
4
|
export const PASSWORD = '8ik,*IK<'
|
|
@@ -8,5 +8,6 @@ export const AUTH_CODE = '9887'
|
|
|
8
8
|
export const NOT_AUTH_APIS = [
|
|
9
9
|
LCP_LOGIN,
|
|
10
10
|
GET_SYS_PARAM_CACHE,
|
|
11
|
-
QUERY_PAGE_CONFIG_DATA
|
|
11
|
+
QUERY_PAGE_CONFIG_DATA,
|
|
12
|
+
DATA_VALID_RULE_EXECUTE
|
|
12
13
|
]
|