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

如皋企业网站建设外贸多语言网站建设

如皋企业网站建设,外贸多语言网站建设,刚刚深圳出的大事,济南做网站的好公司有哪些使用了Element UI库中的el-select和el-option组件来构建多选下拉框。同时#xff0c;也包含了一个el-input组件用于过滤搜索选择项#xff0c;以及el-checkbox-group和el-checkbox组件用于显示多选项。 创建组件index.vue (src/common-ui/selectMultiple/index.vue) tem… 使用了Element UI库中的el-select和el-option组件来构建多选下拉框。同时也包含了一个el-input组件用于过滤搜索选择项以及el-checkbox-group和el-checkbox组件用于显示多选项。 创建组件index.vue (src/common-ui/selectMultiple/index.vue) templateel-selectrefselectv-modelhValuemultiplecollapse-tags:clearableclearable:disableddisabled:placeholderplaceholder:popper-classselect-default no-empty:keypoperKeyValue:value-keyvalueKeyblurhandleBlurchangehandleChangeclearhandleClearfocushandleFocusremove-taghandleRemoveTagvisible-changehandleVisibleChangeel-inputclassfilter-inputv-model.trimhFilterValv-iffilterable:classselectInfo.options.length 0 ? filter-input-mb : /el-inputel-checkbox-group v-modelhValueel-optionv-for(item, index) in selectInfo.options:keyindex:labelselectInfo.prop selectInfo.prop.label? item[selectInfo.prop.label]: item.name:disableditem.disabled:valueselectInfo.prop selectInfo.prop.value? item[selectInfo.prop.value]: item.idel-checkboxstylepointer-events: none:labelselectInfo.prop selectInfo.prop.value? item[selectInfo.prop.value]: item.id{{selectInfo.prop selectInfo.prop.label? item[selectInfo.prop.label]: item.name}}/el-checkbox/el-option/el-checkbox-group/el-select /templatescriptexport default {name: HSelectMul,props: {placeholder: String,selectInfo: {type: Object,default() {return {align: left,options: [],filterOptions: [],prop:{label:name,value:id}};}},filterVal:{type:String,value:},clearable: {type: Boolean,default: true},disabled: {type: Boolean,default: false},filterable: {type: Boolean,default: true},value: {type: [String, Number, Array, Boolean],required: true},valueKey: String,keyValue: {type: String,default: select-single}},data() {return {poperKeyValue: };},computed: {hValue: {get() {let value [];if (this.value instanceof Array) {this.value.forEach(key {if (this.checkValueExisting(key)) {value.push(key);}});}return value;},set(value) {this.$emit(input, value);}},hFilterVal: {get() {return this.filterVal;},set(value) {this.$emit(input-search, value);}},},watch: {keyValue(val) {this.poperKeyValue val;}},methods: {checkValueExisting(value) {let key this.selectInfo.propthis.selectInfo.prop.value?this.selectInfo.prop.value:idif(this.filterable) {if (this.selectInfo.filterOptions instanceof Array) {let index this.selectInfo.filterOptions.findIndex(item item[key] value,this);return index -1;}} else {if (this.selectInfo.options instanceof Array) {let index this.selectInfo.options.findIndex(item item[key] value,this);return index -1;}}return false;},handleBlur(event) {this.$emit(blur, event);},handleChange(value) {this.$emit(change, value);},handleClear() {this.$emit(clear);},handleFocus(event) {this.$emit(focus, event);},handleRemoveTag(tag) {this.$emit(remove-tag, tag);},handleVisibleChange(visible) {this.$emit(visible-change, visible);}}}; /scriptstyle langscss scoped/style 页面引入 在需要使用selectMultiple组件的地方通过import语句组件注册并使用 templatedivHSelectMultiple:select-infoselectInfov-modelselectedValue:filter-valfilterValinput-searchdropDownSearchTopchangechangeSelect/HSelectMultiple/div /template scriptimport HSelectMultiplefrom /common-ui/selectMultiple/indexexport default {components: {HSelectMultiplefrom },data() {return {filterVal: ,dataSource: [],selectedValue: ,selectInfo: {align: left,options: [],filterOptions: [],prop: {label: name,value: id}},}},methods: {changeSelect(val, field, parentField, info) {this.selectInfo.chooseSelectList [];for (let i 0; i this.selectInfo.filterOptions.length; i) {for (let j 0; j val.length; j) {let value this.selectInfo.prop this.selectInfo.prop.value ? this.selectInfo.prop.value : id;if (val[j] this.selectInfo.filterOptions[i][value]) {this.selectInfo.chooseSelectList.push(this.selectInfo.filterOptions[i]);}}}console.log(val, 选择的值)},dropDownSearchTop(val) {this.filterVal this.selectInfo.filterVal;if (this.selectInfo.filterVal ) {this.selectInfo.options JSON.parse(JSON.stringify(this.selectInfo.filterOptions));return;}let list [];if (this.selectInfo.chooseSelectList.length 0) {list this.selectInfo.filterOptions.filter(item {let value ithis.selectInfonfo.prop this.selectInfo.prop.value ? this.selectInfo.prop.value : id;return this.selectInfo.chooseSelectList.every(el el[value] ! item[value]);});} else {list JSON.parse(JSON.stringify(this.selectInfo.filterOptions));}this.selectInfo.options this.selectInfo.chooseSelectList.concat(list.filter(item {let name this.selectInfo.prop this.selectInfo.prop.label ? this.selectInfo.prop.label : name;return item[name].includes(this.selectInfo.filterVal);}));},}// ...} /script确保你已经安装了Vue.js和Element UI并在项目中引入它们。
http://www.hkea.cn/news/14519375/

相关文章:

  • 网站推广公司 优帮云商贸有限公司
  • 先用ps后用dw做网站青海移动网站建设
  • 龙岩做网站公司邵阳隆回今天新闻头条
  • 山东高端网站定制如何做网站卡密
  • 成都网站建设需多少钱wordpress文件存放不同目录下
  • 商城网站建设公司电话WordPress突然全站404
  • 旅游类网站设计模板下载青岛seo整站优化公司
  • 设计网站的企业河南响应式官网建设哪里好
  • 扬州中兴建设有限公司网站网站建设人工智能开发
  • 做棋牌推广网站违法不河北邯郸邮政编码
  • 安徽柱石建设有限公司网站ui培训设计
  • 飓风算法受影响的网站有哪些网站建设的种类
  • 尚义网站建设书法网站建站目标
  • 黄埔五屏网站建设凤岗镇网站仿做
  • 邢台地区网站建设口碑好个人物流网站建设方案
  • 163企业邮箱app下载杭州抖音seo
  • 网站空间ip地址查询房地产型网站建设
  • 网站建设 嘉定济南市城市建设规划局官方网站
  • 广州 网站的设计公司网站建设 主机选择
  • 网站开发和运行 法律wap织梦手机网站
  • 京东网站开发费用英文网站cms
  • 网站风格设计的选择打开网站搜索
  • 青海省建设厅职业注册官方网站杭州网络科技设计中心
  • 晋中工商局网站开发区分局金华手机模板建站
  • 企业网站seo外包公司名字大全2022
  • 做网站第一步做什么微信小程序开发费用
  • 网站必须做电子认证吗海报制作软件免费版
  • 淄博公益网站建设如何把网站做成app
  • 家具网站建设公司建设网站需要哪些软硬件条件
  • 有没有发布需求的网站上海发布官网首页