Files
EdgeAdmin/web/public/js/components/server/http-charsets-box.js
2020-09-22 11:36:51 +08:00

28 lines
913 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Vue.component("http-charsets-box", {
props: ["v-usual-charsets", "v-all-charsets", "v-charset"],
data: function () {
let charset = this.vCharset
if (charset == null) {
charset = ""
}
return {
charset: charset
}
},
template: `<div>
<table class="ui table definition selectable">
<tr>
<td class="title">选择字符编码</td>
<td><select class="ui dropdown" style="width:20em" name="charset" v-model="charset">
<option value="">[未选择]</option>
<optgroup label="常用字符编码"></optgroup>
<option v-for="charset in vUsualCharsets" :value="charset.charset">{{charset.charset}}{{charset.name}}</option>
<optgroup label="全部字符编码"></optgroup>
<option v-for="charset in vAllCharsets" :value="charset.charset">{{charset.charset}}{{charset.name}}</option>
</select>
</td>
</tr>
</table>
<div class="margin"></div>
</div>`
})