1
0

tun.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {{define "form/tun"}}
  2. <a-form
  3. :colon="false"
  4. :label-col="{ md: {span:8} }"
  5. :wrapper-col="{ md: {span:14} }"
  6. >
  7. <a-form-item>
  8. <template slot="label">
  9. <a-tooltip>
  10. <template slot="title">
  11. <span>{{ i18n "pages.xray.tun.nameDesc" }}</span>
  12. </template>
  13. Interface Name
  14. <a-icon type="question-circle"></a-icon>
  15. </a-tooltip>
  16. </template>
  17. <a-input v-model.trim="inbound.settings.name" placeholder="xray0"></a-input>
  18. </a-form-item>
  19. <a-form-item>
  20. <template slot="label">
  21. <a-tooltip>
  22. <template slot="title">
  23. <span>{{ i18n "pages.xray.tun.mtuDesc" }}</span>
  24. </template>
  25. MTU
  26. <a-icon type="question-circle"></a-icon>
  27. </a-tooltip>
  28. </template>
  29. <a-input-number
  30. v-model.number="inbound.settings.mtu"
  31. :min="1"
  32. :max="9000"
  33. placeholder="1500"
  34. ></a-input-number>
  35. </a-form-item>
  36. <a-form-item>
  37. <template slot="label">
  38. <a-tooltip>
  39. <template slot="title">
  40. <span>{{ i18n "pages.xray.tun.userLevelDesc" }}</span>
  41. </template>
  42. {{ i18n "pages.xray.tun.userLevel" }}
  43. <a-icon type="question-circle"></a-icon>
  44. </a-tooltip>
  45. </template>
  46. <a-input-number
  47. v-model.number="inbound.settings.userLevel"
  48. :min="0"
  49. placeholder="0"
  50. ></a-input-number>
  51. </a-form-item>
  52. </a-form>
  53. {{end}}