webfansplz / temir

Vue for interactive command-line apps
MIT License
1k stars 36 forks source link

TSelectInput 无法响应式渲染? #12

Closed yuyinws closed 2 years ago

yuyinws commented 2 years ago

在onMounted钩子里将items修改后 Select组件还是只有开始的一个选项

Reproductions

<script lang="ts" setup>
  const items:any = ref([
      {
        label: 'Vue',
        value: 'Vue',
      },
  ])

  onMounted(() => {
    items.value = [
      {
        label: 'Vue',
        value: 'Vue',
      },
      {
        label: 'Vite',
        value: 'Vite',
      },
      {
        label: 'Temir',
        value: 'Temir',
      },
    ]
  })

  </script>

  <template>
    <TText>{{ items }}</TText>
    <TSelectInput :items="items" />
  </template>
webfansplz commented 2 years ago

Fixed in v0.0.19