manifest-gen.html 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <!-- <li v-for="item in versionObject" :key="item.versionNumber"></li> -->
  2. <!-- </li> -->
  3. <ui-section>
  4. <div slot="header" class="header greenColor">生成Manifest配置
  5. <div class="layout horizontal flex-1 center self-end end-justified">
  6. <div class="self-end">
  7. <ui-button v-on:confirm="onBtnClickHelpDoc" @click="onStopTouchEvent">文档</ui-button>
  8. <ui-button v-on:confirm="onBtnClickTellMe" @click="onStopTouchEvent" class="QQ"></ui-button>
  9. </div>
  10. </div>
  11. </div>
  12. <div class="layout vertical start-justified">
  13. <ui-prop name="热更根目录url" tooltip="游戏热更新服务器的url">
  14. <div class="flex-1 layout horizontal center">
  15. <ui-input class="flex-2" v-on:blur="onInPutUrlOver" v-value="serverRootDir"></ui-input>
  16. <ui-button v-on:confirm="userLocalIP">使用本机IP</ui-button>
  17. </div>
  18. </ui-prop>
  19. <ui-prop name="build项目资源文件目录" tooltip="项目构建后的目录">
  20. <div class="flex-1 layout horizontal center">
  21. <ui-input class="flex-2" disabled v-value="resourceRootDir"></ui-input>
  22. <ui-button v-on:confirm="onSelectResourceRootDir">...</ui-button>
  23. <ui-button v-on:confirm="onOpenResourceDir" v-if="isValidResDir">
  24. <i class="icon-doc-text"></i>
  25. </ui-button>
  26. </div>
  27. </ui-prop>
  28. <ui-prop name="manifest存储目录">
  29. <div class="flex-1 layout horizontal center">
  30. <ui-input class="flex-2" disabled v-value="genManifestDir"></ui-input>
  31. <ui-button v-on:confirm="onOpenManifestDir">
  32. <i class="icon-doc-text"></i>
  33. </ui-button>
  34. </div>
  35. </ui-prop>
  36. <ui-prop name="主包名/过滤名单">
  37. <div class="flex-1 layout horizontal center">
  38. <ui-input class="flex-1" v-on:blur="onInputVersionOver" v-value="gameName"></ui-input>
  39. <ui-input name="主包名2" class="flex-1" v-on:blur="onInputVersionOver" v-value="whiteList"></ui-input>
  40. </div>
  41. </ui-prop>
  42. <ui-prop name="版本号">
  43. <div class="flex-1 layout horizontal center">
  44. <ui-input class="flex-1" v-on:blur="onInputVersionOver" v-value="remoteServerVersion"></ui-input>
  45. </div>
  46. </ui-prop>
  47. <ui-box-container class="layout vertical left" v-for="(index, item) in subPackArr">
  48. <ui-prop name="子包名">
  49. <div class="flex-1 layout horizontal center">
  50. <ui-input class="flex-1" :is-disabled="item.disabled" v-on:focus="onInSubPackName(index)"
  51. v-on:blur="onLeaveSubPackName(index)" v-value="index"></ui-input>
  52. <ui-button class="self-end blue" v-on:confirm="changeSubPackDisabled(index)">{{item.disabled ?
  53. "取消锁定" : "锁定包名"}}</ui-button>
  54. </div>
  55. </ui-prop>
  56. <ui-prop name="版本号">
  57. <div class="flex-1 layout horizontal center">
  58. <ui-input class="flex-1" v-value="item.versionNumber"></ui-input>
  59. <ui-button class="self-end red" v-on:confirm="delSubPack(index)">删除子包</ui-button>
  60. </div>
  61. </ui-prop>
  62. <ui-prop name="子包服务器资源url">
  63. <div class="flex-1 layout horizontal center">
  64. <ui-input class="flex-2" disabled v-value="item.subPackUrl"></ui-input>
  65. </div>
  66. </ui-prop>
  67. </ui-box-container>
  68. <div class="self-end">
  69. <ui-button class="self-end blue" v-on:confirm="onCopyFileToReduceDir">检索更新资源</ui-button>
  70. <ui-button class="self-end green" v-on:confirm="addSubPack">添加子包</ui-button>
  71. <!-- <ui-button class="self-end blue" v-on:confirm="onClickOpenVersionDir">
  72. <i class="fa fa-folder-open">打开热更包目录</i>
  73. </ui-button> -->
  74. <ui-button class="self-end red" v-on:confirm="onClickGenCfg">生成热更包</ui-button>
  75. </div>
  76. </div>
  77. </ui-section>