Vue 实现封装combogrid表格网格(Easyui框架有类似的)及使用(三)

i-combogrid.vue组合表格组件的封装

i-combogrid.vue组合表格组件是文章的重点部分,以下代码部分引入的组件和js文件在之前文章里有写道。可以参考第一章和第二章。
第一章
第二章

i-combogrid.vue的实现

template

<template>
    <div :getOptions="getOptions">
        <el-input ref="comboinput" @click.native="showCombogrid($event)" placeholder="请选择" v-model="inputShowValue">
            <i slot="suffix" class="el-icon-arrow-down" :class="iconChange"></i>
        </el-input>
        <iwhiteBoad ref="whiteBoad" :width="width" :timeValue="timeValue">
            <div class="i-combogrid">
                <iform ref="iform" :model="FormData" :rightFormData="FormData" :formTypeValue="formTypeValue"
                :timeValue="timeValue">
                    <el-button v-if="showRearch" @click="getTableData"><i class="el-icon-search"></i></el-button>
                </iform>
                <itable ref="combotable" :showSelection="showSelection" @row-click="rowclick" @selection-change="selectionChange"
                :itemList="columnList" :pageInfo="pageInfo"
                :highlightCurrentRow="highlightCurrentRow" @handleChange="handleChange"
                @handleCurrentChange="handleCurrentChange" @handleSizeChange="handleSizeChange">
                    <el-table-column v-for="(item) in columnList" :key="item.field" sortable
                                    :prop="item.field" :label="item.title" :width="item.width" align="center">
                    </el-table-column>
                </itable>
                <div class="i-button">
                    <el-button type="primary">确定{
   {
   0}}</el-button>
                    <el-button type="primary" @click="clearAllSelect">清空</el-button>
                </div>
            </div>
        </iwhiteBoad>
    </div>
</template>

script

<script>
    import Itable from './i-table.vue';
    import Iform from './i-form.vue';
    import IwhiteBoad from './i-whiteBoad.vue';
    import {
    EventBus } from '../modules/event-bus';
    import axios from 'axios';
export default {
   
    name: 'i-combogrid',
    components: {
    Itable, Iform, IwhiteBoad },
    props: {
   
        getOptions
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值