<template>
    <view
        v-if="item.list && item.list.length">
        <view
            v-for="(o, i) in item.list"
            class="c-gap-inner-top c-font-medium"
            :class="i === item.list.length - 1 ? '' : 'c-line-bottom c-gap-inner-bottom'">
            <c-navigate
                :url="o.msUrl">
                <text class="c-inline-block c-color-green">{{ o.text }}</text>
                <c-icon
                    v-if="o.msUrl"
                    name="right"
                    font-size="16px"
                    class="c-color-gray nv-icon c-inline-block"></c-icon>
            </c-navigate>
        </view>
    </view>
</template>

<script>
/**
 * @file 智能导诊
 * @author haoyan
*/
import Icon from '@baidu/med-ui/components/Icon/Icon';
import Navigate from '../../components/common/navigate';

import {send} from '../../utils/log';

export default {
    config: {
        component: true
    },
    props: {
        item: {
            type: Object,
            default: {
                list: []
            }
        }
    },
    components: {
        'c-icon': Icon,
        'c-navigate': Navigate
    },
    methods: {
    }
};
</script>
<style lang="less" scoped>
.nv-icon {
    float: right;
}
</style>