我有一段代码,按照文档推荐的布局,我一直不明白为什么无论我做什么,我的<v-flex>不响应offset。下面是带有截图的代码:
<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的,所以它应该适用(我也尝试过更改它,但没有用)。

条件下拉框应偏置为“查询条件”
发布于 2019-04-18 18:58:34
mx-3将覆盖偏移量,因此您不能同时使用它们
https://stackoverflow.com/questions/55743805
复制相似问题