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/dist/const/index.js +1 -1
- package/dist/h5/index.js +2 -2
- package/dist/web/index.js +2 -2
- package/package.json +1 -1
- package/src/components/packages-web/CustomComponentTabs.vue +6 -0
- package/src/components/packages-web/ElInput.jsx +6 -1
- package/src/utils/const.js +1 -1
- package/src/utils/render.jsx +2 -2
package/package.json
CHANGED
|
@@ -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}>
|
package/src/utils/const.js
CHANGED
|
@@ -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
|
}
|
package/src/utils/render.jsx
CHANGED
|
@@ -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
|
}
|