Giter Site home page Giter Site logo

Comments (2)

zollero avatar zollero commented on May 28, 2024

@SUNSHUMIN 支持,请使用 slot=form 来定义,这种方式还是最原始的 Element UI 的写法,只不过用 slot=form 包裹了一下。

from el-search-table-pagination.

zollero avatar zollero commented on May 28, 2024

@SUNSHUMIN 示例代码如下:

<el-search-table-pagination
  :url="api.listUrl"
  :params="formData"
  :columns="columns"
  list-field="result.rows"
  total-field="result.total"
  page-index-key="pageNumber"
  page-size-key="pageSize"
  :data-handler="dataHandler">

  <template slot="form" slot-scope="scope" >
    <el-form :inline="true" style="margin-left: 20px" :model="formData">
      <el-form-item label="类型" label-width="100px" prop="type">
        <el-select v-model="formData.type" size="small" style="width:210px">
          <el-option v-for="item in resourceProp.positionType"
          :key="item.value" :label="item.label"
          :value="item.value">
          </el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="ID" label-width="100px" prop="id">
        <el-input v-model="formData.id" size="small" style="width:210px">
        </el-input>
      </el-form-item>
      <el-button size="small" type="primary" 
        :loading="scope.loading"
        @click="scope.search">查询</el-button>
    </el-form>
  </template>
</el-search-table-pagination>

请注意下图中的几处,参考文档进行:
image

from el-search-table-pagination.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.