resolver-egretimp-plus 0.0.163 → 0.0.164

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.0.163",
3
+ "version": "0.0.164",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -543,6 +543,8 @@ function closePage(lcpPageClosedMapVO) {
543
543
  }
544
544
 
545
545
  export async function executeEventOrchestration({
546
+ beforeDataValidRequestService,
547
+ afterDataValidRequestService,
546
548
  beforeRequestService,
547
549
  afterRequestService,
548
550
  beforeOpenDialog,
@@ -601,24 +603,51 @@ export async function executeEventOrchestration({
601
603
  }
602
604
  }
603
605
  if (lcpPageRuleVOLis?.length) {
604
- // 数据校验服务
605
- const validConfig = lcpPageRuleVOLis[0]
606
- const valid = await executeDataValid(validConfig, {
607
- dynamicMapComp,
608
- requestTraceId,
609
- rootValue,
610
- axiosInstance,
611
- mixinServiceConfig,
612
- compConfig: props.config,
613
- confirmInstance,
614
- builtPolyfillReq,
615
- beforeRequestService: normalBeforeRequestService,
616
- afterRequestService: normalAfterRequestService,
617
- lang
618
- })
619
- if (!valid) {
620
- return
606
+ let normalBeforeDataValidRequestService
607
+ let normalAfterDataValidRequestService
608
+ const configBeforeDataValidRequestService = props.config?.beforeDataValidRequestService
609
+ if (configBeforeDataValidRequestService || beforeDataValidRequestService) {
610
+ normalBeforeDataValidRequestService = async (...arg) => {
611
+ let beforeRequestServiceRet = true
612
+ if (beforeDataValidRequestService) {
613
+ beforeRequestServiceRet = beforeDataValidRequestService?.(...arg)
614
+ }
615
+ const beforeRequestServiceRetValid = await beforeRequestServiceRet
616
+ if (beforeRequestServiceRetValid === false) {
617
+ return false
618
+ }
619
+ if (configBeforeDataValidRequestService) {
620
+ return configBeforeDataValidRequestService?.(...arg)
621
+ } else {
622
+ return true
623
+ }
621
624
  }
625
+ }
626
+ const configAfterDataValidRequestService = props.config?.afterDataValidRequestService
627
+ if (configAfterDataValidRequestService || afterDataValidRequestService) {
628
+ normalAfterDataValidRequestService = (...arg) => {
629
+ afterDataValidRequestService?.(...arg)
630
+ configAfterDataValidRequestService?.(...arg)
631
+ }
632
+ }
633
+ // 数据校验服务
634
+ const validConfig = lcpPageRuleVOLis[0]
635
+ const valid = await executeDataValid(validConfig, {
636
+ dynamicMapComp,
637
+ requestTraceId,
638
+ rootValue,
639
+ axiosInstance,
640
+ mixinServiceConfig,
641
+ compConfig: props.config,
642
+ confirmInstance,
643
+ builtPolyfillReq,
644
+ beforeRequestService: normalBeforeDataValidRequestService,
645
+ afterRequestService: normalAfterDataValidRequestService,
646
+ lang
647
+ })
648
+ if (!valid) {
649
+ return
650
+ }
622
651
  }
623
652
 
624
653
  if (PageServiceMapVOList?.length) {
@@ -79,6 +79,11 @@ const tableEvents = computed(() => {
79
79
  if (attrs.onRowclick) {
80
80
  attrs.onRowclick?.(e)
81
81
  }
82
+ },
83
+ onTogglelandscape: (e) => {
84
+ if (attrs.onTogglelandscape) {
85
+ attrs.onTogglelandscape?.(e)
86
+ }
82
87
  }
83
88
  }
84
89
  return ret
@@ -213,7 +218,7 @@ function normalTableRowValue(row) {
213
218
  }
214
219
  </script>
215
220
  <template>
216
- <cmi-table ref="tableRef" :key="tableKey" v-bind="tableProps" @rowclick="tableEvents.onRowclick">
221
+ <cmi-table ref="tableRef" :key="tableKey" v-bind="tableProps" @rowclick="tableEvents.onRowclick" @togglelandscape="tableEvents.onTogglelandscape">
217
222
  <cmi-table-column
218
223
  v-for="column in pmPageMetaList" :key="column.metaCode"
219
224
  v-bind="{