navbar.js 2.1 KB
Newer Older
D
DCloud_LXH 已提交
1 2 3 4 5 6 7 8 9 10
/**
 * text
 * target
 * link   // 有协议时是外链
 * items
 * type   // link、links。
 * rel
 * needOutbound // 是否显示外链图标
 */
export const navbar = [
D
DCloud_LXH 已提交
11 12 13 14 15 16 17
  {
    text: 'uni-app',
    link: 'https://uniapp.dcloud.io/',
    type: "link",
    target: '_blank',
    needOutbound: false
  },
D
DCloud_LXH 已提交
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
  {
    text: 'uni-app x',
    link: '/',
    items: [
      {
        text: '介绍',
        type: 'link',
        link: '/'
      },
      {
        text: '编译器',
        type: 'link',
        link: '/compiler/'
      },
      {
        text: 'UTS',
        type: 'link',
        link: '/uts/'
      },
D
DCloud_LXH 已提交
37 38 39 40 41
      {
        text: 'VUE',
        type: 'link',
        link: '/vue/'
      },
D
DCloud_LXH 已提交
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
      {
        text: '全局文件',
        type: 'link',
        link: '/collocation/pagesjson'
      },
      {
        text: '组件',
        type: 'link',
        link: '/component/'
      },
      {
        text: 'API',
        type: 'link',
        link: '/api/'
      },
      {
        text: 'CSS',
        type: 'link',
        link: '/css/'
      },
      {
        text: 'DOM',
        type: 'link',
        link: '/dom/'
      },
      {
        text: '插件',
        type: 'link',
        link: '/plugin/'
      },
      {
        text: '工程化',
        type: 'link',
        link: '/worktile/'
      }
    ]
  },
  {
    text: 'uniCloud',
D
DCloud_LXH 已提交
81
    link: 'https://doc.dcloud.net.cn/uniCloud/',
D
DCloud_LXH 已提交
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
    type: "link",
    target: '_blank',
    needOutbound: false
  },
  {
    text: 'HBuilder',
    link: 'https://hx.dcloud.net.cn/',
    type: "link",
    target: '_blank',
    needOutbound: false
  },
  {
    text: 'uni 小程序 sdk',
    link: 'https://nativesupport.dcloud.net.cn/README',
    type: "link",
    target: '_blank',
    needOutbound: false
  },
  /* {
    text: '问答社区',
    link: 'https://ask.dcloud.net.cn/explore/',
    type: "link",
    target: '_blank',
    needOutbound: false
  },
  {
    text: '插件市场',
    type: "link",
    target: '_blank',
    link: 'https://ext.dcloud.net.cn/',
    needOutbound: false
  } */
]

D
DCloud_LXH 已提交
116 117
export const userNavIndex = 1

D
DCloud_LXH 已提交
118 119 120 121
export const navbarLanguage = {
  default: 0,
  items: [
    {
D
DCloud_LXH 已提交
122
      text: '简体中文'
D
DCloud_LXH 已提交
123 124 125
    }
  ]
}