resolver-egretimp-plus 0.0.205 → 0.0.206
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
|
@@ -12,7 +12,11 @@ export default {
|
|
|
12
12
|
inheritAttrs: false,
|
|
13
13
|
props: {
|
|
14
14
|
...commonPropsType,
|
|
15
|
-
...ElInput.props
|
|
15
|
+
...ElInput.props,
|
|
16
|
+
textAreaCnt: {
|
|
17
|
+
type: [Number, String],
|
|
18
|
+
default: 2,
|
|
19
|
+
}
|
|
16
20
|
},
|
|
17
21
|
emits: ['update:modelValue'],
|
|
18
22
|
setup(props, { emit, attrs, expose }) {
|
|
@@ -30,6 +34,9 @@ export default {
|
|
|
30
34
|
if (props.config?.maxLength) {
|
|
31
35
|
ret.maxlength = parseInt(props.config.maxLength)
|
|
32
36
|
}
|
|
37
|
+
if (props.textAreaCnt) {
|
|
38
|
+
ret.rows = parseInt(props.textAreaCnt)
|
|
39
|
+
}
|
|
33
40
|
return ret
|
|
34
41
|
})
|
|
35
42
|
const normalInputProps = computed(() => {
|
package/src/utils/common.js
CHANGED
|
@@ -346,7 +346,8 @@ export function getConfigOptions(config, selects) {
|
|
|
346
346
|
optionItemsList = []
|
|
347
347
|
}
|
|
348
348
|
const options = (selects?.value && selects?.value?.[selectKey]) || (selects?.value && selects?.value?.[`${config.metaCode}ListValue`]) || (selects?.value && selects?.value?.[referenceOptions]) || optionItemsList || []
|
|
349
|
-
|
|
349
|
+
const priOptions = config?.priOptions
|
|
350
|
+
return priOptions || options
|
|
350
351
|
// const disabled = calcDisable(config, props.mode)
|
|
351
352
|
// if (disabled) {
|
|
352
353
|
// return options
|