首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >验证偏移不创建任何偏移

验证偏移不创建任何偏移
EN

Stack Overflow用户
提问于 2019-04-18 18:09:43
回答 1查看 1.4K关注 0票数 2

我有一段代码,按照文档推荐的布局,我一直不明白为什么无论我做什么,我的<v-flex>不响应offset。下面是带有截图的代码:

代码语言:javascript
复制
 <v-layout v-show="expanded"  v-for="(row, index) of queryCopy.query_parts" :key="index" align-baseline justify-start row fill-height wrap>
          <v-flex  offset-xs7 sm1 mx-3>
            <v-select
              class="whtsp-nowrap"
              label="Condition"
              v-model="row.condition"
              :items="options.condition"
              item-text="display"
              item-value="value"
              @input="isRowComplete"
            ></v-select>
          </v-flex>
          <v-flex sm1 mx-3>
            <v-select
              label="Field"
              :items="options.fields"
              item-text="display"
              item-value="value"
              v-model="row.field"
              @input="isRowComplete"
            ></v-select>
          </v-flex>
          <v-flex sm1 mx-3>
            <v-select
              label="Operation"
              v-model="row.operator"
              :items="options.operator"
              item-text="display"
              item-value="value"
              @input="isRowComplete"
            ></v-select>
          </v-flex>
          <v-flex sm2 mx-3>
            <v-text-field
              label="Search Value"
              v-model.lazy="row.value"
              @input="isRowComplete"
            ></v-text-field>
          </v-flex>
          <v-flex shrink>
            <v-btn @click="removeQueryRow(index)" class="mr-0"small icon>
              <v-icon color="grayDE">clear</v-icon>
            </v-btn>
          </v-flex>
          <v-flex>
            <v-btn  @click="addQueryRow" class="ma-0" small icon>
              <v-icon color="primary">add</v-icon>
            </v-btn>
          </v-flex>
        </v-layout>

我的问题是关于第一个具有offset-xs7的flex box,屏幕是sm的,所以它应该适用(我也尝试过更改它,但没有用)。

条件下拉框应偏置为“查询条件”

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-04-18 18:58:34

mx-3将覆盖偏移量,因此您不能同时使用它们

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55743805

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档