Conditional rendering of vue component parameters

this is an element component of vue. Can the parameter type render conditionally?
I want to decide whether to type= "success" or type= "danger" based on a Boolean true or false

      <el-button size="mini" type="success" >
      </el-button>
Apr.07,2021

    <el-button size="mini" :type="true == true? 'sucess' : 'error'" >
      </el-button>

< el-button size= "mini": type='btnType? "success": "danger" > < / el-button >
like this?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3adba-2c23d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3adba-2c23d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?