Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用a-space导致Dev环境与Prod环境结果不一致 #7856

Open
jianjianghui opened this issue Sep 24, 2024 · 0 comments
Open

使用a-space导致Dev环境与Prod环境结果不一致 #7856

jianjianghui opened this issue Sep 24, 2024 · 0 comments

Comments

@jianjianghui
Copy link

jianjianghui commented Sep 24, 2024

相同的ISSUE #5264

Version

4.2.5

Environment

vue 3.5.7

Reproduction link

#5264

Steps to reproduce

<script setup>
const value = ref()
const status = ref(true)
</script>

<template>
  <h2>BUG</h2>
  <a-space :size="20" style="width: 100%">
    <template v-if="status">
      <a-input v-model:value="value" placeholder="1" />
      1
    </template>

    <template v-if="!status">
      <a-input v-model:value="value" placeholder="2" />
      2
    </template>

    <div>
      <button type="button" @click="status = !status">{{ status }}</button>
    </div>
  </a-space>

  <h2>NO-BUG</h2>
  <div :size="20" style="width: 100%">
    <template v-if="status">
      <a-input v-model:value="value" placeholder="1" />
      1
    </template>

    <template v-if="!status">
      <a-input v-model:value="value" placeholder="2" />
      2
    </template>

    <div>
      <button type="button" @click="status = !status">{{ status }}</button>
    </div>
  </div>
</template>

20240924170023_rec_

What is expected?

生产环境和开发环境结果一致,placeholder正常变化

What is actually happening?

生产环境和开发环境结果不一致,开发环境placeholder正常变化,生产环境placeholder不变化

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant