mirror of
				https://github.com/veops/cmdb.git
				synced 2025-11-04 13:46:17 +08:00 
			
		
		
		
	Merge pull request #607 from veops/dev_ui_240828
fix(ui): ci choice attr error
This commit is contained in:
		@@ -107,8 +107,8 @@
 | 
			
		||||
                    :type="choice[1].icon.name"
 | 
			
		||||
                  />
 | 
			
		||||
                </template>
 | 
			
		||||
                <a-tooltip placement="topLeft" :title="choice[1].label || choice[0]">
 | 
			
		||||
                  <span>{{ choice[1].label || choice[0] }}</span>
 | 
			
		||||
                <a-tooltip placement="topLeft" :title="choice[1] ? choice[1].label || choice[0] : choice[0]">
 | 
			
		||||
                  <span>{{ choice[1] ? choice[1].label || choice[0] : choice[0] }}</span>
 | 
			
		||||
                </a-tooltip>
 | 
			
		||||
              </span>
 | 
			
		||||
            </a-select-option>
 | 
			
		||||
 
 | 
			
		||||
@@ -128,8 +128,8 @@
 | 
			
		||||
                      v-if="choice[1] && choice[1].icon && choice[1].icon.name"
 | 
			
		||||
                      :type="choice[1].icon.name"
 | 
			
		||||
                    />
 | 
			
		||||
                    <a-tooltip placement="topLeft" :title="choice[1].label || choice[0]" >
 | 
			
		||||
                      {{ choice[1].label || choice[0] }}
 | 
			
		||||
                    <a-tooltip placement="topLeft" :title="choice[1] ? choice[1].label || choice[0] : choice[0]" >
 | 
			
		||||
                      {{ choice[1] ? choice[1].label || choice[0] : choice[0] }}
 | 
			
		||||
                    </a-tooltip>
 | 
			
		||||
                  </span>
 | 
			
		||||
                </a-select-option>
 | 
			
		||||
 
 | 
			
		||||
@@ -134,7 +134,7 @@
 | 
			
		||||
                    :type="choice[1].icon.name"
 | 
			
		||||
                  />
 | 
			
		||||
                </template>
 | 
			
		||||
                {{ choice[1].label || choice[0] }}
 | 
			
		||||
                {{ choice[1] ? choice[1].label || choice[0] : choice[0] }}
 | 
			
		||||
              </span>
 | 
			
		||||
            </a-select-option>
 | 
			
		||||
          </a-select>
 | 
			
		||||
 
 | 
			
		||||
@@ -72,8 +72,8 @@
 | 
			
		||||
                    :type="choice[1].icon.name"
 | 
			
		||||
                  />
 | 
			
		||||
                </template>
 | 
			
		||||
                <a-tooltip placement="topLeft" :title="choice[1].label || choice[0]">
 | 
			
		||||
                  {{ choice[1].label || choice[0] }}
 | 
			
		||||
                <a-tooltip placement="topLeft" :title="choice[1] ? choice[1].label || choice[0] : choice[0]">
 | 
			
		||||
                  {{ choice[1] ? choice[1].label || choice[0] : choice[0] }}
 | 
			
		||||
                </a-tooltip>
 | 
			
		||||
              </span>
 | 
			
		||||
            </a-select-option>
 | 
			
		||||
 
 | 
			
		||||
@@ -450,8 +450,9 @@ export default {
 | 
			
		||||
            return [
 | 
			
		||||
              item[0],
 | 
			
		||||
              {
 | 
			
		||||
                ...item[1],
 | 
			
		||||
                label: item?.[1]?.['label'] || item[0]
 | 
			
		||||
                icon: item?.[1]?.['icon'] || {},
 | 
			
		||||
                style: item?.[1]?.['style'] || {},
 | 
			
		||||
                label: item?.[1]?.['label'] || item?.[0] || ''
 | 
			
		||||
              }
 | 
			
		||||
            ]
 | 
			
		||||
          })
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user