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

赣州网站建设公司html制作网站

赣州网站建设公司,html制作网站,企业网站有哪些举例,2016wordpress淘宝客程序需求&#xff1a;一个输入框字段需要支持多次输入&#xff0c;最后传输给后台的字段值以逗号分割 解决方案&#xff1a;结合了el-tag组件的动态编辑标签 那块的代码 //子组件 <template><div class"input-multiple-box" idinputMultipleBox><div>…

需求:一个输入框字段需要支持多次输入,最后传输给后台的字段值以逗号分割
解决方案:结合了el-tag组件的动态编辑标签 那块的代码

//子组件
<template><div class="input-multiple-box" id='inputMultipleBox'><div><el-tag v-for="(tag, index) in inputTagList" :key="index" type="info" closable @close="handleClose(index)">{{ tag }}</el-tag></div><el-inputv-model="inputValue"@keyup.enter="handleInputConfim"@blur="handleInputConfim"style="flex: 1; min-width: 100px"placeholder="按下enter键或者失去焦点进行添加"></el-input></div>
</template><script lang="ts" setup>
import { onMounted, ref, watch } from 'vue'const 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 || ',')}
})
</script><style lang="scss" scoped>
.input-multiple-box {width: 100%;border-radius: 4px;border: 1px solid #dcdfe6;// padding: 0 5px;display: flex;flex-wrap: wrap;
}
</style>
<style lang="scss">
#inputMultipleBox {.el-input__inner {border: none;}
}
</style>//父组件
import multipleInput from '@/components/multipleInput/index.vue'
<multipleInputv-model:inputTags="form.modbus"placeholder="请输入"clearable></multipleInput>

实现效果图
在这里插入图片描述

http://www.mmbaike.com/news/35114.html

相关文章:

  • 域名访问网站应该怎么做杭州网站设计制作
  • 商务网站建设理论依据营销方式和渠道
  • 中学生做的安全作业网站sem是什么显微镜
  • 官方网站建设银行网站运营指标
  • 淮北论坛招聘求职西安排名seo公司
  • 做游戏模板下载网站如何制作一个属于自己的网站
  • delphi做网站开发网络设计
  • 网站开发论文的开题报告互联网广告推广是什么
  • 2345网址导航中国最好seo 最新
  • 网站建设方案书是什么360应用商店
  • 三星网上商城网站seo好学吗
  • 那个网站可以做域名跳转的网站优化公司开始上班了
  • 广州网站建设鞍山免费b2b
  • 网站建设思维导图的要求谷歌浏览器下载电脑版
  • 衡阳网站制作谷歌搜索引擎镜像入口
  • 哪里可以检测短链脂肪酸seo短视频入口引流
  • 网站的做网站公司企业网站推广策划书
  • app软件网站开发seo营销外包
  • 外包app公司不给源代码台州seo排名扣费
  • 龙岩做网站的地方有哪些关键词搜索排行榜
  • 东莞设计公司网站推广文案范文100字
  • 做游戏女角色去衣的网站在线刷关键词网站排名
  • 官方网站模板杭州优化公司哪家好
  • 平台网站兼职做sap成人职业技能培训有哪些项目
  • 什么网站可以做软件有哪些内容seo专员是什么职业
  • 随州网站制作价格9个广州seo推广神技
  • 带搜索的下拉框网站中山seo
  • 南昌网站建设模板服务商湖南百度推广公司
  • 做企业网站赚钱吗建站seo是什么
  • 网站加载速度影响因素易观数据app排行