{"size": 2181, "ext": "js", "max_stars_repo_path": "tools/data/van-dropdown-menu.js", "max_stars_repo_name": "sannyzeng/vant-weapp-snippets", "max_stars_repo_stars_event_min_datetime": "2021-12-06T03:55:16.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-09T01:48:32.000Z", "max_issues_repo_path": "tools/data/van-dropdown-menu.js", "max_issues_repo_name": "sannyzeng/vant-weapp-snippets", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tools/data/van-dropdown-menu.js", "max_forks_repo_name": "sannyzeng/vant-weapp-snippets", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 4, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.4516129032, "max_line_length": 69, "alphanum_fraction": 0.441999083}
exports.data = {
  json: {
    kind: "Snippet",
    body: ['"van-dropdown-menu": "@vant/weapp/dropdown-menu/index"'],
    detail: "DropdownMenu 下拉菜单",
    documentation: `在app.json或index.json中引入组件`,
  },
  wxml: {
    kind: "Snippet",
    body: ["<van-dropdown-menu${1}>${2}</van-dropdown-menu>"],
    detail: "DropdownMenu 下拉菜单",
    documentation: `向下弹出的菜单列表。`,
    attrs: [
      {
        kind: "Field",
        body: ["active-color="],
        detail: "active-color",
        documentation: "菜单标题和选项的选中态颜色",
        vals: null,
      },
      {
        kind: "Field",
        body: ["z-index="],
        detail: "z-index",
        documentation: "菜单栏 z-index 层级",
        vals: null,
      },
      {
        kind: "Field",
        body: ["duration="],
        detail: "duration",
        documentation: "动画时长，单位毫秒",
        vals: null,
      },
      {
        kind: "Field",
        body: ["direction="],
        detail: "direction",
        documentation: "菜单展开方向，可选值为down up",
        vals: {
          kind: "Value",
          body: ["down", "up"],
          detail: "",
          documentation: "",
        },
      },
      {
        kind: "Field",
        body: ["overlay="],
        detail: "overlay",
        documentation: "是否显示遮罩层",
        vals: {
          kind: "Value",
          body: ["true", "false"],
          detail: "",
          documentation: "",
        },
      },
      {
        kind: "Field",
        body: ["close-on-click-overlay="],
        detail: "close-on-click-overlay",
        documentation: "是否在点击遮罩层后关闭菜单",
        vals: {
          kind: "Value",
          body: ["true", "false"],
          detail: "",
          documentation: "",
        },
      },
      {
        kind: "Field",
        body: ["close-on-click-outside="],
        detail: "close-on-click-outside",
        documentation: "是否在点击外部 menu 后关闭菜单",
        vals: {
          kind: "Value",
          body: ["true", "false"],
          detail: "",
          documentation: "",
        },
      },
      {
        kind: "Field",
        body: ["custom-class="],
        detail: "custom-class",
        documentation: "根节点样式类",
        vals: null,
      },
    ],
  },
};
