stream_http.html 828 B

12345678910111213141516171819
  1. {{define "form/streamHTTP"}}
  2. <a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
  3. <a-form-item label='{{ i18n "path" }}'>
  4. <a-input v-model.trim="inbound.stream.http.path"></a-input>
  5. </a-form-item>
  6. <a-form-item>
  7. <template slot="label">{{ i18n "host" }}
  8. <a-button size="small" @click="inbound.stream.http.addHost()">+</a-button>
  9. </template>
  10. <template v-for="(host, index) in inbound.stream.http.host">
  11. <a-input v-model.trim="inbound.stream.http.host[index]">
  12. <a-button size="small" slot="addonAfter"
  13. @click="inbound.stream.http.removeHost(index)"
  14. v-if="inbound.stream.http.host.length>1">-</a-button>
  15. </a-input>
  16. </template>
  17. </a-form-item>
  18. </a-form>
  19. {{end}}