File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
packages/components-vue/src/components/form Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3
3
<FormInputOptions
4
4
v-if =" !input.defaults && input.type === eFT.CHOICE"
5
5
v-slot =" { options }"
6
+ :key =" `options-${input.name}-${md5(String(input.values[0]))}-${input.options.length}`"
6
7
:input =" input"
7
8
>
8
9
<div
298
299
import { computed , reactive } from " vue" ;
299
300
import validator from " validator" ;
300
301
import _ from " lodash" ;
302
+ import { md5 } from " js-md5" ;
301
303
302
304
import type { iInvalidInput , iSelectOption } from " @open-xamu-co/ui-common-types" ;
303
305
import { eFormType as eFT } from " @open-xamu-co/ui-common-enums" ;
Original file line number Diff line number Diff line change 15
15
:promise =" !!model[1] && unHydrate(getStateCities)"
16
16
:payload =" [countryValue, model[1]]"
17
17
:no-loader =" statesReq.loading"
18
+ :fallback =" []"
18
19
unwrap
19
20
>
20
21
<slot v-bind =" { statesReq, citiesReq }" ></slot >
Original file line number Diff line number Diff line change 22
22
{{ getSuggestedTitle(input) }}
23
23
</p >
24
24
<FormInput
25
- :key =" `simple-${input.name}-${md5(String(input.values[0]))}-${
26
- input.options.length
27
- }`"
25
+ :key =" `simple-${input.name}-${input.options.length}`"
28
26
:readonly =" readonly"
29
27
:theme =" theme"
30
28
:input =" input"
49
47
50
48
<script setup lang="ts" generic =" P extends any [] = any []" >
51
49
import { computed , ref , watch } from " vue" ;
52
- import { md5 } from " js-md5" ;
53
50
import _ from " lodash" ;
54
51
55
52
import type { iInvalidInput } from " @open-xamu-co/ui-common-types" ;
You can’t perform that action at this time.
0 commit comments