resolver-egretimp-plus 0.0.182 → 0.0.184

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.182",
3
+ "version": "0.0.184",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -79,4 +79,10 @@ const transTabsProps = computed(() => {
79
79
  const fullBorder = computed(() => {
80
80
  return tabpanes.value.length === 1 && level.value == 1
81
81
  })
82
+
83
+ defineExpose({
84
+ setActiveTab(tabMetaCode) {
85
+ activeNames.value = tabMetaCode
86
+ }
87
+ })
82
88
  </script>
@@ -15,7 +15,7 @@ export default {
15
15
  ...ElInput.props
16
16
  },
17
17
  emits: ['update:modelValue'],
18
- setup(props, { emit, attrs }) {
18
+ setup(props, { emit, attrs, expose }) {
19
19
  const isOverflow = ref(false)
20
20
  const inputWrapRef = ref(null)
21
21
  const calcSpanRef = ref(null)
@@ -180,6 +180,11 @@ export default {
180
180
  }
181
181
  return ret
182
182
  }
183
+ expose({
184
+ click: (params) => {
185
+ attrs?.onClick?.(null, params)
186
+ }
187
+ })
183
188
  return () => {
184
189
  return (
185
190
  <div class="input-contrainer" {...inputWrapAttrs.value}>
@@ -61,7 +61,7 @@ export const commonPropsType = {
61
61
  }
62
62
  },
63
63
  modelValue: {
64
- type: [String, Number, Object, Array, undefined, null],
64
+ type: [String, Number, Object, Array, Boolean, undefined, null],
65
65
  getValue(config, props, modelValue) {
66
66
  return modelValue.value
67
67
  }
@@ -476,7 +476,7 @@ export function getRenderComponentProps({ props, component, modelValue, selects,
476
476
  ...getRenderCompMargins(config),
477
477
  width: commonProps.width || getBuildCompDefaultWidth(config)
478
478
  }
479
- if (isHidden({ config })) {
479
+ if (isHidden({ config }) || config.hiddenContext == '1') {
480
480
  defprops.style.display = 'none'
481
481
  }
482
482
 
@@ -677,7 +677,7 @@ function generateFormItemPc (config, lang, compProps, params,) {
677
677
  node = (
678
678
  <div style="width: 100%">
679
679
  {node}
680
- {config.polyfillNode(h, { config, props: compProps })}
680
+ {config.polyfillNode(h, { config, props: compProps, contextNode: node })}
681
681
  </div>
682
682
  )
683
683
  }