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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quasar-ui-danx",
3
- "version": "0.3.46",
3
+ "version": "0.3.47",
4
4
  "author": "Dan <dan@flytedesk.com>",
5
5
  "description": "DanX Vue / Quasar component library",
6
6
  "license": "MIT",
@@ -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
- :rows="rows"
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,