resolver-egretimp-plus 0.0.73 → 0.0.75

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.73",
3
+ "version": "0.0.75",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -212,15 +212,15 @@ export default {
212
212
  }) // 生成formItem()的辅助函数
213
213
  return formItemPolyfill(
214
214
  <currentComponent.value
215
- ref={refFn}
216
- onVnodeMounted={onVnodeMounted}
217
- onVnodeUnmounted={onVnodeUnmounted}
218
- {...currentAttrs.value}
219
- onClick={(e) => {onClick(e);compPropsOnClick?.(e)}}
220
- {...componentProps.value}
221
- {...compProps}
222
- {...vModelObjs}
223
- ></currentComponent.value>
215
+ ref={refFn}
216
+ onVnodeMounted={onVnodeMounted}
217
+ onVnodeUnmounted={onVnodeUnmounted}
218
+ {...currentAttrs.value}
219
+ onClick={(e) => {onClick(e);compPropsOnClick?.(e)}}
220
+ {...componentProps.value}
221
+ {...compProps}
222
+ {...vModelObjs}
223
+ ></currentComponent.value>
224
224
  )
225
225
  }
226
226
  }
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <component :is="component" class="standard-wrap" v-bind="{...componentProps, ...attrs}">
2
+ <component :is="component" class="standard-wrap" v-bind="{...attrs, ...componentProps}">
3
3
  <ElCollapse v-bind="{...collapseProps}" :class="collapseClass" v-model="activeNames">
4
4
  <ElCollapseItem v-bind="collapseItemProps" >
5
5
  <template #title>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <ElDialog class="custom-component-dialog" v-bind="{...dialogProps, ...attrs}" :title="title" v-model="dialogValue">
2
+ <ElDialog class="custom-component-dialog" v-bind="{...attrs, ...dialogProps}" :title="title" v-model="dialogValue">
3
3
  <div class="header" v-if="!!title">
4
4
  <span>{{ title }}</span>
5
5
  </div>
@@ -26,6 +26,9 @@ import { computed, inject, useAttrs } from 'vue'
26
26
  import { commonPropsType, hasOwn } from '../../utils/index.js'
27
27
  import Renderer from '../../renderer.jsx'
28
28
 
29
+ defineOptions({
30
+ inheritAttrs: false,
31
+ })
29
32
  const lang = inject('lang')
30
33
  const modelValue = defineModel()
31
34
  const props = defineProps({
@@ -26,7 +26,7 @@
26
26
  import { ElInput, ElIcon, ElDialog } from 'element-plus'
27
27
  import { defineProps, defineOptions, defineModel, ref, watch, computed, inject, useAttrs } from 'vue'
28
28
  import { Search, Close } from '@element-plus/icons-vue'
29
- import { commonPropsType } from '../../utils/index.js'
29
+ import { commonPropsType, capitalize, camelize } from '../../utils/index.js'
30
30
 
31
31
  import { hasOwn } from '../../utils';
32
32
 
@@ -63,7 +63,7 @@ const getCompEvents = (comp) => {
63
63
  emitKeys = Object.keys(emitKeys)
64
64
  }
65
65
  return emitKeys.reduce((ret, key) => {
66
- const eventKey = capitalize(camelize(eventKey))
66
+ const eventKey = capitalize(camelize(key))
67
67
  if (hasOwn(attrs, eventKey)) {
68
68
  ret[eventKey] = attrs[eventKey]
69
69
  }
@@ -94,7 +94,7 @@ export default {
94
94
  const sortObj = ref(null)
95
95
  // "ascending", "descending", null
96
96
  const onSortChange = ({ prop, order }) => {
97
- tableEvents.value?.onSortChange?.(data)
97
+ tableEvents.value?.onSortChange?.({ prop, order })
98
98
 
99
99
  sortObj.value = null
100
100
  if (order) {
@@ -8,10 +8,9 @@ import { ElText } from 'element-plus'
8
8
  import { computed, defineProps, inject, getCurrentInstance, useAttrs } from 'vue'
9
9
  import { commonPropsType } from '../../utils/index.js'
10
10
  const appContext = getCurrentInstance()?.appContext
11
-
12
11
  const props = defineProps({
13
12
  ...commonPropsType,
14
- ...ElText.props
13
+ ...ElText.props,
15
14
  })
16
15
  const attrs = useAttrs()
17
16
 
@@ -299,7 +299,7 @@ function normalMetaType(metaType) {
299
299
 
300
300
  export function isPlainColumn(config, disabled) {
301
301
  // 表格中中的列,可以根据配置进行转换为普通形式,表格原生支持的tooltip
302
- if (findComponent(PLAIN_TYPE_ALONG_COLUMNS, config.renderby || config.metaType) !== -1) {
302
+ if (config.isColumn && findComponent(PLAIN_TYPE_ALONG_COLUMNS, config.renderby || config.metaType) !== -1) {
303
303
  return true
304
304
  }
305
305
  if (config.isColumn && disabled) {