tiny-vue icon indicating copy to clipboard operation
tiny-vue copied to clipboard

πŸ› [Bug]: TinySelect got vue warning when value is number

Open chilingling opened this issue 2 months ago β€’ 0 comments

Version

latest

Vue Version

latest

Link to minimal reproduction

reproduct link

Step to reproduce

  1. 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() }
])
  1. 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

chilingling avatar Sep 23 '25 02:09 chilingling