12345678910111213141516171819202122 |
- /**
- * Created by Chowin on 2019/2/18.
- */
- import CommonIcon from '_c/common-icon'
- import { showTitle } from '@/libs/util'
- export default {
- components: {
- CommonIcon
- },
- methods: {
- showTitle (item) {
- return showTitle(item, this)
- },
- showChildren (item) {
- return item.children && (item.children.length > 1 || (item.meta && item.meta.showAlways))
- },
- getNameOrHref (item, children0) {
- return item.href ? `isTurnByHref_${item.href}` : (children0 ? item.children[0].name : item.name)
- }
- }
- }
|