mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-06 23:00:25 +08:00
提交components.js
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -9060,9 +9060,12 @@ Vue.component("http-firewall-actions-box", {
|
|||||||
if (isNaN(timeout)) {
|
if (isNaN(timeout)) {
|
||||||
timeout = 0
|
timeout = 0
|
||||||
}
|
}
|
||||||
if (this.recordIPListId <= 0) {
|
if (this.recordIPListId < 0) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// recordIPListId can be 0
|
||||||
|
|
||||||
this.actionOptions = {
|
this.actionOptions = {
|
||||||
type: this.recordIPType,
|
type: this.recordIPType,
|
||||||
level: this.recordIPLevel,
|
level: this.recordIPLevel,
|
||||||
@@ -9410,7 +9413,7 @@ Vue.component("http-firewall-actions-box", {
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr v-if="actionCode == 'record_ip'">
|
<tr v-if="actionCode == 'record_ip'">
|
||||||
<td>选择IP名单 *</td>
|
<td>选择IP名单</td>
|
||||||
<td>
|
<td>
|
||||||
<div v-if="recordIPListId > 0" class="ui label basic small">{{recordIPListName}} <a href="" @click.prevent="removeRecordIPList"><i class="icon remove small"></i></a></div>
|
<div v-if="recordIPListId > 0" class="ui label basic small">{{recordIPListName}} <a href="" @click.prevent="removeRecordIPList"><i class="icon remove small"></i></a></div>
|
||||||
<button type="button" class="ui button tiny" @click.prevent="selectRecordIPList">+</button>
|
<button type="button" class="ui button tiny" @click.prevent="selectRecordIPList">+</button>
|
||||||
@@ -16409,13 +16412,19 @@ Vue.component("menu-item", {
|
|||||||
|
|
||||||
// 使用Icon的链接方式
|
// 使用Icon的链接方式
|
||||||
Vue.component("link-icon", {
|
Vue.component("link-icon", {
|
||||||
props: ["href", "title", "target"],
|
props: ["href", "title", "target", "size"],
|
||||||
data: function () {
|
data: function () {
|
||||||
|
let realSize = this.size
|
||||||
|
if (realSize == null || realSize.length == 0) {
|
||||||
|
realSize = "small"
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
vTitle: (this.title == null) ? "打开链接" : this.title
|
vTitle: (this.title == null) ? "打开链接" : this.title,
|
||||||
|
realSize: realSize
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
template: `<span><slot></slot> <a :href="href" :title="vTitle" class="link grey" :target="target"><i class="icon linkify small"></i></a></span>`
|
template: `<span><slot></slot> <a :href="href" :title="vTitle" class="link grey" :target="target"><i class="icon linkify" :class="realSize"></i></a></span>`
|
||||||
})
|
})
|
||||||
|
|
||||||
// 带有下划虚线的连接
|
// 带有下划虚线的连接
|
||||||
|
|||||||
Reference in New Issue
Block a user