iview收缩框

本文详细介绍了iView UI框架中的折叠组件使用方法,包括基本用法、自定义触发事件和多级嵌套等特性,帮助开发者更好地理解和应用到实际项目中。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 <Collapse v-model="value1" style="background: #fff;" simple>
                <Panel name="1" :hide-arrow="true">
                    <Row>
                        <i-col span="2" class="height_border">
                            <div class="title">基本信息</div>
                        </i-col>
                        <i-col span="20" class="height_border"/>
                        <i-col span="1">
                            <Button type="primary" @click.stop="edit">新增</Button>
                        </i-col>
                        <i-col span="1">
                            <Icon type="ios-arrow-down"></Icon>
                        </i-col>
                    </Row>
                    <p slot="content">
                        <Row style="height:25px;"/>
                        <Row>
                            <i-col span="1" class="height_border"/>
                            <i-col span="22">
                                <Table :columns="columns1" :data="personInfoTest" :border="false">
                                    <template slot-scope="{ row }" slot="name">
                                        <strong>{{ row.name }}</strong>
                                    </template>
                                    <template slot-scope="{ row, index }" slot="action">
                                        <Button
                                            type="primary"
                                            size="small"
                                            style="margin-right: 5px"
                                            @click="show(index)"
                                        >编辑</Button>
                                        <Button type="error" size="small" @click="remove(index)">删除</Button>
                                    </template>
                                </Table>
                            </i-col>
                        </Row>
                        <Row style="height:30px;"/>
                    </p>
                </Panel>
            </Collapse>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值