We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
一个简单的示例,点击任意开关可以查看布局变化。当只有一个input或switch时,grid布局失效。当删除spin时,布局不受影响
<template> <div class="header"> <a-space> <a-switch v-model="display1" @change="!display1"></a-switch> <a-switch v-model="display2" @change="!display2"></a-switch> <a-switch v-model="display3" @change="!display3"></a-switch> </a-space> </div> <div class="content"> <a-spin> <a-row align="center" justify="center"> <a-col :span="2"> <icon-minus-circle-fill :style="{ cursor: 'pointer', fontSize: '24px', color: 'rgb(var(--red-6))' }" /> </a-col> <a-col :span="22"> <a-select v-if="display1" placeholder="select"> <a-option v-for="item in [1, 2, 3]" :key="item" :value="item"> {{ item }} </a-option> </a-select> <a-input v-if="display2" placeholder="test" allow-clear> <template #prefix> <icon-pen /> </template> <template #suffix> <a-switch type="round" /> </template> </a-input> <a-input v-if="display3" placeholder="test" allow-clear> <template #prefix> <icon-common /> </template> </a-input> </a-col> </a-row> </a-spin> </div> </template> <script setup lang="ts"> import { ref } from 'vue'; const display1 = ref(true); const display2 = ref(true); const display3 = ref(true); </script> <style scoped lang="less"> .header { display: flex; padding: 20px; } .content { width: 500px; padding: 20px; background: skyblue; } </style>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
基本信息
预期结果
一个简单的示例,点击任意开关可以查看布局变化。当只有一个input或switch时,grid布局失效。当删除spin时,布局不受影响
复现步骤
The text was updated successfully, but these errors were encountered: