resolver-egretimp-plus 0.0.75 → 0.0.77
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/analysisComponent.jsx +6 -0
- package/src/components/helper/eventOrchestration.js +12 -9
- package/src/components/packages-H5/CustomComponentTableH5.vue +4 -3
- package/src/components/packages-web/CustomComponentTable.jsx +10 -2
- package/src/index.jsx +4 -1
package/package.json
CHANGED
|
@@ -99,6 +99,9 @@ export default {
|
|
|
99
99
|
})
|
|
100
100
|
penddingRules[hireRelat] = null
|
|
101
101
|
}
|
|
102
|
+
if (props.config?.immediateClickEvent) {
|
|
103
|
+
executeClickEvents()
|
|
104
|
+
}
|
|
102
105
|
}
|
|
103
106
|
const onVnodeUnmounted = () => {
|
|
104
107
|
props.config.vmIsBind = false
|
|
@@ -183,6 +186,9 @@ export default {
|
|
|
183
186
|
appContext
|
|
184
187
|
}
|
|
185
188
|
attrs?.onClick?.call(context, e) // 如果配置中有点击事件
|
|
189
|
+
executeClickEvents()
|
|
190
|
+
}
|
|
191
|
+
function executeClickEvents() {
|
|
186
192
|
executeEventOrchestration({
|
|
187
193
|
props,
|
|
188
194
|
requestTraceId: requestTraceId?.value,
|
|
@@ -195,17 +195,20 @@ export function openDailg({
|
|
|
195
195
|
initPolyfillConfigs[pagePopupMap.outDisplayTrigger] = (config) => {
|
|
196
196
|
return {
|
|
197
197
|
onClick() {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
if (mapList[key]) {
|
|
204
|
-
retItem[key] = item[mapList[key]]
|
|
198
|
+
let outResult = rootStore.tableSelectedInfo
|
|
199
|
+
if (isList) {
|
|
200
|
+
outResult = rootStore.tableSelectedInfo?.map(item => {
|
|
201
|
+
const retItem = {
|
|
202
|
+
...item
|
|
205
203
|
}
|
|
204
|
+
Object.keys(mapList).forEach(key => {
|
|
205
|
+
if (mapList[key]) {
|
|
206
|
+
retItem[key] = item[mapList[key]]
|
|
207
|
+
}
|
|
208
|
+
})
|
|
209
|
+
return retItem
|
|
206
210
|
})
|
|
207
|
-
|
|
208
|
-
})
|
|
211
|
+
}
|
|
209
212
|
initOutParamData(outParamMappingList, {dynamicMapComp, dynamicMapCompKeys, dynamicHireRelat, outResult})
|
|
210
213
|
dialogClose?.()
|
|
211
214
|
}
|
|
@@ -12,8 +12,9 @@ const props = defineProps({
|
|
|
12
12
|
const tableData = ref([])
|
|
13
13
|
const modelValue = defineModel()
|
|
14
14
|
|
|
15
|
+
// 移动端默认前端分页
|
|
15
16
|
const isFrontPage = computed(() => {
|
|
16
|
-
return props.config?.frontPageFlag == '1'
|
|
17
|
+
return hasOwn(props.config, 'frontPageFlag') ? props.config?.frontPageFlag == '1' : true
|
|
17
18
|
})
|
|
18
19
|
const tableProps = computed(() => {
|
|
19
20
|
return {
|
|
@@ -123,7 +124,7 @@ watch(() => page.pageSize, (val) => {
|
|
|
123
124
|
})
|
|
124
125
|
|
|
125
126
|
const pmPageMetaList = computed(() => {
|
|
126
|
-
return (props.config.pmPageMetaList || [])
|
|
127
|
+
return (props.config.pmPageMetaList || []).filter(config => config.hidden != '1')
|
|
127
128
|
})
|
|
128
129
|
|
|
129
130
|
const getTableColumnProps = (config) => {
|
|
@@ -188,7 +189,7 @@ function normalTableRowValue(row) {
|
|
|
188
189
|
>
|
|
189
190
|
</cmi-table-column>
|
|
190
191
|
</cmi-table>
|
|
191
|
-
<div v-if="pageable" :style="{'justify-content': pageAlignEnmu[pageAlign || PAGE_RIGHT]}" style="margin-bottom: 12px;">
|
|
192
|
+
<div v-if="pageable && normalPageTotal > page.pageSize" :style="{'justify-content': pageAlignEnmu[pageAlign || PAGE_RIGHT]}" style="margin-bottom: 12px;">
|
|
192
193
|
<cmi-pagination
|
|
193
194
|
:key="normalPageTotal"
|
|
194
195
|
v-bind="{...paginationProps, ...pagenationEvents}"
|
|
@@ -107,7 +107,15 @@ export default {
|
|
|
107
107
|
}
|
|
108
108
|
const sortList = [sortObj.value]
|
|
109
109
|
const ret = sortList.reduce((ret, item) => {
|
|
110
|
-
ret = ret.sort((a, b) =>
|
|
110
|
+
ret = ret.sort((a, b) => {
|
|
111
|
+
if (a[item.prop] === '' || a[item.prop] === undefined || a[item.prop] === null) {
|
|
112
|
+
return item.order === 'descending' ? -1 : 1
|
|
113
|
+
}
|
|
114
|
+
if (b[item.prop] === '' || b[item.prop] === undefined || b[item.prop] === null) {
|
|
115
|
+
return item.order === 'descending' ? 1 : -1
|
|
116
|
+
}
|
|
117
|
+
return (a[item.prop] > b[item.prop] ? (item.order === 'descending' ? 1 : -1) : a[item.prop] === b[item.prop] ? 0 : (item.order === 'descending' ? -1 : 1))
|
|
118
|
+
})
|
|
111
119
|
return ret
|
|
112
120
|
}, [...(normalTableData.value || [])])
|
|
113
121
|
return ret
|
|
@@ -306,7 +314,7 @@ export default {
|
|
|
306
314
|
|
|
307
315
|
// 表格是否开启啦可选择配置
|
|
308
316
|
const selectable = computed(() => {
|
|
309
|
-
return props.config?.selectable
|
|
317
|
+
return props.config?.selectable == '1' || props.config?.canSelect
|
|
310
318
|
})
|
|
311
319
|
const selectedRow = ref(null)
|
|
312
320
|
const currentChange = (row) => {
|
package/src/index.jsx
CHANGED