1
0

stream_http.html 765 B

1234567891011121314151617
  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 icon="plus" 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 icon="minus" size="small" slot="addonAfter" @click="inbound.stream.http.removeHost(index)" v-if="inbound.stream.http.host.length>1"></a-button>
  13. </a-input>
  14. </template>
  15. </a-form-item>
  16. </a-form>
  17. {{end}}