fes.js/assets/js/55.fc8c73f5.js

1 line
2.8 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([[55],{442:function(t,e,a){"use strict";a.r(e);var n={data:function(){return{actions:["新增","删除","复制"]}},methods:{doAction:function(t,e){this.$Toast("点击了"+t+e)}}},s=a(46),l=Object(s.a)(n,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"contextmenu-右键菜单"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#contextmenu-右键菜单"}},[t._v("#")]),t._v(" Contextmenu 右键菜单")]),t._v(" "),a("p",[t._v("自定义的右键菜单")]),t._v(" "),a("h2",{attrs:{id:"代码示例"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#代码示例"}},[t._v("#")]),t._v(" 代码示例")]),t._v(" "),a("ClientOnly",[a("componetTemplate",{attrs:{title:"基本使用",template:"ui/templates/contextmenu/1.html"},scopedSlots:t._u([{key:"demo",fn:function(){return[a("contextmenu",{attrs:{data:t.actions},on:{"on-choose":t.doAction}},[t._v("\n 右键点击\n ")])]},proxy:!0},{key:"description",fn:function(){return[a("p",[t._v("在data中提供下拉菜单数据内容数据格式见API")])]},proxy:!0}])})],1),t._v(" "),a("h2",{attrs:{id:"api"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#api"}},[t._v("#")]),t._v(" API")]),t._v(" "),a("h3",{attrs:{id:"dropdown-props"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dropdown-props"}},[t._v("#")]),t._v(" Dropdown Props")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("属性")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("说明")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("类型")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("默认值")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[t._v("data")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("菜单数据源")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Array")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("h3",{attrs:{id:"dropdown-events"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dropdown-events"}},[t._v("#")]),t._v(" Dropdown Events")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("事件名")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("说明")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("返回值")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[t._v("on-choose")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("点击菜单项时触发的事件")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("(item, index)")])])])])],1)}),[],!1,null,null,null);e.default=l.exports}}]);