建企业网站网站开发软件开发流程图
web/
2025/10/9 5:41:33/
文章来源:
建企业网站,网站开发软件开发流程图,如何申请ip地址和域名,深圳市鸿运通网站建设外键表单组件
若依框架提供了下拉框组件#xff0c;但是数据是枚举数据中读取#xff0c;但是对于外键表单没有提供。定义一个TableTag
templatedivtemplate v-for(item, index) in options template spanv-ifvalue…外键表单组件
若依框架提供了下拉框组件但是数据是枚举数据中读取但是对于外键表单没有提供。定义一个TableTag
templatedivtemplate v-for(item, index) in options template spanv-ifvalueitem.id{{ item[label] }}/span/template/template/div
/templatescript
export default {name: TableTag,props: {options: {type: Array,default: null,},value: [Number, String, Array],label: {type: String,default: displayName,},},computed: {values() {console.log(Array.isArray(this.value) ? this.value : [String(this.value)])if (this.value ! null typeof this.value ! undefined) {return Array.isArray(this.value) ? this.value : [String(this.value)];} else {return [];}},},
};
/script
style scoped
.el-tag .el-tag {margin-left: 10px;
}
/style
main.js中
import TableTag from /components/TableTag;
Vue.component(TableTag,TableTag)
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/web/89468.shtml
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!