resolver-egretimp-plus 0.1.53 → 0.1.55

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.1.53",
3
+ "version": "0.1.55",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -4,6 +4,7 @@ import { commonPropsType } from '../../utils/index.js'
4
4
 
5
5
  const pickerRef = ref(null)
6
6
  const selects = inject('selects')
7
+ const rootForm = inject('rootForm')
7
8
  const attrs = useAttrs()
8
9
  const lang = inject('lang')
9
10
  const modelValue = defineModel()
@@ -84,6 +85,8 @@ const onConfirm = (e) => {
84
85
  formatValue.value = val
85
86
 
86
87
  props.config?.onConfirm?.(formatValue.value)
88
+ // pick组件不主动出发formItem上面绑定的额自定义校验,这边就手动出发下
89
+ rootForm.value?.validateField?.(props.config?.dynamicHireRelat)
87
90
  open.value = false
88
91
  }
89
92
 
@@ -199,7 +199,10 @@ export default {
199
199
  ) {
200
200
  const showOverflowTooltipFn = (data) => {
201
201
  const currentConfig = multiPmPageMetaList.value?.[data.$index]?.[idx]
202
- return isPlainColumn({...currentConfig, isColumn: true}, calcDisable(currentConfig, indectModeRef.value))
202
+ if (currentConfig) {
203
+ return isPlainColumn({...currentConfig, isColumn: true}, calcDisable(currentConfig, indectModeRef.value))
204
+ }
205
+ return true
203
206
  }
204
207
  retObj['show-overflow-tooltip'] = showOverflowTooltipFn
205
208
  retObj.showOverflowTooltip = showOverflowTooltipFn
@@ -12,7 +12,7 @@
12
12
  </ElCheckbox>
13
13
  </ElCheckboxGroup>
14
14
  <ElCheckbox v-else v-bind="{...checkboxProps, ...attrs}" v-model="proxyValue">
15
- {{ label }}
15
+ <template v-if="showLabel">{{ label }}</template>
16
16
  <template v-for="(_, key) in slots" :key="key" v-slot:[key]="scope">
17
17
  <slot :name="key" v-bind="scope"></slot>
18
18
  </template>
@@ -27,6 +27,10 @@ const slots = useSlots()
27
27
  const props = defineProps({
28
28
  ...ElCheckbox.props,
29
29
  ...commonPropsType,
30
+ notShowLabel: {
31
+ type: [Number, String],
32
+ default: '0'
33
+ }
30
34
  })
31
35
 
32
36
  const lang = inject('lang')
@@ -34,7 +38,9 @@ const lang = inject('lang')
34
38
  const label = computed(() => {
35
39
  return lang.value.indexOf('zh') > -1 ? (props.config?.labelZh || props.config?.metaNameZh) : (props.config?.labelEn || props.config?.metaNameEn)
36
40
  })
37
-
41
+ const showLabel = computed(() => {
42
+ return props.notShowLabel != '1'
43
+ })
38
44
  const checkboxGroupProps = computed(() => {
39
45
  const ret = Object.keys(ElCheckboxGroup.props).reduce((ret, key) => {
40
46
  ret[key] = props[key]