resolver-egretimp-plus 0.0.110 → 0.0.111

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.110",
3
+ "version": "0.0.111",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -1,5 +1,5 @@
1
1
  import { computed, defineAsyncComponent, getCurrentInstance, inject, onBeforeMount, provide, ref } from 'vue'
2
- import { commonPropsType, definePrivatelyProp, getComponentPropsKeys, hasOwn } from './utils/index.js'
2
+ import { commonPropsType, definePrivatelyProp, EXECTE_CLICK_EVENT_COMPONENTS, findComponent, getComponentPropsKeys, hasOwn } from './utils/index.js'
3
3
  import { useVmodels } from './hooks/index.js'
4
4
  import { getRenderComponentProps, generateFormItemPolyfill } from './utils/index.js'
5
5
  import rulesDriver from './rules/rulesDriver'
@@ -187,7 +187,6 @@ export default {
187
187
  const lang = inject('lang')
188
188
  const rootValue = inject('rootValue')
189
189
  const onClick = (e, { beforeRequestService, afterRequestService } = {}) => {
190
- e?.stopPropagation?.()
191
190
  const context = {
192
191
  props,
193
192
  dynamicMapComp,
@@ -201,7 +200,9 @@ export default {
201
200
  appContext
202
201
  }
203
202
  attrs?.onClick?.call(context, e) // 如果配置中有点击事件
204
- executeClickEvents({ beforeRequestService, afterRequestService })
203
+ if (findComponent(EXECTE_CLICK_EVENT_COMPONENTS, props.config?.renderby || props.config?.metaType) !== -1 ) {
204
+ executeClickEvents({ beforeRequestService, afterRequestService })
205
+ }
205
206
  }
206
207
  function executeClickEvents({ beforeRequestService, afterRequestService } = {}) {
207
208
  executeEventOrchestration({
@@ -226,8 +226,8 @@ export default {
226
226
  }, (length) => {
227
227
  let list = []
228
228
  if (length) {
229
- const newVal = tableData?.value
230
- list = newVal.map((row, idx) => {
229
+ const newVal = tableData.value
230
+ list = newVal?.map?.((row, idx) => {
231
231
  const columnsCgs = rowColumnConfgsMap.get(row)
232
232
  if (columnsCgs) {
233
233
  columnsCgs.forEach(config => {
@@ -16,7 +16,8 @@ const appContext = getCurrentInstance()?.appContext
16
16
 
17
17
  const props = defineProps({
18
18
  ...commonPropsType,
19
- ...ElButton.props
19
+ ...ElButton.props,
20
+ plain: [String, Boolean]
20
21
  })
21
22
  const calcPorps = computed(() => {
22
23
  const ret = {
@@ -16,7 +16,8 @@ import { commonPropsType } from '../../utils/index.js'
16
16
  const modelValue = defineModel()
17
17
  const props = defineProps({
18
18
  ...ElSelect.props,
19
- ...commonPropsType
19
+ ...commonPropsType,
20
+ multiple: [String, Boolean]
20
21
  })
21
22
  const attrs = useAttrs()
22
23
 
@@ -35,6 +35,7 @@ export const NOT_NEED_FORM_ITEM_META_TYPE = [
35
35
  'cmi-dropdown-menu',
36
36
  'cmi-divider'
37
37
  ]
38
+ export const EXECTE_CLICK_EVENT_COMPONENTS = ['ElInput', 'ElButton', 'CmiInput', 'CmiButton']
38
39
  export const TRANS_CELL_COMPONETS = ['CmiInput', 'CmiSelect']
39
40
  export const NOT_NEED_COL_ITEM_META_TYPE = ['CustomComponentTabPane', 'CustomComponentDialog', 'CustomComponentCol', 'CustomComponentTabPaneH5']
40
41
  export const MULTI_PAGE_META_LIST_TYPES = ['CustomComponentTable']