tiny-vue
tiny-vue copied to clipboard
π [Bug]: TinySelect got vue warning when value is number
Version
latest
Vue Version
latest
Link to minimal reproduction
Step to reproduce
- option:
const options = ref([
π value is number
{ value: 1, label: 'εδΊ¬', icon: iconFile() },
{ value: 2, label: 'δΈζ΅·', icon: iconFile() },
{ value: 3, label: '倩ζ΄₯', icon: iconFile() },
{ value: 4, label: 'ιεΊ', icon: iconFile() },
{ value: 5, label: 'ζ·±ε³', icon: iconFile() }
])
- apply on tiny-select:
<tiny-select v-model="testValue" :options="options"> </tiny-select>
got warning:
Invalid prop: type check failed for prop "displayOnlyContent". Expected String with value "1", got Number with value 1.
at <TinyInputkey=2tiny_mode="pc"ref="reference" ...>
at <Anonymousref="modeTemplate"modelValue=1options=[object Object],[object Object],[object Object],[object Object],[object Object] ...>
at <TinySelectmodelValue=1onUpdate:modelValue=fnoptions=[object Object],[object Object],[object Object],[object Object],[object Object]>
at <Repl>
What is expected
no warning
What is actually happening
warning
What is your project name
@opentiny/tiny-engine
Any additional comments (optional)
No response