Using nuxt and elementui el-dialog pop-up may cause bugs

If pop-up is not used, it is normal. Below are a normal and an abnormal appearance.



Image_9291_1696084991411

Image_4225_1696084965853


3 Replies

KV Keerthikaran Venkatachalam Syncfusion Team October 16, 2023 04:06 PM UTC

Hi Xu zhi bin,


We are unable to replicate the issue on our end. We have prepared a sample based on your requirements. It is working fine. I have attached the sample for reference.


Sample Link: https://stackblitz.com/edit/zwbb5e-ismrwt?file=src%2FApp.vue


If you still facing issue, could you please share the issue's replicable sample or replicate the issue in our sample with replication steps and a video demonstration? Based on that, we will check and provide you with a better solution quickly.


Please let us know if you need any further assistance on this.


Regards,

KeerthiKaran K V



XZ xu zhi bin replied to Keerthikaran Venkatachalam October 17, 2023 01:29 PM UTC


I have tested it out. If two pages are displayed, there will be an error. Take a look at the code I sent


Attachment: testSyncfusion1_83e232ed.zip


KV Keerthikaran Venkatachalam Syncfusion Team October 27, 2023 02:21 PM UTC

Hi Xu zhi bin,


We have reviewed your sample and noticed that you have set the same ID for both QueryBuilder. To resolve this issue, please set individual IDs for each QueryBuilder. Please refer to the below code snippet and sample.

  <ejs-querybuilder :id="id" :headerTemplate="'headerTemplate'" allowValidation :showButtons="{   groupInsert: true, groupDelete: false }"  ref="queryBuilder"  :rule="importRules" width="100%"  >

    <template v-slot:headerTemplate="{data}">

      <el-button  @click="btnAddRule">添加条件</el-button>

    </template>

    <e-columns>

      <e-column  v-for="item in columns" :key="item.field" :field='item.field' :label='item.label' :type='item.type ?item.type:"string"' :format="item.format" :operators="item.operators ?item.operators:getOperators(item.type)" />

    </e-columns>

  </ejs-querybuilder>

………….

props:{

    id: {

      type: String,

      default: () => ""

    },

  },

……………..

    <el-dialog :append-to-body="true"

               :visible.sync="isShowDialog"

               width="80%"

    >

  <span>

   <el-link type="primary" @click="isShow=true">show</el-link>

  <el-dialog width="90%" :append-to-body="true" :visible.sync="isShow" title="项目详情">

    <adl-advanced-search id="querybuilder1" v-show="isShow" :columns="columns"></adl-advanced-search>

  </el-dialog>

</span>

    </el-dialog>

    <adl-advanced-search id="querybuilder" :columns="columns"></adl-advanced-search>

  </div>


Please let us know if you need any further assistance on this.


Regards,

KeerthiKaran K V


Attachment: QueryBuilder_67e541fb.zip

Loader.
Up arrow icon