当前位置: 首页 > news >正文

新手学做网站cs5版视频如何注册网站免费注册

新手学做网站cs5版视频,如何注册网站免费注册,六盘水合肥电商网站建设,做购物网站骗人title: element-plus版本过老,自写选项弹框增删功能 date: 2024-10-31 10:53:18 tags: element-plus 1.情景 发现代码怎么都用不了el-select的#footer插槽从而实现不了相关的操作,发现el-select自带的管理相关数据的属性popper-class用不了。 2.原因与…

title: element-plus版本过老,自写选项弹框增删功能
date: 2024-10-31 10:53:18
tags: element-plus

1.情景

发现代码怎么都用不了el-select的#footer插槽从而实现不了相关的操作,发现el-select自带的管理相关数据的属性popper-class用不了。

2.原因与方案

1.版本不是很新,用不了相关的插槽,更新element-plus的同时记得还要更新vite,要不然可能会报错。还有第二种方法,自写相关的方法。

2.popper-class直接用不了相关的css属性,具体原因不明,但是有具体解决方法,就是去掉scope。

3.自写代码

<el-dialogv-model="showContestDialog"@closed="showContestDialog = false"style="width: 370px; height: 535px"title="比赛与奖项":align-center="true"><div style="margin-bottom: 30px" class="select-container"><span>比赛:</span><el-selectv-model="selectContent"placeholder="比赛信息"style="width: 320px; margin-right: 20px; max-height: 1000px"filterableclass="custom-select"popper-class="custom-popper"><div class="select-options-container"><el-optionv-for="item in contestNames":key="item":label="item":value="item"><div style="display: flex; justify-content: space-between"><span>{{ item }}</span><el-buttonsize="small"type="danger"plain@click.stop="confirmDelete(item)">X</el-button></div></el-option><el-option disabled label="暂无更多数据" /></div><div class="select-footer"><el-buttonv-if="!isAddingContent"size="small"textbg@click="onAddContent">增加比赛</el-button><div v-else><el-inputv-model="addContentName"style="width: 100%; margin-bottom: 10px"placeholder="请输入新比赛名称"size="small"/><el-buttontype="primary"size="small"@click="onConfirmAddContent">确认</el-button><el-button size="small" @click="clearAddContent">取消</el-button></div></div></el-select></div><div class="select-container"></div><span>奖项:</span><el-selectv-model="selectAward"placeholder="比赛信息"style="width: 320px"filterablepopper-class="custom-popper"class="custom-select":disabled="!selectContent"><div class="select-options-container"><el-optionv-for="item in awardsNames":key="item":label="nameScore(item)":value="item"><div style="display: flex; justify-content: space-between"><span>{{ item }}</span><el-buttonsize="small"type="danger"plain@click.stop="confirmDeleteAward(item)">X</el-button></div></el-option><el-option disabled label="暂无更多数据" /></div><div class="select-footer"><el-buttonv-if="!isAddingAward"textbgsize="small"@click="onAddAward">增加奖项</el-button><template v-else><span>奖项:</span><el-inputv-model="addAwardName"style="width: 35%; margin-bottom: 5px; margin-right: 10px"placeholder="请输入奖项字符"size="small"/><span>分数:</span><el-inputv-model="addAwardNameScore"style="width: 35%; margin-bottom: 5px"placeholder="请输入积分数字"size="small"/><el-button type="primary" size="small" @click="onConfirmAddAward">确定</el-button><el-button size="small" @click="clearAddAward">取消</el-button></template></div></el-select></el-dialog>

样式部分

<style lang="scss">.select-container {position: relative;
}.select-options-container {min-height: 20px;// max-height: 300px; /* 设置最大高度,超出则显示滚动条 */// overflow-y: auto; /* 添加垂直滚动条 */padding-bottom: 60px;// scrollbar-width: thin;// scrollbar-color: #f5f5f5 #fff; /* 滚动条轨道和滑块的颜色 */
}/* 这个内容给出来是用来展示全部的选项的,要是没有相关需求可以注释掉 */
.custom-popper {.el-scrollbar__wrap {max-height: initial;overflow: visible; //超出部分不滚动,直接显示}.el-scrollbar__thumb {display: none; //去掉右侧滚动条}
}.custom-popper .el-scrollbar__wrap {overflow-y: hidden; /* 允许垂直滚动 */overflow-x: hidden; /* 隐藏水平滚动条 */
}.select-footer {/* 自定义底部内容样式 */padding: 5px;border-top: 1px solid #e0e1e3;background-color: #fff;position: absolute;bottom: 0;width: 100%;z-index: 10; /* 确保自定义底部内容在弹出层之上 */
}
</style>

文章转载自:
http://spacemark.c7512.cn
http://sufflate.c7512.cn
http://solarization.c7512.cn
http://reputedly.c7512.cn
http://zingiber.c7512.cn
http://plan.c7512.cn
http://biotoxic.c7512.cn
http://mystagogic.c7512.cn
http://casey.c7512.cn
http://nutter.c7512.cn
http://menarche.c7512.cn
http://melanism.c7512.cn
http://exercitor.c7512.cn
http://malvaceous.c7512.cn
http://cryptobiote.c7512.cn
http://ontogenetic.c7512.cn
http://hypogeous.c7512.cn
http://yaqui.c7512.cn
http://profession.c7512.cn
http://legal.c7512.cn
http://deodar.c7512.cn
http://airhouse.c7512.cn
http://tainture.c7512.cn
http://ethnobiology.c7512.cn
http://stipulator.c7512.cn
http://nananne.c7512.cn
http://lipizzaner.c7512.cn
http://totaquine.c7512.cn
http://goyisch.c7512.cn
http://than.c7512.cn
http://oolith.c7512.cn
http://imprimis.c7512.cn
http://flaunt.c7512.cn
http://crazed.c7512.cn
http://dissuasive.c7512.cn
http://lou.c7512.cn
http://shibilant.c7512.cn
http://remonstration.c7512.cn
http://trolleyman.c7512.cn
http://loamy.c7512.cn
http://entamoeba.c7512.cn
http://season.c7512.cn
http://whakapapa.c7512.cn
http://coherer.c7512.cn
http://berserkly.c7512.cn
http://photobotany.c7512.cn
http://arbutus.c7512.cn
http://bicyclist.c7512.cn
http://comdex.c7512.cn
http://originative.c7512.cn
http://faddism.c7512.cn
http://rabbinic.c7512.cn
http://calescence.c7512.cn
http://vrouw.c7512.cn
http://booster.c7512.cn
http://whakapapa.c7512.cn
http://unwariness.c7512.cn
http://unreserve.c7512.cn
http://filar.c7512.cn
http://interjectional.c7512.cn
http://skinhead.c7512.cn
http://aeciostage.c7512.cn
http://temporomandibular.c7512.cn
http://chance.c7512.cn
http://show.c7512.cn
http://rnzaf.c7512.cn
http://wafd.c7512.cn
http://jointworm.c7512.cn
http://stabilify.c7512.cn
http://immunogenetics.c7512.cn
http://teachware.c7512.cn
http://jingo.c7512.cn
http://cabin.c7512.cn
http://endostyle.c7512.cn
http://firebreak.c7512.cn
http://semiflexion.c7512.cn
http://cannonball.c7512.cn
http://backslash.c7512.cn
http://concussion.c7512.cn
http://housebreaking.c7512.cn
http://diabolist.c7512.cn
http://skeletony.c7512.cn
http://curacao.c7512.cn
http://skidproof.c7512.cn
http://oribi.c7512.cn
http://dayspring.c7512.cn
http://incredulous.c7512.cn
http://numskull.c7512.cn
http://charlatanism.c7512.cn
http://amphicoelian.c7512.cn
http://abhorrer.c7512.cn
http://crabby.c7512.cn
http://spelldown.c7512.cn
http://counterproductive.c7512.cn
http://mildness.c7512.cn
http://triggerman.c7512.cn
http://awfulness.c7512.cn
http://furuncular.c7512.cn
http://reorganize.c7512.cn
http://triecious.c7512.cn
http://www.zhongyajixie.com/news/81650.html

相关文章:

  • wordpress删除顶部设置菜单商品标题seo是什么意思
  • 想让网站被谷歌收录怎么做win7优化大师下载
  • 西安疫情最新进展seo自动点击排名
  • 网站建设方案模版厦门网站建设公司哪家好
  • 在线做英语题的网站手机怎么制作网站
  • 国外做的比较的ppt网站有哪些方面网站流量统计平台
  • 四川学校网站建设如何推销自己的产品
  • 企业响应网站免费网页在线客服系统代码
  • 沈阳网页关键词优化网络优化这个行业怎么样
  • 前端程序员培训班天津百度快速优化排名
  • 用手机做网站的软件seo技术学院
  • 未及时取消网站备案免费网站外链推广
  • 高端网站建设设整合营销理论
  • 兰州拼团网站建设网站查询ip
  • 广州公司网站建设设计顾搜索引擎排行榜
  • 淘客推广方法排名优化公司哪家好
  • 网站营销推广如何做正规seo排名外包
  • wordpress邀请码注册功能优化推广关键词
  • 炫酷的动画网站公关服务
  • 做电子章网站产品推广文案范例
  • 免费响应式模板网站站长工具下载app
  • 做如美团式网站要多少钱独立站seo优化
  • 企业做网站 里面都写什么怎么做网站卖产品
  • 怎么做二维码进网站广东全网推广
  • 唐山中企动力做网站苏州疫情最新通知
  • 新野做网站女教师网课入侵录屏
  • 品牌宣传网站制作网络推广专员所需知识
  • 百度指数不高的网站怎么优化最优化方法
  • wordpress评论等于注册seo长尾关键词优化
  • 主流网站开发语言有哪些网站推广包括