quasar-ui-danx 0.3.46 → 0.3.47
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/danx.es.js +4447 -4305
- package/dist/danx.es.js.map +1 -1
- package/dist/danx.umd.js +8 -8
- package/dist/danx.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/ActionTable/Form/Fields/TextField.vue +4 -3
- package/src/components/ActionTable/Form/RenderedForm.vue +2 -0
package/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<template>
|
2
|
-
<div>
|
2
|
+
<div class="dx-text-field">
|
3
3
|
<QInput
|
4
4
|
v-if="!readonly"
|
5
5
|
:data-dusk="'text-field-' + field?.id"
|
@@ -12,8 +12,9 @@
|
|
12
12
|
:input-class="inputClass"
|
13
13
|
:class="parentClass"
|
14
14
|
stack-label
|
15
|
-
:
|
16
|
-
:type="type"
|
15
|
+
:autogrow="rows > 1"
|
16
|
+
:type="rows > 1 ? 'textarea' : type"
|
17
|
+
:input-style="rows ? {minHeight: rows * 1.5 + 'rem'} : {}"
|
17
18
|
:model-value="modelValue"
|
18
19
|
:debounce="debounce"
|
19
20
|
@keydown.enter="$emit('submit')"
|
@@ -75,6 +75,7 @@
|
|
75
75
|
:label="field.label || undefined"
|
76
76
|
:no-label="noLabel"
|
77
77
|
:show-name="showName"
|
78
|
+
:rows="field.type === 'TEXTAREA' ? 5 : 1"
|
78
79
|
:clearable="field.clearable || clearable"
|
79
80
|
:disable="disable"
|
80
81
|
:readonly="readonly"
|
@@ -154,6 +155,7 @@ const FORM_FIELD_MAP = {
|
|
154
155
|
INTEGER: IntegerField,
|
155
156
|
NUMBER: NumberField,
|
156
157
|
TEXT: TextField,
|
158
|
+
TEXTAREA: TextField,
|
157
159
|
NO_INPUT: NoInputField,
|
158
160
|
SINGLE_FILE: SingleFileField,
|
159
161
|
MULTI_FILE: MultiFileField,
|