value => '未审核', static::Processing->value => '审核中', static::Success->value => '审核通过', static::Fail->value => '审核不通过', static::Cancel->value => '已取消', ]; } public function text() { return data_get(self::options(), $this->value); } public static function coplorMap() { // 'active' | 'inactive' | 'error' | 'success' | 'processing' | 'warning' | return [ static::None->value => 'active', static::Processing->value => 'processing', static::Success->value => 'success', static::Fail->value => 'error', static::Cancel->value => 'inactive', ]; } public function color() { return data_get(self::coplorMap(), $this->value); } }