@bagelink/vue 1.17.6 → 1.18.3
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/components/form/inputs/SelectInput.vue.d.ts +3 -2
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/core.css +1 -1
- package/dist/form-flow/FormFlow.vue.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.css +1 -1
- package/dist/index.mjs +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/form/inputs/SelectInput.vue +5 -3
- package/src/form-flow/FormFlow.vue +4 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { IconType, Option } from '../../../index'
|
|
3
3
|
import type { AlignedPlacement } from '../../Dropdown.types'
|
|
4
4
|
import { Btn, Card, Skeleton, Dropdown, Icon, TextInput, useSearch, useI18n, resolveI18n } from '../../../index'
|
|
5
|
-
import { computed, onMounted, ref, useId, watch } from 'vue'
|
|
5
|
+
import { computed, nextTick, onMounted, ref, useId, watch } from 'vue'
|
|
6
6
|
import { getOptionIcon, getOptionLabel, getOptionSubtitle, getOptionValue } from '../../../utils/options'
|
|
7
7
|
import 'floating-vue/style.css'
|
|
8
8
|
import type { BagelInputShellProps } from './bagelInputShell'
|
|
@@ -232,8 +232,10 @@ watch(
|
|
|
232
232
|
watch(() => open.value, (value) => {
|
|
233
233
|
if (value) {
|
|
234
234
|
highlightedIndex.value = -1
|
|
235
|
-
|
|
236
|
-
|
|
235
|
+
nextTick(() => {
|
|
236
|
+
if (props.searchable) searchInput.value?.focus()
|
|
237
|
+
scrollToSelectedItem()
|
|
238
|
+
})
|
|
237
239
|
}
|
|
238
240
|
})
|
|
239
241
|
|
|
@@ -439,6 +439,10 @@ function getFieldProps(field: FieldBuilder, key: string) {
|
|
|
439
439
|
baseProps.multiline = true
|
|
440
440
|
}
|
|
441
441
|
|
|
442
|
+
if (field._type === 'datetime') {
|
|
443
|
+
baseProps.enableTime = true
|
|
444
|
+
}
|
|
445
|
+
|
|
442
446
|
if (field._type === 'multiselect') {
|
|
443
447
|
baseProps.multiselect = true
|
|
444
448
|
}
|