重置按钮功能:
按钮代码:
<Form :model="queryParams" ref="queryForm" :label-width="labelWidth" :label-position="labelPosition">
<Row :gutter="24" type="flex" justify="end">
<Col v-bind="grid">
<FormItem label="用户名称:">
<Input v-model="queryParams.userName" maxlength="11" placeholder="请输入用户名"/>
</FormItem>
</Col>
<Col v-bind="grid" class="ivu-text-right">
<FormItem>
<Button type="primary" @click="handleQuery">查询</Button>
<Button class="ivu-ml-8" @click="resetQuery">重置</Button>
</FormItem>
</Col>
</Row>
</Form>
图示: