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

北京网站设计公司飞沐驻马店市住房和城乡建设局网站

北京网站设计公司飞沐,驻马店市住房和城乡建设局网站,榆林国贸网站建设,自己怎样注册企业网站需求#xff1a;一个输入框字段需要支持多次输入#xff0c;最后传输给后台的字段值以逗号分割 解决方案#xff1a;结合了el-tag组件的动态编辑标签 那块的代码 //子组件 templatediv classinput-multiple-box idinputMultipleBoxdiv…需求一个输入框字段需要支持多次输入最后传输给后台的字段值以逗号分割 解决方案结合了el-tag组件的动态编辑标签 那块的代码 //子组件 templatediv classinput-multiple-box idinputMultipleBoxdivel-tag v-for(tag, index) in inputTagList :keyindex typeinfo closable closehandleClose(index){{ tag }}/el-tag/divel-inputv-modelinputValuekeyup.enterhandleInputConfimblurhandleInputConfimstyleflex: 1; min-width: 100pxplaceholder按下enter键或者失去焦点进行添加/el-input/div /templatescript langts setup import { onMounted, ref, watch } from vueconst props defineProps([inputTags, separator]); const emit defineEmits([update:inputTags])const inputTagList ref([]) const inputValue ref() const handleClose (index: number) {inputTagList.value.splice(index, 1)emit(update:inputTags, inputTagList.value.join(props.separator || ,)) } const handleInputConfim () {if (inputValue.value) {inputTagList.value.push(inputValue.value)inputValue.value emit(update:inputTags, inputTagList.value.join(props.separator || ,))} }watch(()props.inputTags, (val, pre) {inputTagList.value props.inputTags.split(props.separator || ,) });onMounted(() {if (props.inputTags) {inputTagList.value props.inputTags.split(props.separator || ,)} }) /scriptstyle langscss scoped .input-multiple-box {width: 100%;border-radius: 4px;border: 1px solid #dcdfe6;// padding: 0 5px;display: flex;flex-wrap: wrap; } /style style langscss #inputMultipleBox {.el-input__inner {border: none;} } /style//父组件 import multipleInput from /components/multipleInput/index.vue multipleInputv-model:inputTagsform.modbusplaceholder请输入clearable/multipleInput实现效果图
http://www.dnsts.com.cn/news/50135.html

相关文章:

  • 什么免费推广网站好江苏建设人才无纸化考核网站
  • 做网站如何挂支付系统手机在线做ppt的网站有哪些问题
  • 网站ui怎么做的安阳包装设计
  • 网站说建设中设计师必备网站
  • 哪个网站做的比较好万家建设有限公司网站
  • 网上做结婚照的网站安装wordpress提示500错误
  • 网站建设经营范围怎么写网站开发要用什么工具软件
  • 网站建设教程这篇苏州久远网络淮安公司企业网站建设
  • 站内站怎么搭建wordpress装在xampp
  • 企业网站开发外包合同公司推广哪个平台好
  • 网站开发与管理微网站建设教程视频
  • 那个网站卖做防水的烤枪邀请注册推广赚钱
  • 海口网站公司如何做好专业类网站
  • 网站开发费怎样入账淄博网站建设团队
  • 长沙做信息seo网站软件开发外包商业模式
  • 网站开发流程进度表用vue做网站
  • 怎样电脑登录网站乐平网站
  • pageadmin仿站教程学物联网工程后悔死了
  • 网站建设营业执照wordpress链接跳转错误
  • 开通公司网站怎么做分录哈尔滨建站模板
  • 网站搭建详细教程discuz模板下载
  • 广州优化网站推广网站的虚拟人怎么做的
  • 网站的ftp怎么登陆有哪些企业官网做得比较好
  • 外链网站推荐几个巴中做网站公司
  • 网站 流量攻击免费发布便民信息平台
  • 从事网站开发需要哪些知识学做网站需要什么基础
  • 怎样用网站做淘宝推广WordPress站点地图代码
  • 傻瓜建网站湖南网站设计公司
  • 自己做的网站改变字体企业网站数防泄露怎么做
  • 做网站的工资网络营销的主要手段和策略