// 显示节点的多个集群 Vue.component("node-clusters-labels", { props: ["v-primary-cluster", "v-secondary-clusters", "size"], data: function () { let cluster = this.vPrimaryCluster let secondaryClusters = this.vSecondaryClusters if (secondaryClusters == null) { secondaryClusters = [] } let labelSize = this.size if (labelSize == null) { labelSize = "small" } if (labelSize == "tiny") { labelSize += " olive" } return { cluster: cluster, secondaryClusters: secondaryClusters, labelSize: labelSize } }, template: `
{{cluster.name}} {{c.name}}
` })