当前位置:网站首页>Flexible layout single selection
Flexible layout single selection
2022-07-29 02:08:00 【Vegetable bird yard live】
My style is row by row 10 Column
Jiugong grid pop-up display
The code is as follows
The list of data
const ymList = ref([
{
ym: " Poria cocos ",
},
{
ym: " Angelica dahurica ",
},
{
ym: " Cocklebur ",
},
{
ym: " cicada slough ",
},
{
ym: " Fructus arctii ",
},
{
ym: " Mulberry leaves ",
},
{
ym: " Gegen ",
},
{
ym: " Chaihu ",
},
{
ym: " Vitex trifolia ",
},
{
ym: " Know your mother ",
},
]);
<el-dialog
v-model="ymDialogVisible"
title=" Please select "
draggable
width="60%"
destroy-on-close
center
>
<div class="row">
<div class="ymdiv" @click="ymClick(item,index)" v-for="(item,index) in ymList" :key="index">
{
{item.ym}}
<el-icon color="#FF0000" v-if="clickYmIndex == index"><Select /></el-icon>
</div>
</div>
<template #footer>
<span class="dialog-footer">
<el-button @click="ymDialogVisible = false"> take eliminate </el-button>
<el-button type="primary" @click="ymconfirm"> indeed set </el-button>
</span>
</template>
</el-dialog>
Click event
const clickYmIndex = ref(null)
function ymClick(item, index) {
clickYmIndex.value = index;
}
function ymconfirm(){
zbList.value[clickIndex.value].yymc = ymList.value[clickYmIndex.value].ym;
ymDialogVisible.value = false;
}
css style
.row {
display: flex;
margin-bottom: 5px;
flex-direction: row;
flex-wrap: wrap;
}
.ymdiv {
width: 105px;
height: 105px;
line-height: 105px;
text-align: center;
border-collapse: collapse;
margin-right:-1px;
margin-bottom:-1px;
cursor: pointer;
border: 1px solid #a5a3a3;
}

边栏推荐
- [the road of Exile - Chapter 2]
- LM13丨形态量化-动量周期分析
- druid. The performance of IO + tranquility real-time tasks is summarized with the help of 2020 double 11
- E-commerce keyword research helps data collection
- 正则过滤数据学习笔记(①)
- Day01作业
- Verilog procedure assignment statements: blocking & non blocking
- Lua log implementation -- print table
- Overview of Qualcomm 5g intelligent platform
- (arxiv-2018) 重新审视基于视频的 Person ReID 的时间建模
猜你喜欢

数学建模——红酒品质分类

Mathematical modeling -- bus scheduling optimization

Yocto project download and compilation

【公开课预告】:快手GPU/FPGA/ASIC异构平台的应用探索

Solution of Lenovo notebook camera unable to open

JS dom2 and dom3

Why does stonedb dare to call it the only open source MySQL native HTAP database in the industry?

Comprehensive explanation of "search engine crawl"

数学建模——派出所选址
![[golang] network connection net.dial](/img/8d/7ef64cb63cbd230e5ac1655b86786f.png)
[golang] network connection net.dial
随机推荐
Day01作业
弹性布局 单选
Golang startup error [resolved]
[WesternCTF2018]shrine
基于 ICA 与 DL 的语音信号盲分离
MPEG音频编码三十年
(CVPR-2019)选择性的内核网络
[MySQL] SQL aliases the table
Lm13 morphological quantification momentum period analysis
Data platform data access practice
[云原生]微服务架构是什么
leetcode 242. Valid Anagram(有效的字母异位词)
Stonedb invites you to participate in the open source community monthly meeting!
九天后我们一起,聚焦音视频、探秘技术新发展
[7.27] code source - [deletion], [bracket sequence], [number replacement], [game], [painting]
试着换个角度理解低代码平台设计的本质
点击回到顶部js
Planning mathematics final exam simulation II
Understand the working principle of timer in STM32 in simple terms
【公开课预告】:快手GPU/FPGA/ASIC异构平台的应用探索