Skip to content

Commit

Permalink
优化多语言配置,自定义菜单支持二级菜单。
Browse files Browse the repository at this point in the history
  • Loading branch information
vanjoge committed Dec 14, 2023
1 parent be9bfec commit dd66db0
Showing 1 changed file with 34 additions and 5 deletions.
39 changes: 34 additions & 5 deletions JsAccess.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,42 @@ defaultConfig = {
gov_player_protocol_error: "协议错误,请确认流格式是否正确",
loading_page_wait_video: "等待视频...",
loading_page_wait_search_record: "等待搜索录像",
menu_stop: "停止",
menu_screen_full: "全屏",
menu_stretch: "伸缩",
menu_capture: "截图",
menu_rotate: "视频旋转",
menu_mirrorinver: "镜面反转",
control_tip_refresh: "刷新",
control_tip_play: "播放",
control_tip_stop: "停止",
control_tip_sound: "声音",
control_tip_screen_full: "全屏",
control_tip_capture: "截图",
control_tip_record: "录像",
control_tip_stretch: "伸缩",
},
//添加菜单
/*addMenu:[
{ title: "567", onClicked: function (index) { console.log("clicked 567-" + index) } },
{ title: "123", onClicked: function (index) { console.log("clicked 123-" + index) } },
],*/
//addMenu:[
// {
// title: "测试1", child:
// [
// { title: "111", onClicked: function (index) { console.log("clicked 111-" + index) } },
// { title: "222", onClicked: function (index) { console.log("clicked 222-" + index) } },
// { title: "333", onClicked: function (index) { console.log("clicked 333-" + index) } }
// ]
// },
// {
// title: "测试2", onClicked: function (index) { console.log("clicked 测试2-" + index) }
// },
// {
// title: "测试3", child:
// [
// { title: "555", onClicked: function (index) { console.log("clicked 555-" + index) } },
// ]
// },
//],
//添加按钮 需在class中指定按钮图标和位置
/*addButtons:[
{ title: "add1", class: "addbuton-1", onClicked: function (index) { console.log("addbuton-1-" + index) } },
Expand Down

0 comments on commit dd66db0

Please sign in to comment.